/*
 * assets/css/main.css — Styles globaux du thème NVI
 *
 * Contient : reset/base, layout container, typographies, boutons,
 * header sticky, navigation, footer, dark mode, utilitaires.
 * TOUTES les valeurs de couleur utilisent les variables CSS de style.css (:root).
 * Zéro couleur hexadécimale en dur dans ce fichier.
 *
 * Ordre des sections :
 *  1. Reset & Base
 *  2. Layout & Container
 *  3. Typographies
 *  4. Boutons (nvii-btn)
 *  5. Skip link & Loader
 *  6. Header (top bar + main bar + logo)
 *  7. Navigation desktop + dropdowns
 *  8. Header actions (dark toggle, CTA)
 *  9. Hamburger
 * 10. Menu mobile (overlay full-screen)
 * 11. Footer
 * 12. Dark mode overrides
 * 13. Utilitaires
 */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* iOS Safari : empêche scroll horizontal parasite */
}

body {
    font-family: var(--font-body);
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Décale le contenu sous le header fixe : header-top(38px) + header-main(80px) */
    padding-top: 118px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

/* ==========================================================================
   2. LAYOUT & CONTAINER
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

/* ==========================================================================
   3. TYPOGRAPHIES
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--ink);
}

h4, h5, h6 {
    font-family: var(--font-condensed);
    line-height: 1.3;
}

/* ==========================================================================
   4. BOUTONS (nvii-btn)
   ========================================================================== */

.nvii-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    line-height: 1;
}

.nvii-btn--primary {
    background: var(--gradient-nvi);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nvii-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.nvii-btn--outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.nvii-btn--outline:hover {
    background: var(--red);
    color: var(--white);
}

.nvii-btn--accent {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.nvii-btn--accent:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   5. SKIP LINK & LOADER
   ========================================================================== */

.nvii-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}

.nvii-skip-link:focus {
    top: 8px;
}

/* -----------------------------------------------------------------------
   LOADER P03 — Plein écran navy + logo + barre de progression rouge
   Masqué par .is-hidden (transition CSS) + inline styles fallback (animations.js)
   Ne se rejoue pas après la 1ère visite (localStorage → classe nvii-loader-skip sur <html>)
----------------------------------------------------------------------- */

/* Loader déjà vu : masqué AVANT le premier pixel — fonctionne même avec le cache serveur */
.nvii-loader-skip #nvii-loader {
    display: none !important;
}

.nvii-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0F5F73; /* Navy — hardcoded pour garantir l'affichage immédiat */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nvii-loader.is-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Logo image (si custom logo défini dans WP) */
.loader-logo img {
    max-width: 200px;
    height: auto;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 0.2s forwards;
    filter: brightness(0) invert(1); /* Force blanc sur fond navy */
}

/* Logo texte fallback */
.loader-logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 0.2s forwards;
}

.loader-logo-text strong {
    color: var(--red);
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    font-weight: 400;
    margin-top: 4px;
}

/* Barre de progression */
.loader-bar-wrapper {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: loaderFadeIn 0.3s ease 0.4s forwards;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--red), var(--surface-dark-2));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tagline */
.loader-tagline {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    opacity: 0;
    animation: loaderFadeIn 0.4s ease 0.6s forwards;
}

@keyframes loaderFadeIn {
    to { opacity: 1; }
}

/* -----------------------------------------------------------------------
   LOADER — Variante vidéo (.has-video)
   La vidéo est positionnée en cover derrière le contenu du loader.
   loader-inner flotte au-dessus grâce au z-index.
----------------------------------------------------------------------- */

/* Wrapper vidéo : couvre tout le loader */
.nvii-loader.has-video .loader-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0F5F73; /* visible pendant le buffering */
}

/* Vidéo en cover CSS */
.nvii-loader.has-video .loader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay léger pour assurer la lisibilité du logo */
.nvii-loader.has-video .loader-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 58, 107, 0.35) 0%,
        rgba(27, 58, 107, 0.20) 50%,
        rgba(27, 58, 107, 0.50) 100%
    );
}

/* Logo + tagline flottent au-dessus */

/* En mode vidéo, le logo est toujours blanc (fond video variable) */
.nvii-loader.has-video .loader-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.nvii-loader.has-video .loader-logo-text {
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.nvii-loader.has-video .loader-tagline {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ==========================================================================
   5b. CURSEUR PERSONNALISÉ (desktop ≥ 1024px uniquement)
   ========================================================================== */

/* Masqué par défaut : sur mobile/tactile le JS ne s'exécute pas (gardes
   innerWidth<1024 + pointer:fine), donc l'élément ne doit JAMAIS s'afficher.
   On le rend explicitement invisible plutôt que de compter sur l'absence de
   style. Réactivé dans le @media ≥1024 ci-dessous. */
.nvii-cursor { display: none; }

@media (min-width: 1024px) {

    body.cursor-active {
        cursor: none;
    }

    .nvii-cursor { display: block; }

    body.cursor-active a,
    body.cursor-active button,
    body.cursor-active [role="button"],
    body.cursor-active input,
    body.cursor-active textarea,
    body.cursor-active select,
    body.cursor-active label {
        cursor: none;
    }

    .nvii-cursor {
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 99999;
    }

    /* Position pilotée par les variables --cx/--cy (JS) via TRANSFORM et non
       left/top : le transform reste sur le compositeur, donc plus aucun recalcul
       de layout à chaque frame. --cscale porte l'état clic (voir plus bas). */
    .cursor-dot {
        position: absolute;
        left: 0;
        top: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--red);
        transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) translate(-50%, -50%) scale(var(--cscale, 1));
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
        will-change: transform;
    }

    .cursor-ring {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1.5px solid rgba(226, 38, 32, 0.5);
        transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) translate(-50%, -50%) scale(var(--cscale, 1));
        transition: width 0.3s ease, height 0.3s ease,
                    border-color 0.3s ease, background 0.3s ease;
        will-change: transform;
    }

    /* État hover */
    .nvii-cursor.is-hovering .cursor-dot {
        width: 20px;
        height: 20px;
        background: var(--surface-dark);
    }

    .nvii-cursor.is-hovering .cursor-ring {
        width: 60px;
        height: 60px;
        border-color: var(--red);
        background: rgba(226, 38, 32, 0.08);
    }

    /* État clic — pilote --cscale, jamais transform directement, sinon la
       position (--cx/--cy) serait écrasée. */
    .nvii-cursor.is-clicking .cursor-dot {
        --cscale: 0.6;
    }

    .nvii-cursor.is-clicking .cursor-ring {
        --cscale: 0.8;
    }}
 /* fin @media ≥ 1024px */

/* ==========================================================================
   5c. HERO PLEIN ÉCRAN — Homepage
   ========================================================================== */

/* Homepage : pas de padding-top body (le hero part du haut de la page,
   le header fixe flotte par-dessus, .hero-content compense en interne) */
body.home {
    padding-top: 0;
}

.nvii-hero {
    position: relative;
    min-height: 100vh;      /* grandit si le contenu dépasse (jamais de clipping du titre) */
    display: flex;
    align-items: flex-start; /* ancré en haut : le contenu ne peut plus passer sous le header
                                (avant : center → avec les 2 portes, le titre remontait sous le menu) */
    overflow: hidden;
    /* Image de fond via custom property PHP inline */
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax CSS natif — désactivé <1024px via responsive.css */
}

/* Fallback si pas d'image : dégradé signature NVI */
.nvii-hero:not([style*="--hero-bg"]) {
    background: linear-gradient(135deg, #0F5F73 0%, #0F5F73 60%, #E22620 100%);
}

/* Overlay dégradé navy → rouge */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 58, 107, 0.90) 0%,
        rgba(27, 58, 107, 0.78) 60%,
        rgba(226, 38, 32, 0.55) 100%
    );
    z-index: 1;
}

/* Contenu — au-dessus de l'overlay */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Décalage = hauteur réelle du header (bandeau + top + main) + une marge,
       pour que le titre commence toujours SOUS le menu. */
    padding-top: calc(var(--nvii-header-h, 118px) + clamp(20px, 5vh, 56px));
    padding-bottom: clamp(32px, 6vh, 72px);
    will-change: transform, opacity; /* Optimisation parallax JS */
}

/* Badge catégorie */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(226, 38, 32, 0.15);
    border: 1px solid rgba(226, 38, 32, 0.4);
    color: var(--red);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

/* Titre H1 */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 700;
    color: #FFFFFF; /* Toujours blanc sur hero overlay — pas de var(--white) */
    line-height: 1.1;
    max-width: 780px;
    margin: 0 0 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

/* Sous-titre */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    line-height: 1.75;
    margin: 0 0 40px;
}

/* CTA container (legacy — conservé pour compat) */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 64px;
}

/* ---- A (Adecco) : LA PORTE DOUBLE — tri employeur / candidat ---- */
.hero-doors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 720px;
    margin: 0 0 22px;
}
.hero-door {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 3px solid var(--red);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s var(--ease-premium),
                background 0.35s, border-color 0.35s;
}
.hero-door:hover,
.hero-door:focus-visible {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
}
.hero-door__eyebrow {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}
.hero-door__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.1;
}
.hero-door__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
}
.hero-door__arrow { flex: none; transition: transform 0.3s var(--ease-premium); }
.hero-door:hover .hero-door__cta .hero-door__arrow { transform: translateX(4px); }

.hero-devis-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 56px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-decoration: none;
}
.hero-devis-link:hover { color: #fff; text-decoration: underline; }
.hero-devis-link .hero-door__arrow { width: 14px; height: 14px; }

@media (max-width: 640px) {
    .hero-doors { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-door, .hero-door__arrow { transition: none; }
    .hero-door:hover, .hero-door:focus-visible { transform: none; }
}

/* ---- Boutons globaux (réutilisés partout sur le site) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--red);
    color: var(--ink);
    border-color: var(--red);
}

.btn-primary:hover {
    background: #1B829B;
    border-color: #1B829B;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(226, 38, 32, 0.40);
    color: var(--ink);
}

.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #FFFFFF;
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Scroll indicator */
.hero-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.72rem;
    font-family: var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.scroll-arrow span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    animation: scrollPulse 1.6s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.3s;
    width: 14px;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%       { opacity: 1;   transform: translateY(4px); }
}

/* Vague décorative en bas du hero
   color hérite de var(--white) : #FFFFFF en light, #141412 en dark
   Le SVG path utilise fill="currentColor" pour suivre cette valeur. */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
    color: #FFFFFF; /* Light mode : blanc = couleur body */
}

/* Dark mode .hero-wave → voir section 12 */

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ==========================================================================
   6. HEADER — Structure générale
   ========================================================================== */

.nvii-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* transform géré explicitement pour le hide/show — évite "all" sur un élément fixe */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Décale le header sous la barre d'admin WP (visible uniquement en back-office) */
body.admin-bar .nvii-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .nvii-header {
        top: 46px; /* Admin bar mobile = 46px */
    }}

/* Header masqué (scroll DOWN au-delà du hero) → glisse hors écran vers le haut */
.nvii-header.is-hiding {
    transform: translateY(-100%);
}

/* ------- Bandeau supérieur ------- */
.header-top {
    background-color: var(--surface-dark);
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    gap: 16px;
}

.header-top__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.header-top__link:hover {
    color: var(--red);
}

.header-top__link--wa:hover {
    color: #25D366;
}

.header-top__location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Bandeau collapsé quand sticky */
.nvii-header.is-sticky .header-top {
    max-height: 0;
    opacity: 0;
}

/* ------- Barre principale ------- */
.header-main {
    background-color: var(--surface-dark);
    height: 80px;
    position: relative; /* Ancre le mega-menu en position absolue */
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-main__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

/* Logo : largeur fixe, ne rétrécit pas */
.header-main__inner .header-logo {
    flex: 0 0 auto;
    margin-right: 20px;
}

/* Nav : prend tout l'espace disponible, centrage du contenu */
.header-main__inner .header-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    overflow: visible;
}

/* Actions (CTA + dark toggle + hamburger) : largeur fixe à droite */
.header-main__inner .header-actions {
    flex: 0 0 auto;
    margin-left: 16px;
}

/* Conteneur header plus large pour loger tous les items nav */
.header-main .container {
    max-width: 1400px;
    padding: 0 20px;
}

/* Header sticky — barre blanche + ombre */
.nvii-header.is-sticky .header-main {
    height: 65px;
    background-color: var(--white);
    box-shadow: 0 2px 16px rgba(27, 58, 107, 0.12);
}

/* Homepage hero : transparent UNIQUEMENT pendant le scroll actif */
/* Dès que le scroll s'arrête (.is-scrolling retiré), le header redevient
   solide (fond navy par défaut de .header-main) → toujours visible */
