/* ============================================================
   EVERYDAY ROBOTS — feuille de style v2 « l'organisme »
   Encre, crème, un éclair d'acide. Clash Display + Satoshi.
   Le fond respire par section ; la lisibilité crème est sacrée.
   ============================================================ */

/* ---------- Polices (auto-hébergées, licence Fontshare) ---------- */
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../assets/fonts/ClashDisplay-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../assets/fonts/Satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ---------- Variables ---------- */
:root {
  --ink: #0a0a0c;
  --ink-2: #131318;
  --ink-3: #1c1c24;
  /* fond NOIR PROFOND, partout : les particules additives ont besoin
     de cette obscurité pour exister. La couleur ne vit QUE dans elles. */
  --bg: #060607;
  --bg-2: #131318;
  --cream: #f2eee3;
  --cream-55: rgba(242, 238, 227, .55);
  --cream-30: rgba(242, 238, 227, .30);
  --line: rgba(242, 238, 227, .14);
  --acid: #d9ff3f;
  --acid-dim: rgba(217, 255, 63, .55);
  --green: #3f9428;
  --display: 'Clash Display', 'Arial Black', sans-serif;
  --body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

/* Scrollbar discrète */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 99px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--acid-dim); }

/* ---------- Canvas (l'ADN du site, sous le contenu) ---------- */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, footer { position: relative; z-index: 2; }

/* ---------- Préloader : une vraie page composée, pas un écran d'attente.
   Fond crème (le lottie sombre y est bien visible), marque en haut,
   progression architecturée en bas. ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.loader-brand {
  position: absolute; top: 24px; left: var(--pad);
  font-family: var(--display); font-weight: 500; font-size: 17px;
  letter-spacing: .01em;
}
.loader-brand b { font-weight: 700; }
.loader-brand span {
  display: block;
  font-family: var(--body); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(10, 10, 12, .45);
  margin-top: 4px;
}
.loader-inner { display: flex; flex-direction: column; align-items: center; }
.loader-lottie {
  width: clamp(240px, 42vw, 460px);
  aspect-ratio: 800 / 261;
}
.loader-lottie svg { display: block; }
.loader-foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.loader-hint {
  font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(10, 10, 12, .5);
  padding-bottom: 10px;
}
.loader-status {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6vw, 72px); line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline;
}
.loader-status > span {
  display: inline-block; min-width: 1.9ch; text-align: right;
}
.loader-status i {
  font-style: normal; font-size: .32em; font-weight: 700;
  margin-left: 6px; color: rgba(10, 10, 12, .5);
}
.loader-track {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(10, 10, 12, .12);
}
.loader-track i {
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
}
/* filet de sécurité : si le JS plante, le rideau se lève quand même */
@keyframes loader-bail { to { opacity: 0; visibility: hidden; } }
#loader { animation: loader-bail .6s ease 7s forwards; }

/* ---------- Curseur ---------- */
@media (pointer: fine) {
  body { cursor: none; }
  body a, body button, body [data-open-case] { cursor: none; }
}
/* Un point net (transformé, jamais de layout) + une pastille contextuelle
   (« voir » sur les projets, « glisser » sur la galerie). */
.cursor { position: fixed; inset: 0; z-index: 99; pointer-events: none; }
@media (pointer: coarse) { .cursor { display: none; } }
.cursor-dot {
  position: absolute; top: 0; left: 0;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--acid);
  transition: opacity .2s;
}
.cursor-pill {
  position: absolute; top: 0; left: 0;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--acid);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; scale: .4;
  transition: opacity .25s, scale .35s var(--ease-out);
}
.cursor-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
}
.cursor--case .cursor-pill { opacity: 1; scale: 1; }
.cursor--case .cursor-dot { opacity: 0; }

/* ---------- Navigation ---------- */
/* z-index 56 : au-dessus du menu mobile (55), sinon le burger
   devient inatteignable une fois le menu ouvert */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 56;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background-color .4s;
}
.nav--scrolled { background: rgba(8, 8, 10, .88); }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-cat { width: 62px; flex: none; }

/* ---------- Le logo officiel, vivant ----------
   Une vraie <img> (le PNG blanc d'origine) : aucun masque CSS,
   donc visible partout, y compris en ouverture directe file://.
   Les paupières crème se posent sur les yeux pour cligner. ---------- */
