/* VIF — site v3. Obsidienne, une encre, un accent cinabre. Anton (titres) + Chivo (texte), rien d'autre.
   Chrome réservé au logo, au titre d'ouverture et aux chiffres. Échelle : peu de tailles, très écartées.
   Mouvement : ease-out franc, entrées en cascade, transform/opacity seulement. */
:root {
  /* couleur */
  --ground: #0A0B0C;     /* le fond */
  --raise: #121417;      /* une marche de ton, pas de trait */
  --raise-2: #191C20;
  --ink: #ECEFF2;        /* texte courant, pleine encre */
  --mute: #8F969E;       /* notes secondaires seulement */
  --silver: #D6DBE0;     /* boutons, focus */
  --accent: #DE3A1F;     /* cinabre : l'action secondaire et un moment par page */
  --chrome: linear-gradient(168deg, #FFFFFF 0%, #CFD7DE 20%, #6E777F 40%, #F2F6F8 55%, #96A0A8 72%, #4A5158 100%);

  /* type */
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --text: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --step-small: 0.8125rem;                                  /* 13 px */
  --step-body: clamp(1rem, .96rem + .2vw, 1.0625rem);       /* 16–17 px */
  --step-lead: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);  /* 18–22 px */
  --step-head: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);        /* 32–56 px */
  --step-display: clamp(3.25rem, 1.2rem + 6.6vw, 8.25rem);  /* 52–132 px */

  /* espace */
  --margin: clamp(20px, 4.5vw, 72px);
  --section: clamp(96px, 10vw, 176px);
  --max: 1360px;

  /* mouvement (Emil Kowalski) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-weight: 300; font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

/* conteneur : marges égales, largeur bornée sur les grands écrans */
main > section, .foot { padding-inline: max(var(--margin), calc((100vw - var(--max)) / 2)); }

.chrome { background: var(--chrome); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--step-head); line-height: 1; letter-spacing: .005em; color: var(--ink); margin: 0; text-wrap: balance; }
.lead { font-size: var(--step-lead); line-height: 1.4; color: var(--ink); max-width: 38ch; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 4.5vw, 64px); max-width: 760px; }
.sec-head .lead { color: var(--mute); }

/* grain : présent, discret */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)} 50%{transform:translate(1%,-2%)} 75%{transform:translate(2%,2%)} 100%{transform:translate(0,0)} }

/* boutons : à plat, coins carrés, retour au toucher */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 15px/1 var(--text); letter-spacing: .01em; text-decoration: none; padding: 16px 26px; border: 0; border-radius: 0; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-chrome { background: var(--silver); color: var(--ground); }
.btn-ghost { background: var(--raise-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-chrome:hover { background: #fff; } .btn-ghost:hover { background: #24282D; } }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--ground); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity 600ms var(--ease-out), visibility 600ms; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-sym { width: 56px; }
.intro .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro.play .d1 { animation: draw 700ms var(--ease-out) 100ms forwards; }
.intro.play .d2 { animation: draw 900ms var(--ease-out) 320ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro-word { font-family: var(--display); font-size: clamp(72px, 11vw, 150px); line-height: .85; opacity: 0; transform: scale(.94); filter: blur(6px); }
.intro.play .intro-word { animation: settle 700ms var(--ease-out) 1.05s forwards, shine 1.6s var(--ease-out) 1.4s forwards; }
@keyframes settle { to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { from { background-position: 0 0; } to { background-position: 0 100%; } }
.intro-line { font-size: 16px; color: var(--mute); opacity: 0; }
.intro.play .intro-line { animation: fade 500ms ease 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }

/* navigation : marque, liens, une action */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 32px; padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--margin), calc((100vw - var(--max)) / 2)) 18px; transition: background-color 300ms ease; }
.nav.solid { background: rgba(10,11,12,.92); }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14px; text-decoration: none; color: var(--mute); transition: color 200ms ease; }
.nav-links a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 300ms var(--ease-out), top 300ms var(--ease-out); }
.nav-burger span:first-child { top: 16px; } .nav-burger span:last-child { top: 24px; }
.nav.open .nav-burger span:first-child { top: 20px; transform: rotate(45deg); } .nav.open .nav-burger span:last-child { top: 20px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav .nav-cta { margin-left: auto; }
  .nav-links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 18px; padding: 0 var(--margin); background: var(--ground); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); margin: 0; }
  .nav-links a { font-family: var(--display); font-size: 40px; text-transform: uppercase; color: var(--ink); opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open .nav-links a { opacity: 1; transform: none; }
  .nav.open .nav-links a:nth-child(2) { transition-delay: 50ms; } .nav.open .nav-links a:nth-child(3) { transition-delay: 100ms; } .nav.open .nav-links a:nth-child(4) { transition-delay: 150ms; }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 140px clamp(56px, 9vh, 96px); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.04); transform: scale(1.04); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.55) 0%, rgba(10,11,12,.15) 40%, rgba(10,11,12,.7) 78%, var(--ground) 100%); }