.home .nvii-header:not(.is-sticky).is-scrolling .header-main {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home .nvii-header:not(.is-sticky).is-scrolling .header-top {
    background-color: rgba(27, 58, 107, 0.75);
}

/* Dark mode homepage header → voir section 12 */

/* ------- Logo ------- */
.header-logo {
    justify-self: start;
}

.nvii-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Image logo — taille de base */
.header-logo img,
.header-logo .nvii-logo-img,
.header-logo .custom-logo {
    height: 56px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* Logo PNG fond transparent — aucun filtre ni blend-mode nécessaire.
   Le fond transparent laisse voir le header derrière.
   !important : neutralise tout CSS additionnel du Customizer WP qui aurait
   gardé d'anciens filter:invert() des sessions de débogage précédentes. */
.nvii-logo-img {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Sticky : logo légèrement réduit */
.nvii-header.is-sticky .nvii-logo-img {
    height: 46px;
}

/* Dark mode : glow rouge discret pour rendre le logo lisible sur fond sombre */

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo-text span {
    color: var(--red);
}

.nvii-header.is-sticky .logo-text {
    color: var(--ink) !important;
}

/* ==========================================================================
   7. NAVIGATION DESKTOP + DROPDOWNS
   ========================================================================== */

.header-nav {
    display: flex;
    justify-content: center;
    justify-self: center;
}

.nvii-nav {
    display: flex;
    align-items: center;
    gap: 1px;
    list-style: none;
}

.nvii-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

/* Fond "pill" sur le LI entier — couvre link + chevron */
.nvii-nav__item:hover,
.nvii-nav__item.current-menu-item,
.nvii-nav__item.current-menu-ancestor {
    background-color: rgba(226, 38, 32, 0.08);
}

.nvii-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 9px;
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
}

/* Header bleu (non-sticky) : le lien actif/survol reste BLANC et prend un
   SOULIGNEMENT rouge. Le rouge en texte sur le bleu charte est illisible
   (contraste 1.56) ; on le garde comme indicateur, pas comme couleur de texte.
   Le sticky (header blanc) conserve son rouge sur blanc, lisible (règle plus bas). */
.nvii-nav__link:hover,
.nvii-nav__item.current-menu-item > .nvii-nav__link,
.nvii-nav__item.current-menu-ancestor > .nvii-nav__link {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--red);
}

/* Sticky light mode — textes navy sur fond blanc, spécificité renforcée */
.nvii-header.is-sticky .header-nav .nvii-nav__link,
.nvii-header.is-sticky .nvii-nav .nvii-nav__link {
    color: var(--ink) !important;
}

.nvii-header.is-sticky .header-nav .nvii-nav__link:hover,
.nvii-header.is-sticky .nvii-nav .nvii-nav__link:hover,
.nvii-header.is-sticky .nvii-nav__item.current-menu-item > .nvii-nav__link,
.nvii-header.is-sticky .nvii-nav__item.current-menu-ancestor > .nvii-nav__link {
    color: #E22620 !important;
    /* background géré au niveau du <li> .nvii-nav__item */
}

/* Chevron pour items parents */
.nvii-nav__chevron {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    color: inherit;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.2s;
    margin-left: -4px;
}

.nvii-nav__item.is-open > .nvii-nav__chevron,
.nvii-nav__item:hover > .nvii-nav__chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--red);
}

/* ------- Dropdown ------- */
.nvii-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 290px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--red);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 100;
}

/* Visible au hover ET quand .is-open (clavier/JS) */
.nvii-nav__item:hover > .nvii-dropdown,
.nvii-nav__item.is-open > .nvii-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Lien dropdown enrichi : icône + titre + sous-titre */
.nvii-dropdown__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 3px 8px;
    border-radius: 4px;
    border-left: none;
    text-decoration: none;
    color: var(--ink);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.nvii-dropdown__link:hover {
    background-color: var(--gray-light);
    color: var(--ink);
    transform: translateX(3px);
}

/* Icône SVG dans le dropdown — couleur propre à chaque service via CSS vars injectées par le Walker */
.nvii-dd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: var(--dd-icon-bg, linear-gradient(135deg, rgba(27,58,107,0.08), rgba(226, 38, 32,0.12)));
    color: var(--dd-icon-clr, var(--ink));
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.nvii-dropdown__link:hover .nvii-dd-icon {
    background: linear-gradient(135deg, rgba(226, 38, 32,0.15), rgba(226, 38, 32,0.25));
    color: var(--red);
}

/* Textes : titre + sous-titre */
.nvii-dd-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nvii-dd-title {
    font-family: var(--font-condensed);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.2;
}

.nvii-dd-sub {
    font-size: 0.75rem;
    color: var(--gray-mid);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

/* ==========================================================================
   7-B. MEGA-MENU "NOS SERVICES" — dropdown 2 colonnes, ancré sur header-main
   ========================================================================== */

/* Le parent "Nos Services" sort du flux relatif → dropdown ancré sur header-main */
.nvii-nav__item--mega {
    position: static;
}

/* Le dropdown devient une grille 2×4 services */
.nvii-nav__item--mega > .nvii-dropdown {
    position: absolute;
    /* Centré horizontalement sous toute la barre principale */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    top: 100%;
    min-width: 700px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 10px 10px;
    gap: 4px;
    border-top: 3px solid var(--red);
}

/* Ouvert */
.nvii-nav__item--mega:hover > .nvii-dropdown,
.nvii-nav__item--mega.is-open > .nvii-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Item hub "Voir tous nos services" : span 2 colonnes + style CTA discret */
.nvii-dd--hub {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(27, 58, 107, 0.1);
    margin-top: 6px;
    padding-top: 4px;
}

.nvii-dd--hub .nvii-dropdown__link {
    background: rgba(27, 58, 107, 0.04);
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
}

.nvii-dd--hub .nvii-dd-title {
    font-size: 0.85rem;
    color: var(--ink);
}

.nvii-dd--hub .nvii-dropdown__link:hover {
    background: rgba(226, 38, 32, 0.08);
    transform: none;
}

.nvii-dd--hub .nvii-dropdown__link:hover .nvii-dd-title {
    color: var(--red);
}

/* ==========================================================================
   8. HEADER ACTIONS (dark toggle, CTA devis)
   ========================================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

/* CTA "Demander un devis" */
.header-cta {
    /* Hérite des styles .nvii-btn--primary */
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ── Dark mode toggle : pill visible avec label ── */

/* Sticky : fond blanc → couleurs inversées */

/* Icônes soleil/lune — une seule affichée selon le thème */

/* ==========================================================================
   FAB GROUP — Boutons flottants (WhatsApp + Google Avis + Dark mode mobile)
   ========================================================================== */

.nvii-fab-group {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 9990;
}

/* Base FAB */
.nvii-fab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    /* Animation d'entrée */
    animation: nviiFabIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 4 FABs : dark / google / phone / whatsapp */
.nvii-fab:nth-child(1) { animation-delay: 0.4s; }
.nvii-fab:nth-child(2) { animation-delay: 0.6s; }
.nvii-fab:nth-child(3) { animation-delay: 0.8s; }
.nvii-fab:nth-child(4) { animation-delay: 1.0s; }

@keyframes nviiFabIn {
    from { opacity: 0; transform: scale(0.3) translateX(30px); }
    to   { opacity: 1; transform: scale(1) translateX(0); }
}

.nvii-fab:hover,
.nvii-fab:focus-visible {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.28);
    outline: none;
}

/* ── WhatsApp ── */
.nvii-fab--whatsapp {
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

/* Pulse animé WhatsApp */
.nvii-fab--whatsapp::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.35);
    animation: nviiWaPulse 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes nviiWaPulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.45); opacity: 0;   }
    100% { transform: scale(1.45); opacity: 0;   }
}

/* ── Menu WhatsApp multi-intention (P20) ── */
.nvii-fab-wa {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.nvii-wa-menu {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    width: 268px;
    max-width: calc(100vw - 40px);
    padding: 10px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(29, 29, 27, 0.22);
    z-index: 1;
    transform-origin: bottom right;
    animation: nviiWaMenuIn 0.2s ease both;
}

@keyframes nviiWaMenuIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nvii-wa-menu::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: 3px 3px 6px rgba(29, 29, 27, 0.06);
}

.nvii-wa-menu__head {
    margin: 4px 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.nvii-wa-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease;
}

.nvii-wa-opt:hover,
.nvii-wa-opt:focus-visible {
    background: var(--gray-light);
    outline: none;
}

.nvii-wa-opt__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .nvii-wa-menu { animation: none; }
}

/* ── Google Avis ── */
.nvii-fab--google {
    background: var(--white);
    border: 1.5px solid #E8E8E5;
    color: var(--gray-dark);
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.14);
}

/* ── Appel téléphonique ── */
.nvii-fab--phone {
    background: linear-gradient(145deg, #0F5F73 0%, #E22620 100%);
    color: #fff;
}

/* ── Dark mode FAB (visible uniquement sur mobile, géré dans responsive.css) ── */

/* Icônes soleil/lune dans le FAB dark */

/* ── Tooltip ── */
.nvii-fab__tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 25, 45, 0.93);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

/* Flèche du tooltip */
.nvii-fab__tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(15, 25, 45, 0.93);
}

.nvii-fab:hover .nvii-fab__tooltip,
.nvii-fab:focus-visible .nvii-fab__tooltip {
    opacity: 1;
}

/* ── Dark mode overrides FABs ── */

/* ==========================================================================
   9. HAMBURGER (mobile uniquement, affiché via responsive.css)
   ========================================================================== */

.nvii-hamburger {
    display: none;   /* Affiché à ≤1200px via responsive.css */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 4px;
    color: var(--white);
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.nvii-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nvii-header.is-sticky .nvii-hamburger {
    color: var(--ink) !important;
}

.nvii-hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animation hamburger → X */
.nvii-header.menu-open .nvii-hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nvii-header.menu-open .nvii-hamburger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nvii-header.menu-open .nvii-hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   10. MENU MOBILE — Overlay plein écran
   ========================================================================== */

.header-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-dark);
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-top: 80px; /* espace sous le header */
}

.header-mobile-menu.is-open {
    transform: translateY(0);
}

.mobile-menu__inner {
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Bouton fermeture ✕ — positionné en haut à droite du panel mobile */
.mobile-menu__close {
    align-self: flex-end !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-bottom: -8px;
    /* z-index pour s'assurer qu'il est cliquable */
    position: relative;
    z-index: 10;
}

/* Le SVG ne doit PAS capturer les clics — ils passent au bouton parent */
.mobile-menu__close svg {
    pointer-events: none;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
    background: rgba(226, 38, 32, 0.30) !important;
    border-color: rgba(226, 38, 32, 0.70) !important;
    outline: none;
}

/* Dark mode */

/* Nav mobile */
.nvii-mobile-nav {
    list-style: none;
    padding: 0;   /* BUG 1 fix: annule le padding-left:40px par défaut du <ul> navigateur */
    margin: 0;
}

/* LI : flex-wrap pour que le dropdown passe à la ligne en dessous du lien+chevron
   CRITIQUE : sans flex-wrap, le <ul class="nvii-dropdown"> (position:static en mobile)
   se retrouve dans la même ligne flex → min-width:290px crée un débordement invisible. */
.nvii-mobile-nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nvii-mobile-nav > li:last-child {
    border-bottom: none;
}

/* Override display:flex du <li> hérité de .nvii-nav__item → flex-wrap + row */
.nvii-mobile-nav > li.nvii-nav__item {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

/* Lien : flex:1 pour occuper toute la largeur disponible et pousser le chevron à droite */
.nvii-mobile-nav > li > a,
.nvii-mobile-nav > li > .nvii-nav__link {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* Chevron mobile — grande zone de tap (min 44×44px), ne rétrécit pas */
.nvii-mobile-nav .nvii-nav__chevron {
    flex-shrink: 0;
    padding: 12px 16px;
    color: var(--white);
    opacity: 0.7;
    margin-left: 0;
}

.nvii-mobile-nav .nvii-nav__item.is-open > .nvii-nav__chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--red);
}

/* Dropdown mobile (accordion) :
   - flex-basis:100% → passe sur sa propre ligne (grâce au flex-wrap du li)
   - min-width:0 → annule le min-width:290px hérité du desktop
   - max-height:0 → caché, transition vers 1200px à l'ouverture */
.nvii-mobile-nav .nvii-dropdown {
    flex-basis: 100%;
    min-width: 0 !important;
    width: 100%;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 8px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    pointer-events: none;
    z-index: auto;
}

.nvii-mobile-nav .nvii-nav__item.is-open > .nvii-dropdown {
    max-height: 1200px;
    pointer-events: auto;
}

.nvii-mobile-nav .nvii-dropdown__link {
    color: rgba(255, 255, 255, 0.80);
    border-left-color: var(--item-color, var(--red));
    margin: 0;
    padding: 10px 12px;
}

.nvii-mobile-nav .nvii-dropdown__link:hover,
.nvii-mobile-nav .nvii-dropdown__link:focus {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.07);
}

/* Couleurs textes dropdown sur fond navy (mobile) */
.nvii-mobile-nav .nvii-dd-title {
    color: rgba(255, 255, 255, 0.92);
}

.nvii-mobile-nav .nvii-dd-sub {
    color: rgba(255, 255, 255, 0.50);
}

.nvii-mobile-nav .nvii-dd-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--red);
}

/* Reset mega-menu (centrage absolu desktop → accordion static mobile) */
.header-mobile-menu .nvii-nav__item--mega {
    position: relative;
}

.header-mobile-menu .nvii-nav__item--mega > .nvii-dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none !important;
    min-width: unset;
    width: 100%;
    border-radius: 0;
    border-top: none;
    display: block;
    grid-template-columns: unset;
}

.header-mobile-menu .nvii-nav__item--mega:hover > .nvii-dropdown,
.header-mobile-menu .nvii-nav__item--mega.is-open > .nvii-dropdown {
    transform: none !important;
}

/* Scroll lock quand menu mobile ouvert */
body.nvii-menu-open {
    overflow: hidden;
}

/* iOS : défilement fluide dans le menu mobile */
.header-mobile-menu {
    -webkit-overflow-scrolling: touch;
}

/* Contacts dans le menu mobile */
.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mobile-menu__contacts a:hover {
    color: var(--red);
}

