/* Neoo Forge — page canonique cinématique scroll-scrub « Du prompt au résultat ».
   Source de vérité : scripts/generate-neoo-forge.mjs + docs/design-neoo-forge-10k.md.
   Monde : la lumière du jour de l'accueil (canvas #f8f9ff, encre navy, bleus Neoo),
   l'atelier Forge ensoleillé du film. Pattern éprouvé du repo (hx/mx/sp), préfixe fx-. */

.forge10k-page {
  --fx-canvas: #f8f9ff;
  --fx-panel: #ffffff;
  --fx-ink: #0c1643;
  --fx-ink-soft: #3f4c6e;
  --fx-night: #0c1643;
  --fx-night-panel: #16204f;
  --fx-paper: #e8edff;
  --fx-paper-soft: #9fadd6;
  --fx-accent: #2b53e8;
  --fx-accent-soft: #4d7dff;
  --fx-accent-deep: #1d3db8;
  --fx-glow: #4d7dff;
  --fx-amber: #2b53e8;
  --fx-line: rgba(76, 98, 176, .18);
  --fx-line-strong: rgba(76, 98, 176, .38);
  --fx-ease: cubic-bezier(.23, 1, .32, 1);
  --fx-subnav-h: 59px;
  --fx-stage-top: calc(var(--partner-overview-header-h, 84px) + var(--fx-subnav-h));
  --fx-display: "Cerebri Sans", "Segoe UI", system-ui, sans-serif;
  --fx-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fx-tshadow-light: 0 1px 0 rgba(248, 249, 255, .92), 0 2px 10px rgba(248, 249, 255, .78), 0 10px 40px rgba(248, 249, 255, .85);
  --fx-shell: min(calc(100% - 96px), 1240px);
  background: var(--fx-canvas);
  color: var(--fx-ink);
}

.forge10k-page [hidden] { display: none !important; }

html:has(body.forge10k-page),
body.forge10k-page {
  overflow-x: hidden;
  overflow-x: clip;
}

.forge10k-page :where(a, button, summary):focus-visible {
  outline: 3px solid var(--fx-accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.forge10k-page .fx-console :where(a, button, summary):focus-visible,
.forge10k-page .fx-boundary :where(a, button, summary):focus-visible { outline-color: var(--fx-glow); }

/* ---------- L'environnement fixe (un seul calque, toute la page) ---------- */
.fx-env {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 12% 18%, rgba(43, 83, 232, .05), transparent 70%),
    radial-gradient(40% 30% at 88% 76%, rgba(77, 125, 255, .045), transparent 70%);
}

.fx-env i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fx-accent-soft);
  opacity: .3;
}

.fx-env i:nth-child(1) { top: 22%; left: 8%; }
.fx-env i:nth-child(2) { top: 58%; left: 92%; width: 4px; height: 4px; }
.fx-env i:nth-child(3) { top: 84%; left: 16%; width: 3px; height: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .fx-env i { animation: fx-drift 72s var(--fx-ease) infinite alternate; }
  .fx-env i:nth-child(2) { animation-duration: 88s; animation-delay: -31s; }
  .fx-env i:nth-child(3) { animation-duration: 64s; animation-delay: -50s; }

  @keyframes fx-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(26px, -60px, 0); }
  }
}

body.fx-paused .fx-env i,
body.fx-paused .fx-env i::before,
body.fx-paused .fx-env i::after { animation-play-state: paused !important; }

.forge10k-page main { position: relative; z-index: 1; background: transparent; }

.forge10k-page .fx-stage,
.forge10k-page .fx-static-hero { z-index: 1; }

/* ---------- Le héro scrub épinglé (1300vh : 4 segments, 5 bandes) ---------- */
.fx-hero {
  position: relative;
  height: 1300vh;
}

.fx-stage {
  position: sticky;
  top: var(--fx-stage-top);
  height: calc(100svh - var(--fx-stage-top));
  overflow: hidden;
  isolation: isolate;
  background: var(--fx-canvas);
}

.fx-stage__media {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--fx-canvas);
}

.fx-stage__media video,
.fx-stage__media .fx-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  transform: translateZ(0);
}

.fx-stage__media .fx-poster {
  background-position: center top;
  background-size: cover;
}

.fx-stage__media video {
  opacity: 0;
  transition: opacity 420ms var(--fx-ease);
}

.fx-stage.fx-video-ready .fx-stage__media video { opacity: 1; }
.fx-stage.fx-video-failed .fx-stage__media video { display: none; }

/* Voile de base clair : aucune frame brute derrière la page. */
.fx-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 92% at 50% 45%, rgba(248, 249, 255, 0) 40%, rgba(248, 249, 255, .55) 100%);
}

.fx-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding-top: 0;
  display: grid;
  align-items: center;
  width: min(calc(100% - 96px), 1560px);
  margin-inline: auto;
}

.fx-band {
  grid-area: 1 / 1;
  position: relative;
  max-width: 620px;
  opacity: 0;
  pointer-events: none;
}

.fx-band.fx-is-on { pointer-events: auto; }

/* Voile par bande : blanc doux, meurt à 76 % pour laisser vivre la scène. */
.fx-band::before {
  content: "";
  position: absolute;
  inset: -16% -20%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(.25 + .75 * var(--k, 1));
  background: radial-gradient(ellipse 76% 64% at 50% 50%, rgba(248, 249, 255, var(--fx-scrim, .78)) 0%, rgba(248, 249, 255, calc(var(--fx-scrim, .78) * .7)) 46%, rgba(248, 249, 255, 0) 76%);
}