.logo-wrap {
  position: relative; display: block;
  width: 100%; aspect-ratio: 500 / 239;
  animation: cat-bob 3.6s ease-in-out infinite alternate;
}
.logo-img { display: block; width: 100%; height: auto; }
.lid {
  position: absolute; width: 19%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cream);
  transform: scaleY(0);
}
.lid--l { left: 19.6%; top: 34.5%; }
.lid--r { left: 54.9%; top: 33.2%; }
@keyframes cat-bob { from { translate: 0 0; } to { translate: 0 -3.5%; } }
.nav-logo:hover .logo-wrap { animation: cat-wiggle .55s ease; }
@keyframes cat-wiggle {
  0% { rotate: 0deg; } 28% { rotate: -6deg; } 62% { rotate: 4deg; } 100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) { .logo-wrap { animation: none; } }
.nav-wordmark {
  font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .01em;
}
.nav-wordmark b { font-weight: 700; }

.nav-links { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500;
  padding: 4px 0; overflow: hidden;
}
.nav-links a sup {
  font-size: 9px; color: var(--acid); margin-right: 5px; font-weight: 700;
}
/* le libellé roule sur lui-même au survol */
.roll { display: inline-block; overflow: hidden; height: 1.6em; vertical-align: top; }
.roll i { display: block; font-style: normal; transition: transform .45s var(--ease-out); }
.roll i:last-child { color: var(--acid); }
.nav-links a:hover .roll i { transform: translateY(-100%); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--acid);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid var(--line); border-radius: 99px;
  padding: 10px 22px; font-size: 13px; font-weight: 700;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--acid); border-radius: 99px;
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.nav-cta:hover { color: var(--ink); border-color: var(--acid); }
.nav-cta:hover::before { transform: translateY(0); }

.nav-right { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }

/* le commutateur de langue : discret, il affiche la langue cible */
.nav-lang {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--cream-55);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.nav-lang:hover { color: var(--acid); border-color: var(--acid); }
@media (max-width: 899px) { .nav .nav-lang { display: none; } }
.menu-foot .nav-lang { font-size: 14px; padding: 2px 2px; }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; z-index: 60; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--cream); transition: transform .4s var(--ease-out), top .4s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; gap: 8px; }
.menu-links a {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 10vw, 72px); line-height: 1.15;
}
.menu-links a i {
  font-style: normal; font-family: var(--body); font-size: 13px;
  color: var(--acid); margin-right: 16px; vertical-align: super;
}
.menu-foot {
  position: absolute; bottom: 32px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--cream-55);
}

/* ---------- LE FIL : la progression, colonisée comme la créature ---------- */
.thread {
  position: fixed; right: clamp(14px, 2vw, 28px); top: 50%;
  translate: 0 -50%;
  z-index: 40;
  height: min(44vh, 430px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
}
.thread-line {
  position: absolute; top: 7px; bottom: 7px; left: 50%;
  width: 1px; margin-left: -.5px;
  background: rgba(242, 238, 227, .22);
}
.thread-line i {
  position: absolute; top: 0; left: -1px;
  width: 3px; height: 100%; border-radius: 99px;
  background: linear-gradient(to bottom, var(--green), var(--acid));
  box-shadow: 0 0 14px rgba(217, 255, 63, .55);
  transform: scaleY(0); transform-origin: top;
}
.thread-node {
  position: relative; z-index: 1;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.thread-node em {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cream-55);
  transition: background-color .3s, transform .35s var(--ease-out), box-shadow .35s;
}
.thread-node span {
  position: absolute; right: 24px; top: 50%;
  translate: 0 -50%; transform: translateX(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-55);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease-out);
}
.thread-node:hover em, .thread-node:focus-visible em { background: var(--cream); transform: scale(1.5); }
.thread-node:hover span, .thread-node:focus-visible span { opacity: 1; transform: translateX(0); }
.thread-node.is-active em {
  background: var(--acid); transform: scale(2);
  box-shadow: 0 0 16px rgba(217, 255, 63, .8);
}
/* le libellé n'apparaît qu'au survol ou au focus : rien ne doit
   jamais recouvrir le contenu */
@media (max-width: 1099px) { .thread { display: none; } }

/* ---------- Helpers typographiques ---------- */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cream-55);
  display: flex; align-items: center; gap: 10px;
}
.kicker span { color: var(--acid); font-variant-numeric: tabular-nums; margin-right: 10px; }
.kicker::after { content: ''; width: 48px; height: 1px; background: var(--line); }

