/* ════════════════════════════════════════════
   SAM.WEBP — « le fichier »
   Le site se comporte comme une image qu'on décode :
   pixels → netteté. Fond clair, encre, un accent flamboyant.
   ════════════════════════════════════════════ */

@view-transition { navigation: auto; }

:root {
  --ground: #F4F4F1;
  --ground-2: #E8E8E3;
  --ink: #0B0B0B;
  --ink-2: #4A4A47;
  --night: #0B0B0B;
  --night-2: #1A1A19;
  --on-night: #F4F4F1;
  --on-night-2: #A3A39E;
  --accent: #FF4D1A;

  --f: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1680px;
  --pad: clamp(16px, 2.4vw, 36px);
  --gap: clamp(112px, 13vw, 220px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --z-nav: 10;
  --z-menu: 20;
  --z-cursor: 40;
  --z-intro: 50;
  --z-skip: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
p { text-wrap: pretty; }

.skip { position: absolute; left: var(--pad); top: -100px; z-index: var(--z-skip); padding: 12px 18px; background: var(--ink); color: var(--ground); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Typo : trois tailles font le travail ── */
.mega, .h1, .h2 {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.mega { font-size: clamp(72px, 24vw, 460px); line-height: .8; letter-spacing: -0.035em; }
.h1 { font-size: clamp(64px, 12vw, 220px); line-height: .84; }
.h2 { font-size: clamp(48px, 7.6vw, 140px); line-height: .88; }
.h3 { margin: 0; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.02; font-weight: 700; font-stretch: 80%; letter-spacing: -0.03em; }
.lede { margin: 0; max-width: 34ch; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.28; font-weight: 500; letter-spacing: -0.015em; }
.small { font-size: 15px; color: var(--ink-2); }
.on-night .small { color: var(--on-night-2); }
.ext::after { content: " ↗"; }

/* ── Layout ── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-top: var(--gap); }
.on-night { background: var(--night); color: var(--on-night); }
.on-accent { background: var(--accent); color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--ground);
  view-transition-name: nav;
}
.nav__in { display: flex; align-items: center; gap: 12px 36px; min-height: var(--nav-h); }
.logo { font-weight: 800; font-stretch: 75%; font-size: 30px; letter-spacing: -0.05em; text-decoration: none; line-height: 1; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav__links { display: flex; gap: 6px 28px; flex: 1; justify-content: flex-end; }
.nav__links a {
  position: relative; padding: 10px 0; text-decoration: none; font-weight: 600; font-size: 17px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 250ms var(--ease-out);
}
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__toggle { display: none; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ghost { background: var(--ground-2); color: var(--ink); }
.on-night .btn--ghost { background: var(--night-2); color: var(--on-night); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 16px; }
.btn .arr { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--ink:hover { background: var(--accent); color: var(--ink); }
  .btn--accent:hover { background: var(--ink); color: var(--ground); }
  .on-accent .btn--ink:hover { background: var(--ground); color: var(--ink); }
  .btn--ghost:hover { background: var(--ink); color: var(--ground); }
  .on-night .btn--ghost:hover { background: var(--on-night); color: var(--ink); }
  .btn:hover .arr { transform: translateX(4px); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--ground-2); font-size: 15px; font-weight: 500; }
.on-night .chips li { background: var(--night-2); }

/* ── Intro « décodage » (1re visite de la session) ── */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad); background: var(--ink); color: var(--ground);
  transition: clip-path 700ms var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__name { padding-bottom: .1em; font-weight: 800; font-stretch: 75%; letter-spacing: -0.035em; font-size: clamp(72px, 19vw, 360px); line-height: .8; }
.intro__name span { color: var(--accent); }
.intro__bar { height: 6px; background: var(--night-2); }
.intro__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.intro__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; }
html:not(.intro-on) .intro { display: none; }

/* ── Curseur ── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: width 250ms var(--ease-out), height 250ms var(--ease-out), margin 250ms var(--ease-out), opacity 200ms ease;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.has-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.cursor span { opacity: 0; transition: opacity 150ms ease; }
.cursor.has-label span { opacity: 1; }
@media not ((hover: hover) and (pointer: fine)) { .cursor { display: none; } }

/* ── Accueil : héros + compresseur ── */
.hero { padding-top: clamp(16px, 2vw, 32px); }
.hero__title { display: block; }
.x { color: var(--accent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 32px; margin-top: clamp(24px, 3vw, 48px); align-items: start; }
.hero__intro { display: flex; flex-direction: column; gap: 24px; }
.squeeze { position: relative; background: var(--ink); }
.squeeze__view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.squeeze__view canvas, .squeeze__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.squeeze__view canvas { image-rendering: pixelated; }
.squeeze__ui {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center;
  padding: 20px 22px 18px; background: var(--ink); color: var(--on-night);
}
.squeeze__ui label { grid-column: 1 / -1; font-weight: 600; font-size: 16px; line-height: 1.35; }
.squeeze__q { font-size: 34px; font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; min-width: 3ch; text-align: right; }
.squeeze__out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--on-night-2); font-size: 15px; }
.squeeze__out strong { color: var(--on-night); font-weight: 700; }
.squeeze__out .gain { color: var(--accent); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 80%), var(--night-2) var(--fill, 80%)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--night-2); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 999px; background: var(--on-night); border: 0; transition: transform 160ms var(--ease-out); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 999px; background: var(--on-night); border: 0; }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── Univers : trois lignes géantes ── */
.worlds { margin: 0; padding: 0; list-style: none; }
.world a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26ch) auto; gap: 16px 40px; align-items: center;
  padding: clamp(18px, 2.4vw, 34px) 0; text-decoration: none; isolation: isolate;
}
.world a::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform 350ms var(--ease-out);
}
.world__name { font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; font-size: clamp(56px, 10.5vw, 196px); line-height: .9; transition: color 200ms ease, transform 350ms var(--ease-out); }
.world__what { font-size: 18px; color: var(--ink-2); transition: color 200ms ease; }
.world__go { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--ground-2); font-size: 28px; transition: background-color 200ms ease, transform 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .world a:hover::before { transform: scaleY(1); }
  .world a:hover .world__name { color: var(--ground); transform: translateX(24px); }
  .world a:hover .world__what { color: var(--on-night-2); }
  .world a:hover .world__go { background: var(--accent); transform: rotate(-45deg); }
}
/* aperçu flottant qui suit le curseur */
.peek {
  position: fixed; left: 0; top: 0; z-index: var(--z-menu); width: min(30vw, 440px); aspect-ratio: 16 / 10; pointer-events: none;
  overflow: hidden; opacity: 0;
  transition: opacity 200ms ease;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.is-logo { display: grid; place-items: center; background: var(--ink); }
/* le cadre est en position fixe : on dimensionne le logo en % du cadre, pas de l'écran */
.peek.is-logo img { width: 56%; height: 62%; object-fit: contain; filter: brightness(0) invert(1); }
@media not ((hover: hover) and (pointer: fine)) { .peek { display: none; } }

/* ── Titre en masque vidéo (scroll) ── */
.maskreel { position: relative; height: 260vh; background: var(--night); }
.maskreel__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.maskreel__stick video, .maskreel__stick img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maskreel__cut {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--ground); color: #000; mix-blend-mode: screen;
  transform-origin: 50% 54%; will-change: transform, opacity;
}
.maskreel__cut span { font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; font-size: clamp(96px, 24vw, 480px); line-height: .78; text-align: center; }
.maskreel__stick::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(11,11,11,0), rgba(11,11,11,.75)); opacity: var(--cap, 0); pointer-events: none; }
.maskreel__cap {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; color: var(--on-night);
  opacity: var(--cap, 0);
}
.maskreel__cap p { margin: 0; max-width: 30ch; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; line-height: 1.25; }