.fx-band--right { justify-self: end; }
.fx-band--center { justify-self: center; text-align: center; }
.fx-band--center .fx-sub { margin-inline: auto; }

.fx-band .fx-kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--fx-accent);
  font-family: var(--fx-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: var(--fx-tshadow-light);
}

.fx-band--center .fx-kicker { justify-content: center; }

.fx-band .fx-kicker .fx-wordmark {
  font-family: var(--fx-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--fx-ink);
}

.fx-band .fx-kicker .fx-wordmark span { color: var(--fx-accent); }

.fx-band h2 {
  margin: 0;
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-weight: 300;
  font-size: clamp(44px, 4.8vw, 78px);
  letter-spacing: -.052em;
  line-height: 1.06;
  text-shadow: var(--fx-tshadow-light);
}

.fx-band .fx-sub {
  margin: 20px 0 0;
  max-width: 38ch;
  color: var(--fx-ink-soft);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
  text-shadow: var(--fx-tshadow-light);
}

.fx-band .fx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  opacity: var(--kb, 0);
  transform: translateY(calc((1 - var(--kb, 0)) * 14px));
}

.fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  opacity: var(--kb, 0);
}

.fx-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  color: var(--fx-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.fx-chips li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fx-accent-soft);
  box-shadow: 0 0 8px rgba(77, 125, 255, .7);
}

/* Boutons du monde forge */
.fx-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--fx-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  cursor: pointer;
  transition: transform 160ms var(--fx-ease), box-shadow 180ms var(--fx-ease), border-color 180ms var(--fx-ease), background-color 180ms var(--fx-ease);
}

.fx-btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--fx-ease);
}

@media (hover: hover) and (pointer: fine) {
  .fx-btn:hover svg { transform: translateX(3px); }
}

.fx-btn span { white-space: nowrap; }

.fx-btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--fx-accent), var(--fx-accent-soft));
  box-shadow: 0 14px 32px rgba(43, 83, 232, .26);
}

.fx-btn--ghost {
  color: var(--fx-ink);
  border-color: var(--fx-line-strong);
  background: rgba(255, 255, 255, .85);
}

@media (hover: hover) and (pointer: fine) {
  .fx-btn:hover { transform: translateY(-2px); }
  .fx-btn--primary:hover { box-shadow: 0 18px 38px rgba(43, 83, 232, .36); }
  .fx-btn--ghost:hover { border-color: var(--fx-accent); }
}

@media (pointer: coarse) {
  .fx-btn { min-height: 44px; }
}

/* Spans du split : assemblage piloté par le --k de chaque bande. */
.fx-w { display: inline-block; white-space: pre; }
.fx-c { display: inline-block; }

/* (f) drift-down — bande 1 : l'intention se pose */
.e-drift .fx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.8), 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * -26px));
}

/* (d) word-punch — bande 2 : l'assemblage frappe */
.e-punch .fx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 3), 1);
  --ks: clamp(0, calc((var(--k, 0) - var(--th, 0) - .12) * 3), 1);
  opacity: var(--kc);
  transform: scale(calc(.6 + .52 * var(--kc) - .12 * var(--ks)));
}

/* (a) scatter-assemble — bande 3 : les pièces se connectent */
.e-scatter .fx-c {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.6), 1);
  opacity: var(--kc);
  transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)), calc((1 - var(--kc)) * var(--jy, 0px))) rotate(calc((1 - var(--kc)) * var(--jr, 0deg)));
}

/* (g) approach-from-depth — bande 4 : la porte approche */
.e-depth .fx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 2.8), 1);
  opacity: var(--kc);
  transform: scale(calc(.84 + .16 * var(--kc)));
}

/* (e) rise étagé — le repos */
.e-rise .fx-w {
  --kc: clamp(0, calc((var(--k, 0) - var(--th, 0)) * 3), 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 22px));
}

.e-rise .fx-sub {
  opacity: var(--ks2, 0);
  transform: translateY(calc((1 - var(--ks2, 0)) * 12px));
}

/* L'indice de scroll */
.fx-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--fx-ink-soft);
  font-family: var(--fx-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: var(--cue, 1);
  transition: opacity 300ms var(--fx-ease);
  pointer-events: none;
}

.fx-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--fx-accent), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .fx-cue i { animation: fx-cue-drop 2.4s var(--fx-ease) -1.2s infinite; transform-origin: top; }

  @keyframes fx-cue-drop {
    0% { transform: scaleY(0); }
    45%, 100% { transform: scaleY(1); }
  }
}

@media (max-height: 560px) {
  .fx-cue, .fx-chips { display: none; }
}

