/* ========================================================================
   COFT — Home V3 ("Living Territory")
   ------------------------------------------------------------------------
   Inspirations : vaulk.com (rythme/narration/fluidité), rig.ai (sobriété
   architecturale). Charte COFT 2025 : cream + sage greens, deep black,
   Josefin Sans. Préfixe `.hv3-` pour éviter toute collision.
   ======================================================================== */

:root {
    /* ── Palette officielle (Brandbook COFT 2025) ──────────────── */
    /* Main: blanc pur + noir profond. Secondary: 3 sages.        */
    --hv3-bg:           #ffffff;
    --hv3-bg-soft:      #ffffff;          /* bg site = blanc pur */
    --hv3-bg-warm:      #ffffff;          /* bg site = blanc pur */
    --hv3-fg:           #100f12;
    --hv3-muted:        #565450;          /* assez foncé pour AA   */
    --hv3-line:         rgba(16, 15, 18, 0.12);
    --hv3-line-soft:    rgba(16, 15, 18, 0.06);
    --hv3-line-strong:  rgba(16, 15, 18, 0.26);

    --hv3-sage-dk:      #7b8e77;          /* RGB 123 142 119 */
    --hv3-sage-md:      #93ac8c;          /* RGB 147 172 140 */
    --hv3-sage-lt:      #c1cfbc;          /* RGB 193 207 188 */ 

    /* ── Typography ────────────────────────────────────────────── */
    --hv3-font-display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    --hv3-font-body:    "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    --hv3-font-mono:    "Josefin Sans", "Helvetica Neue", Arial, sans-serif;

    /* ── Spacing / motion ──────────────────────────────────────── */
    --hv3-pad-x:        clamp(1.25rem, 5vw, 5rem);
    --hv3-section-y:    clamp(6rem, 12vw, 12rem);
    --hv3-ease:         cubic-bezier(0.65, 0.05, 0.36, 1);
    --hv3-ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Radii (architectural softness without losing edge precision) ──── */
    --hv3-radius:       14px;
    --hv3-radius-sm:    6px; 
}

/* ── Dark mode (Develop / Imagine / Contact) ─────────────────── */
html[data-hv3-mode="dark"] {
    --hv3-bg:           #0c0c10;
    --hv3-bg-soft:      #131318;
    --hv3-bg-warm:      #1a1a22;
    --hv3-fg:           #f5f1e8;
    --hv3-muted:        #8e8c85;
    --hv3-line:         rgba(241, 241, 232, 0.16);
    --hv3-line-soft:    rgba(241, 241, 232, 0.08);
    --hv3-line-strong:  rgba(241, 241, 232, 0.32);
}

/* ============================================================
   GLOBAL
   ============================================================ */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--hv3-bg);
    color: var(--hv3-fg);
    font-family: var(--hv3-font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 1s var(--hv3-ease), color 1s var(--hv3-ease);
}
body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
em {
    /* Brandbook : pas d'italic. On garde le rôle d'emphase via la teinte sage. */
    font-style: normal;
    color: var(--hv3-sage-dk);
    font-weight: 400;
    transition: color 1s var(--hv3-ease);
}
html[data-hv3-mode="dark"] em {
    color: var(--hv3-sage-lt);
}

::selection { background: var(--hv3-sage-md); color: var(--hv3-bg); }

/* ────────────────────────────────────────────────────────────────
   SYNC DARK-MODE TRANSITIONS
   ----------------------------------------------------------------
   Body transitionne bg+color en 1s var(--hv3-ease).
   Pour éviter tout décalage / flash, on aligne TOUS les éléments
   qui utilisent les CSS vars `--hv3-bg*`, `--hv3-fg`, `--hv3-muted`,
   `--hv3-line*` sur la même cadence.
   Les cards avec accent fixe (sage-md, etc.) gardent leur couleur :
   elles ne sont pas dans cette liste.
   ──────────────────────────────────────────────────────────────── */
.hv3-obs-card, .hv3-flow-step, .hv3-imag-card,
.hv3-pgrid a, .hv3-featured-link,
.hv3-mission-fig, .hv3-flow-figure,
.hv3-stat,
.hv3-partner-card,
.hv3-caps-list li, .hv3-proj,
.hv3-hero-foot,
.hv3-flow-track, .hv3-flow-progress, .hv3-flow-progress-bar,
.hv3-meta-rule,
.hv3-progress, .hv3-progress-bar {
    transition: background-color 1s var(--hv3-ease),
                color            1s var(--hv3-ease),
                border-color     1s var(--hv3-ease),
                box-shadow       1s var(--hv3-ease);
}

/* Lenis */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   THREE.JS CANVAS + ATMOSPHERIC LAYERS
   ============================================================ */
/* Canvas Three.js : perceptible, vivant, architectural.
   Plus présent qu'avant — évoque réseau / structure / territoire vivant
   sans gêner la lecture des textes. */
#hv3-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.62;
    transition: opacity 1.2s var(--hv3-ease);
}
.hv3-canvas-tint {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* bg site = blanc pur : plus de voile sage autour de la forme Three.js */
    background: none;
    transition: opacity 1s var(--hv3-ease);
}
html[data-hv3-mode="dark"] .hv3-canvas-tint {
    background:
        radial-gradient(circle at 70% 30%, rgba(147, 172, 140, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 30% 90%, rgba(123, 142, 119, 0.05) 0%, transparent 50%);
}

/* film grain — extrêmement subtil */
.hv3-grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
html[data-hv3-mode="dark"] .hv3-grain {
    opacity: 0.07;
    mix-blend-mode: screen;
}

/* ============================================================
   HEADER (sticky-floating)
   ============================================================ */
/* Header flottant : barre arrondie centrée, détachée des bords.
   Toujours visible sur n'importe quel fond (clair, sombre, vidéo, sage). */
.hv3-head {
    position: fixed;
    top: 1rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    pointer-events: none;
    border-radius: 999px;
    background: var(--hv3-bg);
    color: var(--hv3-fg);
    box-shadow:
        0 1px 0 rgba(16, 15, 18, 0.04) inset,
        0 14px 30px -20px rgba(16, 15, 18, 0.18),
        0 2px 6px -3px rgba(16, 15, 18, 0.08);
    transition: background-color 1s var(--hv3-ease),
                color 1s var(--hv3-ease),
                box-shadow 1s var(--hv3-ease),
                top 0.5s ease, padding 0.5s ease;
}
.hv3-head-inner {
    padding: 0.7rem 1.5rem 0.7rem 1.1rem;
}
.hv3-head.is-scrolled {
    top: 0.75rem;
    box-shadow:
        0 1px 0 rgba(16, 15, 18, 0.04) inset,
        0 20px 40px -22px rgba(16, 15, 18, 0.22),
        0 3px 8px -3px rgba(16, 15, 18, 0.10);
}
html[data-hv3-mode="dark"] .hv3-head {
    background: var(--hv3-bg-warm);
    color: var(--hv3-fg);
    box-shadow:
        0 1px 0 rgba(241, 241, 232, 0.05) inset,
        0 14px 30px -20px rgba(0, 0, 0, 0.55),
        0 2px 6px -3px rgba(0, 0, 0, 0.30);
}
html[data-hv3-mode="dark"] .hv3-head.is-scrolled {
    box-shadow:
        0 1px 0 rgba(241, 241, 232, 0.05) inset,
        0 20px 40px -22px rgba(0, 0, 0, 0.65),
        0 3px 8px -3px rgba(0, 0, 0, 0.35);
}
.hv3-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    pointer-events: auto;
}
.hv3-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    color: var(--hv3-fg);
    transition: color 0.6s ease;
}
.hv3-brand-mark {
    width: 22px;
    height: 22px;
    color: var(--hv3-sage-dk);
    transform: translateY(4px);
}
.hv3-brand-mark svg { width: 100%; height: 100%; }
.hv3-brand-name {
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.18em;
}
.hv3-brand-sub {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.hv3-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-family: var(--hv3-font-display);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.hv3-nav a {
    position: relative;
    color: var(--hv3-fg);
    padding: 0.25rem 0;
    transition: color 0.4s ease;
}
.hv3-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.4s var(--hv3-ease-out);
}
.hv3-nav a:hover { color: var(--hv3-sage-dk); }
html[data-hv3-mode="dark"] .hv3-nav a:hover { color: var(--hv3-sage-lt); }
.hv3-nav a:hover::after { width: 100%; }
.hv3-nav-cta {
    padding: 0.55rem 1rem !important;
    border: 1px solid var(--hv3-line-strong);
    border-radius: 999px;
    transition: all 0.4s ease;
}
.hv3-nav-cta:hover {
    background: var(--hv3-fg);
    color: var(--hv3-bg) !important;
    border-color: var(--hv3-fg);
}
.hv3-nav-cta::after { display: none; }
.hv3-head-clock {
    font-family: var(--hv3-font-display);
    font-size: 0.9rem;
    color: var(--hv3-muted);
    letter-spacing: 0.16em;
    min-width: 5.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   FLOATING CHAPTER INDEX (Vaulk-style, left rail)
   ============================================================ */
.hv3-index {
    position: fixed;
    left: clamp(0.35rem, 0.8vw, 0.9rem);   /* dans la marge gauche, hors du contenu */
    bottom: 2.25rem;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Masquée sous ~1150px : plus assez de marge → éviterait de toucher le contenu. */
@media (max-width: 1150px) { .hv3-index { display: none; } }
.hv3-index.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hv3-index ol {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.hv3-index li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--hv3-font-display);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hv3-muted);
    cursor: pointer;
    transition: color 0.4s ease;
}
.hv3-index li:hover { color: var(--hv3-fg); }
/* Frise compacte : pas de tiret (numéros seuls) → tient dans la marge.
   L'actif se distingue par la couleur, le label n'apparaît qu'au survol. */
.hv3-ix-mark { display: none; }
.hv3-index li.is-active { color: var(--hv3-fg); font-weight: 500; }
.hv3-ix-num {
    min-width: 1.6rem;
    font-variant-numeric: tabular-nums;
}
.hv3-ix-lbl {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.4s ease, max-width 0.5s var(--hv3-ease-out);
}
.hv3-index li:hover .hv3-ix-lbl {
    opacity: 1;
    max-width: 180px;
}

/* ============================================================
   SCROLL PROGRESS (thin top bar)
   ============================================================ */
.hv3-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 1px;
    z-index: 110;            /* au-dessus du header (100), reste visible toujours */
    background: var(--hv3-line-soft);
}
.hv3-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--hv3-sage-dk);
    transform-origin: 0 50%;
}
html[data-hv3-mode="dark"] .hv3-progress-bar { background: var(--hv3-sage-lt); }