.mobile-menu__cta {
    padding-top: 8px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.nvii-footer {
    background: var(--surface-dark);
    color: var(--white);
    padding: 72px 0 0;
}

.footer-grid {
    display: grid;
    /* 5 colonnes (structure Adecco par public) : marque · solutions ·
       candidats · employeurs · NVI/contact. auto-fit = adaptatif : 5 sur
       grand écran, moins quand ça rétrécit, sans breakpoint fragile. */
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 40px 32px;
    padding-bottom: 56px;
}
/* La colonne marque respire un peu plus que les colonnes de liens. */
.footer-grid .footer-brand { grid-column: span 1; min-width: 210px; }

/* Liens corporate + sous-titre contact dans la 5ᵉ colonne */
.footer-corp-links { margin-bottom: 22px; }
.footer-contact__label {
    margin: 0 0 12px;
    font-family: var(--font-condensed);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Colonne brand */
.footer-brand .logo-text {
    font-size: 1.6rem;
    display: inline-block;
    margin-bottom: 12px;
}

/* Logo image dans le footer — fond footer est foncé → mix-blend-mode: screen */
.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(1.15);
    margin-bottom: 14px;
}

.footer-brand .footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.footer-social__link:hover {
    border-color: var(--red);
    color: var(--red);
    background-color: rgba(226, 38, 32, 0.1);
}

/* Colonnes nav */
.footer-col__title {
    font-family: var(--font-condensed);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul a::before {
    content: '→';
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-col ul a:hover {
    color: var(--red);
    padding-left: 4px;
}

.footer-col ul a:hover::before {
    opacity: 1;
}

/* Colonne contact */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.footer-contact-info__item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--red);
}

.footer-contact-info__item a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.footer-contact-info__item a:hover {
    color: var(--red);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(226, 38, 32, 0.25);
    padding: 20px 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom__copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom__links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-bottom__links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.footer-bottom__links a:hover {
    color: var(--red);
}

.footer-bottom__by {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom__by a {
    color: var(--red);
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-bottom__by a:hover {
    opacity: 0.75;
}

/* ==========================================================================
   P04 — SECTIONS HOMEPAGE
   Bandeau urgence · Services Grid · Chiffres Clés · Pourquoi NVI ·
   Process Qualité · Témoignages · CTA Devis
   Classes communes : .nvii-section, .section-header, .section-label,
   .section-title, .section-subtitle
   ========================================================================== */

/* ------- Wrapper section P04 ------- */
.nvii-section {
    padding: var(--section-padding);
}

/* ------- En-tête de section commun ------- */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-mid);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================================
   BANDEAU URGENCE
   ================================================================ */

.nvii-bandeau-urgence {
    background-color: var(--bandeau-color, var(--red));
    color: #181816; /* Texte sombre sur fond clair */
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 0;
    text-align: center;
    /* Pas de position/z-index : à l'intérieur du header fixe */
}

.nvii-bandeau-urgence .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bandeau-texte {
    margin: 0;
    padding: 0 40px;
}

.bandeau-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0.65;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bandeau-close:hover { opacity: 1; }

/* ================================================================
   SERVICES GRID
   ================================================================ */

.nvii-services-section {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* Barre couleur en haut — animée au hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--card-color, var(--red));
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Icône — pseudo-element pour fond sans affecter les enfants */

/* Barre accent bas — décor */

.services-cta {
    text-align: center;
    margin-top: 8px;
}

/* ================================================================
   CHIFFRES CLÉS
   ================================================================ */

.nvii-chiffres-section {
    background: var(--gradient-nvi);
    padding: 72px 0;
}

.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.chiffre-item {
    color: #FFFFFF;
    padding: 16px 8px;
}

.chiffre-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.chiffre-nombre {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.chiffre-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

/* ================================================================
   POURQUOI NVI
   ================================================================ */

.nvii-why-section {
    background-color: var(--gray-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* 7e item centré sur grille 3 colonnes (row 3, col 2) */
.why-item:last-child {
    grid-column: 2 / 3;
}

.why-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--red);
    border-color: rgba(226, 38, 32, 0.15);
}

.why-cta {
    text-align: center;
    margin-top: 8px;
}

/* ================================================================
   PROCESS QUALITÉ — Timeline 6 étapes
   ================================================================ */

.nvii-process-section {
    background: var(--white);
    overflow: hidden;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 8px;
    position: relative;
}

/* Ligne de connexion horizontale */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 31px; /* Centre du cercle step-num (64px / 2 - 1px) */
    left: calc(8.33% / 2);  /* Milieu de la première colonne */
    right: calc(8.33% / 2);
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--surface-dark));
    z-index: 0;
    opacity: 0.35;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 8px;
}

.step-num {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-dark-2));
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-num {
    background: linear-gradient(135deg, var(--red), var(--surface-dark-2));
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--ink);
}

.step-titre {
    font-family: var(--font-condensed);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--gray-mid);
    line-height: 1.55;
}

/* ================================================================
   TÉMOIGNAGES — Carrousel scroll-snap
   ================================================================ */

.nvii-temoignages-section {
    background-color: var(--gray-light);
}

/* Note « exemples » — visible tant qu'aucun vrai témoignage n'est publié (C). */
.temoignages-exemple-note {
    max-width: 720px;
    margin: -8px auto 28px;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gray-mid);
    background: rgba(226, 38, 32, 0.06);
    border: 1px dashed rgba(226, 38, 32, 0.35);
    border-radius: var(--border-radius);
}
.temoignages-exemple-note strong { color: var(--red); }

.temoignages-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-top: 8px;
}

.temoignages-carousel::-webkit-scrollbar { display: none; }

.temoignage-card {
    min-width: calc(33.33% - 16px);
    scroll-snap-align: start;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.temoignage-stars {
    margin-bottom: 18px;
}

.star {
    color: #D3D3D0;
    font-size: 1.15rem;
    line-height: 1;
}

.star.filled { color: #C06800; }

.temoignage-texte {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 24px;
    padding-left: 16px;
    border-left: 3px solid var(--red);
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0; /* Évite le flex-blowout sur les enfants de flex column */
}

.temoignage-auteur {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.auteur-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.auteur-initiale {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-nvi);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.auteur-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auteur-info strong {
    display: block;
    font-family: var(--font-condensed);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.auteur-info span {
    font-size: 0.8rem;
    color: var(--gray-mid);
    line-height: 1.3;
}

/* Navigation carrousel */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--surface-dark);
    color: #FFFFFF;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-mid);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s ease, width 0.25s ease, border-radius 0.25s ease;
}

.dot.active {
    background: var(--surface-dark);
    width: 24px;
    border-radius: 4px;
}

/* ================================================================
   CTA DEVIS — Bande finale de conversion
   ================================================================ */

.nvii-cta-section {
    position: relative;
    padding: 88px 0;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-nvi);
}

/* Décors géométriques flottants */
.cta-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.cta-deco--1 {
    width: 400px;
    height: 400px;
    background: var(--white);
    top: -100px;
    left: -100px;
}

.cta-deco--2 {
    width: 300px;
    height: 300px;
    background: var(--red);
    bottom: -80px;
    right: -60px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-titre {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-sous-titre {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-body);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* Indicateurs de confiance */
.cta-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-body);
}

/* ==========================================================================
   12. DARK MODE OVERRIDES
   =========================================================================
   Architecture :
   - --ink est redéfini à #E6E6E3 dans style.css → tous les color:var(--ink)
     deviennent automatiquement clairs en dark mode.
   - --white → #141412 (fond sombre), --gray-dark → #E4E4E1 (texte clair)
   - Les backgrounds qui utilisaient var(--ink) ont des overrides explicites
     ci-dessous pour éviter qu'ils deviennent clairs.
   - Hiérarchie des surfaces en dark mode (du plus sombre au plus clair) :
     footer-bottom (#060605) < footer (#0C0C0B) < body (#141412)
     < section-alt (#1F1F1D) < header (#232320) < sticky-header (#2B2B28)
   ========================================================================== */

/* ---- Base body ---- */

/* Sections alternées — légèrement plus claires que le body */

/* Sections gradient — var(--white) = #141412 en dark → texte sombre sur dégradé
   On force le blanc pour garder le texte lisible sur les fonds colorés */

/* ----------------------------------------------------------------
   HERO DARK — Gradient plus sombre pour contraster avec le light mode
---------------------------------------------------------------- */

/* Vague bas hero — suit la couleur du body */

/* ----------------------------------------------------------------
   BOUTONS DARK — Corrections critiques liées aux vars CSS
   .nvii-btn--primary : color:var(--white) → #141412 (invisible sur gradient)
   .btn-primary       : color:var(--ink)  → #E6E6E3 (peu contrasté sur rouge)
---------------------------------------------------------------- */

/* Bouton gradient (nvii-btn--primary) — texte blanc forcé */

/* Bouton rouge hero (btn-primary) — texte sombre sur rouge pour contraste */

/* Bouton outline global — reste lisible */

/* ----------------------------------------------------------------
   HEADER DARK — Élévation visuelle claire vs le body
   Light mode  : header = navy #1D1D1B (chaud, coloré)
   Dark mode   : header = #232320 (froid, sombre mais PLUS CLAIR que le body)
   → La différence est VISIBLE immédiatement au toggle
---------------------------------------------------------------- */

/* Bandeau supérieur */

/* Barre principale — PLUS CLAIRE que body (#141412) pour créer l'élévation */

/* Homepage non-sticky — transparent sur hero UNIQUEMENT pendant le scroll actif */

/* ---- Logo ---- */

/* ---- Nav links desktop ---- */

/* ---- Bouton toggle + hamburger ---- */

/* ----------------------------------------------------------------
   HEADER STICKY DARK — encore plus élevé que non-sticky
   Fond #2B2B28 + glow rouge pour signal de scroll visible
---------------------------------------------------------------- */

/* Override de TOUS les !important du mode clair sticky */

/* ----------------------------------------------------------------
   DROPDOWNS DARK
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   MENU MOBILE DARK
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   FOOTER DARK — Clairement plus sombre que le body
   Light mode : navy #1D1D1B (couleur chaude)
   Dark mode  : #0C0C0B (quasi-noir, net contraste avec body #141412)
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   TYPOGRAPHIE DARK — Titres, corps, sous-titres
   Note : h1/h2/h3 { color: var(--ink) } → var(--ink) = #E6E6E3 en dark
   → les titres sont automatiquement clairs SANS override explicite.
   Ajout des overrides pour la robustesse et les éléments avec color hardcodé.
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   FORMULAIRES DARK
---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   ÉLÉMENTS DIVERS DARK
---------------------------------------------------------------- */

/* Utilitaire .bg-navy — sans override il deviendrait #E6E6E3 (clair) */

/* Cartes génériques (P04+) */

/* ----------------------------------------------------------------
   P04 SECTIONS — Dark mode
   Seuls les éléments dont le background est var(--white) à l'intérieur
   de sections var(--gray-light) nécessitent un override explicite
   (sinon inversion d'élévation : carte plus sombre que son conteneur).

   Auto-OK via remapping des variables :
   • .section-label          → var(--red)      constant
   • .section-title          → var(--ink)      → #E6E6E3
   • .section-subtitle       → var(--gray-mid)  → #A3A3A0
   • .card-title             → var(--ink)      → #E6E6E3
   • .card-desc              → var(--gray-mid)  → #A3A3A0
   • .card-link              → var(--card-color) constant
   • .why-titre / .step-titre→ var(--ink)      → #E6E6E3
   • .why-desc / .step-desc  → var(--gray-mid)  → #A3A3A0
   • .temoignage-texte       → var(--gray-dark) → #E4E4E1
   • .auteur-info strong     → var(--ink)      → #E6E6E3
   • .carousel-btn           → var(--ink)      → #E6E6E3
   • .dot / .dot.active      → var(--gray-mid) / var(--ink)
   • .nvii-why-section       → var(--gray-light)→ #1F1F1D  ✓
   • .nvii-temoignages-section→var(--gray-light)→ #1F1F1D  ✓
   • Chiffres & CTA          → gradient NVI constant       ✓
---------------------------------------------------------------- */

/* Why items : var(--white) → #141412 dans section #1F1F1D = inversion d'élévation */

/* Témoignage cards : var(--white) → #141412 dans section #1F1F1D = inversion */

/* Process section : var(--white) → #141412 = même que body → alternance OK */

/* Step num : renforce le ring rouge en dark mode */

/* Timeline ligne horizontale : plus subtile en dark */

/* Service cards hover complément (bg déjà overridé par .card/.service-card) */

/* ==========================================================================
   P05 — POP-UP CAPTURE EMAIL + BANDEAU URGENCE AMÉLIORÉ
   ========================================================================== */

/* ---- Overlay ---- */
.nvii-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 8000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nvii-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ---- Modale ---- */
.nvii-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: min(520px, calc(100vw - 32px));
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.25);
    z-index: 8001;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease,
                visibility 0.35s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nvii-popup.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Bande déco gauche dégradé */
.popup-deco {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--red), var(--surface-dark));
}

/* Contenu avec espace pour la bande déco */
.popup-content {
    padding: 36px 36px 28px 46px;
}

/* ---- Bouton fermeture ---- */
.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--gray-light);
    color: var(--gray-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.25s;
    z-index: 1;
}

.popup-close:hover {
    background: var(--surface-dark);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* ---- Badge icône ---- */
.popup-badge {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface-dark), var(--surface-dark-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* ---- Textes ---- */
.popup-titre {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.2;
}

.popup-texte {
    font-size: 0.88rem;
    color: var(--gray-mid);
    line-height: 1.65;
    margin-bottom: 22px;
}

/* ---- Formulaire ---- */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-hp {
    display: none;
    position: absolute;
    left: -9999px;
}

.popup-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #DEDEDA;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--gray-dark);
    background: var(--gray-light);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.popup-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(226, 38, 32, 0.15);
    background: var(--white);
}

.popup-field input::placeholder {
    color: var(--gray-mid);
}

/* ---- Bouton submit ---- */
.popup-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    padding: 13px;
    font-size: 0.9rem;
    gap: 10px;
}

.popup-btn-loader {
    display: none;
    align-items: center;
}

/* ---- Spinner animation ---- */
@keyframes nvii-spin {
    to { transform: rotate(360deg); }
}

.popup-spin {
    animation: nvii-spin 0.8s linear infinite;
}

/* ---- Message succès ---- */
.popup-success {
    display: none;
    text-align: center;
    padding: 24px 0 8px;
}

.popup-success__icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1;
}