/* ---------- Le chargement du film : visible, honnête, jamais muet ---------- */
.fx-loader {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(12, 22, 67, .1);
  color: var(--fx-ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translateX(-50%);
  transition: opacity 420ms var(--fx-ease), transform 420ms var(--fx-ease), right 420ms var(--fx-ease), bottom 420ms var(--fx-ease);
  pointer-events: none;
}

.fx-loader svg { width: 22px; height: 22px; transform: rotate(-90deg); flex: none; }
.fx-loader svg circle { fill: none; stroke-width: 4; }
.fx-loader .fx-loader__track { stroke: rgba(76, 98, 176, .22); }
.fx-loader .fx-loader__fill { stroke: var(--fx-accent); stroke-linecap: round; }
.fx-loader b { color: var(--fx-ink); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

/* Le visiteur scrolle pendant le chargement : la pastille se range en bas à droite et reste visible. */
.fx-loader--docked {
  left: auto;
  right: 20px;
  bottom: 20px;
  transform: translateX(0) scale(.94);
}

.fx-stage.fx-video-ready .fx-loader { opacity: 0; visibility: hidden; transition: opacity 420ms var(--fx-ease), visibility 0s 420ms; }
.fx-stage.fx-video-failed .fx-loader { display: none; }

/* Le repère de scroll n'apparaît que quand le film est prêt (ou en mode image). */
.fx-stage:not(.fx-video-ready):not(.fx-video-failed) .fx-cue { opacity: 0; }

/* ---------- Le héro statique (téléphones, portrait, reduced motion) ---------- */
.fx-static-hero {
  display: none;
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--fx-canvas);
}

.fx-static-hero .fx-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: 68% center;
  background-size: cover;
}

.fx-static-hero .fx-veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(248, 249, 255, .94) 0%, rgba(248, 249, 255, .82) 36%, rgba(248, 249, 255, .4) 64%, rgba(248, 249, 255, .12) 100%),
    linear-gradient(0deg, rgba(248, 249, 255, .9) 0%, rgba(248, 249, 255, 0) 42%);
}

.fx-static-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(calc(100% - 48px), 1560px);
  min-height: 92svh;
  margin-inline: auto;
  padding: calc(var(--partner-overview-header-h, 84px) + 20px) 0 56px;
}

.fx-static-copy .fx-kicker {
  margin: 0 0 16px;
  color: var(--fx-accent);
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.fx-static-title {
  margin: 0;
  max-width: 640px;
  font-family: var(--fx-display);
  font-weight: 300;
  font-size: clamp(40px, 8.4vw, 70px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.fx-static-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--fx-accent), var(--fx-accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-static-copy .fx-lede {
  margin: 18px 0 0;
  max-width: 46ch;
  color: var(--fx-ink-soft);
  font-size: clamp(16px, 2.1vw, 21px);
  line-height: 1.55;
}

.fx-static-copy .fx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fx-static-copy .fx-chips { opacity: 1; }

/* Les cinq gates — chaînes identiques dans neoo-forge-scrub.js. */
@media (max-width: 720px),
       (orientation: portrait) and (max-width: 1024px),
       (orientation: portrait) and (pointer: coarse),
       (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
       (prefers-reduced-motion: reduce) {
  .fx-hero { display: none; }
  .fx-static-hero { display: block; }
}

/* ---------- Le site sous le settle ---------- */
.fx-section {
  position: relative;
  background: transparent;
}

.fx-shell {
  position: relative;
  width: var(--fx-shell);
  margin-inline: auto;
  padding: clamp(76px, 9vw, 132px) 0;
}

.fx-section--paper { background: linear-gradient(180deg, rgba(208, 216, 240, .5), rgba(248, 249, 255, 0) 52%); }

.fx-compat-anchor {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--partner-overview-header-h, 84px) + 24px);
}

/* La ligne de forge : le rail signature qui longe chaque section. */
.fx-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(18px, calc((100% - 1240px) / 2 - 52px));
  width: 22px;
  pointer-events: none;
}

.fx-rail svg { width: 100%; height: 100%; overflow: visible; }

.fx-rail path {
  fill: none;
  stroke: rgba(43, 83, 232, .34);
  stroke-width: 1.6;
  stroke-dasharray: 1;
}

.fx-rail circle { fill: var(--fx-glow); }

/* Sans JavaScript, la ligne reste tracée ; le dessin au scroll n'existe qu'avec .fx-js. */
.fx-js .fx-rail path { stroke-dashoffset: 1; }
.fx-js .fx-rail circle { opacity: 0; transition: opacity 600ms var(--fx-ease) 900ms; }
.fx-js .fx-section.in .fx-rail path { transition: stroke-dashoffset 1400ms var(--fx-ease); stroke-dashoffset: 0; }
.fx-js .fx-section.in .fx-rail circle { opacity: .9; }

@media (max-width: 1100px) {
  .fx-rail { display: none; }
}

/* Têtes de section */
.fx-head {
  max-width: 760px;
  margin: 0 0 clamp(34px, 4.5vw, 56px);
}

.fx-head .fx-eyebrow,
.fx-eyebrow {
  margin: 0 0 14px;
  color: var(--fx-accent);
  font-family: var(--fx-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fx-head h2 {
  margin: 0;
  font-family: var(--fx-display);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.fx-head > p:not(.fx-eyebrow) {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--fx-ink-soft);
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.6;
}

/* Entrées choreographiées (IntersectionObserver ajoute .in sur la section).
   Masquées uniquement sous .fx-js : sans JavaScript, tout le contenu reste visible. */
.fx-js .fx-reveal {
  opacity: 0;
  transform: translateY(26px);
}

.fx-js .fx-section.in .fx-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--fx-ease), transform 700ms var(--fx-ease);
}

.fx-js .fx-section.in .fx-reveal.fx-d1 { transition-delay: 120ms; }
.fx-js .fx-section.in .fx-reveal.fx-d2 { transition-delay: 240ms; }
.fx-js .fx-section.in .fx-reveal.fx-d3 { transition-delay: 360ms; }

/* Retraite des délais après l'entrée : même spécificité + .is-settled posé par le JS. */
.fx-js .fx-section.is-settled .fx-reveal.fx-d1,
.fx-js .fx-section.is-settled .fx-reveal.fx-d2,
.fx-js .fx-section.is-settled .fx-reveal.fx-d3 { transition-delay: 0ms; }

/* ---------- 1. Vision : les pièces posées sur l'établi ---------- */
.fx-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.fx-problem {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--fx-line);
  border-radius: 18px;
  background: var(--fx-panel);
  box-shadow: 0 18px 40px rgba(12, 22, 67, .07);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 600ms var(--fx-ease), box-shadow 300ms var(--fx-ease);
}

