:root {
    /* Palette principale (verts) */
    --green-deep: #2D5E40;
    --green-dark: #1A3A28;
    --green-mid: #3A7A52;
    --green-sage: #A8C5A0;
    --green-sage-mid: #8CAA8F;
    --green-pale: #E8F0E4;
    /* Palette or */
    --gold: #C9A96E;
    --gold-light: #D4B87E;
    --gold-deep: #B89455;
    /* Palette beige */
    --beige: #F5F0E8;
    --beige-warm: #F0E6D6;
    --beige-dark: #E8E0D4;
    --white: #FAFAF7;
    --anthracite: #2C2C2C;
    /* Gris */
    --gray-dark: #4A4A4A;
    --gray-mid: #7A7A7A;
    --gray-soft: #5F5F5F;
    --gray-light: #B0A898;
    /* Typographie */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    /* Layout */
    --max-width: 1240px;
    --nav-height: 80px;
    /* Easing tokens */
    --ease-out-cinema: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out-emphasized: cubic-bezier(0.7, 0, 0.3, 1);
    --ease-out: var(--ease-out-cinema);
    /* Duration tokens */
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 700ms;
    --duration-cinema: 1200ms;
    --duration-ambient: 8s;
    /* Spacing tokens (8px grid) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    /* Shadow tokens */
    --shadow-card: 0 2px 8px rgba(26, 58, 40, 0.06), 0 1px 2px rgba(26, 58, 40, 0.04);
    --shadow-elevated: 0 8px 24px rgba(26, 58, 40, 0.08), 0 2px 6px rgba(26, 58, 40, 0.05);
    --shadow-overlay: 0 24px 60px rgba(26, 58, 40, 0.18), 0 4px 12px rgba(26, 58, 40, 0.08);
    --shadow-gold-glow: 0 0 0 1px rgba(201, 169, 110, 0.4), 0 4px 16px rgba(201, 169, 110, 0.2);
    /* Radius tokens (subtils) */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-pill: 9999px;
    /* Focus ring */
    --focus-ring: 0 0 0 2px var(--gold), 0 0 0 4px rgba(201, 169, 110, 0.35);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--nav-height) + 1rem); }
[id="accueil"], [id="projets"], [id="services"] { scroll-margin-top: calc(var(--nav-height) + 1rem); }
body { font-family: var(--font-body); color: var(--anthracite); background: var(--white); line-height: 1.7; font-weight: 400; overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; width: 100%; max-width: 100vw; position: relative; font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1; -webkit-tap-highlight-color: rgba(201, 169, 110, 0.18); touch-action: manipulation; }
/* Focus visible global (skill Vercel) */
:focus { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .nav__link:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
/* Numbers tabular */
.num, [data-count], .key-bar__value, .scene__meta-value, .process-item__number, .engagement-card__number { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'lnum' 1; }
/* Skip link (caché jusqu'au focus clavier) */
.skip-link { position: absolute; left: 0; top: 0; transform: translateY(-200%); background: var(--green-deep); color: #fff; padding: 0.8rem 1.4rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; z-index: 10000; transition: transform var(--duration-base) var(--ease-out-cinema); }
.skip-link:focus-visible { transform: translateY(0); box-shadow: var(--shadow-overlay); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.3; color: var(--green-deep); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: 0.05em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: 0.04em; text-wrap: balance; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: 0.03em; }
.gold-word { color: var(--gold); font-style: italic; background-image: linear-gradient(110deg, var(--gold) 30%, var(--gold-light) 48%, #E6CC8B 50%, var(--gold-light) 52%, var(--gold) 70%); background-size: 220% 100%; background-position: 200% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gold-shimmer 8s linear infinite; will-change: background-position; }
@keyframes gold-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .gold-word { animation: none; -webkit-text-fill-color: var(--gold); } }
/* Scroll progress bar (top of page) */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); width: var(--scroll-pct, 0%); opacity: 0.65; z-index: 10001; pointer-events: none; transition: width 0.1s linear; }
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }
p { font-size: 0.95rem; color: var(--gray-dark); max-width: 680px; }

.section-label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.section-label::before { content: ''; width: 8px; height: 8px; background: var(--green-deep); flex-shrink: 0; }
.section-label--center { justify-content: center; }
.section-label--white { color: rgba(255,255,255,0.5); }
.section-label--white::before { background: var(--gold); }