.hero-in { position: relative; display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0 0 0 -.03em; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: var(--step-display); display: flex; flex-direction: column; }
.hero-title span { display: block; }
.js .hero-title span { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out), background-position 2.4s var(--ease-out); }
.js.ready .hero-title span { opacity: 1; transform: none; filter: none; background-position: 0 100%; }
.js.ready .hero-title span:nth-child(2) { transition-delay: 80ms; } .js.ready .hero-title span:nth-child(3) { transition-delay: 160ms; }
.hero-sub { color: var(--ink); }
.js .hero-in > .hero-sub, .js .hero-in > .hero-cta { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out) 300ms, transform 800ms var(--ease-out) 300ms; }
.js.ready .hero-in > .hero-sub, .js.ready .hero-in > .hero-cta { opacity: 1; transform: none; }
.js.ready .hero-in > .hero-cta { transition-delay: 380ms; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: max(var(--margin), calc((100vw - var(--max)) / 2)); bottom: 40px; width: 1.5px; height: 56px; background: rgba(236,239,242,.18); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }

/* chiffres : une bande, séparée par le ton */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-block: clamp(56px, 6vw, 88px); background: var(--raise); }
.stats-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat-n { display: inline-block; width: fit-content; max-width: 100%; font-family: var(--display); font-size: clamp(36px, 3.6vw, 60px); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--chrome); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { font-size: 15px; color: var(--mute); }
.stats-foot { grid-column: 1 / -1; font-size: var(--step-lead); color: var(--ink); }
@media (max-width: 760px) { .stats, .stats-mini { grid-template-columns: 1fr 1fr; row-gap: 32px; } }

/* trois temps */
.beats { padding-block: var(--section); display: flex; flex-direction: column; }
.beat { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6.2vw, 104px); line-height: .98; color: var(--ink); }
.beat .chrome { color: var(--ink); background: none; }
.beat:nth-child(2) { padding-left: 8vw; }
.beat-r { color: var(--accent); padding-left: 16vw; }

/* la famille : mosaïque contenue */
.family { padding-block: 0 var(--section); }
.family .h2 .chrome { background: none; color: var(--ink); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(84px, 7.6vw, 128px); gap: 8px; }
.tile { margin: 0; position: relative; overflow: hidden; background: var(--raise); min-width: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.88); transition: transform 1.2s var(--ease-out), filter 600ms ease; }
@media (hover: hover) { .tile:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); } }
.tile figcaption { position: absolute; left: 14px; bottom: 10px; font-size: 15px; font-weight: 500; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.t-a { grid-column: 1 / 7; grid-row: span 3; } .t-b { grid-column: 7 / 10; grid-row: span 3; } .t-c { grid-column: 10 / 13; grid-row: span 3; }
.t-d { grid-column: 1 / 4; grid-row: span 2; } .t-e { grid-column: 4 / 9; grid-row: span 2; } .t-f { grid-column: 9 / 13; grid-row: span 2; }
.t-g { grid-column: 1 / 13; grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 132px; } .tile { grid-column: auto !important; grid-row: span 1 !important; } .t-a, .t-e, .t-g { grid-column: 1 / -1 !important; grid-row: span 2 !important; } .t-d, .t-f { grid-column: 1 / -1 !important; } }
.family-line { margin-top: 32px; }