/* ── Pellicule horizontale ── */
.reel { position: relative; background: var(--night); color: var(--on-night); }
.reel__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 40px); }
.reel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.reel__tc { font-size: clamp(28px, 3vw, 48px); font-weight: 800; font-stretch: 75%; letter-spacing: -0.02em; color: var(--accent); }
.reel__track { display: flex; align-items: flex-start; gap: 12px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.frame { position: relative; flex: none; width: clamp(280px, 38vw, 620px); margin: 0; }
.frame:nth-child(3n+2) { width: clamp(240px, 26vw, 400px); margin-top: clamp(40px, 8vh, 96px); }
.frame__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.frame:nth-child(3n+2) .frame__media { aspect-ratio: 4 / 5; }
.frame__media img, .frame__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__media video { opacity: 0; transition: opacity 300ms ease; }
.frame.is-playing video { opacity: 1; }
.frame figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 16px; }
.frame figcaption b { font-weight: 700; }
.frame figcaption span { color: var(--on-night-2); }
.reel__end { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 24px; width: clamp(260px, 30vw, 460px); padding: 0 24px; align-self: center; }

/* ── Pixel reveal (signature) ── */
.px { position: relative; }
.px > canvas.px__c { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; image-rendering: pixelated; pointer-events: none; transition: opacity 250ms ease; }