/* ============================================================
   MAIN ROOT
   ============================================================ */
.hv3 {
    position: relative;
    z-index: 5;
    color: var(--hv3-fg);
    display: flex;             /* colonne → `order` pilote l'ordre des sections (page-builder) */
    flex-direction: column;
}
/* Le Hero (prelude) reste toujours en tête ; les autres sections reçoivent
   leur `order` en inline depuis le layout COFT Content. */
.hv3-chapter.hv3-prelude { order: 0; }

/* shared section heading */
.hv3-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;   /* titre à gauche, CTA (si présent) aligné à droite */
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.hv3-section-head .hv3-caps-cta { margin-bottom: 0.4rem; }
.hv3-section-head--inline {
    margin-top: clamp(4rem, 8vw, 7rem);
}
.hv3-eyebrow {
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    font-weight: 500;            /* minimum 500 : eyebrow lisible et net */
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-muted);
}
/* Le chap-marker (« 05 Partners », « 02 Services »…) sert déjà de label de
   section → l'eyebrow de section-head fait doublon : on le masque (desktop
   inclus, plus seulement mobile). */
.hv3-section-head .hv3-eyebrow { display: none; }
.hv3-display {
    font-family: var(--hv3-font-display);
    font-weight: 500;            /* titres de section : minimum 500 */
    font-size: clamp(2.5rem, 6.5vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0;
}
.hv3-display em { font-weight: 600; }
.hv3-display--mid {
    font-size: clamp(2rem, 4.5vw, 4rem);
}
.hv3-display em { letter-spacing: -0.015em; }

/* CTA pill — style de la capture : bordure fine, coins full-round,
   texte en casse normale, flèche à droite. Fond transparent au repos,
   rempli au hover. */
.hv3-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    font-family: var(--hv3-font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--hv3-fg);
    padding: 0.95rem 1.8rem;
    border: 1px solid var(--hv3-line-strong);
    border-radius: 999px;
    background: transparent;
    line-height: 1;
    transition: background 0.45s var(--hv3-ease-out),
                color 0.45s var(--hv3-ease-out),
                border-color 0.45s var(--hv3-ease-out);
}
.hv3-link-arrow svg {
    width: 18px; height: 18px;
    transition: transform 0.5s var(--hv3-ease-out);
}
.hv3-link-arrow:hover {
    background: var(--hv3-fg);
    color: var(--hv3-bg);
    border-color: var(--hv3-fg);
}
.hv3-link-arrow:hover svg { transform: translateX(4px); }
.hv3-link-arrow--lg {
    font-size: 1.02rem;
    padding: 1.05rem 2rem;
    margin-top: 3rem;
}

/* ============================================================
   INTRO LOADER — premium reveal au load
   ------------------------------------------------------------
   Comportement :
     1. plein écran blanc (couleur principale charte)
     2. logo COFT centré, révélé en clip-path bas→haut + rotation
        douce -8° → 0° + scale 0.92 → 1
     3. le loader sort en clip-path inset(0 0 100% 0) — la page
        est dévoilée par le bas. En parallèle, le hero joue son
        propre reveal (timeline en pause jusque-là).
   Accessibilité :
     - prefers-reduced-motion : le loader est retiré immédiatement
     - sessionStorage : ne rejoue pas l'intro sur navigation interne
     - fallback CSS : auto-hide après 4s si le JS plante
   ============================================================ */
.hv3-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hv3-bg);          /* white pur, charte */
    overflow: hidden;
    will-change: clip-path;
    /* clip-path initial : loader complètement visible */
    clip-path: inset(0 0 0 0);
}
/* État "fini" : ne reçoit plus les clics, mais visuellement déjà sorti */
.hv3-loader[data-hv3-done] {
    pointer-events: none;
}
.hv3-loader-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* léger fond mesh-grid très subtil pour la profondeur (architectural) */
    background-image:
        linear-gradient(rgba(16, 15, 18, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 15, 18, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
}
/* Cadre = boîte EXACTE du logo (ratio 853/567, comme le fichier logo du header).
   La vidéo est carrée avec des marges (7,4 % L/R, ~21,7 % H/B) autour du logo :
   on la fait déborder et on rogne ces marges via overflow → bords vidéo = bords du logo. */
.hv3-loader-video-wrap {
    width: clamp(220px, 29vw, 392px);    /* largeur d'affichage du logo */
    /* Ratio = largeur du logo (852) sur HAUTEUR PLEINE (1000) → on ne rogne QUE
       la gauche/droite (marges 7,4 %), jamais le haut/bas → le logo et son halo
       restent entièrement visibles pendant toute l'animation. */
    aspect-ratio: 852 / 1000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hv3-loader-video {
    width: 117.37%;                      /* 1000/852 → le logo remplit la largeur du cadre */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex: none;
    /* Vidéo-logo à fond blanc → `multiply` rend le blanc transparent : seul le
       logo ressort, fondu dans le fond blanc + grille du loader. */
    mix-blend-mode: multiply;
}
/* Layer d'animation : le logo qui « vole » vers le header (2 couches superposées :
   snapshot de la vidéo + icône du header, qui se crossfadent pendant le vol). */
.hv3-fly-stage {
    position: fixed;
    left: 0; top: 0;
    pointer-events: none;
    z-index: 10000;
    will-change: transform, opacity;
}
.hv3-fly-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.hv3-fly-video { mix-blend-mode: multiply; }   /* couche snapshot = même rendu que la vidéo */
/* Pas de scroll tant que l'intro tourne */
html.hv3-loading {
    overflow: hidden;
}
html.hv3-loading body {
    overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
    .hv3-loader { display: none !important; }
}

/* ============================================================
   COFT C-LOGO (53 radial segments)
   ============================================================ */
.hv3-c-svg {
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
}
.hv3-c-seg {
    transform-origin: center;
    will-change: transform, opacity, stroke-dashoffset;
}
.hv3-brand-mark {
    width: 28px;
    height: 28px;
    color: var(--hv3-sage-dk);
    display: inline-block;
    transform: translateY(5px);
}
html[data-hv3-mode="dark"] .hv3-brand-mark { color: var(--hv3-sage-lt); }

/* Massive hero backdrop logo — present, prominent, the centerpiece of the right half */
.hv3-hero-logo {
    position: absolute;
    top: 50%;
    right: -8%;
    transform: translateY(-50%);
    width: clamp(80vh, 125vh, 1350px);
    height: clamp(80vh, 125vh, 1350px);
    z-index: 1;
    color: var(--hv3-sage-dk);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}
html[data-hv3-mode="dark"] .hv3-hero-logo {
    color: var(--hv3-sage-lt);
    mix-blend-mode: screen;
}

/* Massive bascule watermark logo */
.hv3-bascule-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(95vh, 95vw);
    height: min(95vh, 95vw);
    z-index: 0;
    color: var(--hv3-sage-dk);
    opacity: 0.12;
    pointer-events: none;
    mix-blend-mode: multiply;
}
html[data-hv3-mode="dark"] .hv3-bascule-logo {
    color: var(--hv3-sage-lt);
    opacity: 0.10;
    mix-blend-mode: screen;
}

/* ============================================================
   01 — PRELUDE / HERO
   ============================================================ */
.hv3-chapter.hv3-prelude {
    position: relative;
    min-height: 100vh;
    padding: 6.5rem var(--hv3-pad-x) 3.5rem;
    display: flex;
    align-items: flex-end;       /* contenu calé en bas du hero */
    /* No overflow:hidden — the COFT C-logo intentionally bleeds into the next section */
}
@media (min-height: 700px) and (max-height: 920px) {
    .hv3-chapter.hv3-prelude {
        padding: 5.25rem var(--hv3-pad-x) 3rem;
    }
    .hv3-hero-title { font-size: clamp(2.6rem, 6.5vw, 6rem); margin-bottom: 1.25rem; }
    .hv3-hero-lede  { margin-bottom: 1.5rem; }
}
/* Desktop : on réserve le coin bas-droite pour le carousel partenaires
   afin que le titre/lede ne passent pas dessous. */
@media (min-width: 1024px) {
    .hv3-prelude-inner { padding-right: clamp(360px, 36vw, 580px); }
}

/* Hero cinematic video — subtle, behind everything.
   Fond noir solide + z-index local pour que jamais le canvas Three.js
   du prelude (fixé en arrière-plan) ne transparaisse pendant les
   transitions de clips. */
.hv3-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background: #100f12;
}
.hv3-hero-video-el {
    position: absolute;          /* superposition A+B pour le crossfade */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1) brightness(0.92) saturate(1.05);
    will-change: opacity;
    background: #100f12;
}
.hv3-hero-video-el--a { opacity: 1; z-index: 1; }   /* active au load */
.hv3-hero-video-el--b { opacity: 0; z-index: 2; }   /* fade-in par-dessus lors du swap */
/* Overlay : gradient linéaire haut → bas, plus léger.
   - Haut quasi transparent : la vidéo respire pleinement
   - Bas modéré : juste ce qu'il faut pour les textes blancs lisibles */
