/* L’Atelier du Crible · vert profond, verre sauge, éclats néon */

:root {
  --bg: #0a1511;
  --bg-2: #0f241a;
  --sage: #9db08f;
  --sage-2: #6f8a72;
  --charcoal: #181c1b;
  --panel: rgba(14, 32, 24, 0.55);
  --glass: linear-gradient(145deg, rgba(170, 196, 160, 0.11), rgba(12, 30, 22, 0.42) 60%, rgba(24, 28, 27, 0.5));
  --line: rgba(220, 236, 210, 0.08);
  --line-2: rgba(220, 236, 210, 0.15);
  --text: #ece6d8;
  --soft: #bfc6b8;
  --mute: #8b978c;
  --neon: #d4ff3a;
  --neon-soft: rgba(212, 255, 58, 0.12);
  --neon-glow: rgba(212, 255, 58, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wide: 76rem;
  --phi: 1.6180339887;
  --phi-inv: 0.6180339887;
  --phi-sm: 0.3819660113;
  --section-y: clamp(4.2rem, 11vh, calc(7.5rem * var(--phi-inv)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.68;
  letter-spacing: -0.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
body::after {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0; z-index: 200;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--text); text-decoration-color: var(--neon); text-underline-offset: 0.2em; }
a:hover { color: var(--neon); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--neon); color: var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 300; padding: 0.5rem 1rem; background: var(--neon); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- Atmosphère ---------- */

.atmos {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 80% 0%, rgba(157, 176, 143, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 60%, rgba(111, 138, 114, 0.18), transparent 65%),
    linear-gradient(170deg, #0a1511 0%, #0f241a 32%, #17301f 58%, #1d2a24 78%, #151918 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  will-change: transform;
  animation: drift 38s ease-in-out infinite alternate;
}
.b1 { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: radial-gradient(circle, rgba(157, 176, 143, 0.16), transparent 62%); }
.b2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 30vh; background: radial-gradient(circle, rgba(212, 255, 58, 0.05), transparent 60%); animation-duration: 46s; animation-delay: -12s; }
.b3 { width: 70vmax; height: 70vmax; left: 20vw; bottom: -40vmax; background: radial-gradient(circle, rgba(60, 88, 70, 0.35), transparent 62%); animation-duration: 54s; animation-delay: -24s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(0.96); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sage), var(--neon));
  box-shadow: 0 0 12px var(--neon-glow);
  transition: transform 0.18s linear;
}

/* ---------- Verre ---------- */

.glass {
  position: relative;
  background: rgba(14, 32, 24, 0.82);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 80px -40px rgba(0, 0, 0, 0.65);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .top, .modal-backdrop, .modal-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 26, 20, 0.94);
  }
}
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(212, 255, 58, 0.08), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.glass:hover::after { opacity: 1; }

/* ---------- Typographie ---------- */

.neon { color: var(--neon); text-shadow: 0 0 18px var(--neon-glow); }
@media (max-width: 760px) {
  .neon { text-shadow: 0 0 10px rgba(212, 255, 58, 0.28); }
}
.kicker, .num {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
  margin: 0 0 1rem;
}
.num::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.7em;
  border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon-glow); vertical-align: 0.15em;
}
.num-plain::before { display: none; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -0.038em; line-height: 1; margin: 0;
  font-feature-settings: "ss01", "cv11";
  text-wrap: balance;
}
h3 { letter-spacing: -0.025em; line-height: 1.15; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--text); }

[data-split] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(105%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--w) * 65ms); }
.js .in [data-split] .wi, .js [data-split].in .wi { transform: none; }

/* ---------- En-tête ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  margin: 0;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  padding-bottom: 0.85rem;
  padding-left: max(1rem, env(safe-area-inset-left), calc((100% - var(--wide)) / 2 + 0.25rem));
  padding-right: max(1rem, env(safe-area-inset-right), calc((100% - var(--wide)) / 2 + 0.25rem));
  background: rgba(10, 21, 17, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.top.is-scrolled {
  background: rgba(10, 21, 17, 0.9);
  border-bottom-color: rgba(212, 255, 58, 0.12);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.7);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.03em;
  text-decoration: none; color: var(--text);
}
.logo { width: 30px; height: auto; fill: var(--text); flex: none; transition: transform 0.6s var(--ease); }
.wordmark:hover .logo { transform: rotate(-8deg) scale(1.06); }
.wordmark:hover { color: var(--text); }
.top nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); font-size: 0.9rem; }
.top nav a { color: var(--soft); text-decoration: none; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--neon); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.top nav a:hover { color: var(--text); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  padding: 0.5rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(212, 255, 58, 0.5); background: rgba(212, 255, 58, 0.06); color: var(--neon);
  font-size: 0.85rem; font-weight: 600; transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { background: var(--neon); color: var(--bg); box-shadow: 0 0 24px var(--neon-glow); }
@media (max-width: 760px) {
  .top nav a { display: none; }
  .wordmark span { font-size: 0.95rem; }
  .nav-cta { padding: 0.55rem 1rem; min-height: 44px; }
}

/* ---------- Rail ---------- */

.rail {
  position: fixed; right: 1.4rem; top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: grid; gap: 0.75rem;
}
.rail a {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 21, 17, 0.6);
  transition: background 0.45s var(--ease), border-color 0.45s, transform 0.45s var(--ease), box-shadow 0.45s;
}
.rail a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 1px;
  height: calc(0.75rem - 2px);
  background: linear-gradient(180deg, rgba(212, 255, 58, 0.35), transparent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.rail a:not(:last-child).on::before { transform: translateX(-50%) scaleY(1); }
.rail a span {
  position: absolute; right: 1.3rem; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--soft);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.35s var(--ease);
}
.rail a:hover span, .rail a:focus-visible span, .rail a.on span { opacity: 1; transform: translate(0, -50%); color: var(--text); }
.rail a.on { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 14px var(--neon-glow); transform: scale(1.25); }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------- Ouverture ---------- */

.hero {
  position: relative;
  isolation: isolate;
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
  display: grid; grid-template-columns: minmax(0, var(--phi)fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  min-height: min(88vh, 52rem);
}
.hero-bg {
  position: absolute;
  inset: -6% -10% auto -10%;
  height: min(82vh, 46rem);
  z-index: -1;
  pointer-events: none;
  border-radius: 0 0 36% 36% / 0 0 10% 10%;
  overflow: hidden;
}
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 30%;
  filter: saturate(0.82) contrast(1.04) brightness(0.58);
  transform: scale(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 21, 17, 0.96) 0%, rgba(10, 21, 17, 0.88) 34%, rgba(10, 21, 17, 0.45) 58%, rgba(10, 21, 17, 0.52) 100%),
    linear-gradient(180deg, transparent 42%, var(--bg) 96%);
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  min-width: 0;
}
.sieve, .hero-toc, .scroll-cue { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  max-width: 14ch;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: none;
}
.hero h1 .neon { display: inline; }
.hero-sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.3; color: var(--soft); margin: 1.4rem 0 0; max-width: 32rem; }
.lead { max-width: 36rem; color: var(--soft); font-size: 1.05rem; margin: 1.2rem 0 0; }
.js .hero-in { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d) * 120ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.sieve { position: relative; justify-self: end; align-self: end; width: min(100%, 18rem); margin-top: 0.5rem; margin-bottom: 0.5rem; z-index: 2; }
.sieve-svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--text); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.sieve-svg path.cell {
  fill: rgba(236, 230, 216, 0.14);
  stroke: rgba(212, 255, 58, 0.35);
  stroke-width: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.72);
  animation: cell-birth 0.95s var(--ease) forwards;
  animation-delay: calc(var(--i) * 12ms);
}
.sieve-svg path.cell.divided {
  fill: rgba(236, 230, 216, 0.03);
  stroke: rgba(157, 176, 143, 0.28);
}
.sieve-svg path.cell.lit {
  animation: cell-birth 0.95s var(--ease) forwards, lit-soft 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 12ms), calc(var(--i) * 40ms + 1.2s);
}
.sieve-svg.cycle-end path.cell:not(.gen-0) {
  transition: opacity 0.7s var(--ease);
  opacity: 0.15;
}
@keyframes cell-birth {
  0% { opacity: 0; transform: scale(0.72); }
  65% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes lit-soft {
  0%, 82%, 100% { fill: rgba(236, 230, 216, 0.14); stroke: rgba(212, 255, 58, 0.35); }
  90% { fill: rgba(212, 255, 58, 0.22); stroke: rgba(212, 255, 58, 0.7); }
}

/* ---------- Boot intro ---------- */
.boot-veil {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  gap: 1.2rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(157, 176, 143, 0.18), transparent 70%),
    #0a1511;
  transition: opacity 1.35s var(--ease), visibility 1.35s;
}
.boot-veil.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-sieve {
  width: min(72vw, 22rem);
  color: var(--text);
  filter: drop-shadow(0 0 28px rgba(212, 255, 58, 0.18));
}
.boot-sieve path.cell {
  fill: rgba(236, 230, 216, 0.16);
  stroke: rgba(212, 255, 58, 0.4);
  stroke-width: 0.4;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.7);
  animation: cell-birth 1.35s var(--ease) forwards;
  animation-delay: calc(var(--i) * 18ms);
}
.boot-sieve path.cell.divided {
  fill: rgba(236, 230, 216, 0.04);
}
.boot-mark {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  opacity: 0;
  animation: boot-mark-in 1.1s var(--ease) 0.55s forwards;
}
@keyframes boot-mark-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.9; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-veil { display: none !important; }
}

