/* ════════════════════════════════════════════════════════════════
   NEURAFOX LABS — Design System « Orbital » · 2026
   ════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark; /* Firefox : scrollbar, popups de select, contrôles natifs */

  /* Surfaces — charbon chaud. On ne descend plus jamais au noir pur pour le
     fond de page : le noir est réservé aux voiles (--bg-deep), ce qui laisse
     de la place pour respirer entre les bandes de section. */
  --bg: #0b0c0e;
  --bg-soft: #111316;
  --bg-elev: #191b1e;
  --bg-deep: #060708;   /* voiles, vignettes, ombres — le seul vrai noir */
  --panel: linear-gradient(180deg, rgba(255,244,236,.045), rgba(255,244,236,.012));
  --panel-hover: linear-gradient(180deg, rgba(255,244,236,.07), rgba(255,244,236,.02));

  /* Encres — blanc chaud du wordmark */
  --ink: #f2f1ec;
  --ink-2: rgba(247,238,233,.66);
  --ink-3: rgba(247,238,233,.58);
  --ink-4: rgba(247,238,233,.48);

  /* Hairlines */
  --line: rgba(255,240,230,.075);
  --line-2: rgba(255,240,230,.14);

  /* Spectre Cuivre — échantillonné du renard : pêche · cuivre · terre brûlée · cendre */
  --a1: #ed9967;      /* cuivre — le « Fox » du wordmark */
  --a2: #efb79a;      /* pêche — haut de la tête, les lumières */
  --a3: #d48250;      /* terre brûlée — pointe des queues, les ombres */
  --a4: #a2938a;      /* cendre chaude — états dormants / technique */
  --a-deep: #ed9967;  /* la teinte la plus sombre du logomark — le « Fox » du wordmark */
  --ok: #efb79a;      /* succès — pêche, jamais de vert hors palette */
  --danger: #e58b7e;  /* erreur — brique rosée, distincte du cuivre */
  --grad-star: linear-gradient(100deg, var(--a2) 0%, var(--a1) 50%, var(--a3) 110%);
  --grad-cool: linear-gradient(100deg, #f5d3be, #de8f5c);

  /* Typo */
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, .05, 0, 1);

  /* Métriques */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --w-max: 1600px;
  --pad-x: clamp(20px, 4.2vw, 56px);
  --nav-h: 78px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(255,243,235,.15) #100d0b; /* Firefox */
  scrollbar-gutter: stable; /* pas de shift de layout à l'ouverture des modales */
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(217,129,74,.32); color: #fff8f3; }

/* Scrollbar discret */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,243,235,.12); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,243,235,.22); }

/* Focus accessible */
:focus-visible { outline: 1.5px solid var(--a1); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 24px; z-index: 300;
  padding: 12px 20px; border-radius: 99px;
  background: var(--ink); color: #0a0806; font-weight: 600; font-size: 14px;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Grain global ───────────────────────────────────────────── */
.grain::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 90;
  opacity: .032; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Typographie ────────────────────────────────────────────── */
.f-display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.022em; }
.f-mono { font-family: var(--f-mono); }
.serif-it {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.012em; line-height: .9;
  background: var(--grad-cool);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; margin-right: -.04em;
}
/* Montserrat est plus large que l'ancienne Bricolage : chasse réduite, tracking
   resserré mais pas au point de coller les rondeurs géométriques. */
.h-xl { font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 6.2vw, 96px); line-height: 1.02; letter-spacing: -.028em; }
.h-lg { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.3vw, 60px);  line-height: 1.08;  letter-spacing: -.024em; text-wrap: balance; }
.h-md { font-family: var(--f-display); font-weight: 600; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.2; letter-spacing: -.016em; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.65; color: var(--ink-2); font-weight: 350; text-wrap: pretty; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .tick { width: 28px; height: 1px; background: linear-gradient(90deg, var(--a1), transparent); }
.eyebrow .idx { color: var(--a1); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255,243,235,.03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}

/* Point pulsé */
.dot {
  width: 7px; height: 7px; border-radius: 99px; background: var(--a1); position: relative; flex: none;
}
.dot::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: inherit; animation: dotPulse 2.2s var(--ease) infinite;
}
@keyframes dotPulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.1); opacity: 0; } }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad-x); }
.section { position: relative; padding-block: clamp(96px, 11vw, 168px); scroll-margin-top: calc(var(--nav-h) + 12px); }
/* Rythme : une bande légèrement plus claire de temps en temps, pour que la page
   ne se lise pas comme un seul aplat noir du haut jusqu'en bas. */