.hv3-hero-video-tint {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(180deg, 
            rgba(16, 15, 18, 0.08) 0%,
            rgba(16, 15, 18, 0.16) 35%,
            rgba(16, 15, 18, 0.32) 60%,
            rgba(16, 15, 18, 0.50) 85%,
            rgba(16, 15, 18, 0.55) 100%);
}
html[data-hv3-mode="dark"] .hv3-hero-video-el {
    opacity: 1;
}
/* En dark mode le hero garde le même overlay sombre — il est déjà adapté */
.hv3-prelude-inner {
    position: relative; 
    z-index: 2;
    width: 100%;
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
.hv3-meta-row {
    display: flex;  
    align-items: center;
    gap: 1rem;
    font-family: var(--hv3-font-display); 
    font-size: 0.88rem;
    font-weight: 500; 
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv3-fg);              /* noir : lisible sur la vidéo */
    margin-bottom: 2rem;
}
.hv3-coord {
    color: var(--hv3-fg);              /* noir */
    font-variant-numeric: tabular-nums;
}
html[data-hv3-mode="dark"] .hv3-coord { color: var(--hv3-fg); }
.hv3-meta-rule {
    flex: 0 0 60px;
    height: 1px;
    background: var(--hv3-fg);
    opacity: 0.55;
}
.hv3-hero-title {
    font-family: var(--hv3-font-display);
    font-weight: 400;            /* hero : minimum 400 (gros déjà = très présent) */
    font-size: clamp(3rem, 7.5vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 1.75rem;
}
.hv3-hero-title em { font-weight: 600; }
.hv3-hero-line {
    display: block;
    /* Pas d'overflow:hidden : combiné au line-height serré, il rognait le haut
       des glyphes pendant l'animation d'apparition (blur/translate). */
    padding-bottom: 0.08em;
}
.hv3-hero-lede {
    max-width: 36rem;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.55;
    color: var(--hv3-fg);              /* noir : lisible sur la vidéo */
    font-weight: 400;
    margin: 0 0 2.25rem;
}
.hv3-hero-foot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem 3rem;
    border-top: 1px solid var(--hv3-line);
    padding-top: 1.5rem;
    max-width: 1100px;
}
.hv3-spec {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--hv3-font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hv3-spec span:first-child {
    color: var(--hv3-fg);              /* noir : lisible sur la vidéo */
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.75;
}
.hv3-spec span:last-child {
    color: var(--hv3-fg);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hv3-scroll-cue {
    position: absolute;
    bottom: 6.5rem;             /* above the partners marquee */
    right: var(--hv3-pad-x);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--hv3-font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-fg);              /* noir : lisible sur la vidéo */
    z-index: 3;
}
.hv3-scroll-cue svg {
    width: 14px;
    height: 24px;
    animation: hv3-bob 2.6s ease-in-out infinite;
}
@keyframes hv3-bob {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ──────────────────────────────────────────────────────────────
   HERO — couleurs forcées en blanc (overlay sombre sur la vidéo).
   Scopé strictement à .hv3-prelude pour ne pas affecter le reste
   du site. Pas d'ombre, pas de halo : le contraste est porté par
   l'overlay sombre sur la vidéo.
   ────────────────────────────────────────────────────────────── */
.hv3-prelude { color: #ffffff; }
.hv3-prelude .hv3-meta-row,
.hv3-prelude .hv3-coord,
.hv3-prelude .hv3-meta-lbl,
.hv3-prelude .hv3-hero-title,
.hv3-prelude .hv3-hero-lede,
.hv3-prelude .hv3-spec span,
.hv3-prelude .hv3-scroll-cue {
    color: #ffffff;
}
.hv3-prelude .hv3-meta-rule { background: rgba(255, 255, 255, 0.50); }
/* em "workflows." : sage-lt pour bon contraste sur dark */
.hv3-prelude .hv3-hero-title em { color: var(--hv3-sage-lt); }
/* Spec : 1ère ligne (label) atténuée, 2e ligne (valeur) pleine intensité */
.hv3-prelude .hv3-spec span:first-child { color: rgba(255, 255, 255, 0.65); }
.hv3-prelude .hv3-spec span:last-child  { color: #ffffff; }
/* CTAs : primary inversé (fond blanc, texte noir), alt outlined blanc */
.hv3-prelude .hv3-cta--primary {
    background: #ffffff;
    color: var(--hv3-fg);
    border-color: #ffffff;
}
.hv3-prelude .hv3-cta--primary:hover {
    background: var(--hv3-sage-md);
    color: #ffffff;
    border-color: var(--hv3-sage-md);
}
.hv3-prelude .hv3-cta--alt {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
.hv3-prelude .hv3-cta--alt:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}
/* Partners marquee : bande BLANCHE avec texte NOIR — rupture nette sous
   le hero sombre, transition propre vers la section Observe (bg blanc). */
.hv3-prelude .hv3-hero-partners {
    background: #ffffff;
    border-top: 1px solid rgba(16, 15, 18, 0.08);
}
.hv3-prelude .hv3-hp-item { color: var(--hv3-fg); }
.hv3-prelude .hv3-hp-dot  { background: var(--hv3-sage-dk); }
.hv3-prelude .hv3-hero-foot { border-top-color: rgba(255, 255, 255, 0.25); }

/* ──────────────────────────────────────────────────────────────
   HERO — bouton "mode vidéo" (discret, toujours visible)
   ────────────────────────────────────────────────────────────── */
.hv3-video-toggle {
    position: absolute;
    top: clamp(5.5rem, 12vh, 7.5rem);
    right: var(--hv3-pad-x);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(16, 15, 18, 0.30);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--hv3-font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    transition: background 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
}
.hv3-video-toggle:hover {
    background: rgba(16, 15, 18, 0.55);
    border-color: #ffffff;
}
.hv3-video-toggle-icon { width: 15px; height: 15px; display: block; }
/* Par défaut : icône "play" visible, icône "retour" cachée */
.hv3-video-toggle-icon--back { display: none; }
.hv3-prelude.is-video-mode .hv3-video-toggle-icon--play { display: none; }
.hv3-prelude.is-video-mode .hv3-video-toggle-icon--back { display: block; }

/* ──────────────────────────────────────────────────────────────
   HERO — carousel partenaires [coft_partners] en bas à droite
   ────────────────────────────────────────────────────────────── */
.hv3-hero-partners-carousel {
    position: absolute;
    right: var(--hv3-pad-x);
    bottom: clamp(2rem, 5vh, 3.5rem);
    z-index: 4;
    width: clamp(340px, 34vw, 540px);
    height: auto;   /* s'ajuste au texte de chaque slide (Swiper autoHeight) */
    pointer-events: auto;
}
/* Toute la card partenaire est cliquable → site du partenaire (lien étiré). */
.hv3-hero-partners-carousel .swiper-slide { position: relative; }
.hv3-hero-partners-carousel .coft-partner-cardlink { position: absolute; inset: 0; z-index: 3; }
/* Le shortcode .coft-partner-card prend 100% du wrapper → dimensions OK */
.hv3-hero-partners-carousel .coft-partner-card {
    box-shadow: 0 24px 60px -28px rgba(16, 15, 18, 0.6);
}
/* Nom du partenaire (carousel du hero) : plus gras et plus gros. */
.hv3-hero-partners-carousel .coft-partner-title {
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ──────────────────────────────────────────────────────────────
   HERO — mode vidéo : la transition contenu → vidéo est gérée
   ENTIÈREMENT en GSAP (setupVideoMode dans home-v3.js). Aucune règle
   d'opacité/transition CSS ici : elles entreraient en conflit avec les
   styles inline posés par GSAP.
   ────────────────────────────────────────────────────────────── */

/* ══ Lecteur vidéo de marque — custom, minimaliste, charte COFT ═══════════ */
.hv3-bv {
    position: absolute;
    inset: 0;
    z-index: 5;                 /* au-dessus du hero, sous le toggle (6) = « retour » */
    background: #000;
    opacity: 0;
    visibility: hidden;         /* révélé par GSAP (autoAlpha) */
    overflow: hidden;
}
.hv3-bv-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;        /* rendu cinéma, vidéo entière sans recadrage */
    background: #000;
    cursor: pointer;
}

/* Gros bouton lecture central — visible seulement en pause */
.hv3-bv-big {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(64px, 8vw, 88px);
    height: clamp(64px, 8vw, 88px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(16, 15, 18, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.4s var(--hv3-ease-out), transform 0.4s var(--hv3-ease-out),
                background 0.3s ease, border-color 0.3s ease;
}
.hv3-bv-big svg { width: 42%; height: 42%; margin-left: 6%; }   /* décalage optique du triangle */
.hv3-bv-big:hover {
    background: var(--hv3-sage-dk);
    border-color: var(--hv3-sage-dk);
    transform: translate(-50%, -50%) scale(1.06);
}
.hv3-bv.is-playing .hv3-bv-big {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Barre de contrôle maison */
.hv3-bv-bar {
    position: absolute;
    left: clamp(1rem, 3vw, 2.5rem);
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(1rem, 3vh, 2rem);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.4vw, 1.05rem);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 15, 18, 0.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--hv3-font-display);
    transition: opacity 0.5s var(--hv3-ease-out), transform 0.5s var(--hv3-ease-out);
}
.hv3-bv.is-idle .hv3-bv-bar {          /* auto-masquage pendant la lecture */
    opacity: 0;
    transform: translateY(0.6rem);
    pointer-events: none;
}
.hv3-bv.is-idle .hv3-bv-video { cursor: none; }

.hv3-bv-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.25s ease, color 0.25s ease;
}
/* PAS de display:block ici : il écraserait le .hv3-bv-ico{display:none} (plus
   spécifique) et empilerait les 2 icônes. La grille du bouton centre l'icône
   visible (les items de grille sont « blockifiés »). */
.hv3-bv-btn svg { width: 20px; height: 20px; }
.hv3-bv-btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--hv3-sage-lt); }

/* Icônes play/pause + son : on montre l'une OU l'autre selon l'état. */
.hv3-bv-ico { display: none; }
.hv3-bv-ico--play { display: block; }
.hv3-bv.is-playing .hv3-bv-ico--play  { display: none; }
.hv3-bv.is-playing .hv3-bv-ico--pause { display: block; }
.hv3-bv-ico--vol { display: block; }
.hv3-bv.is-muted .hv3-bv-ico--vol  { display: none; }
.hv3-bv.is-muted .hv3-bv-ico--mute { display: block; }

.hv3-bv-time {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.85);
    min-width: 2.7ch;
    text-align: center;
}

/* Barre de progression */
.hv3-bv-track {
    position: relative;
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    touch-action: none;
}
.hv3-bv-track::before {          /* zone cliquable élargie (confort tactile) */
    content: "";
    position: absolute;
    inset: -11px 0;
}
.hv3-bv-buffered,
.hv3-bv-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    border-radius: 999px;
    pointer-events: none;
}
.hv3-bv-buffered { background: rgba(255, 255, 255, 0.28); }
.hv3-bv-fill { background: var(--hv3-sage-md); }
.hv3-bv-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%) scale(0);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    transition: transform 0.2s var(--hv3-ease-out);
}
.hv3-bv-track:hover .hv3-bv-knob { transform: translate(-50%, -50%) scale(1); }