/* ── Bandeau Samuel ── */
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.who__img { aspect-ratio: 4 / 5; overflow: hidden; }
.who__img img { width: 100%; height: 100%; object-fit: cover; }
.who .lede { max-width: 30ch; }

/* ── Logos clients ── */
.logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos li { display: grid; place-items: center; aspect-ratio: 1; padding: 20%; background: var(--ink); transition: background-color 250ms ease; }
.logos img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; transition: transform 350ms var(--ease-out); }
.logos img.inv { filter: grayscale(1) invert(1); }
@media (hover: hover) and (pointer: fine) {
  .logos li:hover { background: var(--accent); }
  .logos li:hover img { transform: scale(1.06); }
}

/* ── Clôture ── */
.close { margin-top: var(--gap); }
.close__in { padding-block: clamp(64px, 8vw, 128px) 40px; display: flex; flex-direction: column; gap: 40px; }
.close__title { font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; font-size: clamp(72px, 17vw, 330px); line-height: .8; margin: 0; }
.close__mail { font-size: clamp(22px, 3vw, 48px); font-weight: 700; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 350ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .close__mail:hover { background-size: 100% 3px; } }
.close__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 32px; font-size: 15px; font-weight: 500; }
.close__bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.close__bar a { text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .close__bar a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ── Pages univers : tête ── */
.head { padding-top: clamp(40px, 6vw, 96px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.head .row { align-items: end; justify-content: space-between; }

.keyvid { position: relative; margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 21 / 9; overflow: hidden; background: var(--night); }
.keyvid img, .keyvid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Web : liste de sites ── */
.sites { margin: 0; padding: 0; list-style: none; }
.site a, .site > div {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 140px; gap: 16px 40px; align-items: center;
  padding: 36px 0; text-decoration: none; transition: transform 350ms var(--ease-out);
}
.site + .site a, .site + .site > div { box-shadow: 0 -2px 0 var(--ground-2); }
.site__url { font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; font-size: clamp(40px, 5.6vw, 104px); line-height: .92; overflow-wrap: anywhere; }
.site__url span { color: var(--ink-2); transition: color 200ms ease; }
.site__kind { display: block; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.site__badge { display: grid; place-items: center; width: 140px; aspect-ratio: 1; padding: 22px; background: var(--ink); transition: background-color 250ms ease, transform 350ms var(--ease-out); }
.site__logo { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.site__logo.inv { filter: grayscale(1) invert(1); }
@media (hover: hover) and (pointer: fine) {
  .site a:hover { transform: translateX(16px); }
  .site a:hover .site__url span { color: var(--accent); }
  .site a:hover .site__badge { background: var(--accent); transform: rotate(-4deg) scale(1.06); }
}

/* ── Blocs d'offres : liste éditoriale ── */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 96px); margin: 0; padding: 0; list-style: none; }
.offers li { display: flex; flex-direction: column; gap: 12px; padding: 36px 0; }
.offers p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.on-night .offers p { color: var(--on-night-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 40px; background: var(--ground-2); }
.steps strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.steps p { margin: 0; color: var(--ink-2); }

/* ── Mur de plans (page Image & Vidéo) ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--night-2); color: var(--on-night); font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.filter .n { margin-left: 6px; opacity: .6; }
@media (hover: hover) and (pointer: fine) { .filter:hover:not([aria-pressed="true"]) { background: var(--on-night); color: var(--ink); } }
.toc .filter { background: var(--ground-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .toc .filter:hover { background: var(--ink); color: var(--ground); } }
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; margin: 0; grid-column: span 4; }
.shot:nth-child(5n+1) { grid-column: span 7; }
.shot:nth-child(5n+2) { grid-column: span 5; }
.shot[hidden] { display: none; }
.shot__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.shot__media img, .shot__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot__media video { opacity: 0; transition: opacity 300ms ease; }
.shot.is-playing video { opacity: 1; }
.shot figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 16px; }
.shot figcaption b { font-weight: 700; }
.shot figcaption span { color: var(--on-night-2); }
.shot--todo .shot__media { display: grid; place-items: center; color: var(--on-night-2); font-weight: 600; text-align: center; padding: 16px; }

/* ── Marketing : chiffres ── */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 360px; padding: 32px; background: var(--ground-2); }
.stat--accent { background: var(--accent); }
.stat__n { font-weight: 800; font-stretch: 75%; letter-spacing: -0.05em; font-size: clamp(88px, 9vw, 168px); line-height: .82; }
.stat p { margin: 0; font-size: 18px; }
.stat .who-is { font-weight: 700; }
.todo { color: var(--ink-2); }

/* ── À propos ── */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.about figure { margin: 0; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about figcaption { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--ground-2); }
.fact b { font-weight: 800; font-stretch: 75%; letter-spacing: -0.04em; font-size: clamp(56px, 5vw, 88px); line-height: .85; }
.group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.group a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 28px; background: var(--ground-2); text-decoration: none; transition: background-color 250ms ease, color 250ms ease; }
.group strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.group span { color: var(--ink-2); font-size: 16px; transition: color 250ms ease; }
@media (hover: hover) and (pointer: fine) {
  .group a:hover { background: var(--ink); color: var(--ground); }
  .group a:hover span { color: var(--on-night-2); }
}
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 40px; padding: 32px 0; }
.timeline li + li { box-shadow: 0 -2px 0 var(--ground-2); }
.timeline .when { font-weight: 700; font-size: 18px; color: var(--accent); padding-top: 4px; }
.timeline h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.timeline .where { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink-2); }
.timeline p { margin: 12px 0 0; max-width: 68ch; }