.btn { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 1.05rem 2.4rem; border: none; cursor: pointer; transition: color var(--duration-base) var(--ease-out-cinema), border-color var(--duration-base) var(--ease-out-cinema); position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out-cinema); }
.btn--primary { background: var(--green-deep); color: #fff; }
.btn--primary::before { background: var(--gold); }
.btn--primary:hover::before { transform: scaleX(1); }
.btn--primary:hover { color: var(--green-dark); }
.btn--hero { background: var(--green-deep); color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn--hero::before { background: var(--gold); }
.btn--hero:hover::before { transform: scaleX(1); }
.btn--hero:hover { color: var(--green-dark); border-color: var(--gold); }
.btn--outline { background: transparent; border: 1.5px solid var(--green-deep); color: var(--green-deep); }
.btn--outline::before { background: var(--gold); transform: translateY(-100%); transform-origin: top; }
.btn--outline:hover::before { transform: translateY(0); }
.btn--outline:hover { color: var(--green-dark); border-color: var(--gold); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn--ghost::before { background: rgba(255,255,255,0.12); }
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); }
.btn--white { background: #fff; color: var(--green-deep); }
.btn--white::before { background: var(--gold); }
.btn--white:hover::before { transform: scaleX(1); }
.btn--white:hover { color: var(--green-dark); }
.btn--lbc { background: #FF6600; color: #fff; }
.btn--lbc::before { background: #e85d00; }
.btn--lbc:hover::before { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; transition: transform var(--duration-base) var(--ease-out-cinema); position: relative; z-index: 1; }
.btn:hover svg { transform: translateX(4px); }
.arrow-svg { stroke: currentColor; stroke-width: 2; fill: none; }

.nav { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); z-index: 1000; transition: background 0.5s ease, height 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease; background: linear-gradient(to bottom, rgba(26,58,40,0.8), rgba(26,58,40,0.2)); opacity: calc(1 - clamp(0, 1 - 4 * abs(var(--cinema-progress, 0) - 0.5), 1) * 0.7); }
.nav.scrolled { background: rgba(250,250,247,0.95); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,0.05); height: 70px; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.nav__logo { display: flex; align-items: center; }
.nav__logo-svg { height: 40px; width: auto; transition: height 0.4s ease; }
.nav.scrolled .nav__logo-svg { height: 36px; }
.logo-stroke-green { stroke: rgba(255,255,255,0.9); transition: stroke 0.4s ease; }
.logo-stroke-gold { stroke: var(--gold); transition: stroke 0.4s ease; }
.logo-text-groupe { font-family: var(--font-body); font-size: 9px; font-weight: 500; letter-spacing: 3.5px; fill: rgba(255,255,255,0.7); transition: fill 0.4s ease; }
.logo-text-ambe { font-family: var(--font-heading); font-size: 22px; font-weight: 600; letter-spacing: 2.5px; fill: rgba(255,255,255,0.95); transition: fill 0.4s ease; }
.nav.scrolled .logo-stroke-green { stroke: var(--green-deep); }
.nav.scrolled .logo-text-groupe { fill: var(--gray-mid); }
.nav.scrolled .logo-text-ambe { fill: var(--green-deep); }
.nav__links { display: flex; align-items: center; gap: 2.5rem; }
.nav__link { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.8); transition: color 0.4s ease, background 0.4s ease; position: relative; padding: 0.8rem 0; display: inline-flex; align-items: center; min-height: 44px; }
.nav.scrolled .nav__link { color: var(--gray-dark); }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out-cinema); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link--cta { background: var(--green-deep); color: #fff !important; padding: 0.6rem 1.5rem; font-weight: 500; }
.nav__link--cta:hover { background: var(--green-dark); }
.nav__link--cta::after { display: none; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; z-index: 1001; background: transparent; border: none; -webkit-tap-highlight-color: transparent; }
.nav__hamburger span { width: 24px; height: 2px; background: #fff; transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease; pointer-events: none; }
.nav.scrolled .nav__hamburger span { background: var(--anthracite); }
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--green-deep) !important; }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--green-deep) !important; }

.cinema-stage { position: relative; height: 120vh; background: var(--white); --hero-fade: clamp(0, 1 - (var(--cinema-progress, 0) - 0.25) * 7, 1); }
.cinema-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cinema-layer { position: absolute; inset: 0; display: flex; align-items: center; will-change: transform, opacity; }
.cinema-layer--hero { z-index: 1; opacity: var(--hero-fade); }

/* === V3 Lot2 — Effet nuage hero (CSS gradient mask + SVG turbulence) === */
/* Conteneur cinema-cloud : background blanc PLAT sustained qui assure la continuité
   visuelle avec la section suivante (blanche), sans trou.
   Les couches volumétriques ajoutent la TEXTURE de brume par-dessus, avec pic
   d'opacité mi-budget puis dissipation. */
