/* Ugokami — « papier qui bouge » (動く紙).
   Aplats, ombres dures en feuilles décalées, aucun dégradé, aucun flou (sauf
   le menu mobile flottant), aucun backdrop-filter. Polices système seulement.
   Sombre par défaut ; clair quand le système le demande.
   Montrer plutôt que dire : peu de mots, en gros ; de grands visuels. */

/* ---------- Jetons ---------- */
:root {
  --bg: #140a1f; --bg-raised: #1c0f2b; --surface: #241336; --surface-2: #2e1944;
  --line: #3d2457; --line-strong: #5a3a78; --ghost-line: #7a5a96;
  --text: #f2dac7; --text-dim: #cbb5c4; --text-faint: #a48fae;
  --violet: #5a0081; --violet-hover: #6a008a; --violet-mid: #49007a; --violet-deep: #2f0053;
  --violet-edge: #9b4fd1; --violet-light: #c99bf0;
  --gold: #d6a800; --gold-hover: #e4b91c; --gold-press: #ce9a00; --gold-deep: #bd8d00; --gold-sheet: #9c7300;
  --gold-ink: #d6a800;
  --cyan: #1bd3ca; --cream: #f2dac7; --on-gold: #2f0053; --on-violet: #f2dac7;
  --link: #c99bf0; --focus: #1bd3ca; --danger: #e06666;
  --mesh-line: rgba(27, 211, 202, .14); --mesh-dot: rgba(242, 218, 199, .5);
  --plane-1: #1c0f2b; --plane-2: #2f0053;
  --sheet-1: #2f0053; --sheet-1-rim: #49007a; --sheet-2: #241336; --sheet-2-rim: #3d2457;
  --secondary-sheet: #2f0053;
  --band: #5a0081;
  --ghost-hover: rgba(201, 155, 240, .10); --ghost-press: rgba(201, 155, 240, .16); --ghost-hover-line: #c99bf0;
  --stage: #22102f; --stage-line: #3d2457; --stage-mesh: rgba(27, 211, 202, .62); --stage-dot: #f2dac7;
  --layer-shadow: rgba(10, 4, 18, .55);
  --field-bg: rgba(214, 168, 0, .14);
  --live: #1bd3ca;
  --shadow-stack: 6px 6px 0 -1px var(--sheet-1), 6px 6px 0 0 var(--sheet-1-rim), 12px 12px 0 -2px var(--sheet-2), 12px 12px 0 -1px var(--sheet-2-rim);
  --shadow-lift: 4px 4px 0 0 var(--sheet-1-rim);
  --shadow-float: 0 24px 48px -12px rgba(12, 6, 20, .6);

  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-jp: "Yu Gothic UI", "Yu Gothic", YuGothic, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "Noto Sans CJK JP", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;

  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px; --cut: 18px;
  --gutter: 16px; --header-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbf3ec; --bg-raised: #f6e9de; --surface: #ffffff; --surface-2: #f5e6da;
    --line: #e3cdbd; --line-strong: #8f6f9a; --ghost-line: #9a7a9f;
    --text: #2f0053; --text-dim: #5b3f6e; --text-faint: #6e5779;
    --link: #5a0081; --focus: #0a7a74; --violet-edge: #5a0081;
    --gold-ink: #7d5c00;
    --mesh-line: rgba(10, 122, 116, .12); --mesh-dot: rgba(47, 0, 83, .35);
    --plane-1: #f6e9de; --plane-2: #f2dac7;
    --sheet-1: #f2dac7; --sheet-1-rim: #dfc5b9; --sheet-2: #e9cdb8; --sheet-2-rim: #c39d95;
    --secondary-sheet: #2f0053;
    --band: #f2dac7;
    --ghost-hover: rgba(90, 0, 129, .06); --ghost-press: rgba(90, 0, 129, .12); --ghost-hover-line: #5a0081;
    --stage-line: #2f0053;
    --field-bg: rgba(125, 92, 0, .10);
    --live: #086e69;
    color-scheme: light;
  }
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }
@media (min-width: 1120px) { :root { --header-h: 68px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65; font-weight: 400;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: #140a1f; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--text); margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote, pre, table { margin: 0; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--text); }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .9em; }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.display {
  font-size: clamp(2.25rem, 1.3rem + 3.3vw, 3.9rem); line-height: 1.06; letter-spacing: -.025em;
}
.h2, .section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; }
.showcase-text h2 { font-size: clamp(2rem, 1.35rem + 2vw, 2.875rem); line-height: 1.1; letter-spacing: -.02em; }
.h3, h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; }
.lede { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.55; color: var(--text-dim); max-width: 60ch; }
.small { font-size: .875rem; line-height: 1.5; }
.faint { color: var(--text-faint); }
.dim { color: var(--text-dim); }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }
/* La bande de papier, derrière un mot. */
/* Sans marge intérieure : la ponctuation qui suit reste collée au mot, et
   .band-tie l'empêche de passer seule à la ligne. */