.popup-success__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.popup-success__msg {
    font-size: 0.88rem;
    color: var(--gray-mid);
}

/* ---- Lien skip ---- */
.popup-skip {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--gray-mid);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    padding: 4px;
}

.popup-skip:hover {
    color: var(--ink);
}

/* ---- Dark mode popup ---- */

/* ---- Bandeau urgence amélioré (P05) ---- */
.bandeau-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 40px; /* espace pour le bouton fermeture */
}

/* Point pulsant */
.bandeau-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--surface-dark);
    display: block;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    animation: nvii-pulse-bandeau 1.6s ease-out infinite;
}

@keyframes nvii-pulse-bandeau {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* CTA dans le bandeau */
.bandeau-cta {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink);
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
    letter-spacing: 0.02em;
}

.bandeau-cta:hover {
    opacity: 0.7;
    color: var(--ink);
}

/* Repositionnement du bouton fermeture */
.nvii-bandeau-urgence .bandeau-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ==========================================================================
   13. UTILITAIRES
   ========================================================================== */

/* Overlay body quand le menu mobile est ouvert */
body.nvii-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   14. PAGE À PROPOS (P06)
   Hero interne · Intro · Mission/Vision · Valeurs
   ========================================================================== */

/* ---- Hero interne (réutilisable toutes pages secondaires) ---- */
.nvii-hero-interne {
    position: relative;
    padding: calc(var(--nvii-header-h, 119px) + 60px) 0 90px;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-dark);
    overflow: hidden;
    min-height: 320px;
}

/* Fallback sans image : dégradé signature NVI */
.nvii-hero-interne:not([style*="--hero-bg"]) {
    background: linear-gradient(135deg, #0F5F73 0%, #0F5F73 60%, #E22620 100%);
}

/* Overlay assombrit l'image de fond pour lisibilité */
.hero-interne-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 58, 107, 0.90) 0%,
        rgba(27, 58, 107, 0.75) 100%
    );
}

.hero-interne-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}
.hero-breadcrumb a:hover,
.hero-breadcrumb a:focus-visible { color: var(--red); }

.breadcrumb-sep { color: var(--red); font-size: 1rem; }

/* Titre H1 */
.hero-interne-titre {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 16px;
}

/* Sous-titre */
.hero-interne-sous-titre {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 580px;
    line-height: 1.65;
}

/* Vague décorative bas de hero */
.hero-interne-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 3;
    line-height: 0;
    /* currentColor = couleur du fond de la section suivante (light/dark) */
    color: #ffffff;
}

.hero-interne-wave svg {
    display: block;
    width: 100%;
    height: 55px;
}

/* ---- Section intro (Qui sommes-nous) ---- */
.nvii-about-intro {
    background: var(--white);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Titre gauche-aligné (override section-title centré) */

/* Visuel droit */

/* Badge statistique sur le visuel */

/* ---- Mission + Vision ---- */

/* Séparateur central */

/* ---- Valeurs fondamentales ---- */

.valeur-card {
    text-align: center;
    padding: 36px 24px;
    border-radius: 12px;
    background: var(--gray-light);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Barre dégradé animée en bas */
.valeur-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--surface-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.valeur-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.valeur-card:hover::after {
    transform: scaleX(1);
}

.valeur-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.valeur-titre {
    font-family: var(--font-condensed);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Dark mode — À Propos ---- */

/* Vague hero-interne : correspond au fond de la section suivante */

/* Sections à fond blanc → fond dark body */

/* Cards Mission/Vision dans section gray-light (→ #1F1F1D) */

/* Badge visuel stat */

/* Valeur card hover : fond blanc → fond dark élevé */

/* ==========================================================================
   15. TYPEWRITER EFFECT (P07)
   ========================================================================== */

/* Typewriter : toutes les lettres posées d'emblée (layout figé), révélées à
   l'opacité. Mots en inline-block nowrap → jamais coupés en plein mot. */
.tw-w  { display: inline-block; white-space: nowrap; }
.tw-ch { opacity: 0; transition: opacity 0.12s ease; }
.tw-ch.is-in { opacity: 1; }
/* Sans animation demandée : tout est visible d'emblée, pas d'effet. */
@media (prefers-reduced-motion: reduce) {
    .tw-ch { opacity: 1; transition: none; }
    .typewriter-cursor { display: none; }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--red);
    vertical-align: middle;
    margin-left: 3px;
    border-radius: 1px;
    animation: nvii-blink 1s step-end infinite;
    transition: opacity 0.4s ease;
}

.typewriter-cursor.is-done {
    opacity: 0;
    animation: none;
}

@keyframes nvii-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ==========================================================================
   16. HUBS FM & RH (P07)
   ========================================================================== */

/* ---- Section commune aux deux hubs ---- */

/* Grille 7 services FM : 4 col desktop, adapté en responsive */

/* Card service hub — lien cliquable avec photo en arrière-plan */

/* ---- Section orbit — Hub FM ---- */

/* Orbit visual (pure CSS) */

/* ---- Section Pourquoi NVI pour le FM ---- */

/* ---- Hub RH — services 2 grandes cards ---- */

/* ---- Synergie FM + RH ---- */

/* ---- Dark mode — Hubs FM & RH ---- */

/* Synergie result : gradient hardcodé en dark mode
   (var(--ink) remmappe en #E6E6E3 clair → fond clair + texte blanc = illisible) */

/* Plus icon : même problème avec var(--ink) dans le gradient */

/* Texte dans synergie-side en dark mode */

/* ==========================================================================
   17. PAGE SERVICE — Template Service × 9 (P08)
   ========================================================================== */

/* ---- Bouton accent (couleur dynamique via --btn-accent) ---- */
.nvii-btn--accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--btn-accent, var(--red));
    color: #ffffff;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.18);
}

.nvii-btn--accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.22);
    color: #ffffff;
}

/* ---- Hero service : variante du hero-interne avec barre accent ---- */
.nvii-hero-service {
    /* Hérite de .nvii-hero-interne — pas de surcharge nécessaire en light */
}

.hero-service-bar {
    position: absolute;
    bottom: 58px;               /* juste au-dessus de la vague */
    left: var(--container-padding, 24px);
    width: 64px;
    height: 4px;
    border-radius: 2px;
    z-index: 4;
    opacity: 0.9;
}

/* ---- Section présentation (image + texte) ---- */
.nvii-service-pres {
    padding: 80px 0;
    background: var(--white);
}

.service-pres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Colonne image */
.service-img-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: visible;
}

.service-img-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    display: block;
    box-shadow: 0 8px 16px rgba(27, 58, 107, 0.15);
}

.service-img-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.2);
    z-index: 2;
}

/* Colonne texte */
.service-pres-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-pres-bar {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.service-pres-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
    display: flex;
    align-items: center;
}

.service-pres-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin: 0;
}

.service-pres-intro {
    color: var(--gray-dark);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
}

.service-pres-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-pres-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.service-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-pres-more {
    margin: 0;
    font-size: 0.88rem;
}

.service-pres-more a {
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-pres-more a:hover {
    opacity: 0.8;
}

.service-pres-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.service-tel-btn {
    font-size: 0.88rem;
    padding: 12px 20px;
}

/* ---- Section prestations complètes ---- */
.nvii-service-prestations {
    padding: 80px 0;
    background: var(--gray-light);
}

.service-title-accent {
    /* couleur injectée via style inline */
}

.prestations-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.prestation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 18px 20px;
    border: 1px solid rgba(27, 58, 107, 0.06);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(27, 58, 107, 0.04);
}

.prestation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 58, 107, 0.1);
}

.prestation-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prestation-text {
    font-size: 0.92rem;
    color: var(--gray-dark);
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Section clientèle cible ---- */

.cible-titre {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

/* ---- Section services connexes ---- */
.nvii-connexes {
    padding: 80px 0;
    background: var(--gray-light);
}

.connexes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.connexe-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(27, 58, 107, 0.07);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(27, 58, 107, 0.06);
    color: inherit;
}

.connexe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(27, 58, 107, 0.12);
    border-color: var(--card-accent, var(--red));
}

.connexe-card-img {
    overflow: hidden;
    height: 200px;
}

.connexe-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.connexe-card:hover .connexe-card-img img {
    transform: scale(1.04);
}

.connexe-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.connexe-accent-bar {
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.connexe-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.connexe-intro {
    font-size: 0.88rem;
    color: var(--gray-dark);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.connexe-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: auto;
    transition: var(--transition);
}

.connexe-card:hover .connexe-link {
    gap: 10px;
}

.connexes-back {
    text-align: center;
    margin-top: 40px;
}

/* ---- Dark mode service template ---- */

/* --------------------------------------------------------------------------
   NVI — Nouvelle Vision Intérim (page RH & Intérim)
   Couleur signature = --red (#1B829B). Variables CSS = dark mode auto.
-------------------------------------------------------------------------- */
.nvi-brand-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.nvi-brand-visual {
    display: flex;
    justify-content: center;
}

.nvi-brand-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 16px rgba(0, 131, 143, 0.22);
    display: block;
}

.nvi-brand-badge {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(145deg, var(--red), #1B829B);
    box-shadow: 0 8px 16px rgba(0, 131, 143, 0.32);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #FFFFFF;
    text-align: center;
    padding: 24px;
}

.nvi-brand-badge__sigle {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
}

.nvi-brand-badge__full {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.95;
}

.nvi-brand-text .section-title {
    margin-bottom: 18px;
}

.nvi-brand-lead {
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 16px;
}

.nvi-brand-text p {
    margin-bottom: 16px;
    color: var(--gray-dark);
    line-height: 1.8;
}

.nvi-brand-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin-top: 28px;
}

.nvi-brand-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--gray-dark);
    font-weight: 500;
    line-height: 1.45;
}

.nvi-brand-point__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 131, 143, 0.14);
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
}

.nvi-why-section {
    background-color: var(--gray-light);
}

.nvi-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 44px;
}

.nvi-why-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--red);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nvi-why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.nvi-why-card__icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
    line-height: 1;
}

.nvi-why-card__titre {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--ink);
}

.nvi-why-card__desc {
    color: var(--gray-dark);
    line-height: 1.7;
}

/* ==========================================================================
   18. PAGE NOS SERVICES — Hub 8 services FM (P08B)
   ========================================================================== */

/* ---- Section wrapper ---- */

/* ---- Grille 2 colonnes ---- */

/* ---- Card large ---- */

/* ---- Zone image ---- */

/* ---- Corps ---- */

/* ---- Icône ---- */

/* ---- Titre ---- */

/* ---- Description ---- */

/* ---- Features ---- */

/* ---- Lien ---- */

/* ==========================================================================
   SECTION "POURQUOI EXTERNALISER ?"
   ========================================================================== */

/* ---- Dark mode ---- */

/* ==========================================================================
   19. PAGE À PROPOS — P09
   ========================================================================== */

/* ------- Section Présentation & Mission ------- */

/* Titre h2 de l'intro : aligné à gauche (override .section-header centré) */

/* Partie colorée du titre */

/* Wrapper relatif pour le positionnement du badge et de la barre */

/* Badge "8 services" — flottant en bas-gauche, légèrement sorti */

/* Barre dégradé décorative (droite de la photo) */

/* ------- Section Citation Vision ------- */

/* ------- Section Nos Valeurs (P09 — .valeur-item) ------- */

.nvii-about-valeurs {
    background: var(--gray-light);
}

/* .valeurs-grid est déjà défini (repeat 3, gap 24px) — override margin-top */
.about-valeurs-grid {
    margin-top: 48px;
}

/* .valeur-icon déjà défini en P06 — réutilisé */
/* .valeur-titre déjà défini en P06 — réutilisé */
/* .valeur-desc déjà défini en P06 — réutilisé */

/* ==========================================================================
   ACRONYME NVI — bloc d'explication du nom
   ========================================================================== */

/* Rangée des cartes lettres */

/* Carte individuelle */

/* Grande lettre en dégradé */

/* Lettre F (Facility) — dégradé inverse */

/* Séparateurs entre les cartes */

/* Carte FACILITY — légèrement distincte */

/* Ligne "= New Vision Integrated Facility" */

/* ── Séparateur "Notre groupe" ── */

/* ── Badge "Filiale du groupe NVI" ── */

/* ------- Section NVI / Encart Nouvelle Vision Intérim ------- */

/* Ligne gradient supérieure */

/* Grille intérieure : logo | contenu | CTA */

/* Logo NVI — colonne gauche */

/* Contenu — colonne centrale */

/* CTA — colonne droite */

/* ------- Dark mode — À Propos P09 ------- */

/* Acronyme */

/* ==========================================================================
   20. PAGE POURQUOI NVI — P10
   Intro stats · Arguments numérotés · Comparatif · FAQ accordion
   ========================================================================== */

/* ------- Section Intro + Stats ------- */

/* ------- Section Visuelle (split photo / texte) ------- */

/* --- dark mode section visuelle --- */

/* ------- Section 7 Arguments ------- */

/* ------- Section Comparatif ------- */

/* ------- Section FAQ ------- */

.faq-item {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 58, 107, 0.04);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item.is-open {
    box-shadow: 0 6px 16px rgba(27, 58, 107, 0.10);
    border-color: rgba(226, 38, 32, 0.35);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
}

.faq-question:hover {
    background: rgba(226, 38, 32, 0.04);
}

.faq-question:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------- Dark mode — Pourquoi P10 ------- */

/* Header : var(--ink) remappe en clair en dark mode → on force le vrai navy foncé */

/* ==========================================================================
   21. PAGE RÉFÉRENCES & SECTEURS — P10B
   ========================================================================== */

/* ------- Section Intro + Chiffres ------- */

/* --- Photo gauche intro --- */

/* --- Colonne droite intro (texte + chiffres) --- */

/* ------- Section Logos Clients ------- */

/* ------- Section Secteurs Couverts ------- */

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

