/* ==========================================================================
   NERION ARCHITECTURE IT — SOCLE COMMUN APPROCHE & SOLUTIONS (_APPROCHE.CSS)
   --------------------------------------------------------------------------
   Structure mutualisée et étanche pour : fonctionnement.php & solutions.php
   Zéro verrou d'urgence !important — Sécurisation chirurgicale des flux (2026)
   ========================================================================== */

.approche-page-main-layout,
.solutions-page-layout-root {
    width: 100%;
    box-sizing: border-box;
}

/* --- 1. NAPPE SUPÉRIEURE : LE COCON NOIR MAT DE LABORATOIRE PROFOND --- */
.approche-page-main-layout .product-upper-dark-zone,
.solutions-page-layout-root .solutions-upper-dark-zone { 
    background-color: #061318; 
    padding: 100px 24px 80px 24px; 
    width: 100%; 
    display: block;
    box-sizing: border-box;
}

/* --- 2. NAPPE INFÉRIEURE : LE GRAND FOND BLEU ARDOISE HISTORIQUE --- */
.approche-page-main-layout .product-lower-light-zone,
.solutions-page-layout-root .solutions-lower-light-zone { 
    background-color: #0B2530; 
    padding: 120px 24px 140px 24px; 
    width: 100%; 
    display: block;
    box-sizing: border-box;
    margin-top: 0;
}

/* --- 3. HARMONISATION SYMÉTRIQUE DES EN-TÊTES DE PAGES (HERO BLOCKS) --- */
.approche-page-main-layout .site-page-hero,
.solutions-page-layout-root .site-page-hero {
    text-align: center;
    max-width: 1150px;
    margin: 0 auto 70px auto; 
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.approche-page-main-layout .site-page-hero h1,
.solutions-page-layout-root .site-page-hero h1 {
    font-size: clamp(32px, 4.5vw, 44px);            
    line-height: 1.25;
    font-weight: 300;                     
    color: #F7FBFA;
    margin: 0 auto 25px auto;
    display: block;
}

/* Allumage turquoise sur le mot-clé cible ("Notre méthodologie", "Clé en Main"...) */
.approche-page-main-layout .site-page-hero h1 span,
.solutions-page-layout-root .site-page-hero h1 span {
    font-size: 1.05em;
    font-weight: 800;
    color: #70C8C1;
    display: inline-block;
}

.approche-page-main-layout .site-page-hero p,
.solutions-page-layout-root .site-page-hero p {
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
    color: #EDFBF8;
    text-align: center;
}

/* Fil conducteur électrique néon au-dessus des grands titres */
.approche-page-main-layout .site-page-hero h1::before,
.solutions-page-layout-root .site-page-hero h1::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #70C8C1;
    margin: 0 auto 25px auto;
    box-shadow: 0 0 10px rgba(112, 200, 193, 0.6);
}

/* --- 4. GAINES DE GRILLES BENTO COMPATIBLES (SANS INTERFÉRENCES COISÉES) --- */
.approche-page-main-layout .matrix-wrapper-global,
.solutions-page-layout-root .matrix-wrapper-global {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Grille de Fonctionnement : Distribution en 3 colonnes PC */
.approche-page-main-layout .site-bento-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
    align-items: stretch; 
    width: 100%; 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Grille de Solutions : Distribution en 2 colonnes PC */
.solutions-page-layout-root .site-bento-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    align-items: stretch; 
    width: 100%; 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Structure saine du caisson Bento parent */
.approche-page-main-layout .site-bento-card,
.solutions-page-layout-root .site-bento-card {
    background: #123544; 
    border-radius: 4px; 
    padding: 45px 35px; 
    border: 1px solid rgba(255, 255, 255, 0.02); 
    border-top: 3px solid #70C8C1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative; 
    box-sizing: border-box; 
    transform: none; /* Immobilise l'assiette pour effacer les secousses au survol */
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Écusson d'architecture technique (Infrastructure 01, Niveau 01...) */
.approche-page-main-layout .rack-badge,
.solutions-page-layout-root .rack-badge { 
    display: block; 
    background: rgba(112, 200, 193, 0.1); 
    color: #70C8C1; 
    font-size: 11.5px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    padding: 6px 14px; 
    border-radius: 4px; 
    margin: 0 0 20px 0; 
    width: max-content; 
}

/* Restauration du lettrage lourd et blanc des H3 */
.approche-page-main-layout .site-bento-card h3,
.solutions-page-layout-root .site-bento-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #F7FBFA;
    margin: 0 0 15px 0;
    text-align: left;
}

/* Allumage turquoise sur le nom de l'expertise (Page Solutions uniquement) */
.solutions-page-layout-root .site-bento-card h3 span {
    color: #70C8C1;
}

/* Préservation du lettrage blanc continu de la page fonctionnement haute */
.approche-page-main-layout .product-upper-dark-zone .site-bento-card h3 span {
    color: #F7FBFA;
    font-weight: 700;
    font-size: 1em;
    display: inline;
}

.approche-page-main-layout .site-bento-card p,
.solutions-page-layout-root .site-bento-card p {
    font-size: 14px;             
    line-height: 1.6;
    color: #EDFBF8;
    opacity: 0.9;               
    text-align: left;            
    margin: 0 0 35px 0; 
}

/* --- 5. COMPORTEMENT DES ÉTATS HOVER NETS ET PROPRES (SANS TREMBLEMENT) --- */
.approche-page-main-layout .site-bento-card:hover,
.solutions-page-layout-root .site-bento-card:hover { 
    border-color: rgba(112, 200, 193, 0.2); 
    border-top-color: #E2947E; /* Le liseré supérieur passe au corail */
    background-color: #143b4c; 
    transform: none; /* Pas de sursaut physique du casier */
}

/* --- 6. SPECIALLISATION : MODULE DE PARCOURS CARE (FONCTIONNEMENT.PHP) --- */
.approche-page-main-layout .site-bento-card .upper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    box-sizing: border-box;
}