/* ── Responsive : tablette / mobile ──────────────────────────── */
@media (max-width: 1023px) {
    .hv3-chapter.hv3-prelude {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        gap: 2rem;
    }
    .hv3-hero-partners-carousel {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 150px;
        /* PAS de order:-1 → le carousel reste APRÈS le contenu (titre/lede/CTA),
           donc juste en dessous, discret, en bas du hero. */
    }
    /* Toggle « View video » en HAUT à droite sur mobile → ne chevauche plus le
       carousel partenaires qui est tout en bas du hero. */
    .hv3-video-toggle {
        top: clamp(5rem, 11vh, 6.5rem);
        bottom: auto;
        right: 1rem;
    }
}
@media (max-width: 600px) {
    /* Carousel partenaires : bande FINE et discrète sous le contenu. Chaque
       slide = logo + nom du partenaire alignés sur UNE ligne, centrés
       horizontalement et verticalement. Le détail/overline vivent dans la
       section Partners dédiée → ici on ne garde que logo + nom. */
    .hv3-hero-partners-carousel {
        min-height: 0;
        height: clamp(74px, 12.5vh, 96px);   /* bande un peu plus haute (plus d'air) */
        opacity: 0.92;
    }
    .hv3-hero-partners-carousel .coft-partner-card { padding: 0.4rem 1rem; border-radius: 12px; height: 100%; }
    /* Carte pleine hauteur : on force la chaîne Swiper à 100% (l'autoHeight de
       Swiper est neutralisé ici par !important) → le logo se centre verticalement. */
    .hv3-hero-partners-carousel .coft-partner-card .coft-partners-slider { height: 100%; }
    .hv3-hero-partners-carousel .coft-partners-slider .swiper-wrapper { height: 100% !important; }
    .hv3-hero-partners-carousel .coft-partners-slider .swiper-slide {
        height: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;   /* centré horizontalement */
        gap: 0.7rem;
    }
    .hv3-hero-partners-carousel .coft-partner-logo { flex: 0 0 auto; }
    .hv3-hero-partners-carousel .coft-partner-logo img { max-height: 48px; }   /* logos plus gros */
    .hv3-hero-partners-carousel .coft-partner-content {
        flex: 0 1 auto;
        flex-direction: row;
        align-items: center;
        gap: 0;
        min-width: 0;
    }
    .hv3-hero-partners-carousel .coft-partner-overline,
    .hv3-hero-partners-carousel .coft-partner-detail,
    .hv3-hero-partners-carousel .coft-partner-link { display: none; }
    .hv3-hero-partners-carousel .coft-partner-title {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hv3-hero-partners-carousel .coft-partner-pagination.swiper-pagination { top: 0.3rem; right: 0.5rem; }
    .hv3-video-toggle {
        padding: 0.6rem 0.95rem;
        font-size: 0.72rem;
    }
}

/* corners (legacy — retirés du markup, le bloc CSS reste inactif) */
.hv3-corner {
    position: absolute;
    font-family: var(--hv3-font-display);
    font-size: 0.9rem;
    color: var(--hv3-line-strong);
    user-select: none;
    transform: translate(-50%, -50%);
}
.hv3-corner--tl { top: 1.5rem; left: 1.5rem; transform: none; }
.hv3-corner--tr { top: 1.5rem; right: 1.5rem; transform: none; }
.hv3-corner--bl { bottom: 1.5rem; left: 1.5rem; transform: none; }
.hv3-corner--br { bottom: 1.5rem; right: 1.5rem; transform: none; }

/* ── Hero CTAs (primary + alt, rounded pills) ─────────────────── */
.hv3-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 2rem;
    align-items: center;
}
.hv3-cta {
    --cta-pad-x: 1.6rem;
    --cta-pad-y: 0.95rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--cta-pad-y) var(--cta-pad-x);
    border-radius: 999px;
    font-family: var(--hv3-font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.55s var(--hv3-ease-out),
                background-color 0.5s ease,
                color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
    will-change: transform;
}
.hv3-cta svg {
    width: 18px; height: 18px;
    transition: transform 0.55s var(--hv3-ease-out);
}
/* Pas de lift Y au hover — uniquement la flèche qui glisse, bg/border via les variantes */
.hv3-cta:hover svg { transform: translateX(4px); }

/* Primary — dark fill */
.hv3-cta--primary {
    background: var(--hv3-fg);
    color: var(--hv3-bg);
    border: 1px solid var(--hv3-fg);
    box-shadow: 0 12px 30px -14px rgba(16, 15, 18, 0.45);
}
.hv3-cta--primary:hover {
    background: var(--hv3-sage-dk);
    border-color: var(--hv3-sage-dk);
    color: #fff;
    box-shadow: 0 18px 40px -18px rgba(123, 142, 119, 0.55);
}

/* Alt — outlined, transparent */
.hv3-cta--alt {
    background: transparent;
    color: var(--hv3-fg);
    border: 1px solid var(--hv3-line-strong);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hv3-cta--alt:hover {
    border-color: var(--hv3-fg);
    background: rgba(255, 255, 255, 0.4);
}
html[data-hv3-mode="dark"] .hv3-cta--alt:hover {
    background: rgba(241, 241, 232, 0.06);
}

/* ── Hero Partners marquee — pinned to the bottom of the hero ── */
.hv3-hero-partners {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.05rem 0;            /* compact maintenant qu'il n'y a plus d'eyebrow */
    border-top: 1px solid var(--hv3-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.92) 100%);
    overflow: hidden;
    pointer-events: none;
}
html[data-hv3-mode="dark"] .hv3-hero-partners {
    background:
        linear-gradient(180deg, rgba(12, 12, 16, 0.65) 0%, rgba(12, 12, 16, 0.92) 100%);
}
html[data-hv3-mode="dark"] .hv3-hero-partners {
    background: linear-gradient(180deg, rgba(12, 12, 16, 0.55) 0%, rgba(12, 12, 16, 0.7) 100%);
}
.hv3-hp-eyebrow {
    display: block;
    padding: 0 var(--hv3-pad-x);
    margin-bottom: 1rem;              /* + d'air entre eyebrow et marquee */
    font-family: var(--hv3-font-display);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-muted);
}
.hv3-hp-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    /* Lent et régulier — boucle parfaite (2 rows dupliquées, translate -50%) */
    animation: hv3-marquee 65s linear infinite;
}
@keyframes hv3-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.hv3-hp-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
    flex-shrink: 0;
}
.hv3-hp-item {
    font-family: var(--hv3-font-display);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--hv3-fg);
    white-space: nowrap;
}
.hv3-hp-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--hv3-sage-md);
    flex-shrink: 0;
}

/* ============================================================
   02 — OBSERVE
   ============================================================ */
.hv3-chapter {
    position: relative;
    padding: var(--hv3-section-y) var(--hv3-pad-x);
}
.hv3-chap-marker {
    position: absolute;
    /* Rapproché du contenu de la section (kicker juste au-dessus du titre)
       plutôt que collé en haut → moins d'espace marker ↔ début de section. */
    top: calc(var(--hv3-section-y) - 2.75rem);
    /* Aligné sur le bord gauche du conteneur de contenu (min(1680px, 94vw) centré),
       pour que le marqueur ne « sorte » pas à gauche du contenu sur grand écran. */
    left: max(var(--hv3-pad-x), calc(50% - min(1680px, 94vw) / 2));
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-muted);
}
.hv3-chap-num { color: var(--hv3-fg); }
.hv3-chap-rule {
    flex: 0 0 36px;
    height: 1px;
    background: var(--hv3-line-strong);
}

.hv3-observe-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
.hv3-observe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.hv3-obs-card {
    padding: 2rem 1.75rem;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    background: var(--hv3-bg-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.6s ease, border-color 0.6s ease, transform 0.6s var(--hv3-ease-out);
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 30px 50px -40px rgba(16,15,18,0.18);
}
html[data-hv3-mode="dark"] .hv3-obs-card {
    background: rgba(26, 26, 34, 0.7);
    border-color: rgba(241, 241, 232, 0.14);
    box-shadow: 0 1px 0 rgba(241,241,232,0.04) inset, 0 30px 50px -40px rgba(0,0,0,0.6);
}
.hv3-obs-num {
    display: block;
    font-family: var(--hv3-font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hv3-sage-dk);
    margin-bottom: 1.5rem;
}
html[data-hv3-mode="dark"] .hv3-obs-num { color: var(--hv3-sage-lt); }
.hv3-obs-text {
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 2rem;
    color: var(--hv3-fg);
}
.hv3-obs-meta {
    display: block;
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.1em;
    border-top: 1px solid var(--hv3-line-soft);
    padding-top: 1rem;
}

/* Mission block */
.hv3-mission {
    margin-top: clamp(5rem, 10vw, 9rem);
    max-width: 70rem;
    padding-left: clamp(0rem, 8vw, 6rem);
}
.hv3-mission-eyebrow {
    display: block;
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-muted);
    margin-bottom: 1.5rem;
}
.hv3-mission-body {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
}
.hv3-mission-body em { font-weight: 600; }
.hv3-mission-sub {
    font-family: var(--hv3-font-body);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.6;
    color: var(--hv3-fg);
    opacity: 0.82;
    margin: 0 0 1.25rem;
    max-width: 36rem;
}
.hv3-mission-sub:last-of-type { margin-bottom: 2rem; }

/* ============================================================
   03 — STRUCTURE
   ============================================================ */
.hv3-structure-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
.hv3-flow {
    position: relative;
    margin-top: 2rem;
}
.hv3-flow-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 0.5rem;
}
.hv3-flow-step {
    padding: 1.75rem 1.5rem 2rem;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    background: var(--hv3-bg-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 30px 50px -40px rgba(16,15,18,0.18);
}
html[data-hv3-mode="dark"] .hv3-flow-step {
    background: rgba(26, 26, 34, 0.7);
    border-color: rgba(241, 241, 232, 0.14);
    box-shadow: 0 1px 0 rgba(241,241,232,0.04) inset, 0 30px 50px -40px rgba(0,0,0,0.6);
}
.hv3-flow-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hv3-sage-dk);
    transition: width 0.7s var(--hv3-ease-out);
}
.hv3-flow-step.is-active::before { width: 100%; }
.hv3-flow-num {
    font-family: var(--hv3-font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--hv3-muted);
}
.hv3-flow-tag {
    font-family: var(--hv3-font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hv3-sage-dk);
}
html[data-hv3-mode="dark"] .hv3-flow-tag { color: var(--hv3-sage-lt); }
.hv3-flow-lead {
    font-family: var(--hv3-font-display);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0;
}
.hv3-flow-step p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--hv3-muted);
    margin: 0;
    flex: 1;
}
.hv3-flow-meta {
    margin: 0;
    border-top: 1px solid var(--hv3-line-soft);
    padding-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hv3-flow-meta div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
}
.hv3-flow-meta dt { color: var(--hv3-muted); text-transform: uppercase; }
.hv3-flow-meta dd { margin: 0; color: var(--hv3-fg); }

.hv3-flow-progress {
    margin-top: 1.5rem;
    height: 1px;
    background: var(--hv3-line);
}
.hv3-flow-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--hv3-sage-dk);
}
.hv3-flow-cta {
    display: inline-flex;
    margin-top: 2.5rem;
}