/* 7e carte seule sur sa ligne → centrée */
.secteurs-grid .secteur-card:nth-child(7):last-child {
    grid-column: 2 / 3;
}

.secteur-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid rgba(27, 58, 107, 0.07);
    border-top: 3px solid var(--secteur-color, var(--ink));
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secteur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(27, 58, 107, 0.10);
}

.secteur-titre {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0;
}

.secteur-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* ------- Section Témoignages (masonry CSS) ------- */

/* ------- Bande Photo Panoramique ------- */

/* ------- Dark mode — Références P10B ------- */

/* ==========================================================================
   SECTION 22 — PAGE CARRIÈRES (P11)
   Template : template-carrieres.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   22.1 Pourquoi nous rejoindre — 3 cards photo plein fond
   -------------------------------------------------------------------------- */

.carrieres-pourquoi {
    background: var(--white);
    padding-bottom: 96px;
}

.carrieres-pourquoi .section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.carrieres-avantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.carrieres-avantage-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: default;
    transition: transform .35s ease, box-shadow .35s ease;
}

.carrieres-avantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, .30);
}

/* Photo plein fond */
.av-photo-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.av-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.carrieres-avantage-card:hover .av-photo-wrap img {
    transform: scale(1.05);
}

/* Overlay dégradé du bas */
.av-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .82) 0%,
        rgba(0, 0, 0, .42) 50%,
        rgba(0, 0, 0, .10) 100%
    );
    z-index: 1;
    transition: background .35s ease;
}

.carrieres-avantage-card:hover .av-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .88) 0%,
        rgba(0, 0, 0, .52) 55%,
        rgba(0, 0, 0, .18) 100%
    );
}

/* Contenu texte au-dessus */
.av-content {
    position: relative;
    z-index: 2;
    padding: 32px 28px 24px;
}

.av-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.av-titre {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.25;
}

.av-desc {
    font-size: .9375rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
    margin: 0;
}

/* Barre couleur accent en bas */
.av-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--av-color, var(--red));
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.carrieres-avantage-card:hover .av-bar {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   22.2 Notre culture — split image gauche / texte droite
   -------------------------------------------------------------------------- */

.carrieres-culture {
    background: var(--light-gray);
}

.culture-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 64px;
    align-items: center;
}

/* Colonne image */
.culture-image {
    position: relative;
}

.culture-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(29, 29, 27, .14);
}

.culture-img-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.culture-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: rgba(27, 58, 107, .92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    box-shadow: 0 8px 16px rgba(29, 29, 27, .24);
}

.cb-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.culture-badge strong {
    display: block;
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.culture-badge span {
    font-size: .8125rem;
    color: rgba(255, 255, 255, .72);
}

/* Colonne texte */
.culture-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 24px;
}

.culture-valeurs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.culture-valeur-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .06);
    font-size: .9375rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease;
}

.culture-valeur-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(29, 29, 27, .08);
}

.cv-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(226, 38, 32, .12);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   22.3 Offres d'emploi — filtres + accordion
   -------------------------------------------------------------------------- */

.carrieres-offres {
    background: var(--white);
}

/* Filtres */
.offres-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 32px 0 40px;
}

.filtre-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 2px solid #E4E4E1;
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .22s ease;
    font-family: inherit;
}

.filtre-btn:hover {
    border-color: var(--red);
    color: var(--ink);
}

.filtre-btn.is-active {
    background: var(--surface-dark);
    border-color: var(--ink);
    color: #fff;
}

/* Moteur de recherche multi-critères (P11) */
.offres-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 32px 0 16px;
}

.offres-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.offres-search-field--text {
    flex: 1 1 260px;
    max-width: 360px;
}

.offres-search-field--text svg {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    pointer-events: none;
}

.offres-search-input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 2px solid #E4E4E1;
    border-radius: 50px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s ease;
}

.offres-search-input:focus {
    outline: none;
    border-color: var(--teal);
}

.offres-select {
    padding: 11px 40px 11px 18px;
    border: 2px solid #E4E4E1;
    border-radius: 50px;
    font-size: .875rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23585857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color .2s ease;
}

.offres-select:hover  { border-color: var(--red); }
.offres-select:focus  { outline: none; border-color: var(--teal); }

.offres-reset {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--red);
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.offres-reset:hover { color: var(--ink); }

.offres-count {
    text-align: center;
    color: var(--text-secondary);
    font-size: .875rem;
    margin: 0 0 24px;
    min-height: 1.2em;
}

.offres-noresult {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.offres-noresult .ov-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--surface-dark);
}

.offres-noresult p { margin: 0; font-size: 1.05rem; }

/* Liste des offres */
.offres-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Offre card */
.offre-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(29, 29, 27, .05);
    transition: box-shadow .25s ease;
}

.offre-card:hover {
    box-shadow: 0 6px 16px rgba(29, 29, 27, .10);
}

.offre-card.is-hidden {
    display: none;
}

/* Header de la carte */
.offre-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
}

.offre-info {
    flex: 1;
    min-width: 0;
}

/* Bouton favori (rec. Niang §4) — sur les cartes d'offre et dans l'espace candidat */
.offre-favori { margin: 0; flex: none; }
.offre-favori-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(29, 29, 27, .15);
    background: var(--white);
    color: var(--gray-mid, #585857);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.offre-favori-btn:hover { border-color: var(--red); color: var(--red); }
.offre-favori.is-active .offre-favori-btn {
    border-color: var(--red);
    color: var(--red);
    background: rgba(226, 38, 32, .06);
}

.offre-titre {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.3;
}

.offre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Tags */
.offre-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.tag-service {
    background: rgba(27, 58, 107, .08);
    color: var(--ink);
}

.tag-lieu {
    background: rgba(226, 38, 32, .10);
    color: #14606F;
}

.tag-type {
    background: rgba(0, 131, 143, .10);
    color: #14606F;
}

.tag-date {
    background: rgba(255, 152, 0, .10);
    color: #c06800;
}

/* Bouton toggle accordion */
.offre-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, .10);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
}

.offre-toggle:hover {
    border-color: var(--red);
    color: var(--ink);
    background: rgba(226, 38, 32, .06);
}

.offre-toggle svg {
    transition: transform .3s ease;
}

.offre-card .offre-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Détails (accordion) */
.offre-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s ease;
}

.offre-details-inner {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.offre-description {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.offre-description p { margin-bottom: .75em; }
.offre-description ul { padding-left: 1.25em; margin-bottom: .75em; }
.offre-description li { margin-bottom: .35em; }

.offre-postuler {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9375rem;
}

/* État vide */
.offres-vides {
    padding: 48px 0;
}

.offres-vides-inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 48px 40px;
    border: 2px dashed rgba(0, 0, 0, .10);
}

.ov-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.offres-vides-inner h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
}

.offres-vides-inner p {
    font-size: .9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* --------------------------------------------------------------------------
   22.4 Candidature spontanée — formulaire AJAX
   -------------------------------------------------------------------------- */

.carrieres-candidature {
    background: var(--light-gray);
}

.candidature-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: start;
}

/* Colonne texte */
.candidature-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.candidature-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.cci-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .9375rem;
}

.cci-item a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.cci-item a:hover {
    color: var(--red);
}

/* Colonne formulaire */
.candidature-form-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(29, 29, 27, .08);
}

.candidature-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Ligne double */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Champ individuel */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-field label span {
    color: #E22620;
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D3D3D0;
    border-radius: 4px;
    font-size: .9375rem;
    color: var(--text-primary);
    background: var(--white);
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(226, 38, 32, .15);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #A3A3A0;
}

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 38px;
    cursor: pointer;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Messages succès/erreur
   [hidden] override : display: flex aurait plus de priorité que l'attribut HTML hidden
   → on force display:none quand l'attribut hidden est présent */
.form-success[hidden],
.form-error[hidden] {
    display: none !important;
}

.form-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0, 200, 150, .08);
    border: 1.5px solid rgba(0, 200, 150, .35);
    color: #14606F;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.55;
}

.form-error {
    background: rgba(229, 62, 62, .06);
    border: 1.5px solid rgba(229, 62, 62, .30);
    color: #C11728;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .875rem;
    font-weight: 500;
}

/* Bouton submit */
.candidature-submit {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 1rem;
    position: relative;
}

.btn-text {
    transition: opacity .2s ease;
}

.btn-loader {
    display: none;
    align-items: center;
}

.candidature-submit.is-loading .btn-text {
    opacity: 0;
}

.candidature-submit.is-loading .btn-loader {
    display: inline-flex;
}

/* Spinner rotation */
@keyframes nvii-spin {
    to { transform: rotate(360deg); }
}

.cand-spin {
    animation: nvii-spin .8s linear infinite;
}

/* Honeypot : invisible mais pas display:none */
.nvii-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   22.5 Dark mode — Carrières
   -------------------------------------------------------------------------- */

/* ==========================================================================
   SECTION 23 — BLOG / ACTUALITÉS (P12)
   archive.php · home.php · single.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   23.1 Archive — section wrapper
   -------------------------------------------------------------------------- */

.blog-archive-section {
    background: var(--white);
}

/* --------------------------------------------------------------------------
   23.2 Filtres catégories
   -------------------------------------------------------------------------- */

.blog-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.blog-filtre-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid #E4E4E1;
    background: var(--white);
    color: var(--gray-mid);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.blog-filtre-btn:hover,
.blog-filtre-btn.is-active {
    border-color: var(--ink);
    background: var(--surface-dark);
    color: #fff;
}

.filtre-count {
    background: rgba(255, 255, 255, .22);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: .75rem;
}

/* --------------------------------------------------------------------------
   23.3 Grille articles
   -------------------------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Premier article en featured (2 colonnes) */
.blog-card--featured {
    grid-column: span 2;
}

.blog-card--featured .blog-card-img-wrap {
    height: 360px;
}

.blog-card--featured .blog-card-titre {
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   23.4 Card article
   -------------------------------------------------------------------------- */

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(226, 38, 32, .30);
}

/* Image de la card */
.blog-card-img-wrap {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(27, 58, 107, .40) 0%,
        transparent 60%
    );
    pointer-events: none;
}

/* Badge catégorie */
.blog-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .05em;
    pointer-events: none;
}

/* Contenu de la card */
.blog-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--gray-mid);
    flex-wrap: wrap;
}

.meta-sep { opacity: .4; }

.blog-card-titre {
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    margin: 0;
}

.blog-card-titre a {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s ease;
}

.blog-card-titre a:hover {
    color: var(--red);
}

.blog-card-extrait {
    font-size: .875rem;
    color: var(--gray-mid);
    line-height: 1.65;
    margin: 0;
}

.blog-card-lire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    margin-top: auto;
    transition: gap .2s ease;
}

.blog-card:hover .blog-card-lire {
    gap: 10px;
}

/* --------------------------------------------------------------------------
   23.5 Pagination
   -------------------------------------------------------------------------- */

.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   23.6 Blog vide
   -------------------------------------------------------------------------- */

.blog-vide {
    text-align: center;
    padding: 80px 40px;
    background: var(--gray-light);
    border-radius: 12px;
    border: 2px dashed rgba(226, 38, 32, .30);
}

.bv-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
}

.blog-vide h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.blog-vide p {
    font-size: 1rem;
    color: var(--gray-mid);
    max-width: 440px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   23.7 Single — section + layout
   -------------------------------------------------------------------------- */

.single-article-section {
    background: var(--white);
    padding-top: 48px;
}

/* Layout 2 colonnes : contenu + sidebar */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   23.8 Meta article (catégorie, date, lecture)
   -------------------------------------------------------------------------- */

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.single-cat {
    background: var(--red);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: var(--transition);
}

.single-cat:hover {
    background: var(--surface-dark);
    color: #fff;
}

.single-date,
.single-read {
    font-size: .82rem;
    color: var(--gray-mid);
}

/* --------------------------------------------------------------------------
   23.9 Corps de l'article
   -------------------------------------------------------------------------- */

.single-body {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.85;
}

.single-body h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink);
    margin: 40px 0 16px;
    line-height: 1.25;
}

.single-body h3 {
    font-family: var(--font-condensed);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.single-body h4 {
    font-weight: 700;
    color: var(--ink);
    margin: 24px 0 8px;
}

.single-body p {
    margin-bottom: 18px;
}

.single-body p:last-child {
    margin-bottom: 0;
}

.single-body ul,
.single-body ol {
    padding-left: 24px;
    margin-bottom: 18px;
    list-style: revert;
}

.single-body li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.single-body blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 20px;
    background: var(--gray-light);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--gray-dark);
}

.single-body blockquote p { margin-bottom: 0; }

.single-body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-body a:hover {
    color: var(--ink);
}

.single-body strong { font-weight: 700; }
.single-body em { font-style: italic; }

/* --------------------------------------------------------------------------
   23.10 Tags
   -------------------------------------------------------------------------- */

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.single-tag {
    font-size: .8rem;
    color: var(--gray-mid);
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.single-tag:hover {
    background: var(--surface-dark);
    color: #fff;
}

/* --------------------------------------------------------------------------
   23.11 Partage réseaux sociaux
   -------------------------------------------------------------------------- */

.single-partage {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    flex-wrap: wrap;
}

.partage-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
}

.partage-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.partage-btn:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.partage-linkedin  { background: #0A66C2; color: #fff; }
.partage-facebook  { background: #1877F2; color: #fff; }
.partage-whatsapp  { background: #25D366; color: #fff; }

/* --------------------------------------------------------------------------
   23.12 Navigation prev / next
   -------------------------------------------------------------------------- */

.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.single-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-light);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, .05);
}

.single-nav-link.next {
    text-align: right;
}

.single-nav-link:hover {
    background: var(--surface-dark);
    border-color: var(--ink);
}

.nav-dir {
    font-size: .72rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.single-nav-link:hover .nav-dir {
    color: rgba(255, 255, 255, .65);
}

.nav-titre {
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-dark);
    line-height: 1.3;
}