.fx-problem:nth-child(1) { --tilt: -1.1deg; }
.fx-problem:nth-child(2) { --tilt: .7deg; margin-top: 14px; }
.fx-problem:nth-child(3) { --tilt: -.6deg; }

.fx-section.in .fx-problem { transform: rotate(0deg); }

@media (hover: hover) and (pointer: fine) {
  .fx-section.in .fx-problem:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(12, 22, 67, .11); }
}

.fx-problem > span {
  display: inline-block;
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-amber);
  letter-spacing: .14em;
}

.fx-problem h3 {
  margin: 10px 0 8px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.02em;
}

.fx-problem p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.fx-statement {
  margin: clamp(30px, 4vw, 46px) 0 0;
  max-width: 56ch;
  padding-left: 20px;
  border-left: 3px solid var(--fx-accent);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

/* ---------- 2. Le basculement : machine + humain ---------- */
.fx-judgement {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}

.fx-judgement__card {
  position: relative;
  padding: 30px 30px 32px;
  border: 1px solid var(--fx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 22, 67, .05);
}

.fx-judgement__card--human { border-color: rgba(43, 83, 232, .4); }

.fx-judgement__card h3 {
  margin: 0 0 18px;
  color: var(--fx-ink);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.02em;
}

.fx-judgement__bridge {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--fx-glow);
  font-size: 22px;
  font-weight: 300;
}

.fx-judgement__bridge span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(77, 125, 255, .65), transparent);
}

.fx-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fx-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fx-ink-soft);
}

.fx-boundary .fx-list li { color: var(--fx-paper-soft); }

.fx-list svg {
  flex: none;
  width: 16px;
  height: 16px;
  transform: translateY(2px);
  fill: none;
  stroke: var(--fx-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-boundary .fx-list svg { stroke: var(--fx-glow); }

.fx-outcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: baseline;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 24px 28px;
  border: 1px solid rgba(43, 83, 232, .4);
  border-radius: 16px;
  background: rgba(43, 83, 232, .07);
}

.fx-outcome > span {
  font-family: var(--fx-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-amber);
}

.fx-outcome p {
  margin: 0;
  max-width: 68ch;
  color: var(--fx-ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
}

/* ---------- 3. Architecture : la chaîne de confiance ---------- */
.fx-architecture {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.fx-phase {
  position: relative;
  padding-left: 26px;
}

.fx-phase + .fx-phase { margin-top: 26px; }

.fx-phase::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: -18px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--fx-accent), rgba(43, 83, 232, .12));
}

.fx-phase:last-child::before { bottom: 8px; }

.fx-phase__label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 14px;
}

.fx-phase__label span {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-amber);
  letter-spacing: .12em;
}

.fx-phase__label p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fx-layers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fx-layers li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: var(--fx-panel);
}

.fx-layers li::before {
  content: "";
  position: absolute;
  left: -21.5px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--fx-accent);
  background: var(--fx-canvas);
}

.fx-layers span {
  font-family: var(--fx-mono);
  font-size: 12.5px;
  color: var(--fx-accent);
  letter-spacing: .1em;
}

.fx-layers h3 {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -.01em;
}

.fx-layers p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.fx-boundary {
  position: sticky;
  top: calc(var(--partner-overview-header-h, 84px) + 24px);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(43, 83, 232, .25);
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(43, 83, 232, .12), transparent 70%),
    var(--fx-panel);
}

.fx-boundary__head p {
  margin: 0 0 8px;
  font-family: var(--fx-mono);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fx-accent);
}

.fx-boundary__head h3 {
  margin: 0 0 20px;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -.04em;
  line-height: 1.15;
}

.fx-boundary article + article { margin-top: 18px; }

.fx-boundary article {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--fx-line);
  background: rgba(248, 249, 255, .7);
}

.fx-boundary article > span {
  font-family: var(--fx-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--fx-amber);
}

.fx-boundary h4 {
  margin: 6px 0 12px;
  font-weight: 600;
  font-size: 16px;
}

/* ---------- 4. Capacités : la vidéo du cœur ---------- */
.fx-capability {
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.fx-capability__frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--fx-line);
  box-shadow: 0 30px 70px rgba(12, 22, 67, .16);
  background: var(--fx-night);
}