.band { position: relative; display: inline-block; z-index: 0; }
.band-tie { white-space: nowrap; }
.band::before {
  content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .14em; bottom: .02em;
  background: var(--band); transform: rotate(-1.5deg);
}
.field {
  font-family: var(--font-mono); font-size: .85em; background: var(--field-bg);
  border: 1px dashed var(--gold-ink); border-radius: 4px; padding: 0 .3em; color: var(--text);
}
.pill {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .8125rem; line-height: 1;
  padding: 6px 9px; border-radius: var(--r-xs); background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks > li { position: relative; padding-left: 24px; color: var(--text-dim); }
.ticks > li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px;
  background: var(--gold-ink); transform: rotate(45deg);
}
.ticks > li strong { color: var(--text); }

/* ---------- Boutons : la feuille dessous ---------- */
.btn {
  --sheet: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 0 var(--sheet);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 120ms, border-color 120ms, color 120ms;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--l { min-height: 48px; padding: 14px 26px; font-size: 16px; }
.btn--s { min-height: 32px; padding: 7px 14px; font-size: 14px; gap: 8px; }
.btn--s svg { width: 18px; height: 18px; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gold); color: var(--on-gold); --sheet: var(--gold-sheet); }
.btn--primary:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn--primary:active { background: var(--gold-press); }
.btn--secondary { background: var(--violet); color: var(--on-violet); border-color: var(--violet-edge); --sheet: var(--secondary-sheet); }
.btn--secondary:hover { background: var(--violet-hover); color: var(--on-violet); }
.btn--primary:hover, .btn--secondary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 5px 0 0 var(--sheet); }
.btn--primary:active, .btn--secondary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 0 0 var(--sheet); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--ghost-line); box-shadow: none; }
.btn--ghost:hover { background: var(--ghost-hover); border-color: var(--ghost-hover-line); color: var(--text); }
.btn--ghost:active { transform: translateY(1px); background: var(--ghost-press); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--ghost-line); background: transparent; color: var(--text); cursor: pointer;
  transition: background-color 120ms, border-color 120ms;
}
.icon-btn:hover { background: var(--ghost-hover); border-color: var(--ghost-hover-line); }
.icon-btn svg { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
@media (max-width: 639px) { .actions .btn { min-height: 44px; } }

/* Lien d'évitement */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; }
.skip:focus { top: 10px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color 160ms;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.brand-jp { font-family: var(--font-jp); font-size: 12px; color: var(--text-faint); letter-spacing: .08em; }
.nav { display: none; margin-inline: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; padding: 8px 0; color: var(--text-dim);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current], .nav a.is-active { color: var(--text); }
.nav a[aria-current]::after, .nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px;
  background: var(--gold-ink); transform: rotate(45deg);
}
.header-actions { display: none; align-items: center; gap: 12px; flex: none; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.lang a { padding: 4px 10px; border-radius: var(--r-pill); color: var(--text-dim); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }
/* Le choix EN/FR reste dans l'en-tête à toutes les largeurs, à côté du menu
   mobile : jamais caché derrière lui. */
.header-in > .lang { margin-left: auto; flex: none; }
@media (max-width: 379px) { .brand-jp { display: none; } }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .i-close { display: none; }
.menu[open] .i-close { display: block; }
.menu[open] .i-menu { display: none; }
.menu-panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49; overflow-y: auto;
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow-float);
  padding: 24px var(--gutter) 40px; display: grid; align-content: start; gap: 28px;
}
.menu[open] .menu-panel { animation: menu-in 180ms var(--ease); }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-panel nav a {
  display: block; padding: 10px 0; font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-panel .btn { width: 100%; min-height: 48px; }
.menu-panel .menu-actions { display: grid; gap: 14px; }
html.menu-open { overflow: hidden; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* Quatre liens et un bouton : la navigation tient dès 900 px (site.js ferme le
   menu mobile au même seuil). */
@media (min-width: 900px) {
  .header-in { gap: 24px; }
  .nav + .lang { margin-left: 0; }
  .nav, .header-actions { display: flex; }
  .menu { display: none; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { position: relative; padding-block: clamp(56px, 6vw, 96px); }
.section--raised { background: var(--bg-raised); }
.section--cut { clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%); padding-top: calc(clamp(56px, 6vw, 96px) + 24px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4.5vw, 64px); max-width: 760px; }
.section > .wrap { position: relative; }
.mesh-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: min(100%, 760px); pointer-events: none;
  clip-path: polygon(56% 0, 100% 0, 100% 34%, 74% 42%);
}
.mesh-bg path { stroke: var(--mesh-line); stroke-width: 1; fill: none; }
.mesh-bg circle { fill: var(--mesh-dot); }

/* ---------- Hero ---------- */
/* Le titre et les boutons en une rangée, puis le visuel sur toute la largeur :
   la moitié du premier écran au moins (1440 × 900 : 1180 px de large). */
.hero { position: relative; overflow: hidden; padding-block: clamp(24px, 3.5vw, 48px) clamp(48px, 6vw, 88px); }
.hero-plane { position: absolute; inset: 0; pointer-events: none; }
.hero-plane--1 { background: var(--plane-1); clip-path: polygon(0 0, 64% 0, 44% 100%, 0 100%); }
.hero-plane--2 { background: var(--plane-2); clip-path: polygon(66% 0, 100% 0, 100% 100%, 50% 100%); }
.hero-kanji {
  position: absolute; right: clamp(4px, 1.5vw, 24px); top: clamp(12px, 2.5vw, 32px);
  writing-mode: vertical-rl; font-family: var(--font-jp); font-weight: 700; line-height: 1;
  font-size: clamp(4rem, 9vw, 8.5rem); color: var(--text); opacity: .08; pointer-events: none; user-select: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); }
.hero-copy { display: grid; gap: 22px; align-items: end; }
.hero .display { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5rem); line-height: 1.02; letter-spacing: -.03em; }
.hero-side { display: grid; gap: 22px; justify-items: start; }
.hero-side .lede { max-width: 30ch; }
@media (min-width: 1024px) {
  .hero-copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
}
.hero-art { min-width: 0; }