.single-nav-link:hover .nav-titre {
    color: #fff;
}

/* --------------------------------------------------------------------------
   23.13 Sidebar
   -------------------------------------------------------------------------- */

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--nvii-header-h, 119px) + 24px);
}

.sidebar-widget {
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
}

.sw-header {
    background: #0F5F73;
    color: #fff;
    font-family: var(--font-condensed);
    font-size: .875rem;
    font-weight: 700;
    padding: 14px 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sw-body {
    padding: 16px 20px;
}

.sw-body p {
    font-size: .875rem;
    color: var(--gray-mid);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Articles récents */
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    text-decoration: none;
    transition: padding-left .2s ease;
}

.recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-item:hover {
    padding-left: 4px;
}

.recent-item img {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-titre {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 3px;
}

.recent-date {
    font-size: .75rem;
    color: var(--gray-mid);
}

/* Services sidebar */
.sidebar-service-link {
    display: block;
    font-size: .875rem;
    color: var(--gray-dark);
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: color .2s ease, padding-left .2s ease;
}

.sidebar-service-link:last-child {
    border-bottom: none;
}

.sidebar-service-link:hover {
    color: var(--red);
    padding-left: 6px;
}

/* CTA sidebar */
.widget-cta {
    background: linear-gradient(135deg, #0F5F73 0%, var(--surface-dark-2) 100%);
    border: none;
}

.sw-cta-inner {
    padding: 24px 20px;
    text-align: center;
    color: #fff;
}

.sw-cta-inner h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.sw-cta-inner p {
    font-size: .875rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 16px;
}

.sidebar-tel {
    display: block;
    margin-top: 10px;
    font-size: .875rem;
    color: rgba(255, 255, 255, .70);
    text-decoration: none;
    transition: color .2s ease;
}

.sidebar-tel:hover {
    color: var(--red);
}

/* --------------------------------------------------------------------------
   23.14 Articles similaires
   -------------------------------------------------------------------------- */

.single-similaires {
    background: var(--gray-light);
}

.blog-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* --------------------------------------------------------------------------
   23.15 Dark mode — Blog
   -------------------------------------------------------------------------- */

/* ==========================================================================
   SECTION 24 — CONFIGURATEUR DE BESOINS INTERACTIF
   P13 — NVI | Matrix Digital
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout principal
-------------------------------------------------------------------------- */

.configurateur-section {
    background: var(--white);
}

.configurateur-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
    margin-top: 48px;
}

.configurateur-main {
    min-width: 0;
}

.configurateur-aside {
    position: sticky;
    top: calc(var(--nvii-header-h, 119px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   Formulaire configurateur
-------------------------------------------------------------------------- */

.config-form {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Barre de progression
-------------------------------------------------------------------------- */

.config-progress {
    padding: 24px 32px 20px;
    border-bottom: 1px solid #E4E4E1;
    background: var(--gray-light);
}

.config-progress-bar {
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.config-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--surface-dark-2) 0%, var(--red) 100%);
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

.config-steps-nav {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.config-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
    cursor: default;
}

.config-step-dot::before {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 2px;
    background: var(--gray-light);
    z-index: 0;
}

.config-step-dot:last-child::before { display: none; }

.step-dot-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray-mid);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
}

.step-dot-label {
    font-size: 0.7rem;
    color: var(--gray-mid);
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.3s;
}

.config-step-dot.is-active .step-dot-num {
    background: var(--surface-dark-2);
    color: #fff;
}

.config-step-dot.is-active .step-dot-label {
    color: var(--ink-2);
    font-weight: 700;
}

.config-step-dot.is-completed .step-dot-num {
    background: var(--red);
    color: var(--ink);
}

.config-step-dot.is-completed .step-dot-label {
    color: var(--red);
}

.config-step-dot.is-completed::before {
    background: var(--red);
}

/* --------------------------------------------------------------------------
   Étapes
-------------------------------------------------------------------------- */

.config-step {
    padding: 36px 32px;
}

.config-step.is-hidden {
    display: none;
}

.config-step-header {
    margin-bottom: 32px;
}

.config-step-num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(0, 131, 143, .12);
    border-radius: 12px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.config-step-titre {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.2;
}

.config-step-desc {
    color: var(--gray-mid);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Étape 1 — Grille services
-------------------------------------------------------------------------- */

.config-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.config-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    border-radius: 12px;
    border: 2px solid #E4E4E1;
    background: var(--gray-light);
    cursor: pointer;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s, transform 0.18s;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.config-service-card:hover {
    border-color: var(--ink-2);
    background: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 58, 107, .1);
}

.config-service-card.is-selected {
    border-color: var(--red);
    background: rgba(0, 131, 143, .07);
    box-shadow: 0 4px 16px rgba(0, 131, 143, .18);
}

.config-service-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.config-svc-icon {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

.config-svc-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.config-svc-desc {
    font-size: 0.68rem;
    color: var(--gray-mid);
    line-height: 1.4;
    display: none;
}

.config-svc-check {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.config-service-card.is-selected .config-svc-check {
    opacity: 1;
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   Étape 2 — Cartes radio (structure + fréquence)
-------------------------------------------------------------------------- */

.config-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.config-legend {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-mid);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.config-structure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.config-radio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: 12px;
    border: 2px solid #E4E4E1;
    background: var(--gray-light);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.config-radio-card:hover {
    border-color: var(--ink-2);
    background: var(--gray-light);
}

.config-radio-card.is-selected {
    border-color: var(--red);
    background: rgba(0, 131, 143, .07);
    box-shadow: 0 4px 16px rgba(0, 131, 143, .15);
}

.config-radio-card input[type="radio"],
.config-freq-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.config-radio-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.config-radio-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.config-radio-check {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}

.config-radio-card.is-selected .config-radio-check,
.config-freq-card.is-selected .config-radio-check {
    opacity: 1;
    transform: scale(1);
}

.config-frequence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.config-freq-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 12px;
    border: 2px solid #E4E4E1;
    background: var(--gray-light);
    cursor: pointer;
    transition: border-color 0.22s, background 0.22s, box-shadow 0.22s;
}

.config-freq-card:hover {
    border-color: var(--ink-2);
    background: var(--gray-light);
}

.config-freq-card.is-selected {
    border-color: var(--red);
    background: rgba(0, 131, 143, .07);
    box-shadow: 0 4px 16px rgba(0, 131, 143, .15);
}

.config-freq-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.config-freq-sub {
    font-size: 0.7rem;
    color: var(--gray-mid);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Étape 3 — Détails
-------------------------------------------------------------------------- */

.config-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.config-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-field--full {
    grid-column: span 2;
}

.config-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-dark);
    display: flex;
    gap: 6px;
    align-items: center;
}

.config-required::after {
    content: '*';
    color: #E22620;
    font-weight: 700;
}

.config-optionnel {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-mid);
    font-style: italic;
}

.config-input,
.config-select,
.config-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D3D3D0;
    border-radius: 4px;
    background: var(--gray-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    outline: none;
}

.config-input:focus,
.config-select:focus,
.config-textarea:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .15);
}

.config-input.has-error,
.config-select.has-error {
    border-color: #E22620;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.config-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D1D1B' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 38px;
    cursor: pointer;
}

.config-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Étape 4 — Récapitulatif + coordonnées
-------------------------------------------------------------------------- */

.config-recap {
    background: linear-gradient(135deg, #F4F4F2 0%, #E6F1F4 100%);
    border: 1px solid rgba(0, 131, 143, .25);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

.config-recap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0, 131, 143, .1);
    border-bottom: 1px solid rgba(0, 131, 143, .2);
}

.config-recap-icon {
    font-size: 1.2rem;
}

.config-recap-titre {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.config-recap-body {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recap-key {
    font-weight: 700;
    color: var(--gray-mid);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1px;
}

.recap-value {
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
}

.recap-empty {
    color: var(--gray-mid);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

.config-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Messages d'erreur
-------------------------------------------------------------------------- */

.config-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 4px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #C11728;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.config-error.is-visible {
    display: flex;
}

.config-error::before {
    content: '⚠️';
    font-size: 1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Actions (boutons navigation)
-------------------------------------------------------------------------- */

.config-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #E4E4E1;
    margin-top: 4px;
}

.config-actions > :only-child {
    margin-left: auto;
}

/* Spinner bouton submit */
#config-submit {
    position: relative;
    min-width: 220px;
    justify-content: center;
}

#config-submit .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: config-spin 0.7s linear infinite;
    margin-left: 10px;
}

#config-submit.is-loading .btn-text {
    opacity: 0.7;
}

#config-submit.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes config-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Écran de succès
-------------------------------------------------------------------------- */

.config-success {
    text-align: center;
    padding: 64px 32px !important;
}

.config-success-inner {
    max-width: 480px;
    margin: 0 auto;
}

.config-success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: config-pop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes config-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.config-success-titre {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 16px;
}

.config-success-desc {
    color: var(--gray-mid);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 32px;
}

.config-success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Aside — cartes
-------------------------------------------------------------------------- */

.config-aside-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.config-aside-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-light);
    border-bottom: 1px solid #E4E4E1;
}

.config-aside-icon {
    font-size: 1.2rem;
}

.config-aside-titre {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

/* Bénéfices */
.config-aside-benefices .config-aside-header {
    background: #0F5F73;
}

.config-aside-benefices .config-aside-titre {
    color: #fff;
}

.config-benefices-list {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.config-benefices-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cb-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.config-benefices-list li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.config-benefices-list li strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

.config-benefices-list li span {
    font-size: 0.78rem;
    color: var(--gray-mid);
    line-height: 1.4;
}

/* Contact */
.config-aside-contact {
    padding-bottom: 4px;
}

.config-aside-text {
    padding: 14px 20px 8px;
    margin: 0;
    font-size: 0.82rem;
    color: var(--gray-mid);
    line-height: 1.5;
}

.config-tel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--red);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin: 0 20px;
    border-radius: 4px;
    transition: background 0.22s;
}

.config-tel-link:hover {
    background: #1B829B;
    color: #fff;
}

.config-aside-contact .nvii-btn--outline {
    margin: 8px 20px 20px;
    width: calc(100% - 40px) !important;
}

/* Processus */
.config-process-list {
    list-style: none;
    padding: 16px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: none;
}

.config-process-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cp-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0F5F73;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.config-process-list li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.config-process-list li strong {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink);
}

.config-process-list li span {
    font-size: 0.75rem;
    color: var(--gray-mid);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Dark mode — Configurateur
-------------------------------------------------------------------------- */

/* ==========================================================================
   SECTION 24-B — CONFIGURATEUR v2 — 6 ÉTAPES (nouveaux éléments)
   P13-v2 — NVI | Matrix Digital
   ========================================================================== */

/* Barre de progression 6 étapes — dots plus compacts */
.config-steps-nav--6 {
    gap: 0;
}
.config-steps-nav--6 .config-step-dot {
    flex: 1;
    min-width: 0;
}
.config-steps-nav--6 .step-dot-label {
    font-size: 0.65rem;
}

/* Badge obligatoire */
.config-required-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #FFF;
    background: var(--teal);
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

/* Grid structure 8 colonnes → 4 sur grand écran */
.config-structure-grid--8 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---- Zone d'intervention ------------------------------------------ */
.config-zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.config-zone-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-left: 4px solid var(--zc, var(--ink));
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.config-zone-card:hover {
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.10);
}
.config-zone-card.is-selected {
    background: color-mix(in srgb, var(--zc, var(--surface-dark)) 6%, white);
    border-color: var(--zc, var(--ink));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--zc, var(--ink)) 20%, transparent);
}
.config-zone-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.config-zone-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.config-zone-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.config-zone-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.config-zone-delai {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}
.config-zone-card .config-radio-check {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}
.config-zone-card.is-selected .config-radio-check {
    color: var(--zc, var(--ink));
}

/* ---- Horaires (checkbox cards) ------------------------------------ */
.config-horaire-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.config-horaire-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.config-horaire-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.12);
}
.config-horaire-card.is-selected {
    border-color: var(--teal);
    background: rgba(0, 131, 143, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, 0.18);
}
.config-horaire-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.config-horaire-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.config-horaire-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
}
.config-horaire-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.config-horaire-card .config-svc-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--teal);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}
.config-horaire-card.is-selected .config-svc-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Budget (radio cards 3 colonnes) ------------------------------ */
.config-budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.config-budget-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.config-budget-card:hover {
    border-color: var(--ink);
    box-shadow: 0 4px 12px rgba(27,58,107,0.10);
}
.config-budget-card.is-selected {
    border-color: var(--ink);
    background: rgba(27,58,107,0.05);
    box-shadow: 0 0 0 3px rgba(27,58,107,0.15);
}
.config-budget-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.config-budget-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.config-budget-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.config-budget-card .config-radio-check {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.config-budget-card.is-selected .config-radio-check {
    color: var(--ink);
}

/* ---- Situation (radio cards pleine largeur 2 colonnes) ------------ */
.config-situation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.config-situation-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.config-situation-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.10);
}
.config-situation-card.is-selected {
    border-color: var(--teal);
    background: rgba(0, 131, 143, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, 0.15);
}
.config-situation-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.config-situation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.config-situation-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.config-situation-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.config-situation-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.config-situation-card .config-radio-check {
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}
.config-situation-card.is-selected .config-radio-check {
    color: var(--teal);
}

