/* =====================================================================
   J.BURLINCHON — Stylesheet principal
   Génie climatique & plomberie · depuis 1974
   Direction : sobre, industriel, technique (bureau d'étude)
   Palette : navy / bleu royal / cyan / or
   ===================================================================== */

/* ===== 1. DESIGN TOKENS ============================================== */
:root {
    /* === Palette marque (extraite du logo) === */
    --navy: #0A2440;             /* Bleu marine profond — titres, sections sombres */
    --navy-900: #071A30;         /* Marine le plus profond (fond) */
    --navy-800: #0C2A4A;         /* Marine intermédiaire */

    --primary: #0C6CB4;          /* Bleu royal */
    --primary-600: #0A5DA8;
    --primary-700: #075089;

    --cyan: #00A8CC;             /* Cyan */
    --cyan-light: #22C0E0;

    --gold: #F09C0C;             /* Or / orange — accent */
    --gold-600: #E08A00;
    --gold-soft: #FCC000;

    /* Neutres cool */
    --white: #FFFFFF;
    --paper: #F5F8FB;            /* Background principal (bleu très pâle) */
    --surface: #FFFFFF;
    --surface-2: #EDF2F8;        /* Surface alternée */
    --ink: #16263B;             /* Texte courant */
    --gray-700: #3C4B60;
    --gray-500: #677589;
    --gray-400: #8C97A8;
    --gray-300: #C3CCD8;
    --gray-200: #DEE5ED;
    --gray-100: #EDF1F6;

    /* Typographie */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    /* Layout */
    --container: 1280px;
    --container-narrow: 920px;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Espacement */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Motion (sobre) */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar */
    --nav-h: 84px;
    --nav-h-scrolled: 66px;

    /* Shadows (sobres) */
    --shadow-sm: 0 2px 8px rgba(10, 36, 64, 0.06);
    --shadow: 0 12px 32px -12px rgba(10, 36, 64, 0.18);
    --shadow-lg: 0 24px 60px -24px rgba(10, 36, 64, 0.28);

    /* Blueprint grid */
    --grid-line: rgba(12, 108, 180, 0.06);
    --grid-line-dark: rgba(255, 255, 255, 0.05);
}

/* ===== 2. RESET & BASE =============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--gold); color: var(--navy); }

/* ===== 3. TYPOGRAPHIE ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--navy);
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: var(--space-5);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

h4 { font-size: 1.1rem; font-weight: 600; }

/* Accent doré sur certains mots */
.accent { color: var(--gold); }
.accent-blue { color: var(--primary); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: var(--gray-700);
}

/* ===== 4. LAYOUT ===================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    padding: var(--space-12) 0;
    position: relative;
}

.section-intro {
    max-width: 760px;
    margin-bottom: var(--space-10);
}

/* ===== 5. EYEBROW (label technique mono) ============================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-dark .eyebrow { color: var(--cyan-light); }

/* Index de section (mono) */
.sec-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gray-400);
    letter-spacing: 0.1em;
}

/* ===== 6. BLUEPRINT GRID PATTERN ==================================== */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 85%);
}

.section-dark .bg-grid {
    background-image:
        linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
}

section > .container,
section > .container-narrow { position: relative; z-index: 1; }

/* ===== 7. SECTION DARK ============================================== */
.section-dark {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.82);
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 15%, rgba(12, 108, 180, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 10% 90%, rgba(0, 168, 204, 0.18) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: var(--white); }

.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, 0.78); }
.section-dark .sec-index { color: rgba(255, 255, 255, 0.4); }

.section-dark a:not(.btn) {
    color: var(--cyan-light);
    border-bottom: 1px solid rgba(34, 192, 224, 0.4);
}
.section-dark a:not(.btn):hover { border-bottom-color: var(--cyan-light); }

