/* ==========================================================================
   MADBO — Studio de marque & communication
   Concept : « le site caméléon » — l'interface prend les couleurs
   de chaque marque cliente au fil du scroll.
   ========================================================================== */

/* ---------- Tokens animables ---------- */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #2e2c27; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #efebe3; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #e4e62a; }
@property --ink    { syntax: '<color>'; inherits: true; initial-value: #1d1b18; }

:root {
  --c-ink: #1d1b18;
  --c-paper: #efebe3;
  --c-char: #2e2c27;
  --c-acid: #e4e62a;

  --bg: var(--c-char);
  --fg: var(--c-paper);
  --accent: var(--c-acid);
  --ink: var(--c-ink);

  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gx: clamp(16px, 3.2vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 14px;

  transition: --bg .9s var(--ease), --fg .9s var(--ease), --accent .9s var(--ease), --ink .9s var(--ease);
}

:root, .case, .footer {
  --muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --line: color-mix(in srgb, var(--fg) 20%, transparent);
  --soft: color-mix(in srgb, var(--fg) 8%, transparent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambiance ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bgfx > div { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.bgfx > div.is-on { opacity: 1; }

.grain {
  position: fixed; inset: -100%;
  z-index: 90; pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 9%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(255,255,255,.9);
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.cursor.is-label .cursor__ring {
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  background: var(--accent); border-color: transparent; mix-blend-mode: normal;
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring { width: 0; height: 0; margin: 0; border-color: transparent; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 95;
  background: var(--c-char); color: var(--c-paper);
  display: grid; place-items: center; align-content: center; gap: 28px;
  clip-path: inset(0 0 0 0);
  animation: loader-failsafe .01s 7s forwards;
}
.no-js .loader { display: none; }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
.loader__flower { width: clamp(90px, 12vw, 150px); height: auto; color: var(--c-paper); }
.loader__word {
  display: flex; overflow: hidden;
  font-size: clamp(64px, 15vw, 240px); font-weight: 800; line-height: .82; letter-spacing: -.06em;
  font-variation-settings: 'wdth' 82;
}
.loader__word span { display: inline-block; }
.loader__meta {
  position: absolute; left: var(--gx); right: var(--gx); bottom: 28px;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--gx);
  transition: transform .6s var(--ease), color .9s var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; justify-self: start; }
.nav__logo svg { width: 32px; height: 32px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__now {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.nav__chip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav__links { justify-self: end; display: flex; gap: 6px; }
.nav__links a {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav__links a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav__links .nav__cta { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav__links .nav__cta:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.nav__burger { display: none; justify-self: end; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); position: relative; z-index: 2; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--bg); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 19px; } .nav__burger span:last-child { top: 27px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--c-acid); color: var(--c-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gx) 32px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu-open .nav { color: var(--c-ink); }
.menu-open .nav__burger { background: var(--c-ink); }
.menu-open .nav__burger span { background: var(--c-acid); }
.menu__links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(48px, 15vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: 1; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.menu__links span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 18px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 104px var(--gx) 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow: hidden; isolation: isolate;
}
.hero__meta {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  position: relative; z-index: 2;
}
.hero__meta-mid { align-self: start; }
.hero__title {
  position: relative; z-index: 2;
  font-size: clamp(52px, 9.6vw, 176px);
  line-height: .9; letter-spacing: -.05em; font-weight: 700;
  font-variation-settings: 'wdth' 84;
  pointer-events: none;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: 1.2em; }
.hero__title .line:nth-child(4) { padding-left: 2.1em; }
.hero__title .serif { font-weight: 400; letter-spacing: -.03em; }
.pill {
  display: inline-block; position: relative; overflow: hidden;
  width: 1.45em; height: .74em; border-radius: 999px;
  vertical-align: middle; transform: translateY(-.07em);
  background: color-mix(in srgb, var(--fg) 15%, transparent);
  margin: 0 .04em;
}
.pill--wide { width: 2.1em; }
.pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__bottom { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: end; gap: 24px; }
.hero__intro { max-width: 40ch; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.45; color: var(--muted); }
.hero__intro .serif { color: var(--fg); font-size: 1.15em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .4; } }

.badge { grid-column: -2 / -1; justify-self: end; position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; }
.badge__text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge__text text { font-family: var(--f-mono); font-size: 10.4px; letter-spacing: .18em; text-transform: uppercase; fill: var(--fg); }
.badge__flower { width: 52px; height: 52px; color: var(--fg); transition: transform .8s var(--ease); }
.badge:hover .badge__flower { transform: rotate(180deg) scale(1.15); }

.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img {
  position: absolute; left: 0; top: 0;
  width: clamp(130px, 13vw, 230px); aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 8px; opacity: 0; will-change: transform, opacity;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}

/* ---------- Bandes clients ---------- */
.tapes { position: relative; height: clamp(170px, 22vw, 330px); overflow: hidden; display: grid; place-items: center; z-index: 3; }
.tape {
  position: absolute; left: -6%; width: 112%;
  padding: .32em 0; white-space: nowrap; overflow: hidden;
  font-size: clamp(26px, 4.4vw, 72px); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  font-variation-settings: 'wdth' 80;
}
.tape--a { background: var(--c-acid); color: var(--c-ink); transform: rotate(-4deg); z-index: 2; }
.tape--b { background: var(--c-ink); color: var(--c-paper); transform: rotate(3deg); }
.tape__inner { display: inline-flex; align-items: center; will-change: transform; }
.tape__item { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; }
.tape__item svg { width: .82em; height: .82em; flex: none; }
.tape--a .tape__item svg { --flower-core: #1d1b18; }
.tape__item em { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }

/* ---------- Manifeste ---------- */
.manifesto { padding: 20vh var(--gx) 18vh; display: grid; grid-template-columns: 1fr 3.2fr; gap: 4vw; }
.manifesto__text { font-size: clamp(30px, 4.5vw, 80px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.manifesto__text .serif { font-weight: 400; }
.manifesto__text mark { background: none; color: inherit; position: relative; white-space: nowrap; }
.manifesto__text mark::before {
  content: ''; position: absolute; left: -.08em; right: -.08em; top: .1em; bottom: .02em; z-index: -1;
  background: var(--c-acid); border-radius: .12em;
  transform-origin: left; transform: scaleX(var(--hl, 1));
}
.manifesto__text { position: relative; z-index: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10vh; border-top: 1px solid var(--line); padding-top: 24px; }
.stat b { display: block; font-size: clamp(56px, 7vw, 120px); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Projets : en-tête + index ---------- */
.work { padding: 6vh 0 10vh; }
.work__head { padding: 0 var(--gx) 6vh; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; }
.work__head .label { grid-column: 1 / -1; }
.work__title { font-size: clamp(72px, 16vw, 300px); line-height: .84; letter-spacing: -.03em; font-weight: 800; font-variation-settings: 'wdth' 78; }
.work__title sup { font-family: var(--f-mono); font-size: .09em; font-weight: 400; letter-spacing: 0; vertical-align: top; margin-left: .3em; position: relative; top: .4em; }
.work__lead { max-width: 30ch; font-size: clamp(16px, 1.3vw, 20px); color: var(--muted); padding-bottom: 1.2vw; }
.work__lead .serif { color: var(--fg); font-size: 1.15em; }

.index { margin: 0 var(--gx); border-top: 1px solid var(--line); }
.index__row { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.index__row a {
  display: grid; grid-template-columns: 70px 1.3fr 1.2fr 1.4fr; align-items: center; gap: 16px;
  padding: 22px 12px; transition: color .45s var(--ease), padding .6s var(--ease);
}
.index__row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--row-bg); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
.index__row:hover::before, .index__row:focus-within::before { transform: scaleY(1); }
.index__row:hover a, .index__row:focus-within a { color: var(--row-fg); padding-left: 28px; }
.index__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.index__tags { text-align: right; }
.index__name { font-size: clamp(26px, 3.2vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.index__sector { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.6vw, 26px); }
.index__tags { font-size: 13px; opacity: .75; }
.index__thumb { display: none; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none;
  width: clamp(200px, 18vw, 300px); aspect-ratio: 4 / 5;
  border-radius: 10px; overflow: hidden; opacity: 0; transform: scale(.6);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  will-change: transform;
}
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.peek img.is-on { opacity: 1; }

/* ---------- Chapitres projet ---------- */
.chapter { position: relative; height: 100vh; overflow: hidden; }
.chapter__track { display: flex; align-items: center; gap: 2.4vw; height: 100%; padding: 0 var(--gx); width: max-content; will-change: transform; }
.chapter__intro {
  flex: none; width: min(44vw, 720px); height: 78vh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: 2vh 3vw 0 0;
}
.chapter__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.chapter__top span:first-child { white-space: nowrap; }
.chapter__top span:last-child { color: var(--muted); text-align: right; }
.chapter__name {
  font-size: clamp(54px, 7.8vw, 140px); line-height: .92; letter-spacing: -.02em; font-weight: 800;
  font-variation-settings: 'wdth' 78;
  overflow-wrap: normal; text-wrap: balance;
}
/* marge intérieure pour que les jambages (g, p, J) et les accents ne soient plus rognés */
.chapter__name .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .22em; margin: 0 -.05em -.22em; }
.chapter__name .w > span { display: inline-block; }
.chapter__tagline { margin-top: .5em; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.3vw, 38px); line-height: 1.15; }
.chapter__desc { max-width: 46ch; font-size: clamp(14px, 1.05vw, 17px); color: var(--muted); }
.chapter__meta { display: flex; flex-direction: column; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; }
.swatches { display: flex; align-items: center; gap: 6px; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); }
.chapter__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15px;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:hover svg { transform: rotate(45deg); }

.chapter__slides { display: flex; align-items: center; gap: 2.4vw; }
.slide {
  flex: none; position: relative; display: block;
  height: 70vh; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--soft);
  transform: translateY(var(--dy, 0));
}
.slide:nth-child(even) { --dy: 6vh; }
.slide:nth-child(odd) { --dy: -4vh; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s; } /* visuel entier, sans zoom */
.slide::after {
  content: attr(data-n); position: absolute; left: 12px; bottom: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: #fff; mix-blend-mode: difference;
}
.slide:hover img { filter: saturate(1.15) contrast(1.04); }

.chapter__outro { flex: none; width: 32vw; height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding-left: 2vw; }
.chapter__outro .label { color: var(--muted); }
.big-circle {
  width: clamp(170px, 15vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.15; letter-spacing: -.01em;
  transition: transform .6s var(--ease);
}
.big-circle svg { width: 22px; height: 22px; margin: 8px auto 0; display: block; }
.big-circle:hover { transform: scale(1.06) rotate(-6deg); }
.chapter__next { font-size: clamp(28px, 3vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.chapter__next small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin-bottom: 8px; }

.chapter__hud {
  position: absolute; left: var(--gx); right: var(--gx); bottom: 26px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  pointer-events: none;
}
.chapter__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.chapter__bar i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }


/* Chapitres sans épinglage (mobile, mouvement réduit, sans JS d'animation) */
.no-pin .chapter { height: auto; overflow: visible; padding: 12vh 0 10vh; }
.no-pin .chapter__track { display: block; width: auto; height: auto; padding: 0; transform: none !important; }
.no-pin .chapter__intro { width: auto; height: auto; padding: 0 var(--gx); gap: 22px; }
.no-pin .chapter__slides { overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 30px var(--gx) 10px; scrollbar-width: none; transform: none !important; }
.no-pin .chapter__slides::-webkit-scrollbar { display: none; }
.no-pin .slide { height: auto; width: 74vw; max-width: 420px; scroll-snap-align: center; transform: none; }
.no-pin .slide img { transform: none !important; }
.no-pin .chapter__outro { width: auto; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 24px var(--gx) 0; gap: 20px; }
.no-pin .chapter__hud { display: none; }

/* ---------- Titres de section ---------- */
.section-head { padding: 0 var(--gx); margin-bottom: 8vh; display: grid; gap: 22px; }
.section-head--row { grid-template-columns: 1fr auto; align-items: end; }
.h-xl { font-size: clamp(52px, 9vw, 168px); line-height: .9; letter-spacing: -.03em; font-weight: 800; font-variation-settings: 'wdth' 80; }
.h-xl .serif { font-weight: 400; letter-spacing: -.04em; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .24em; margin: 0 -.05em -.24em; }
[data-split] .w > span { display: inline-block; }

/* ---------- Expertise ---------- */
.expertise { padding: 18vh 0 14vh; }
.ex { border-top: 1px solid var(--line); }
.ex__row { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.ex__row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c-ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.ex__btn { width: 100%; text-align: left; display: grid; grid-template-columns: 90px 1.4fr 1fr 40px; align-items: center; gap: 24px; padding: 3.4vh var(--gx); transition: color .4s; }
.ex__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; }
.ex__name { font-size: clamp(36px, 5.6vw, 100px); line-height: .95; letter-spacing: -.05em; font-weight: 700; transition: transform .7s var(--ease); }
.ex__desc { font-size: clamp(14px, 1.05vw, 17px); color: var(--muted); max-width: 42ch; transition: color .4s; }
.ex__desc small { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.ex__plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s; }
.ex__plus svg { width: 14px; height: 14px; }
.ex__media { display: none; }
@media (hover: hover) {
  .ex__row:hover::before { transform: scaleY(1); }
  .ex__row:hover .ex__btn { color: var(--c-paper); }
  .ex__row:hover .ex__desc { color: color-mix(in srgb, var(--c-paper) 70%, transparent); }
  .ex__row:hover .ex__name { transform: translateX(2.4vw); }
  .ex__row:hover .ex__plus { transform: rotate(45deg); background: var(--c-acid); color: var(--c-ink); border-color: var(--c-acid); }
}

/* ---------- Méthode ---------- */
.method { padding: 18vh 0 10vh; }
.method__cards { padding: 0 var(--gx); }
.mcard {
  position: sticky; top: calc(12vh + var(--i) * 26px);
  min-height: 62vh; margin-bottom: 8vh;
  border-radius: 28px; padding: clamp(24px, 4vw, 64px);
  background: var(--c); color: var(--t);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: 2vh 5vw;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.45);
  overflow: hidden;
}
.mcard:last-child { margin-bottom: 0; }
.mcard__num { grid-row: 1 / -1; font-size: clamp(110px, 19vw, 340px); line-height: .76; font-weight: 800; letter-spacing: -.07em; font-variation-settings: 'wdth' 76; }
.mcard__top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.mcard__title { font-family: var(--f-serif); font-style: italic; font-size: clamp(56px, 8vw, 150px); line-height: .9; letter-spacing: -.03em; align-self: end; }
.mcard__text { max-width: 44ch; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.4; }
.mcard__flower { aspect-ratio: 1; height: auto; position: absolute; right: -6%; bottom: -18%; width: 42%; opacity: .12; color: currentColor; --flower-core: currentColor; pointer-events: none; }

/* ---------- ADN couleur ---------- */
.dna { padding: 16vh 0 18vh; }
.dna__lead { max-width: 36ch; color: var(--muted); font-size: clamp(14px, 1.1vw, 18px); }
.dna__wall { display: flex; gap: 8px; height: 74vh; padding: 0 var(--gx); }
.dna__col {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--stripes); color: var(--t);
  transition: flex-grow .8s var(--ease);
  text-align: left;
}
.dna__col.is-open { flex-grow: 6; }
.dna__label {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap;
  font-weight: 800; font-size: clamp(16px, 1.6vw, 26px); letter-spacing: -.03em;
  padding: 10px 6px; border-radius: 999px;
  background: var(--bgc); color: var(--t);
  transition: opacity .4s;
}
.dna__col.is-open .dna__label { opacity: 0; }
.dna__inner {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(0, 46%); gap: 20px; padding: clamp(16px, 2vw, 28px);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.dna__col.is-open .dna__inner { opacity: 1; transition-delay: .35s; pointer-events: auto; }
.dna__info { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; background: var(--bgc); color: var(--t); border-radius: 12px; padding: clamp(16px, 2vw, 28px); }
.dna__name { font-size: clamp(32px, 3.6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.dna__sector { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.5vw, 24px); opacity: .85; }
.dna__chips { display: flex; flex-direction: column; gap: 6px; }
.dna__chips button { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 4px; border-radius: 8px; transition: background-color .2s; }
.dna__chips button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.dna__chips i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); flex: none; }
.dna__chips b { font-weight: 500; opacity: .6; margin-left: auto; }
/* visuel entier au format 4:5 (cadre blanc visible sur les 4 côtés) */
.dna__img { border-radius: 12px; overflow: hidden; min-height: 0; align-self: center; justify-self: end; aspect-ratio: 4 / 5; width: min(100%, (74vh - 56px) * .8); }
.dna__img img { width: 100%; height: 100%; object-fit: cover; }
.dna__open { align-self: flex-start; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.dna__open svg { width: 14px; height: 14px; }

/* ---------- Contact ---------- */
.contact { padding: 15vh var(--gx) 12vh; }
.contact__title { font-size: clamp(42px, 7.2vw, 132px); line-height: .92; letter-spacing: -.025em; font-weight: 800; font-variation-settings: 'wdth' 80; margin-top: 3vh; max-width: 15ch; text-wrap: balance; }
.contact__title .serif { font-weight: 400; letter-spacing: -.04em; }
.brief { margin-top: 8vh; display: grid; grid-template-columns: 1fr 1fr; gap: 6vh 5vw; }
.brief__needs legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: inline-block; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--fg); font-weight: 600; font-size: 16px; transition: background-color .25s, color .25s, transform .4s var(--ease); }
.chips input:checked + span { background: var(--fg); color: var(--bg); transform: rotate(-2deg); }
.chips input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.brief__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea {
  font: inherit; font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--fg); padding: 8px 0; resize: vertical; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 3px; }
.brief__send { grid-column: 1 / -1; display: flex; align-items: center; gap: 6vw; flex-wrap: wrap; }
.send {
  width: clamp(150px, 14vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); color: var(--bg); /* suit le thème : toujours contrasté */
  display: grid; place-items: center; align-content: center; gap: 8px;
  font-weight: 700; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.1; text-align: center;
}
.send svg { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.send:hover svg { transform: rotate(45deg); }
.direct { display: flex; flex-direction: column; gap: 10px; }
.direct__mail { font-size: clamp(28px, 4vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 4px; }
.direct__mail:hover { background-size: 100% 3px; }
.direct__insta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.direct__insta svg { width: 14px; height: 14px; }
.brief__privacy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.brief__privacy a { color: var(--fg); border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
/* Bandeau autonome : couleurs propres, la section Contact garde son jaune au-dessus */
.footer { --bg: var(--c-char); --fg: var(--c-paper); background: var(--bg); color: var(--fg); padding: 11vh var(--gx) 24px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__sig { width: clamp(96px, 9vw, 140px); height: clamp(96px, 9vw, 140px); color: var(--fg); }
.footer__cols { display: grid; grid-template-columns: repeat(3, auto); gap: 6vw; }
.footer__cols > div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer__cols .label { margin-bottom: 8px; }
.footer__cols a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.footer__cols a:hover { background-size: 100% 1px; }
.footer__bottom { margin-top: 9vh; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Étude de cas ---------- */
.case {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg); color: var(--fg);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background-image: var(--grad, none);
  visibility: hidden; clip-path: inset(100% 0 0 0);
  -webkit-overflow-scrolling: touch;
}
html.case-open { overflow: hidden; }
.case.is-open { visibility: visible; }
.case__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gx);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.case__bar::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: -1; }
.case__close {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.case__close i { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; font-style: normal; font-size: 16px; transition: transform .5s var(--ease); }
.case__close:hover i { transform: rotate(90deg); }
.case__hero { padding: 6vh var(--gx) 6vh; display: grid; grid-template-columns: 1.25fr 1fr; gap: 5vw; align-items: end; }
.case__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3vh; }
.case__title { font-size: clamp(54px, 9.6vw, 184px); line-height: .9; letter-spacing: -.025em; font-weight: 800; font-variation-settings: 'wdth' 78; overflow-wrap: normal; text-wrap: balance; padding-bottom: .06em; }
.case__tagline { margin-top: 3vh; font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.05; }
.case__cover { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; justify-self: end; width: min(100%, 560px, 76vh * .8); } /* format 4:5 exact : visuel entier, cadre blanc visible sur les 4 côtés */
.case__cover img { width: 100%; height: 100%; object-fit: cover; }
.case__facts { margin: 0 var(--gx); display: grid; grid-template-columns: 1fr 1fr 1.6fr 1.4fr; gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.case__facts h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.case__facts p, .case__facts li { font-size: 16px; font-weight: 500; }
.case__facts ul { display: flex; flex-direction: column; gap: 2px; }
.case__pal { display: flex; flex-wrap: wrap; gap: 6px; }
.case__pal button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease); position: relative; }
.case__pal button:hover { transform: scale(1.15); }
.case__story { padding: 12vh var(--gx); display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.case__story h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.case__story p { font-size: clamp(20px, 2vw, 32px); line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }

.carousel { padding: 4vh 0 10vh; position: relative; user-select: none; -webkit-user-select: none; }
.carousel__head { padding: 0 var(--gx); display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 4vh; }
.carousel__head h3 { font-size: clamp(32px, 4vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.stories { display: flex; gap: 4px; width: min(480px, 60vw); }
.stories i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.stories i::after { content: ''; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stories i.is-past::after, .stories i.is-on::after { transform: scaleX(1); }
.carousel__stage { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; gap: 28px; width: max-content; will-change: transform; }
.carousel__slide {
  flex: none; height: min(74vh, 120vw); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: var(--soft);
  transform: scale(.84); opacity: .4; transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.carousel__slide.is-active { transform: none; opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.carousel__ui { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 4vh; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.carousel__ui button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.carousel__ui button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.carousel__ui button svg { width: 18px; height: 18px; }
.carousel__ui .prev svg { transform: scaleX(-1); }
.carousel__count { min-width: 80px; text-align: center; }

.case__gridwrap { padding: 2vh var(--gx) 12vh; }
.case__gridwrap h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.case__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.case__grid button { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.case__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case__grid button:hover img { transform: scale(1.06); }
.case__grid button.is-on { outline: 2px solid var(--fg); outline-offset: 3px; }

.mail { padding: 0 var(--gx) 12vh; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 6vw; align-items: start; }
.mail h3 { font-size: clamp(32px, 4vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.mail p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.mail__client { border-radius: 18px; overflow: hidden; background: #fff; color: #1d1b18; box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); }
.mail__bar { display: flex; gap: 6px; padding: 12px 14px; background: #ecebe8; }
.mail__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d0cec9; }
.mail__bar i:nth-child(1) { background: #ff5f57; } .mail__bar i:nth-child(2) { background: #febc2e; } .mail__bar i:nth-child(3) { background: #28c840; }
.mail__hd { padding: 14px 18px; border-bottom: 1px solid #e6e4df; font-size: 13px; line-height: 1.5; }
.mail__hd b { font-weight: 600; }
.mail__body { max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
.mail__body img { width: 100%; height: auto; }

.case__next { display: block; padding: 12vh var(--gx) 14vh; border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.case__next::before { content: ''; position: absolute; inset: 0; background: var(--nbg); z-index: -1; transform: translateY(101%); transition: transform .8s var(--ease); }
.case__next:hover::before { transform: none; }
.case__next:hover { color: var(--nfg); }
.case__next small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.case__next strong { display: flex; align-items: center; gap: .3em; font-size: clamp(48px, 9vw, 172px); font-weight: 800; letter-spacing: -.025em; line-height: .92; font-variation-settings: 'wdth' 78; margin-top: 2vh; }
.case__next strong svg { width: .55em; height: .55em; transition: transform .7s var(--ease); flex: none; }
.case__next:hover strong svg { transform: translateX(.2em); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 99;
  transform: translate(-50%, calc(100% + 40px)); transition: transform .5s var(--ease);
  width: max-content; max-width: calc(100vw - 32px); text-align: center; line-height: 1.45;
  background: var(--c-ink); color: var(--c-paper);
  padding: 12px 18px; border-radius: 26px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast i { width: 16px; height: 16px; border-radius: 50%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .index__row a { grid-template-columns: 50px 1.4fr 1fr; }
  .index__tags { display: none; }
  .case__facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding-top: 14px; }
  .nav__now { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .hero { padding-top: 96px; justify-content: flex-start; gap: 6vh; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta-mid { display: none; }
  .hero__title { font-size: clamp(44px, 13.4vw, 120px); }
  .hero__title .line:nth-child(2), .hero__title .line:nth-child(4) { padding-left: 0; }
  .hero__bottom { grid-template-columns: 1fr auto; margin-top: auto; }
  .badge { width: 104px; height: 104px; }

  .manifesto { grid-template-columns: 1fr; padding: 14vh var(--gx); }
  .stats { grid-template-columns: 1fr; gap: 28px; }

  .work__head { grid-template-columns: 1fr; }
  .index__row a { grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 4px; }
  .index__num, .index__sector { display: none; }
  .index__thumb { display: block; width: 64px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
  .index__thumb img { width: 100%; height: 100%; object-fit: cover; }

  .big-circle { width: 132px; font-size: 14px; }

  .section-head--row { grid-template-columns: 1fr; }
  .ex__btn { grid-template-columns: 1fr 40px; gap: 12px 16px; padding: 22px var(--gx); }
  .ex__num { grid-column: 1 / -1; }
  .ex__desc { grid-column: 1 / -1; display: none; }
  .ex__row.is-open .ex__desc { display: block; }
  .ex__row.is-open .ex__plus { transform: rotate(45deg); }
  .ex__row.is-open .ex__media { display: block; padding: 0 var(--gx) 24px; }
  .ex__media img { width: 60%; max-width: 280px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }

  .mcard { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: 70vh; top: calc(10vh + var(--i) * 18px); }
  .mcard__num { grid-row: auto; font-size: 34vw; }

  .dna__wall { flex-direction: column; height: auto; gap: 6px; }
  .dna__col { flex: none; height: 64px; transition: height .8s var(--ease); }
  .dna__col.is-open { height: 520px; }
  .dna__label { writing-mode: horizontal-tb; transform: translateY(-50%); left: 14px; top: 50%; bottom: auto; padding: 6px 14px; font-size: 18px; }
  .dna__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .dna__img { order: -1; height: 200px; width: auto; justify-self: start; align-self: start; }

  .brief { grid-template-columns: 1fr; }
  .brief__fields { grid-template-columns: 1fr; }
  .brief__send { gap: 32px; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }

  .case__hero { grid-template-columns: 1fr; }
  .case__cover { justify-self: stretch; max-width: none; }
  .case__facts { grid-template-columns: 1fr; }
  .case__story { grid-template-columns: 1fr; padding: 8vh var(--gx); }
  .carousel__head { flex-direction: column; align-items: flex-start; }
  .stories { width: 100%; }
  .carousel__track { gap: 12px; }
  .carousel__slide { height: auto; width: 78vw; }
  .case__grid { grid-template-columns: repeat(3, 1fr); }
  .mail { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__meta { font-size: 10px; }
  .chapter__outro .chapter__next { font-size: 24px; }
  .case__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .loader { display: none; }
}