/* ---- Priorités (checkbox cards) ----------------------------------- */
.config-priorite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.config-priorite-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 14px 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.config-priorite-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(6,182,212,0.10);
}
.config-priorite-card.is-selected {
    border-color: var(--red);
    background: rgba(6,182,212,0.06);
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.config-priorite-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.config-priorite-icon {
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 2px;
}
.config-priorite-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}
.config-priorite-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.3;
}
.config-priorite-card .config-svc-check {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--red);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
}
.config-priorite-card.is-selected .config-svc-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Récapitulatif enrichi --------------------------------------- */
.recap-section {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.recap-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.recap-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.recap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.recap-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(27,58,107,0.08);
    color: var(--ink);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.recap-kv {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.875rem;
}
.recap-kv .recap-key {
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    min-width: 110px;
}
.recap-kv .recap-value {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}
.recap-message {
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 10px 14px;
    background: var(--gray-light);
    border-radius: 4px;
    border-left: 3px solid var(--teal);
    margin: 0;
}

/* ---- Dark mode nouveaux composants -------------------------------- */

/* ==========================================================================
   SECTION 25 — PAGE CONTACT
   P14 — NVI | Matrix Digital
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout principal
-------------------------------------------------------------------------- */

.contact-section {
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 56px;
    align-items: start;
    margin-top: 48px;
}

.contact-aside {
    position: sticky;
    top: calc(var(--nvii-header-h, 119px) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --------------------------------------------------------------------------
   Formulaire
-------------------------------------------------------------------------- */

.contact-form-wrap {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-form-header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid #E4E4E1;
    background: var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.contact-form-titre {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.contact-form-desc {
    font-size: 0.82rem;
    color: var(--gray-mid);
    margin: 0;
}

.contact-form-desc span {
    color: #E22620;
    font-weight: 700;
}

.contact-form {
    padding: 28px 32px 32px;
}

.contact-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field--full {
    grid-column: span 2;
}

.contact-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.contact-required::after {
    content: ' *';
    color: #E22620;
}

.contact-input,
.contact-select,
.contact-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D3D3D0;
    border-radius: 4px;
    background: var(--gray-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
    outline: none;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .15);
}

.contact-input.has-error,
.contact-select.has-error,
.contact-textarea.has-error {
    border-color: #E22620;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.contact-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231D1D1B' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 38px;
    cursor: pointer;
}

.contact-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.55;
}

/* Erreur */
.contact-error {
    display: none;
    padding: 10px 14px;
    border-radius: 4px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #C11728;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.contact-error::before {
    content: '⚠️ ';
}

.contact-error.is-visible {
    display: block;
}

/* Bouton submit */
.contact-submit-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-submit-btn {
    position: relative;
    align-self: flex-start;
    min-width: 200px;
    justify-content: center;
}

.contact-submit-btn .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin 0.7s linear infinite;
    margin-left: 10px;
}

.contact-submit-btn.is-loading .btn-text { opacity: 0.7; }
.contact-submit-btn.is-loading .btn-spinner { display: inline-block; }

@keyframes contact-spin { to { transform: rotate(360deg); } }

.contact-rgpd {
    font-size: 0.74rem;
    color: var(--gray-mid);
    line-height: 1.5;
    margin: 0;
}

/* Succès */
.contact-success {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: rgba(0, 131, 143, .07);
    border-top: 1px solid rgba(0, 131, 143, .2);
}

.contact-success.is-visible {
    display: flex;
}

.contact-success-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-success strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.contact-success p {
    margin: 0;
    color: var(--gray-mid);
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Aside droit — Infos + Carte
-------------------------------------------------------------------------- */

.contact-info-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.contact-info-titre {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ci-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.ci-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ci-content strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ci-content span,
.ci-content a {
    font-size: 0.88rem;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.4;
}

.ci-content a:hover {
    color: var(--red);
    text-decoration: underline;
}

.contact-cta-direct {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #E4E4E1;
}

.contact-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.22s;
}

.contact-whatsapp-btn:hover {
    background: #128C7E;
}

/* Carte Leaflet */
.contact-map-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.contact-map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-light);
    border-bottom: 1px solid #E4E4E1;
}

.contact-map-icon { font-size: 1rem; }

.contact-map-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-map-container {
    height: 260px;
    width: 100%;
}

.contact-map-link {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    border-top: 1px solid #E4E4E1;
    transition: color 0.2s, background 0.2s;
}

.contact-map-link:hover {
    color: var(--red);
    background: var(--gray-light);
}

/* Marqueur custom Leaflet */
.contact-map-marker {
    background: transparent !important;
    border: none !important;
}

.cm-marker-inner {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
    animation: cm-bounce 0.6s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes cm-bounce {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Popup Leaflet */

.cm-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
}

.cm-popup-titre {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.cm-popup-adresse {
    font-size: 0.78rem;
    color: var(--gray-mid);
    line-height: 1.4;
}

.cm-popup-tel {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    margin-top: 4px;
}

.cm-popup-tel:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Bloc Réponse Rapide
-------------------------------------------------------------------------- */

.contact-rapide-section {
    background: var(--gray-light);
}

.contact-rapide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.contact-rapide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    transition: box-shadow 0.25s, transform 0.25s;
}

.contact-rapide-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cr-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.cr-titre {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.cr-desc {
    font-size: 0.82rem;
    color: var(--gray-mid);
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Dark mode
-------------------------------------------------------------------------- */

/* ==========================================================================
   SECTION 26 — ZONES D'INTERVENTION (CARTE INTERACTIVE)
   P15 — NVI | Matrix Digital
   ========================================================================== */

/* --------------------------------------------------------------------------
   Stats rapides
-------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Section carte
-------------------------------------------------------------------------- */

/* Filtres */

.zones-filtre-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid #E4E4E1;
    background: var(--gray-light);
    color: var(--gray-mid);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.zones-filtre-btn:hover {
    border-color: var(--ink-2);
    color: var(--ink-2);
    background: var(--gray-light);
}

.zones-filtre-btn.is-active {
    border-color: var(--red);
    background: var(--red);
    color: var(--ink);
}

.zf-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0,0,0,.1);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
}

.zones-filtre-btn.is-active .zf-count {
    background: rgba(27,58,107,.2);
}

/* Carte + Légende (position relative pour overlay) */

/* Légende flottante */

.zl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.zl-item:hover {
    background: var(--gray-light);
    padding-left: 4px;
}

/* Couleurs des dots via data-service (CSS vars passées inline) */

/* même règles pour zone-card-dot */

/* Compteur flottant */

/* --------------------------------------------------------------------------
   Marqueurs Leaflet custom
-------------------------------------------------------------------------- */

.nvii-map-marker {
    background: transparent !important;
    border: none !important;
}

.nvii-marker-svg {
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.3));
    transition: transform 0.15s;
}

.nvii-marker-svg:hover {
    transform: scale(1.15) translateY(-2px);
}

/* Popup */

.nvii-popup {
    font-family: var(--font-body);
}

.nvii-popup-bar {
    height: 4px;
    width: 100%;
}

.nvii-popup-body {
    padding: 14px 16px 16px;
}

