/* ============================================================
   TREIZEFILM, production audiovisuelle
   Noir grainé, typographie blanche, palette Casa Chromatica
   employée en touches basses. Pas d'ombre, pas d'arrondi.
   ============================================================ */

:root {
  --black:  #000000;
  --shale:  #0d0d0d;
  --white:  #f5f5f2;          /* blanc de projection, pas blanc d'ecran */
  --bone:   #ded8cb;          /* blanc casse : tous les textes secondaires */
  --ash:    #ded8cb;          /* ancien gris, aligne sur le blanc casse */
  --hair:   #1f1f1c;          /* arete sombre : separe sans barre blanche */
  --edge:   rgba(245, 245, 242, .38);  /* bord d'un element cliquable */

  /* palette Casa Chromatica, en touches, jamais en aplat */
  --meadow:  #0c6038;
  --moss:    #808847;
  --sand:    #f1d2a1;
  --slate:   #2b4c59;
  --crimson: #6e1c17;
  --red:     #ff2936;         /* voyant de tournage uniquement */

  /* variantes eclaircies : seules versions posees sur du texte (contraste AA sur noir) */
  --meadow-lit:  #3ba272;
  --slate-lit:   #85a9ba;
  --crimson-lit: #d2594b;

  --display: 'Fraunces', Georgia, serif;
  --ui:      'Archivo', system-ui, sans-serif;
  --tech:    'Space Mono', ui-monospace, monospace;

  --gut:   clamp(20px, 4vw, 56px);
  --reel-h: 62px;
  --ease:  cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* couleur d'accent, propre à chaque page */
body { --accent: var(--sand); --accent-line: var(--moss); }
body[data-accent="meadow"] { --accent: var(--sand);  --accent-line: var(--meadow); }
body[data-accent="moss"]   { --accent: var(--moss);  --accent-line: var(--moss); }
body[data-accent="sand"]   { --accent: var(--sand);  --accent-line: var(--slate); }
body[data-accent="slate"]  { --accent: var(--sand);  --accent-line: var(--slate); }

/* ---------- thème clair : pages de projets ----------
   Les jetons sont inversés, pas les règles : --black porte le fond,
   --white porte l'encre. Tout ce qui s'appuie dessus suit tout seul. */
body[data-fond="clair"] {
  --black:  #ece7dd;          /* blanc cassé du fond */
  --shale:  #e3ddd0;          /* aplat légèrement plus dense */
  --white:  #141410;          /* encre : le texte principal */
  --bone:   #45413a;          /* texte secondaire, brun sombre, pas gris */
  --ash:    #45413a;
  --hair:   #d7d0c1;          /* arête claire, jamais une barre blanche */
  --edge:   rgba(20, 20, 16, .34);
}

/* la barre du haut ne peut plus se fier au mode différence */
body[data-fond="clair"] .topbar { mix-blend-mode: normal; }
/* le logo est dessiné en blanc : on le retourne pour l'encrer */
body[data-fond="clair"] .mark__logo,
body[data-fond="clair"] .footer__logo { filter: invert(1); }
/* le grain doit assombrir le papier, pas l'éclaircir */
body[data-fond="clair"] .grain { mix-blend-mode: multiply; opacity: .16; }
body[data-fond="clair"] .ambient { opacity: 1.4; }
/* le voyant de tournage garde son rouge, le reste suit les jetons */
body[data-fond="clair"] .tc { color: var(--white); }

html { -webkit-text-size-adjust: 100%; }
html:has(.page-legal) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: var(--reel-h);
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit; color: inherit;
  background: none; border: 0; border-radius: 0;
  cursor: pointer;
}

::selection { background: var(--meadow); color: var(--white); }

:focus-visible {
  outline: 1px solid var(--sand);
  outline-offset: 4px;
}

/* ---------- fonds animés, très faible opacité ---------- */
.ambient {
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  filter: blur(90px);
}
.ambient span {
  position: absolute;
  display: block;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  opacity: .07;
}
.ambient span:nth-child(1) {
  background: var(--meadow);
  top: 8%; left: 6%;
  animation: drift-a 34s ease-in-out infinite alternate;
}
.ambient span:nth-child(2) {
  background: var(--slate);
  top: 42%; right: 4%;
  animation: drift-b 41s ease-in-out infinite alternate;
}
.ambient span:nth-child(3) {
  background: var(--moss);
  bottom: 6%; left: 38%;
  opacity: .05;
  animation: drift-c 48s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(14vw, 10vh, 0) scale(1.25); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 6vh, 0) scale(1.1); }
  to   { transform: translate3d(-12vw, -8vh, 0) scale(.9); }
}
@keyframes drift-c {
  from { transform: translate3d(-8vw, 0, 0) scale(.95); }
  to   { transform: translate3d(10vw, -12vh, 0) scale(1.2); }
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1001;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: translateY(0); outline-offset: 2px; }

