/* ==========================================================================
   NERION ARCHITECTURE IT — COMPOSANTS STRUCTURELS PAGE D'ACCUEIL (INDEX.CSS)
   --------------------------------================================----------
   Destiné exclusivement à la page : index.php (Gabarit Vitrine Principal)
   Zéro verrou d'urgence !important — Sémantique et cascade lissées (2026)
   ========================================================================== */

/* --- 1. ACCROCHE HERO PRINCIPALE (LE SEUL H1 DE LA PAGE) --- */
.hero {
    text-align: center;
    max-width: var(--max-width-site); 
    margin: 140px auto 100px auto;     
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);            
    line-height: 1.2;
    font-weight: 300;                     
    letter-spacing: -0.015em;
    margin-bottom: 25px;
    text-align: center;
    width: 100%;
}

.hero p {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--text-ecume);             
    max-width: 820px;                     
    margin: 0 auto 40px auto;
    text-align: center;
}

/* --- 2. HARMONISATION ET CALIBRAGE DES TITRES DE SECTIONS (H2) --- */
.parallax-content h2,
.asym-text h2,
.section-teaser-catalog .parallax-content h2,
.section-teaser-simulateur .parallax-content h2 {
    font-size: clamp(28px, 4vw, 36px); 
    font-weight: 300; 
    line-height: 1.3; 
    letter-spacing: -0.015em; 
    color: var(--text-white);
    margin-bottom: 24px;
}

/* Allumage turquoise de sécurité sur les mots clés cibles du site */
.parallax-content h2 strong,
.parallax-content h2 span,
.asym-text h2 span,
.section-teaser-catalog .parallax-content h2 span,
.section-teaser-simulateur .parallax-content h2 span {
    font-size: 1.05em;
    font-weight: 800;
    color: var(--accent-light);
    display: inline-block;
    line-height: inherit;
    vertical-align: baseline;
    text-transform: none;
    letter-spacing: -0.01em;
}

/* --- 3. SECTION PARALLAXE (MATRICE DE POINTS QUANTIQUE) --- */
.parallax-section { 
    position: relative; 
    height: clamp(400px, 50vh, 550px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background-color: var(--bg-dark-lab); 
    border-top: 1px solid rgba(112, 200, 193, 0.1); 
    border-bottom: 1px solid rgba(112, 200, 193, 0.1); 
    margin: 0; 
    z-index: 1; 
}

.parallax-grid-layer { 
    position: absolute; 
    top: -150px; 
    left: 0; 
    width: 100%; 
    height: calc(100% + 300px); 
    opacity: 0.35; 
    pointer-events: none; 
    z-index: 1; 
    background-size: 50px 50px; 
    background-image: radial-gradient(circle, var(--accent-light) 1.5px, transparent 1.5px); 
    will-change: transform; 
}

.parallax-content { 
    text-align: center; 
    max-width: 850px; 
    padding: 0 24px; 
    position: relative; 
    z-index: 3; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
}

.parallax-content p {
    font-size: 16.5px;
    line-height: 1.7;
    text-align: center;
    color: var(--text-ecume);
}

/* --- 4. ZONE ASYMÉTRIQUE OPEX & PILIERS DE TRÉSORERIE --- */
.section-asym { 
    width: 100%; 
    box-sizing: border-box; 
    background-color: var(--bg-main);      
    padding: 120px 24px;                    
}

.container-asym { 
    display: grid; 
    grid-template-columns: 1.05fr 0.95fr; 
    gap: 60px; 
    align-items: center; 
    max-width: var(--max-width-site); 
    margin: 0 auto; 
}

.asym-text { 
    text-align: left; 
}

.asym-text p {
    font-size: 16.5px;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 30px;
}

.link-teasing { 
    font-size: 14.5px; 
    font-weight: 700; 
    color: var(--corail);               
    display: inline-flex; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 15px; 
    transition: color 0.2s ease-in-out; 
}

.link-teasing:hover { 
    color: var(--accent-light);          
}

.section-asym .piliers-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;       
    gap: 24px;                            
    width: 100%;
}

.section-asym .pilier-item {
    background: var(--bg-card); 
    border-radius: 4px; 
    padding: 40px 30px;                   
    border: 1px solid rgba(255, 255, 255, 0.02); 
    border-top: 3px solid var(--accent-light); 
    min-height: 220px;                    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;              
    text-align: left;                     
    box-sizing: border-box;
}

.section-asym .pilier-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;                  
    text-align: left;
}

.section-asym .pilier-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-ecume);
}

/* --- 5. CATALOGUE DES EXPERTISES (4 COLONNES SOUCHÉES) --- */
.section-teaser-catalog {
    width: 100%;
    background-color: var(--bg-dark-lab); 
    padding: 120px 24px;                  
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;                  
    justify-content: center;
}

.section-teaser-catalog .parallax-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 60px auto;             
    display: flex;
    flex-direction: column;
    align-items: center;                  
    justify-content: center;
    width: 100%;
}

.section-teaser-catalog .site-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: var(--max-width-site);
    margin: 0 auto;
    box-sizing: border-box;
}