.hero-map {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(5.5rem, auto);
  gap: 0.75rem;
}
.hero-toc {
  grid-column: 1 / -1;
  margin-top: clamp(1.5rem, 4vh, 3rem);
}
.toc-label {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}
.hero-map > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  height: 100%;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 18px;
  color: var(--text);
  min-width: 0;
}
.hero-map > li:nth-child(1) { grid-column: span 2; }
.hero-map > li:nth-child(4) { grid-column: span 2; }
.hero-map .map-ico {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(212, 255, 58, 0.28);
  background: rgba(212, 255, 58, 0.06);
  color: var(--neon);
  flex: none;
}
.hero-map .map-ico svg { width: 1.55rem; height: 1.55rem; }
.hero-map .map-copy { display: grid; gap: 0.15rem; min-width: 0; }
.hero-map .n { font-family: var(--mono); font-size: 0.72rem; color: var(--mute); }
.hero-map strong { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; font-size: 1.15rem; }
.hero-map .w { font-size: 0.86rem; color: var(--mute); }
.hero-map .is-you { border-color: rgba(212, 255, 58, 0.3); }
.hero-map .is-you .n { color: var(--neon); }
.scroll-cue { grid-column: 1 / -1; justify-self: center; display: block; width: 22px; height: 36px; border-radius: 12px; border: 1px solid var(--line-2); position: relative; margin-top: 1rem; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--neon); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: clamp(5.2rem, 16vw, 6.5rem);
    gap: 1.1rem;
  }
  .sieve {
    order: 2;
    position: absolute;
    right: 0.4rem;
    top: clamp(5.8rem, 18vw, 7.2rem);
    width: min(28%, 6.8rem);
    margin: 0;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
  }
  .hero-text { order: 1; max-width: none; position: relative; z-index: 1; }
  .hero-toc { order: 3; }
  .scroll-cue { order: 4; }
  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.85rem);
    max-width: 100%;
    padding-inline-end: 0.15rem;
  }
  .hero-bg {
    inset: 0 -4% auto -4%;
    height: min(48vh, 22rem);
    border-radius: 0 0 22% 22% / 0 0 8% 8%;
  }
  .hero-bg img {
    object-position: 88% 16%;
    filter: saturate(0.9) contrast(1.06) brightness(0.78);
    transform: scale(1.05);
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 21, 17, 0.22) 0%, rgba(10, 21, 17, 0.5) 38%, rgba(10, 21, 17, 0.9) 78%, var(--bg) 100%),
      linear-gradient(105deg, rgba(10, 21, 17, 0.78) 0%, rgba(10, 21, 17, 0.28) 60%, rgba(10, 21, 17, 0.15) 100%);
  }
  .hero-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .hero-map > li,
  .hero-map > li:nth-child(1),
  .hero-map > li:nth-child(4) {
    grid-column: span 1;
    padding: 0.9rem 0.95rem 1rem;
  }
}
@media (max-width: 520px) {
  .hero-map { grid-template-columns: 1fr; }
  .hero-map > li,
  .hero-map > li:nth-child(1),
  .hero-map > li:nth-child(4) { grid-column: 1; }
  .sieve { width: min(24%, 5.6rem); opacity: 0.45; top: clamp(5.4rem, 16vw, 6.6rem); }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.45rem); letter-spacing: -0.035em; }
  .top { padding-inline: 1rem; }
  .wordmark span { font-size: 0.95rem; }
  .nav-cta { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
}

/* ---------- Chapitres ---------- */