/* ---------- barre de progression ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 860;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- transition entre les pages ---------- */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--accent-line);
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}
.wipe.is-out {
  transform: scaleY(1);
  transition: transform .42s cubic-bezier(.7, 0, .3, 1);
}
body.is-entering main,
body.is-entering .legal,
body.is-entering .legal-hero {
  opacity: 0;
  transform: translateY(14px);
}
main, .legal, .legal-hero {
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -120px;
  z-index: 900;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 900ms steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-30px, 18px); }
  50%  { transform: translate(24px, -26px); }
  75%  { transform: translate(-18px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ---------- academy leader ---------- */
.leader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  display: grid;
  place-items: center;
}
.leader__svg {
  width: min(58vmin, 420px);
  height: min(58vmin, 420px);
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
}
.leader__ring { stroke: var(--hair); }
.leader__logo {
  position: absolute;
  left: 50%;
  bottom: clamp(44px, 11vh, 110px);
  transform: translateX(-50%);
  width: auto;
  height: 38px;
  opacity: .45;
}
.leader__sweep { fill: rgba(245, 245, 242, .07); stroke: none; }
.leader__count {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: min(26vmin, 190px);
  line-height: 1;
}
.leader.is-done { pointer-events: none; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gut);
  mix-blend-mode: difference;
  opacity: 0;
  transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.topbar.is-ready { opacity: 1; }
.topbar.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
}
.mark {
  display: block;
  line-height: 0;
  transition: opacity .4s var(--ease);
}
.mark__logo {
  display: block;
  width: auto;
  height: 36px;
}
.mark:hover { opacity: .62; }

.tc {
  font-family: var(--tech);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc__dot {
  width: 7px; height: 7px;
  background: var(--red);
  animation: tally 1.6s steps(1, end) infinite;
}
@keyframes tally { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

.menu-trigger {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 0;
}
.menu-trigger__glyph {
  display: inline-block;
  transition: transform .5s var(--ease);
  font-family: var(--tech);
}
.menu-trigger:hover .menu-trigger__glyph { transform: rotate(90deg); }
.menu-trigger__word {
  position: relative;
}
.menu-trigger__word::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.menu-trigger:hover .menu-trigger__word::after { transform: scaleX(1); transform-origin: left; }
.topbar.is-open .menu-trigger__glyph { transform: rotate(45deg); }

/* ---------- menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gut) calc(var(--reel-h) + 40px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }


.menu__list li[data-colour="meadow"] { --dot: var(--meadow); }
.menu__list li[data-colour="moss"]   { --dot: var(--moss); }
.menu__list li[data-colour="sand"]   { --dot: var(--sand); }
.menu__list li[data-colour="slate"]  { --dot: var(--slate); }
.menu__list li {
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}
.menu__list li:last-child { border-bottom: 1px solid var(--hair); }
.menu__list a {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 1.16;
  display: block;
  transition: transform .6s var(--ease), color .4s var(--ease);
  transform: translateY(105%);
}
.menu.is-open .menu__list a { transform: translateY(0); }
.menu__list a:hover { color: var(--sand); }
.menu__list li:nth-child(1) a { transition-delay: .06s; }
.menu__list li:nth-child(2) a { transition-delay: .12s; }
.menu__list li:nth-child(3) a { transition-delay: .18s; }
.menu__list li:nth-child(4) a { transition-delay: .24s; }

.menu__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
  white-space: nowrap;
}
.menu__meta::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--dot, var(--hair));
  flex: none;
}
.menu__list a[aria-current="page"] { color: var(--sand); }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  font-size: 14px;
  color: var(--bone);
}
.menu__foot a:hover { color: var(--white); }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - var(--reel-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gut) 110px;
  position: relative;
  text-align: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__video.is-on { opacity: .5; }
.hero__video video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
}
/* l'iframe YouTube est recadrée pour couvrir toute la zone, sans bandes noires */
.hero__embed {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  filter: grayscale(.2) contrast(1.05);
}
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.34) 0%, rgba(0,0,0,.8) 80%);
}