/* La scène : le cadre du visuel du hero, au format de sa boucle (16:9 sur
   grand écran). En attendant la boucle, la pile de calques y tient debout. */
.stage {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background: var(--stage); border: 1px solid var(--stage-line); box-shadow: var(--shadow-stack);
}
@media (min-width: 640px) { .stage { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .stage { aspect-ratio: 16 / 9; } }
.stack {
  position: absolute; top: 4%; bottom: 4%; left: 50%; aspect-ratio: 755 / 960;
  transform: translateX(-50%);
}
.stack-layer, .stack-mesh {
  --d: 0;
  position: absolute; left: -3%; top: -3%; width: 106%; height: 106%;
  transform: translate(calc(var(--d) * -3px + var(--px, 0) * var(--d) * 4px), calc(var(--d) * -3px + var(--py, 0) * var(--d) * 4px));
  transition: transform 420ms var(--ease);
}
.stack-layer img { width: 100%; height: 100%; }
.stack-layer.is-cut img { filter: drop-shadow(4px 4px 0 var(--layer-shadow)); }
.d-2 { --d: -2; } .d-1 { --d: -1; } .d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; }
.stack-mesh { overflow: visible; }
.stack-mesh .mesh-lines { fill: none; stroke: var(--stage-mesh); stroke-width: 1.5; stroke-linecap: round; }
.stack-mesh .mesh-dots circle { fill: var(--stage-dot); }
.stack-mesh .mesh-key { fill: var(--gold); stroke: var(--stage); stroke-width: 4; stroke-linejoin: round; }
.stack-empty { position: absolute; inset: 18%; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .stack-mesh .mesh-lines { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease) 250ms both; }
  .stack-mesh .mesh-dots, .stack-mesh .mesh-key { animation: fade 400ms ease-out 900ms both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms;
}
.card--stack { box-shadow: var(--shadow-stack); }

