/* Portfolio Yanis Saouda, prototype v0.2
   Système : une seule famille sans sérif, tons neutres, scènes sombres ponctuelles, cartes à grand rayon. */

@view-transition { navigation: auto; }

:root {
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ink: #1d1d1f; --white: #fff; --fog: #f5f5f7; --black: #000; --graphite: #161617;
  --gray: #86868b; --gray-deep: #6e6e73; --accent: #0a6cff; --accent-on-dark: #4f9dff;
  --gutter: clamp(22px, 5.6vw, 90px); --max: 1260px; --measure: 840px;
  --r: clamp(20px, 2.2vw, 28px); --pad: clamp(88px, 11vw, 144px);
  --ease: cubic-bezier(.25, .1, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -.006em; font-weight: 400;
  color: var(--ink); background: var(--white); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #b6d4ff; color: #000; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 980px; text-decoration: none; }
.skip:focus { top: 16px; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }

/* ───────── Thèmes de section ───────── */
.light { --bg: var(--white); --fg: var(--ink); --muted: var(--gray-deep); --soft: var(--gray); --card: var(--fog); --line: rgba(0, 0, 0, .1); --link: var(--accent); }
.fog { --bg: var(--fog); --fg: var(--ink); --muted: var(--gray-deep); --soft: var(--gray); --card: var(--white); --line: rgba(0, 0, 0, .1); --link: var(--accent); }
.dark { --bg: var(--black); --fg: var(--fog); --muted: var(--gray); --soft: var(--gray); --card: var(--graphite); --line: rgba(255, 255, 255, .14); --link: var(--accent-on-dark); }
.light, .fog, .dark { background: var(--bg); color: var(--fg); }

/* ───────── Typographie ───────── */
.t-hero { font-size: clamp(3.9rem, 13.6vw, 12.6rem); line-height: .95; letter-spacing: -.055em; font-weight: 600; }
.t-xl { font-size: clamp(2.5rem, 6.7vw, 6rem); line-height: 1.04; letter-spacing: -.042em; font-weight: 600; text-wrap: balance; }
.t-lg { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.07; letter-spacing: -.034em; font-weight: 600; text-wrap: balance; }
.t-md { font-size: clamp(1.5rem, 2.3vw, 1.75rem); line-height: 1.14; letter-spacing: -.022em; font-weight: 600; }
.t-sm { font-size: 1.3125rem; line-height: 1.19; letter-spacing: -.016em; font-weight: 600; }
.eyebrow { font-size: clamp(1.06rem, 1.5vw, 1.3125rem); line-height: 1.2; letter-spacing: -.014em; font-weight: 600; color: var(--soft); }
.intro { font-size: clamp(1.19rem, 1.55vw, 1.3125rem); line-height: 1.38; letter-spacing: -.014em; font-weight: 600; color: var(--soft); max-width: var(--measure); text-wrap: pretty; }
.intro strong, .intro b { font-weight: 600; color: var(--fg); }
.body { color: var(--muted); max-width: 62ch; }
.body strong { color: var(--fg); font-weight: 600; }
.caption { font-size: .875rem; line-height: 1.43; letter-spacing: -.004em; color: var(--muted); }
.caption strong { color: var(--fg); font-weight: 600; }
.center { text-align: center; margin-inline: auto; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding-block: var(--pad); position: relative; }
.sec--tight-top { padding-top: 0; }
.head { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(44px, 6vw, 84px); }
.head.center { justify-items: center; }

/* ───────── Boutons et liens ───────── */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 22px; border-radius: 980px; font-size: 17px; line-height: 1.2; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.pill--primary { background: var(--accent); color: #fff; }
.pill--primary:hover { background: #2b82ff; }
.pill--ghost { border: 1px solid currentColor; }
.pill--ghost:hover { background: var(--fg, var(--ink)); color: var(--bg, #fff); border-color: transparent; }
.pill--sm { min-height: 30px; padding: 6px 14px; font-size: 12px; letter-spacing: -.004em; }
.more { color: var(--link); text-decoration: none; font-size: clamp(1.06rem, 1.4vw, 1.3125rem); letter-spacing: -.014em; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: ""; width: .5em; height: .5em; border-right: .11em solid currentColor; border-top: .11em solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: .2em; }
.more:hover::after { transform: translateX(3px) rotate(45deg); }

/* ───────── En-tête flottant ───────── */
.nav { position: fixed; inset: 12px 0 auto 0; z-index: 100; display: flex; justify-content: center; pointer-events: none; padding-inline: 12px; }
.nav__bar {
  pointer-events: auto; position: relative; width: min(1024px, 100%); min-height: 52px; padding: 0 11px 0 24px; border-radius: 26px;
  display: flex; align-items: center; gap: 20px;
  background: rgba(255, 255, 255, .72); color: var(--ink); border: 1px solid rgba(0, 0, 0, .07);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.nav[data-tone="dark"] .nav__bar { background: rgba(22, 22, 23, .72); color: var(--fog); border-color: rgba(255, 255, 255, .1); }
.nav__name { font-size: 1.19rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a { font-size: 12px; letter-spacing: -.004em; text-decoration: none; opacity: .82; padding: 8px 0; transition: opacity .2s; }
.nav__links a:hover, .nav__links a[aria-current] { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__menu { display: none; }

/* ───────── Ouverture ───────── */
.hero { position: relative; }
.hero__stage { position: relative; min-height: 100svh; overflow: clip; display: grid; grid-template-rows: 1fr auto; background: var(--fog); color: var(--ink); }
.hero__copy { display: grid; justify-items: center; align-content: center; gap: clamp(14px, 2vw, 26px); text-align: center; padding: 15svh var(--gutter) 2svh; }
.hero__name { white-space: nowrap; }
.hero__name .l { display: inline-block; }
.hero__sub { font-size: clamp(1.19rem, 2.1vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--gray-deep); max-width: 30ch; text-wrap: balance; }
.hero__sub span { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.hero__fan { position: relative; height: 36svh; pointer-events: none; }
.sheet { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 22px 44px -8px rgba(0, 0, 0, .22), 0 60px 90px -30px rgba(0, 0, 0, .2); overflow: hidden; }
.sheet img { width: 100%; height: auto; }
.hero__fan .sheet { position: absolute; left: 50%; top: 7svh; width: clamp(140px, 16.5vw, 250px); transform-origin: 50% 120%; transform: translateX(-50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--rot)); }
.hero__fan .sheet:nth-child(1) { --x: -158%; --y: 20%; --rot: -10deg; }
.hero__fan .sheet:nth-child(2) { --x: -51%; --y: 4%; --rot: -3.5deg; z-index: 2; }
.hero__fan .sheet:nth-child(3) { --x: 51%; --y: 4%; --rot: 3.5deg; z-index: 2; }
.hero__fan .sheet:nth-child(4) { --x: 158%; --y: 20%; --rot: 10deg; }
.hero__ia { display: none; }
.hero__chapter { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 12svh var(--gutter) 10svh; background: var(--black); color: var(--fog); --fg: var(--fog); --soft: var(--gray); }

.js-motion .hero { height: 340vh; }
.js-motion .hero__stage { position: sticky; top: 0; height: 100svh; display: block; background: rgb(var(--hbg, 245 245 247)); }
.js-motion .hero__copy { position: absolute; inset: 0 0 34svh 0; padding-block: 12svh 0; }
.js-motion .hero__name { color: rgb(var(--hfg, 29 29 31)); }
.js-motion .hero__name .l { opacity: var(--o, 1); }
.js-motion .hero__fan { position: absolute; inset: auto 0 0 0; }
.js-motion .hero__chapter { position: absolute; inset: auto 0 7svh 0; padding: 0 var(--gutter); background: none; opacity: 0; }
.js-motion .ia-anchor { top: calc(100% - 100svh); }
.ia-ready .hero__ia { display: flex; position: absolute; inset: 0 0 20svh 0; align-items: center; justify-content: center; pointer-events: none; font-weight: 600; font-size: min(50svh, 40vw); line-height: .95; letter-spacing: -.05em; }
/* Pas de will-change ici : les lettres doivent être redessinées à chaque échelle pour rester nettes. */
.ia { display: inline-block; transform-origin: 50% 50%; position: relative; opacity: 0; }
.ia--i { z-index: 2; }
/* Remplissage « backwards » seulement : une fois l'entrée finie, le défilement doit pouvoir piloter l'opacité. */
.js-motion .hero__copy > *, .js-motion .hero__fan .sheet { animation: rise 1.1s var(--ease) backwards; }
.js-motion .hero__cta .pill--ghost { color: rgb(var(--hfg, 29 29 31)); }
.js-motion .hero__sub { animation-delay: .12s; } .js-motion .hero__cta { animation-delay: .2s; }
.js-motion .hero__fan .sheet { animation-name: fan; animation-duration: 1.5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.js-motion .hero__fan .sheet:nth-child(2) { animation-delay: .25s; } .js-motion .hero__fan .sheet:nth-child(3) { animation-delay: .33s; }
.js-motion .hero__fan .sheet:nth-child(1) { animation-delay: .42s; } .js-motion .hero__fan .sheet:nth-child(4) { animation-delay: .5s; }
.no-intro .hero__copy > *, .no-intro .hero__fan .sheet { animation: none !important; }
.no-intro *, .no-intro *::before, .no-intro *::after { transition: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fan { from { opacity: 0; transform: translateX(-50%) translateY(70%) rotate(0deg); } }

/* ───────── Révélations discrètes ───────── */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-motion [data-reveal].in, .no-intro [data-reveal] { opacity: 1; transform: none; }

/* ───────── Chapitre IA : pastilles et scène ───────── */
.stagebox { background: var(--card); border-radius: var(--r); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: min(690px, 78svh); overflow: hidden; }
.stagebox__list { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(28px, 5vw, 80px) clamp(22px, 4vw, 64px); }
.chip { text-align: left; border-radius: 28px; background: rgba(66, 66, 69, .5); color: var(--fog); transition: background .35s var(--ease); max-width: 100%; }
.chip__head { display: flex; align-items: center; gap: 12px; padding: 14px 24px 14px 14px; font-size: 17px; font-weight: 600; letter-spacing: -.014em; width: 100%; text-align: left; }
.chip__head i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; opacity: .9; }
.chip__head i::before, .chip__head i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.chip__head i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.chip__head small { font-size: 14px; font-weight: 400; color: var(--gray); margin-left: 4px; }
.chip__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.chip__body > div { overflow: hidden; }
.chip__body p { padding: 0 26px 22px 52px; font-size: 17px; line-height: 1.42; color: var(--gray); max-width: 44ch; }
.chip__body p strong { color: var(--fog); font-weight: 600; }
.chip.is-open { background: rgba(66, 66, 69, .78); }
.chip.is-open .chip__body { grid-template-rows: 1fr; }
.chip.is-open .chip__head i::after { transform: translate(-50%, -50%) rotate(0deg); }
.chip:hover { background: rgba(86, 86, 90, .78); }
.stagebox__view { position: relative; min-height: 420px; }
.view { position: absolute; inset: 0; display: grid; align-content: center; padding: clamp(28px, 5vw, 72px); opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .55s; }
.view.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.view__big { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.view__big em { font-style: normal; color: var(--gray); }
.view__meta { margin-top: 22px; color: var(--gray); font-size: 17px; }
.view ol.courses { display: grid; gap: 10px; }
.view ol.courses li { font-size: clamp(1.15rem, 2vw, 1.75rem); line-height: 1.14; letter-spacing: -.024em; font-weight: 600; color: var(--gray); }
.view ol.courses li:nth-child(-n+2) { color: var(--fog); }
.view--sheet { justify-items: center; perspective: 1400px; }
.view--sheet .sheet { width: min(64%, 360px); transform: rotateY(-16deg) rotateX(6deg) rotate(2deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 40px 60px 90px -20px rgba(0, 0, 0, .8); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); margin-top: clamp(56px, 7vw, 100px); text-align: center; }
.spec__k { font-size: .875rem; color: var(--soft); }
.spec__v { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.07; letter-spacing: -.04em; font-weight: 600; margin: 4px 0 6px; }
.spec__d { font-size: .875rem; line-height: 1.43; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* ───────── Recherche : scène immersive ───────── */
.rq { position: relative; background: var(--white); }
.rq__stage { position: relative; }
.scene { position: relative; background: var(--black); color: var(--fog); border-radius: var(--r); overflow: hidden; margin-inline: var(--gutter); min-height: 80svh; display: grid; align-content: end; }
.scene .twin { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__levels { position: relative; display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: clamp(24px, 4vw, 64px); }
.level__n { font-size: .875rem; color: var(--gray); }
.level h3 { margin-top: 6px; }
.level p { margin-top: 10px; color: var(--gray); max-width: 32ch; font-size: 17px; line-height: 1.42; }
.level p strong { color: var(--fog); font-weight: 600; }
.scene__dots { display: none; }

.js-motion .rq { height: 470vh; }
.js-motion .rq__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.js-motion .scene { position: absolute; inset: 0; margin: 0; border-radius: 0; min-height: 0; display: block; will-change: clip-path; }
.js-motion .scene__levels { position: absolute; left: var(--gutter); bottom: 11svh; width: min(34rem, calc(100% - 2 * var(--gutter))); display: block; padding: 0; }
.js-motion .level { position: absolute; left: 0; bottom: 0; opacity: 0; }
.js-motion .scene__dots { display: flex; gap: 8px; position: absolute; left: var(--gutter); bottom: 6svh; }
.scene__dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .28); transition: background .3s, width .3s var(--ease); }
.scene__dots i.on { background: #fff; width: 28px; }

/* ───────── Feuillets réels ───────── */
.reel { position: relative; }
.reel__track { display: flex; gap: clamp(18px, 2.4vw, 34px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 60px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.reel__track::-webkit-scrollbar { display: none; }
.reel__item { flex: none; width: clamp(240px, 27vw, 380px); scroll-snap-align: start; }
.reel__item .sheet { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -12px rgba(0, 0, 0, .2); }
.reel__item figcaption { margin-top: 20px; }
.reel__nav { display: flex; gap: 14px; justify-content: flex-end; padding-inline: var(--gutter); margin-top: -24px; }
.round { width: 36px; height: 36px; border-radius: 50%; background: rgba(210, 210, 215, .64); color: rgba(0, 0, 0, .56); display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.round:hover { background: rgba(223, 223, 227, .9); color: rgba(0, 0, 0, .72); }
.round[disabled] { opacity: .36; cursor: default; }
.round svg { width: 9px; height: 16px; }

/* ───────── Prix ───────── */
.prix { position: relative; }
.prix__stage { position: relative; min-height: 100svh; overflow: clip; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 4vw, 70px); padding: 14svh var(--gutter) 10svh; }
.prix__title { font-size: clamp(2.6rem, min(8.8vw, 13.5svh), 8.4rem); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.prix__title span { display: inline-block; }
.prix__copy { display: grid; gap: clamp(14px, min(2.2vw, 3svh), 30px); }
.prix .intro { font-size: clamp(1.05rem, min(1.55vw, 2.7svh), 1.3125rem); }
.prix .more { font-weight: 600; }
.prix__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.prix__links .pill { white-space: normal; text-align: center; max-width: 100%; }
.prix__object { perspective: 1600px; display: grid; justify-items: center; }
.prix__object .sheet { width: min(100%, 440px); transform: rotateY(-22deg) rotateX(7deg) rotate(1.5deg); transform-origin: 60% 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 50px 70px 100px -30px rgba(0, 0, 0, .34); }
.prix__facts { display: flex; flex-wrap: wrap; gap: 10px 34px; }
.js-motion .prix { height: 360vh; }
.js-motion .prix__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.js-motion .prix__title span { color: #c7c7cc; transition: color .35s var(--ease); }
.js-motion .prix__title span.lit { color: var(--ink); }

/* ───────── Parcours : mosaïque ───────── */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tile { background: var(--card); border-radius: var(--r); padding: clamp(26px, 3.2vw, 46px); display: grid; align-content: space-between; gap: 34px; min-height: clamp(300px, 30vw, 420px); position: relative; overflow: hidden; }
.tile--hero { grid-column: span 6; background: var(--black); color: var(--fog); --fg: var(--fog); --muted: var(--gray); --soft: var(--gray); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; align-content: end; min-height: clamp(340px, 33vw, 470px); }
.tile--half { grid-column: span 3; }
.tile--third { grid-column: span 2; }
.tile__year { font-size: clamp(4.4rem, 12vw, 11rem); line-height: .86; letter-spacing: -.06em; font-weight: 600; }
.tile--half .tile__year, .tile--third .tile__year { font-size: clamp(3.4rem, 6.6vw, 6rem); }
.tile__role { margin-top: 10px; }
.tile__when { font-size: .875rem; color: var(--soft); }
.tile ul { display: grid; gap: 12px; }
.tile li { font-size: clamp(1.06rem, 1.45vw, 1.3125rem); line-height: 1.3; letter-spacing: -.014em; font-weight: 600; color: var(--soft); }
.tile li strong { color: var(--fg); font-weight: 600; }
.tile p:not(.tile__year):not(.eyebrow):not(.verb) { color: var(--muted); }

/* ───────── Écrits ───────── */
.cardreel .reel__item { width: clamp(280px, 44vw, 620px); }
.cover { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10.5; position: relative; display: grid; }
.cover--sheet { background: #e8e8ed; place-items: start center; padding-top: 9%; }
.cover--sheet .sheet { width: 54%; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 50px -14px rgba(0, 0, 0, .3); }
.cover--type { align-content: end; padding: clamp(22px, 3.4vw, 48px); background: var(--black); color: var(--fog); }
.cover--type.is-light { background: #e8e8ed; color: var(--ink); }
.cover--type strong { font-size: clamp(1.6rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -.042em; font-weight: 600; text-wrap: balance; }
.cover--type small { font-size: .875rem; color: var(--gray); margin-bottom: 12px; }
.cover--type.is-light small { color: var(--gray-deep); }
.cover--art { color: #fff; }
.cover--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78)); }
.cover--art small, .cover--art strong { position: relative; z-index: 1; }
.cover--art small { color: rgba(255, 255, 255, .78); }
.cardreel figcaption { margin-top: 22px; max-width: 46ch; font-size: 17px; line-height: 1.42; color: var(--muted); font-weight: 600; letter-spacing: -.012em; }
.cardreel figcaption strong { color: var(--fg); }

/* ───────── Formations ───────── */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 6vw, 100px); border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger strong { font-weight: 600; font-size: 17px; letter-spacing: -.012em; }
.ledger span { font-size: .875rem; color: var(--muted); }
.ledger span:last-child { grid-column: 1 / -1; }
.ledger a { color: var(--link); text-decoration: none; }
.ledger a:hover { text-decoration: underline; }

/* ───────── Contact et pied ───────── */
.contact { text-align: center; }
.contact .t-xl { max-width: 14ch; margin-inline: auto; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(28px, 3vw, 44px); }

/* ───────── Page du mémoire ───────── */
.doc-hero { position: relative; min-height: 100svh; display: grid; align-content: end; overflow: clip; padding: 18svh var(--gutter) 9svh; }
.doc-hero .twin { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .12) 30%, #000 62%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .12) 30%, #000 62%); }
.doc-hero__body { position: relative; display: grid; gap: 18px; max-width: 980px; }
.doc-hero__body .t-xl { font-size: clamp(2.3rem, 5.6vw, 5rem); max-width: 14.5em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.split--media { align-items: center; }
.split .sheet { max-width: 420px; justify-self: center; }
.figcard { background: var(--black); border-radius: var(--r); position: sticky; top: 12svh; height: 76svh; overflow: hidden; }
.figcard .twin { width: 100%; height: 100%; }
.figcard figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; font-size: 12px; color: var(--gray); }
.steps { display: grid; }
.step { min-height: 76svh; display: grid; align-content: center; gap: 12px; opacity: .3; transition: opacity .5s var(--ease); }
.step.is-active, html:not(.js-motion) .step { opacity: 1; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.trio .tile { min-height: clamp(300px, 28vw, 400px); }
.trio .tile ul li { font-size: 17px; font-weight: 400; line-height: 1.42; color: var(--muted); letter-spacing: -.006em; }
.verb { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.quote { font-size: clamp(2.4rem, 7.4vw, 7rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; max-width: 13ch; }
.quote span { color: var(--gray); }
.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.next a { text-decoration: none; background: var(--card); border-radius: var(--r); padding: clamp(26px, 3.2vw, 46px); display: grid; gap: 8px; transition: transform .35s var(--ease); }
.next a:hover { transform: scale(1.012); }

/* ───────── Prix : le magazine qui s'ouvre ───────── */
.prix__stage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.book { --w: min(19vw, 32svh, 300px); position: relative; width: calc(var(--w) * 2); aspect-ratio: 1000 / 642.5; justify-self: center; perspective: 2200px; }
.book__body { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 75% 50%; transition: none; }
.book__page { position: absolute; top: 0; width: 50%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.book__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book__left { left: 0; }
.book__right { left: 50%; }
.book__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; transform: translateZ(1px) rotateY(-180deg); }
.book__leaf .book__page { left: 0; width: 100%; }
.book__leaf .book__back { transform: rotateY(180deg); }
.book__rear { left: 50%; transform: rotateY(180deg) translateZ(1px); }
.book__shadow { position: absolute; left: 4%; right: 4%; bottom: -7%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); filter: blur(6px); }
.book__spine { position: absolute; left: 50%; top: 0; width: 6%; height: 100%; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .14), rgba(0, 0, 0, 0)); pointer-events: none; }
.js-motion .book__leaf { transform: translateZ(1px) rotateY(0deg); }
.js-motion .book__left { visibility: hidden; }
.js-motion .book__body { transform: translateX(-25%); }

/* ───────── Formations : registre groupé ───────── */
.ledger__group { grid-column: 1 / -1; padding: 34px 0 6px; border-bottom: 0 !important; }
.ledger__group:first-child { padding-top: 6px; }
.ledger__group p { font-size: clamp(1.19rem, 1.55vw, 1.3125rem); font-weight: 600; letter-spacing: -.014em; }
.video { border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ───────── Pages de pratiques ───────── */
.page-hero { padding: clamp(150px, 22svh, 240px) 0 clamp(50px, 7vw, 90px); }
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 22px); border-radius: var(--r); overflow: hidden; background: var(--card); }
.masonry img { width: 100%; height: auto; }
.shot { border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 70px -24px rgba(0, 0, 0, .28); }
.shot img { width: 100%; height: auto; }
.shots { display: grid; gap: clamp(40px, 6vw, 90px); }
.shots figcaption { margin-top: 22px; max-width: 52ch; font-size: 17px; line-height: 1.42; font-weight: 600; letter-spacing: -.012em; color: var(--muted); }
.shots figcaption strong { color: var(--fg); }
.nine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.nine .tile { min-height: clamp(240px, 22vw, 320px); }
.nine .tile h3 { font-size: clamp(1.19rem, 1.55vw, 1.3125rem); line-height: 1.24; letter-spacing: -.016em; font-weight: 600; text-wrap: pretty; }
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.practice { display: block; text-decoration: none; }
.practice .cover { aspect-ratio: 16 / 11; transition: transform .6s var(--ease); }
.practice:hover .cover { transform: scale(1.012); }
.practice .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice .cover--top img { object-position: 50% 0; }
.practice--wide { grid-column: 1 / -1; }
.practice--wide .cover { aspect-ratio: 1500 / 776; }
.practice--wide .cover img { object-position: 30% 50%; }
.practice .cover--pages { background: #e8e8ed; display: flex; align-items: flex-start; justify-content: center; gap: 4%; padding: 8% 8% 0; }
.practice .cover--pages .sheet { position: static; width: 34%; }
.practice .cover--pages .sheet img { position: static; height: auto; }
.practice__cap { margin-top: 20px; display: grid; gap: 4px; }
.practice__cap span { color: var(--muted); }
.practice__cap strong { font-size: clamp(1.5rem, 2.3vw, 1.75rem); line-height: 1.14; letter-spacing: -.022em; font-weight: 600; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.duo .cover { aspect-ratio: auto; }
.duo .cover img { width: 100%; height: auto; }
/* Articles : lien vers le PDF */
.tile__pdf { font-size: 17px; font-weight: 600; justify-self: start; }

/* Ciel de nuit : quatre vues en plein écran, fondu enchaîné et lente avance */
.sky { position: relative; background: var(--black); color: var(--fog); --fg: var(--fog); --soft: var(--gray); }
.sky__stage { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); padding: clamp(90px, 12vw, 160px) var(--gutter) clamp(40px, 5vw, 70px); }
.sky__layers { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.sky__layer { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.sky__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sky__veil { display: none; }
.sky__copy { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sky__title { font-size: clamp(3.2rem, 11vw, 10rem); line-height: .94; letter-spacing: -.058em; font-weight: 600; }
.sky__line { font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.js-motion .sky { height: 460vh; }
.js-motion .sky__stage { position: sticky; top: 0; height: 100svh; padding: 0; display: block; overflow: hidden; }
.js-motion .sky__layers { position: absolute; inset: 0; display: block; }
.js-motion .sky__layer { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; opacity: 0; will-change: opacity, transform; }
.js-motion .sky__veil { display: block; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, #000 100%), radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 62%); }
.js-motion .sky__copy { position: absolute; inset: 0; align-content: center; padding: 0 var(--gutter); text-shadow: 0 2px 40px rgba(0, 0, 0, .55); }
.js-motion .sky__copy > * { opacity: 0; will-change: opacity, transform; }

/* Pages longues : en-tête avec couverture */
.cover-hero .split { gap: clamp(36px, 7vw, 120px); }
.cover-hero__sheet { width: min(100%, 420px); justify-self: center; transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 50px 90px -30px rgba(0, 0, 0, .8); }
.nine--five, .nine--four { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nine--five .tile { grid-column: span 2; }
.nine--five .tile:nth-child(n + 4) { grid-column: span 3; }
.nine--four .tile { grid-column: span 3; }
.nine--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nine--compact .tile { grid-column: auto; min-height: 0; gap: 18px; padding: clamp(20px, 2.2vw, 30px); }
.nine--compact .tile h3 { font-size: clamp(1.02rem, 1.25vw, 1.15rem); }
.shot--tall { max-height: min(1100px, 150vw); position: relative; }
.shot--tall::after { content: ""; position: absolute; inset: auto 0 0; height: 18%; background: linear-gradient(rgba(18, 18, 18, 0), #121212); }

/* Dorgmal Snow : du fil de fer à la page */
.wire { position: relative; background: var(--black); color: var(--fog); --fg: var(--fog); --soft: var(--gray); }
.wire__stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1400px; margin: 0 auto; }
.wire__copy { display: grid; gap: clamp(16px, 2vw, 26px); align-content: center; }
.wire__frame { border-radius: 18px; overflow: hidden; background: #121212; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -40px rgba(0, 0, 0, .9); }
.wire__bar { height: 30px; display: flex; gap: 7px; align-items: center; padding: 0 14px; background: #1d1d1f; }
.wire__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.wire__view { position: relative; height: min(66svh, 640px); overflow: hidden; }
.wire__page { position: relative; will-change: transform; }
.wire__page img { width: 100%; height: auto; display: block; }
.wire__final { position: absolute; inset: 0; clip-path: inset(0 0 0 0); }
.wire__line { display: none; }
.js-motion .wire { height: 420vh; }
.js-motion .wire__stage { position: sticky; top: 0; height: 100svh; padding-block: 0; }
.js-motion .wire__final { clip-path: inset(0 0 100% 0); }
.js-motion .wire__line { display: block; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #FF5722; box-shadow: 0 0 24px 4px rgba(255, 87, 34, .55); }
.js-motion .wire__step { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-motion .wire__step:not(.is-on) { opacity: .25; }

/* Charte */
.swatches { display: grid; gap: clamp(12px, 1.6vw, 22px); }
.swatch { border-radius: var(--r); padding: clamp(24px, 3vw, 40px); display: grid; gap: 6px; min-height: clamp(150px, 15vw, 200px); align-content: end; }
.swatch strong { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 600; }
.swatch span { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.swatch small { font-size: 14px; opacity: .8; }
.swatch--type { background: var(--card); color: var(--fg); }

/* Lego */
.lego-hero__media { justify-self: center; width: min(100%, 440px); }
.lego-hero__media img { width: 100%; height: auto; border-radius: var(--r); }
.lego-hero__media figcaption { margin-top: 14px; }

/* Epirus : la scène 3D, le texte dans sa propre colonne */
.swarm { position: relative; background: radial-gradient(ellipse at 70% 20%, #16213a, #070b14 55%, #04060a); color: var(--fog); --fg: var(--fog); }
.swarm__stage { position: relative; height: 86svh; overflow: hidden; }
.swarm__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.swarm__copy { position: absolute; inset: 0 auto 0 0; width: min(38%, 520px); display: grid; align-content: center; gap: 18px; padding: 0 clamp(20px, 3vw, 48px) 0 var(--gutter); background: linear-gradient(90deg, rgba(4, 6, 10, .92) 55%, rgba(4, 6, 10, 0)); }
.swarm__step { font-size: clamp(1.4rem, 2.5vw, 2.4rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; color: rgba(245, 245, 247, .45); text-wrap: balance; }
.swarm__step strong { color: var(--fog); font-weight: 600; }
.js-motion .swarm { height: 440vh; }
.js-motion .swarm__stage { position: sticky; top: 0; height: 100svh; }
.js-motion .swarm__step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js-motion .swarm__step.is-on { opacity: 1; transform: none; }

/* Lego : étiquettes des objets, comme dans une maquette BIM */
.build { background: radial-gradient(ellipse at 50% 35%, #15191f, #07080a 70%); }
.build__tags { position: absolute; inset: 0; pointer-events: none; }
.build__tags span { position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #cfe1ff; white-space: nowrap; padding: 5px 9px 5px 18px; border-radius: 8px; background: rgba(12, 20, 34, .72); border: 1px solid rgba(79, 157, 255, .45); opacity: 0; will-change: transform, opacity; }
.build__tags span::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #4f9dff; }

/* Pied de page */
.foot { background: var(--fog); color: var(--gray-deep); border-top: 1px solid rgba(0, 0, 0, .06); }
.foot__bar { display: flex; align-items: center; gap: 12px; padding-block: 22px; font-size: 13px; }
.foot__mark { display: inline-flex; border-radius: 7px; }
.foot__link { margin-left: auto; color: inherit; text-decoration: none; }
.foot__link:hover { text-decoration: underline; }
.foot__mark img { width: 26px; height: 26px; display: block; border-radius: 6px; }
body:has(.contact) .foot { background: var(--black); color: var(--gray); border-top-color: rgba(255, 255, 255, .1); }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.about__photo { margin: 0; justify-self: center; width: min(100%, 240px); }
.about__photo img { width: 100%; height: auto; display: block; border-radius: var(--r); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45); }
.about__text { display: grid; gap: 1em; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: #333336; }
.about__text .t-lg { margin-bottom: .2em; }
.about-photo { margin: 0 auto; max-width: 1024px; }
.about-photo img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.about-photo figcaption { margin-top: 14px; }
.about-text { display: grid; gap: 1em; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; color: #333336; }

/* Lego : la transmission en 3D */
.build { position: relative; background: #000; }
.build__stage { position: relative; height: 82svh; overflow: hidden; }
.build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.js-motion .build { height: 420vh; }
.js-motion .build__stage { position: sticky; top: 0; height: 100svh; }

/* Menu : sous-menus des écrits et des pratiques */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__drop { font: inherit; font-size: 12px; letter-spacing: -.004em; color: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer; opacity: .82; display: inline-flex; align-items: center; gap: 5px; transition: opacity .2s; }
.nav__drop::after { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.nav__drop:hover, .nav__group.is-open .nav__drop, .nav__group:has([aria-current]) .nav__drop { opacity: 1; }
.nav__group.is-open .nav__drop::after { transform: translateY(1px) rotate(225deg); }
.nav__sub { position: absolute; top: calc(100% + 20px); left: 50%; min-width: 250px; padding: 10px; border-radius: 20px; display: grid; background: rgba(255, 255, 255, .97); color: var(--ink); border: 1px solid rgba(0, 0, 0, .07); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav[data-tone="dark"] .nav__sub { background: rgba(29, 29, 31, .97); color: var(--fog); border-color: rgba(255, 255, 255, .1); }
.nav__links .nav__sub a { font-size: 15px; font-weight: 600; letter-spacing: -.012em; padding: 9px 12px; border-radius: 12px; opacity: 1; white-space: nowrap; }
.nav__links .nav__sub a:hover { background: rgba(128, 128, 128, .14); }
.nav__links .nav__sub a:last-child { color: var(--accent); font-weight: 500; }
.nav[data-tone="dark"] .nav__links .nav__sub a:last-child { color: var(--accent-on-dark); }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub, .nav__group.is-open .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Logo de marque au-dessus d'un titre */
.brand-logo { display: block; margin: 0 auto 6px; width: 64px; height: 64px; border-radius: 16px; }

/* En-tête avec couverture, sans liseré */
.cover-hero__sheet { background: none; border-radius: 6px; overflow: hidden; }
.cover-hero__sheet img { display: block; width: 100%; height: auto; }

/* Le Massif : trois visuels */
.trio-media { display: grid; grid-template-columns: 1.35fr .85fr 1.35fr; gap: clamp(12px, 1.6vw, 22px); }
.trio-media .cover { aspect-ratio: auto; height: clamp(220px, 26vw, 400px); }
.trio-media .cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--alien { aspect-ratio: 672 / 890; width: min(100%, 460px); justify-self: center; }
.cover--alien img { width: 100%; height: 100%; object-fit: cover; }

/* Epirus : en-tête plein cadre et scène de l'essaim */
.epi-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #05070a; color: var(--fog); --fg: var(--fog); --soft: rgba(245, 245, 247, .72); }
.epi-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.epi-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .92) 100%); }
.epi-hero__copy { position: relative; display: grid; gap: clamp(14px, 1.8vw, 22px); padding-bottom: clamp(56px, 9svh, 110px); }
.epi-hero__title { font-size: clamp(3rem, 9vw, 8.6rem); line-height: .95; letter-spacing: -.055em; font-weight: 600; max-width: 11ch; }
.epi-hero .intro { max-width: 30em; color: rgba(245, 245, 247, .72); }
.js-motion .epi-hero__img { animation: epi-in 2.8s var(--ease) both; }
@keyframes epi-in { from { transform: scale(1.12); filter: brightness(.4); } }

/* Le Miroir numérique */
.mirror-hero { background: #000; color: var(--fog); --fg: var(--fog); --soft: var(--gray); padding: clamp(130px, 20svh, 220px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.mirror-hero__copy { display: grid; justify-items: center; text-align: center; }
.mirror-hero__title, .mirror-hero__reflect { font-size: clamp(3.2rem, 11vw, 10rem); line-height: .92; letter-spacing: -.058em; font-weight: 600; }
.mirror-hero__title { margin-top: 14px; }
.mirror-hero__reflect { transform: scaleY(-1); margin-top: .04em; color: transparent; background: linear-gradient(180deg, rgba(79, 157, 255, .55), rgba(79, 157, 255, 0) 70%); -webkit-background-clip: text; background-clip: text; filter: blur(1.5px); user-select: none; transform-origin: 50% 50%; -webkit-mask-image: linear-gradient(0deg, #000, transparent 75%); mask-image: linear-gradient(0deg, #000, transparent 75%); }
.js-motion .mirror-hero__reflect { animation: ripple 6s ease-in-out infinite; }
@keyframes ripple { 0%, 100% { transform: scaleY(-1) skewX(0deg); filter: blur(1.5px); } 50% { transform: scaleY(-1.03) skewX(-2deg); filter: blur(2.5px); } }
.mirror-hero__sub { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: clamp(4px, 1vw, 14px); max-width: 24ch; text-wrap: balance; }
.midnight { position: relative; background: #000; color: var(--fog); }
.midnight__stage { position: relative; display: grid; place-items: center; padding: clamp(80px, 10vw, 140px) var(--gutter); overflow: hidden; }
.midnight__glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(41, 98, 255, .32), rgba(41, 98, 255, .08) 45%, rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.midnight__copy { position: relative; max-width: 900px; display: grid; gap: clamp(26px, 4vw, 48px); }
.midnight__text { font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.35; letter-spacing: -.022em; font-weight: 600; color: var(--fog); }
.midnight__question { font-size: clamp(2rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.js-motion .midnight { height: 340vh; }
.js-motion .midnight__stage { position: sticky; top: 0; height: 100svh; padding-block: 0; }
.js-motion .midnight__text .w { color: #3a3a3c; transition: color .3s var(--ease); }
.js-motion .midnight__text .w.lit { color: var(--fog); }
.js-motion .midnight__question { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-motion .midnight__question.is-on { opacity: 1; transform: none; }
.article__body { max-width: 720px; margin-inline: auto; display: grid; gap: 1.1em; font-size: clamp(1.06rem, 1.35vw, 1.24rem); line-height: 1.62; letter-spacing: -.01em; color: #333336; }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; color: var(--ink); margin-top: 1.4em; text-wrap: balance; }
.article__body h2:first-child { margin-top: 0; }
.article__pull { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.18; letter-spacing: -.03em; font-weight: 600; color: var(--ink); padding: .4em 0 .4em .9em; border-left: 3px solid var(--accent); margin: .4em 0; }

/* Photographie : visionneuse */
[data-lightbox] img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86svh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); }
.lightbox .round { position: absolute; background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); width: 44px; height: 44px; }
.lightbox .round:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close svg { width: 14px; height: 14px; }

/* Logos des terrains, en gris */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; min-height: 44px; }
.logo { width: auto; filter: grayscale(1) brightness(0); opacity: .5; }
.logo-lockup { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: #000; opacity: .5; }
.logo-lockup .logo { opacity: 1; }

/* Liseuse : document entier, page par page */
.reader { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(20px, 3vw, 36px); padding: 0 var(--gutter); outline: none; }
.reader__stage { width: 100%; display: grid; place-items: center; perspective: 2600px; padding: 6px 0 18px; touch-action: pan-y; user-select: none; }
.reader__book { --w: min(40vw, 44svh, 540px); position: relative; width: calc(var(--w) * 2); aspect-ratio: 2000 / 1414; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.reader__page { position: absolute; top: 0; width: 50%; height: 100%; background: transparent; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 40px 70px -30px rgba(0, 0, 0, .55); }
.reader__page img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.reader__page.is-empty { visibility: hidden; }
.reader__left { left: 0; }
.reader__right { left: 50%; }
.reader__left::after, .reader__right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; }
.reader__left::after { right: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12)); }
.reader__right::after { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0)); }
.reader__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; visibility: hidden; z-index: 2; transition: transform .9s cubic-bezier(.45, .05, .25, 1), opacity .9s ease; }
.reader__leaf .reader__page { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.reader__back { transform: rotateY(180deg); }
.reader.is-single .reader__book { width: var(--w); aspect-ratio: 1000 / 1414; }
.reader.is-single .reader__left { display: none; }
.reader.is-single .reader__right, .reader.is-single .reader__leaf { left: 0; width: 100%; }
.reader.is-single .reader__right::after { display: none; }
.reader__bar { display: flex; align-items: center; gap: 14px; width: min(100%, 760px); }
.reader__bar input { flex: 1; width: 0; min-width: 0; accent-color: var(--link); }
.reader__count { min-width: 15ch; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--soft); font-variant-numeric: tabular-nums; }
.dark .reader__bar .round { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.dark .reader__bar .round:hover { background: rgba(255, 255, 255, .24); }
.reader__full svg { width: 14px; height: 14px; }
.reader:fullscreen { background: #000; align-content: center; --soft: var(--gray); --link: var(--accent-on-dark); }
.reader:fullscreen .reader__book { --w: min(46vw, 62svh, 760px); }
.reader:fullscreen .reader__bar .round { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); }
.reader__all { display: flex; gap: 16px; overflow-x: auto; width: 100%; scroll-snap-type: x mandatory; }
.reader__all img { width: min(70vw, 420px); height: auto; scroll-snap-align: start; flex: none; }
.js .reader__all { display: none; }
html:not(.js) .reader__stage, html:not(.js) .reader__bar { display: none; }

@media (max-width: 834px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { width: min(64%, 220px); }
  .swarm__copy { inset: 0 0 auto 0; width: auto; height: 42%; align-content: start; padding: clamp(96px, 14svh, 130px) var(--gutter) 0; background: linear-gradient(180deg, rgba(4, 6, 10, .95) 60%, rgba(4, 6, 10, 0)); }
  .swarm__step { font-size: 1.35rem; }
  .practice--wide .cover { aspect-ratio: 4 / 3; }
  .practice--wide .cover img { object-position: 25% 50%; }
  .nav .nav__links { max-height: calc(100svh - 90px); overflow-y: auto; background: rgba(255, 255, 255, .97); }
  .nav[data-tone="dark"] .nav__bar .nav__links { background: rgba(22, 22, 23, .97); }
  .nav__group { display: block; }
  .nav__drop { font-size: 17px; padding: 12px 0 4px; opacity: .55; cursor: default; pointer-events: none; }
  .nav__drop::after { display: none; }
  .nav__sub, .nav__group:hover .nav__sub, .nav__group.is-open .nav__sub { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: 0; box-shadow: none; padding: 0 0 8px 14px; min-width: 0; color: inherit; }
  .nav[data-tone="dark"] .nav__sub { background: none; }
  .nav__links .nav__sub a { font-size: 16px; padding: 8px 0; border-bottom: 0; }
  .trio-media { grid-template-columns: 1fr; }
  .trio-media .cover { height: auto; aspect-ratio: 16 / 10; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .wire__stage { grid-template-columns: 1fr; align-content: center; gap: 22px; }
  .wire__view { height: 52svh; }
  .wire .t-xl { font-size: clamp(2rem, 8vw, 2.6rem); }
  .wire__step { font-size: 1rem; }
  .nine--five .tile, .nine--five .tile:nth-child(n + 4), .nine--four .tile { grid-column: 1 / -1; }
  .reader__book { --w: min(80vw, 56svh); }
  .reader__count { min-width: 11ch; font-size: 14px; }
  .masonry { columns: 2; }
  .nine, .practices, .duo { grid-template-columns: 1fr; }
  .nine .tile { min-height: 0; }
}

/* ───────── Petits écrans ───────── */
@media (max-width: 834px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 10px 24px 14px; border-radius: 22px; background: inherit; border: inherit; -webkit-backdrop-filter: inherit; backdrop-filter: inherit; }
  .nav__links a { font-size: 17px; padding: 12px 0; opacity: 1; border-bottom: 1px solid rgba(128, 128, 128, .22); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links { display: flex; }
  .nav__menu { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
  .nav__menu svg { width: 14px; height: 8px; transition: transform .3s var(--ease); }
  .nav.is-open .nav__menu svg { transform: rotate(180deg); }
  .hero__name { white-space: normal; font-size: clamp(4.4rem, 27vw, 8.4rem); line-height: .9; }
  .hero__name .line { display: block; }
  .hero__fan { height: 30svh; }
  .hero__fan .sheet { width: 36vw; }
  .hero__fan .sheet:nth-child(1) { --x: -118%; } .hero__fan .sheet:nth-child(4) { --x: 118%; }
  .hero__fan .sheet:nth-child(2) { --x: -40%; } .hero__fan .sheet:nth-child(3) { --x: 40%; }
  .js-motion .hero__copy { inset: 0 0 26svh 0; }
  .ia-ready .hero__ia { font-size: min(40svh, 60vw); inset: 0 0 26svh 0; }
  .stagebox { grid-template-columns: 1fr; }
  .stagebox__view { order: -1; min-height: 360px; }
  .stagebox__list { padding-top: 6px; }
  .specs, .trio, .next, .split { grid-template-columns: 1fr; }
  .specs { gap: 40px; }
  .scene__levels { grid-template-columns: 1fr; }
  .js-motion .scene .twin { inset: 0 0 auto 0; height: 66svh; }
  .prix__stage { grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: 12svh 6svh; gap: 28px; }
  .prix__object { order: -1; }
  .book { --w: min(43vw, 26svh); }
  .prix__object .sheet { width: min(58vw, 30svh); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 18px 26px 44px -18px rgba(0, 0, 0, .34); }
  .doc-hero .twin { -webkit-mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, .15) 78%); mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, .15) 78%); }
  .tile--hero { grid-template-columns: 1fr; }
  .tile--half, .tile--third { grid-column: span 6; }
  .tile { min-height: 0; }
  .ledger { grid-template-columns: 1fr; }
  .figcard { top: 76px; height: 40svh; z-index: 2; }
  .step { min-height: 56svh; }
  .reel__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