.video-toggle {
  position: absolute;
  right: var(--gut);
  bottom: 44px;
  z-index: 2;
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 3px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.video-toggle:hover { color: var(--sand); border-color: var(--sand); }

.hero__mark {
  position: relative;
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2rem, 13vw, 13rem);
  line-height: .9;
  letter-spacing: -.02em;
  display: flex;
  justify-content: center;
}
.hero__mark span { display: block; will-change: transform; }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero__cue i {
  width: 1px; height: 46px;
  background: var(--hair);
  position: relative;
  overflow: hidden;
}
.hero__cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- shared section title ---------- */
.section-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--bone);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-title::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-line);
  flex: none;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 1px;
  background: var(--accent-line);
}

/* ---------- en-tête de page ---------- */
.page-head {
  padding: clamp(130px, 20vh, 220px) var(--gut) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.page-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: clamp(90px, 14vw, 190px); height: 1px;
  background: var(--accent-line);
}
.page-head h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.page-head p {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- studio / manifesto ---------- */
.studio {
  padding: clamp(90px, 14vh, 180px) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.studio__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -.01em;
  max-width: 22ch;
}
.studio__aside {
  max-width: 42ch;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.65;
  padding-top: 10px;
}
/* ---------- process ---------- */
.process { padding: clamp(60px, 9vh, 120px) var(--gut); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
}
.step {
  padding: 26px 24px 40px 0;
  border-right: 1px solid var(--hair);
  position: relative;
  opacity: 0;
  transform: translateY(26px);
}
.step:last-child { border-right: 0; }
.step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.step:hover::before { transform: scaleX(1); }
.step__num {
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
  display: block;
  margin-bottom: 20px;
}
.step:hover .step__num { color: var(--sand); }
.step__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.step__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone);
  max-width: 34ch;
}

/* ---------- fields ---------- */
.fields { padding: clamp(60px, 9vh, 120px) var(--gut); }
.fields__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 38px);
}
.field {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.7rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  cursor: default;
  transition: color .4s var(--ease), opacity .6s var(--ease);
  opacity: 0;
}
.field.is-in { opacity: 1; }
.fields__flow:hover .field.is-in { opacity: .34; }
.fields__flow .field.is-in:hover { opacity: 1; }
.fields__flow .field.is-in:nth-child(5n + 1):hover { color: var(--sand); }
.fields__flow .field.is-in:nth-child(5n + 2):hover { color: var(--meadow-lit); }
.fields__flow .field.is-in:nth-child(5n + 3):hover { color: var(--moss); }
.fields__flow .field.is-in:nth-child(5n + 4):hover { color: var(--slate-lit); }
.fields__flow .field.is-in:nth-child(5n + 5):hover { color: var(--crimson-lit); }

/* ---------- work ---------- */
.work {
  padding: clamp(60px, 9vh, 120px) var(--gut) clamp(80px, 12vh, 150px);
  position: relative;
}
.reel-list { border-top: 1px solid var(--hair); }
.work__empty {
  padding: clamp(28px, 4vw, 48px) 0;
  color: var(--bone);
  font-size: 15px;
}
.row {
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.row::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: calc(var(--gut) * -1);
  width: 3px;
  background: var(--accent-line);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .5s var(--ease);
}
.row--play:hover::before { transform: scaleY(1); }
.row__link {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 28px;
  padding: clamp(18px, 2.6vw, 34px) 0;
  transition: padding-left .6s var(--ease), color .45s var(--ease);
}
.row__title, .row__meta { transition: transform .6s var(--ease), color .45s var(--ease); }
.row--play .row__link:hover .row__title { transform: translateX(clamp(10px, 2vw, 34px)); }
.row--play .row__link:hover .row__meta { transform: translateX(calc(clamp(10px, 2vw, 34px) * -.4)); }
.row--play .row__link:hover { color: var(--sand); }
.row__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.9rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.row__meta {
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
  white-space: nowrap;
}
.row--play .row__link:hover .row__meta { color: var(--sand); }
.row__year {
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
}