.cinema-cloud { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; background: rgba(255, 255, 255, clamp(0, (var(--cinema-progress, 0) - 0.15) * 3.5, 1)); }
.cinema-cloud__layer { position: absolute; inset: 0; will-change: transform, opacity; }
/* Couche base : rideau dense, pic POINTU à progress 0.4 puis fade-up */
.cinema-cloud__layer--base { background: radial-gradient(ellipse 110% 70% at 50% 115%, #fff 0%, rgba(255,255,255,0.98) 25%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.25) 80%, transparent 100%); opacity: clamp(0, 1.8 - 4.5 * abs(var(--cinema-progress, 0) - 0.4), 1); transform: translateY(calc((0.45 - var(--cinema-progress, 0)) * 100%)); }
/* Couche mist : pic 0.45, dissipation pointue, mix-blend-mode screen */
.cinema-cloud__layer--mist { background: radial-gradient(ellipse 130% 55% at 30% 105%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.55) 35%, rgba(255,255,255,0.2) 65%, transparent 100%); opacity: clamp(0, 1.6 - 4.5 * abs(var(--cinema-progress, 0) - 0.45), 1); transform: translateY(calc((0.45 - var(--cinema-progress, 0)) * 90%)) scale(calc(1 + var(--cinema-progress, 0) * 0.2)); mix-blend-mode: screen; }
/* Couche volutes : pic 0.5, dissipation à droite */
.cinema-cloud__layer--volutes { background: radial-gradient(ellipse 90% 50% at 75% 120%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.35) 40%, transparent 80%); opacity: clamp(0, 1.4 - 4.5 * abs(var(--cinema-progress, 0) - 0.5), 1); transform: translateY(calc((0.5 - var(--cinema-progress, 0)) * 110%)) scale(calc(1 + var(--cinema-progress, 0) * 0.25)); mix-blend-mode: screen; }
/* Texture SVG turbulence : peak 0.45, dissipation rapide */
.cinema-cloud__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: clamp(0, 0.55 - 1.6 * abs(var(--cinema-progress, 0) - 0.45), 0.45); mix-blend-mode: screen; transform: translateY(calc((0.45 - var(--cinema-progress, 0)) * 50%)) scale(calc(1 + var(--cinema-progress, 0) * 0.3)); filter: blur(calc(1px + var(--cinema-progress, 0) * 3px)); will-change: opacity, transform, filter; }
/* top-fade plus utile : le background sustained du conteneur fait le boulot */
.cinema-cloud__top-fade { display: none; }
/* Backdrop-blur sur la photo derrière (desktop only), TRIANGLE pour ne pas
   surcharger en fin de budget (sinon Safari peut chauffer). Pic à 0.5. */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .cinema-cloud { backdrop-filter: blur(calc(max(0px, 8px - 16px * abs(var(--cinema-progress, 0) - 0.5)))); -webkit-backdrop-filter: blur(calc(max(0px, 8px - 16px * abs(var(--cinema-progress, 0) - 0.5)))); }
}
.hero__photo { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--green-dark); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform-origin: center 30%; transform: scale(calc(1 + var(--cinema-progress, 0) * 0.4)); filter: brightness(calc(1 + clamp(0, (var(--cinema-progress, 0) - 0.5) * 1.2, 0.6))); will-change: transform, filter; }
.hero__photo-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(22,30,26,0.20) 0%, rgba(22,30,26,0.34) 50%, rgba(22,30,26,0.58) 100%); pointer-events: none; opacity: calc(1 - var(--cinema-progress, 0) * 0.85); will-change: opacity; }
.hero__draw-line { position: absolute; left: 7%; top: 15%; width: 1px; height: calc(70vh * var(--cinema-progress, 0)); background: linear-gradient(to bottom, transparent 0%, var(--gold) 8%, var(--gold) 100%); z-index: 2; pointer-events: none; opacity: var(--hero-fade); will-change: height, opacity; }
.hero__shapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--hero-fade); }
.hero__shape { position: absolute; border: 1px solid rgba(201,169,110,0.12); animation: floatShape 20s ease-in-out infinite; }
.hero__shape--1 { width: 300px; height: 300px; top: -50px; right: 10%; transform: rotate(45deg); }
.hero__shape--2 { width: 150px; height: 150px; bottom: 20%; right: 25%; border-color: rgba(201,169,110,0.08); animation-delay: -5s; animation-duration: 25s; }
.hero__shape--3 { width: 80px; height: 80px; top: 30%; right: 5%; border-color: rgba(255,255,255,0.06); animation-delay: -10s; animation-duration: 18s; }
.hero__line { position: absolute; right: 12%; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent 0%, rgba(201,169,110,0.15) 30%, rgba(201,169,110,0.15) 70%, transparent 100%); z-index: 2; opacity: var(--hero-fade); }
.hero__line::before { content: ''; position: absolute; top: 25%; left: -4px; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); animation: pulse 3s ease-in-out infinite; }
.hero__content { position: relative; z-index: 3; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; padding-top: var(--nav-height); width: 100%; opacity: var(--hero-fade); }
.hero__badge { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.5rem 1.4rem; border: 1px solid rgba(201,169,110,0.4); background: rgba(15, 37, 24, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 2.5rem; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 400; opacity: 0; transform: translateY(20px); animation: revealUp 0.8s var(--ease-out) 0.5s forwards; }
.hero__badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2.5s ease-in-out infinite; }
.cinema-layer--hero h1 { color: #fff; max-width: 700px; margin-bottom: 0.5rem; }
.hero__title-line { display: block; clip-path: inset(0 100% 0 0); animation: wipeIn 1.2s var(--ease-in-out-emphasized) forwards; will-change: clip-path; }
.hero__title-line:nth-child(1) { animation-delay: 0.5s; }
.hero__title-line:nth-child(2) { animation-delay: 1s; }
.hero__title-line em { font-style: italic; color: var(--gold); position: relative; }
.hero__title-line em::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 0; height: 2px; background: var(--gold); animation: expandLine 0.6s var(--ease-out) 2.4s forwards; }
.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.6); max-width: 520px; line-height: 1.9; margin: 1.5rem 0 2.8rem; font-weight: 300; opacity: 0; animation: revealUp 0.8s var(--ease-out) 1.6s forwards; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: revealUp 0.8s var(--ease-out) 1.9s forwards; }
.hero__scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; opacity: 0; animation: fadeIn 1s ease 2s forwards; }
.hero__scroll-text { font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(255,255,255,0.35); writing-mode: vertical-lr; }
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }


.key-bar { padding: 6rem 0; background: var(--green-deep); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); overflow: hidden; }
.key-bar__grid { display: flex; justify-content: center; align-items: center; gap: 0; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }
.key-bar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0 2rem; position: relative; text-align: center; }
.key-bar__item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(201,169,110,0.3); }
.key-bar__value { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); letter-spacing: 0.04em; line-height: 1; }
.key-bar__text { font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }

/* .projects : overlap structurel sur cinema-stage end pour effet Apple zoom-out reveal */
.projects { padding: 0; background: var(--white); position: relative; z-index: 4; margin-top: -18vh; }
@media (prefers-reduced-motion: no-preference) {
  .projects { opacity: var(--projects-reveal, 1); transform: scale(calc(0.62 + var(--projects-reveal, 1) * 0.38)); filter: blur(calc((1 - var(--projects-reveal, 1)) * 14px)); transform-origin: 50% 60%; will-change: opacity, transform, filter; }
}
.projects__intro-banner { display: flex; align-items: flex-end; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 4rem 2.5rem 2rem; gap: 2rem; background: var(--white); }
.projects__intro-banner h2 { margin: 0.4rem 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.projects__intro-banner h2 br { display: none; }
.projects__intro-banner .btn { flex-shrink: 0; }
.scene[data-scene="1"] .scene__visual, .scene[data-scene="1"] .scene__content { transform: scale(calc(1 + (1 - var(--scene1-entry, 1)) * 0.4)); opacity: var(--scene1-entry, 1); transform-origin: center 60%; will-change: transform, opacity; }
.projects__intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; max-width: var(--max-width); margin-left: auto; margin-right: auto; padding: 0 2.5rem; }
.projects__scenes { position: relative; }
.scene { position: relative; height: 130vh; }
.scene__sticky { position: sticky; top: 0; height: 80vh; padding-top: var(--nav-height); padding-bottom: 1.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; max-width: var(--max-width); margin: 0 auto; padding-left: 2.5rem; padding-right: 2.5rem; }
.scene__visual { position: relative; aspect-ratio: 4/3; overflow: hidden; border-left: 3px solid var(--green-deep); transition: filter var(--duration-base) var(--ease-out-cinema); }
.scene__visual img, .scene__visual .ba-morph__before img, .scene__visual .ba-morph__after img { transform: scale(1.08) translate3d(0, var(--parallax-y, 0px), 0); will-change: transform; }
.scene__visual:hover { filter: brightness(1.05); }
.scene--reverse .scene__sticky { grid-template-columns: 1fr 1.2fr; }
.scene--reverse .scene__visual { order: 2; border-left: none; border-right: 3px solid var(--green-deep); }
.scene--reverse .scene__content { order: 1; }
.ba-morph { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ba-morph__before, .ba-morph__after { position: absolute; inset: 0; }
.ba-morph__before img, .ba-morph__after img { width: 100%; height: 100%; object-fit: cover; }
.ba-morph__after { clip-path: inset(0 calc((1 - var(--scene-progress, 0)) * 100%) 0 0); will-change: clip-path; }
.ba-morph__label { position: absolute; bottom: 16px; padding: 0.4rem 1rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: #fff; z-index: 5; pointer-events: none; }
.ba-morph__label--before { left: 16px; background: rgba(0,0,0,0.55); opacity: clamp(0, (1 - var(--scene-progress, 0)) * 2, 1); transition: none; }
.ba-morph__label--after { right: 16px; background: var(--green-deep); opacity: clamp(0, var(--scene-progress, 0) * 2, 1); transition: none; }
/* Poignée slider avant/après (affichée uniquement sur mobile, cf. media query) */
.ba-morph__handle { display: none; position: absolute; top: 0; bottom: 0; left: calc(var(--ba-pos, 0.5) * 100%); width: 44px; transform: translateX(-50%); z-index: 6; align-items: center; justify-content: center; cursor: ew-resize; touch-action: none; -webkit-tap-highlight-color: transparent; }
.ba-morph__handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 6px rgba(0,0,0,0.45); }
.ba-morph__grab { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--green-deep); box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.ba-morph__handle:focus-visible { outline: none; }
.ba-morph__handle:focus-visible .ba-morph__grab { box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 0 3px var(--gold); }
.scene__content { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.scene__badge { display: inline-flex; padding: 0.4rem 1.1rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; background: var(--green-deep); color: #fff; }
.scene__location { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 0.6rem; }
.scene__content h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; margin: 0; }
.scene__content p { font-size: 0.95rem; color: var(--gray-mid); line-height: 1.8; max-width: 480px; }
.scene__meta { display: flex; gap: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--beige-dark); margin-top: 0.5rem; align-self: stretch; }
.scene__meta-item { display: flex; flex-direction: column; gap: 0.2rem; --threshold: calc(0.2 + var(--meta-i, 0) * 0.2); opacity: clamp(0, (var(--scene-progress, 0) - var(--threshold)) * 5, 1); transform: translateY(calc((1 - clamp(0, (var(--scene-progress, 0) - var(--threshold)) * 5, 1)) * 20px)); }
.scene__meta-value { font-family: var(--font-heading); font-size: 1.6rem; color: var(--green-deep); }
.scene__meta-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-light); }
.projects__lbc { text-align: center; margin: 0.5rem auto 5rem; padding: 2.5rem 2.5rem 0; max-width: var(--max-width); border-top: 1px solid var(--beige-dark); }
.projects__lbc p { margin: 0 auto 1.5rem; max-width: 600px; text-align: center; color: var(--gray-mid); font-size: 0.9rem; }