.section-teaser-catalog .site-bento-card {
    background: var(--bg-card); 
    border-radius: 4px; 
    padding: 35px 26px; 
    border: 1px solid rgba(255, 255, 255, 0.02); 
    border-top: 3px solid var(--accent-light); 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative; 
    box-sizing: border-box; 
    transition: var(--transition-fluid);
}

/* 🛠️ CORRECTIF DES TITRES BENTO : Épaisseur restaurée format ingénieur */
.section-teaser-catalog .site-bento-card h3 {
    font-size: 20px;
    font-weight: 700; /* Épaisseur renforcée conforme à vos critères */
    color: var(--text-white);
    margin-bottom: 15px;
    text-align: left;
}

.section-teaser-catalog .site-bento-card p {
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.85;
    text-align: left;
    margin-bottom: 20px;
}

.section-teaser-catalog .site-bento-card:hover {
    border-color: rgba(112, 200, 193, 0.2);
    border-top-color: var(--corail);      
    background-color: #143b4c;             
    transform: translateY(-4px);           
}

.section-teaser-catalog .site-bento-card .link-teasing {
    color: var(--accent-light);
    margin-top: auto;
}

.section-teaser-catalog .site-bento-card:hover .link-teasing {
    color: var(--corail);
}

/* --- 6. TUNNEL SIMULATEUR AVEC PANIER DE CHIFFRAGE LIVE --- */
.section-teaser-simulateur {
    width: 100%;
    background-color: #0d2a38;      
    padding: 120px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-teaser-simulateur .site-bento-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr; 
    gap: 60px;                            
    align-items: center;                  
    max-width: var(--max-width-site);
    margin: 0 auto;
    width: 100%;
}

.section-teaser-simulateur .parallax-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;              
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* 🛠️ CORRECTIF DU TAG "ÉVOLUTION DIGITALE" : Restauration complète du boîtier volant */
.section-teaser-simulateur .parallax-content .badge-pop {
    position: relative;                    
    top: 0;
    right: 0;
    margin-bottom: 20px;                   
    align-self: flex-start;                
    display: inline-block;
    background: var(--accent-light);
    color: var(--bg-dark-lab);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-teaser-simulateur .parallax-content p {
    text-align: left;
    margin-bottom: 35px;
    max-width: none;
}

.section-teaser-simulateur .site-bento-card {
    background: #061318;                  
    border: 1px solid rgba(112, 200, 193, 0.15);
    border-top: 3px solid var(--corail);   
    padding: 45px 35px;                   
    border-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
}

.section-teaser-simulateur .site-bento-card h6 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 20px;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid rgba(112, 200, 193, 0.15);
    padding-bottom: 12px;
    width: 100%;
}

.sim-preview-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(112, 200, 193, 0.15);
    padding-bottom: 20px;
}

.sim-row-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    color: var(--text-white);
}

.sim-row-item span {
    opacity: 0.9;
}

.sim-row-item strong {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 13.5px;
}

.contract-duration-row strong {
    color: var(--text-white);
    font-weight: 700;
}

.section-teaser-simulateur .sim-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.section-teaser-simulateur .sim-line span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
}

.section-teaser-simulateur #config-total-prix {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
}

/* --- 7. MOTEUR DE RENDU DU BOUTON GLOBAL ET ETATS HOVER --- */
.hero .btn {
    display: inline-block;
    background-color: var(--corail);
    color: var(--bg-dark-lab);
    padding: 16px 38px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(216, 137, 114, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    transition: var(--transition-fluid);
    margin: 0 auto;
    width: max-content;
}

/* 🛠️ CORRECTIF DE POSITIONNEMENT DU BOUTON DE DEVIS FINAL (DANS SA COLONNE TEXTE DE GAUCHE) */
.section-teaser-simulateur .parallax-content .btn {
    display: inline-block;
    background-color: var(--corail);
    color: var(--bg-dark-lab);
    padding: 16px 38px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(216, 137, 114, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    transition: var(--transition-fluid);
    margin: 0; /* Aligné à gauche de sa colonne de texte sur ordinateur PC */
    width: max-content;
}

.hero .btn:hover,
.section-teaser-simulateur .parallax-content .btn:hover {
    background-color: var(--text-white);
    color: var(--bg-dark-lab);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(112, 200, 193, 0.35);
}

/* --- 8. CEINTURE DE SÉCURITÉ RESPONSIVE COMPLÈTE INDEX --- */
@media (max-width: 768px) {
    .container-asym,
    .section-teaser-catalog .site-bento-grid,
    .section-teaser-simulateur .site-bento-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        padding: 0;
    }

    .section-asym .piliers-stack {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .asym-text,
    .section-teaser-simulateur .parallax-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .asym-text h2, .asym-text p,
    .section-teaser-simulateur .parallax-content h2,
    .section-teaser-simulateur .parallax-content p {
        text-align: center;
    }

    .section-teaser-simulateur .badge-pop {
        align-self: center;
    }

    .section-teaser-simulateur .site-bento-grid .site-bento-card {
        width: 100%;
        padding: 35px 20px;
    }

    .section-teaser-simulateur .sim-line {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero .btn,
    .section-teaser-simulateur .parallax-content .btn {
        display: table;
        width: max-content;
        max-width: 85%;
        padding: 12px 24px;
        font-size: 13px;
        margin: 25px auto 0 auto;
    }
}