/* ---------- Captures et boucles ---------- */
.shot { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* L'ombre en feuilles est celle du cadre : overflow ne la coupe pas. */
.shot-frame {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface);
}
.shot--crop .shot-frame { background: var(--stage); border-color: var(--stage-line); }
.shot--stack .shot-frame { box-shadow: var(--shadow-stack); }
/* Une boucle : la vidéo muette, et son image fixe pour qui demande moins
   d'animations (site.js arrête alors la vidéo). */
.shot-video { display: block; width: 100%; height: auto; }
.loop-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); opacity: .75;
  transition: opacity 150ms var(--ease);
}
.loop-toggle:hover, .loop-toggle:focus-visible { opacity: 1; }
/* Pause : deux barres ; en pause : le triangle de lecture. */
.loop-toggle::before {
  content: ""; width: 10px; height: 12px; box-sizing: border-box;
  border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor;
}
.loop-toggle.is-paused::before {
  width: 0; height: 0; margin-left: 3px; border-right: 0;
  border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; border-left: 11px solid currentColor;
}
.shot-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  /* Sans le script, pas de bouton pause : l'image fixe. Avec, la boucle
     joue et son bouton l'arrête (site.js). */
  .shot--loop:not(.is-playable) .shot-video { display: none; }
  .shot--loop:not(.is-playable) .shot-still { display: block; }
}
.shot-bar {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 0 0 10px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-family: var(--font-body); font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden;
}
.shot-bar img { width: 16px; height: 16px; flex: none; }
.shot-bar .title { overflow: hidden; text-overflow: ellipsis; }
.shot-ctl { display: flex; margin-left: auto; height: 100%; flex: none; }
.shot-ctl span { position: relative; width: 40px; height: 100%; }
.shot-ctl span::before, .shot-ctl span::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--text-faint); }
.shot-ctl .min::before { width: 10px; height: 1px; margin-left: -5px; }
.shot-ctl .max::before { width: 9px; height: 9px; margin: -5px 0 0 -5px; background: transparent; border: 1px solid var(--text-faint); }
.shot-ctl .close::before, .shot-ctl .close::after { width: 12px; height: 1px; margin-left: -6px; transform: rotate(45deg); }
.shot-ctl .close::after { transform: rotate(-45deg); }
.shot picture, .shot picture img { width: 100%; }
.shot-zoom { display: block; cursor: zoom-in; }
.shot-zoom:focus-visible { outline-offset: -3px; }
/* Le cadre d'une capture à faire (--draft seulement). */
.shot-todo {
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  aspect-ratio: 16 / 9; padding: 32px; background: var(--surface-2); color: var(--text-faint);
  outline: 1.5px dashed var(--line-strong); outline-offset: -12px; font-size: .875rem;
}
.shot-todo .pill { color: var(--gold-ink); }
.shot-todo-what { max-width: 44ch; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.tags > li {
  position: relative; padding-left: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--text);
}
.tags > li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px;
  background: var(--gold-ink); transform: rotate(45deg);
}
.role { color: var(--text-faint); font-weight: 600; }