.chapter {
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, var(--phi-inv)fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, calc(5rem * var(--phi-inv)));
  align-items: start;
  isolation: isolate;
  overflow: visible;
}
.chapter > * { min-width: 0; }
.chapter-text { min-width: 0; }
.chapter h2 { overflow-wrap: break-word; }
.chapter-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--phi-inv)fr);
}
.chapter-flip .chapter-text { order: 2; }
.chapter-wide { display: block; }
.chapter-phi-stack {
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
.chapter-offset .chapter-text { transform: none; }
.chapter-offset .funnel,
.chapter-offset .blueprint { transform: none; }
.break-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.25rem, calc(50vw - var(--wide) / 2));
  padding-right: max(1.25rem, calc(50vw - var(--wide) / 2));
  border-top: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 18%, rgba(212, 255, 58, 0.045), transparent 65%),
    linear-gradient(180deg, transparent, rgba(157, 176, 143, 0.05) 40%, transparent);
}
.break-center {
  text-align: center;
}
.break-center .dx-intro,
.break-center .chapter-text {
  margin-inline: auto;
  max-width: min(36rem, 100%);
}
.break-rail {
  border-left: 2px solid rgba(212, 255, 58, 0.28);
  padding-left: clamp(1rem, 3vw, 2rem);
}
.break-dense { letter-spacing: -0.01em; }
.break-airy { padding-block: calc(var(--section-y) * var(--phi)); }
.break-cut {
  position: relative;
}
.break-cut::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(12rem, 40%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.55;
}
@media (max-width: 880px) {
  .chapter,
  .chapter-flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter-flip .chapter-text { order: 0; }
  .chapter-offset .chapter-text,
  .chapter-offset .funnel,
  .chapter-offset .blueprint { transform: none; }
  .break-rail {
    border-left: 0;
    border-top: 2px solid rgba(212, 255, 58, 0.22);
    padding-left: 0;
    padding-top: 1.35rem;
  }
  .break-airy { padding-block: calc(var(--section-y) * 1.18); }
  .break-dense .chapter-text { max-width: 28rem; }
  .break-center .spin-invite { margin-inline: auto; }
  .chapter:nth-of-type(odd) .chapter-text { padding-inline-end: 0.35rem; }
  .chapter:nth-of-type(even) .chapter-text { padding-inline-start: 0.35rem; }
}
.chapter h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 0.98; margin-bottom: 1.3rem; }
.chapter-text > p:not(.num):not(.word) { color: var(--soft); max-width: 32rem; margin: 0 0 1rem; }
.word { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.6rem; margin: 1.6rem 0 2rem; color: var(--mute); }
.note { max-width: 32rem; padding: 1.1rem 1.3rem; border-radius: 16px; border-left: 2px solid var(--neon); min-height: 7.4rem; }
.note-k { margin: 0 0 0.25rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--neon); }
.note-p { margin: 0; color: var(--text); font-size: 0.98rem; transition: opacity 0.3s; }
.note-p.swap { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Fig. 1 ---------- */

.blueprint, .mood, .funnel { margin: 0; padding: clamp(1rem, 2.5vw, 1.6rem); border-radius: 24px; }
.bp-stage { position: relative; overflow: visible; border-radius: 12px; }
.bp-svg { display: block; width: 100%; height: auto; }
.scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212, 255, 58, 0.09), transparent);
  border-right: 1px solid rgba(212, 255, 58, 0.35);
  transform: translateX(-110%);
}
.in .scan { animation: scan 2.4s var(--ease) 0.2s, scan 7s ease-in-out 6s infinite; }
@keyframes scan { 0% { transform: translateX(-110%); } 100% { transform: translateX(380%); } }
.draw { fill: none; stroke: #e2e3da; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.d2 { transition-delay: 0.35s; }
.d3 { transition-delay: 0.7s; }
.d4 { transition-delay: 1.05s; stroke: var(--sage); stroke-width: 1.2; }
.dim, .dim path { stroke: var(--sage-2); stroke-width: 1; }
.dim-t { font-family: var(--mono); font-size: 10px; fill: var(--mute); letter-spacing: 0.05em; }
.in .draw, .in .draw path { stroke-dashoffset: 0; }
.dim path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 1.05s; }
.in .steam { animation: none; }
.steam-line {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: center bottom;
  transform-box: fill-box;
}
.in .steam-line {
  animation: steam-rise 3.8s ease-in-out infinite;
}
.in .steam-line.s1 { animation-delay: 2.4s; }
.in .steam-line.s2 { animation-delay: 2.75s; }
.in .steam-line.s3 { animation-delay: 3.05s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(6px) scaleY(0.85); stroke-dashoffset: 1; }
  18% { opacity: 0.85; }
  55% { opacity: 0.45; transform: translateY(-10px) scaleY(1.05); }
  100% { opacity: 0; transform: translateY(-22px) scaleY(1.15); }
}
.handle-outer, .handle-inner {
  fill: none;
  stroke: #e2e3da;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.handle-outer { stroke-width: 2.5; }
.handle-inner { stroke-width: 1.6; stroke: rgba(226, 227, 218, 0.75); }

/* ---------- Chapitres : stages note / média ---------- */

.chapter-stage {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.chapter-mug {
  grid-template-columns: minmax(0, var(--phi-inv)fr) minmax(0, 1fr);
}
.chapter-mug .scene-inline {
  grid-column: 1;
  max-width: min(100%, 28rem);
  margin-top: 0;
}

/* Stack interne : empilement garanti (plus de grid-areas qui se chevauchent) */
.chapter-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  width: 100%;
  position: relative;
  isolation: isolate;
}
.chapter-stack > * {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none;
  width: 100%;
  max-width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 auto;
  z-index: auto;
}

.chapter-mood {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--phi-inv)fr);
  align-items: start;
}
.chapter-mood.chapter-flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--phi-inv)fr);
}
.chapter-mood .chapter-stack {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.chapter-mood .chapter-text {
  grid-column: 2;
  grid-row: 1;
}
.chapter-mood .chapter-stack .note {
  max-width: none;
}
.chapter-mood .chapter-stack .scene-inline {
  max-width: min(100%, 36rem);
}

.chapter-loss {
  grid-template-columns: minmax(0, var(--phi-inv)fr) minmax(0, 1fr);
  align-items: start;
}
.chapter-loss .chapter-text {
  grid-column: 1;
  grid-row: 1;
}
.chapter-loss .chapter-stack {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.chapter-loss .chapter-stack .scene-inline {
  max-width: min(100%, 28rem);
}

@media (max-width: 880px) {
  .chapter-mug,
  .chapter-mood,
  .chapter-mood.chapter-flip,
  .chapter-loss {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.15rem, 4vw, 1.75rem);
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
  }
  .chapter-mug > *,
  .chapter-mood > *,
  .chapter-loss > * {
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
  }
  .chapter-mug .chapter-text { order: 1; }
  .chapter-mug .chapter-stage { order: 2; }
  .chapter-mug .scene-inline { order: 3; margin-top: 0; }

  .chapter-mood .chapter-text { order: 1; }
  .chapter-mood .chapter-stack { order: 2; }
  .chapter-mood.chapter-flip .chapter-text { order: 1; }

  .chapter-loss .chapter-text { order: 1; }
  .chapter-loss .chapter-stack { order: 2; }

  /* Funnel / scène : pleine largeur, centrés (plus de colonne fantôme) */
  .chapter-loss .chapter-stack,
  .chapter-loss .funnel,
  .chapter-loss .scene-inline,
  .chapter-loss > .funnel,
  .chapter-loss > .scene-inline {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    justify-self: stretch;
    align-self: stretch;
    grid-column: 1 / -1 !important;
    grid-area: auto !important;
  }

  .chapter-stack {
    gap: clamp(0.9rem, 3vw, 1.25rem);
  }
  .chapter-mood .chapter-stack .scene-inline,
  .chapter-loss .chapter-stack .scene-inline {
    max-width: 100%;
  }

  /* Courbe vécu : les repères ne doivent pas recouvrir la note */
  .chapter-mood .graph {
    padding-bottom: clamp(3.2rem, 14vw, 4.8rem);
    margin-bottom: 0.35rem;
    overflow: visible;
  }
  .chapter-mood .mood-dots {
    inset: 0 0 clamp(3rem, 12vw, 4.2rem) 0;
  }
  .chapter-mood .mdot .mdot-l {
    opacity: 0;
    max-width: 5.5rem;
    font-size: 0.62rem;
  }
  .chapter-mood .mdot.on .mdot-l,
  .chapter-mood .mdot:focus-visible .mdot-l {
    opacity: 1;
  }
}

.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 30px; height: 30px; transform: translate(-50%, -50%) scale(0);
  border-radius: 50%; border: 1.5px solid var(--neon); background: rgba(10, 21, 17, 0.85);
  color: var(--neon); font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  display: grid; place-items: center;
  transition: background 0.25s, color 0.25s, transform 0.5s var(--ease), box-shadow 0.25s;
}
.in .pin { transform: translate(-50%, -50%) scale(1); transition-delay: calc(1.6s + var(--i) * 0.15s), 0s, 0s, 0s; }
html:not(.js) .pin { transform: translate(-50%, -50%); }
.pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--neon); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
.pin.seen::after { animation: none; }
.in .pin:hover { transform: translate(-50%, -50%) scale(1.12); transition-delay: 0s; }
.pin.on { background: var(--neon); color: var(--bg); box-shadow: 0 0 26px var(--neon-glow); }
@keyframes ping { 0% { opacity: 0.6; transform: scale(0.8); } 80%, 100% { opacity: 0; transform: scale(1.6); } }
.blueprint figcaption, .mood-head, .funnel-head, .funnel figcaption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--mute); }
.blueprint figcaption { margin-top: 0.7rem; }

/* ---------- Fig. 2 ---------- */

.mood-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.chip { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 21, 17, 0.4); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--soft); transition: all 0.25s; }
.chip:hover { border-color: var(--neon); color: var(--neon); }
.chip[aria-pressed="true"] { background: var(--neon); border-color: var(--neon); color: var(--bg); box-shadow: 0 0 22px var(--neon-glow); }