/* ---------- entrée unique vers les projets (accueil) ---------- */
.entree {
  display: grid;
  gap: 14px;
  padding: clamp(46px, 7vw, 88px) 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.entree__sur {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color .4s var(--ease);
}
.entree__titre {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  transition: transform .6s var(--ease), color .4s var(--ease);
}
.entree__trait {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease);
}
.entree:hover .entree__titre {
  transform: translateX(clamp(10px, 2vw, 32px));
  color: var(--sand);
}
.entree:hover .entree__sur { color: var(--sand); }
.entree:hover .entree__trait { transform: scaleX(1); }

/* ---------- page Projets : entête ---------- */
.projets-tete {
  padding: clamp(120px, 20vh, 220px) var(--gut) 0;
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3vw, 34px);
  text-align: center;
}
.projets-tete h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.projets-tete p {
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--bone);
}

.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 6px;
}
.filtre {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 11px 18px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.filtre:hover { color: var(--white); border-color: var(--edge); }
.filtre.is-on { color: var(--white); border-color: var(--accent-line); }
.filtre:focus-visible { outline: 1px solid var(--sand); outline-offset: 2px; }

/* ---------- page Projets : la grille de photos ---------- */
.grille-projets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
  padding: clamp(50px, 8vh, 96px) var(--gut) clamp(90px, 14vh, 170px);
  max-width: 1500px;
  margin: 0 auto;
}
.vignette { opacity: 0; transform: translateY(22px); }
.vignette[hidden] { display: none; }
.vignette__lien {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--shale);
}
.vignette__image {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1s var(--ease);
}
.vignette__lien:hover .vignette__image { transform: scale(1.06); }

/* le titre n'apparaît qu'au survol : la photo seule ouvre le film */
.vignette__voile {
  position: absolute;
  inset: 0;
  background: #0b0b09;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.vignette__lien:hover .vignette__voile { opacity: .62; }
.vignette__titre {
  position: absolute;
  inset: auto 0 0;
  padding: 0 24px 26px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  color: #f5f5f2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.vignette__lien:hover .vignette__titre { opacity: 1; transform: translateY(0); }
.vignette__lien:focus-visible .vignette__voile { opacity: .62; }
.vignette__lien:focus-visible .vignette__titre { opacity: 1; transform: translateY(0); }

.vignette__attente {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--bone);
}

/* ---------- page d'un film ---------- */
.fiche {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--gut) clamp(80px, 12vh, 150px);
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  justify-items: center;
  text-align: center;
}
.fiche__retour {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color .35s var(--ease);
}
.fiche__retour:hover { color: var(--white); }

.fiche__tete {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.fiche__tete h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 20ch;
}
.fiche__legende {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
}
.fiche__texte {
  font-size: 16px;
  line-height: 1.85;
  color: var(--bone);
  max-width: 58ch;
}

/* photos : petites, en grille de trois, au-dessus du lecteur */
.fiche__photos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
}
.fiche__photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--shale);
}
.fiche__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .9s var(--ease);
}
.fiche__photo:hover img { transform: scale(1.06); }

.fiche__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--shale);
}
.fiche__video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* générique : poste en petites capitales, nom à la suite */
.fiche__credits {
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bone);
}
.fiche__credits span {
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .55;
  margin-right: 10px;
}

.fiche__suite {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: clamp(20px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--hair);
  width: 100%;
}
.fiche__suite span {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
}
.fiche__suite a {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  transition: color .35s var(--ease);
}
.fiche__suite a:hover { color: var(--accent-line); }

@media (max-width: 760px) {
  .grille-projets { grid-template-columns: 1fr; }
  .fiche__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vignette__titre { opacity: 1; transform: none; }
  .vignette__voile { opacity: .45; }
}

.preview {
  position: fixed;
  right: 40px;
  bottom: 96px;
  width: 300px;
  z-index: 700;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.preview.is-on { opacity: 1; transform: translateY(0); }
.preview__frame {
  aspect-ratio: 2.39 / 1;   /* anamorphic scope */
  background: var(--shale);
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.preview__tone {
  position: absolute;
  inset: 0;
  background: var(--frame-tone, #1b1b1b);
  transform: scale(1.06);
  animation: drift 7s ease-in-out infinite alternate;
}
.preview__thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
}
.preview__rec {
  position: absolute;
  top: 10px; left: 10px;
  width: 6px; height: 6px;
  background: var(--red);
  animation: tally 1.6s steps(1, end) infinite;
}
.preview__cross {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  opacity: .5;
  background:
    linear-gradient(var(--white), var(--white)) center/1px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) center/100% 1px no-repeat;
}
.preview__slate {
  position: absolute;
  left: 10px; bottom: 8px;
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: .04em;
  color: var(--white);
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(-1.5%, 0, 0); }
  to   { transform: scale(1.14) translate3d(1.5%, -1.5%, 0); }
}
.preview__tc {
  display: block;
  margin-top: 8px;
  font-family: var(--tech);
  font-size: 10px;
  color: var(--bone);
}