/* une journée */
.day { padding-block: 0 var(--section); }
.day-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(var(--margin), calc((100vw - var(--max)) / 2))); padding-inline: max(var(--margin), calc((100vw - var(--max)) / 2)); scroll-padding-inline: max(var(--margin), calc((100vw - var(--max)) / 2)); }
.day-track::-webkit-scrollbar { display: none; }
.moment { margin: 0; flex: 0 0 auto; width: min(68vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.moment.wide { width: min(84vw, 520px); }
.moment img, .moment video { width: 100%; height: clamp(240px, 36vh, 360px); object-fit: cover; filter: saturate(.85); }
.moment figcaption { font-size: 15px; color: var(--mute); }
.moment figcaption b { font-weight: 500; color: var(--ink); margin-right: 8px; font-variant-numeric: tabular-nums; }
.day-progress { margin-top: 20px; height: 2px; background: var(--raise-2); max-width: 240px; }
.day-progress span { display: block; height: 100%; width: 0; background: var(--silver); }

/* carte */
.map-sec { padding-block: var(--section); background: var(--raise); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.map { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.map .water { fill: rgba(214,219,224,.05); stroke: none; }
.map .river { fill: none; stroke: #3A4047; stroke-width: 2; stroke-linecap: round; }
.map .link { fill: none; stroke: rgba(214,219,224,.32); stroke-width: 1.2; stroke-dasharray: 3 6; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.map .dot { fill: #F2F6F8; }
.map .pulse { fill: none; stroke: #D6DBE0; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(3); opacity: 0; } }
.map .hub { fill: var(--accent); }
.map text { font-family: var(--display); font-size: 20px; fill: var(--ink); text-transform: uppercase; }
.map text.sub { font-family: var(--text); font-size: 12px; fill: var(--mute); text-transform: none; }
.map-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: 15px; color: var(--mute); }
.map-list b { display: block; font-weight: 500; font-size: 18px; color: var(--ink); }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

/* ce qu'il faut */
.need { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.need-list { list-style: none; margin: 0; padding: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: .98; }
.need-list .chrome { color: var(--ink); background: none; }
.need-list li:nth-child(3) { color: var(--accent); }
.need-sub { color: var(--mute); }
@media (max-width: 760px) { .need { grid-template-columns: 1fr; } }

/* portes vers les pages */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 0 var(--section); }
.door { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(20px, 2.4vw, 32px); text-decoration: none; background: var(--raise); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.85); transition: transform 1.2s var(--ease-out), filter 600ms ease; }
@media (hover: hover) { .door:hover img { transform: scale(1.04); filter: brightness(.62) saturate(1); } .door:hover .door-go { transform: translateX(4px); } }
.door > span { position: relative; }
.door-l { font-family: var(--display); text-transform: uppercase; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; color: #fff; }
.door-t { color: #E3E7EA; max-width: 34ch; }
.door-go { font-size: 15px; font-weight: 500; color: #fff; transition: transform 300ms var(--ease-out); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 5 / 4; } }
.opt { color: var(--mute); }

/* formulaire */
.join { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 6vw, 96px); align-items: start; background: var(--raise); }
.join-head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.join-head .h2 .chrome { background: none; color: var(--ink); }
.join-head .lead { color: var(--mute); }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } .join-head { position: static; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--mute); }
.field input, .field select, .field textarea { font: 400 16px var(--text); color: var(--ink); background: var(--raise-2); border: 1px solid transparent; padding: 14px 14px; border-radius: 0; transition: border-color 200ms ease, background-color 200ms ease; width: 100%; }
.field select { appearance: none; background: var(--raise-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%238F969E'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field select option { background: var(--raise-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #4A5158; background-color: #1E2226; }
.field.err input, .field.err select { border-color: var(--accent); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--mute); }
.consent input { accent-color: #D6DBE0; margin-top: 3px; width: 16px; height: 16px; flex: none; }
.consent.err { color: var(--accent); }
.form-msg { min-height: 1.5em; font-size: 15px; color: var(--ink); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pied : le nom revient, simplement */
.foot { padding-block: 72px calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; }
.foot-logo { height: 40px; width: auto; }
.foot-line { font-family: var(--display); text-transform: uppercase; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; color: var(--ink); grid-column: 1; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.foot-nav a { font-size: 15px; text-decoration: none; color: var(--mute); transition: color 200ms ease; }
@media (hover: hover) { .foot-nav a:hover { color: var(--ink); } }
.foot-meta { grid-column: 1 / -1; font-size: var(--step-small); color: var(--mute); }
@media (max-width: 640px) { .foot { grid-template-columns: 1fr; } .foot-nav { grid-column: 1; grid-row: auto; } }

/* entrées : chaque bloc monte un peu, en cascade (le contenu reste visible sans JS) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tile.reveal img, .js .path-step.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-in-out) calc(var(--i, 0) * 70ms + 80ms), transform 1.2s var(--ease-out), filter 600ms ease; }
.js .tile.reveal.in img, .js .path-step.reveal.in img { clip-path: inset(0 0 0 0); }

/* popup d'accueil */
.welcome { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.welcome-backdrop { position: absolute; inset: 0; background: rgba(5,6,7,.82); opacity: 0; transition: opacity 400ms ease; }
.welcome-card { position: relative; width: min(900px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--raise); box-shadow: 0 40px 120px -30px #000; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.welcome.open .welcome-backdrop { opacity: 1; } .welcome.open .welcome-card { opacity: 1; transform: none; }
.welcome-media { position: relative; min-height: 400px; background: #000; overflow: hidden; }
.welcome-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.7); }
.welcome-caption { position: absolute; left: 24px; right: 24px; bottom: 24px; font-family: var(--display); text-transform: uppercase; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.05; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.welcome-caption span { display: inline; animation: capIn 500ms var(--ease-out) both; }
@keyframes capIn { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.welcome-sound { position: absolute; top: 16px; left: 16px; font: 500 13px var(--text); color: #fff; background: rgba(10,11,12,.7); border: 0; padding: 9px 12px; cursor: pointer; }
.welcome-body { min-width: 0; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.welcome-title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.2vw, 42px); line-height: 1; color: var(--ink); }
.welcome-text { color: var(--mute); font-size: 15px; }
.form-mini { gap: 14px; }
.welcome-later { align-self: center; background: none; border: 0; color: var(--mute); font: 400 14px var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 6px; }
.welcome-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; transition: transform 160ms var(--ease-out); }
.welcome-x:active { transform: scale(.9); }
@media (max-width: 780px) { .welcome-card { grid-template-columns: minmax(0, 1fr); } .welcome-media { min-height: 210px; } .welcome-x { color: #fff; } }

/* pages intérieures */
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; padding-block: 140px clamp(48px, 8vh, 88px); overflow: hidden; }
.page-hero-short { min-height: 64svh; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.78); transform: scale(1.04); animation: drift 14s var(--ease-in-out) infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translateY(-1.5%); } }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,12,.5) 0%, rgba(10,11,12,.15) 45%, var(--ground) 100%); }
.page-hero-in { position: relative; display: flex; flex-direction: column; gap: 22px; }
.page-title { margin: 0 0 0 -.03em; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; font-size: var(--step-display); display: flex; flex-direction: column; }
.page-title-sm { font-size: clamp(44px, 5.6vw, 92px); line-height: .96; }
.page-head { padding-block: clamp(150px, 16vw, 220px) clamp(48px, 5vw, 72px); }

.path { padding-block: var(--section); }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 112px); }
.path-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.path-step:nth-child(even) .path-txt { order: 2; }
.path-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.path-txt h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--step-head); line-height: 1; color: var(--ink); }
.path-txt p { font-size: var(--step-lead); line-height: 1.4; color: var(--mute); max-width: 32ch; }
.path-step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85); }
@media (max-width: 860px) { .path-step { grid-template-columns: 1fr; } .path-step:nth-child(even) .path-txt { order: 0; } }

.mind { padding-block: var(--section); background: var(--raise); }
.mind-list { list-style: none; margin: 0; padding: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 96px); line-height: .98; color: var(--ink); }
.mind-list li:nth-child(2) { padding-left: 5vw; } .mind-list li:nth-child(3) { padding-left: 10vw; } .mind-list li:nth-child(4) { padding-left: 15vw; }

.cta-band { padding-block: var(--section); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; }
.cta-band .h2 .chrome { background: none; color: var(--ink); }
.cta-quote { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; max-width: 30ch; }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: 0 var(--section); }
.founder { display: flex; flex-direction: column; gap: 22px; }
.founder-photo { aspect-ratio: 4 / 5; background: var(--raise); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.founder-photo img { width: 18%; opacity: .45; }
.founder-photo::after { content: "Photo à venir"; position: absolute; bottom: 16px; left: 18px; font-size: 13px; color: var(--mute); }
.founder-txt { display: flex; flex-direction: column; gap: 10px; }
.founder-txt h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; color: var(--ink); }
.founder-role { color: var(--accent); font-size: 15px; font-weight: 500; }
.founder-txt p:last-child { color: var(--ink); max-width: 46ch; }
@media (max-width: 820px) { .founders { grid-template-columns: 1fr; } }