.profiles { padding: 7rem 0; background: var(--beige); overflow: hidden; }
.profiles h2 { text-wrap: balance; }
.profiles__claim { margin-top: 1.4rem; font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.45rem); font-style: italic; color: var(--green-deep); letter-spacing: 0.02em; line-height: 1.5; max-width: 100%; }
.profiles__claim::first-line { color: var(--gold-deep); }
.profiles__list { margin-top: 4rem; display: flex; flex-direction: column; gap: 1.5rem; }
.profile-row { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 2.5rem; align-items: start; padding: 2.5rem 3rem; background: var(--white); transition: background var(--duration-base) var(--ease-out-cinema), transform var(--duration-base) var(--ease-out-cinema), box-shadow var(--duration-base) var(--ease-out-cinema); border-left: 3px solid transparent; }
.profile-row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform var(--duration-base) var(--ease-out-cinema); }
.profile-row::after { content: ''; position: absolute; right: 0; top: 0; width: 1px; height: 0; background: var(--gold); transition: height var(--duration-base) var(--ease-out-cinema); }
.profile-row:hover { transform: translateX(6px); box-shadow: var(--shadow-card); }
.profile-row:hover::before { transform: scaleY(1); }
.profile-row:hover::after { height: 100%; }
.profile-row__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--green-pale); border-radius: 50%; flex-shrink: 0; margin-top: 0.2rem; transition: background var(--duration-base) var(--ease-out-cinema); }
.profile-row:hover .profile-row__icon { background: var(--gold); }
.profile-row__icon svg { width: 26px; height: 26px; color: var(--green-deep); stroke-width: 1.5; transition: color var(--duration-base) var(--ease-out-cinema); }
.profile-row:hover .profile-row__icon svg { color: var(--green-dark); }
.profile-row__content h3 { margin-bottom: 0.6rem; font-size: 1.25rem; position: relative; display: inline-block; padding-bottom: 0.3rem; }
.profile-row__content h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.profile-row:hover .profile-row__content h3::after { width: 100%; }
.profile-row__content > p { margin-bottom: 1.2rem; font-size: 0.92rem; color: var(--gray-mid); line-height: 1.8; }
.profile-row__points { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.profile-row__point { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--gray-dark); }
.profile-row__point svg { width: 14px; height: 14px; color: var(--green-deep); flex-shrink: 0; }

.process { padding: 7rem 0; background: var(--white); }
.process h2 { text-wrap: balance; }
.process__header { margin-bottom: 4rem; }
.process__header p { margin-top: 1.2rem; }
/* Timeline gold placée À GAUCHE des numéros, dans une marge dédiée
   --timeline-x : position horizontale de la ligne (depuis le bord gauche du list)
   --timeline-gap : air entre la ligne et la colonne des numéros */