/* ---------- Deux applis : chacune sa fenêtre, une ligne, des étiquettes ---------- */
.apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }
.app { display: grid; gap: 22px; align-content: start; min-width: 0; }
.app-text { display: grid; gap: 12px; }
.app h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.15; }
.app p { color: var(--text-dim); max-width: 52ch; }
@media (min-width: 960px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }

/* ---------- Les quatre étapes ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 24px; counter-reset: none; }
.step { display: grid; gap: 8px; align-content: start; min-width: 0; }
.step .shot { margin-bottom: 10px; }
.step-num { font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .08em; }
.step h3 { font-size: 1.25rem; }
.step p:last-child { color: var(--text-dim); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Les visuels des étapes et de la grille : un cadre 4:3 (8:3 pour un
   large), l'image entière dedans, sans rognage. */
.step .shot-frame, .rig-card .shot-frame { aspect-ratio: 4 / 3; }
.step .shot-frame picture, .rig-card .shot-frame picture, .step .shot-zoom, .rig-card .shot-zoom { display: block; height: 100%; }
.step .shot-frame img, .rig-card .shot-frame img, .step .shot-video, .rig-card .shot-video {
  width: 100%; height: 100%; object-fit: contain;
}

/* ---------- Rigging : une grille de cartes ---------- */
.rig-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rig-card {
  display: grid; align-content: start; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.rig-card .shot-frame { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.rig-card-text { display: grid; gap: 6px; padding: 18px 20px 22px; }
.rig-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.rig-card p { color: var(--text-dim); font-size: .9375rem; }
.rig-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--gold-ink); }
.rig-icon svg { width: 22px; height: 22px; }
@media (min-width: 640px) {
  .rig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rig-card--wide { grid-column: span 2; }
  .rig-card--wide .shot-frame { aspect-ratio: 8 / 3; }
}
@media (min-width: 1024px) { .rig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* ---------- Studio en direct : icônes et une ligne ---------- */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 32px; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
.feature-icon {
  grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--cyan);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.0625rem; }
.feature p { color: var(--text-dim); font-size: .9375rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Fiche technique ---------- */
.specs-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 32px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.specs dd { margin: 0; color: var(--text); }
@media (min-width: 640px) { .specs > div { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; } }
@media (min-width: 1024px) {
  .specs-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
}

/* ---------- Tarifs : ce que l'abonnement ajoute ---------- */
.compare { width: 100%; max-width: 880px; border-collapse: collapse; margin-bottom: clamp(36px, 4.5vw, 56px); }
.compare caption { text-align: start; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; padding-bottom: 12px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.compare tbody th { text-align: start; font-weight: 500; color: var(--text); padding-left: 0; }
.compare td { width: 26%; }
.compare .yes { color: var(--cyan); font-weight: 700; font-size: 1.125rem; }
.compare .no { color: var(--text-faint); }

/* ---------- Le remplaçant d'une image qui manque : la grille, l'icône ---------- */
.shot-ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: var(--stage); }
.shot-ph--window { aspect-ratio: 16 / 10; }
.shot-ph--video { aspect-ratio: 16 / 9; }
.shot-ph--wide { aspect-ratio: 8 / 3; }
.shot-ph--card { aspect-ratio: 4 / 3; }
.step .shot-ph, .rig-card .shot-ph { aspect-ratio: auto; }
.ph-mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-mesh .ph-lines { stroke: var(--mesh-line); stroke-width: 1; fill: none; }
.ph-mesh circle { fill: var(--mesh-dot); }
.ph-mesh .ph-key { fill: var(--gold); }
.shot-ph-icon {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); color: var(--gold-ink);
}
.shot-ph-icon svg { width: 30px; height: 30px; }

/* ---------- La fin : le titre et le bouton, à côté de l'avatar ---------- */
.finale-in { display: grid; gap: clamp(28px, 4vw, 48px); }
.finale-text { display: grid; gap: 24px; justify-items: center; text-align: center; }
.finale-text h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; }
.finale-art { min-width: 0; }
@media (min-width: 900px) {
  .finale-in--art { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; }
  .finale-in--art .finale-text { justify-items: start; text-align: start; }
}