.section.band { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 84px); }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr); align-items: end; gap: 56px; }
  .section-head .lead { padding-bottom: 10px; }
}
.section-head h2 { margin-top: 22px; }

.hairline { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); }

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 17px 30px; border-radius: 99px;
  font-family: var(--f-display); font-size: 15px; font-weight: 540; letter-spacing: -.01em;
  transition: transform .45s var(--ease), background .35s, border-color .35s, color .35s, box-shadow .45s;
  white-space: nowrap;
}
.btn i { font-size: 12.5px; transition: transform .45s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn-solid { background: var(--ink); color: #0d0908; }
.btn-solid::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad-star); filter: blur(18px); opacity: .25;
  transition: opacity .5s var(--ease);
}
.btn-solid:hover { box-shadow: 0 8px 40px -8px rgba(217,129,74,.45); }
.btn-solid:hover::before { opacity: .65; }
.btn-ghost {
  border: 1px solid var(--line-2);
  background: rgba(255,243,235,.025);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255,243,235,.07); border-color: rgba(255,243,235,.24); }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 520; font-size: 15px; color: var(--ink-2);
  transition: color .3s;
}
.btn-line:hover { color: var(--ink); }
.btn-line i { font-size: 12px; transition: transform .4s var(--ease); }
.btn-line:hover i { transform: translateX(4px); }

.kbd-hint { display: none; align-items: center; gap: 6px; margin-left: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.kbd-hint kbd { padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255,243,235,.04); font-family: inherit; font-size: 10.5px; }
@media (min-width: 1100px) { .kbd-hint { display: inline-flex; } }

/* ── Barre de progression ───────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 158;
  background: var(--grad-star);
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 18px rgba(217,129,74,.5);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 155;
  transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(9,7,6,.62);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; width: auto; height: 34px; object-fit: contain; }
/* Baseline de la marque — reprise du lock-up. Non traduite : c'est une
   signature graphique, pas du contenu éditorial. */
.baseline { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--a1); opacity: .78; }
footer .brand-mark { height: 30px; }
/* Wordmark — calqué sur le logo : « Neura » blanc, « Fox » cuivre, « Labs » blanc plus léger */
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 18.5px; letter-spacing: -.02em; }
/* teinte la plus sombre du logomark (1er centile mesuré : #8c3e16) */
.brand-name i { font-style: normal; color: var(--a-deep); }
.brand-name em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 1080px) { .nav-links { display: flex; } }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 99px;
  font-size: 14px; font-weight: 460; color: var(--ink-2);
  transition: color .3s, background .3s;
}
.nav-link:hover { color: var(--ink); background: rgba(255,243,235,.05); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 99px; background: var(--a1); box-shadow: 0 0 8px var(--a1);
}
.nav-cta { display: none; }
@media (min-width: 1080px) { .nav-cta { display: inline-flex; padding: 12px 22px; font-size: 14px; } }