.graph, .journey-graph { position: relative; padding-bottom: 2.6rem; }
.mood-svg, .j-svg { display: block; width: 100%; height: auto; overflow: visible; }
.js .graph svg, .js .journey-graph svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease) 0.3s; }
.js .in .graph svg, .js .in .journey-graph svg { clip-path: inset(-20% -2% -20% 0); }
.axis { stroke: var(--line-2); stroke-dasharray: 3 5; }
.axis-t { font-family: var(--mono); font-size: 9px; fill: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; }
.mood-line { fill: none; stroke: var(--neon); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(212, 255, 58, 0.45)); transition: opacity 0.4s, stroke 0.4s; }
.mood-area { fill: url(#area-g); }
.mood-dots { position: absolute; inset: 0 0 2.6rem 0; }
.mdot {
  position: absolute; width: 18px; height: 18px; padding: 0;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%; border: 2px solid var(--neon); background: var(--bg);
  transition: transform 0.4s var(--ease), opacity 0.4s, background 0.25s, border-color 0.3s, box-shadow 0.3s;
}
.in .mdot { transform: translate(-50%, -50%) scale(1); transition-delay: calc(0.6s + var(--i) * 0.22s), 0s, 0s, 0s, 0s; }
html:not(.js) .mdot { transform: translate(-50%, -50%); }
.mdot::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }
.in .mdot:hover, .in .mdot.on { transform: translate(-50%, -50%) scale(1.3); background: var(--neon); box-shadow: 0 0 20px var(--neon-glow); transition-delay: 0s; }
.mdot-l {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.7rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: 7.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--mute);
  text-align: center;
  pointer-events: none;
  text-wrap: balance;
  transition: color 0.28s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mdot.on .mdot-l, .mdot:hover .mdot-l { color: var(--text); }

/* Desktop : labels du parcours, apparition échelonnée */
@media (min-width: 561px) {
  .journey-graph .mdot-l {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  .js .in .journey-graph .mdot .mdot-l {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
    transition-delay: calc(0.7s + var(--i) * 0.3s);
  }
  .js .in .journey-graph .mdot.on .mdot-l,
  .js .in .journey-graph .mdot:hover .mdot-l,
  .js .in .journey-graph .mdot:focus-visible .mdot-l {
    opacity: 1;
    color: var(--text);
  }
  html:not(.js) .journey-graph .mdot-l {
    opacity: 0.7;
    transform: translateX(-50%);
  }
}
.mood-memo { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 0.95rem; color: var(--soft); transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.4s; }
.mood-memo strong { color: var(--neon); font-weight: 500; }
.mood.memory .mood-memo { max-height: 12rem; opacity: 1; margin-top: 0.4rem; }
.mood.memory .mood-line { opacity: 0.3; }
.mood.memory .mdot:not(.keep) { opacity: 0.25; }
.mood.memory .mdot.keep { background: var(--neon); box-shadow: 0 0 0 7px var(--neon-soft), 0 0 26px var(--neon-glow); }

/* ---------- Équation ---------- */

.equation { width: min(100% - 2.5rem, var(--wide)); margin: 0 auto; padding: clamp(3rem, 9vh, 5.5rem) 0; border-top: 1px solid var(--line); text-align: center; }
.equation p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.4rem 1.1rem; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(1.7rem, 4vw, 3.1rem); line-height: 1.15; }
.equation span:not(.neon) { color: var(--soft); }
.equation i { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 0.55em; color: var(--mute); }
.js .equation span, .js .equation i { display: inline-block; opacity: 0; transition: opacity 0.8s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .equation .eq-a { transform: translateX(-60px); }
.js .equation .eq-b { transform: translateX(60px); }
.js .equation .eq-op { transform: scale(0.3); }
.js .equation .eq-r { transform: translateY(20px); filter: blur(8px); }
.js .equation.in span, .js .equation.in i { opacity: 1; transform: none; filter: none; }
.js .equation.in .eq-op { transition-delay: 0.5s; }
.js .equation.in .eq-eq { transition-delay: 0.8s; }
.js .equation.in .eq-r { transition-delay: 1s; }

/* ---------- Fig. 3 ---------- */

.dx-intro { max-width: 48rem; margin-bottom: 2.6rem; }
.dx-intro > p:last-child { color: var(--soft); font-size: 1.1rem; margin: 0; }
.hl { color: var(--text); background: linear-gradient(transparent 62%, rgba(212, 255, 58, 0.22) 62%) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s var(--ease) 0.6s; }
.in .hl, html:not(.js) .hl { background-size: 100% 100%; }

.journey { border-radius: 26px; overflow: hidden; }
.journey-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem clamp(1rem, 2.5vw, 1.6rem); border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.12); }
.tabs, .switch { position: relative; display: inline-flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: rgba(10, 21, 17, 0.7); border: 1px solid var(--line); }
.tabs button, .switch button { position: relative; z-index: 1; padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: transparent; font-size: 0.86rem; color: var(--mute); transition: color 0.25s, background 0.25s; }
.tabs b { font-family: var(--mono); font-weight: 500; margin-right: 0.3rem; }
.tabs button:hover, .switch button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: rgba(157, 176, 143, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs button[aria-selected="true"] b { color: var(--neon); }
.switch::before { content: ""; position: absolute; top: 0.25rem; bottom: 0.25rem; left: 0.25rem; width: calc(50% - 0.375rem); border-radius: 999px; background: rgba(157, 176, 143, 0.18); transition: transform 0.45s var(--ease), background 0.45s, box-shadow 0.45s; }
.switch.is-designed::before { transform: translateX(calc(100% + 0.25rem)); background: var(--neon); box-shadow: 0 0 22px var(--neon-glow); }
.switch button { min-width: 5.5rem; }
.switch button[aria-pressed="true"] { color: var(--text); }
.switch.is-designed button[aria-pressed="true"] { color: var(--bg); font-weight: 600; }
.journey-panel { padding: clamp(1.2rem, 3vw, 2.2rem); }
.journey-def { margin: 0 0 1.8rem; max-width: 44rem; font-size: 1.05rem; min-height: 3.4em; }
.journey-graph { padding-bottom: 4.2rem; }
.journey-graph .mood-dots { inset: 0 0 4.2rem 0; }
.j-line { stroke: #6f7d72; filter: none; stroke-dasharray: 6 6; }
.journey-graph.designed .j-line { stroke: var(--neon); stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(212, 255, 58, 0.45)); }
.journey-graph .mdot.bad { border-color: #6f7d72; }
.in .journey-graph .mdot.bad.on, .in .journey-graph .mdot.bad:hover { background: #8d998f; box-shadow: none; }
.j-note { margin-top: 0.6rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(0, 0, 0, 0.16); border: 1px solid var(--line); min-height: 5.2rem; }
.j-score { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--mute); }
.j-score b { color: var(--text); font-weight: 600; }
.designed ~ .j-score b { color: var(--neon); }
.bridge {
  max-width: 46rem;
  margin: 2.6rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: var(--soft);
  display: grid;
  gap: 0.85rem;
}
.bridge .link-cta {
  margin-top: 0;
  justify-self: start;
}
.bridge-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 720px) {
  .bridge-links { grid-template-columns: 1fr; }
  .bridge .link-cta { width: 100%; justify-content: space-between; }
}

/* ---------- Fig. 4 · Manque à gagner ---------- */

.funnel-head { margin-bottom: 1rem; }
.range { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; font-size: 0.95rem; color: var(--soft); }
.range b { color: var(--neon); font-family: var(--mono); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--neon) var(--p, 43%), rgba(220, 236, 210, 0.15) var(--p, 43%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 6px var(--neon-soft), 0 0 18px var(--neon-glow); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 6px var(--neon-soft); cursor: grab; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.bars li { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: 0.8rem; font-size: 0.86rem; }
.bar-l { color: var(--soft); }
.bars b { font-family: var(--mono); font-weight: 500; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 12px; border-radius: 6px; background: rgba(220, 236, 210, 0.06); overflow: hidden; }
.bar i, .bar em { position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transition: transform 0.9s var(--ease); }
.bar em { background: repeating-linear-gradient(135deg, rgba(212, 255, 58, 0.28) 0 4px, transparent 4px 8px); transform: scaleX(var(--g, 0)); }
.bar i { background: linear-gradient(90deg, var(--sage-2), var(--sage)); transform: scaleX(0); z-index: 1; }
.in .bar i { transform: scaleX(var(--s, 1)); }
.bars li:nth-child(2) .bar i { transition-delay: 0.1s; }
.bars li:nth-child(3) .bar i { transition-delay: 0.2s; }
.bars li:nth-child(4) .bar i { transition-delay: 0.3s; }
.bars li:nth-child(5) .bar i { transition-delay: 0.4s; }
.funnel-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.funnel-out p { margin: 0; display: grid; gap: 0.2rem; font-size: 0.86rem; color: var(--soft); }
.big { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bars li { grid-template-columns: 5.4rem 1fr 2.6rem; } .funnel-out { grid-template-columns: 1fr; } }

/* ---------- SPIN ---------- */

.spin-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1rem; padding-bottom: 1rem; }
.spin-steps button { display: grid; gap: 0.1rem; justify-items: start; text-align: left; padding: 0.9rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 21, 17, 0.4); color: var(--mute); transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.spin-steps b { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--sage); transition: color 0.3s; }
.spin-steps span { font-weight: 600; color: var(--soft); }
.spin-steps small { font-size: 0.78rem; }
.spin-steps button:hover { transform: translateY(-2px); border-color: var(--line-2); }
.spin-steps button[aria-selected="true"] { border-color: rgba(212, 255, 58, 0.45); background: rgba(157, 176, 143, 0.12); color: var(--soft); }
.spin-steps button[aria-selected="true"] b { color: var(--neon); text-shadow: 0 0 18px var(--neon-glow); }
.spin-steps button.done b::after { content: " ✓"; font-size: 0.6em; color: var(--neon); }
.spin-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.spin-track span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sage), var(--neon)); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 0.6s var(--ease); }
.spin-panels { border-radius: 26px; padding: clamp(1.2rem, 3vw, 2.2rem); }
.spin-panel { border: 0; margin: 0; padding: 0; display: grid; gap: 0.7rem; min-height: 15rem; align-content: start; }
.spin-panel:not([hidden]) .q { animation: swap 0.55s var(--ease) both; }
.spin-panel .q:nth-of-type(2) { animation-delay: 0.08s; }
.spin-panel .q:nth-of-type(3) { animation-delay: 0.16s; }
.q { position: relative; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(10, 21, 17, 0.3); cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.q:hover { border-color: var(--line-2); }
.q input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; border-radius: 7px; border: 1.5px solid var(--sage); display: grid; place-items: center; transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease); }
.box::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -0.15rem; transition: transform 0.3s var(--ease); }
.q input:checked + .box { background: var(--neon); border-color: var(--neon); transform: scale(1.08); box-shadow: 0 0 16px var(--neon-glow); }
.q input:checked + .box::after { transform: rotate(45deg) scale(1); }
.q input:checked ~ span:last-child { color: var(--text); }
.q:has(input:checked) { border-color: rgba(212, 255, 58, 0.35); background: rgba(212, 255, 58, 0.04); }
.q input:focus-visible + .box { outline: 2px solid var(--neon); outline-offset: 3px; }
.q > span:last-child { color: var(--soft); }
.spin-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.spin-meter { display: flex; align-items: center; gap: 0.9rem; max-width: 34rem; }
.spin-meter svg { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.spin-meter circle { fill: none; stroke: var(--line-2); stroke-width: 3; }
#spin-ring { stroke: var(--neon); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s var(--ease); filter: drop-shadow(0 0 4px var(--neon-glow)); }
.spin-meter p { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.92rem; color: var(--soft); }
.spin-meter b { font-family: var(--display); font-size: 1.8rem; letter-spacing: -0.04em; color: var(--text); }
.spin-nav { display: flex; gap: 0.5rem; }
.ghost { padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 0.88rem; transition: all 0.25s; }
.ghost:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); }
.ghost:disabled { opacity: 0.35; cursor: default; }
.ghost-on { border-color: rgba(212, 255, 58, 0.5); color: var(--neon); }
@media (max-width: 720px) {
  .spin-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
  .spin-steps button { padding: 0.7rem 0.5rem; justify-items: center; text-align: center; }
  .spin-steps small, .spin-steps span { display: none; }
}