.section-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 7vh, 90px); }
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.0; letter-spacing: -.018em;
  margin-top: 22px;
}
.section-sub {
  margin-top: 18px; max-width: 46ch;
  color: var(--cream-55); font-size: 15px;
}

/* ---------- Tri des projets : des pastilles sobres, compteur acide ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 4vh, 40px); }
.filter-btn {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-55);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filter-btn sup { font-size: 10px; color: var(--acid); font-variant-numeric: tabular-nums; }
.filter-btn:hover { color: var(--cream); border-color: var(--acid-dim); }
.filter-btn.is-active { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.filter-btn.is-active sup { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 110px var(--pad) clamp(100px, 14vh, 150px);
  position: relative;
}
.hero-kicker {
  position: absolute; top: 92px; left: var(--pad);
  font-size: 13px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-55);
}
/* la mascotte règne au centre ; le titre, une seule ligne, la salue d'en bas */
.hero-inner { text-align: center; }
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 7.5vw, 118px);
  line-height: 1; letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero-line { display: block; overflow: hidden; white-space: nowrap; padding-top: .08em; }
.hero-word--stroke { color: transparent; -webkit-text-stroke: 2px var(--acid); }
@media (max-width: 600px) { .hero-word--stroke { -webkit-text-stroke: 1.2px var(--acid); } }
.hero-word, .hero-sp { display: inline-block; }
.hero-word .char { display: inline-block; will-change: transform; }
.hero-lede {
  margin: clamp(20px, 3vh, 32px) auto 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55;
}
/* trois repères : gauche, CENTRE OPTIQUE RÉEL, droite */
.hero-meta {
  position: absolute; bottom: 34px; left: var(--pad); right: var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-55);
}
.hero-meta span:nth-child(1) { text-align: left; }
.hero-meta span:nth-child(2) { text-align: center; }
.hero-meta span:nth-child(3) { text-align: right; }
@media (max-width: 719px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta span:nth-child(2) { display: none; }
}

.hero-scroll {
  position: absolute; bottom: 86px; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-55);
}
.hero-scroll em {
  width: 1px; height: 56px; background: var(--cream-30);
  position: relative; overflow: hidden; display: block;
}
.hero-scroll em::after {
  content: ''; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--acid);
  animation: scrolldrip 2.1s var(--ease-io) infinite;
}
@keyframes scrolldrip { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }
@media (max-width: 600px) { .hero-scroll { display: none; } }

/* ---------- Manifesto ---------- */
.manifesto {
  min-height: 110vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16vh var(--pad);
  max-width: 1280px; margin: 0 auto;
}
.manifesto-text {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 4.1vw, 58px);
  line-height: 1.22; letter-spacing: -.01em;
}
.manifesto-text .w { color: var(--cream-30); transition: color .3s linear; }
.manifesto-text .w.lit { color: var(--cream); }
.manifesto-text .w.k.lit { color: var(--acid); }

/* ---------- Expertises : LA SCÈNE ----------
   Le bloc colle à l'écran le temps du voyage (sticky CSS : la barre
   de défilement reste vivante, aucun pin, trajet court). La liste des
   métiers en contour, la créature à droite, le récit du métier actif
   bien remonté dans l'écran. Fond noir intégral, lisible partout. */
.expertises { padding-top: clamp(80px, 14vh, 160px); }
/* l'en-tête défile normalement ; seul le duo liste + récit tient
   l'écran, le temps d'un parcours court (~1,4 écran de trajet) */