/* ---------- Tarifs : deux cartes, un bouton ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 880px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 16px; }
.plan h3 { font-size: 1.25rem; }
.plans-cta { margin-top: clamp(32px, 4vw, 44px); }
/* Le prix, puis sa périodicité dessous : la même ligne dans les deux cartes. */
.price { display: grid; justify-items: start; gap: 8px; }
.price .amount {
  font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text);
}
.price .per { color: var(--text-dim); font-weight: 600; }
.price-aside { margin-top: 8px; color: var(--gold-ink); font-weight: 700; font-size: .9375rem; }
.price-aside::before { content: "◆ "; content: "◆ " / ""; }
.plan-line { color: var(--text-dim); }
.plan-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
/* La carte mise en avant : coin taillé, plié en or, et la pile de feuilles. */
.plan--featured { display: block; position: relative; isolation: isolate; padding: 0; border: 0; background: none; }
.plan--featured::before, .plan--featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-md);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.plan--featured::before { background: var(--sheet-2-rim); transform: translate(12px, 12px); }
.plan--featured::after { background: var(--sheet-1-rim); transform: translate(6px, 6px); }
.plan--featured > .plan-in {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  background: var(--surface); border-radius: var(--r-md); padding: clamp(20px, 2.4vw, 28px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  outline: 1px solid var(--line-strong); outline-offset: -1px;
}
.plan-fold {
  position: absolute; top: 0; right: 0; width: 28px; height: 28px; z-index: 1;
  background: var(--gold); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.plans-legal { display: grid; gap: 4px; margin-top: clamp(28px, 3.5vw, 40px); font-size: .875rem; color: var(--text-faint); }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin-top: 10px; font-size: .875rem; }
.plans-legal .link-row { margin-top: 0; }

/* ---------- FAQ (et les blocs repliés de la page Télécharger) ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.faq-layout .section-head .small { color: var(--text-faint); }
@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.faq { display: grid; max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  display: flex; gap: 16px; align-items: baseline; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before {
  content: ""; flex: none; width: 10px; height: 10px; border: 1.5px solid var(--gold-ink);
  transform: translateY(-1px) rotate(45deg); transition: background-color 220ms;
}
.faq-item[open] > summary::before { background: var(--gold-ink); }
.faq-item > summary:hover { color: var(--link); }
.faq-a { padding: 0 0 22px 26px; color: var(--text-dim); max-width: 68ch; }
.faq-a > * + * { margin-top: .8em; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: faq-in 220ms ease-out; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Pages intérieures ---------- */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.page-head > .wrap { position: relative; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head .lede { margin-top: 16px; }
.page-head .hero-plane--1 { clip-path: polygon(0 0, 72% 0, 58% 100%, 0 100%); }
.page-body { padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(64px, 8vw, 120px); }
.stack-v { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }
.block h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); margin-bottom: 16px; }
.block > * + * { margin-top: 1em; }
.block h2 + * { margin-top: 0; }
.block ul, .faq-a ul, .box ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.block ul > li, .faq-a ul > li, .box ul > li { position: relative; padding-left: 24px; }
.block ul > li::before, .faq-a ul > li::before, .box ul > li::before {
  content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px;
  background: var(--gold-ink); transform: rotate(45deg);
}
.block p, .block li { color: var(--text-dim); }
.block strong { color: var(--text); }
.box {
  position: relative; padding: 18px 20px 18px 44px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
}
.box::before { content: ""; position: absolute; left: 19px; top: 1.45em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.box > * + * { margin-top: .8em; }
pre {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; overflow-x: auto; font-size: .875rem; line-height: 1.5; color: var(--text);
}
pre code { font-size: inherit; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll thead th { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.mark { display: inline-flex; gap: 8px; align-items: baseline; }
.mark::before { content: ""; flex: none; width: 8px; height: 8px; transform: translateY(-1px) rotate(45deg); }
.mark--yes::before { background: var(--gold-ink); }
.mark--no::before { border: 1.5px solid var(--text-faint); }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xs); padding: .05em .35em; font-size: .85em; color: var(--text); overflow-wrap: anywhere; }

/* Télécharger */
.dl-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 900px) { .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.dl-card { display: grid; gap: 18px; align-content: start; justify-items: start; }
.dl-card > * { justify-self: stretch; }
.dl-card > .btn { justify-self: start; }
.dl-head { display: flex; gap: 18px; align-items: center; }
.dl-icon {
  display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: var(--r-md);
  background: var(--stage); border: 1px solid var(--stage-line); color: var(--gold); box-shadow: var(--shadow-lift);
}
.dl-icon svg { width: 36px; height: 36px; stroke-width: 1.5; }
.dl-card h2 { font-size: 1.5rem; }
.dl-card h2 .role { color: var(--text-faint); font-weight: 600; }
.dl-card p { color: var(--text-dim); }
.dl-more > summary {
  display: inline-flex; gap: 10px; align-items: baseline; cursor: pointer; list-style: none;
  font-size: .875rem; color: var(--text-dim);
}
.dl-more > summary::-webkit-details-marker { display: none; }
.dl-more > summary::before {
  content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--gold-ink); transform: rotate(45deg);
}
.dl-more[open] > summary::before { background: var(--gold-ink); }
.dl-more > summary:hover { color: var(--text); }
.dl-more[open] > summary { margin-bottom: 12px; }
.dl-meta { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.dl-meta div { display: grid; gap: 2px; }
.dl-meta dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.dl-meta dd { margin: 0; font-family: var(--font-mono); font-size: .875rem; color: var(--text); overflow-wrap: anywhere; }
.dl-meta dd.plain { font-family: var(--font-body); color: var(--text-dim); }
.sha { display: flex; gap: 10px; align-items: flex-start; }
.sha code { flex: 1; min-width: 0; word-break: break-all; background: none; border: 0; padding: 0; }
.version-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .8125rem; color: var(--text-dim); }
.version-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.block .specs { gap: 10px 32px; }
@media (min-width: 640px) { .block .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.block .specs > li { color: var(--text); }
.folds { max-width: 860px; border-top: 1px solid var(--line); }
.folds .faq-item > summary { font-size: 1.0625rem; padding: 16px 0; }

/* Sécurité */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; } }
.sec-grid .block { max-width: none; }