/* Sélecteur de langue — segmented minimal */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(255,243,235,.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lang-opt {
  padding: 7px 13px; border-radius: 99px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em;
  color: var(--ink-3);
  transition: color .3s, background .35s var(--ease), box-shadow .35s;
  white-space: nowrap;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-on {
  color: #0d0908; background: var(--ink);
  box-shadow: 0 2px 14px -4px rgba(217,129,74,.55);
}
@media (max-width: 420px) { .lang-opt { padding: 6px 10px; } .brand-name em { display: none; } }
.nav-burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(255,243,235,.03);
}
@media (min-width: 1080px) { .nav-burger { display: none; } }

/* Menu mobile */
#mobileMenu {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--pad-x) 40px;
  background: rgba(9,7,6,.88);
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
#mobileMenu.is-open { opacity: 1; pointer-events: auto; }
#mobileMenu a.mm-link {
  display: flex; align-items: baseline; gap: 16px; padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-size: clamp(28px, 7vw, 38px); font-weight: 540; letter-spacing: -.03em;
  transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
#mobileMenu.is-open a.mm-link { transform: none; opacity: 1; }
#mobileMenu a.mm-link .idx { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
#mobileMenu .mm-foot { margin-top: auto; padding-top: 28px; }

/* ── Murmure (ligne tapée par la présence) ──────────────────── */
.whisper { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 26px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); min-height: 18px; }
.whisper .w-mark { color: var(--a1); opacity: .7; flex: none; }
.whisper .w-text::after { content: '▍'; color: var(--a1); opacity: .8; animation: caretBlink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ── Étiquette dossier ──────────────────────────────────────── */
.file-tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.file-tag .f-no { color: var(--a1); }
.file-tag .f-rule { width: 34px; height: 1px; background: linear-gradient(90deg, var(--a1), transparent); }
.file-tag .f-stamp { padding: 3px 9px; border: 1px solid rgba(217,129,74,.3); border-radius: 3px; color: rgba(217,129,74,.75); font-size: 9px; letter-spacing: .3em; transform: rotate(-1.2deg); }

/* ── Présence (orbe compagnon) ──────────────────────────────── */
#presence { position: fixed; right: 22px; bottom: 20px; z-index: 130; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s .7s; pointer-events: none; }
#presence.is-awake { opacity: 1; transform: none; visibility: visible; transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s 0s; pointer-events: auto; }
#presenceOrb {
  width: 104px; height: 50px; cursor: pointer; border-radius: 11px;
  border: 1px solid color-mix(in oklab, var(--mood, #a2938a) 26%, var(--line-2));
  background: var(--bg-deep);
  box-shadow: 0 0 22px -6px color-mix(in oklab, var(--mood, #a2938a) 32%, transparent);
  transition: border-color .9s, box-shadow 1.2s;
}
#presenceStatus { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: var(--ink-3); text-transform: lowercase; white-space: nowrap; transition: color .4s; }
@media (max-width: 720px) { #presence { right: 14px; bottom: 14px; } #presenceOrb { width: 52px; height: 52px; } }

/* ── Cartes (base commune) ──────────────────────────────────── */
/* (le système .card spotlight/tilt d'une version antérieure a été retiré :
   plus aucun élément ne portait la classe — code mort) */

.card-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(255,243,235,.028);
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); letter-spacing: .02em;
}

/* ── Anatomie d'un esprit (diagramme interactif) ────────────── */
.anat-wrap { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .anat-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(44px, 5vw, 88px); } }
.anat-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.anat-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anat-svg > line { stroke: rgba(255,243,235,.1); stroke-width: 1; transition: stroke .4s; }
.anat-svg > line.is-active { stroke: rgba(217,129,74,.5); }
/* l'influx : micro-courants qui irriguent les liens */
.anat-flow line {
  stroke: rgba(217,129,74,.3); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 5 95; opacity: 0;
  animation: anatFlow 4.4s linear infinite;
  animation-delay: calc(var(--d, 0) * -.73s);
  transition: opacity 1.2s, stroke .4s;
}
.anat-svg.is-flowing .anat-flow line { opacity: 1; }
.anat-flow line.is-active { stroke: rgba(239,183,154,.95); stroke-width: 1.9; animation-duration: 1.7s; }
@keyframes anatFlow { to { stroke-dashoffset: -100; } }
html.no-motion .anat-flow line { animation: none; opacity: 0 !important; }
.anat-core {
  position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 38% 34%, rgba(239,183,154,.5), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(122,64,32,.85), rgba(10,5,5,.96) 68%);
  box-shadow: 0 0 50px -8px rgba(217,129,74,.35), inset 0 0 24px rgba(217,129,74,.18);
}
.anat-core::after { content: ''; position: absolute; inset: -26%; border-radius: 50%; border: 1px dashed rgba(217,129,74,.22); animation: anatSpin 26s linear infinite; }
@keyframes anatSpin { to { transform: rotate(360deg); } }
.anat-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px; border-radius: 14px; cursor: pointer;
  transition: transform .4s var(--ease);
}
.anat-node:hover { transform: translate(-50%, -50%) scale(1.06); }
.anat-node .an-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,243,235,.25); border: 1px solid rgba(255,243,235,.3); transition: background .35s, box-shadow .35s, border-color .35s; }
.anat-node .an-no { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .2em; color: var(--ink-4); }
.anat-node .an-lbl { font-family: var(--f-display); font-weight: 560; font-size: clamp(12px, 1.3vw, 15px); letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; transition: color .35s; }
.anat-node.is-active .an-dot { background: var(--a1); border-color: var(--a1); box-shadow: 0 0 14px rgba(217,129,74,.8); }
.anat-node.is-active .an-lbl { color: var(--ink); }
.anat-detail { display: none; }
.anat-detail.is-active { display: block; animation: anatIn .55s var(--ease); }
@keyframes anatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anat-detail h3 { margin-top: 14px; }
.anat-detail h3 .sub { display: block; color: var(--ink-3); font-weight: 500; }
.anat-detail p { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.anat-detail .chip-row { margin-top: 22px; }
.anat-detail .ad-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.anat-hint { margin-top: 26px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); }
.exp-foot i { font-size: 12px; }