/* ---------- portrait du studio ---------- */
.portrait {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(60px, 10vh, 130px) var(--gut);
  align-items: start;
}
.portrait__photo { margin: 0; position: relative; }
.portrait__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--hair);
  filter: grayscale(.3) contrast(1.05);
  transition: filter .8s var(--ease);
}
.portrait__photo:hover img { filter: grayscale(0); }
.portrait__photo figcaption {
  margin-top: 12px;
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
}
.portrait__photo.is-vide img { display: none; }
.portrait__photo.is-vide::before {
  content: attr(data-vide);
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--hair);
  background: var(--shale);
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
  text-align: center;
  padding: 20px;
}

.portrait__texte h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: clamp(20px, 3vw, 30px);
  max-width: 20ch;
}
.portrait__texte p {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
}
.portrait__texte p + p { margin-top: 16px; }

.portrait__reperes {
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--hair);
}
.portrait__reperes li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  line-height: 1.6;
}
.portrait__reperes span {
  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone);
  padding-top: 3px;
}

/* ---------- équipe ---------- */
.crew { padding: clamp(60px, 9vh, 120px) var(--gut); }
.crew__intro {
  max-width: 62ch;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.crew__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--hair);
}
.crew__list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 12px;
}
.crew__list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-line);
  flex: none;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.crew__list li:nth-child(5n + 2)::before { background: var(--moss); }
.crew__list li:nth-child(5n + 3)::before { background: var(--sand); }
.crew__list li:nth-child(5n + 4)::before { background: var(--slate-lit); }
.crew__list li:nth-child(5n + 5)::before { background: var(--crimson); }
.crew__list li:hover::before { transform: scale(2.2) rotate(45deg); }
.crew__list li { transition: color .4s var(--ease); }
.crew__list li:hover { color: var(--sand); }

/* ---------- lien « voir tout » ---------- */
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 56px);
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-line);
  transition: color .35s var(--ease), gap .35s var(--ease);
}
.more::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-line);
  transition: transform .4s var(--ease);
}
.more:hover { color: var(--sand); }
.more:hover::after { transform: translateX(8px); }

/* ---------- coordonnées ---------- */
.contact__grid {
  margin-top: clamp(40px, 6vw, 70px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  width: 100%;
  border-top: 1px solid var(--hair);
  padding-top: clamp(28px, 4vw, 44px);
}
.contact__grid h3 {
  font-size: 12px;
  font-weight: 400;
  color: var(--bone);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact__grid h3::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-line);
}
.contact__grid p { font-size: 15px; line-height: 1.7; }
.contact__grid a { border-bottom: 1px solid var(--hair); transition: border-color .35s var(--ease); }
.contact__grid a:hover { border-color: var(--sand); color: var(--sand); }

@media (max-width: 860px) {
  .portrait { grid-template-columns: 1fr; }
  .portrait__photo img, .portrait__photo.is-vide::before { aspect-ratio: 3 / 2; }
  .portrait__reperes li { grid-template-columns: 1fr; gap: 4px; }
}


/* ---------- principes ---------- */
.principes { padding: clamp(60px, 9vh, 120px) var(--gut); }
.principes__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--hair);
}
.principes__liste li {
  padding: 28px 28px 34px 0;
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  position: relative;
  transition: transform .6s var(--ease);
}
.principes__liste li::after {
  content: '';
  position: absolute;
  inset: 0 -12px;
  background: var(--accent-line);
  opacity: 0;
  z-index: -1;
  transition: opacity .6s var(--ease);
}
.principes__liste li:hover { transform: translateY(-3px); }
.principes__liste li:hover::after { opacity: .07; }
.principes__liste li:last-child { border-right: 0; }
.principes__liste li::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.principes__liste li:hover::before { transform: scaleX(1); }
.principes__liste h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 12px;
}
.principes__liste p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone);
  max-width: 36ch;
}