.fx-capability__frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.fx-capability__toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(238, 241, 252, .5);
  border-radius: 50%;
  background: rgba(11, 17, 48, .68);
  color: var(--fx-paper);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 160ms var(--fx-ease), border-color 160ms var(--fx-ease);
}

.fx-capability__toggle:hover { transform: scale(1.06); border-color: var(--fx-glow); }

.fx-capability__toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.fx-capability__toggle .fx-icon-pause,
.fx-capability__toggle[aria-pressed="true"] .fx-icon-play { display: none; }

.fx-capability__toggle[aria-pressed="true"] .fx-icon-pause { display: block; }

.fx-qualities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fx-quality {
  position: relative;
  padding: 24px 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
  overflow: hidden;
}

.fx-quality::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--fx-accent), var(--fx-glow));
}

.fx-quality h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 17.5px;
}

.fx-quality p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- 5. Méthode : le rail zigzag ---------- */
.fx-method {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: grid;
  gap: 18px;
}

.fx-method::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(77, 125, 255, .55), rgba(77, 125, 255, .35));
}

.fx-method li {
  position: relative;
  width: calc(50% - 34px);
  padding: 20px 22px;
  border: 1px solid rgba(77, 125, 255, .3);
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--fx-line);
  box-shadow: 0 8px 26px rgba(12, 22, 67, .05);
}

.fx-method li:nth-child(even) { margin-left: auto; }

.fx-method li::before {
  content: "";
  position: absolute;
  top: 26px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fx-glow);
  box-shadow: 0 0 0 4px rgba(77, 125, 255, .18);
}

.fx-method li:nth-child(odd)::before { right: -39px; }
.fx-method li:nth-child(even)::before { left: -39px; }

.fx-method span {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-amber);
  letter-spacing: .12em;
}

.fx-method h3 {
  margin: 6px 0 6px;
  font-weight: 600;
  font-size: 17.5px;
}

.fx-method p {
  margin: 0;
  color: var(--fx-paper-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.fx-callout {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: clamp(28px, 4vw, 44px) auto 0;
  max-width: 720px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(77, 125, 255, .32);
  background: rgba(77, 125, 255, .07);
  font-size: 16px;
  line-height: 1.55;
}

.fx-callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  transform: translateY(2px);
  fill: none;
  stroke: var(--fx-glow);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le moment interactif : maintenir pour approuver (publie v1.0). */
.fx-method li { transition: border-color 420ms var(--fx-ease), box-shadow 420ms var(--fx-ease); }

.fx-method li.is-lit {
  border-color: rgba(43, 83, 232, .45);
  box-shadow: 0 0 0 1px rgba(43, 83, 232, .12), 0 14px 34px rgba(12, 22, 67, .1);
}

.fx-method li.is-lit > span { color: var(--fx-accent); }

.fx-approve { margin-top: clamp(20px, 3vw, 30px); }

.fx-holdbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 16px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 180ms var(--fx-ease), transform 160ms var(--fx-ease);
}

.fx-holdbtn:hover { border-color: var(--fx-accent); }
.fx-holdbtn:active { transform: scale(.99); }
.fx-holdbtn svg { width: 30px; height: 30px; transform: rotate(-90deg); flex: none; }
.fx-holdbtn svg circle { fill: none; stroke-width: 3; }
.fx-holdbtn .fx-hold-track { stroke: rgba(76, 98, 176, .28); }
.fx-holdbtn .fx-hold-fill { stroke: var(--fx-accent); stroke-linecap: round; stroke-dasharray: 76; stroke-dashoffset: calc(76 * (1 - var(--hold, 0))); }

.fx-approve.is-done .fx-holdbtn { border-color: rgba(52, 168, 120, .55); }
.fx-approve.is-done .fx-holdbtn .fx-hold-fill { stroke: #23a06e; }
.fx-hold-status { margin: 10px 0 0; color: var(--fx-ink-soft); font-size: 13px; }

/* ---------- 6. Parcours : le stepper interactif ---------- */
.fx-demo {
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: var(--fx-panel);
  box-shadow: 0 24px 56px rgba(12, 22, 67, .08);
  overflow: hidden;
}

.fx-demo__tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--fx-line);
}

.fx-demo__tabs button {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px 14px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: var(--fx-display);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms var(--fx-ease), border-color 180ms var(--fx-ease);
}

.fx-demo__tabs button span {
  font-family: var(--fx-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--fx-amber);
}

.fx-demo__tabs button b {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fx-ink-soft);
  letter-spacing: -.01em;
}

.fx-demo__tabs button[aria-selected="true"] {
  border-bottom-color: var(--fx-accent);
  background: rgba(43, 83, 232, .06);
}

.fx-demo__tabs button[aria-selected="true"] b { color: var(--fx-ink); }

.fx-demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
}

.fx-demo__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 260px;
  width: 100%;
  margin-inline: auto;
}

.fx-demo__orbit {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(43, 83, 232, .4);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .fx-demo.in-view .fx-demo__orbit { animation: fx-orbit 26s linear infinite; }

  @keyframes fx-orbit {
    to { transform: rotate(360deg); }
  }
}

.fx-demo__orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fx-glow);
}

.fx-demo__doc {
  position: absolute;
  inset: 24%;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 0 18%;
  border: 1px solid var(--fx-line);
  border-radius: 18px;
  background: var(--fx-canvas);
  box-shadow: 0 16px 34px rgba(12, 22, 67, .12);
}