/* ── Dossier NUMEN ──────────────────────────────────────────── */
.numen-feature { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; background: linear-gradient(140deg, rgba(122,64,32,.16), rgba(12,10,8,.4) 55%); }
.numen-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 980px) { .numen-grid { grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr); } }
.numen-copy { padding: clamp(30px, 4vw, 56px); }
.numen-copy .nm-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px; border: 1px solid rgba(217,129,74,.3); background: rgba(217,129,74,.06); font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--a2); }
.numen-copy h3 { font-size: clamp(40px, 4.6vw, 64px); line-height: .98; margin-top: 22px; font-weight: 640; letter-spacing: -.03em; }
.numen-copy h3 .sub { display: block; margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 1.8vw, 25px); letter-spacing: 0; color: var(--ink-2); }
.numen-copy p { margin-top: 22px; max-width: 52ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.68; }
.numen-miles { margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.numen-miles li { display: flex; align-items: baseline; gap: 14px; padding-block: 9px; border-top: 1px solid var(--line); font-size: 13px; }
.numen-miles .nm-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-1px); }
.numen-miles .nm-date { flex: none; width: 70px; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.numen-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* Terminal mémoire */
.memlog { position: relative; border-left: 1px solid var(--line); background: rgba(9,7,6,.5); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; min-height: 320px; }
@media (max-width: 979px) { .memlog { border-left: 0; border-top: 1px solid var(--line); } }
.memlog .ml-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.memlog .ml-live { display: inline-flex; align-items: center; gap: 7px; color: var(--a1); }
.memlog .ml-lines { position: relative; display: flex; flex-direction: column-reverse; gap: 9px; flex: 1; overflow: hidden; min-height: 0; }
.memlog .ml-lines::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none; background: linear-gradient(180deg, rgba(9,7,6,.95), rgba(9,7,6,0)); }
.ml-line { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); }
.ml-line.is-in { opacity: 1; transform: none; }
.ml-line .ml-t { color: var(--ink-4); margin-right: 10px; }
.ml-line .ml-k { color: var(--a1); }
.ml-line.ml-splice { color: var(--a3); }
.ml-line.ml-splice .ml-t { color: rgba(169,82,42,.45); }
.rd-word.is-clear { background: transparent !important; box-shadow: none !important; width: auto !important; height: auto;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--a2); text-transform: uppercase; }
/* Projets caviardés */
.redacted-list { margin-top: 16px; }
.redacted-row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2.5vw, 30px);
  padding: 22px 6px; border-top: 1px solid var(--line); text-align: left; cursor: pointer;
  transition: background .35s, padding-left .35s var(--ease);
}
.redacted-row:last-child { border-bottom: 1px solid var(--line); }
.redacted-row:hover { background: rgba(255,243,235,.018); padding-left: 14px; }
.redacted-row .rd-id { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); white-space: nowrap; }
.redacted-row .rd-bars { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-width: 0; }
.redact { display: inline-block; height: 15px; border-radius: 2.5px; background: linear-gradient(90deg, rgba(255,243,235,.13), rgba(255,243,235,.07)); transition: background .4s, box-shadow .4s; }
.redacted-row:hover .redact { background: linear-gradient(90deg, rgba(217,129,74,.3), rgba(217,129,74,.12)); box-shadow: 0 0 12px -2px rgba(217,129,74,.25); }
.redacted-row .rd-note { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; transition: color .35s; }
.redacted-row:hover .rd-note { color: var(--a1); }
@media (max-width: 640px) {
  .redacted-row { grid-template-columns: 1fr auto; }
  .redacted-row .rd-bars { grid-column: 1 / -1; order: 3; }
  .redacted-row .rd-note { white-space: normal; text-align: right; line-height: 1.7; }
}