/* ---------- zone d'intervention ---------- */
.zone { padding: clamp(60px, 9vh, 120px) var(--gut); }
.zone__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.zone__texte h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 18ch;
}
.zone__texte p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
  max-width: 54ch;
}
.zone__villes {
  margin-top: 26px;
  border-top: 1px solid var(--hair);
}
.zone__villes li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.zone__villes li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-line);
  flex: none;
  transition: transform .5s var(--ease);
}
.zone__villes li:nth-child(6n + 2)::before { background: var(--moss); }
.zone__villes li:nth-child(6n + 3)::before { background: var(--sand); }
.zone__villes li:nth-child(6n + 4)::before { background: var(--slate-lit); }
.zone__villes li:nth-child(6n + 5)::before { background: var(--crimson); }
.zone__villes li:nth-child(6n + 6)::before { background: var(--meadow-lit); }
.zone__villes li:hover::before { transform: scale(2) rotate(45deg); }

.carte { width: 100%; height: auto; overflow: visible; }
.carte__terre {
  fill: rgba(12, 96, 56, .12);
  stroke: rgba(245, 245, 242, .45);
  stroke-width: 1;
  stroke-linejoin: round;
}
.carte__ile {
  fill: rgba(12, 96, 56, .1);
  stroke: rgba(245, 245, 242, .3);
  stroke-width: 1;
}
.carte__ville rect { fill: var(--moss); }
.carte__ville text {
  font-family: var(--tech);
  font-size: 15px;
  fill: var(--bone);
}
.carte__base rect { fill: var(--sand); }
.carte__base text {
  font-family: var(--tech);
  font-size: 15px;
  fill: var(--sand);
}
.carte__onde {
  fill: none;
  stroke: var(--sand);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: onde 4s ease-out infinite;
}
.carte__onde--2 { animation-delay: 2s; }
@keyframes onde {
  0%   { opacity: .7; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(2.6); }
}

/* ---------- bandeau d'appel ---------- */
.bandeau-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(50px, 8vh, 100px) var(--gut);
  border-top: 1px solid var(--hair);
}
.bandeau-cta h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.05;
}
.bandeau-cta__texte { display: grid; gap: 16px; }
.bandeau-cta__texte p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
  max-width: 44ch;
}
.bandeau-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.bandeau-cta__mail {
  font-family: var(--tech);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--bone);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--edge);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.bandeau-cta__mail:hover { color: var(--white); border-color: var(--white); }

@media (max-width: 860px) {
  .zone__grid { grid-template-columns: 1fr; }
  .principes__liste li { border-right: 0; padding-right: 0; }
}

/* ---------- fiche d'un film ---------- */
.fiche__loading {
  padding: clamp(130px, 20vh, 220px) var(--gut);
  color: var(--bone);
  font-size: 15px;
}
.fiche__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color .35s var(--ease), gap .35s var(--ease);
}
.fiche__back::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--accent-line);
  transform: scaleX(.7);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.fiche__back:hover { color: var(--sand); }
.fiche__back:hover::before { transform: scaleX(1); }

.fiche__meta {
  font-family: var(--tech);
  font-size: 12px;
  color: var(--bone);
  margin-top: 18px;
}

.fiche__body { padding: clamp(40px, 6vw, 72px) var(--gut) clamp(60px, 9vh, 110px); }
.fiche__video {
  aspect-ratio: 16 / 9;
  background: var(--shale);
  border: 1px solid var(--hair);
  max-width: 1100px;
}
.fiche__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.fiche__text {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--bone);
}

.fiche__next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding: clamp(28px, 4vw, 44px) var(--gut);
  border-top: 1px solid var(--hair);
}
.fiche__next span {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bone);
}
.fiche__next a {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.6rem, 5vw, 3.4rem);
  line-height: 1.1;
  transition: color .4s var(--ease);
}
.fiche__next a:hover { color: var(--sand); }

/* la section entière n'existe pas quand le projet n'a pas de photo */
.photos {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--hair);
  padding-top: clamp(24px, 3vw, 36px);
}
.photos__titre {
  font-family: var(--tech);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-top: clamp(20px, 2.6vw, 30px);
}
.gallery__item {
  margin: 0;
  border: 1px solid var(--hair);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--shale);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.25);
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); filter: grayscale(0); }