.xp-run { position: relative; height: 240svh; }
.xp-sticky {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  display: flex;
}
.xp-wrap {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  /* dégagé de la barre de navigation en haut, de la tranche en bas */
  padding: clamp(88px, 12vh, 124px) var(--pad) clamp(24px, 4vh, 48px);
}
.xp-list {
  list-style: none;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(4px, 1.5vh, 15px);
}
.xp-head {
  display: flex; align-items: baseline; gap: 16px;
  text-align: left;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(23px, 3.5vw, 53px); line-height: 1.05; letter-spacing: -.015em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 227, .32);
  transition: transform .5s var(--ease-out), -webkit-text-stroke-color .3s, color .35s;
}
.xp-head i {
  font-style: normal; font-family: var(--body);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  -webkit-text-stroke: 0; color: var(--cream-30);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.xp-head:hover { -webkit-text-stroke-color: rgba(242, 238, 227, .6); }
.xp-item.is-active .xp-head {
  color: var(--cream); -webkit-text-stroke-color: rgba(242, 238, 227, 0);
  transform: translateX(clamp(6px, 1.2vw, 18px));
}
.xp-item.is-active .xp-head i { color: var(--acid); }
/* le récit du métier actif : à droite, sous la créature, et surtout
   BIEN AU-DESSUS du bord bas (il était coupé, plus jamais ça) */
.xp-detail {
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  padding-bottom: clamp(56px, 13vh, 140px);
  max-width: 42ch;
}
.xp-count {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--acid); font-variant-numeric: tabular-nums;
}
.xp-count em { font-style: normal; color: var(--cream-30); font-weight: 500; margin-left: 4px; }
.xp-tagline {
  margin-top: 12px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3;
}
.xp-text {
  margin-top: 10px;
  color: var(--cream-55); font-size: 15px; line-height: 1.65;
}
@media (max-width: 899px) {
  .xp-run { height: 220svh; }
  .xp-wrap { grid-template-columns: 1fr; gap: 12px; padding-top: 84px; }
  .xp-list { justify-content: flex-start; gap: 8px; }
  .xp-head { font-size: clamp(20px, 5.6vw, 30px); }
  .xp-detail { padding-bottom: clamp(20px, 5vh, 44px); }
  .xp-text { font-size: 14px; }
}

/* ---------- Projets : un CHAPITRE par projet. Le numéro en
   filigrane, le contexte en ouverture, l'image principale et
   son satellite en parallaxe opposée. ---------- */
.projects { padding: clamp(80px, 14vh, 160px) 0; }
.project-list { border-top: 1px solid var(--line); }
.chapter {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 11vh, 130px) var(--pad);
}
/* le numéro du chapitre, en filigrane — il dérive au scroll */
.ch-index {
  position: absolute; top: clamp(14px, 3vh, 30px); right: var(--pad);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(96px, 16vw, 240px); line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 238, 227, .10);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.chapter--flip .ch-index { right: auto; left: var(--pad); }
.ch-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px; align-items: center;
}
.ch-info {
  grid-column: 1 / 5;
  display: flex; flex-direction: column; gap: 18px;
}
.ch-media { grid-column: 5 / 13; position: relative; }
.chapter--flip .ch-info { grid-column: 9 / 13; order: 2; }
.chapter--flip .ch-media { grid-column: 1 / 9; order: 1; }

.ch-context {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.35;
  max-width: 30ch;
}
/* un trait graphique ouvre le contexte (jamais de tiret typographique) */
.ch-context::before {
  content: ''; display: inline-block;
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--acid);
  margin-right: 12px; vertical-align: .28em;
}
.ch-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 5vw, 76px); line-height: .98; letter-spacing: -.018em;
  transition: color .4s;
}
.chapter:hover .ch-title { color: var(--acid); }
.ch-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cream-55);
}
.ch-oneliner { color: var(--cream-55); font-size: 15px; max-width: 38ch; }
.ch-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-tags span {
  font-size: 11px; letter-spacing: .04em; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 99px;
  color: var(--cream-55); white-space: nowrap;
  transition: border-color .3s, color .3s;
}
.chapter:hover .ch-tags span { border-color: var(--acid-dim); color: var(--cream); }
.ch-cta {
  width: max-content; position: relative;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center;
  padding-bottom: 7px;
}
.ch-cta i { font-style: normal; transition: transform .4s var(--ease-out); }
.ch-cta::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--acid);
  transform: scaleX(.22); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.chapter:hover .ch-cta::after { transform: scaleX(1); }
.chapter:hover .ch-cta i { transform: translateX(6px); }

.ch-fig {
  position: relative; overflow: hidden; border-radius: 8px;
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
  transition: box-shadow .6s;
}
.chapter:hover .ch-fig { box-shadow: 0 34px 120px -44px var(--acid-dim); }
/* le transform (parallaxe + zoom) est entièrement piloté par GSAP :
   pas de transition ni de :hover transform CSS qui le contredirait */