/* ── Manifesto (révélation mot à mot) ───────────────────────── */
.manifesto { max-width: 1060px; }
.mst { font-family: var(--f-display); font-weight: 620; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.028em; font-optical-sizing: auto; }
.mst + .mst { margin-top: clamp(48px, 6vw, 92px); }
.mst .mw { color: rgba(247,238,233,.13); transition: none; }
.mst em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
html.no-motion .mst .mw { color: var(--ink); }
.mst-index { font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em; color: var(--ink-4); display: block; margin-bottom: 14px; }

/* ── Bande de faits (dossier) ───────────────────────────────── */
.facts-strip { margin-top: clamp(64px, 8vw, 110px); border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .facts-strip { grid-template-columns: repeat(6, 1fr); } }
.fact { padding: 22px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.fact:last-child { border-right: 0; }
@media (max-width: 879px) { .fact:nth-child(2n) { border-right: 0; } .fact { border-bottom: 1px solid var(--line); } .fact:nth-last-child(-n+2) { border-bottom: 0; } }
.fact .fact-v { font-family: var(--f-display); font-weight: 620; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact .fact-v .suffix { color: var(--a1); font-size: .62em; vertical-align: .25em; }
.fact .fact-l { margin-top: 5px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* ── Fondateur ──────────────────────────────────────────────── */
.founder-wrap { display: grid; gap: 52px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .founder-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 6vw, 96px); } }
.founder-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #241d18, #15110e);
}
.founder-photo img {
  position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover;
  will-change: transform; filter: saturate(.92) contrast(1.04);
}
.founder-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 170px; font-weight: 600; color: rgba(255,243,235,.05); user-select: none; }
.founder-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,7,6,.18), transparent 38%, transparent 58%, rgba(9,7,6,.86)); }
.founder-sig { position: absolute; top: 22px; left: 24px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .34em; color: rgba(255,243,235,.5); }
.founder-meta { position: absolute; bottom: 22px; left: 24px; right: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.founder-meta .fm-role { font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em; color: rgba(255,243,235,.55); }
.founder-meta .fm-name { font-family: var(--f-display); font-weight: 560; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; margin-top: 6px; white-space: nowrap; }
.founder-loc {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px;
  background: rgba(9,7,6,.5); border: 1px solid rgba(255,243,235,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 12px; color: rgba(255,243,235,.85);
}
.founder-loc i { color: var(--a1); font-size: 11px; }
.founder-copy h2 { margin-top: 22px; }
.founder-copy .lead { margin-top: 28px; max-width: 58ch; }
.founder-copy .lead + .lead { margin-top: 18px; }
blockquote.founder-quote {
  margin-top: 34px; padding-left: 26px; max-width: 54ch;
  border-left: 1px solid transparent;
  border-image: linear-gradient(180deg, var(--a1), var(--a2)) 1;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.42; color: rgba(247,238,233,.88);
}
.founder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }

/* ── Lettre du fondateur ────────────────────────────────────── */
.letter { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: clamp(28px, 3.6vw, 50px); background: linear-gradient(170deg, rgba(255,243,235,.03), rgba(255,243,235,.006)); }
.letter::before { content: ''; position: absolute; top: 0; left: clamp(28px, 3.6vw, 50px); right: clamp(28px, 3.6vw, 50px); height: 1px; background: linear-gradient(90deg, var(--a1), transparent 60%); }
.letter .lt-meta { display: flex; justify-content: space-between; gap: 14px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.letter p { font-size: 15.5px; line-height: 1.78; color: rgba(243,233,226,.78); text-wrap: pretty; }
.letter p + p { margin-top: 18px; }
.letter p em { font-family: var(--f-serif); font-style: italic; font-size: 1.08em; color: var(--ink); }
.letter .lt-sign { margin-top: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.letter .lt-sign svg { overflow: visible; }
.letter .lt-sign .sig-path { stroke: var(--a2); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.letter .lt-role { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 1.9; }

/* ── Méthode (rangées éditoriales) ──────────────────────────── */
.lab-band { background: linear-gradient(180deg, rgba(255,243,235,.015), transparent 30%, transparent 70%, rgba(255,243,235,.015)); border-block: 1px solid var(--line); }
.method { border-top: 1px solid var(--line); }
.method-row { display: grid; grid-template-columns: auto 1fr; gap: 18px clamp(20px, 4vw, 64px); align-items: baseline; padding: clamp(24px, 3vw, 38px) 6px; border-bottom: 1px solid var(--line); transition: background .35s, padding-left .4s var(--ease); }
@media (min-width: 880px) { .method-row { grid-template-columns: 90px minmax(0, 3.2fr) minmax(0, 5fr) auto; } }
.method-row:hover { background: rgba(255,243,235,.015); padding-left: 16px; }
.method-row .mr-no { font-family: var(--f-display); font-weight: 640; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.03em; color: rgba(255,243,235,.14); transition: color .4s; font-variant-numeric: tabular-nums; }
.method-row:hover .mr-no { color: var(--a1); }
.method-row h3 { font-size: clamp(19px, 1.9vw, 25px); }
.method-row h3 .mr-tag { display: block; margin-bottom: 7px; font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; }
.method-row p { font-size: 14px; color: var(--ink-2); max-width: 56ch; }
.method-row .mr-arrow { display: none; color: var(--ink-4); font-size: 13px; transition: color .35s, transform .4s var(--ease); }
@media (min-width: 880px) { .method-row .mr-arrow { display: block; } }
.method-row:hover .mr-arrow { color: var(--a1); transform: translateX(4px); }

/* ── CTA final ──────────────────────────────────────────────── */
.cta { text-align: center; overflow: clip; }
.cta-halo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(46% 52% at 50% 62%, rgba(239,183,154,.13), transparent 70%); }
.cta .lead { margin: 30px auto 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 46px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-foot { position: relative; border-top: 1px solid var(--line); padding-top: clamp(64px, 7vw, 110px); overflow: clip; background: radial-gradient(900px 320px at 14% 0%, rgba(217,129,74,.05), transparent 60%), radial-gradient(900px 320px at 86% 0%, rgba(239,183,154,.05), transparent 60%); }
.foot-grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 36px; } }
.foot-brand p { margin-top: 20px; max-width: 38ch; color: var(--ink-2); font-size: 14.5px; }
.foot-addr { margin-top: 26px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); line-height: 2; }
.foot-priv { margin-top: 14px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }

/* ── Impression : le dossier papier ─────────────────────────── */
@media print {
  body { background: #fff; color: #111; }
  .nav, #preloader, .scroll-progress, .hero-fox, .hero-vignette, .hero-scrim,
  #presence, .modal, .hero-scroll, .whisper, #mobileMenu, .memlog, .grain::after { display: none !important; }
  .hero { min-height: auto; }
  section, footer { page-break-inside: avoid; }
  .foot-bar::after { content: 'This copy will not remember you.'; display: block; width: 100%; margin-top: 8px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
}
.foot-h { font-family: var(--f-mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.foot-links li + li { margin-top: 12px; }
.foot-links a, .foot-links .foot-btn { font-size: 14px; color: var(--ink-2); transition: color .3s; }
.foot-links a:hover, .foot-links .foot-btn:hover { color: var(--a1); }
.foot-links .foot-btn { background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0; text-align: left; }
.foot-links .foot-soon { font-size: 14px; color: var(--ink-3); cursor: default; }
.foot-links .soon { color: var(--ink-4); font-size: 12px; }
.copy-email {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 15px 20px; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(255,243,235,.03);
  transition: border-color .35s, background .35s;
}
.copy-email:hover { border-color: rgba(217,129,74,.4); background: rgba(255,243,235,.055); }
.copy-email .ce-mail { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 14px; font-weight: 500; }
.copy-email .ce-mail i { color: var(--a1); font-size: 13px; }
.copy-email .ce-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-email .ce-ico { color: var(--ink-3); font-size: 13px; transition: color .3s; flex: none; }
.copy-email:hover .ce-ico { color: var(--ink); }
.foot-social { display: flex; gap: 9px; margin-top: 22px; }
.foot-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255,243,235,.025); color: var(--ink-2); font-size: 14px;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.foot-social a:hover { background: rgba(255,243,235,.08); color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
/* marge reprise du grand wordmark retiré : sans elle la barre colle à la grille */
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: clamp(44px, 5vw, 76px); padding-block: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.foot-bar .f-mono { font-size: 10.5px; letter-spacing: .08em; }

/* ── Modales ────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 160;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(9,7,6,.74);
  backdrop-filter: blur(20px) saturate(130%); -webkit-backdrop-filter: blur(20px) saturate(130%);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .45s var(--ease), visibility 0s 0s; }
.modal-shell {
  position: relative; width: 100%; margin-block: auto;
  border-radius: var(--r-lg); border: 1px solid rgba(255,243,235,.13);
  background: linear-gradient(180deg, rgba(19,13,10,.92), rgba(13,10,9,.94));
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,243,235,.03) inset;
  transform: translateY(26px) scale(.985); opacity: 0;
  transition: transform .55s var(--ease), opacity .45s;
}
.modal.is-open .modal-shell { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 99px;
  border: 1px solid var(--line-2); background: rgba(13,10,9,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15px; transition: background .3s, transform .4s var(--ease);
}
.modal-close:hover { background: rgba(255,243,235,.1); transform: rotate(90deg); }

#contactModal .modal-shell { max-width: 560px; padding: clamp(28px, 4vw, 46px); }
#projectModal .modal-shell { max-width: 920px; overflow: hidden; }
#doctrineModal .modal-shell { max-width: 560px; padding: clamp(28px, 4vw, 46px); }

/* Formulaire */
.field { display: block; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field .lbl { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: 15px;
  border: 1px solid var(--line-2); background: rgba(255,243,235,.035);
  color: var(--ink); font: inherit; font-size: 15px; outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(217,129,74,.55); background: rgba(255,243,235,.05);
  box-shadow: 0 0 0 4px rgba(217,129,74,.08);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='rgba(255,243,235,.5)' fill='none' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; }
.field select option { background: #0f0a08; color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 16px; text-align: center; font-size: 11px; color: var(--ink-4); }

/* Modale projet */
.pm-head { position: relative; height: clamp(200px, 30vw, 270px); overflow: hidden; }
.pm-hero { position: absolute; inset: 0; }
.pm-head .pm-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13,10,9,.9)); }
.pm-head-meta { position: absolute; left: clamp(24px, 4vw, 40px); right: clamp(24px, 4vw, 40px); bottom: 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pm-head-meta h3 { font-size: clamp(24px, 3.2vw, 36px); }
.pm-status { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 99px; border: 1px solid rgba(255,243,235,.14); background: rgba(9,7,6,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; }
.pm-body { display: grid; gap: 34px; padding: clamp(26px, 4vw, 44px); grid-template-columns: 1fr; }
@media (min-width: 820px) { .pm-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pm-vision { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.pm-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.pm-milestones li { display: flex; align-items: baseline; gap: 13px; font-size: 13.5px; padding-block: 7px; }
.pm-milestones .ms-dot { flex: none; width: 7px; height: 7px; border-radius: 99px; transform: translateY(-1px); }
.pm-milestones .ms-date { flex: none; width: 64px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.pm-aside-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: rgba(255,243,235,.02); }
.pm-aside-box + .pm-aside-box, .pm-aside-box + .btn, .btn + .pm-aside-box { margin-top: 14px; }
.pm-specs div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding-block: 5px; }
.pm-specs dt { color: var(--ink-3); } .pm-specs dd { text-align: right; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 16px); z-index: 260;
  display: flex; align-items: center; gap: 11px;
  padding: 15px 24px; border-radius: 99px;
  border: 1px solid rgba(255,243,235,.14);
  background: rgba(15,11,8,.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px -16px rgba(0,0,0,.7);
  font-size: 14px; opacity: 0;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--ok); }
.toast.is-err i { color: var(--danger); }

/* Honeypot anti-bot — hors écran, jamais focusable */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Ligne mémoire de session dans la modale contact */
#cmSession { margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--ink-4); }
#cmSession::before { content: '∿ '; color: var(--a1); }

/* Doctrine — FILE 00 */
.doctrine-list { margin-top: 28px; list-style: none; counter-reset: doc; }
.doctrine-list li { counter-increment: doc; position: relative; padding: 18px 0 18px 46px; border-top: 1px solid var(--line); }
.doctrine-list li::before {
  content: '0' counter(doc); position: absolute; left: 0; top: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--a1);
}
.doctrine-list strong { display: block; font-family: var(--f-display); font-weight: 580; font-size: 15.5px; letter-spacing: -.01em; }
/* enfant direct uniquement — le <span translate="no"> imbriqué doit rester inline */
.doctrine-list li > span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

/* Pulse corail du bouton après envoi réussi */
@keyframes sentPulse {
  0%   { box-shadow: 0 0 0 0 rgba(217,129,74,.45); }
  100% { box-shadow: 0 0 0 26px rgba(217,129,74,0); }
}
html.js:not(.no-motion) .btn.is-sent { animation: sentPulse .9s var(--ease) 1; }

/* Mini-orbite de chargement — citation du logomark */
.orbit-spin { display: inline-block; animation: orbitSpin 1s linear infinite; }
html.no-motion .orbit-spin { animation: none; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ── Reveal (états initiaux pilotés par GSAP) ───────────────── */
html.js:not(.no-motion) [data-reveal] { opacity: 0; transform: translateY(34px); }
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
html.no-motion .hero h1 .ln > span { transform: none !important; }
html:not(.js) #preloader { display: none; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  /* filet de sécurité : le contenu ne doit JAMAIS rester invisible,
     même si le JS pose html.js puis échoue à détecter la préférence */
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mst .mw { opacity: 1 !important; }
  .hero h1 .ln > span { transform: none !important; }
}

/* ── Japonais ─────────────────────────────────────────────────
   Montserrat et Instrument Serif n'ont aucun glyphe japonais. On
   bascule sur Noto Sans/Serif JP (chargées à la demande, seulement
   si le japonais est choisi) et on neutralise les réglages latins
   qui abîment le japonais : crénage négatif — les idéogrammes se
   collent —, interlignes serrés — le kanji occupe tout le cadratin —,
   et l'italique, qui n'existe pas en japonais et serait synthétisé
   en oblique de travers. */
html[lang="ja"] {
  --f-display: 'Noto Sans JP', 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
  --f-serif: 'Noto Serif JP', serif;
  --f-mono: 'Geist Mono', 'Noto Sans JP', ui-monospace, monospace;
}
html[lang="ja"] body { line-height: 1.85; }
html[lang="ja"] .f-display { letter-spacing: .01em; font-weight: 700; }
html[lang="ja"] .h-xl { font-size: clamp(30px, 4.6vw, 70px); line-height: 1.38; letter-spacing: .01em; font-weight: 700; }
html[lang="ja"] .h-lg { font-size: clamp(24px, 3.4vw, 46px); line-height: 1.45; letter-spacing: .01em; font-weight: 700; }
html[lang="ja"] .h-md { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.6;  letter-spacing: .01em; font-weight: 700; }
html[lang="ja"] .lead { font-weight: 400; line-height: 1.9; }
/* pas d'italique en japonais : la locution d'accent reste droite */
html[lang="ja"] .serif-it { font-style: normal; font-weight: 600; line-height: 1.45; letter-spacing: .02em; padding-right: 0; margin-right: 0; }
/* le wordmark reste latin : il garde Montserrat et son crénage serré */
html[lang="ja"] .brand-name { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.02em; font-weight: 600; }
/* 17ch est calibré sur le « 0 » latin : beaucoup trop étroit pour des idéogrammes */
html[lang="ja"] .hero h1 { max-width: 22em; }
html[lang="ja"] .hero h1 .ln { padding-block: .12em; }
/* césure japonaise : aux frontières de syntagme, jamais au milieu d'un mot latin */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; line-break: strict; }
html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] dd { line-break: strict; word-break: normal; }
/* L'italique n'existe pas en japonais : une oblique y est toujours synthétisée,
   et elle se voit. L'équivalent typographique de l'italique est le contraste
   明朝/ゴシック (Mincho/Gothic, soit serif/sans) — c'est lui qui porte l'emphase.
   On redresse donc tous les <em> et on laisse la Mincho faire le travail. */
html[lang="ja"] em { font-style: normal; }
html[lang="ja"] .mst em,
html[lang="ja"] .letter p em {
  font-style: normal; font-family: var(--f-serif); font-weight: 600; letter-spacing: .02em;
}
/* le sélecteur de langue : « 日本語 » est plus large que « EN » et se cassait
   sur deux lignes dans la pilule */
html[lang="ja"] .lang-opt { letter-spacing: 0; }