.nvii-popup-svc {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.nvii-popup-titre {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.2;
}

.nvii-popup-adresse {
    font-size: 0.78rem;
    color: var(--gray-mid);
    margin: 0 0 6px;
    line-height: 1.4;
}

.nvii-popup-desc {
    font-size: 0.78rem;
    color: var(--gray-mid);
    margin: 0 0 12px;
    line-height: 1.5;
    border-top: 1px solid #F4F4F2;
    padding-top: 8px;
}

.nvii-popup-cta {
    display: inline-block;
    padding: 7px 14px;
    background: var(--red);
    color: var(--ink);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.nvii-popup-cta:hover {
    background: #1B829B;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Grille des zones
-------------------------------------------------------------------------- */

.zone-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #E4E4E1;
    padding: 18px;
    transition: box-shadow 0.22s, transform 0.22s;
}

.zone-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   CTA "Votre site pas encore sur la carte ?"
-------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Dark mode
-------------------------------------------------------------------------- */

/* ============================================================
   SECTION 27 — PAGE 404 PERSONNALISÉE (P16)
   ============================================================ */

/* ── Hero 404 ─────────────────────────────────────────────── */
.error404-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0A4757 0%, #0F5F73 50%, #135E70 100%);
    overflow: hidden;
    color: #fff;
    padding: 120px 0 80px;
}

.error404-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 131, 143, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.error404-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Chiffres 404 animés */
.error404-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.e4-digit {
    font-family: var(--font-title);
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 700;
    line-height: 1;
    color: #1B829B;
    text-shadow: 0 0 40px rgba(0, 131, 143, 0.4);
}

.e4-zero {
    width: clamp(80px, 14vw, 160px);
    height: clamp(80px, 14vw, 160px);
    color: #fff;
    flex-shrink: 0;
}

.e4-zero svg {
    width: 100%;
    height: 100%;
}

.e4-circle-anim {
    animation: circleReveal 1.2s ease-out 0.3s forwards;
}

@keyframes circleReveal {
    to { stroke-dashoffset: 0; }
}

.error404-titre {
    font-family: var(--font-title);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.error404-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 560px;
}

.error404-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.error404-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    color: var(--bg-primary, #FAFAF8);
}

.error404-wave svg { width: 100%; height: 60px; }

/* ── Liens rapides ────────────────────────────────────────── */
.error404-links-section {
    background: var(--bg-primary, #FAFAF8);
}

.error404-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.e4-link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E4E1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.e4-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B829B, #1B829B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.e4-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.10);
    border-color: var(--primary, #1B829B);
    text-decoration: none;
}

.e4-link-card:hover::before {
    transform: scaleX(1);
}

.e4-link-icon {
    font-size: 2rem;
    line-height: 1;
}

.e4-link-titre {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1D1D1B);
    margin: 4px 0 0;
}

.e4-link-desc {
    font-size: 0.88rem;
    color: var(--text-secondary, #585857);
    line-height: 1.5;
    flex: 1;
}

.e4-link-arrow {
    font-size: 1.1rem;
    color: var(--primary, #1B829B);
    align-self: flex-start;
    margin-top: 4px;
    transition: transform 0.2s ease;
}

.e4-link-card:hover .e4-link-arrow {
    transform: translateX(4px);
}

/* ── Contact rapide 404 ───────────────────────────────────── */
.error404-contact-section {
    background: var(--bg-secondary, #F4F4F2);
}

.error404-contact-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E4E1);
    border-radius: 12px;
    padding: 40px 48px;
    flex-wrap: wrap;
}

.error404-contact-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.error404-contact-text {
    flex: 1;
    min-width: 200px;
}

.error404-contact-titre {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #1D1D1B);
    margin: 0 0 6px;
}

.error404-contact-desc {
    font-size: 0.95rem;
    color: var(--text-secondary, #585857);
    margin: 0;
}

.error404-contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ── Dark mode 404 ────────────────────────────────────────── */

/* ============================================================
   SECTION 28 — PAGES LÉGALES (P18)
   ============================================================ */

/* ── Layout 2 colonnes ───────────────────────────────────── */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Table des matières ──────────────────────────────────── */
.legal-toc {
    position: sticky;
    top: 100px;
}

.legal-toc-inner {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-color, #E4E4E1);
    border-radius: 12px;
    padding: 24px;
}

.legal-toc-titre {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #1B829B);
    margin-bottom: 16px;
}

.legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-toc-item a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary, #585857);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}

.legal-toc-item a:hover,
.legal-toc-item a.is-active {
    background: rgba(0, 131, 143, 0.10);
    color: var(--primary, #1B829B);
}

/* ── Contenu légal ───────────────────────────────────────── */
.legal-content {
    min-width: 0;
}

.legal-body {
    font-size: 0.97rem;
    line-height: 1.8;
    color: var(--text-primary, #1D1D1B);
}

.legal-body h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink, #1D1D1B);
    margin: 48px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color, #E4E4E1);
    scroll-margin-top: 100px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1D1D1B);
    margin: 32px 0 12px;
    scroll-margin-top: 100px;
}

.legal-body p {
    margin: 0 0 16px;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 16px 24px;
}

.legal-body li {
    margin-bottom: 6px;
}

.legal-body a {
    color: var(--primary, #1B829B);
    text-decoration: underline;
}

.legal-body a:hover {
    color: var(--primary-dark, #1B829B);
}

.legal-body strong {
    font-weight: 600;
    color: var(--text-primary, #1D1D1B);
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
    padding: 10px 14px;
    border: 1px solid var(--border-color, #E4E4E1);
    text-align: left;
}

.legal-body th {
    background: var(--bg-secondary, #F4F4F2);
    font-weight: 600;
    color: var(--text-primary, #1D1D1B);
}

.legal-body blockquote {
    border-left: 4px solid var(--primary, #1B829B);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(0, 131, 143, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary, #585857);
}

/* ── Retour en haut ──────────────────────────────────────── */
.legal-back-top {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #E4E4E1);
    text-align: right;
}

.legal-back-link {
    font-size: 0.9rem;
    color: var(--text-secondary, #585857);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-back-link:hover {
    color: var(--primary, #1B829B);
}

/* ── CTA légal ───────────────────────────────────────────── */
.legal-cta-section {
    background: var(--bg-secondary, #F4F4F2);
    padding: 48px 0;
}

.legal-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-cta-text {
    font-size: 1rem;
    color: var(--text-secondary, #585857);
    margin: 0;
}

/* ── Dark mode légal ─────────────────────────────────────── */

/* ==========================================================================
   SECTION 29 — HOMEPAGE UPGRADE VISUEL
   Service photo cards · Flip cards why-us · Split approche · Secteurs
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   29A — SERVICE CARDS PHOTO (remplace les cartes flat)
   ────────────────────────────────────────────────────────────────────────── */

.services-grid--photo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* La carte */
.service-card--photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    background-color: transparent;
    border: none;
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card--photo:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.4);
}

/* Image de fond */
.sc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.service-card--photo:hover .sc-bg {
    transform: scale(1.08);
}

/* Overlay gradient sombre */
.sc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.18) 100%
    );
    transition: opacity 0.4s ease;
}

/* Teinte couleur service au hover */
.service-card--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-color, #1B829B);
    opacity: 0;
    mix-blend-mode: multiply;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.service-card--photo:hover::after {
    opacity: 0.35;
}

/* Contenu superposé */
.sc-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Icône */
.sc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 4px;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.service-card--photo:hover .sc-icon {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Titre */
.sc-title {
    font-family: var(--font-title);
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Description — révélée au hover */
.sc-desc {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.service-card--photo:hover .sc-desc {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}

/* Lien "Découvrir" */
.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--card-color, #1B829B);
    text-decoration: none;
    margin-top: 4px;
}

.sc-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.service-card--photo:hover .sc-arrow {
    transform: translateX(4px);
}

/* Barre couleur bas */
.sc-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-color, #1B829B);
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card--photo:hover .sc-bar {
    transform: scaleX(1);
}

/* Dark mode — déjà sombres par nature */

/* ──────────────────────────────────────────────────────────────────────────
   29B — FLIP CARDS WHY-US
   ────────────────────────────────────────────────────────────────────────── */

.why-grid--flip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Centrage rangée 2 (3 éléments sur 4 cols) */
.why-grid--flip .why-flip-wrap:nth-child(5) { grid-column: 1; }
.why-grid--flip .why-flip-wrap:nth-child(6) { grid-column: 2; }
.why-grid--flip .why-flip-wrap:nth-child(7) { grid-column: 3; }

/* Wrapper perspective */
.why-flip-wrap {
    perspective: 1200px;
    min-height: 260px;
    cursor: pointer;
    outline: none;
}

/* Inner — se retourne */
.why-flip {
    position: relative;
    width: 100%;
    height: 260px;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-flip-wrap:hover .why-flip,
.why-flip-wrap:focus-visible .why-flip,
.why-flip-wrap.is-flipped .why-flip {
    transform: rotateY(180deg);
}

/* Faces communes */
.why-flip__front,
.why-flip__back {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 28px 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Recto */
.why-flip__front {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.07);
}

/* Numéro décoratif */
.wf-num {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-title);
    color: var(--text-muted);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Icône recto */
.wf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 184, 169, 0.1);
    color: var(--teal);
    margin-bottom: 14px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.why-flip-wrap:hover .why-flip__front .wf-icon {
    transform: scale(1.08);
}

/* Titre recto */
.wf-titre {
    font-family: var(--font-title);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Hint survol */
.wf-hint {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--teal);
    opacity: 0.75;
    text-transform: uppercase;
    margin-top: auto;
}

/* Verso */
.why-flip__back {
    background: #0F5F73; /* Navy hardcoded */
    color: #fff;
    transform: rotateY(180deg);
    border: none;
}

/* Icône verso (petite) */
.wf-icon--sm {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    margin-bottom: 10px;
}

.wf-icon--sm svg {
    width: 20px;
    height: 20px;
}

/* Titre verso */
.wf-titre--back {
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

/* Description verso */
.wf-desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin: 0;
}

/* Dark mode why-us */

/* ──────────────────────────────────────────────────────────────────────────
   29C — SPLIT SECTION APPROCHE
   ────────────────────────────────────────────────────────────────────────── */

.approche-split-section {
    overflow: hidden;
    padding: 0;
}

.approche-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    align-items: stretch;
}

/* Colonne photo */
.approche-photo-col {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.approche-photo-wrap {
    position: relative;
    height: 100%;
}

.approche-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Badge flottant */
.approche-badge {
    position: absolute;
    bottom: 32px;
    right: 0;
    background: var(--teal);
    color: #fff;
    border-radius: 12px 0 0 16px;
    padding: 16px 28px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 8px 16px rgba(0, 184, 169, 0.4);
}

.approche-badge__num {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.approche-badge__label {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.4;
    margin-top: 4px;
}

/* Colonne texte */
.approche-text-col {
    padding: 72px 64px 72px 56px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-body);
    justify-content: center;
}

.approche-title {
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.25;
    margin: 0;
}

.approche-title em {
    font-style: normal;
    color: var(--teal);
}

.approche-intro {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}

/* Engagements */
.approche-engagements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approche-eng-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-body);
    font-weight: 500;
}

.approche-eng-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 184, 169, 0.12);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.approche-eng-text { line-height: 1.5; }

/* ──────────────────────────────────────────────────────────────────────────
   29D — SECTEURS CLIENTS
   ────────────────────────────────────────────────────────────────────────── */

.secteurs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.secteur-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px 28px;
    overflow: hidden;
    min-width: 0; /* Empêche l'overflow des items de grille CSS */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secteur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.1);
    border-color: var(--sc);
}

/* Rond décoratif */
.secteur-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--sc);
    opacity: 0.06;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.secteur-card:hover::before {
    transform: scale(1.5);
    opacity: 0.1;
}

.secteur-icon {
    color: var(--sc);
    display: flex;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.secteur-card:hover .secteur-icon { transform: scale(1.06); }

.secteur-titre {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.secteur-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.secteur-stat {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sc);
    margin-top: auto;
    padding-top: 8px;
}

.secteur-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.secteur-card:hover .secteur-bar { transform: scaleX(1); }

/* ==========================================================================
   SECTION 30 — PAGE À PROPOS : UPGRADE VISUEL
   Mini stats · Timeline · Galerie équipe · Valeurs enrichies
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   30A — MINI CHIFFRES CLÉS
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   30B — TIMELINE "NOTRE PARCOURS"
   ────────────────────────────────────────────────────────────────────────── */

.about-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 24px;
    margin-top: 48px;
    padding-bottom: 8px;
}

/* Ligne horizontale */

.tl-track-fill {
    height: 100%;
    background: linear-gradient(to right, var(--teal), var(--surface-dark));
    width: 0;
    transition: width 1.5s ease 0.3s;
}

/* Déclenche le fill au scroll via AOS/IntersectionObserver */
.about-timeline.aos-animate .tl-track-fill,
.about-timeline[data-animated] .tl-track-fill {
    width: 100%;
}

/* Item timeline */

/* Dot */

/* Carte contenu */

/* Dark mode timeline */

/* ──────────────────────────────────────────────────────────────────────────
   30C — GALERIE ÉQUIPE
   ────────────────────────────────────────────────────────────────────────── */

/* Grande photo */

/* Grid 3 petites */

/* Photo */

/* Overlay avec caption */

/* ──────────────────────────────────────────────────────────────────────────
   30D — VALEURS ENRICHIES (SVG + couleurs accent)
   ────────────────────────────────────────────────────────────────────────── */

/* Fond décoratif cercle */

/* Icône SVG */

/* En dark mode, fond icône plus clair */

/* Barre bas */

/* Dark mode valeurs */

/* ==========================================================================
   SECTION 31 — SERVICES UPGRADE VISUEL
   Hub Nos Services + 8 sous-pages individuelles
   (A) Badge & bouton carte hub · (B) CTA Configurateur · (C) Pourquoi enrichi
   (D) Mini stats service · (E) Engagements · (F) Cible cards · (G) FAQ accordion
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   31A — HUB NOS SERVICES : badge numéro + lien plein
   ────────────────────────────────────────────────────────────────────────── */

/* Badge 01, 02… positionné en haut à droite de l'image */

/* Bouton plein-largeur dans la carte service hub */

/* ──────────────────────────────────────────────────────────────────────────
   31B — CTA CONFIGURATEUR
   Bande intermédiaire entre la grille et le pourquoi-externaliser
   ────────────────────────────────────────────────────────────────────────── */

/* Icône engrenage */

/* Zone texte — grandit pour remplir l'espace */

/* Bouton — override pour ce contexte sombre */

/* ──────────────────────────────────────────────────────────────────────────
   31C — POURQUOI EXTERNALISER ENRICHI
   3 cards avec liste de points + barre couleur bas
   ────────────────────────────────────────────────────────────────────────── */

/* Décoration cercle en fond */

/* Groupe icône + titre + description */

/* Liste de points check */

/* Barre colorée bas de carte */

/* Dark mode enrichi pourquoi */

/* ──────────────────────────────────────────────────────────────────────────
   31D — MINI STATS SERVICE (sous le hero de chaque page service)
   Bande colorée avec 4 chiffres clés
   ────────────────────────────────────────────────────────────────────────── */

.svc-stats-section {
    background: var(--svc-col, var(--surface-dark));
    padding: 40px 0;
}

/* Fallback pour les dark modes — hardcoder navy si svc-col non défini */

.svc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.svc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.svc-stat-item:last-child {
    border-right: none;
}

.svc-stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.02em;
}

.svc-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────────────────────
   31E — NOS ENGAGEMENTS (section 4 de chaque page service)
   4 cards avec emoji + titre + description
   ────────────────────────────────────────────────────────────────────────── */

.svc-engagements-section {
    background: var(--gray-light);
}

.svc-engagements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.svc-eng-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 3px solid var(--svc-col, var(--teal));
    border-radius: 12px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-eng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.09);
}

.svc-eng-emoji {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

.svc-eng-titre {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.svc-eng-desc {
    font-size: 0.855rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   31F — CLIENTÈLE CIBLE (section 6 de chaque page service)
   4 cards visuelles avec emoji géant + label
   ────────────────────────────────────────────────────────────────────────── */

.svc-cible-section {
    background: var(--white);
}

.svc-cible-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.svc-cible-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px 20px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    cursor: default;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-cible-card:hover {
    border-color: var(--svc-col, var(--teal));
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.08);
}

.svc-cible-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    transition: transform 0.3s ease;
}

.svc-cible-card:hover .svc-cible-icon {
    transform: scale(1.12);
}

.svc-cible-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────────────────
   31G — FAQ ACCORDION (section 7 de chaque page service)
   ────────────────────────────────────────────────────────────────────────── */

.svc-faq-section {
    background: var(--gray-light);
}

.svc-faq-list {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svc-faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.svc-faq-item.is-open {
    border-color: var(--svc-col, var(--teal));
    box-shadow: 0 4px 16px rgba(29, 29, 27, 0.08);
}

/* Bouton question */
.svc-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-heading);
    transition: background 0.2s ease;
}

.svc-faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.svc-faq-q-text {
    font-family: var(--font-display);
    font-size: 0.975rem;
    font-weight: 600;
    line-height: 1.45;
    flex: 1;
}

/* Icône flèche — rotation quand ouvert */
.svc-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
}

.svc-faq-item.is-open .svc-faq-icon {
    transform: rotate(180deg);
    background: var(--svc-col, var(--teal));
    color: #FFFFFF;
}

/* Panneau réponse */
.svc-faq-answer {
    padding: 0 24px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.svc-faq-answer p {
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   SECTION 32 — PAGE POURQUOI NVI : UPGRADE VISUEL
   (A) Arguments avec icônes SVG + barre
   (B) Comment ça marche — 3 étapes
   (C) Témoignage pull-quote photo plein largeur
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   32A — ARGUMENTS ENRICHIS (icône + barre hover)
   ────────────────────────────────────────────────────────────────────────── */

/* Icône en haut de la card */

/* Barre colorée bas de card */

/* Numéro — repositionné à droite, plus discret */

/* Assure que la card est relative pour le positionnement du numéro et de la barre */

/* ──────────────────────────────────────────────────────────────────────────
   32B — COMMENT ÇA MARCHE (3 étapes)
   ────────────────────────────────────────────────────────────────────────── */

/* Conteneur de la ligne de connexion (au-dessus de la grille) */

/* Ligne horizontale pointillée entre les 3 étapes */

/* Grille 3 colonnes */

/* Chaque étape */

/* Fond décoratif */

/* Entête : dot numéroté + icône */

/* Corps */

/* Badge délai */

/* ──────────────────────────────────────────────────────────────────────────
   32C — TÉMOIGNAGE PULL-QUOTE PHOTO
   Section plein largeur avec photo en fond + overlay sombre + citation
   ────────────────────────────────────────────────────────────────────────── */

/* Image de fond */

/* Overlay dégradé sombre */

/* Contenu positionné au-dessus */

/* Guillemets décoratifs */

/* Citation */

/* Auteur */

/* Bouton lien références */

/* Pas de dark mode override nécessaire — section toujours sombre */

/* ──────────────────────────────────────────────────────────────────────────
   32D — RESPONSIVE
   ────────────────────────────────────────────────────────────────────────── */

/* ==========================================================================
   SECTION 33 — ZONES D'INTERVENTION : UPGRADE VISUEL
   (A) Filtres colorés  (B) Périmètres 3 zones  (C) Tags quartiers
   (D) Photo bande Dakar  (E) CTA zones amélioré  (F) Zone cards améliorées
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   33A — FILTRES CARTE — couleur active dynamique
   ────────────────────────────────────────────────────────────────────────── */

.zones-filtre-btn {
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.zones-filtre-btn.is-active {
    background: var(--zf-color, var(--surface-dark));
    border-color: var(--zf-color, var(--ink));
    color: #FFFFFF;
}

/* ──────────────────────────────────────────────────────────────────────────
   33B — PÉRIMÈTRES D'INTERVENTION (3 zones)
   ────────────────────────────────────────────────────────────────────────── */

/* Fond décoratif */

/* En-tête : badge + icône */

/* Corps */

/* Liste des quartiers */

/* Barre bas */

/* ──────────────────────────────────────────────────────────────────────────
   33C — TAGS QUARTIERS (cloud de chips)
   ────────────────────────────────────────────────────────────────────────── */

/* Légende des zones */

/* Cloud de tags */

/* Tag "et plus..." */

/* ──────────────────────────────────────────────────────────────────────────
   33D — PHOTO BANDE DAKAR (plein largeur avec overlay)
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   33E — ZONE CARDS AMÉLIORÉES (lien Google Maps + couleur service)
   ────────────────────────────────────────────────────────────────────────── */

.zone-card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--zc-color, var(--teal));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(29, 29, 27, 0.10);
}

/* ──────────────────────────────────────────────────────────────────────────
   33F — CTA ZONES AMÉLIORÉ
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   33G — ADMIN NOTICE RÉFÉRENCES (visible admin seulement)
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   33H — RESPONSIVE
   ────────────────────────────────────────────────────────────────────────── */