.approche-page-main-layout .site-bento-card.featured-visual { 
    background-color: #143b4c; 
    border: 2px solid #70C8C1; 
    box-shadow: 0 20px 50px rgba(112, 200, 193, 0.1); 
}
.approche-page-main-layout .site-bento-card.featured-visual:hover { border-color: #E2947E; }

.approche-page-main-layout .features-list-tech {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approche-page-main-layout .features-list-tech li {
    font-size: 14px; 
    line-height: 1.55;
    color: #EDFBF8;
    position: relative;
    padding-left: 26px;            
    text-align: left;
    display: block;                
}

.approche-page-main-layout .features-list-tech li strong {
    color: #70C8C1;
}

/* Puces losanges turquoise en base64 pour contourner le cache du serveur */
.approche-page-main-layout .features-list-tech li::before {
    content: "";
    display: inline-block;         
    position: absolute;
    left: 0;
    top: 5px;                      
    width: 12px;                   
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370C8C1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polygon points='12 2 2 12 12 22 22 12 12 2'/><circle cx='12' cy='12' r='2' fill='%2370C8C1'/></svg>") !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.approche-page-main-layout .option-tag-box { 
    margin-top: auto;                 
    padding-top: 20px; 
    color: #EDFBF8; 
    border-top: 1px dashed rgba(112, 200, 193, 0.2); 
    display: block;                   
    width: 100%;                      
    box-sizing: border-box;
}
.approche-page-main-layout .option-tag-box strong { color: #70C8C1; font-weight: 700; }

.approche-page-main-layout .site-bento-card .badge-pop {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #70C8C1;
    color: #061318;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 6;
}

/* --- 7. SPECIALISATION : RANGÉE BASSE ET UTILS DE LIENS (SOLUTIONS.PHP) --- */
.solutions-page-layout-root .solution-card-footer-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Lien à gauche, étiquette à droite */
    align-items: center; /* Alignement horizontal aligné au centre axial */
    width: 100%;
    margin-top: auto; /* Aimant de plancher */
    padding: 0;
    box-sizing: border-box;
}

/* Lien d'action interne (Turquoise d'origine, passe au corail lors du focus de la tuile) */
.solutions-page-layout-root .solution-card-footer-row .link-teasing {
    font-size: 14px;
    font-weight: 700;
    color: #70C8C1; 
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: color 0.2s ease;
}

.solutions-page-layout-root .site-bento-card:hover .link-teasing {
    color: #E2947E; 
}

/* L'étiquette technologique grise/turquoise fixe (Synology, UniFi...) */
.solutions-page-layout-root .solution-card-footer-row .sub-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    background: rgba(112, 200, 193, 0.05);
    color: #70C8C1;
    border: 1px solid rgba(112, 200, 193, 0.25);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin: 0;
    box-sizing: border-box;
}

    /* --- 8. GROS BOUTON D'ACTION DE COFFRET DE TARIFS BAS (SOLUTIONS.PHP) --- */
.solutions-page-layout-root .solutions-lower-light-zone .btn {
    display: inline-block;
    background-color: #E2947E; /* Texture Corail d'origine restaurée */
    color: #061318;
    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;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 30px auto 0 auto;
    width: max-content;
}

.solutions-page-layout-root .solutions-lower-light-zone .btn:hover {
    background-color: #F7FBFA;
    color: #061318;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(112, 200, 193, 0.35);
}

    /* --- 9. CEINTURE DE SÉCURITÉ RESPONSIVE COMPLÈTE MOBILE --- */
@media (max-width: 768px) {
    .solutions-page-layout-root .solutions-upper-dark-zone,
    .solutions-page-layout-root .solutions-lower-light-zone,
    .approche-page-main-layout .product-upper-dark-zone,
    .approche-page-main-layout .product-lower-light-zone {
        padding: 60px 16px;
    }
    .solutions-page-layout-root .site-bento-grid,
    .approche-page-main-layout .site-bento-grid {
        display: flex;
        flex-direction: column; /* Repliement vertical rectiligne sur mobile */
        gap: 25px;
        width: 100%;
    }
    .solutions-page-layout-root .site-bento-card,
    .approche-page-main-layout .site-bento-card {
        width: 100%;
        padding: 35px 20px;
    }
    .solutions-page-layout-root .solution-card-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .solutions-page-layout-root .solutions-lower-light-zone .btn {
        display: table;
        width: max-content;
        max-width: 85%;
        padding: 12px 24px;
        font-size: 13px;
        margin: 25px auto 0 auto;
    }
}