/* Capabilities */
.hv3-caps {
    margin-top: clamp(5rem, 9vw, 8rem);
}
/* Header de la liste : eyebrow à gauche, CTA "Discover all our services" à droite */
.hv3-caps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hv3-caps-head .hv3-eyebrow { margin-bottom: 0; }
.hv3-caps-cta { flex: 0 0 auto; }
.hv3-caps .hv3-eyebrow {
    display: block;
    margin-bottom: 2rem;
}
@media (max-width: 600px) {
    .hv3-caps-head { gap: 1rem; }
    .hv3-caps-cta { width: 100%; }
}
.hv3-caps-list {
    list-style: none;
    margin: 0; padding: 0;
}
.hv3-caps-list li {
    border-top: 1px solid var(--hv3-line);
}
.hv3-caps-list li:last-child {
    border-bottom: 1px solid var(--hv3-line);
}
.hv3-caps-list a {
    display: grid;
    grid-template-columns: 80px minmax(220px, 1fr) 2fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.75rem 0;
}
/* Hover : pas de déplacement — uniquement un changement de couleur */
.hv3-caps-list a .hv3-cap-n,
.hv3-caps-list a .hv3-cap-t,
.hv3-caps-list a .hv3-cap-meta {
    transition: color 0.4s var(--hv3-ease-out);
}
.hv3-caps-list a:hover .hv3-cap-n,
.hv3-caps-list a:hover .hv3-cap-t,
.hv3-caps-list a:hover .hv3-cap-meta {
    color: var(--hv3-sage-dk);
}
html[data-hv3-mode="dark"] .hv3-caps-list a:hover .hv3-cap-n,
html[data-hv3-mode="dark"] .hv3-caps-list a:hover .hv3-cap-t,
html[data-hv3-mode="dark"] .hv3-caps-list a:hover .hv3-cap-meta {
    color: var(--hv3-sage-lt);
}

/* ── Capabilities : image centrée sur l'item hovered ──────────────
   Spot fixé en position absolute par rapport à .hv3-caps. JS calcule
   le centre vertical de l'item hovered et déplace le spot via GSAP.
   Plus de suivi souris : positionnement stable et premium éditorial. */
.hv3-caps {
    position: relative;
    /* limite le spot à la zone de la section (pas de débordement) */
}
.hv3-cap-spot {
    position: absolute;
    /* x/y (transform) pilotés par GSAP → suit le curseur, centré dessus.
       On ne met PAS de transition sur transform (GSAP gère le smoothing). */
    top: 0;
    left: 0;
    z-index: 5;
    width: clamp(360px, 28vw, 470px);
    height: clamp(440px, 33vw, 560px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--hv3-ease-out);
    will-change: transform, opacity;
}
.hv3-cap-spot.is-active {
    opacity: 1;
}
.hv3-cap-spot-img {
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-size: contain;        /* image complète, jamais rognée */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    box-shadow: none;                /* pas d'ombre, pas de cadre */
    transition: background-image 0.4s ease;
}
@media (max-width: 1100px) {
    /* sur écrans plus étroits : pas la place — on retire l'effet */
    .hv3-cap-spot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hv3-cap-spot { display: none; }
}
.hv3-cap-n {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.18em;
}
.hv3-cap-t {
    font-family: var(--hv3-font-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
}
.hv3-cap-meta {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--hv3-fg);
    opacity: 0.78;
    letter-spacing: 0.06em;
    text-align: right;
    justify-self: end;
}
/* Vignette service : cachée sur desktop (l'effet spot au survol suffit) ;
   révélée en petit sur mobile où il n'y a pas de survol. */
.hv3-cap-thumb { display: none; }

/* ============================================================
   BASCULE INTERSTITIAL (light → dark)
   ============================================================ */
.hv3-interstitial {
    min-height: 80vh;
    padding: var(--hv3-section-y) var(--hv3-pad-x);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    position: relative;
}
.hv3-inter-inner {
    max-width: 50rem;
}
.hv3-inter-pre {
    display: block;
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-muted);
    margin-bottom: 2.5rem;
}
.hv3-inter-q {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(2.8rem, 7.5vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 2.5rem;
}
.hv3-inter-q em { font-weight: 600; }
.hv3-inter-rule {
    display: block;
    width: 1px;
    height: 80px;
    background: var(--hv3-line-strong);
    margin: 0 auto;
}

/* ============================================================
   04 — DEVELOP (dark)
   ============================================================ */
.hv3-develop-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}

/* Stats */
.hv3-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--hv3-line);
    padding-top: 2rem;
}
.hv3-stat {
    border-left: 1px solid var(--hv3-line);
    padding: 0.5rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hv3-stat-num {
    font-family: var(--hv3-font-display);
    font-weight: 300;            /* stats : reste airy mais lisible */
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--hv3-fg);
    font-variant-numeric: tabular-nums;
}
.hv3-stat-rule {
    width: 30px;
    height: 1px;
    background: var(--hv3-sage-md);
    margin: 0.75rem 0;
}
.hv3-stat-lbl {
    font-family: var(--hv3-font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--hv3-fg);
    line-height: 1.2;
}
.hv3-stat-sub {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.1em;
}

/* Projects */
.hv3-projects {
    margin-top: clamp(5rem, 9vw, 8rem);
}
.hv3-proj-list {
    list-style: none;
    margin: 0; padding: 0;
}
.hv3-proj {
    border-top: 1px solid var(--hv3-line);
}
.hv3-proj:last-child {
    border-bottom: 1px solid var(--hv3-line);
}
.hv3-proj a {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr 1.5fr 80px;
    gap: 2rem;
    align-items: baseline;
    padding: 1.75rem 0;
    transition: padding 0.5s var(--hv3-ease-out);
}
.hv3-proj a:hover {
    padding-left: 1.5rem;
}
.hv3-proj-num {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.18em;
}
.hv3-proj-t {
    font-family: var(--hv3-font-display);
    font-weight: 300;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}
.hv3-proj-sub {
    font-size: 0.95rem;
    color: var(--hv3-muted);
    line-height: 1.4;
}
.hv3-proj-y {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.1em;
    text-align: right;
}
.hv3-proj-prev {
    position: absolute;
    right: var(--hv3-pad-x);
    top: 50%;
    width: 320px;
    height: 200px;
    background-size: cover;
    background-position: center;
    transform: translateY(-50%) translateX(40px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.6s ease, transform 0.7s var(--hv3-ease-out);
    filter: grayscale(0.2);
    border-radius: 2px;
}
.hv3-proj a:hover .hv3-proj-prev {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
}

/* ============================================================
   05 — IMAGINE (dark)
   ============================================================ */
.hv3-imagine-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
.hv3-imagine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.hv3-imag-card {
    padding: 0;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    background: var(--hv3-bg-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 40px 80px -50px rgba(16,15,18,0.25);
}
html[data-hv3-mode="dark"] .hv3-imag-card {
    background: rgba(26, 26, 34, 0.7);
    border-color: rgba(241, 241, 232, 0.14);
    box-shadow: 0 1px 0 rgba(241,241,232,0.04) inset, 0 40px 80px -50px rgba(0,0,0,0.7);
}
.hv3-imag-tag {
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hv3-sage-lt);
}
.hv3-imag-lead {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}
.hv3-imag-card p {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--hv3-muted);
    margin: 0;
}
.hv3-imag-card ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--hv3-font-display);
    font-size: 0.8rem;
    color: var(--hv3-muted);
    letter-spacing: 0.05em;
}
.hv3-imag-card li {
    padding-left: 1.25rem;
    position: relative;
}
.hv3-imag-card li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--hv3-sage-lt);
}

/* Partners */
.hv3-partners {
    margin-top: clamp(5rem, 9vw, 8rem);
}
.hv3-partners .hv3-eyebrow {
    display: block;
    margin-bottom: 2rem;
}
/* ── Partners — 4 cartes éditoriales (titre + texte long) ─────── */
.hv3-partners-grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.hv3-partner-card {
    padding: 2rem 1.75rem 2rem;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    background: var(--hv3-bg-soft);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: background-color 1s var(--hv3-ease),
                border-color    1s var(--hv3-ease),
                box-shadow      1s var(--hv3-ease);
}
html[data-hv3-mode="dark"] .hv3-partner-card {
    background: rgba(26, 26, 34, 0.7);
}
/* En-tête de carte : numéro à gauche, logo partenaire à droite. */
.hv3-partner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    margin-bottom: 0.15rem;
}
.hv3-partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 38px;
    max-width: 150px;
}
.hv3-partner-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.hv3-partner-idx {
    font-family: var(--hv3-font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--hv3-sage-dk);
    letter-spacing: 0.2em;
}
html[data-hv3-mode="dark"] .hv3-partner-idx { color: var(--hv3-sage-lt); }
.hv3-partner-name {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0;
}
.hv3-partner-text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--hv3-fg);
    opacity: 0.78;
    margin: 0;
}

/* Compatibilité : on garde un fallback minimal pour la classe legacy
   .hv3-partners-list au cas où un autre template l'utiliserait */
.hv3-partners-list { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   06 — CONTACT (dark)
   ============================================================ */
.hv3-contact {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.hv3-contact-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
    width: 100%;
}
.hv3-contact-inner .hv3-eyebrow {
    display: block;
    margin-bottom: 2rem;
}
.hv3-contact-title {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(2.5rem, 7vw, 6.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 4rem;
}
.hv3-contact-title em { font-weight: 600; }
.hv3-contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--hv3-font-display);
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--hv3-fg);
    border-bottom: 1px solid var(--hv3-line);
    padding-bottom: 0.5rem;
    transition: gap 0.5s var(--hv3-ease-out), border-color 0.4s ease;
}
.hv3-contact-mail svg {
    width: 28px; height: 28px;
    transition: transform 0.5s var(--hv3-ease-out);
}
.hv3-contact-mail:hover {
    gap: 1.6rem;
    border-color: var(--hv3-sage-lt);
}
.hv3-contact-mail:hover svg { transform: translateX(6px); }