/* ===== 8. NAVBAR ==================================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    background: rgba(245, 248, 251, 0.8);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: height var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    height: var(--nav-h-scrolled);
    border-bottom-color: var(--gray-200);
    background: rgba(245, 248, 251, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}
.nav-logo img {
    height: 52px;
    width: auto;
    transition: height var(--transition), opacity var(--transition);
    display: block;
}
.nav-logo .logo-white-img {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}
.navbar.scrolled .nav-logo img { height: 40px; }

.nav-links ul {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }

.nav-cta { margin-left: var(--space-2); }

/* Bouton Contact moderne — pill or, icône flèche, hover navy */
.nav-links .nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 2.3rem;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.005em;
    border-radius: 999px;
    border: none;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px -2px rgba(240, 156, 12, 0.4);
    white-space: nowrap;
    line-height: 1;
}
.nav-links .nav-cta-btn svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
    flex-shrink: 0;
}
.nav-links .nav-cta-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -4px rgba(10, 36, 64, 0.45);
}
.nav-links .nav-cta-btn:hover svg { transform: translateX(3px); }
.nav-links .nav-cta-btn[aria-current="page"] {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 14px -2px rgba(10, 36, 64, 0.35);
}
/* L'underline doré de .nav-links a ne doit pas apparaître sur ce bouton */
.nav-links .nav-cta-btn::after { display: none; }

/* Burger */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 102;
    position: relative;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    z-index: 99;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, visibility 0s linear 0.4s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
}

.nav-overlay[data-open="true"] {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, visibility 0s linear 0s;
}

.nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: auto;
}