/* ---------- formulaire de contact ---------- */
.form {
  width: 100%;
  max-width: 820px;
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 26px);
}
.champ { display: grid; gap: 9px; }
.champ > span {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bone);
}
.champ input,
.champ textarea {
  font: inherit;
  font-size: 15px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color .4s var(--ease);
}
.champ textarea { resize: vertical; line-height: 1.6; }
.champ input::placeholder,
.champ textarea::placeholder { color: var(--bone); opacity: .5; }
.champ input:hover,
.champ textarea:hover { border-color: rgba(245, 245, 242, .4); }
.champ input:focus,
.champ textarea:focus {
  outline: 0;
  border-color: var(--accent-line);
}

.form__types {
  border: 0;
  border-top: 1px solid var(--hair);
  padding: 22px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form__types legend {
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0 0 16px;
  float: left;
  width: 100%;
}
.choix {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--edge);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.choix input {
  appearance: none;
  width: 9px; height: 9px;
  margin: 0;
  border: 1px solid var(--edge);
  background: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.choix:hover { border-color: rgba(245, 245, 242, .45); }
.choix:has(input:checked) { border-color: var(--accent-line); color: var(--sand); }
.choix input:checked { background: var(--accent-line); border-color: var(--accent-line); }
.choix input:focus-visible { outline: 1px solid var(--sand); outline-offset: 3px; }

.form button[type="submit"] { justify-self: start; }

.form__status {
  font-family: var(--tech);
  font-size: 12px;
  line-height: 1.6;
  color: var(--sand);
  min-height: 1em;
}
.form__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone);
  max-width: 62ch;
}
.form__note a { border-bottom: 1px solid var(--hair); }
.form__note a:hover { color: var(--sand); border-color: var(--sand); }

@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact {
  padding: clamp(90px, 16vh, 210px) var(--gut);
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(36px, 6vw, 68px);
}
.contact__head {
  font-family: var(--display);
  font-weight: 200;
  font-style: normal;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.contact__head em { font-style: italic; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 42px;
  border: 1px solid var(--edge);
  font-size: 15px;
  position: relative;
  overflow: hidden;
}
.bouton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--meadow);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.bouton:hover::before { transform: translateY(0); }
.bouton span { position: relative; z-index: 1; }

.contact__details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  font-family: var(--tech);
  font-size: 12px;
  color: var(--bone);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: clamp(40px, 6vw, 70px) var(--gut) 28px;
}
.footer__logo {
  display: block;
  width: auto;
  height: 52px;
  margin-bottom: 22px;
  opacity: .88;
  transition: opacity .4s var(--ease);
}
.footer__brand:hover .footer__logo { opacity: 1; }
.footer__mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.footer__brand p { font-size: 14px; color: var(--bone); max-width: 34ch; line-height: 1.7; }
.footer__social {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 24px;
  margin-top: 20px;
  font-size: 14px;
}
.footer__social a { color: var(--bone); transition: color .35s var(--ease); }
.footer__social a:hover { color: var(--white); }

.footer__base {
  border-top: 1px solid var(--hair);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
}

/* ---------- classic footer ---------- */
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.footer__col h3 {
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; font-size: 14px; }
.footer__col a, .footer__col address {
  color: var(--bone);
  font-style: normal;
  line-height: 1.7;
  transition: color .35s var(--ease);
}
.footer__col a:hover { color: var(--white); }
.footer__col address { font-size: 14px; }

.footer__legal {
  border-top: 1px solid var(--hair);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 13px;
}
.footer__legal a {
  color: var(--bone);
  position: relative;
  transition: color .35s var(--ease);
}
.footer__legal a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.footer__legal a:hover { color: var(--white); }
.footer__legal a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- legal pages ---------- */
.page-legal { padding-bottom: 0; }
.page-legal .topbar { mix-blend-mode: normal; opacity: 1; }

.legal-hero {
  padding: clamp(120px, 18vh, 200px) var(--gut) clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--hair);
}
.legal-hero h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.legal-hero p {
  margin-top: 20px;
  max-width: 62ch;
  color: var(--bone);
  font-size: 15px;
  line-height: 1.7;
}
.legal-hero .stamp {
  display: block;
  margin-top: 22px;
  font-family: var(--tech);
  font-size: 11px;
  color: var(--bone);
}

.legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(48px, 8vh, 90px) var(--gut) clamp(70px, 10vh, 130px);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 9px;
  font-size: 13px;
  border-left: 1px solid var(--hair);
  padding-left: 18px;
}
.legal__toc a {
  color: var(--bone);
  transition: color .3s var(--ease), padding-left .4s var(--ease);
}
.legal__toc a:hover { color: var(--white); padding-left: 6px; }

.legal__doc { max-width: 74ch; }
.legal__doc section { padding-bottom: 42px; }
.legal__doc section + section { border-top: 1px solid var(--hair); padding-top: 42px; }
.legal__doc h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.legal__doc h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 26px 0 10px;
}
.legal__doc p, .legal__doc li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
}
.legal__doc p + p { margin-top: 14px; }
.legal__doc ul, .legal__doc ol {
  margin: 14px 0 0;
  display: grid;
  gap: 9px;
  padding-left: 20px;
  list-style: disc;
}
.legal__doc ol { list-style: decimal; }
.legal__doc strong { color: var(--white); font-weight: 500; }
.legal__doc a { color: var(--white); border-bottom: 1px solid var(--hair); }
.legal__doc a:hover { border-color: var(--sand); color: var(--sand); }

.fill {
  color: var(--sand);
  font-style: normal;
  border-bottom: 1px dotted var(--sand);
}

.legal__note {
  margin-top: 40px;
  padding: 20px;
  background: var(--shale);
  border: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone);
}

.legal__form {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--hair);
  font-family: var(--tech);
  font-size: 12px;
  line-height: 1.9;
  color: var(--bone);
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}

/* ---------- reel spine ---------- */
.reel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--reel-h);
  z-index: 780;
  background: var(--black);
  border-top: 1px solid var(--hair);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.reel__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}
.reel__item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--white);
  transition: color .3s var(--ease);
}
.reel__item:hover { color: var(--sand); }
.reel__item small {
  font-family: var(--tech);
  font-size: 10px;
  color: var(--bone);
}
.reel__item:nth-of-type(4n + 2) + .reel__sep { background: var(--sand); }
.reel__item:nth-of-type(4n + 3) + .reel__sep { background: var(--slate-lit); }
.reel__item:nth-of-type(4n + 4) + .reel__sep { background: var(--crimson-lit); }
.reel__sep {
  width: 5px; height: 5px;
  background: var(--moss);
  flex: none;
  transform: rotate(45deg);
}

/* ---------- cookies ---------- */
.cookies {
  position: fixed;
  right: 0;
  bottom: var(--reel-h);
  z-index: 785;
  background: var(--shale);
  border: 1px solid var(--edge);
  border-right: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  line-height: 1.6;
  max-width: min(94vw, 560px);
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.cookies.is-on { opacity: 1; transform: translateY(0); }
.cookies p { color: var(--bone); }
.cookies p { color: var(--bone); }
.cookies p a { color: var(--white); border-bottom: 1px solid var(--edge); }
.cookies p a:hover { border-color: var(--white); }
.cookies__choix {
  display: flex;
  gap: 10px;
  flex: none;
}
/* refuser doit etre aussi simple qu'accepter : meme taille, meme poids */
.cookies__non,
.cookies__oui {
  font: inherit;
  font-size: 12px;
  padding: 9px 16px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--white);
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.cookies__non:hover { border-color: var(--white); }
.cookies__oui { border-color: var(--white); }
.cookies__oui:hover { background: var(--white); color: var(--black); }
.cookies__non:focus-visible,
.cookies__oui:focus-visible { outline: 1px solid var(--sand); outline-offset: 2px; }

/* ---------- reveal base ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; }
  .studio__text { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step { padding-right: 18px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --reel-h: 54px; }
  .tc { display: none; }
  .mark__logo { height: 28px; }
  .leader__logo { height: 30px; }
  .footer__logo { height: 44px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--hair); }
  .step:last-child { border-bottom: 0; }
  .row__link { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .row__title { grid-column: 1 / -1; }
  .menu__meta { display: none; }
  .preview { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .cookies { left: 0; right: 0; max-width: none; border-right: 1px solid var(--hair); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .grain { animation: none; }
  .step, .field { opacity: 1 !important; transform: none !important; }
}