.ch-fig img {
  width: 100%; height: 114%; object-fit: cover; object-position: center;
  position: relative; top: -7%;
  filter: grayscale(1) contrast(1.04);
  transition: filter .7s ease;
  will-change: transform;
}
.chapter:hover .ch-fig img { filter: grayscale(0) contrast(1); }
.ch-fig::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 12, .4), transparent 40%);
  opacity: .8; transition: opacity .5s;
}
.chapter:hover .ch-fig::after { opacity: .25; }
.ch-fact {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--acid); color: var(--ink);
  padding: 7px 12px; border-radius: 99px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .45s var(--ease-out);
}
.chapter:hover .ch-fact { opacity: 1; transform: translateY(0); }

/* les apps se présentent en « contain » sur fond de pénombre */
.chapter[data-ratio="phone"] .ch-fig {
  background: radial-gradient(ellipse at 50% 130%, #1c1c24, var(--ink-2));
}
.chapter[data-ratio="phone"] .ch-fig img {
  object-fit: contain; padding: 4% 0; height: 100%;
}

@media (max-width: 899px) {
  .ch-info, .ch-media, .chapter--flip .ch-info, .chapter--flip .ch-media { grid-column: 1 / -1; }
  .ch-media, .chapter--flip .ch-media { order: 1; }
  .ch-info, .chapter--flip .ch-info { order: 2; }
  .ch-index { font-size: clamp(72px, 22vw, 140px); }
}

/* ---------- Studio ---------- */
.studio { padding: clamp(80px, 14vh, 160px) 0 clamp(80px, 14vh, 160px); }
.studio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 0 var(--pad);
}
@media (max-width: 899px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-step {
  border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(16, 16, 20, .82);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.studio-step:hover { transform: translateY(-6px); border-color: var(--acid-dim); }
.studio-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--acid); color: var(--ink);
  font-weight: 700; font-size: 14px;
  margin-bottom: 22px;
  transition: transform .5s var(--ease-out);
}
.studio-step:hover .studio-num { transform: rotate(360deg); }
.studio-step h3 {
  font-family: var(--display); font-weight: 600; font-size: 24px;
  margin-bottom: 12px; letter-spacing: -.01em;
}
.studio-step p { color: var(--cream-55); font-size: 15px; }
.studio-research {
  padding: clamp(40px, 6vh, 70px) var(--pad) 0;
  max-width: 60ch; color: var(--cream-55); font-size: 15px;
}

/* ---------- Contact ---------- */
.contact {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  /* la mascotte se reforme dans la bande du haut : la scène lui est
     entièrement réservée, aucun texte ne la traverse */
  padding: clamp(250px, 40vh, 400px) var(--pad) 12vh;
}
.contact-time {
  margin-top: 10px;
  font-size: 13px; color: var(--cream-55);
}
.contact-time #namur-time {
  color: var(--acid); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
}
.contact-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 1; letter-spacing: -.02em;
}
.contact-mail {
  margin-top: clamp(36px, 6vh, 60px);
  display: inline-flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 99px;
  padding: clamp(18px, 2.6vw, 28px) clamp(28px, 4vw, 52px);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 3vw, 34px);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s, border-color .4s;
}
.contact-mail::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--acid); border-radius: 99px;
  transform: scale(0); transform-origin: center;
  transition: transform .55s var(--ease-out);
}
.contact-mail:hover { color: var(--ink); border-color: var(--acid); }
.contact-mail:hover::before { transform: scale(1.02); }
.contact-mail-arrow { transition: transform .4s var(--ease-out); }
.contact-mail:hover .contact-mail-arrow { transform: translateX(8px); }
.contact-note {
  margin-top: clamp(20px, 3.5vh, 34px);
  font-size: 13px; color: var(--cream-55);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 8vh, 90px) var(--pad) 40px;
  background: linear-gradient(to bottom, transparent, rgba(19, 19, 24, .8));
}
.footer-giant {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(40px, 6vh, 60px);
}
.footer-cat { width: clamp(90px, 11vw, 160px); flex: none; }
.footer-word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 7.2vw, 118px);
  letter-spacing: -.02em; line-height: 1; white-space: nowrap;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; font-size: 14px; color: var(--cream-55);
}
@media (max-width: 899px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acid);
  margin-bottom: 12px;
}
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--cream); }
.footer-legal { text-align: right; align-self: end; font-size: 12px; }
@media (max-width: 899px) { .footer-legal { text-align: left; } }