/* ── Contact ── */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.form { display: flex; flex-direction: column; gap: 36px; }
.field { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.field .opt { font-weight: 500; color: var(--ink-2); }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: flex-end; min-height: 128px; padding: 18px; background: var(--ground-2); cursor: pointer;
  font-weight: 800; font-stretch: 75%; letter-spacing: -0.04em; font-size: clamp(28px, 2.6vw, 40px); line-height: .9;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.choice input:active + span { transform: scale(0.97); }
.choice input:checked + span { background: var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + span { background: var(--ink); color: var(--ground); } }
.input {
  width: 100%; min-height: 60px; padding: 14px 18px; border: 0; border-radius: 0; background: var(--ground-2);
  font-size: 19px; color: var(--ink); transition: background-color 200ms ease, box-shadow 200ms ease;
}
.input:focus { outline: none; background: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.err { margin: 0; min-height: 1.3em; font-size: 15px; font-weight: 600; color: #C22A00; }
.field.is-invalid .input { box-shadow: inset 0 -3px 0 #C22A00; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.direct { display: flex; flex-direction: column; gap: 4px; }
.direct a, .direct div { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; background: var(--ground-2); text-decoration: none; transition: background-color 250ms ease, color 250ms ease; }
.direct strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.direct span { font-size: 15px; color: var(--ink-2); transition: color 250ms ease; }
@media (hover: hover) and (pointer: fine) { .direct a:hover { background: var(--ink); color: var(--ground); } .direct a:hover span { color: var(--on-night-2); } }

/* ── Matériel ── */
.gear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px 40px; padding: 40px 0; }
.gear + .gear { box-shadow: 0 -2px 0 var(--ground-2); }
.gear ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.gear li { padding: 20px 22px; background: var(--ground-2); }
.gear strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.gear li span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); }

/* ── Légal ── */
.prose { max-width: 72ch; }
.prose h2 { margin: 80px 0 16px; }
.prose h3 { margin: 36px 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.prose a { text-underline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 404 ── */
.lost { min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; gap: 32px; }

/* ── Apparitions (entrées en cascade) ── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* titres : chaque ligne monte derrière un masque */
.js [data-lines] .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-lines] .ln > span { display: block; transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--l, 0) * 90ms); }
.js [data-lines].is-in .ln > span { transform: none; }