.nav-overlay li a {
    font-size: clamp(1.7rem, 6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
    display: inline-block;
    padding: var(--space-2) 0;
}

.nav-overlay li a[aria-current="page"] { color: var(--primary); }

.nav-overlay-footer {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: var(--gray-700);
    font-family: var(--font-mono);
}

.nav-overlay-footer a { color: var(--primary); font-weight: 600; }

body[data-menu-open="true"] { overflow: hidden; }

/* ===== 9. BUTTONS ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.95rem 1.7rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px -8px rgba(12, 108, 180, 0.5);
}
.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(12, 108, 180, 0.6);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 8px 20px -8px rgba(240, 156, 12, 0.5);
}
.btn-gold:hover {
    background: var(--gold-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(240, 156, 12, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-300);
}
.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.section-dark .btn-secondary,
.cta-block .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.section-dark .btn-secondary:hover,
.cta-block .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn-ghost {
    padding: 0;
    color: var(--primary);
    font-weight: 600;
    border-radius: 0;
    position: relative;
}
.btn-ghost::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 100%; height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* ===== 10. HERO ==================================================== */
.hero {
    position: relative;
    min-height: 0;
    padding: calc(var(--nav-h) + var(--space-10)) 0 var(--space-12);
    overflow: hidden;
    background: var(--paper);
}

.hero > .container { position: relative; z-index: 2; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
    align-items: center;
}

.hero-content { max-width: 620px; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .accent { color: var(--gold); }

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--gray-700);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

/* === HERO FULLSCREEN (accueil) — image bg + dégradé sombre === */
.hero.hero-fullscreen {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--nav-h) 0 var(--space-10);
    display: flex;
    align-items: center;
    background: var(--navy-900);
    color: var(--white);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(7, 26, 48, 0.95) 0%, rgba(10, 36, 64, 0.82) 32%, rgba(10, 36, 64, 0.55) 62%, rgba(10, 36, 64, 0.25) 100%),
        linear-gradient(180deg, rgba(7, 26, 48, 0.4) 0%, transparent 25%, transparent 75%, rgba(7, 26, 48, 0.6) 100%);
    pointer-events: none;
}
.hero.hero-fullscreen .hero-content {
    max-width: 720px;
    color: var(--white);
    position: relative;
    z-index: 2;
}
.hero.hero-fullscreen h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.08;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero.hero-fullscreen .hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: var(--space-10);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero.hero-fullscreen .eyebrow {
    color: var(--cyan-light);
}
.hero.hero-fullscreen .eyebrow::before { background: var(--gold); }
.hero.hero-fullscreen .data-row {
    border-top-color: rgba(255, 255, 255, 0.22);
}
.hero.hero-fullscreen .data-item .num { color: var(--white); }
.hero.hero-fullscreen .data-item .num .suffix { color: var(--gold); }
.hero.hero-fullscreen .data-item .lbl { color: rgba(255, 255, 255, 0.72); }
.hero.hero-fullscreen .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.06);
}
.hero.hero-fullscreen .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* Scroll cue (indicateur de défilement) */
.scroll-cue {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    transition: color var(--transition);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue::after {
    content: '';
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.7); opacity: 0.4; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* === NAVBAR TRANSPARENTE sur hero sombre (avant scroll) === */
body.has-hero-dark .navbar:not(.scrolled) {
    background: linear-gradient(180deg, rgba(7, 26, 48, 0.55) 0%, rgba(7, 26, 48, 0.15) 60%, rgba(7, 26, 48, 0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
}
body.has-hero-dark .navbar:not(.scrolled) .nav-links a:not(.nav-cta-btn) { color: var(--white); }
body.has-hero-dark .navbar:not(.scrolled) .nav-links a:hover::after,
body.has-hero-dark .navbar:not(.scrolled) .nav-links a[aria-current="page"]::after { background: var(--gold); }
body.has-hero-dark .navbar:not(.scrolled) .nav-links a[aria-current="page"]:not(.nav-cta-btn) { color: var(--gold); }
body.has-hero-dark .navbar:not(.scrolled) .nav-burger span { background: var(--white); }
body.has-hero-dark .navbar:not(.scrolled) .logo-color { opacity: 0; }
body.has-hero-dark .navbar:not(.scrolled) .logo-white-img { opacity: 1; }

/* Data row stats (mono) */
.data-row {
    display: flex;
    gap: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.data-item .num {
    font-family: var(--font-sans);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.data-item .num .suffix { font-size: 1.3rem; color: var(--gold); font-weight: 700; }

.data-item .lbl {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-2);
}

/* Hero visuel : photo réelle + cadre technique */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
.hero-visual:hover img { transform: scale(1.04); }

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 36, 64, 0.55) 100%);
    pointer-events: none;
}

/* coin technique doré */
.hero-visual .corner-tag {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.hero-visual .visual-caption {
    position: absolute;
    bottom: var(--space-5);
    left: var(--space-5);
    right: var(--space-5);
    z-index: 2;
    color: var(--white);
}
.hero-visual .visual-caption strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.hero-visual .visual-caption span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.06em;
}

/* ===== 11. CARDS (services) ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}
.card:hover::before { transform: scaleX(1); }

.card-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gray-400);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: background var(--transition), color var(--transition);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--primary); color: var(--white); }

.card h3 { color: var(--navy); margin-bottom: var(--space-3); }
.card p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.6; }

.card-features {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: var(--space-4) 0 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.card-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.card-features li::before {
    content: '';
    width: 14px; height: 2px;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 0.6rem;
}

.card-tarif {
    margin-top: var(--space-5);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-dark .card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.section-dark .card:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.section-dark .card h3 { color: var(--white); }
.section-dark .card-icon { background: rgba(255, 255, 255, 0.08); color: var(--cyan-light); }
.section-dark .card:hover .card-icon { background: var(--primary); color: var(--white); }
.section-dark .card-features { border-top-color: rgba(255, 255, 255, 0.12); }

/* ===== 12. SPLIT SECTION =========================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}
.split.reverse .split-text { order: 2; }
.split.airy { gap: var(--space-12); }
.split.airy .split-text > * + * { margin-top: var(--space-5); }
.split.airy .split-text h2 { margin-bottom: var(--space-2); }

.split-visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split-visual:hover img { transform: scale(1.05); }
.split-visual.wide { aspect-ratio: 16 / 11; }
.split-visual.landscape { aspect-ratio: 3 / 2; }

/* Feature list */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0; padding: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.96rem;
    color: var(--gray-700);
    line-height: 1.55;
}
.feature-list li::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 0.7rem;
}
.section-dark .feature-list li { color: rgba(255,255,255,0.8); }

.feature-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    margin-bottom: var(--space-4);
}
.section-dark .feature-label { color: var(--cyan-light); }

/* figure-block (sans photo) */
.split-visual.figure-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-8);
    aspect-ratio: 4 / 5;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.split-visual.figure-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.split-visual.figure-block .figure-number {
    position: relative; z-index: 2;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
}
.split-visual.figure-block .figure-number em { color: var(--gold); font-style: normal; }
.split-visual.figure-block .figure-label {
    position: relative; z-index: 2;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== 13. PROCESS LIST (numéroté mono) ============================ */
.process-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.process-item {
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}
.process-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}
.process-item .num {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
    display: block;
    font-weight: 500;
}
.process-item h3 { color: var(--navy); margin-bottom: var(--space-3); }
.process-item p { color: var(--gray-700); font-size: 0.93rem; }