/* ---------- Étude de cas (overlay) ---------- */
.case {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg-2);
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
}
.case-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad);
  background: linear-gradient(to bottom, rgba(19, 19, 24, .95), rgba(19, 19, 24, 0));
}
.case-close {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.case-close i {
  font-style: normal; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .3s, color .3s, transform .45s var(--ease-out);
}
.case-close:hover i { background: var(--acid); color: var(--ink); transform: rotate(90deg); }
.case-nav { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.case-nav button { color: var(--cream-55); transition: color .3s; font-weight: 500; }
.case-nav button:hover { color: var(--acid); }
#case-counter { font-variant-numeric: tabular-nums; color: var(--cream-55); font-size: 12px; }

/* L'étude de cas : la première photo en grand, le fond noir,
   la description — puis la galerie-filmstrip en pleine largeur. */
.case-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.case-hero { position: relative; height: 62vh; overflow: hidden; }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-hero--phone { display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(ellipse at 50% 120%, #23232e, var(--bg-2)); }
.case-hero--phone img { width: auto; height: 88%; object-fit: contain; }
.case-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg-2), transparent 35%);
}
.case-body { max-width: 1060px; margin: 0 auto; padding: 0 var(--pad) 40px; }
.case-body--foot { padding-bottom: 80px; }
.case-title-row { margin-top: -9vh; position: relative; z-index: 2; }
.case-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 8vw, 110px); line-height: .95; letter-spacing: -.02em;
}
.case-meta {
  display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: clamp(20px, 4vw, 60px);
  margin-top: 34px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 720px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.case-meta b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid); margin-bottom: 6px; font-weight: 700; }
.case-intro {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -.005em;
  margin: clamp(36px, 6vh, 64px) 0 0; max-width: 30ch;
}
.case-roles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.case-roles span {
  font-size: 12px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--cream-55);
}
.case-text { margin-top: clamp(30px, 5vh, 50px); max-width: 64ch; }
.case-text p { margin-bottom: 22px; color: rgba(242, 238, 227, .82); font-size: 16.5px; line-height: 1.75; }

/* ---- la galerie-filmstrip : pleine largeur, à faire glisser ---- */
.case-strip-wrap { margin: clamp(44px, 8vh, 80px) 0 10px; }
.case-strip {
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 var(--pad) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.case-strip::-webkit-scrollbar { display: none; }
.case-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-item {
  flex: none; position: relative;
  height: min(58vh, 540px);
  scroll-snap-align: center;
  border-radius: 6px; overflow: hidden;
  background: var(--ink-3);
}
.strip-item img {
  height: 100%; width: auto; max-width: none; display: block;
  user-select: none; -webkit-user-drag: none;
}
.strip-item figcaption {
  position: absolute; bottom: 10px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--cream); background: rgba(10, 10, 12, .65);
  padding: 5px 10px; border-radius: 99px;
}
.strip-ui {
  display: flex; align-items: center; gap: 18px;
  padding: 18px var(--pad) 0;
  max-width: 1060px; margin: 0 auto;
}
.strip-count { font-size: 12px; color: var(--cream-55); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.strip-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.strip-btn:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.strip-bar {
  flex: 1; height: 2px; background: var(--line); border-radius: 99px;
  position: relative; overflow: hidden;
}
.strip-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 20%;
  background: var(--acid); border-radius: 99px;
  transition: transform .25s ease-out;
}
@media (max-width: 720px) { .strip-item { height: 46vh; } }
.case-videos { margin-top: 40px; display: grid; gap: 18px; }
.case-videos .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink-3); }
.case-videos iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-link {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 46px; padding: 16px 30px;
  border: 1px solid var(--line); border-radius: 99px;
  font-weight: 700; font-size: 14px;
  transition: background-color .35s, color .35s, border-color .35s;
}
.case-link:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.case-next-zone {
  margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.case-next-zone button {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 3vw, 34px); letter-spacing: -.01em;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: color .3s;
}
.case-next-zone button:last-child { align-items: flex-end; text-align: right; }
.case-next-zone button:hover { color: var(--acid); }
.case-next-zone button small {
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cream-55);
}

/* ---------- Reveal helper (états initiaux posés en JS) ---------- */
.reveal-line { display: block; }

/* ---------- Responsive nav ---------- */
@media (max-width: 899px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll em::after { animation: none; }
  *, *::before, *::after { transition-duration: .01s !important; }
}