/* ---------- Solutions ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
  perspective: none;
}
.pillar {
  grid-column: span 2;
  padding: 1.45rem 1.35rem 1.5rem;
  border-radius: 22px;
  transform: none !important;
  transform-style: flat;
  transition: border-color 0.3s, background 0.3s, opacity 0.9s var(--ease);
  min-width: 0;
}
.pillar:nth-child(1) { grid-column: span 3; }
.pillar:nth-child(2) { grid-column: span 3; }
.pillar:nth-child(3) { grid-column: 2 / span 4; }
.js .pillars .pillar.reveal.in { transform: none !important; }
.pillar:hover { border-color: rgba(212, 255, 58, 0.3); }
.p-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: rgba(212, 255, 58, 0.08); border: 1px solid rgba(212, 255, 58, 0.25); margin-bottom: 1.2rem; }
.p-ico svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--neon); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease) 0.4s; }
.in .p-ico svg, html:not(.js) .p-ico svg { stroke-dashoffset: 0; }
.p-k { margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.pillar > p:not(.p-k):not(.p-gain) { color: var(--soft); font-size: 0.97rem; margin: 0 0 1.1rem; }
.p-gain {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 255, 58, 0.18);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--neon);
  line-height: 1.45;
}

/* Cartes à fond illustré (lisibilité préservée) */
.pillar-media,
.fan-media,
.folio-media,
.method-media,
.cta-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0a1511;
  background-image:
    linear-gradient(165deg, rgba(8, 16, 12, 0.48) 0%, rgba(8, 16, 12, 0.72) 48%, rgba(8, 16, 12, 0.88) 100%),
    var(--card-bg);
  background-size: cover, cover;
  background-position: center, center;
  transition: border-color 0.3s, background 0.6s;
}
.pillar-media.glass,
.fan-media.glass,
.folio-media.glass,
.method-media.glass,
.cta-media.glass {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.pillar-media:hover,
.fan-media:hover,
.folio-media:hover,
.method-media:hover {
  background-image:
    linear-gradient(165deg, rgba(8, 16, 12, 0.52) 0%, rgba(8, 16, 12, 0.74) 45%, rgba(8, 16, 12, 0.88) 100%),
    var(--card-bg);
}
.pillar-media > *,
.fan-media > *,
.folio-media > *,
.method-media > *,
.cta-media > *:not(.cta-glow) {
  position: relative;
  z-index: 1;
}
.pillar-media .p-ico {
  background: rgba(8, 16, 12, 0.55);
  backdrop-filter: blur(6px);
}
.pillar-media .tags li,
.pillar-media .roles li {
  background: rgba(8, 16, 12, 0.55);
  border-color: rgba(236, 230, 216, 0.14);
}
.fan-media em { color: rgba(236, 230, 216, 0.72); }
.method-media .steps li {
  background: rgba(8, 16, 12, 0.55);
}
.cta-media {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212, 255, 58, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(8, 16, 12, 0.5) 0%, rgba(8, 16, 12, 0.82) 40%, rgba(8, 16, 12, 0.94) 100%),
    var(--card-bg);
  background-size: cover, cover, cover;
  background-position: center, center, 50% 30%;
}
.cta-media .scene-portrait { display: none; }
.cta-media .cta-glow { z-index: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.76rem; color: var(--soft); background: rgba(10, 21, 17, 0.35); }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.roles li { padding: 0.6rem 0.8rem; border-radius: 12px; background: rgba(10, 21, 17, 0.35); border: 1px solid var(--line); font-size: 0.84rem; color: var(--mute); line-height: 1.4; }
.roles b { display: block; color: var(--text); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; gap: 0.75rem; }
  .pillar,
  .pillar:nth-child(1),
  .pillar:nth-child(2),
  .pillar:nth-child(3) { grid-column: 1 / -1; }
}