.section-dark .process-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .process-item:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.section-dark .process-item h3 { color: var(--white); }

/* ===== 14. PILLARS (engagements) =================================== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.pillar {
    padding: var(--space-6);
    border-left: 3px solid var(--gold);
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}
.pillar .pillar-icon {
    color: var(--primary);
    margin-bottom: var(--space-4);
}
.pillar .pillar-icon svg { width: 32px; height: 32px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: var(--space-3); }
.pillar p { font-size: 0.92rem; color: var(--gray-700); }

.section-dark .pillar {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--gold);
}
.section-dark .pillar .pillar-icon { color: var(--cyan-light); }

/* ===== 15. CERTIFICATIONS (badges) ================================ */
.cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}
.cert-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: var(--surface);
    transition: border-color var(--transition), color var(--transition);
}
.cert-badge:hover { border-color: var(--gold); color: var(--primary); }
.section-dark .cert-badge {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* ===== 16. QUOTE =================================================== */
.quote {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8) var(--space-4);
}
.quote-mark {
    font-size: 4rem;
    line-height: 0.5;
    color: var(--gold);
    display: block;
    margin-bottom: var(--space-5);
    font-weight: 700;
}
.quote-text {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    line-height: 1.4;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
}
.section-dark .quote-text { color: var(--white); }
.quote-author {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.section-dark .quote-author { color: rgba(255, 255, 255, 0.6); }

/* ===== 17. CTA BLOCK ============================================== */
.cta-block {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-12) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 20%, transparent 75%);
    pointer-events: none;
}
.cta-block::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gold);
}
.cta-block > * { position: relative; z-index: 2; }
.cta-block h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-block p { color: rgba(255, 255, 255, 0.82); max-width: 580px; margin: 0 auto var(--space-8); }
.cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ===== 18. DIVIDER =============================================== */
.divider { height: 1px; background: var(--gray-200); margin: var(--space-10) 0; }

/* ===== 19. ZONES LIST =========================================== */
.zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}
.zone-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: all var(--transition);
}
.zone-tag:hover { border-color: var(--gold); color: var(--navy); }
.section-dark .zone-tag {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.82);
}

/* ===== 20. FOOTER =============================================== */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.68);
    padding: var(--space-12) 0 var(--space-6);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(12, 108, 180, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.footer-brand img { height: 56px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan-light);
    margin-bottom: var(--space-5);
    font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
}
.footer-contact strong { color: var(--white); font-weight: 600; }
.footer-contact a:hover { color: var(--cyan-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.45);
}
.footer-bottom-links { display: flex; gap: var(--space-5); list-style: none; flex-wrap: wrap; }

/* ===== 21. SOUS-FOOTER AGENCE (DOFOLLOW) ======================== */
.agency-credit {
    padding: 1rem 0;
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}
.agency-credit p { margin: 0; }
.agency-credit a { color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.agency-credit a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ===== 22. BACK TO TOP ========================================= */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition), background var(--transition);
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0s, background var(--transition);
}
.back-to-top:hover { background: var(--navy); transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ===== 23. REVEAL (sobre, fade-up) ============================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal.stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(2) { transition-delay: 0.13s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(3) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(4) { transition-delay: 0.29s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(5) { transition-delay: 0.37s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(6) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal.stagger > * { opacity: 1; transform: none; }
}

/* ===== 24. A11Y ================================================ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== 25. RESPONSIVE ========================================= */
@media (max-width: 1024px) {
    .cards-grid, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-visual { max-width: 480px; margin: 0 auto; order: -1; }
    .split { grid-template-columns: 1fr; gap: var(--space-8); }
    .split.reverse .split-text { order: 0; }
    .split-visual { max-width: 560px; margin: 0 auto; }
    .process-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: var(--space-10) 0; }
    h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    .container, .container-narrow { padding: 0 var(--space-5); }
    .cards-grid, .cards-grid.cols-2, .cards-grid.cols-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .data-row { gap: var(--space-6); }
}

@media (max-width: 600px) {
    :root { --nav-h: 72px; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
    .cta-block { padding: var(--space-8) var(--space-5); }
    .back-to-top { bottom: var(--space-4); right: var(--space-4); }
}