/* parrainage */
.ref { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.ref-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.ref-steps li { background: var(--raise); padding: 24px; font-size: var(--step-lead); line-height: 1.35; color: var(--ink); }
@media (max-width: 760px) { .ref-steps { grid-template-columns: 1fr; } }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-out { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ref-link { display: flex; gap: 8px; }
.ref-link input { flex: 1; min-width: 0; font: 400 15px var(--text); color: var(--ink); background: var(--raise-2); border: 0; padding: 12px 14px; }
#refQr { width: 180px; height: 180px; background: #fff; padding: 10px; image-rendering: pixelated; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-story-prev { width: 160px; }
.ref-cond { font-size: var(--step-small); color: var(--mute); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .grain { display: none; } html { scroll-behavior: auto; }
  .js .tile.reveal img, .js .path-step.reveal img { clip-path: none; }
}

/* ——— téléphone : derniers ajustements ——— */
@media (max-width: 600px) {
  .founder-photo { aspect-ratio: 16 / 10; }
  .founder-photo img { width: 14%; }
  .map text { font-size: 30px; }
  .map text.sub { display: none; }
  .mind-list li:nth-child(n) { padding-left: 0; }
  .beat:nth-child(2) { padding-left: 6vw; } .beat-r { padding-left: 12vw; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cta-band { align-items: flex-start; }
}

/* ——— v4 : mystère ——— */
/* hero : la vidéo reste dans le noir, une lumière la révèle (suit le curseur, dérive seule sur téléphone) */
.hero { align-items: center; justify-content: center; text-align: center; padding-block: 120px; }
.hero-video { filter: saturate(.6) contrast(1.08); }
.hero-dark { position: absolute; inset: 0; --x: 50%; --y: 55%;
  background: radial-gradient(circle at var(--x) var(--y), rgba(10,11,12,0) 0, rgba(10,11,12,.35) 9vmax, rgba(10,11,12,.9) 26vmax, rgba(10,11,12,.97) 48vmax); }
.hero-in { align-items: center; gap: 30px; }
.hero-sym { width: 34px; height: auto; opacity: .9; }
.hero-title { margin: 0; font-size: clamp(2.75rem, 1rem + 6vw, 7rem); line-height: .95; letter-spacing: .01em; }
.hero-title span { text-wrap: balance; }
.js .hero-sym { opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ease-out) .1s, transform 1.2s var(--ease-out) .1s; }
.js.ready .hero-sym { opacity: .9; transform: none; }
.hero-cta { justify-content: center; }
.scroll-cue { right: 50%; transform: translateX(50%); }

/* la journée en film : scène épinglée, une image et une phrase à la fois */
.film { position: relative; height: calc(8 * 85svh); padding-inline: 0 !important; background: var(--ground); }
.film-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease-in-out); }
.film-frame.on { opacity: 1; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.7) contrast(1.05); transform: scale(1.08); transition: transform 7s var(--ease-out); }
.film-frame.on img { transform: scale(1); }
.film-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, rgba(10,11,12,0) 30%, rgba(10,11,12,.85) 100%); }
.film-frame figcaption { position: absolute; z-index: 1; left: max(var(--margin), calc((100vw - var(--max)) / 2)); right: max(var(--margin), calc((100vw - var(--max)) / 2)); bottom: 16svh; font-family: var(--display); text-transform: uppercase; font-size: clamp(2.5rem, 1rem + 5vw, 6rem); line-height: .95; color: var(--ink); text-wrap: balance; opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 900ms var(--ease-out) 250ms, transform 900ms var(--ease-out) 250ms, filter 900ms var(--ease-out) 250ms; }
.film-frame.on figcaption { opacity: 1; transform: none; filter: none; }
.film-frame figcaption.film-r { color: var(--accent); }
/* sans script ou mouvement réduit : les images s'empilent, simplement */
html:not(.js) .film, .reduce-film .film { height: auto; }
html:not(.js) .film-stage, .reduce-film .film-stage { position: static; height: auto; }
html:not(.js) .film-frame, .reduce-film .film-frame { position: relative; height: 80svh; opacity: 1; }
html:not(.js) .film-frame figcaption, .reduce-film .film-frame figcaption { opacity: 1; transform: none; filter: none; }

/* fondateurs : les deux frères ensemble */
.founder-photo-duo { aspect-ratio: 4 / 5; }
@media (max-width: 600px) { .hero-title { font-size: clamp(2.5rem, 11vw, 3.5rem); } .film-frame figcaption { bottom: 14svh; } }