/* Terrains bento */
.terrains {
  margin-top: clamp(2rem, 5vh, 3.2rem);
}
.terrains-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  max-width: 40rem;
}
.terrains-head .num { margin: 0; }
.terrains-head p { margin: 0; color: var(--soft); }
.bento-terrains {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: clamp(22rem, 38vw, 30rem);
}
.bento-tile {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  min-height: 0;
  aspect-ratio: auto;
}
.bento-tile:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.bento-tile:nth-child(2) { grid-area: 1 / 2 / 2 / 4; }
.bento-tile:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
.bento-tile:nth-child(4) { grid-area: 2 / 3 / 3 / 4; }
.bento-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05) brightness(0.82);
  transition: transform 1.2s var(--ease), filter 0.5s;
}
.bento-tile:hover img { transform: scale(1.04); filter: saturate(0.95) contrast(1.06) brightness(0.9); }
.bento-tile figcaption {
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.75rem;
  z-index: 2;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 230, 216, 0.82);
  background: rgba(8, 16, 12, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(236, 230, 216, 0.1);
}
.bento-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 16, 12, 0.72));
  pointer-events: none;
}
@media (max-width: 900px) {
  .bento-terrains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: 0;
  }
  .bento-tile:nth-child(1) {
    grid-area: auto;
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
  .bento-tile:nth-child(2),
  .bento-tile:nth-child(3) {
    grid-area: auto;
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .bento-tile:nth-child(4) {
    grid-area: auto;
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 380px) {
  .bento-terrains { grid-template-columns: 1fr; }
  .bento-tile,
  .bento-tile:nth-child(1),
  .bento-tile:nth-child(2),
  .bento-tile:nth-child(3),
  .bento-tile:nth-child(4) {
    grid-area: auto;
    grid-column: 1;
    aspect-ratio: 16 / 10;
  }
}

.folio {
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.7fr);
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1.3rem 1.5rem;
  border-radius: 22px;
}
.folio p { margin: 0; color: var(--soft); max-width: none; }
.folio strong { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 0.2rem; }
.folio .link-cta { justify-self: end; margin-top: 0; }
@media (max-width: 720px) {
  .folio { grid-template-columns: 1fr; }
  .folio .link-cta { justify-self: stretch; justify-content: space-between; }
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
  margin-top: clamp(2.4rem, 7vh, 4.5rem);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background-color: rgba(10, 21, 17, 0.28);
}
.orbit {
  position: relative;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 50%;
  --r: 39%;
  --T: 12s;
}
.orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit circle { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.orbit-dot { position: absolute; inset: 0; animation: spin var(--T) linear infinite; }
.orbit-dot::before { content: ""; position: absolute; left: 50%; top: 11%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 18px var(--neon-glow), 0 0 0 6px var(--neon-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
.node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(min(32vw, 7.2rem)) rotate(calc(-1 * var(--a)));
  padding: 0.3rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(10, 21, 17, 0.9); border: 1px solid var(--line-2); color: var(--soft);
  white-space: nowrap;
  animation: nodeOn var(--T) linear infinite; animation-delay: calc(var(--n) * var(--T) / 5 - 0.3s);
}
@keyframes nodeOn { 0%, 10% { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 18px var(--neon-soft); } 18%, 100% { border-color: var(--line-2); color: var(--soft); box-shadow: none; } }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 3.2rem; height: 3.2rem; transform: translate(-50%, -50%); border-radius: 12px; box-shadow: 0 0 40px rgba(157, 176, 143, 0.3); }
.method-text h3 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin-bottom: 1rem; }
.steps {
  list-style: none; counter-reset: s; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0.75rem 0.85rem 0.75rem 2.4rem;
  color: var(--soft);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 17, 0.35);
  font-size: 0.9rem;
}
.steps li:last-child { grid-column: 1 / -1; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0.7rem; top: 0.85rem; font-family: var(--mono); font-size: 0.7rem; color: var(--neon); }
.steps b { color: var(--text); }
@media (max-width: 880px) {
  .method { grid-template-columns: 1fr; padding: 1rem; }
  .orbit { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li:last-child { grid-column: auto; }
}

/* ---------- Budget ---------- */

.link-cta { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding: 0.75rem 1.3rem; border-radius: 999px; border: 1px solid rgba(212, 255, 58, 0.5); color: var(--neon); text-decoration: none; font-weight: 600; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.link-cta span { transition: transform 0.35s var(--ease); }
.link-cta:hover { background: var(--neon); color: var(--bg); box-shadow: 0 0 26px var(--neon-glow); }
.link-cta:hover span { transform: translateX(4px); }
.fan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.fan-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  align-content: start;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  transform: none !important;
  transition: border-color 0.3s, background 0.3s, opacity 0.7s var(--ease);
  min-width: 0;
}
.js .fan-card { opacity: 1; transform: none !important; }
.js .fan.reveal:not(.in) .fan-card { opacity: 0; }
.js .fan.in .fan-card {
  opacity: 1;
  transform: none !important;
  transition-delay: calc(var(--k) * 0.08s + 0.12s);
}
.fan-card:hover { border-color: rgba(212, 255, 58, 0.4); color: var(--text); }
.js .fan.in .fan-card:hover { transform: none !important; transition-delay: 0s; }
.fan-n {
  grid-row: auto;
  width: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.fan-card strong { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.03em; }
.fan-card em { font-style: normal; font-size: 0.84rem; color: var(--mute); }
.fan-help {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px dashed rgba(212, 255, 58, 0.28);
  background: rgba(212, 255, 58, 0.04);
  font-size: 0.92rem;
  color: var(--soft);
}
@media (max-width: 640px) {
  .fan { grid-template-columns: 1fr; gap: 0.55rem; }
  .fan-help { font-size: 0.88rem; }
}

/* ---------- Audit offert ---------- */

.cta {
  position: relative;
  width: min(100% - 2.5rem, calc(var(--wide) * var(--phi-inv) + 18rem));
  margin: clamp(2.4rem, 6vh, 4rem) auto 0;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.2rem, 4vw, 2.4rem);
  border-radius: 36px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: 0.7; }
.cta-glow { position: absolute; z-index: -1; left: 50%; top: -45%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(circle, rgba(212, 255, 58, 0.1), transparent 62%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.12); opacity: 0.7; } }
.cta h2 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1; margin-bottom: 1.6rem; }
.price { display: flex; justify-content: center; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.was { font-size: 0.95rem; color: var(--mute); }
.was s { text-decoration: none; position: relative; color: var(--soft); }
.was s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.9s; }
.in .was s::after, html:not(.js) .was s::after { transform: scaleX(1); }
.now { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; color: var(--neon); text-shadow: 0 0 30px var(--neon-glow); }
.js .now { opacity: 0; transform: scale(0.6); transition: opacity 0.6s var(--ease) 1.5s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s; }
.js .in .now { opacity: 1; transform: none; }
.cta-p { max-width: 36rem; margin: 0 auto 1.6rem; color: var(--soft); }
.assure {
  list-style: none;
  margin: 0 auto 2.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 42rem;
}
.assure li {
  padding: 0.7rem 0.85rem 0.75rem 2rem;
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(10, 21, 17, 0.35);
  font-size: 0.85rem;
  color: var(--soft);
  text-align: left;
}
.assure li::before { content: "✓"; position: absolute; left: 0.75rem; color: var(--neon); }
@media (max-width: 720px) {
  .assure { grid-template-columns: 1fr; max-width: 22rem; }
}
.btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: 1.05rem 2.3rem; border: 0; border-radius: 999px;
  background: var(--neon); color: var(--bg); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(212, 255, 58, 0.4), 0 10px 40px -10px var(--neon-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.3s;
  text-decoration: none;
}
.btn:hover { color: var(--bg); box-shadow: 0 0 0 6px var(--neon-soft), 0 16px 50px -10px rgba(212, 255, 58, 0.55); }
.btn-sub { font-family: var(--mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.06em; opacity: 0.72; }
.cta-alt { margin: 1.4rem 0 0; font-size: 0.9rem; color: var(--mute); }
.cta .scene-portrait {
  margin: 0 auto 1.5rem;
  max-width: 15rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.cta-finisher {
  display: grid;
  gap: 0.35rem;
  margin: 1.4rem auto 0;
  max-width: 28rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Pied de page ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto;
  padding: 1.6rem 0 max(2.4rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--mute);
}
.foot p { margin: 0; }
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--neon); }
.foot-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--soft); }
.foot .logo { width: 1.35rem; height: auto; fill: var(--sage); }