.fx-demo__doc i {
  height: 6px;
  border-radius: 3px;
  background: rgba(43, 83, 232, .3);
}

.fx-demo__doc i:first-child { width: 62%; background: var(--fx-accent); }

.fx-demo__copy span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--fx-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fx-accent);
}

.fx-demo__copy h3 {
  margin: 0 0 10px;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -.045em;
}

.fx-demo__copy p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.fx-demo__copy small {
  display: block;
  margin-top: 16px;
  font-family: var(--fx-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fx-amber);
}

/* ---------- 7. Gouvernance : un prompt devient une application ---------- */
.fx-console {
  max-width: 960px;
  margin: 0 auto clamp(34px, 4.5vw, 54px);
  border-radius: 22px;
  border: 1px solid rgba(77, 125, 255, .35);
  background:
    radial-gradient(70% 60% at 88% 0%, rgba(43, 83, 232, .2), transparent 70%),
    radial-gradient(40% 40% at 6% 100%, rgba(77, 125, 255, .12), transparent 70%),
    var(--fx-night);
  box-shadow: 0 30px 70px rgba(12, 22, 67, .22);
  overflow: hidden;
}

.fx-console__prompt {
  padding: 20px 26px 16px;
  border-bottom: 1px solid rgba(77, 125, 255, .25);
}

.fx-console__prompt-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--fx-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fx-amber);
}

.fx-console__line {
  margin: 0;
  font-family: var(--fx-mono);
  font-size: clamp(14px, 1.25vw, 16.5px);
  line-height: 1.55;
  color: var(--fx-paper);
}

.fx-console__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--fx-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .fx-console__caret { animation: fx-caret 1.05s steps(2, start) infinite; }

  @keyframes fx-caret {
    to { opacity: 0; }
  }
}

.fx-console.is-done .fx-console__caret { opacity: 0; }

.fx-console__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px 26px 4px;
  list-style: none;
}

.fx-console__checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(170, 180, 212, .3);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--fx-paper-soft);
  transition: border-color 360ms var(--fx-ease), color 360ms var(--fx-ease), background-color 360ms var(--fx-ease);
}

.fx-console__checks li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.6px solid rgba(170, 180, 212, .55);
  transition: background-color 360ms var(--fx-ease), border-color 360ms var(--fx-ease);
}

.fx-console__checks li.is-lit {
  border-color: rgba(77, 125, 255, .55);
  background: rgba(77, 125, 255, .1);
  color: var(--fx-paper);
}

.fx-console__checks li.is-lit i {
  border-color: var(--fx-glow);
  background: var(--fx-glow);
}

.fx-console__status {
  min-height: 20px;
  margin: 6px 0 0;
  padding: 0 26px;
  font-size: 13.5px;
  color: var(--fx-paper-soft);
}

.fx-console.is-done .fx-console__status { color: var(--fx-glow); }

.fx-console__grow { margin: 14px 22px 0; }

/* L'application naît au moment où la compilation passe : la rangée se déplie de 0fr à 1fr. */
.fx-js .fx-console__grow {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 640ms var(--fx-ease);
}

.fx-js .fx-console.is-built .fx-console__grow { grid-template-rows: 1fr; }

.fx-console__app {
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(238, 241, 252, .16);
  border-bottom: 0;
  background: var(--fx-canvas);
  overflow: hidden;
  min-height: 0;
}

.fx-console__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--fx-panel);
  border-bottom: 1px solid var(--fx-line);
}

.fx-console__chrome > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d4e6;
}

.fx-console__chrome > i:nth-child(1) { background: #e4a69b; }
.fx-console__chrome > i:nth-child(2) { background: #e8c793; }
.fx-console__chrome > i:nth-child(3) { background: #a9d3b5; }

.fx-console__chrome b {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-ink);
}

.fx-console__badge {
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid rgba(77, 125, 255, .5);
  border-radius: 999px;
  background: rgba(77, 125, 255, .12);
  font-family: var(--fx-mono);
  font-size: 11px;
  color: var(--fx-accent-deep);
  white-space: nowrap;
}

.fx-console__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
}

.fx-console__nav {
  margin: 0;
  padding: 12px 10px;
  list-style: none;
  display: grid;
  gap: 4px;
  align-content: start;
  background: rgba(12, 22, 67, .04);
  border-right: 1px solid var(--fx-line);
}

.fx-console__nav li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--fx-ink-soft);
}

.fx-console__nav li:first-child {
  background: rgba(43, 83, 232, .1);
  color: var(--fx-ink);
  font-weight: 600;
}

.fx-console__nav li i {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: rgba(43, 83, 232, .2);
}

.fx-console__nav li:first-child i { background: var(--fx-accent); }

.fx-console__main {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.fx-console__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fx-console__kpi {
  padding: 10px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: var(--fx-panel);
}

.fx-console__kpi b {
  display: block;
  font-family: var(--fx-display);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--fx-ink);
}

.fx-console__kpi span {
  font-size: 11.5px;
  color: var(--fx-ink-soft);
}

.fx-console__chart {
  padding: 10px 12px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: var(--fx-panel);
}

.fx-console__chart svg {
  display: block;
  width: 100%;
  height: 56px;
}