.hv3-foot {
    margin-top: clamp(6rem, 12vw, 10rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--hv3-line);
    display: flex;
    justify-content: space-between;
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    color: var(--hv3-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ============================================================
   REVEAL UTILS (initial states; GSAP animates from these)
   ------------------------------------------------------------
   FOUC-safe : on cache visuellement les éléments avant que GSAP
   prenne le relais. Apparition par fade simple uniquement —
   pas de clip-path, pas de translateY (rendu plus doux/premium).
   ============================================================ */
[data-hv3-reveal] {
    opacity: 0;
}
[data-hv3-fade] {
    opacity: 0;
}

/* SplitType lines */
.hv3 .line {
    overflow: hidden;
    display: block;
}

/* SplitType words — blur reveal target. inline-block + will-change for GPU
   layer. Wrap allowed (so wide titles still break naturally). */
.hv3 [data-hv3-split] .word {
    display: inline-block;
    transform-origin: 50% 100%;
}

/* ============================================================
   MISSION (with figure)
   ============================================================ */
.hv3-mission {
    margin-top: clamp(5rem, 10vw, 9rem);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-left: clamp(0rem, 8vw, 6rem);
    max-width: min(1680px, 94vw);
    position: relative;        /* ancre le C-logo backdrop */
}
/* C-logo animé en fond du bloc mission (#16) — derrière le texte */
.hv3-mission-clogo {
    position: absolute;
    top: 50%;
    left: clamp(-2rem, 2vw, 4rem);
    transform: translateY(-50%);
    width: clamp(280px, 34vw, 520px);
    height: clamp(280px, 34vw, 520px);
    z-index: 0;
    color: var(--hv3-sage-dk);
    opacity: 0;                /* révélé par GSAP */
    pointer-events: none;
    mix-blend-mode: multiply;
}
html[data-hv3-mode="dark"] .hv3-mission-clogo {
    color: var(--hv3-sage-lt);
    mix-blend-mode: screen;
}
.hv3-mission-clogo .hv3-c-svg { width: 100%; height: 100%; display: block; }
.hv3-mission-text { max-width: 36rem; position: relative; z-index: 1; }
.hv3-mission-fig  { z-index: 1; }

/* ── Mission épurée, centrée (un grand titre + texte + CTA) ──────────
   Le C-logo animé occupe le fond, centré derrière le contenu. */
.hv3-mission--center {
    grid-template-columns: none;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 0;
    text-align: center;
    min-height: clamp(44vh, 54vh, 62vh);   /* moins d'espace au-dessus/en dessous de la mission */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hv3-mission--center .hv3-mission-clogo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(520px, 66vw, 940px);
    height: clamp(520px, 66vw, 940px);
}
.hv3-mission--center .hv3-mission-text {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hv3-mission--center .hv3-mission-body {
    font-size: clamp(2.6rem, 6vw, 5rem);   /* gros titre */
    margin-bottom: 2rem;
}
.hv3-mission--center .hv3-mission-sub {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}
.hv3-mission--center .hv3-link-arrow {
    margin-top: 1rem;
    justify-content: center;
}
.hv3-mission-fig {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--hv3-radius);
}
.hv3-mission-fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.15);
}
.hv3-mission-fig figcaption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--hv3-font-display);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f5f1e8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.hv3-fig-idx { color: var(--hv3-sage-lt); }

/* ============================================================
   FLOW FIGURE (process diagram before workflow blueprint)
   ============================================================ */
.hv3-flow-figure {
    position: relative;
    margin: 0 auto 4rem;
    max-width: min(1680px, 94vw);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--hv3-radius);
}
.hv3-flow-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* fill the frame, no cream padding */
    object-position: center;
    display: block;
}
.hv3-flow-figure figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}
.hv3-flow-figure figcaption .hv3-fig-idx { color: var(--hv3-sage-lt); }

/* ============================================================
   FEATURED PROJECT (large editorial card before grid)
   ============================================================ */
.hv3-featured {
    margin-top: clamp(5rem, 9vw, 8rem);
    position: relative;
}
.hv3-featured-link {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    overflow: hidden;
}
.hv3-featured-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    background: var(--hv3-bg-warm);
}
.hv3-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.1);
    transition: transform 1.2s var(--hv3-ease-out), filter 0.6s ease;
}
.hv3-featured-link:hover .hv3-featured-media img {
    transform: scale(1.03);
    filter: grayscale(0);
}
.hv3-featured-body {
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    /* Aligné sur le style des cards projets (.hv3-pgrid-body) :
       bg-soft adapté au mode, texte fg, border de séparation */
    background: var(--hv3-bg-soft);
    color: var(--hv3-fg);
    border-left: 1px solid var(--hv3-line);
}
html[data-hv3-mode="dark"] .hv3-featured-body {
    background: rgba(26, 26, 34, 0.7);
    border-left-color: var(--hv3-line);
}
.hv3-featured-tag {
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hv3-sage-dk);
}
html[data-hv3-mode="dark"] .hv3-featured-tag { color: var(--hv3-sage-lt); }
.hv3-featured-title {
    font-family: var(--hv3-font-display);
    font-weight: 500;            /* +1 : le featured doit "frapper" */
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}
.hv3-featured-title em { font-weight: 400; }
.hv3-featured-text {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--hv3-muted);
    margin: 0;
    max-width: 32rem;
}
.hv3-featured-meta {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    border-top: 1px solid var(--hv3-line-soft);
    padding-top: 1rem;
}
.hv3-featured-meta div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
}
.hv3-featured-meta dt {
    color: var(--hv3-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.hv3-featured-meta dd { margin: 0; color: var(--hv3-fg); }

/* ============================================================
   PROJECTS GRID (4 cards, thumbnails always visible)
   ============================================================ */
.hv3-proj-grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
}
.hv3-pgrid a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--hv3-line);
    border-radius: var(--hv3-radius);
    background: var(--hv3-bg-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.6s var(--hv3-ease-out), box-shadow 0.6s ease;
    box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 30px 60px -45px rgba(16,15,18,0.22);
}
html[data-hv3-mode="dark"] .hv3-pgrid a {
    background: rgba(26, 26, 34, 0.7);
    border-color: rgba(241, 241, 232, 0.14);
    box-shadow: 0 1px 0 rgba(241,241,232,0.04) inset, 0 30px 60px -45px rgba(0,0,0,0.65);
}
/* Pas de lift Y — l'image hover (grayscale → couleur) suffit */
.hv3-pgrid-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.25);
    transition: filter 0.6s ease;
}
.hv3-pgrid a:hover .hv3-pgrid-media { filter: grayscale(0); }
.hv3-pgrid-body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}
.hv3-pgrid-num {
    font-family: var(--hv3-font-display);
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    color: var(--hv3-muted);
}
.hv3-pgrid-t {
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
}
.hv3-pgrid-body p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--hv3-muted);
    margin: 0;
}
.hv3-pgrid-tags {
    font-family: var(--hv3-font-display);
    font-size: 0.95rem;
    color: var(--hv3-muted);
    letter-spacing: 0.08em;
    border-top: 1px solid var(--hv3-line-soft);
    padding-top: 0.6rem;
}

/* ============================================================
   IMAGINE CARDS (with media)
   ============================================================ */