/* ---------- Page des aides ---------- */

.page-hero { width: min(100% - 2.5rem, var(--wide)); margin: 0 auto; padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2rem, 5vh, 3rem); }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 0.96; max-width: 16ch; }
.crumb { font-family: var(--mono); font-size: 0.74rem; color: var(--mute); margin: 0 0 1.4rem; }
.crumb a { color: var(--soft); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; }
.filters button { padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 21, 17, 0.4); color: var(--soft); font-size: 0.86rem; transition: all 0.25s; }
.filters button:hover { border-color: var(--neon); color: var(--neon); }
.filters button[aria-pressed="true"] { background: var(--neon); border-color: var(--neon); color: var(--bg); font-weight: 600; }
.aid-group { width: min(100% - 2.5rem, var(--wide)); margin: 0 auto; padding: clamp(2rem, 6vh, 3.5rem) 0; border-top: 1px solid var(--line); }
.aid-group[hidden] { display: none; }
.aid-group > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.aid-group h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.aid-group header p { margin: 0; color: var(--mute); max-width: 32rem; font-size: 0.95rem; }
.aids {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
.aid {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 20px;
  transition: border-color 0.3s, background 0.3s;
  min-width: 0;
}
.aids .aid:only-child { grid-column: span 6; }
.aids .aid:first-child:nth-last-child(3),
.aids .aid:first-child:nth-last-child(3) ~ .aid {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .aids { grid-template-columns: 1fr; }
  .aid,
  .aids .aid:first-child:nth-last-child(3),
  .aids .aid:first-child:nth-last-child(3) ~ .aid {
    grid-column: 1 / -1;
  }
}
.aid:hover { border-color: rgba(212, 255, 58, 0.3); }
.aid-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.badge { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--sage); }
.badge.hot { border-color: rgba(212, 255, 58, 0.45); color: var(--neon); }
.aid h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.aid p { margin: 0 0 0.9rem; font-size: 0.93rem; color: var(--soft); }
.aid dl { margin: 0 0 1rem; display: grid; gap: 0.5rem; font-size: 0.86rem; }
.aid dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.aid dd { margin: 0; color: var(--text); }
.aid .amount { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; color: var(--neon); }
.aid a.src { margin-top: auto; font-size: 0.84rem; color: var(--soft); }
.helpband { width: min(100% - 2.5rem, var(--wide)); margin: clamp(2rem, 6vh, 4rem) auto; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 28px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; }
.helpband h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.helpband p { color: var(--soft); margin: 0 0 1rem; }
.disclaimer { width: min(100% - 2.5rem, var(--wide)); margin: 0 auto 3rem; font-size: 0.82rem; color: var(--mute); max-width: 52rem; }
@media (max-width: 880px) { .helpband { grid-template-columns: 1fr; } }

/* ---------- Pop-up ---------- */

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 14, 10, 0.55); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); opacity: 0; transition: opacity 0.32s var(--ease); }
.modal-panel {
  position: relative; display: flex; flex-direction: column;
  width: min(100%, 64rem); max-height: min(92vh, 52rem);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(30, 52, 40, 0.72), rgba(14, 24, 19, 0.82));
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden; opacity: 0; transform: translateY(18px) scale(0.98);
  transition: opacity 0.32s var(--ease), transform 0.42s var(--ease);
}
.modal-panel:focus { outline: none; }
.modal-panel::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: 0.6; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.3rem 1.5rem 1rem; border-bottom: 1px solid var(--line); }
.modal-head .kicker { margin: 0 0 0.3rem; color: var(--neon); }
.modal-head h2 { font-size: 1.6rem; line-height: 1.15; }
.modal-close { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); transition: border-color 0.25s, transform 0.3s var(--ease); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.modal-close:hover { border-color: var(--neon); transform: rotate(90deg); }
.modal-close:hover svg { stroke: var(--neon); }
.modal-body { position: relative; flex: 1; min-height: 30rem; overflow: auto; overscroll-behavior: contain; }
.cal-inline { width: 100%; min-height: 30rem; opacity: 0; transition: opacity 0.5s var(--ease); }
.cal-ready .cal-inline { opacity: 1; }
.cal-loader { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 0.5rem; pointer-events: none; transition: opacity 0.3s; }
.cal-ready .cal-loader { opacity: 0; }
.cal-loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon-glow); animation: blink 1.2s ease-in-out infinite; }
.cal-loader span:nth-child(2) { animation-delay: 0.15s; }
.cal-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: none; } }
.modal-foot { margin: 0; padding: 0.75rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--mute); }
@media (max-width: 560px) { .modal { padding: 0; place-items: end stretch; } .modal-panel { border-radius: 22px 22px 0 0; max-height: 94vh; } }

/* ---------- Apparitions ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] > .reveal { transition-delay: calc(var(--i, 0) * 0.14s); }
html:not(.js) .draw, html:not(.js) .dim path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in, .js .sieve-svg path, .js .now, .js .fan-card, .js .equation span, .js .equation i { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-split] .wi { transform: none; }
  .scroll-cue span { display: none; }
}

@media (min-width: 900px) { .j-svg .axis-t { font-size: 7px; } }
@media (max-width: 560px) {
  .journey-bar { flex-direction: column; align-items: stretch; }
  .tabs, .switch { display: flex; }
  .tabs button, .switch button { flex: 1; padding: 0.45rem 0.4rem; font-size: 0.8rem; white-space: nowrap; }
  .tabs b { margin-right: 0.2rem; }
}
.mood-svg path, .j-svg path { vector-effect: non-scaling-stroke; }
.mood-svg { aspect-ratio: 600 / 240; }
.j-svg { aspect-ratio: 600 / 220; }
@media (max-width: 560px) {
  .mood-svg, .j-svg { aspect-ratio: auto; height: 200px; }
  .axis-t { display: none; }

  /* Labels : absolute largeur lisible — jamais static dans le bouton */
  .mdot .mdot-l {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.5rem);
    width: max-content;
    max-width: min(6.4rem, 34vw);
    font-size: 0.6rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    color: var(--text);
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.25s;
    transition-delay: 0s;
  }
  .mdot:first-child .mdot-l {
    left: 0;
    transform: translateX(0) translateY(4px);
    text-align: left;
  }
  .mdot:last-child .mdot-l {
    left: 100%;
    transform: translateX(-100%) translateY(4px);
    text-align: right;
  }
  .mdot.on .mdot-l,
  .mdot:focus-visible .mdot-l {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .mdot:first-child.on .mdot-l,
  .mdot:first-child:focus-visible .mdot-l {
    transform: translateX(0) translateY(0);
  }
  .mdot:last-child.on .mdot-l,
  .mdot:last-child:focus-visible .mdot-l {
    transform: translateX(-100%) translateY(0);
  }

  .journey-graph {
    padding-bottom: clamp(2.8rem, 12vw, 3.6rem);
  }
  .journey-graph .mood-dots { inset: 0 0 clamp(2.6rem, 11vw, 3.4rem) 0; }

  .graph { padding-bottom: 1rem; }
  .mood-dots { inset: 0 0 1rem 0; }
  .pin { width: 36px; height: 36px; }
  .mdot { width: 22px; height: 22px; }
  .chapter, .hero, .equation, .cta, .foot, .page-hero, .aid-group, .helpband, .disclaimer,
  .about-fahd, .local-band {
    width: min(100% - 1.5rem, var(--wide));
  }
  .bp-stage { touch-action: manipulation; }
}