.fx-console__chart path {
  fill: none;
  stroke: var(--fx-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.fx-console__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.fx-console__rows li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 70px 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(12, 22, 67, .04);
}

.fx-console__rows i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(43, 83, 232, .45);
}

.fx-console__rows li:nth-child(2) i { background: rgba(77, 125, 255, .6); }
.fx-console__rows li:nth-child(4) i { background: rgba(43, 83, 232, .6); }

.fx-console__rows b,
.fx-console__rows span {
  height: 7px;
  border-radius: 4px;
  background: rgba(12, 22, 67, .16);
}

.fx-console__rows span { background: rgba(12, 22, 67, .09); }

.fx-console__rows em {
  height: 14px;
  border-radius: 7px;
  background: rgba(77, 125, 255, .2);
}

.fx-console__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px 16px;
  font-size: 12px;
  color: var(--fx-paper-soft);
}

.fx-console__replay {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fx-glow);
  font-family: var(--fx-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fx-console__replay:hover { color: var(--fx-paper); }

/* La chorégraphie n'existe qu'avec .fx-js : sans JavaScript, l'application est complète. */
.fx-js .fx-console .fx-console__part {
  opacity: 0;
  transform: translateY(12px) scale(.985);
}

.fx-js .fx-console.is-built .fx-console__part {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--fx-ease), transform 520ms var(--fx-ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.fx-js .fx-console .fx-console__chart path { stroke-dashoffset: 1; }

.fx-js .fx-console.is-built .fx-console__chart path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--fx-ease) 640ms;
}

.fx-js .fx-console .fx-console__badge {
  opacity: 0;
  transform: scale(.82);
}

.fx-js .fx-console.is-done .fx-console__badge {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--fx-ease), transform 320ms var(--fx-ease);
}

.fx-guardrails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.fx-guardrails article {
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
}

.fx-guardrails article > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 600;
}

.fx-guardrails__allow > span { color: var(--fx-accent-deep); background: rgba(43, 83, 232, .12); }
.fx-guardrails__block > span { color: #a33b2e; background: rgba(163, 59, 46, .1); }

.fx-guardrails h3 {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 18px;
}

.fx-sandbox {
  margin: clamp(26px, 3.5vw, 40px) 0 0;
  max-width: 70ch;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px dashed var(--fx-line-strong);
  color: var(--fx-ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- 8. Échelle : modèles + flywheel ---------- */
.fx-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(30px, 4vw, 48px);
}

.fx-templates span {
  padding: 9px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: var(--fx-panel);
  font-size: 14px;
  color: var(--fx-ink-soft);
}

.fx-flywheel {
  counter-reset: fx-fly;
  margin: 0 0 clamp(30px, 4vw, 48px);
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.fx-flywheel li {
  position: relative;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--fx-line);
  background: linear-gradient(180deg, var(--fx-panel), rgba(248, 249, 255, .6));
}

.fx-flywheel li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid var(--fx-accent);
  border-right: 1.5px solid var(--fx-accent);
  transform: translateY(-50%) rotate(45deg);
}

.fx-flywheel li:last-child::after { display: none; }

.fx-flywheel span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(43, 83, 232, .12);
  color: var(--fx-accent-deep);
  font-family: var(--fx-mono);
  font-size: 13px;
}

.fx-flywheel h3 {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 16px;
}

.fx-flywheel p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.fx-partners {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 20px;
  border: 1px solid rgba(43, 83, 232, .25);
  background:
    radial-gradient(60% 80% at 88% 12%, rgba(77, 125, 255, .1), transparent 70%),
    var(--fx-panel);
}

.fx-partners h3 {
  margin: 0 0 10px;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -.04em;
  line-height: 1.12;
}

.fx-partners > div > p:last-child {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

.fx-partners ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fx-partners ul li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--fx-line);
  background: rgba(248, 249, 255, .7);
  font-size: 15px;
  font-weight: 600;
}

.fx-partners ul span {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-amber);
}

/* ---------- 9. Publication : le flux ---------- */
.fx-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(30px, 4vw, 46px);
}

.fx-flow span {
  padding: 10px 16px;
  border: 1px solid rgba(77, 125, 255, .38);
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fx-line);
  color: var(--fx-ink);
  font-size: 13.5px;
  letter-spacing: .01em;
}

.fx-flow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--fx-glow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.fx-models article {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(77, 125, 255, .3);
  background: #fff;
  border: 1px solid var(--fx-line);
  box-shadow: 0 8px 26px rgba(12, 22, 67, .05);
}

.fx-models h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 17.5px;
  color: var(--fx-paper);
}

.fx-models p {
  margin: 0;
  color: var(--fx-paper-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.fx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fx-glow);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.fx-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--fx-ease);
}

.fx-link:hover svg { transform: translateX(4px); }

.fx-section .fx-link { color: var(--fx-accent-deep); }

/* ---------- 10. Propriété ---------- */
.fx-ownership {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fx-ownership article {
  position: relative;
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: var(--fx-panel);
  overflow: hidden;
}

.fx-ownership article::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-glow));
  opacity: .55;
}

.fx-ownership span {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-amber);
  letter-spacing: .12em;
}

.fx-ownership h3 {
  margin: 8px 0 8px;
  font-weight: 600;
  font-size: 17px;
}