/* ── Transitions de page (View Transitions, Chrome / Safari 18) ── */
::view-transition-old(root) { animation: vt-out 380ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 620ms var(--ease-in-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4vh); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ════════ Responsive ════════ */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__intro { display: contents; }
  .hero__intro .squeeze__ui { order: 3; margin-top: -24px; }
  .squeeze { order: 2; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site a, .site > div { grid-template-columns: minmax(0, 1fr) 110px; }
  .site__desc { grid-column: 1 / -1; grid-row: 2; }
  .site__badge { width: 96px; padding: 16px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .logo { font-size: 26px; }
  .nav__toggle {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: var(--ink); color: var(--ground); font-weight: 700; cursor: pointer;
  }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-menu);
    flex-direction: column; justify-content: flex-start; gap: 0; padding: 16px var(--pad) 40px; background: var(--ground);
  }
  .nav__links:not(.is-open) { display: none; }
  .nav__links a { font-size: clamp(44px, 12vw, 72px); font-weight: 800; font-stretch: 75%; letter-spacing: -0.05em; line-height: 1; padding: 10px 0; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent); }
  .split, .who, .about, .contact { grid-template-columns: 1fr; }
  .world a { grid-template-columns: minmax(0, 1fr) auto; }
  .world__what { grid-column: 1; grid-row: 2; }
  .world__go { grid-row: 1 / span 2; grid-column: 2; width: 56px; height: 56px; }
  .offers, .steps { grid-template-columns: 1fr; }
  .timeline li, .gear { grid-template-columns: 1fr; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { grid-template-columns: 1fr 1fr; }
  .shot, .shot:nth-child(5n+1), .shot:nth-child(5n+2) { grid-column: span 1; }
  .shot:nth-child(3n+1) { grid-column: span 2; }
  .keyvid { aspect-ratio: 4 / 5; }
  /* la pellicule devient un défilement horizontal natif */
  .reel { height: auto !important; }
  .reel__stick { position: static; height: auto; padding-block: var(--gap); }
  .reel__track { transform: none !important; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .frame, .frame:nth-child(3n+2) { width: 78vw; margin-top: 0; scroll-snap-align: start; }
  .frame:nth-child(3n+2) .frame__media { aspect-ratio: 16 / 10; }
  .reel__end { width: 70vw; }
  .maskreel { height: 180vh; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .stats, .facts, .group, .row2 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { min-height: 260px; }
  .btn { min-height: 56px; padding: 0 24px; font-size: 17px; }
  .wall { grid-template-columns: 1fr; }
  .shot:nth-child(3n+1) { grid-column: span 1; }
}

/* ════════ Mouvement réduit : moins, plus doux ════════ */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js [data-lines] .ln > span { transform: none; transition: none; }
  .maskreel { height: auto; }
  .maskreel__stick { position: relative; height: 80svh; }
  .maskreel__cut { display: none; }
  .maskreel__stick::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(11,11,11,0), rgba(11,11,11,.75)); opacity: var(--cap, 0); pointer-events: none; }
.maskreel__cap { opacity: 1; }
  .reel { height: auto !important; }
  .reel__stick { position: static; height: auto; padding-block: var(--gap); }
  .reel__track { transform: none !important; overflow-x: auto; width: auto; }
  .intro { display: none !important; }
  .world a::before, .world__name, .world__go, .site a, .site__badge { transition-duration: 0ms; }
}

/* ════════ Impression (CV en PDF) ════════ */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .nav, .close, .no-print, .skip, .cursor, .peek, .intro { display: none !important; }
  .js [data-reveal], .js [data-lines] .ln > span { opacity: 1 !important; transform: none !important; }
  .section { padding-top: 20pt; }
  .h1 { font-size: 54pt; } .h2 { font-size: 30pt; }
  .fact, .group a { background: none; border: 1px solid #ccc; }
  .timeline li { break-inside: avoid; }
  .about { grid-template-columns: 1fr 150pt; }
  .px__c { display: none; }
}