.scene {
  position: relative;
  margin: 0 0 1.2rem;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
}
.scene img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 1.4s var(--ease), filter 1.2s var(--ease);
  filter: saturate(0.92) contrast(1.04);
}
.scene.in img, html:not(.js) .scene img { transform: none; }
.scene-wide img { aspect-ratio: 16 / 9; }
.scene-portrait img { aspect-ratio: 3 / 4; max-height: 28rem; margin-inline: auto; }
.scene figcaption,
.cap-shimmer {
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.75rem;
  z-index: 2;
  margin: 0;
  width: auto;
  max-width: calc(100% - 1.7rem);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 230, 216, 0.55);
  background: rgba(8, 16, 12, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(236, 230, 216, 0.08);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cap-shimmer::after,
.scene figcaption::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(212, 255, 58, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shimmer-sweep 4.8s var(--ease) infinite;
}
@keyframes shimmer-sweep {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
.scene::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 16, 12, 0.78) 100%);
  opacity: 0.92;
}
.scene-inline {
  margin-top: 1.4rem;
  width: 100%;
  max-width: min(100%, 28rem);
}
.dx-visual {
  margin: 0 0 2.2rem;
  max-width: 100%;
}
.cta-visual {
  width: min(100% - 2.5rem, 28rem);
  margin: 0 auto 1.6rem;
}
.local-band {
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto clamp(2rem, 6vh, 4rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, var(--phi-inv)fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
}
.local-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 0.9rem; }
.local-band p { margin: 0 0 0.8rem; color: var(--soft); }
.local-band .scene { margin: 0; max-width: 100%; }
@media (max-width: 880px) {
  .local-band { grid-template-columns: 1fr; }
  .scene-inline { max-width: 100%; margin-inline: 0; }
  .scene img { max-height: min(48vh, 20rem); width: 100%; }
  .scene-wide img { max-height: min(40vh, 16rem); }
  .scene-portrait img { max-height: min(44vh, 18rem); }
  .blueprint, .mood, .funnel, .journey {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
  }
  .bp-svg, .mood-svg, .j-svg { max-width: 100%; height: auto; }
  .pin { width: 28px; height: 28px; font-size: 0.78rem; }
  /* fan / cards : pas de stack chevauchant */
  .js .fan-card,
  .js .fan.in .fan-card,
  .js .fan.in .fan-card:hover {
    transform: none;
    opacity: 1;
    transition-delay: 0s;
  }
  .fan { gap: 0.55rem; }
  .fan-card { transform: none !important; }
  .pillars { gap: 0.85rem; }
  .pillar { transform: none !important; }
  .hero-map > li { min-height: 0; }
}

/* ---------- Mobile / Opera harden ---------- */

@media (max-width: 760px), (pointer: coarse) {
  .blob { animation: none; opacity: 0.7; }
  .b2, .b3 { display: none; }
  .glass {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    background: rgba(14, 28, 22, 0.88);
  }
  .top {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 21, 17, 0.88);
  }
  .scan { display: none; }
  .orbit-dot, .node { animation: none; }
  .js .pillars .pillar.reveal.in { transform: none; }
  .cta-glow { animation: none; }
  body::after { opacity: 0.03; }
  .hero-bg {
    inset: 0 -4% auto -4%;
    height: min(46vh, 20rem);
    border-radius: 0 0 22% 22% / 0 0 8% 8%;
  }
  .hero { min-height: auto; padding-top: clamp(5rem, 14vw, 6rem); }
  .cap-shimmer::after, .scene figcaption::after { animation-duration: 6.5s; }
}
@media (max-width: 760px) {
  .js .graph svg, .js .journey-graph svg {
    clip-path: none;
    opacity: 0;
    transition: opacity 0.8s var(--ease);
  }
  .js .in .graph svg, .js .in .journey-graph svg { opacity: 1; }
}
@media (min-width: 761px) {
  /* sticky retiré */
}

/* ---------- SPIN invite + interrogatoire ---------- */

.spin-invite {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, var(--phi)fr);
  gap: clamp(1.2rem, 2.8vw, 2.2rem);
  align-items: center;
  margin-top: 1.8rem;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  border-radius: 28px;
  overflow: hidden;
}
.spin-invite-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 10rem;
  max-height: 14rem;
  background: rgba(8, 16, 12, 0.55);
}
.spin-invite-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  max-height: 14rem;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.spin-invite-letters {
  position: absolute;
  inset: auto 0.8rem 0.8rem 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  z-index: 2;
}
.spin-invite-letters span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(212, 255, 58, 0.28);
  background: rgba(10, 21, 17, 0.55);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--neon);
  letter-spacing: -0.04em;
}
.spin-invite-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  text-align: left;
}
.spin-invite-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.spin-invite-copy p { margin: 0; color: var(--soft); max-width: 34rem; }
.spin-invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
}
.spin-invite-meta li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.spin-modal .modal-panel {
  width: min(100% - 1.5rem, 34rem);
  max-height: min(92vh, 44rem);
  display: flex;
  flex-direction: column;
}
.spin-modal .modal-body {
  flex: 1;
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  min-height: 0;
}
.spin-stage {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.spin-stage-ico {
  width: min(100%, 9.5rem);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.8);
}
.spin-stage-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spin-progress {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.spin-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0.08);
  background: linear-gradient(90deg, var(--sage), var(--neon));
  transition: transform 0.55s var(--ease);
}
.spin-stage-k {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}
.spin-q {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 28ch;
}
.spin-letters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}
.spin-letters button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(10, 21, 17, 0.45);
  border-radius: 14px;
  padding: 0.55rem 0.35rem;
  color: var(--mute);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.spin-letters b {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--sage);
}
.spin-letters small { display: none; }
.spin-letters button[aria-current="true"] {
  border-color: rgba(212, 255, 58, 0.5);
  background: rgba(157, 176, 143, 0.14);
  color: var(--soft);
  transform: translateY(-2px);
}
.spin-letters button[aria-current="true"] b { color: var(--neon); text-shadow: 0 0 16px var(--neon-glow); }
.spin-letters button.done b::after { content: "·"; margin-left: 0.15em; color: var(--neon); }
.spin-choices {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}
.spin-choices button {
  appearance: none;
  border: 1px solid var(--line-2);
  background: rgba(14, 32, 24, 0.55);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  text-align: left;
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.spin-choices button:hover {
  border-color: rgba(212, 255, 58, 0.4);
  transform: translateY(-1px);
}
.spin-choices button.on {
  border-color: rgba(212, 255, 58, 0.55);
  background: rgba(212, 255, 58, 0.08);
}
.spin-choices strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.spin-choices span {
  font-size: 0.82rem;
  color: var(--mute);
}
.spin-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.4rem;
}
.spin-end {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}
.spin-end .big {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--neon);
}
@media (max-width: 760px) {
  .spin-invite { grid-template-columns: 1fr; }
  .spin-invite-visual { min-height: 11rem; }
  .spin-invite-visual img { min-height: 11rem; }
}

/* ---------- Bio Fahd + CTA fina ---------- */

.about-fahd {
  width: min(100% - 2.5rem, var(--wide));
  margin: clamp(1.6rem, 4vh, 2.8rem) auto clamp(2rem, 6vh, 4rem);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(0, var(--phi-sm)fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 2.8rem);
  align-items: center;
  border-color: rgba(212, 255, 58, 0.16);
}
.about-portrait {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 26rem;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.88) contrast(1.06);
}
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(8, 16, 12, 0.55)),
    linear-gradient(135deg, rgba(212, 255, 58, 0.08), transparent 45%);
  pointer-events: none;
}
.about-fahd h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}
.about-fahd p { margin: 0 0 0.85rem; color: var(--soft); max-width: 38rem; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.about-links a:hover {
  border-color: rgba(212, 255, 58, 0.45);
  color: var(--neon);
  background: rgba(212, 255, 58, 0.06);
}
.about-links .ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 255, 58, 0.45);
  background: rgba(212, 255, 58, 0.08);
  color: var(--neon);
  font-size: 0.92rem;
}
.about-links svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (max-width: 880px) {
  .about-fahd { grid-template-columns: 1fr; }
  .about-portrait { max-width: 16rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-shimmer::after, .scene figcaption::after,
  .in .steam-line, .sieve-svg path.cell { animation: none !important; opacity: 1; transform: none; }
}