.hv3-imag-card {
    padding: 0;
    overflow: hidden;
}
.hv3-imag-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.4) brightness(0.85);
    border-bottom: 1px solid var(--hv3-line);
}
.hv3-imag-body {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hv3-nav { display: none; }
    .hv3-section-head {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    /* Mobile : le chap-marker (« 02 — Services », « 05 — Partners »…) sert déjà
       de label de section → on retire l'eyebrow, le tag projets et le
       « Hover to preview » (pas de survol sur mobile) qui font doublon/inutiles.
       Sélecteurs volontairement spécifiques : la règle de base .hv3-projects-tag
       est définie PLUS BAS dans le fichier et écraserait un simple
       .hv3-projects-tag (les media queries n'ajoutent pas de spécificité). */
    .hv3-section-head .hv3-eyebrow { display: none; }
    .hv3-projects-headrow .hv3-projects-tag { display: none; }
    .hv3-caps-head .hv3-eyebrow { display: none; }
    .hv3-observe-grid { grid-template-columns: 1fr; }
    .hv3-flow-track { grid-template-columns: 1fr; }
    .hv3-flow-step { min-height: auto; border-left: none; border-top: 1px solid var(--hv3-line); padding: 1.5rem 0; }
    /* Services mobile : numéro · titre · petite vignette à droite. Plus de
       padding vertical → plus d'espace entre chaque service. */
    .hv3-caps-list a {
        grid-template-columns: 40px 1fr 84px;
        gap: 0.5rem 1rem;
        align-items: center;
        padding: 1.5rem 0;
    }
    .hv3-cap-meta { display: none; }
    .hv3-cap-thumb {
        display: block;
        width: 84px;
        height: 56px;
        object-fit: contain !important;     /* image ENTIÈRE, jamais rognée (bat tout cache/legacy) */
        background: rgba(16, 15, 18, 0.05); /* tuile discrète derrière le letterbox */
        padding: 3px;
        border-radius: 10px;
        grid-column: 3;
    }
    .hv3-stats { grid-template-columns: repeat(2, 1fr); }
    .hv3-proj a { grid-template-columns: 50px 1fr 50px; }
    .hv3-proj-sub { display: none; }
    .hv3-proj-prev { display: none; }
    .hv3-imagine-grid { grid-template-columns: 1fr; }
    .hv3-mission { grid-template-columns: 1fr; padding-left: 0; }
    .hv3-mission-fig { aspect-ratio: 3 / 2; max-width: 480px; }
    .hv3-featured-link { grid-template-columns: 1fr; }
    .hv3-featured-body { border-left: none; border-top: 1px solid var(--hv3-line); }
    .hv3-proj-grid { grid-template-columns: 1fr; }
    .hv3-partners-grid { grid-template-columns: 1fr; }
    .hv3-index { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   WINDOWCARD (V3 port) — vidéo bg + card blanche avec trou
   ────────────────────────────────────────────────────────────────
   Direction storyboard / Vimeo. Versions hole-left + hole-right.
   Bordures encore PLUS fines que la V4 (shelf de 1.5u vs 2.5u),
   pour un rendu très éditorial où la vidéo passe presque flush
   avec les bords externes de la card.
   ─────────────────────────────────────────────────────────────── */
.hv3-windowcard-chapter {
    position: relative;
    overflow: hidden;
    background: var(--hv3-bg, #ffffff);
    min-height: 100vh;
    padding: clamp(2.4rem, 6vw, 5rem) clamp(1rem, 3vw, 3rem);
    display: grid;
    place-items: center;
    isolation: isolate;
}
.hv3-windowcard-chapter--dark {
    background: #100f12;
}
.hv3-windowcard-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    z-index: 0;
    filter: contrast(1.02) saturate(1.04) brightness(0.92);
}
.hv3-windowcard-tint {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(16,15,18,0.12);
    pointer-events: none;
}
.hv3-windowcard-tint--dark {
    background: rgba(16,15,18,0.30);
}

/* ── Windowcard : card solide avec TROU (mask SVG) — version LÉGÈRE.
   Pas de backdrop-filter ni d'animation en boucle (cause des lags) :
   uniquement un mask statique + une entrée fade/translate GPU-friendly. ── */
.hv3-windowcard {
    position: relative; z-index: 2;
    width: 100%;
    max-width: 1480px;
    aspect-ratio: 100/54;
    min-height: 480px;
    /* Verre frosté : blur du fond (vidéo) derrière la card. */
    background: rgba(16, 15, 18, 0.32);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
            backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 30px 80px -34px rgba(16, 15, 18, 0.32);
    /* Mask 2 couches : rect plein XOR lentille (haute) → trou.
       La lentille se déplace via --lens-x (piloté par le JS à l'entrée). */
    --lens-x: 50%;
    -webkit-mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 54' preserveAspectRatio='none'><rect x='0' y='0' width='100' height='54' rx='2.4' ry='2.4' fill='black'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50' preserveAspectRatio='none'><rect x='0' y='0' width='40' height='50' rx='1.3' ry='1.55' fill='black'/></svg>");
    mask-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 54' preserveAspectRatio='none'><rect x='0' y='0' width='100' height='54' rx='2.4' ry='2.4' fill='black'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50' preserveAspectRatio='none'><rect x='0' y='0' width='40' height='50' rx='1.3' ry='1.55' fill='black'/></svg>");
    -webkit-mask-size: 100% 100%, 46% 90%;
            mask-size: 100% 100%, 46% 90%;
    -webkit-mask-repeat: no-repeat, no-repeat;
            mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: center, var(--lens-x) 50%;
            mask-position: center, var(--lens-x) 50%;
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    /* entrée légère : opacity + translate (pas de filter blur → pas de lag) */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--hv3-ease-out),
                transform 0.9s var(--hv3-ease-out);
    will-change: opacity, transform;
}
.hv3-windowcard.is-glass-in {
    opacity: 1;
    transform: none;
}
.hv3-windowcard--dark {
    background: rgba(246, 243, 236, 0.36);
}
.hv3-windowcard--sage {
    background: rgba(123, 142, 119, 0.36);
    border-color: rgba(255, 255, 255, 0.30);
}

/* Position FINALE de la lentille selon la variante :
   - hole-left  : lentille à gauche (texte à droite)
   - hole-right : lentille à droite (texte à gauche) */
.hv3-windowcard--hole-left  { --lens-x: 4%; }
.hv3-windowcard--hole-right { --lens-x: 96%; }


/* Texte sur le côté (layout précédent), bande verticale ~moitié. */
.hv3-windowcard-body {
    position: absolute; top: 0; bottom: 0; z-index: 2;
    width: 49%;
    padding: clamp(1.4rem, 3.4vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
    display: flex; flex-direction: column;
    justify-content: space-between;   /* texte haut, CTA bas */
    align-items: flex-start;
    color: #ffffff;
}
.hv3-windowcard--hole-left  .hv3-windowcard-body { right: 0; }   /* texte à droite */
.hv3-windowcard--hole-right .hv3-windowcard-body { left: 0; }    /* texte à gauche */
.hv3-windowcard-top {
    display: flex; flex-direction: column;
    gap: clamp(0.8rem, 1.6vw, 1.15rem);
    align-items: flex-start;
    width: 100%;
}
.hv3-windowcard-pill {
    display: inline-flex; align-self: flex-start;
    align-items: center;
    padding: 0.55rem 1.15rem;
    border: 1px dashed rgba(16,15,18,0.45);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    background: transparent;
}
.hv3-windowcard-title {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.012em;
    color: #ffffff;
}
.hv3-windowcard-title em {
    font-style: normal;
    color: var(--hv3-sage-lt, #c1cfbc);   /* vert clair lisible sur verre sombre */
    font-weight: 600;
}
.hv3-windowcard-lede {
    margin: 0;
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    line-height: 1.55;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 40ch;
}

/* CTA en pied de card — pill blanc (lisible sur verre sombre/sauge) */
.hv3-windowcard-cta {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    color: #100f12;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid #ffffff;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.hv3-windowcard-cta svg { width: 18px; height: 18px; }
.hv3-windowcard-cta:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.hv3-windowcard-cta--light {
    background: #ffffff;
    color: #100f12;
    border-color: #ffffff;
}
.hv3-windowcard-cta--light:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Variante SAGE (charte graphique) : bg vert + tout en blanc.
   Doit venir APRÈS les règles génériques pour overrider les couleurs. */
.hv3-windowcard--sage .hv3-windowcard-body,
.hv3-windowcard--sage .hv3-windowcard-title {
    color: #ffffff;
}
.hv3-windowcard--sage .hv3-windowcard-lede {
    color: rgba(255,255,255,0.88);
}
.hv3-windowcard--sage .hv3-windowcard-title em {
    color: #ffffff;
    font-weight: 600;
}
.hv3-windowcard--sage .hv3-windowcard-pill {
    color: #ffffff;
    border-color: rgba(255,255,255,0.65);
}

/* Mobile : pas de balayage. On retire le mask (verre plein), et le texte
   repasse en flux normal (la card prend la hauteur du contenu). */
@media (max-width: 800px) {
    .hv3-windowcard {
        aspect-ratio: auto;
        min-height: auto;
        -webkit-mask-image: none;
                mask-image: none;
        border-radius: 24px;
    }
    .hv3-windowcard-body {
        position: relative;          /* en flux → donne sa hauteur à la card */
        left: auto; right: auto; bottom: auto;
        width: 100%;
        padding: clamp(1.4rem, 5vw, 2rem);
    }
    .hv3-windowcard-top { max-width: none; }
    .hv3-windowcard-chapter {
        min-height: auto;
        padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-hv3-reveal], [data-hv3-fade] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }
    /* Windowcard : visible d'emblée */
    .hv3-windowcard {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   FEEDBACK V3 — Workflow intro + Contact form
   ============================================================ */

/* Workflow : paragraphe d'intro sous le titre (section dark) */
.hv3-workflow-intro {
    max-width: 46rem;
    margin: 1.5rem 0 0;
    font-family: var(--hv3-font-body);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.6;
    color: var(--hv3-fg);
    opacity: 0.85;
}
.hv3-workflow-intro a {
    color: var(--hv3-sage-lt);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}
.hv3-workflow-intro a:hover { opacity: 0.7; }

/* ── Contact form (proposition de projet) ───────────────────── */
.hv3-contact-form {
    width: 100%;
    max-width: 640px;
    margin: clamp(2rem, 4vw, 3rem) 0 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.hv3-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
@media (max-width: 640px) {
    .hv3-form-row { grid-template-columns: 1fr; }
}
.hv3-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hv3-field > span {
    font-family: var(--hv3-font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hv3-muted);
}
.hv3-field input,
.hv3-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hv3-line);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    font-family: var(--hv3-font-body);
    font-size: 1rem;
    color: var(--hv3-fg);
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}
.hv3-field textarea { resize: vertical; min-height: 120px; }
.hv3-field input::placeholder,
.hv3-field textarea::placeholder { color: var(--hv3-muted); opacity: 0.7; }
.hv3-field input:focus,
.hv3-field textarea:focus {
    outline: none;
    border-color: var(--hv3-sage-md);
    background: rgba(255, 255, 255, 0.07);
}
.hv3-form-submit {
    align-self: flex-start;
    margin-top: 0.4rem;
    border: none;
    cursor: pointer;
}
/* Honeypot — caché visuellement mais présent dans le DOM */
.hv3-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}
/* Messages de retour */
.hv3-form-note {
    max-width: 640px;
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    font-family: var(--hv3-font-body);
    font-size: 0.98rem;
    line-height: 1.5;
}
.hv3-form-note--ok {
    background: rgba(147, 172, 140, 0.18);
    border: 1px solid var(--hv3-sage-md);
    color: var(--hv3-fg);
}
.hv3-form-note--err {
    background: rgba(200, 90, 70, 0.14);
    border: 1px solid rgba(200, 90, 70, 0.5);
    color: var(--hv3-fg);
}

/* ============================================================
   03 — PROJECTS (slider Swiper) — façon capture
   ============================================================ */
.hv3-projects-sec {
    /* hérite du padding .hv3-chapter ; on évite le overflow horizontal du slider */
    overflow: hidden;
}
.hv3-projects-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
.hv3-projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;   /* titre à gauche, contrôles alignés à droite */
    gap: 1.25rem 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hv3-projects-head .hv3-display {
    margin: 0;
}
.hv3-projects-headrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
/* Cluster droite : flèches de navigation + CTA "See all the projects" */
.hv3-projects-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hv3-pnav-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hv3-pnav {
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border: 1px solid var(--hv3-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--hv3-fg);
    cursor: pointer;
    transition: background 0.4s var(--hv3-ease-out),
                color 0.4s var(--hv3-ease-out),
                border-color 0.4s var(--hv3-ease-out),
                opacity 0.4s var(--hv3-ease-out);
}
.hv3-pnav svg { width: 20px; height: 20px; }
.hv3-pnav:hover {
    background: var(--hv3-fg);
    color: var(--hv3-bg);
    border-color: var(--hv3-fg);
}
.hv3-pnav.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}
@media (max-width: 600px) {
    .hv3-projects-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; row-gap: 0.9rem; }
    .hv3-pnav { width: 44px; height: 44px; }
    /* CTA "See all the projects" : toujours sur UNE seule ligne. */
    .hv3-projects-head .hv3-link-arrow--lg {
        margin-top: 0;
        font-size: 0.92rem;
        padding: 0.8rem 1.3rem;
        white-space: nowrap;
    }
    /* Carousel projets : bord droit à ras de l'écran (c'est un slider, les cards
       « passent » à travers le bord droit). Le header (titre + contrôles) garde
       sa gouttière ; seul le slider déborde jusqu'au bord. */
    .hv3-projects-sec { padding-left: 0; padding-right: 0; }
    .hv3-projects-inner { max-width: none; margin: 0; }
    .hv3-projects-head { padding-left: var(--hv3-pad-x); padding-right: var(--hv3-pad-x); }
    .hv3-pslider { padding-left: var(--hv3-pad-x); }
}
/* "03 ——— Projects" (style chap-marker inline) */
.hv3-projects-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--hv3-font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv3-muted);
}
.hv3-projects-tag-n { color: var(--hv3-fg); }
.hv3-projects-tag-rule {
    width: 60px; height: 1px;
    background: var(--hv3-line-strong);
    display: inline-block;
}
.hv3-projects-head .hv3-link-arrow { margin-top: 0; }