/* Textes juridiques */
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: .875rem; }
.toc h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; } }
.legal-text { max-width: 72ch; }
.legal-text > * + * { margin-top: 1em; }
.legal-text h2 { font-size: 1.375rem; margin-top: 2.2em; padding-top: 4px; }
.legal-text h3 { font-size: 1.125rem; margin-top: 1.8em; }
.legal-text p, .legal-text li { color: var(--text-dim); }
.legal-text strong { color: var(--text); }
.legal-text ul, .legal-text ol { padding-left: 1.4em; display: grid; gap: .5em; }
.legal-text li::marker { color: var(--gold-ink); }
.legal-text .url { overflow-wrap: anywhere; }

/* 404 */
.lost { display: grid; gap: 40px; }
@media (min-width: 900px) { .lost { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.lost section { display: grid; gap: 16px; justify-items: start; }
.lost-legal { display: grid; gap: 6px; }
.lost-legal .link-row { display: flex; margin-top: 0; }

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative; background: var(--bg-raised); color: var(--text-dim);
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); padding: 96px 0 40px; font-size: .9375rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .kanji { font-family: var(--font-jp); font-size: 1.5rem; color: var(--text-faint); letter-spacing: .2em; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: grid; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text-faint); }
.footer-bottom p { max-width: 110ch; }
.footer-bottom .lang { justify-self: start; margin-top: 6px; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 320ms ease-out, transform 320ms ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: 60ms; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: 120ms; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover, .btn--secondary:hover, .btn--primary:active, .btn--secondary:active, .btn--ghost:active { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip, .hero-plane, .mesh-bg { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-text p, .legal-text li { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