.fx-ownership p {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.fx-ownership-statement {
  margin: clamp(28px, 3.6vw, 42px) 0 0;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 300;
  letter-spacing: -.03em;
  text-align: center;
}

.fx-ownership-statement b {
  font-weight: 300;
  background: linear-gradient(120deg, var(--fx-accent), var(--fx-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 11. FAQ ---------- */
.fx-faq { max-width: 860px; }

.fx-faq details {
  border-bottom: 1px solid var(--fx-line);
}

.fx-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: clamp(16.5px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}

.fx-faq summary::-webkit-details-marker { display: none; }

.fx-faq summary i {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  transform: translateY(2px);
}

.fx-faq summary i::before,
.fx-faq summary i::after {
  content: "";
  position: absolute;
  inset: 7px 0;
  background: var(--fx-accent);
  border-radius: 2px;
  transition: transform 240ms var(--fx-ease);
}

.fx-faq summary i::after { transform: rotate(90deg); }

.fx-faq details[open] summary i::after { transform: rotate(0deg); }

.fx-faq details p {
  margin: 0;
  padding: 0 40px 22px 4px;
  color: var(--fx-ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ---------- 12. CTA final ---------- */
.fx-final { text-align: center; }

.fx-final .fx-shell { max-width: 860px; }

.fx-final h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 3.8vw, 54px);
  letter-spacing: -.052em;
  line-height: 1.06;
}

.fx-final .fx-eyebrow { justify-content: center; }

.fx-final > .fx-shell > p:not(.fx-eyebrow) {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--fx-ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.fx-final {
  background:
    radial-gradient(60% 52% at 50% 0%, rgba(77, 125, 255, .08), transparent 70%),
    var(--fx-canvas);
}

.fx-final .fx-actions {
  justify-content: center;
  margin-top: 32px;
}

.fx-final::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(77, 125, 255, .6), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .forge10k-page { --fx-shell: min(calc(100% - 56px), 1240px); }

  .fx-architecture { grid-template-columns: 1fr; }
  .fx-boundary { position: static; }
  .fx-demo__tabs { grid-template-columns: repeat(3, 1fr); }
  .fx-demo__tabs button { border-bottom-width: 2px; }
  .fx-flywheel { grid-template-columns: repeat(2, 1fr); }
  .fx-flywheel li:nth-child(2)::after { display: none; }
  .fx-partners { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .fx-problems,
  .fx-qualities,
  .fx-models,
  .fx-ownership { grid-template-columns: 1fr; }

  .fx-problem:nth-child(2) { margin-top: 0; }

  .fx-judgement { grid-template-columns: 1fr; }

  .fx-judgement__bridge {
    grid-auto-flow: column;
    justify-content: center;
    gap: 14px;
  }

  .fx-judgement__bridge span {
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 125, 255, .65), transparent);
  }

  .fx-method::before { left: 5px; }
  .fx-method li { width: auto; margin-left: 26px; }
  .fx-method li:nth-child(even) { margin-left: 26px; }
  .fx-method li:nth-child(odd)::before,
  .fx-method li:nth-child(even)::before { left: -25px; right: auto; }

  .fx-demo__stage { grid-template-columns: 1fr; }
  .fx-demo__visual { max-width: 200px; }
  .fx-outcome { grid-template-columns: 1fr; gap: 8px; }
  .fx-guardrails { grid-template-columns: 1fr; }

  .fx-console__body { grid-template-columns: 1fr; }

  .fx-console__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
  }

  .fx-console__nav li { padding: 6px 9px; }
  .fx-console__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .fx-console__kpi b { font-size: 19px; }
  .fx-console__kpi span { font-size: 10.5px; }
  .fx-console__rows li { grid-template-columns: 12px minmax(0, 1fr) 44px 32px; gap: 8px; }
  .fx-console__grow { margin: 12px 14px 0; }
  .fx-console__prompt { padding: 16px 18px 12px; }
  .fx-console__checks { padding: 12px 18px 2px; }
  .fx-console__status { padding: 0 18px; }
  .fx-console__foot { padding: 10px 18px 14px; flex-wrap: wrap; }
  .fx-flywheel { grid-template-columns: 1fr; }
  .fx-flywheel li::after { display: none; }
}

@media (max-width: 560px) {
  .forge10k-page { --fx-shell: min(calc(100% - 40px), 1240px); }

  .fx-static-copy { width: min(calc(100% - 40px), 1240px); }
  .fx-demo__tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion : états finaux, drives arrêtés ---------- */
@media (prefers-reduced-motion: reduce) {
  .forge10k-page *,
  .forge10k-page *::before,
  .forge10k-page *::after {
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .fx-reveal,
  .fx-js .fx-reveal { opacity: 1; transform: none; }
  .fx-problem { transform: none; }
  .fx-rail path,
  .fx-js .fx-rail path { stroke-dashoffset: 0; }
  .fx-rail circle,
  .fx-js .fx-rail circle { opacity: .9; }
  .fx-band .fx-cta-row, .fx-chips { opacity: 1; transform: none; }
  .fx-holdbtn .fx-hold-fill { stroke-dashoffset: 0; }
  .fx-js .fx-console .fx-console__part { opacity: 1; transform: none; }
  .fx-js .fx-console .fx-console__chart path { stroke-dashoffset: 0; }
  .fx-js .fx-console .fx-console__badge { opacity: 1; transform: none; }
  .fx-js .fx-console__grow { grid-template-rows: 1fr; }
}