/* Slider — déborde volontairement à droite (les cards suivantes "peek") */
.hv3-pslider {
    width: 100%;
    overflow: visible;
}
.hv3-pslider .swiper-wrapper { align-items: stretch; }
.hv3-pslider .swiper-slide { height: auto; }

/* Card projet : image plein cadre, titre haut, sous-titre + flèche en bas */
.hv3-pcard2 {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;   /* presque carré, légèrement horizontal */
    border-radius: var(--hv3-radius);
    overflow: hidden;
    background: var(--hv3-ink, #100f12);
    isolation: isolate;
}
.hv3-pcard2-media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.001);
    transition: transform 0.9s var(--hv3-ease-out);
}
.hv3-pcard2:hover .hv3-pcard2-media { transform: scale(1.06); }
.hv3-pcard2-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            rgba(16,15,18,0.45) 0%,
            rgba(16,15,18,0.05) 32%,
            rgba(16,15,18,0.05) 55%,
            rgba(16,15,18,0.72) 100%);
}
.hv3-pcard2-title {
    position: absolute;
    top: clamp(1.2rem, 2.2vw, 1.8rem);
    left: clamp(1.2rem, 2.2vw, 1.8rem);
    right: clamp(1.2rem, 2.2vw, 1.8rem);
    z-index: 2;
    margin: 0;
    color: #fff;
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.hv3-pcard2-foot {
    position: absolute;
    left: clamp(1.2rem, 2.2vw, 1.8rem);
    right: clamp(1.2rem, 2.2vw, 1.8rem);
    bottom: clamp(1.2rem, 2.2vw, 1.8rem);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.hv3-pcard2-sub {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-family: var(--hv3-font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 26ch;
}
.hv3-pcard2-arrow {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    transition: transform 0.5s var(--hv3-ease-out);
}
.hv3-pcard2-arrow svg { width: 22px; height: 22px; }
.hv3-pcard2:hover .hv3-pcard2-arrow { transform: translateX(5px); }

/* ============================================================
   LAYERS — visualisation urbaine animée (rendu original du client)
   ============================================================ */
.hv3-chapter.hv3-layers {
    padding: 0;                       /* full-bleed */
    background: transparent;          /* le maillage Three.js transparait derrière le header */
    overflow: hidden;
}
.hv3-layers-scene {
    position: relative;
    width: 100%;                     /* pleine largeur, pas de max-width */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ffffff;
    /* Isole le rendu (blend modes + images lourdes) du reste de la page →
       évite les recompositions globales qui saccadent le scroll Lenis. */
    contain: layout paint style;
}
.hv3-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    /* will-change posé/retiré par le JS pendant l'animation seulement
       (permanent = 6 grosses couches GPU qui plombent le scroll). */
}
.hv3-layer img {
    width: 100%; height: 100%;
    object-fit: fill;                /* étirement exact comme la démo */
    display: block;
}
.hv3-layer--screen img { mix-blend-mode: screen; }

/* Scrim léger : fond l'animation dans le blanc de la section (haut) +
   léger ancrage bas, sans assombrir (cards blanches restent lisibles). */
.hv3-layers-scrim {
    position: absolute; inset: 0; z-index: 90;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(255,255,255,0.92) 0%,
            rgba(255,255,255,0) 18%,
            rgba(255,255,255,0) 100%);
}

/* ── Titre centré, au-dessus de l'animation ───────────────────────── */
.hv3-wf-head {
    position: relative; z-index: 2;
    width: 100%;
    padding: clamp(4rem, 9vh, 7rem) var(--hv3-pad-x) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    /* Fond dégradé : transparent en haut (maillage visible) → blanc en bas
       (le titre repose sur blanc et fusionne avec le début de l'animation). */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
.hv3-wf-title {
    margin: 0 auto;                  /* hérite de .hv3-display (même typo que les autres titres) */
    max-width: min(1100px, 92vw);    /* garde la longueur de ligne maitrisée */
}

/* ── 4 cards : blanches + blur, centrées, en overlay sur l'animation ─ */
.hv3-wf-cards {
    list-style: none;
    position: absolute; z-index: 100;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);     /* centrées verticalement dans l'animation */
    max-width: min(1520px, 94vw);
    margin: 0 auto;
    padding: 0 var(--hv3-pad-x);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.6vw, 1.4rem);
    align-items: stretch;
    pointer-events: none;
}
.hv3-wf-card {
    pointer-events: auto;
    display: flex; flex-direction: column;
    gap: 0.45rem;
    padding: clamp(1.3rem, 1.9vw, 2rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(6px) saturate(1.15);
            backdrop-filter: blur(6px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 26px 60px -32px rgba(16, 15, 18, 0.38);
    color: var(--hv3-fg);
}
.hv3-wf-num {
    font-family: var(--hv3-font-display);
    font-size: 1.15rem; font-weight: 400; letter-spacing: 0.18em;
    color: var(--hv3-muted);
}
.hv3-wf-tag {
    font-family: var(--hv3-font-display);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hv3-sage-dk);
    margin-top: 0.6rem;
}
.hv3-wf-lead {
    margin: 0.3rem 0 0;
    font-family: var(--hv3-font-display);
    font-weight: 500;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.16;
    color: var(--hv3-fg);
}
.hv3-wf-body {
    margin: 0.6rem 0 0;
    font-family: var(--hv3-font-body);
    font-size: 0.92rem; line-height: 1.55;
    color: var(--hv3-muted);
}
/* Lien WebGIS : surligné au marqueur vert charte (sage). */
.hv3-wf-body a {
    color: var(--hv3-fg);
    font-weight: 600;
    text-decoration: none;
    background: rgba(147, 172, 140, 0.42);
    padding: 0.02em 0.22em;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background-color 0.3s ease;
}
.hv3-wf-body a:hover { background: rgba(147, 172, 140, 0.72); }

@media (max-width: 900px) {
    .hv3-layers-scene { aspect-ratio: auto; min-height: 70vh; }
    /* Images des couches : plus d'étirement (object-fit:fill) sur le grand
       conteneur mobile → on conserve leurs vraies proportions en remplissant
       par recadrage. Toutes les couches partagent les mêmes dimensions, donc
       elles restent parfaitement alignées entre elles. */
    .hv3-layer img { object-fit: cover; }
    /* Le chap-marker (« 04 — Workflow ») est en absolu en haut ; on descend le
       titre pour qu'ils ne se chevauchent plus et soient bien distincts. */
    .hv3-wf-head { padding-top: clamp(6rem, 16vw, 7.5rem); }
    /* Vrai slider horizontal : cards larges qui « peek » sur la suivante,
       snap net, barre de défilement masquée, alignées au padding de section. */
    .hv3-wf-cards {
        top: auto; transform: none;       /* annule le centrage vertical desktop */
        bottom: clamp(1.2rem, 4vw, 2rem);
        /* Slider bord-à-bord : pleine largeur, 1re card alignée au padding gauche,
           bord droit à ras de l'écran (la card suivante « passe » l'écran). */
        max-width: none;
        margin: 0;
        padding-right: 0;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        gap: 0.85rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--hv3-pad-x);
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;            /* Firefox : pas de scrollbar */
        pointer-events: auto;
        overscroll-behavior-x: contain;
    }
    .hv3-wf-cards::-webkit-scrollbar { display: none; }   /* WebKit : pas de scrollbar */
    .hv3-wf-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    /* Bouton « Replay » retiré sur mobile (slider manuel au doigt). */
    .hv3-layers-replay { display: none; }
}

/* Barre de progression (vert de la démo) */
.hv3-layers-bar {
    position: absolute; left: 0; bottom: 0;
    height: 2px; width: 0%;
    background: rgba(110, 150, 90, 0.7);
    z-index: 200;
}

/* Bouton replay (style de la démo) */
.hv3-layers-replay {
    position: absolute; z-index: 200;
    bottom: 20px; right: 20px;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 16px;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0;
    font-family: Georgia, serif;
    transition: background 0.2s, opacity 0.6s ease;
}
.hv3-layers-replay:hover { background: rgba(0, 0, 0, 0.32); }
.hv3-layers-replay.is-shown { opacity: 1; }


/* ══════════════ SECTIONS PERSONNALISÉES (répéteur COFT Content) ══════════════
   Sections libres créées par le client (titre + texte + image + CTA). Design
   éditorial classique : media/texte en 2 colonnes qui alternent (gauche/droite),
   texte centré si pas d'image. Charte : Josefin Sans, sauge, radius 14. */
.hv3-custom-inner {
    max-width: min(1680px, 94vw);
    margin: 0 auto;
}
/* Label de chapitre custom : toujours sur une seule ligne. */
.hv3-custom .hv3-chap-lbl { white-space: nowrap; }
.hv3-custom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
}
.hv3-custom-media { order: 0; }
.hv3-custom-body  { order: 1; }
.hv3-custom--media-right .hv3-custom-media { order: 2; }

.hv3-custom-media {
    position: relative;
    border-radius: var(--hv3-radius);
    overflow: hidden;
    border: 1px solid var(--hv3-line-soft);
    background: var(--hv3-bg-soft);
}
.hv3-custom-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hv3-custom-title {
    margin: 0;
    font-family: var(--hv3-font-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--hv3-fg);
}
.hv3-custom-title em { font-style: normal; color: var(--hv3-sage-dk); }
.hv3-custom-text {
    margin-top: 1.15rem;
    max-width: 42rem;
    color: var(--hv3-muted);
    font-size: 1.05rem;
    line-height: 1.66;
}
.hv3-custom-text p { margin: 0 0 0.85rem; }
.hv3-custom-text p:last-child { margin-bottom: 0; }
.hv3-custom-body .hv3-link-arrow { margin-top: 1.6rem; }

/* Pas d'image : énoncé centré, largeur de lecture contenue. */
.hv3-custom--noimg .hv3-custom-grid { grid-template-columns: 1fr; }
.hv3-custom--noimg .hv3-custom-body { max-width: 46rem; margin: 0 auto; text-align: center; }
.hv3-custom--noimg .hv3-custom-text { margin-left: auto; margin-right: auto; }
.hv3-custom--noimg .hv3-custom-body .hv3-link-arrow { justify-content: center; }

/* Empilé sur mobile : image toujours au-dessus du texte. */
@media (max-width: 900px) {
    .hv3-custom-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .hv3-custom-media,
    .hv3-custom--media-right .hv3-custom-media { order: 0; }
    .hv3-custom-body { order: 1; }
    .hv3-custom-media img { aspect-ratio: 16 / 10; }
}
