/* Baptiste Fouré · portfolio
   Direction : galerie sobre sur fond crème. Coverflow de photos au centre de la home,
   nom en très grand en bas, pages projet éditoriales (libellé à gauche, texte à droite, bande noire pour les visuels).
   Tokens issus du design system : crème, encre, gris, citron en accent minimal, Geist et Young Serif. */
:root {
  --bg: #F2EFE8;
  --fg: #121212;
  --muted: #4A4A4A;
  --soft: rgba(18, 18, 18, .64);
  --line: rgba(18, 18, 18, .14);
  --dark: #121212;
  --on-dark: #F2EFE8;
  --on-dark-soft: rgba(242, 239, 232, .6);
  --line-dark: rgba(242, 239, 232, .16);
  --accent: #C3FE3B;
  --erreur: #A3261E;

  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Young Serif", Georgia, "Times New Roman", serif;

  --r-sm: 6px;
  --r-pill: 999px;
  --g: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html:has(.app--home), html:has(.app--home) body { height: 100%; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap {
  padding-left: max(var(--g), env(safe-area-inset-left, 0px));
  padding-right: max(var(--g), env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; z-index: 300; left: 16px; top: -80px;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }
.app { position: relative; }

/* ---------- Petits textes ---------- */
.small {
  margin: 0;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.3;
  text-transform: uppercase;
}
.small--soft { color: var(--soft); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.links li { display: flex; align-items: center; }
.links li + li::before { content: "|"; margin: 0 14px; color: var(--soft); font-weight: 400; }
.links a, .links button {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none; text-transform: uppercase; font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease);
}
.links a:hover, .links button:hover, .links a[aria-current="page"] { background-size: 100% 1px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg);
  font-size: .9375rem; font-weight: 500; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover { background: transparent; color: var(--fg); }
.btn:hover svg { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--fg); }
.btn--line:hover { background: var(--fg); color: var(--bg); }
.btn--light { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn--light:hover { background: transparent; color: var(--on-dark); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* Statut */
.status { display: flex; align-items: center; gap: 8px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--fg); flex: none; }

/* ---------- Curseur ----------
   Un point fin qui s'inverse selon le fond (sombre sur crème, clair sur photo),
   un anneau sur les liens, et une lentille en verre dépoli sur les projets. */
.cursor-dot, .cursor-lens { display: none; }
.has-cursor .cursor-dot, .has-cursor .cursor-lens { display: block; position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform; }
.has-cursor .cursor-dot { z-index: 152; mix-blend-mode: difference; }
.cursor-dot i {
  display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 0 #fff;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, box-shadow .3s, opacity .25s;
}
.cursor-dot.is-link i { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; box-shadow: inset 0 0 0 1px #fff; }
.cursor-dot.is-press i { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor-dot.is-view i, .cursor-dot.is-hidden i { opacity: 0; }
.cursor-lens.is-hidden .cursor-lens__in { opacity: 0; transform: scale(.2); }
.has-cursor .cursor-lens { z-index: 151; }
.cursor-lens__in {
  position: relative; display: grid; place-items: center;
  width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%;
  color: #fff;
  background: rgba(18, 18, 18, .24);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .25), 0 24px 50px -24px rgba(0, 0, 0, .55);
  transform: scale(.2); opacity: 0;
  transition: transform .7s var(--ease), opacity .35s;
}
.cursor-lens.is-on .cursor-lens__in { transform: scale(1); opacity: 1; }
.cursor-lens__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: lens-spin 14s linear infinite; }
.cursor-lens__text { font-family: var(--f-sans); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; fill: currentColor; }
.cursor-lens__arrow { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-45deg) scale(.6); transition: transform .8s var(--ease) .05s; }
.cursor-lens.is-on .cursor-lens__arrow { transform: none; }
@keyframes lens-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cursor-lens__ring { animation: none; } }

/* ---------- Transitions de page ---------- */
.curtain { position: fixed; inset: 0; z-index: 250; pointer-events: none; background: var(--bg); opacity: 0; transition: opacity .45s var(--ease-io); }
.curtain.is-covering { opacity: 1; }
.is-arriving .curtain { opacity: 1; transition: none; }
.is-revealing .curtain { opacity: 0; transition: opacity .6s var(--ease-io); }

@view-transition { navigation: auto; }
::view-transition-group(hero-media) { animation-duration: .9s; animation-timing-function: var(--ease-io); }
::view-transition-old(root) { animation: vt-out .45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Barre du haut ---------- */
.topbar {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding-block: 18px;
}
.topbar__brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.logo { font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.topbar .status { display: none; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.back:hover svg { transform: translateX(-3px); }
@media (min-width: 760px) {
  .topbar { grid-template-columns: 1fr auto 1fr; }
  .topbar .status { display: flex; }
  .topbar .links { justify-self: end; }
}
@media (max-width: 520px) {
  .topbar .links .hide-sm { display: none; }
  /* Sur petit écran, la flèche seule ramène à la galerie : le libellé reste lu par les lecteurs d'écran */
  .topbar__brand { gap: 12px; }
  .back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Barre et index fixes : leur couleur suit le fond (crème ou photo sombre) ---------- */
:root { --ui: var(--fg); }
html[data-tone="dark"] { --ui: var(--on-dark); }
.topbar--fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  color: var(--ui);
  transition: color .5s var(--ease);
}
.topbar--fixed .links li + li::before { color: inherit; opacity: .45; }
/* Sur fond clair, un fondu crème garde la barre lisible au-dessus du texte qui défile */
.topbar--fixed::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, rgba(242, 239, 232, 0) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
html[data-tone="light"]:not([data-slide]) .topbar--fixed::before, html[data-tone="light"][data-slide="foot"] .topbar--fixed::before { opacity: 1; }
.index { transition: color .5s var(--ease), opacity .5s var(--ease); }
html[data-slide="foot"] .index { opacity: 0; pointer-events: none; }
html[data-tone="dark"] .topbar--fixed .status__dot { box-shadow: none; }
.index {
  position: fixed; z-index: 40; display: none;
  right: max(var(--g), env(safe-area-inset-right, 0px));
  top: 50%; transform: translateY(-50%);
  color: var(--ui);
  transition: color .5s var(--ease);
}
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: end; }
.index a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; opacity: .5; transition: opacity .4s; }
.index a span:first-child { font-variant-numeric: tabular-nums; }
.index a::after { content: ""; width: 0; height: 1px; background: currentColor; align-self: center; transition: width .5s var(--ease); }
.index a.is-active { opacity: 1; }
.index a.is-active::after { width: 22px; }
.index a:hover { opacity: 1; }
.index__all { margin-top: 12px; }
.index__all a { opacity: .85; }
@media (min-width: 900px) { .index { display: block; } }

/* ---------- HOME plein écran ---------- */
html:has(.app--home), html:has(.app--home) body { height: auto; }
html:has(.app--home) { scroll-snap-type: y mandatory; }
html.is-piloted:has(.app--home) { scroll-snap-type: none; }
.home-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--bg); }
html:not(.gl-on) .home-gl { display: none; }
.slides { position: relative; z-index: 1; }
.slide {
  position: relative; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; overflow: hidden;
}
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: opacity .6s; }
.gl-on .slide.has-texture .slide__bg { display: none; }
.slide picture { display: contents; }
.slide__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 10, .32) 0%, rgba(10, 10, 10, 0) 26%, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .66) 100%); }
.slide__hit { position: absolute; inset: 0; z-index: 2; }
.slide__content {
  position: relative; z-index: 3; align-self: end;
  display: grid; gap: 16px;
  padding-block: calc(90px + env(safe-area-inset-top, 0px)) clamp(32px, 7vh, 72px);
  pointer-events: none; will-change: transform;
}
.slide__content a, .slide__content button { pointer-events: auto; }
.slide--project { color: var(--on-dark); }
.slide__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.slide__title { margin: 0; font-weight: 800; font-size: clamp(3.2rem, 14.5vw, 13.5rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.slide__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 48px; }
.slide__lead { margin: 0; font-size: clamp(1.15rem, 2.1vw, 1.75rem); line-height: 1.18; letter-spacing: -.01em; max-width: 26ch; }
/* Chorégraphie d'arrivée d'un projet : légende, titre qui sort de son masque, accroche, bouton */
.slide__title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.slide__title .line > span { display: block; }
.js .slide .compo__meta, .js .slide__title .line > span, .js .slide__lead, .js .slide__cta { transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.js .slide.is-current .slide__title .line > span { transition-delay: .12s; }
.js .slide.is-current .slide__lead { transition-delay: .32s; }
.js .slide.is-current .compo__meta { transition-delay: .42s; }
.js .slide.is-current .slide__cta { transition-delay: .52s; }
.js .slide--project:not(.is-current) .compo__meta { opacity: 0; transform: translateY(14px); }
.js .slide--project:not(.is-current) .slide__title .line > span { transform: translateY(104%); }
.js .slide:not(.is-current) .slide__lead, .js .slide:not(.is-current) .slide__cta { opacity: 0; transform: translateY(24px); }
.btn--glass { background: rgba(242, 239, 232, .12); color: var(--on-dark); border-color: rgba(242, 239, 232, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: var(--on-dark); color: var(--dark); }

/* Écran d'ouverture */
.slide--intro .slide__content { gap: 26px; }
.trail { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.trail__item {
  position: absolute; margin: 0;
  width: clamp(104px, 16vw, 270px);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.55);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .45s;
  will-change: transform, opacity;
}
.trail__item--l { width: clamp(150px, 24vw, 400px); }
.trail__item img {
  display: block; width: 100%; aspect-ratio: .8; object-fit: cover;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .85s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .45);
}
.trail__item--l img { aspect-ratio: 1.5; }
.trail__item figcaption { margin-top: 8px; font-size: .6875rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; opacity: 0; transition: opacity .5s .25s; }
.trail__item.is-in { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
.trail__item.is-in img { clip-path: inset(0 0 0 0); }
.trail__item.is-in figcaption { opacity: 1; }
.trail__item.is-out { opacity: 0; transform: translate(-50%, -62%) rotate(var(--r, 0deg)) scale(.9); transition: transform .9s var(--ease), opacity .8s; }
.trail__item.is-out img { clip-path: inset(0 0 100% 0); transition-duration: .8s; }
.trail__hint {
  position: absolute; z-index: 2; left: 50%; top: 34%;
  transform: translateX(-50%); white-space: nowrap;
  transition: opacity .8s;
}
.trail__hint.is-gone { opacity: 0; }
@media (hover: none) { .trail__hint { display: none; } }
.giant {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.4rem, 16.5vw, 12rem);
  line-height: .94;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.giant .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.giant .line > span { display: block; animation: rise 1.2s var(--ease) backwards; }
.giant .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(105%); } }
.intro { display: grid; gap: 24px; align-items: end; }
.intro__side { display: grid; gap: 16px; max-width: 30rem; }
.intro__role { font-family: var(--f-serif); font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.15; margin: 0; }
.intro__text { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.intro__text b { font-weight: 600; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
  .giant { font-size: min(10.6vw, 21vh); }
}
.scroll-hint { display: flex; align-items: center; gap: 12px; }
.scroll-hint i { position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: currentColor; animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.slide--project .scroll-hint i { background: rgba(242, 239, 232, .3); }

/* Écran de fin */
.slide--outro .slide__content { align-self: center; justify-items: center; text-align: center; gap: 26px; }
.slide--outro .slide__content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.career { list-style: none; margin: clamp(20px, 5vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: min(100%, 980px); text-align: left; }
@media (min-width: 760px) { .career { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.career li { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.career b { font-weight: 600; font-size: .9375rem; }
.career li > span:last-child { color: var(--muted); font-size: .875rem; }
.outro__foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Panneau de contact ---------- */
.contact { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: end; }
.contact__backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .3); opacity: 0; transition: opacity .45s; }
.contact.is-open .contact__backdrop { opacity: 1; }
.contact__panel {
  position: relative; width: min(100%, 560px); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--g), 24px);
  padding-right: max(var(--g), env(safe-area-inset-right, 0px));
  transform: translateX(102%);
  transition: transform .75s var(--ease-io);
  display: grid; align-content: start; gap: 20px;
}
.contact.is-open .contact__panel { transform: none; }
.contact__head { display: flex; justify-content: space-between; align-items: center; }
.contact__close { border: 0; background: none; cursor: pointer; padding: 8px 0; }
.contact__title { margin: 24px 0 0; font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
.contact__intro { margin: 0; color: var(--muted); max-width: 38ch; }
.form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.field label span { color: var(--soft); text-transform: none; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--fg);
  padding: 10px 0; min-height: 46px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent;
  transition: border-color .25s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--erreur); }
.field__error { margin: 0; color: var(--erreur); font-size: .8125rem; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 12px 14px; background: var(--accent); }
.form__status.is-err { padding: 12px 14px; border: 1px solid var(--erreur); color: var(--erreur); }
.form__alt { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.form__alt a { color: var(--fg); }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.no-scroll, .no-scroll body { overflow: hidden; }

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

.phero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; color: var(--on-dark); background: var(--dark); }
.phero__media { position: absolute; inset: 0; view-transition-name: hero-media; }
.phero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.phero__media picture, .next__media picture { display: contents; }
.row--spaced { margin-bottom: clamp(36px, 6vw, 80px); }
.section--flush { padding-top: 0; }
.qstage__fig { margin: 0; display: grid; gap: 32px; justify-items: center; }
.qstage__fig blockquote { margin: 0; }
.lost { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 28px; padding-block: 120px 60px; }
.lost .cta__title { text-align: left; }
.phero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; }
.phero.gl-ready .phero__gl { opacity: 1; }
.phero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 10, .32) 0%, rgba(10, 10, 10, 0) 26%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, .7) 100%); }
.phero__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 16px; padding-bottom: clamp(30px, 7vh, 72px); will-change: transform, opacity; }
.phero__title { margin: 0; font-weight: 800; font-size: clamp(3.2rem, 14.5vw, 13.5rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.phero__title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.phero__title .line > span { display: block; animation: rise 1.2s var(--ease) .2s backwards; }
.phero__lead { margin: 0; font-size: clamp(1.15rem, 2.1vw, 1.75rem); line-height: 1.18; letter-spacing: -.01em; max-width: 26ch; animation: fade-up 1.1s var(--ease) .45s backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

/* Mots révélés */
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-words] .w > span { display: inline-block; transition: transform 1s var(--ease); }
[data-words].is-pre .w > span { transform: translateY(108%); }
[data-words].is-pre.is-in .w > span { transform: none; }

.section { padding-block: clamp(80px, 12vw, 170px); }
.row { display: grid; gap: 18px; }
@media (min-width: 900px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; } }
.row > * { min-width: 0; }
.statement { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -.03em; max-width: 24ch; font-weight: 500; }
.body { margin: 22px 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px;
  margin: clamp(48px, 7vw, 96px) 0 0; padding-top: 18px; border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { min-width: 0; display: grid; gap: 6px; align-content: start; }
.facts dt { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--soft); }
.facts dd { margin: 0; font-size: .9375rem; line-height: 1.4; }

/* Scène des leviers */
.stage { position: relative; height: calc((var(--n) + .7) * 100svh); background: var(--dark); color: var(--on-dark); }
.stage__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px;
  padding-block: calc(78px + env(safe-area-inset-top, 0px)) calc(22px + env(safe-area-inset-bottom, 0px));
}
.stage__head, .stage__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.stage__head .small, .stage__foot .small { color: var(--on-dark-soft); }
.stage__body { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; min-height: 0; }
.stage__screen { min-height: 0; display: grid; order: -1; }
.stage__shot { position: relative; overflow: hidden; border-radius: 8px; min-height: 0; height: 100%; background: #1E1E1E; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.stage__shot img { width: 100%; height: auto; will-change: transform; }
.stage__levers { list-style: none; margin: 0; padding: 0; display: grid; min-height: 12.5rem; }
.stage__lever { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; opacity: 0; transform: translateY(36px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.stage__lever.is-past { transform: translateY(-36px); }
.stage__lever.is-active { opacity: 1; transform: none; }
.stage__num { font-family: var(--f-serif); font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: 1; color: var(--accent); }
.stage__lever h3 { margin: 0; font-size: clamp(1.6rem, 3.3vw, 3.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.stage__lever p { margin: 0; color: var(--on-dark-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 42ch; }
.stage__bar { flex: 1; height: 1px; background: var(--line-dark); }
.stage__bar span { display: block; height: 100%; background: var(--on-dark); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) {
  .stage__body { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 64px; }
  .stage__levers { order: -1; }
  .stage__screen { height: 100%; order: 0; }
}

/* Téléphones */
.pstage { background: var(--dark); color: var(--on-dark); padding-block: clamp(40px, 8vw, 120px) clamp(90px, 14vw, 200px); overflow: hidden; }
.pstage__head { display: grid; gap: 14px; margin-bottom: clamp(56px, 9vw, 120px); }
@media (min-width: 900px) { .pstage__head { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: end; } }
.pstage__head .small { color: var(--on-dark-soft); }
.pstage__head p:last-child { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; max-width: 26ch; font-weight: 500; }

/* Autres pages */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.duo > * { min-width: 0; }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .duo > :nth-child(2) { margin-top: 140px; } }
.screen { margin: 0; will-change: transform; }
.screen .shot { position: relative; overflow: hidden; height: min(64svh, 640px); border-radius: 8px; background: #DDD9D0; box-shadow: 0 40px 70px -45px rgba(18, 18, 18, .55); }
.screen .shot img { width: 100%; height: auto; will-change: transform; }
.screen figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }

/* Rôle */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { padding: 24px 22px 28px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .step + .step { padding-left: 22px; border-left: 1px solid var(--line); } .step:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (min-width: 1200px) { .step:nth-child(3) { border-left: 1px solid var(--line); padding-left: 22px; } }
.step__num { font-family: var(--f-serif); font-size: 2.4rem; line-height: 1; }
.step h3 { margin: 6px 0 0; font-size: 1.2rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: .975rem; }
.context { margin: 24px 0 0; color: var(--soft); font-size: .9375rem; max-width: 70ch; }

/* Citation */
.qstage { background: var(--dark); color: var(--on-dark); min-height: 130svh; display: grid; align-content: center; justify-items: center; gap: 32px; padding-block: 120px; text-align: center; }
.qstage__text { margin: 0; font-family: var(--f-serif); font-size: clamp(1.8rem, 4.6vw, 4.2rem); line-height: 1.12; max-width: 22ch; }
.qstage__text .w { display: inline; }
.qstage__text .w > span { opacity: .16; transition: opacity .45s; }
.qstage__text .w > span.is-lit { opacity: 1; }
.qstage .small { color: var(--on-dark-soft); }

/* À retenir */
.keys { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.keys li { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: clamp(1.35rem, 2.8vw, 2.4rem); letter-spacing: -.025em; line-height: 1.1; display: flex; gap: 16px; align-items: baseline; font-weight: 500; }
.keys li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--fg); flex: none; transform: translateY(-.18em); }

/* Appel à l'action */
.cta { display: grid; justify-items: center; gap: 26px; text-align: center; }
.cta__title { margin: 0; font-weight: 800; font-size: clamp(2.4rem, 7.6vw, 7rem); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; max-width: 14ch; }
.cta__text { margin: 0; color: var(--muted); max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }

/* Projet suivant plein écran */
.next { --pull: 0; --vis: 0; position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.next__link { position: absolute; inset: 0; display: grid; align-content: end; text-decoration: none; color: inherit; }
.next__media { position: absolute; inset: 0; overflow: hidden; }
.next__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--vis) * .12 - var(--pull) * .06)); filter: brightness(calc(.5 + var(--pull) * .4)); }
.next__content { position: relative; z-index: 2; display: grid; gap: 16px; padding-bottom: clamp(96px, 16vh, 150px); }
.next__title { margin: 0; font-weight: 800; font-size: clamp(3rem, 13vw, 12rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.next__bar { width: min(320px, 70%); height: 1px; background: var(--line-dark); }
.next__bar span { display: block; height: 100%; background: var(--on-dark); transform-origin: left; transform: scaleX(var(--pull)); }
.next__hint .touch { display: none; }
@media (hover: none) { .next__hint .mouse { display: none; } .next__hint .touch { display: inline; } }
.site-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.site-foot .small--soft { color: var(--on-dark-soft); }

/* Bouton flottant */
.fab {
  position: fixed; z-index: 30;
  right: max(var(--g), env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(160%);
  transition: transform .7s var(--ease), background-color .3s, color .3s;
}
.fab.is-visible { transform: none; }
.fab, .fab:hover { background: var(--accent); color: var(--fg); border-color: var(--fg); }
.fab:hover { background: var(--fg); color: var(--accent); }

/* Apparitions (léger décalage) */
[data-reveal] { transition: transform 1.1s var(--ease), clip-path 1.2s var(--ease); }
[data-reveal].is-pre { transform: translateY(36px); }
[data-reveal].is-pre.is-in { transform: none; }

/* ---------- Chiffres clés : un chiffre géant en contour, la phrase posée par-dessus ---------- */
.kpis { margin-top: clamp(80px, 11vw, 160px); display: grid; gap: clamp(8px, 2vw, 20px); }
.kpis > .small { display: flex; align-items: center; gap: 14px; }
.kpis > .small::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kpis__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(30px, 3vw, 44px); overflow: hidden; overflow-x: clip; overflow-y: visible; }
.kpi { position: relative; display: grid; align-items: end; justify-items: start; min-width: 0; }
.kpi:nth-child(even) { justify-items: end; text-align: right; }
.kpi__big {
  grid-area: 1 / 1; display: block; width: max-content; max-width: 100%;
  font-family: var(--f-serif); font-weight: 400; line-height: .84; letter-spacing: -.045em; white-space: nowrap;
  font-size: min(16.5rem, 46vw, calc(70vw / (var(--len, 4) * .62)));
  color: transparent; -webkit-text-stroke: 1.2px rgba(18, 18, 18, .3);
  user-select: none; will-change: transform;
  font-variant-numeric: lining-nums;
}
@supports not (-webkit-text-stroke: 1px black) { .kpi__big { color: rgba(18, 18, 18, .07); } }
.kpi__text {
  grid-area: 1 / 1; position: relative; z-index: 1; margin: 0 0 .5em;
  max-width: 24ch; font-size: clamp(1.15rem, 2.1vw, 1.8rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 500;
  padding-left: clamp(28px, 11vw, 190px);
}
.kpi:nth-child(even) .kpi__text { padding-left: 0; padding-right: clamp(28px, 11vw, 190px); }
.kpi__text b { font-weight: 800; letter-spacing: -.03em; }
.kpi__text::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--fg); }
.kpi:nth-child(even) .kpi__text::before { margin-left: auto; }
.kpi[data-reveal].is-pre:not(.is-in) { transform: translateY(60px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Réalisation : leviers et site en ligne ---------- */
.llist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.llist__item { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 4px 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.llist__num { font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.5; }
.llist__item h3 { margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.llist__item p { grid-column: 2; margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
@media (min-width: 1100px) {
  .llist__item { grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 28px; }
  .llist__item p { grid-column: 3; margin: 0; }
}
.link-arrow--light { color: var(--on-dark); }
.shot.shot--static, .screen .shot.shot--static { height: auto; aspect-ratio: auto; }

/* ---------- Appareils : téléphone, ordinateur portable, fenêtre de navigateur ---------- */
.device { position: relative; width: var(--dw, min(320px, 72vw)); aspect-ratio: 9 / 19.3; will-change: transform; transform-origin: 50% 70%; container-type: inline-size; }
.device__float { position: absolute; inset: 0; animation: device-float 6s ease-in-out infinite; }
@keyframes device-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.device__frame {
  position: absolute; inset: 0; padding: 3.4%;
  border-radius: 15% / 7.1%;
  background: linear-gradient(150deg, #3a3a3a 0%, #121212 22%, #0a0a0a 60%, #2a2a2a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 4px #050505, 0 60px 90px -50px rgba(0, 0, 0, .9), 0 30px 40px -30px rgba(0, 0, 0, .6);
}
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12.4% / 5.9%; background: #151515; isolation: isolate; }
.device__island { position: absolute; z-index: 5; top: 2.2%; left: 50%; width: 31%; height: 3.3%; transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.device__glare { position: absolute; z-index: 4; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05) 100%); }
.device__page { position: absolute; inset: 5.8% 0 0; overflow: hidden; will-change: transform; background: #fff; }
.device__status { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 5.8%; display: flex; align-items: center; justify-content: space-between; padding: 1.2% 8.5% 0 10.5%; background: #fff; color: #121212; font-family: var(--f-sans); font-weight: 600; font-size: 4.3cqw; letter-spacing: -.01em; }
.device__status svg { width: 19%; height: auto; }
.device__home { position: absolute; z-index: 3; left: 50%; bottom: 1.1%; width: 36%; height: 4px; height: 1.6cqw; transform: translateX(-50%); border-radius: 999px; background: rgba(18, 18, 18, .55); }
.device__page img { display: block; width: 100%; height: auto; will-change: transform; }
.device__page--static img { height: 100%; object-fit: cover; object-position: top; }
.device__btn { position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(90deg, #2a2a2a, #0d0d0d); }
.device__btn--a { left: -2px; top: 17%; height: 5%; }
.device__btn--b { left: -2px; top: 25%; height: 8%; }
.device__btn--c { right: -2px; top: 22%; height: 12%; }
.device__shadow { position: absolute; left: 12%; right: 12%; bottom: -7%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(6px); }

.bwin { margin: 0; min-width: 0; }
.bwin__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px 10px 0 0; background: #1b1b1b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bwin__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); flex: none; }
.bwin__url { margin-left: 10px; flex: 1; min-width: 0; max-width: 360px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bwin .shot { border-radius: 0 0 10px 10px; box-shadow: 0 50px 80px -50px rgba(18, 18, 18, .6); }
.bwin figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }

.laptop { position: relative; min-width: 0; }
.laptop__lid { padding: 1.7% 1.7% 0; border-radius: 16px 16px 0 0; background: #0c0c0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px 6px 0 0; background: #1E1E1E; }
.laptop__screen img { width: 100%; height: auto; display: block; will-change: transform; }
.laptop__base { position: relative; height: clamp(10px, 1.4vw, 18px); margin: 0 -6.5%; border-radius: 2px 2px 16px 16px / 2px 2px 12px 12px; background: linear-gradient(180deg, #d8d3c9 0%, #a8a399 60%, #7d796f 100%); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .8); }
.laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .18); }

/* Réalisation : l'ordinateur, puis le téléphone qui arrive par-dessus */
.wdevices { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 13% 6% 0; perspective: 1600px; }
.wdevices .device { position: absolute; right: 0; bottom: 0; --dw: min(23%, 260px); }
.wdevices__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: 1120px; margin: clamp(48px, 6vw, 80px) auto 0; color: var(--on-dark-soft); }
@media (max-width: 700px) { .wdevices { padding: 0 6% 22% 0; } .wdevices .device { --dw: 36%; } }

/* Étude de cas : la scène mobile (le téléphone arrive, puis parcourt les pages) */
.mscene { position: relative; height: 460svh; background: var(--dark); color: var(--on-dark); }
.mscene__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "text" "stage" "cap"; gap: 12px;
  padding-block: calc(72px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-bottom, 0px));
}
.mscene__text { grid-area: text; display: grid; gap: 12px; align-content: start; }
.mscene__text .small { color: var(--on-dark-soft); }
.mscene__title { margin: 0; font-size: clamp(1.45rem, 2.9vw, 2.9rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; max-width: 17ch; }
.mscene__body { margin: 0; color: var(--on-dark-soft); max-width: 44ch; }
.mscene__steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line-dark); }
@media (max-width: 899px) { .mscene__body, .mscene__steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.mscene__steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--line-dark); opacity: .36; transition: opacity .5s var(--ease); }
.mscene__steps li.is-active { opacity: 1; }
.mscene__steps span { font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.3; }
.mscene__steps li.is-active span { color: var(--accent); }
.mscene__steps b { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.mscene__steps p { grid-column: 2; margin: 0; max-width: 40ch; color: var(--on-dark-soft); font-size: .9375rem; line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s, margin .7s var(--ease); }
.mscene__steps li.is-active p { max-height: 7em; opacity: 1; margin-top: 6px; }
.mscene__stage { grid-area: stage; position: relative; min-height: 0; display: grid; place-items: center; container-type: size; perspective: 1400px; }
.mscene__stage .device { --dw: min(280px, 56vw, calc((100svh - 330px) * .466)); --dw: min(320px, 100cqw * .7, 100cqh * .466); }
.mscene__glow { position: absolute; left: 50%; top: 52%; width: min(90vw, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(195, 254, 59, .14), rgba(195, 254, 59, .04) 55%, rgba(195, 254, 59, 0)); pointer-events: none; }
.mscene__cap { grid-area: cap; margin: 0; display: grid; align-content: start; justify-items: center; text-align: center; gap: 3px; height: 6.3rem; }
.mscene__capnum { color: var(--accent); }
.mscene__cap b { font-weight: 600; font-size: 1rem; }
.mscene__capdesc { max-width: 38ch; color: var(--on-dark-soft); font-size: .8125rem; line-height: 1.4; }
.mscene__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-dark); }
.mscene__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.device__page + .device__page { transform: translateX(100%); box-shadow: -22px 0 40px -14px rgba(0, 0, 0, .55); }
@media (min-width: 900px) {
  .mscene__sticky { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "text stage" "text cap"; align-items: center; column-gap: clamp(40px, 6vw, 96px); row-gap: 18px; padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .mscene__stage { align-self: stretch; }
  .mscene__stage .device { --dw: min(330px, calc((100svh - 190px) * .466)); --dw: min(340px, 100cqw * .7, 100cqh * .466); }
  .mscene__cap { height: auto; grid-auto-flow: column; align-items: baseline; gap: 12px; }
  .mscene__capdesc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .device__float { animation: none; } }

/* ---------- Galerie de tous les projets ---------- */
.works-head { display: grid; gap: 18px; padding-block: calc(112px + env(safe-area-inset-top, 0px)) clamp(36px, 5vw, 64px); }
.works-title { margin: 0; font-weight: 800; font-size: clamp(3.2rem, 13vw, 12rem); line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.works-title .line { display: block; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.works-title .line > span { display: block; animation: rise 1.2s var(--ease) .1s backwards; }
.works-intro { display: grid; gap: 24px; }
@media (min-width: 900px) { .works-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 40px; } .chips { justify-content: flex-end; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; cursor: pointer;
  font-size: .875rem; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip span { font-variant-numeric: tabular-nums; color: var(--soft); transition: color .3s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-pressed="true"] span { color: var(--accent); }
.wall { list-style: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 24px; padding-block: 16px clamp(90px, 12vw, 160px); }
@media (min-width: 640px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .wall { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 80px 32px; }
  .tile { grid-column: span var(--span, 6); }
  .tile.is-offset { margin-top: 110px; }
}
.tile { min-width: 0; }
.tile__link { display: grid; gap: 16px; text-decoration: none; }
.tile__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #DDD9D0; }
.tile--p .tile__media { aspect-ratio: 4 / 5; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.06); transition: filter .9s var(--ease), transform 1.3s var(--ease); }
.tile__link:hover .tile__media img, .tile__link:focus-visible .tile__media img { filter: none; transform: scale(1); }
@media (hover: none) { .tile__media img { filter: none; transform: none; } }
.tile__badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--fg); box-shadow: 0 0 0 1px rgba(18, 18, 18, .12); }
.tile__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.tile__num { grid-row: span 2; font-variant-numeric: tabular-nums; }
.tile__name { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; transition: transform .7s var(--ease); }
.tile__cat { grid-column: 2; margin-top: 6px; }
.tile__lead { margin: 0; color: var(--muted); font-size: .975rem; max-width: 46ch; }
@media (hover: hover) { .tile__link:hover .tile__name { transform: translateX(8px); } }
.site-foot--plain { position: static; color: var(--fg); border-top: 1px solid var(--line); }
.site-foot--plain .small--soft { color: var(--soft); }

/* ---------- Composition façon générique de film : titre en haut, informations en bas ---------- */
.compo {
  display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
  min-height: 100svh;
  padding-top: calc(92px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
}
.slide__content.compo { align-self: stretch; padding-top: calc(92px + env(safe-area-inset-top, 0px)); padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); gap: 20px; }
.compo__top { display: grid; gap: 16px; align-content: start; justify-items: start; }
.compo__bottom { grid-row: 3; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.compo__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; max-width: 100%; }
.compo__meta div { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.compo__meta dt, .compo__meta dd { margin: 0; font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.35; }
.compo__meta dt { font-weight: 500; opacity: .58; white-space: nowrap; }
.compo__meta dd { font-weight: 600; }
.compo__ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.compo__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: clamp(1.1rem, 1.7vw, 1.55rem); font-weight: 800; letter-spacing: -.025em; line-height: 1;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.compo__cta svg { width: .85em; height: .85em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.compo__cta:hover svg { transform: translateX(4px); }
@media (max-width: 700px) {
  .compo__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; width: 100%; }
  .compo__meta div { display: grid; gap: 2px; }
  .compo__meta dt { white-space: normal; }
}
.slide--intro .compo__top { gap: 14px; }
.slide--intro .intro__role { margin: 0; }
.slide__lead, .phero__lead { max-width: 30ch; }
.slide__scrim, .phero__scrim { background: linear-gradient(180deg, rgba(10, 10, 10, .52) 0%, rgba(10, 10, 10, .14) 34%, rgba(10, 10, 10, 0) 52%, rgba(10, 10, 10, .62) 100%); }
.phero__content.compo { top: 0; bottom: 0; padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.next .compo { position: absolute; inset: 0; z-index: 2; color: var(--on-dark); }
.next__link { display: block; }

/* Bord rugueux et granuleux des grands titres */
.rough, .mfoot__word { filter: url(#rough); }
@media (max-width: 700px) { .rough, .mfoot__word { filter: url(#rough-sm); } }
.fx { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Grain de film léger sur tout le site */
.grain {
  position: fixed; inset: -60%; z-index: 140; pointer-events: none;
  background: url(../img/grain.webp) repeat; background-size: 180px;
  opacity: .11; mix-blend-mode: overlay;
  animation: grain-shift .8s steps(5) infinite;
}
@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-6%, 4%, 0); }
  40% { transform: translate3d(4%, -5%, 0); }
  60% { transform: translate3d(-3%, 6%, 0); }
  80% { transform: translate3d(5%, 2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ---------- Maxi footer ---------- */
.mfoot { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); color: var(--fg); padding-top: clamp(80px, 10vw, 130px); overflow: hidden; }
.mfoot.slide { min-height: 100svh; }
.mfoot__top { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .mfoot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; } }
.mfoot__title { margin: 0; font-weight: 800; font-size: clamp(2.3rem, 4.5vw, 4.6rem); line-height: .96; letter-spacing: -.05em; max-width: 13ch; }
.nowrap { white-space: nowrap; }
.mfoot__pill {
  display: inline-flex; align-items: center; gap: .55em; vertical-align: middle;
  margin-left: .12em; padding: .45em .8em .45em .5em; border: 0; border-radius: 8px;
  background: #E7E5E0; color: var(--fg); cursor: pointer;
  font: inherit; font-size: .32em; font-weight: 600; letter-spacing: -.01em; line-height: 1;
  transform: translateY(-.2em); transition: background-color .3s;
}
.mfoot__pill:hover { background: var(--accent); }
.mfoot__dot { width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--fg); flex: none; }
.mfoot__pill:hover .mfoot__dot { background: var(--fg); }
.mfoot__sub { margin: 20px 0 0; color: var(--muted); max-width: 44ch; }
.mfoot__alt { margin: 24px 0 0; display: grid; gap: 4px; justify-items: start; }
.mfoot__alt a { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.mfoot__alt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfoot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; align-content: start; }
@media (min-width: 760px) { .mfoot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tag-label { display: inline-block; margin: 0 0 14px; padding: 3px 9px; border: 1px solid var(--fg); border-radius: var(--r-pill); font-size: .625rem; font-weight: 600; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.mfoot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mfoot__cols a, .mfoot__cols button {
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
  font: inherit; font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease);
}
.mfoot__cols a:hover, .mfoot__cols button:hover { background-size: 100% 1px; }
.mfoot__career li { display: grid; gap: 2px; margin-bottom: 8px; }
.mfoot__career b { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.mfoot__career span { font-size: .8125rem; color: var(--muted); }
.clock { position: relative; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 50%; background: #E7E5E0; box-shadow: inset 0 0 0 1px var(--line); }
.clock i { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--fg); transform-origin: 50% 100%; }
.clock__h { height: 13px; transform: rotate(var(--h, 0deg)); }
.clock__m { height: 20px; width: 1.5px; transform: rotate(var(--m, 0deg)); }
.clock::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--fg); }
.mfoot__city { margin: 0 0 2px; font-weight: 600; }
.mfoot__word {
  margin: clamp(56px, 8vw, 110px) 0 0;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px));
  display: flex; align-items: flex-start;
  font-weight: 800; font-size: 11.6vw; line-height: .8; letter-spacing: -.06em; text-transform: uppercase; white-space: nowrap;
}
.mfoot__word sup { font-size: .15em; line-height: 1; margin-left: .12em; font-weight: 600; letter-spacing: 0; }
@media (max-width: 700px) {
  .mfoot__word { white-space: normal; font-size: 19.5vw; line-height: .84; }
  .mfoot__name { display: block; }
}
.mfoot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; margin-top: 22px; padding-block: 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.mfoot__bar a { text-decoration: none; }
.mfoot__bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mfoot__next { display: flex; align-items: center; gap: 10px; }
.mfoot__nextbar { display: inline-block; width: 90px; height: 1px; background: var(--line); }
.mfoot__nextbar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(var(--pull, 0)); }
.mfoot__next .touch { display: none; }
@media (hover: none) { .mfoot__next .mouse { display: none; } .mfoot__next .touch { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html:has(.app--home) { scroll-snap-type: y proximity; }
}