.process__list { --timeline-x: 24px; --timeline-gap: 36px; display: flex; flex-direction: column; gap: 0; position: relative; }
.process__list::before { content: ''; position: absolute; left: var(--timeline-x); top: 3.6rem; bottom: 3rem; width: 1px; background: linear-gradient(to bottom, var(--gold) 0%, var(--gold) var(--process-line, 0%), rgba(201, 169, 110, 0.15) var(--process-line, 0%), rgba(201, 169, 110, 0.15) 100%); pointer-events: none; }
.process-item { display: grid; grid-template-columns: 100px 1fr; gap: 3rem; padding: 3rem 0 3rem calc(var(--timeline-x) + var(--timeline-gap)); border-top: 1px solid var(--beige-dark); position: relative; }
.process-item:last-child { border-bottom: 1px solid var(--beige-dark); }
.process-item__number { font-family: var(--font-heading); font-size: 3.5rem; color: var(--green-sage-mid); line-height: 1; transition: color 0.4s ease; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.process-item:hover .process-item__number { color: var(--green-deep); }
/* Dot gold sur la timeline aligné horizontalement avec la ligne, et verticalement avec le centre du numéro */
.process-item::after { content: ''; position: absolute; left: calc(var(--timeline-x) - 4px); top: calc(3rem + 0.5em); width: 9px; height: 9px; background: var(--white); border: 1px solid var(--gold); border-radius: 50%; transition: background var(--duration-base) var(--ease-out-cinema), transform var(--duration-base) var(--ease-out-cinema); z-index: 2; }
.process-item:hover::after { background: var(--gold); transform: scale(1.3); }
.process-item__content h3 { font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem; }
.process-item__content p { font-size: 0.92rem; color: var(--gray-mid); line-height: 1.9; max-width: 550px; }

.about { padding: 7rem 0; background: var(--beige); overflow: hidden; }
.about__inner { max-width: 760px; margin: 0 auto; }
.about__inner h2 { text-wrap: balance; }
.about__inner p { margin-bottom: 1.5rem; line-height: 1.9; }
.about__highlight { color: var(--green-deep); font-weight: 600; font-style: normal; }
.about__final { margin-top: 2.5rem; padding: 1.2rem 0 0; border-top: 1px solid var(--beige-dark); font-size: 1.02rem; color: var(--green-deep); font-style: italic; line-height: 1.85; max-width: 640px; position: relative; }
.about__final::before { content: ''; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--gold); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.guarantees { padding: 7rem 0; background: var(--white); }
.guarantees h2 { text-wrap: balance; }
.guarantees__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 4rem; }
.guarantee-card { text-align: center; padding: 2.5rem 1.5rem 2rem; background: var(--beige); position: relative; overflow: hidden; transition: background var(--duration-base) var(--ease-out-cinema), transform 0.6s var(--ease-out-soft), box-shadow 0.6s var(--ease-out-soft); grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 0; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-z, 0px)); }
.guarantee-card.tilting { transition: transform 0.08s linear, background var(--duration-base) var(--ease-out-cinema), box-shadow 0.3s var(--ease-out-cinema); }
.guarantee-card:nth-child(4) { grid-column: 2 / span 2; }
.guarantee-card:nth-child(5) { grid-column: 4 / span 2; }
.guarantee-card::after { content: ''; position: absolute; right: 0; top: 0; width: 1px; height: 0; background: var(--gold); transition: height var(--duration-base) var(--ease-out-cinema); }
.guarantee-card:hover { background: var(--green-deep); --tilt-z: -6px; box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(201, 169, 110, 0.3); }
.guarantee-card:hover::after { height: 100%; }
.guarantee-card__icon { width: 56px; height: 56px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--green-deep); border-radius: 50%; transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease; }
.guarantee-card:hover .guarantee-card__icon { border-color: var(--gold-light); transform: scale(1.05); }
.guarantee-card__icon svg { width: 24px; height: 24px; color: var(--green-deep); stroke-width: 1.5; transition: color 0.4s ease; }
.guarantee-card:hover .guarantee-card__icon svg { color: var(--gold-light); }
.guarantee-card h3 { margin-bottom: 0.8rem; font-size: 1rem; transition: color 0.4s ease; }
.guarantee-card:hover h3 { color: #fff; }
.guarantee-card p { font-size: 0.84rem; color: var(--gray-mid); line-height: 1.8; margin: 0 auto 1.4rem; max-width: 22ch; transition: color 0.4s ease; flex-grow: 1; }
.guarantee-card:hover p { color: rgba(255,255,255,0.75); }
.guarantee-card__duration { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 0.45rem 1rem; margin-top: auto; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--gold-deep); letter-spacing: 0.15em; background: rgba(184, 148, 85, 0.08); border-top: 1px solid var(--gold); border-bottom: 1px solid transparent; transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease; font-variant-numeric: tabular-nums; }
.guarantee-card:hover .guarantee-card__duration { color: var(--gold-light); background: rgba(212, 184, 126, 0.18); border-top-color: var(--gold-light); }

.engagement { padding: 7rem 0; background: var(--beige); }
.engagement__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.engagement-card { padding: 3rem 2.5rem; background: var(--white); position: relative; transition: background var(--duration-base) var(--ease-out-cinema); border-bottom: 3px solid transparent; overflow: hidden; }
.engagement-card::after { content: ''; position: absolute; right: 0; top: 0; width: 1px; height: 0; background: var(--gold); transition: height var(--duration-base) var(--ease-out-cinema); }
.engagement-card:hover::after { height: 100%; }
.engagement-card__number { font-family: var(--font-heading); font-size: 3rem; color: var(--green-sage-mid); line-height: 1; margin-bottom: 1.5rem; transition: color 0.4s ease; font-variant-numeric: tabular-nums; }
.engagement-card:hover .engagement-card__number { color: var(--gold); }
.engagement-card h3 { margin-bottom: 1rem; }
.engagement-card p { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.9; }

.cta-section { padding: 7rem 0; background: var(--green-dark); text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.55); margin: 0 auto 3rem; font-size: 1.05rem; line-height: 1.8; }

