/* ==========================================================================
   1. MIRE DE PRÉPARATION LABORATOIRE (MAINTENANCE.PHP)
   ========================================================================== */

/* Réajustement du châssis racine (Neutralise le padding-top global de base.css) */
body.maintenance-viewport-root {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0; /* Écrase les 170px du header pour centrer parfaitement la capsule */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--bg-dark-lab); /* Utilisation de votre noir mat profond */
    
    /* Trame blueprint technique Nerion */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(112, 200, 193, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(112, 200, 193, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 200, 193, 0.02) 1px, transparent 1px);
    background-size: cover, 40px 40px, 40px 40px;
    background-attachment: fixed;
}

/* La capsule centrale en verre givré fumé */
body.maintenance-viewport-root .maintenance-bento-capsule {
    max-width: 680px;
    width: calc(100% - 40px);
    background: rgba(18, 53, 68, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 8px;
    border: 1px solid rgba(112, 200, 193, 0.15);
    border-top: 3px solid var(--corail); /* Liseré supérieur signature Corail active */
    padding: 55px 45px;
    box-shadow: 0 25px 55px rgba(4, 13, 18, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* 🛠️ RESTAURATION COMPLÈTE DU BADGE STATUS TURQUOISE */
body.maintenance-viewport-root .maintenance-bento-capsule .product-badge {
    display: inline-block;
    background: rgba(112, 200, 193, 0.12);
    color: var(--accent-light); /* Rallume le turquoise Nerion */
    font-size: 11px;
    font-weight: 800;                        
    text-transform: uppercase;
    letter-spacing: 2px;                     
    padding: 6px 14px;                       
    border-radius: 4px;
    margin: 0 auto 25px auto;
    width: max-content;
}

/* 🛠️ RESTAURATION COMPLÈTE DU TITRE H1 : Finesse aérienne et dual-weight */
body.maintenance-viewport-root .maintenance-bento-capsule h1 {
    font-size: clamp(28px, 4.5vw, 36px);
    line-height: 1.3;
    font-weight: 300; /* Grain fin noble style Apple/SaaS */
    color: var(--text-white);
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: -0.015em;
}

body.maintenance-viewport-root .maintenance-bento-capsule h1 span {
    font-weight: 800; /* Stature robuste sur le nom Nerion Systems */
    color: var(--accent-light);
    display: inline-block;
    letter-spacing: -0.01em;
}

/* 🛠️ RESTAURATION DU PARAGRAPHE : Taille 15px et interlignage aéré */
body.maintenance-viewport-root .maintenance-bento-capsule p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-ecume);
    max-width: 580px;
    margin: 0 auto 35px auto;
    text-align: center;
    opacity: 0.95;
}

/* Alignement horizontal centré axial du cartel technique */
body.maintenance-viewport-root .maintenance-bento-capsule .hw-lab-cartel-horizontal {
    margin: 5px auto 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Réactivité du survol fluide sur le mail pro de la mire */
body.maintenance-viewport-root .maintenance-bento-capsule a {
    color: var(--accent-light);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    margin-left: 5px;
    transition: var(--transition-fluid);
    display: inline-block;
}

body.maintenance-viewport-root .maintenance-bento-capsule a:hover {
    color: var(--text-white);
    border-bottom-color: var(--text-white);
    text-shadow: 0 0 8px rgba(112, 200, 193, 0.8);
}


/* ==========================================================================
   2. PAGE D'ÉCHEC DE ROUTAGE (404.PHP)
   ========================================================================== */

body.product-page-layout-root .product-hero-banner-bg.banner-core {
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #061318;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-image : linear-gradient( to bottom, rgba(6, 19, 24, 0.4) 0%, rgba(6, 19, 24, 0.2) 60%, var(--bg-dark-lab) 100%), url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' fill='none' %3e%3cpath d='M0,200 C360,300 720,100 1080,250 C1260,325 1380,280 1440,230' stroke='%2370C8C1' stroke-width='1.5' stroke-opacity='0.25' /%3e%3cpath d='M0,150 C400,80 800,280 1200,180 C1320,146 1400,190 1440,210' stroke='%2370C8C1' stroke-width='1' stroke-dasharray='4 4' stroke-opacity='0.15' /%3e%3cpath d='M0,280 C300,180 600,320 900,220 C1200,120 1350,240 1440,260' stroke='%23E2947E' stroke-width='1' stroke-opacity='0.12'/%3e%3c/svg%3e") !important;
    animation: translationImpulsionCore 10s infinite ease-in-out, defilementFluxPointilles 15s infinite linear !important;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

body.product-page-layout-root .hero-desc-block-centered {
    max-width: 820px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    box-sizing: border-box;
}

body.product-page-layout-root .hero-desc-block-centered .product-badge {
    display: inline-block;
    background: rgba(226, 148, 126, 0.15);
    color: var(--corail);
    font-size: 12px;                     
    font-weight: 800;                        
    text-transform: uppercase;
    letter-spacing: 2px;                     
    padding: 8px 16px;                       
    border-radius: 4px;
    margin-bottom : 20px; 
    width: max-content;
}

body.product-page-layout-root .hero-desc-block-centered h1 {
    font-size: clamp(30px, 4.5vw, 42px);
    line-height: 1.25;
    font-weight: 300;
    color: var(--text-white);
    margin: 15px auto 25px auto;
    text-align: center;
    letter-spacing: -0.01em;
}

body.product-page-layout-root .hero-desc-block-centered h1 span {
    font-weight: 800;
    color: var(--accent-light);
}

body.product-page-layout-root .hero-desc-block-centered p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-ecume);
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: center;
}

body.product-page-layout-root .hero-desc-block-centered .btn {
    display: inline-block;
    background-color: var(--corail);
    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: var(--transition-fluid);
    margin: 0 auto; 
    width: max-content;
}

body.product-page-layout-root .hero-desc-block-centered .btn:hover {
    background-color: var(--text-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(112, 200, 193, 0.35);
}


/* ==========================================================================
   3. CARTELS ET COMPOSANTS TECHNIQUES (COMMUN)
   ========================================================================== */

body.product-page-layout-root .hero-desc-block-centered .hw-lab-cartel-horizontal,
body.maintenance-viewport-root .maintenance-bento-capsule .hw-lab-cartel-horizontal {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(112, 200, 193, 0.6);
    background: rgba(18, 53, 68, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(112, 200, 193, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto 35px auto; 
}

.maintenance-viewport-root .hw-lab-led,
.product-page-layout-root .hw-lab-led {
    width: 6px;
    height: 6px;
    background-color: #52DE97;
    border-radius: 50%;
    box-shadow: 0 0 6px #52DE97;
    display: inline-block;
}

.product-page-layout-root .hw-lab-led.corail {
    background-color: var(--corail);
    box-shadow: 0 0 6px var(--corail);
}


/* ==========================================================================
   4. PROTECTION RESPONSIVE COMPLÈTE MOBILES
   ========================================================================== */

@media (max-width: 768px) {
    body.maintenance-viewport-root .maintenance-bento-capsule {
        padding: 40px 24px;
        gap: 10px;
    }

    body.product-page-layout-root .hero-desc-block-centered {
        padding: 0 16px;
    }

    body.product-page-layout-root .hero-desc-block-centered .btn {
        display: table;
        width: max-content;
        max-width: 85%;
        padding: 12px 24px;
        font-size: 13px;
        margin: 0 auto;
    }
}