.footer { padding: 4rem 0 2rem; background: var(--anthracite); color: rgba(255,255,255,0.7); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer__desc { font-size: 0.85rem; line-height: 1.9; color: rgba(255,255,255,0.6); max-width: 380px; margin-top: 1.2rem; }
.footer__siret { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 1rem; font-family: var(--font-mono); letter-spacing: 0.04em; font-feature-settings: 'tnum' 1; }
.footer__right { display: flex; flex-direction: column; gap: 1.2rem; }
.footer__contact-line { display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.footer__contact-line svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.footer__contact-line a { transition: color 0.3s ease; }
.footer__contact-line a:hover { color: var(--gold); }
.footer__phone-placeholder { color: rgba(201, 169, 110, 0.55); font-style: italic; font-size: 0.78rem; letter-spacing: 0.02em; }
.footer__right-links { display: flex; gap: 2rem; margin-top: 0.5rem; }
.footer__right-links a { font-size: 0.82rem; color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer__right-links a:hover { color: var(--gold); }
.footer__bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.76rem; color: rgba(255,255,255,0.55); }
.footer__bottom a { color: rgba(255,255,255,0.7); transition: color 0.3s ease; }
.footer__bottom a:hover { color: var(--gold); }

@keyframes revealUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes expandLine { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes floatShape { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 25% { transform: rotate(47deg) translate(10px, -15px); } 50% { transform: rotate(43deg) translate(-5px, 10px); } 75% { transform: rotate(46deg) translate(8px, 5px); } }
@keyframes scrollLine { 0% { transform: scaleY(1); opacity: 0.5; } 50% { transform: scaleY(1.4); opacity: 1; } 100% { transform: scaleY(1); opacity: 0.5; } }
@keyframes wipeIn { to { clip-path: inset(0 0 0 0); } }

/* Reveal cinematic V3 : opacity + translateY + blur + scale + stagger */
.reveal { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); transition: opacity 0.9s var(--ease-out-cinema), transform 0.9s var(--ease-out-cinema), filter 0.9s var(--ease-out-cinema); will-change: opacity, transform, filter; }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; } .reveal-delay-3 { transition-delay: 0.24s; } .reveal-delay-4 { transition-delay: 0.32s; } .reveal-delay-5 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); transition: opacity 0.9s var(--ease-out-cinema), transform 0.9s var(--ease-out-cinema), filter 0.9s var(--ease-out-cinema); }
.reveal-right { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); transition: opacity 0.9s var(--ease-out-cinema), transform 0.9s var(--ease-out-cinema), filter 0.9s var(--ease-out-cinema); transition-delay: 0.12s; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-words__w { display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out-cinema), transform 0.9s var(--ease-out-cinema); transition-delay: calc(var(--pair-i, 0) * 80ms); }
.reveal-words.visible .reveal-words__w { opacity: 1; transform: translateY(0); }
.cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9999; opacity: 0.85; transform: translate3d(var(--mx, -100px), var(--my, -100px), 0) translate(-50%, -50%); transition: width var(--duration-base) var(--ease-out-cinema), height var(--duration-base) var(--ease-out-cinema), opacity var(--duration-base) var(--ease-out-cinema), background var(--duration-base) var(--ease-out-cinema), border var(--duration-base) var(--ease-out-cinema); will-change: transform; mix-blend-mode: difference; }
.cursor.is-link { width: 24px; height: 24px; opacity: 1; mix-blend-mode: normal; }
.cursor.is-image { width: 40px; height: 40px; background: transparent; border: 1px solid var(--gold); opacity: 1; mix-blend-mode: normal; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body, a, button, [role="button"] { cursor: none; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}
.hero__photo img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cinema-layer--hero h1, .projects__intro-banner h2, .scene__content, .scene__content h3, .key-bar__value, .key-bar__text, .hero__title-line, .hero__subtitle, .hero__badge, .about__inner h2 { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.section-wipe { clip-path: polygon(0% 100%, 100% 0%, 100% 100%, 0% 100%); transition: clip-path 1.4s var(--ease-in-out-emphasized); will-change: clip-path; }
.section-wipe.visible { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); }
/* Filet gold signature entre sections (sauf cinema-stage et footer) */
.profiles, .process, .about, .guarantees, .engagement { position: relative; }
.profiles::before, .process::before, .about::before, .guarantees::before, .engagement::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: clamp(40px, 8vw, 80px); height: 1px; background: var(--gold); opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .cinema-stage { height: auto !important; }
    .cinema-sticky { position: static !important; height: auto !important; overflow: visible !important; }
    .cinema-layer { position: relative !important; opacity: 1 !important; transform: none !important; display: block; }
    .cinema-layer--hero { min-height: 100vh; }
    .cinema-cloud { display: none !important; }
    .scene[data-scene="1"] .scene__visual, .scene[data-scene="1"] .scene__content { transform: none !important; opacity: 1 !important; }
    .hero__photo img { transform: none !important; filter: none !important; }
    .hero__photo-overlay { opacity: 0.5 !important; }
    .hero__draw-line { display: none; }
    .hero__content, .hero__shapes, .hero__line { opacity: 1 !important; }
    .hero__title-line { clip-path: none !important; animation: none !important; }
    .hero__shape, .hero__line::before, .hero__scroll-line { animation: none !important; }
    .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
    .reveal-words__w { opacity: 1 !important; transform: none !important; transition: none !important; }
    .section-wipe { clip-path: none !important; }
    .scene { height: auto !important; }
    .scene__sticky { position: static !important; height: auto !important; padding-top: 3rem; padding-bottom: 3rem; }
    .ba-morph__after { clip-path: inset(0 50% 0 0) !important; }
    .ba-morph__label--before, .ba-morph__label--after { opacity: 1 !important; }
    .scene__meta-item { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1024px) {
    .container { padding-left: max(2rem, env(safe-area-inset-left)); padding-right: max(2rem, env(safe-area-inset-right)); }
    .guarantees__grid { grid-template-columns: repeat(2, 1fr); }
    .guarantee-card, .guarantee-card:nth-child(4), .guarantee-card:nth-child(5) { grid-column: auto; }
    .scene { height: 120vh; }
    .scene__sticky { gap: 2.5rem; }
}
@media (max-width: 768px) {
    :root { --nav-height: 65px; }
    .container { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
    .nav__inner { padding-left: max(1.5rem, env(safe-area-inset-left)); padding-right: max(1.5rem, env(safe-area-inset-right)); }
    .nav__links { position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh; height: 100dvh; background: var(--white); flex-direction: column; justify-content: center; gap: 1.4rem; padding: 2.5rem; transition: right 0.5s var(--ease-out); box-shadow: -16px 0 48px rgba(26, 58, 40, 0.18); overscroll-behavior: contain; overflow-y: auto; }
    .nav__links.open { right: 0; }
    .nav__links .nav__link { color: var(--anthracite) !important; font-size: 0.95rem; padding: 0.6rem 0; min-height: 44px; width: 100%; justify-content: flex-start; }
    .nav__links .nav__link--cta { background: var(--green-deep); color: #fff !important; padding: 1rem 1.6rem; text-align: center; justify-content: center; font-size: 0.82rem; letter-spacing: 0.18em; margin-top: 1rem; box-shadow: var(--shadow-card); }
    .nav__links .nav__link--cta:hover { background: var(--green-dark); }
    .nav__hamburger { display: flex; }
    /* Scrim drawer */
    .nav__scrim { position: fixed; inset: 0; background: rgba(26, 58, 40, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); z-index: 999; }
    .nav__scrim.open { opacity: 1; pointer-events: auto; }
    .hero__photo img { transform: scale(calc(1 + var(--cinema-progress, 0) * 0.2)) !important; }
    .cinema-cloud__noise { opacity: clamp(0, var(--cinema-progress, 0) * 1.2 - 0.2, 0.3); filter: blur(calc(1px + var(--cinema-progress, 0) * 2px)); }
    .key-bar { padding: 4rem 0; }
    .key-bar__grid { flex-wrap: wrap; }
    .key-bar__item { flex: 1 1 50%; padding: 1rem 0.5rem; }
    .key-bar__item:not(:last-child)::after { display: none; }
    .hero__draw-line { display: none; }
    .hero__line, .hero__shape--1, .hero__shape--2, .hero__shape--3, .hero__scroll { display: none; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { justify-content: center; width: 100%; padding: 1.1rem 1.5rem; min-height: 52px; }
    .hero__badge { padding: 0.5rem 1rem; font-size: 0.6rem; letter-spacing: 0.25em; margin-bottom: 2rem; }
    .hero__subtitle { font-size: 0.95rem; line-height: 1.8; margin: 1.2rem 0 2rem; }
    .projects__intro-banner { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 3rem 1.5rem 1.5rem; }
    .scene { height: 110vh; }
    .scene__sticky { height: 88vh; grid-template-columns: 1fr; gap: 1.5rem; padding-top: calc(var(--nav-height) + 1rem); padding-bottom: 1rem; padding-left: 1.5rem; padding-right: 1.5rem; }
    .scene__visual { aspect-ratio: 4/3; max-height: 45vh; }
    .scene__content { gap: 0.8rem; }
    .scene__meta { gap: 1.2rem; }
    .scene--reverse .scene__sticky { grid-template-columns: 1fr; }
    .scene--reverse .scene__visual { order: 0; border-left: 3px solid var(--green-deep); border-right: none; }
    .scene--reverse .scene__content { order: 0; }
    .profile-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.5rem; }
    .process__list { --timeline-x: 16px; --timeline-gap: 24px; }
    .process-item { grid-template-columns: 60px 1fr; gap: 1.5rem; padding: 2rem 0 2rem calc(var(--timeline-x) + var(--timeline-gap)); }
    .process-item__number { font-size: 2.5rem; }
    .process__list::before { top: 2.4rem; bottom: 2rem; }
    .process-item::after { top: calc(2rem + 0.5em); }
    .engagement__grid { grid-template-columns: 1fr; }
    .guarantees__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ===== Mobile : slider avant/après tactile (remplace le scroll-sweep) ===== */
@media (max-width: 768px) {
    .scene { height: auto; }
    .scene__sticky { position: static; height: auto; }
    .scene__visual img,
    .scene__visual .ba-morph__before img,
    .scene__visual .ba-morph__after img { transform: none; }
    .ba-morph { touch-action: pan-y; }
    /* La largeur visible du "après" suit la poignée, plus le scroll */
    .ba-morph__after { clip-path: inset(0 calc((1 - var(--ba-pos, 0.5)) * 100%) 0 0) !important; }
    .ba-morph__handle { display: flex; }
    .ba-morph__label--before, .ba-morph__label--after { opacity: 1 !important; }
    .scene__meta-item { opacity: 1 !important; transform: none !important; }
    .scene[data-scene="1"] .scene__visual,
    .scene[data-scene="1"] .scene__content { transform: none !important; opacity: 1 !important; }
}
