/* Neoo Finance — page canonique cinématique scroll-scrub « La rivière de trésorerie ».
   Source de vérité : scripts/generate-neoo-finance-10k.mjs + docs/design-neoo-finance-10k.md.
   Monde : la même lumière du jour que l'accueil, Starter, Forge, Business, Monitoring et Scheduling —
   tempête d'éclats de chiffres, terrasse-grand livre, rivière dorée sous les arches, cockpit posé.
   Moteur éprouvé du repo, adapté de neoo-scheduling-scrub.css, préfixe fx-. */

.finance10k-page {
  --fx-canvas: #f8f9ff;
  --fx-panel: #ffffff;
  --fx-ink: #0c1643;
  --fx-ink-soft: #3f4c6e;
  --fx-night: #0e1c3d;
  --fx-night-panel: #16294f;
  --fx-paper: #e8edff;
  --fx-paper-soft: #9fadd6;
  --fx-accent: #2b53e8;
  --fx-accent-soft: #4d7dff;
  --fx-accent-deep: #1d3db8;
  --fx-glow: #4d7dff;
  --fx-gold: #b98a2f;
  --fx-mint: #157a58;
  --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);
}

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

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

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

/* ---------- 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 14% 16%, rgba(43, 83, 232, .05), transparent 70%),
    radial-gradient(40% 30% at 86% 78%, 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: 24%; left: 7%; }
.fx-env i:nth-child(2) { top: 56%; left: 93%; width: 4px; height: 4px; }
.fx-env i:nth-child(3) { top: 86%; left: 14%; width: 3px; height: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .fx-env i { animation: fx-drift 74s var(--fx-ease) infinite alternate; }
  .fx-env i:nth-child(2) { animation-duration: 90s; animation-delay: -33s; }
  .fx-env i:nth-child(3) { animation-duration: 66s; animation-delay: -48s; }

  @keyframes fx-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(24px, -58px, 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; }

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

.finance10k-page .fx-stage,
.finance10k-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: -58% -46%;
  z-index: -1;
  pointer-events: none;
  opacity: calc(.35 + .65 * var(--k, 1));
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(248, 249, 255, var(--fx-scrim, .9)) 0%, rgba(248, 249, 255, calc(var(--fx-scrim, .9) * .92)) 62%, rgba(248, 249, 255, 0) 100%);
}

.fx-band--right { justify-self: end; }

/* Le repos : la carte de rendez-vous vit au tiers droit, la bande finale
   se cale dans la partie calme de gauche sans mordre dessus. */
.fx-band.e-rise { max-width: 560px; }

/* Force du voile par bande, calée sur la pire frame de chaque plage. */
.fx-band[data-band="0"] { --fx-scrim: .82; }
.fx-band[data-band="1"] { --fx-scrim: .88; }
.fx-band[data-band="2"] { --fx-scrim: .88; }
.fx-band[data-band="3"] { --fx-scrim: .9; }
.fx-band[data-band="4"] { --fx-scrim: .88; }

.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 clair */
.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 : les demandes se posent */
.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'agenda s'assemble */
.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 : la demande trouve sa file */
.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 : les rappels suivent */
.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-finance-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 du parcours : 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; }

.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-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-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- La preuve : trois repères produit ---------- */
.fx-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(38px, 4.6vw, 62px);
}

.fx-proof article {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 16px;
}

.fx-proof strong {
  font-family: var(--fx-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fx-accent-deep);
}

.fx-proof span {
  color: var(--fx-ink-soft);
  font-size: 13px;
  line-height: 1.45;
}


/* ---------- Cockpit : le tableau de bord de démonstration, conservé et posé en chapitre ---------- */
.finance10k-page {
  --finance-ink: #020b2b;
  --finance-muted: #52627d;
  --finance-blue: #075dff;
  --finance-blue-2: #2b7dff;
  --finance-green: #00a878;
  --finance-violet: #7650ff;
  --finance-border: #d9e4f3;
  --finance-surface: #fbfcff;
  --finance-mist: #f5f8fd;
}

.fx-cockpit { margin-top: clamp(26px, 3.2vw, 40px); }

.fx-cockpit__frame {
  --finance-dashboard-scale: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  height: calc(822px * var(--finance-dashboard-scale) + 34px);
  overflow: hidden;
}

.fx-cockpit__note {
  margin: 14px 0 0;
  color: var(--fx-ink-soft);
  font-size: 12.5px;
  text-align: center;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finance-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  width: 1038px;
  height: 822px;
  border: 1px solid #b9d2f6;
  border-radius: 16px;
  background: rgba(253, 254, 255, .97);
  box-shadow: 0 26px 36px rgba(41, 94, 168, .16), 0 6px 13px rgba(44, 101, 181, .1);
  flex: 0 0 auto;
  transform: scale(var(--finance-dashboard-scale)) rotateZ(-.55deg);
  transform-origin: top center;
  color: #112345;
  font-family: 'Cerebri Sans', Inter, system-ui, sans-serif;
}
.finance-dashboard::after { content: ''; position: absolute; z-index: -1; left: 12%; right: 5%; bottom: -32px; height: 35px; border-radius: 50%; background: rgba(55, 129, 231, .22); filter: blur(24px); }
.finance-dashboard__rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 0; border-right: 1px solid #e0e8f4; }
.finance-dashboard__rail b { margin-bottom: 3px; color: #001441; font-size: 30px; letter-spacing: -.1em; }
.finance-dashboard__rail i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #405373; font-size: 17px; font-style: normal; }
.finance-dashboard__rail i.is-active { background: #eef4ff; color: var(--finance-blue); }
.finance-dashboard__body { min-width: 0; padding: 20px 22px 18px 26px; }
.finance-dashboard__topbar { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding-bottom: 10px; border-bottom: 1px solid #e5ebf5; }
.finance-dashboard__topbar nav { display: flex; align-items: center; gap: 27px; }
.finance-dashboard__topbar nav span { position: relative; color: #31415f; font-size: 11px; font-weight: 600; white-space: nowrap; }
.finance-dashboard__topbar nav span.is-active { color: var(--finance-blue); }
.finance-dashboard__topbar nav span.is-active::after { content: ''; position: absolute; right: -10px; bottom: -17px; left: -10px; height: 2px; background: var(--finance-blue); }
.finance-dashboard__topbar > div { display: flex; align-items: center; gap: 16px; }
.finance-group { padding: 8px 12px; border: 1px solid #d6e0ee; border-radius: 8px; font-size: 10px; font-weight: 600; }
.finance-sync { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; white-space: nowrap; }
.finance-sync i { width: 7px; height: 7px; border-radius: 50%; background: #13b984; box-shadow: 0 0 0 4px rgba(19, 185, 132, .1); }
.finance-dashboard__title { margin: 13px 0 10px; color: #0b1735; font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.finance-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.finance-kpi { position: relative; min-width: 0; height: 123px; overflow: hidden; padding: 14px 12px 10px 40px; border: 1px solid #dde6f2; border-radius: 12px; background: linear-gradient(180deg, #fff, #fafdff); box-shadow: 0 7px 15px rgba(23, 58, 108, .06); }
.finance-kpi__icon { position: absolute; top: 14px; left: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #eff5ff; color: var(--finance-blue); font-size: 13px; }
.finance-kpi--2 .finance-kpi__icon { color: var(--finance-green); background: #e8fbf4; }.finance-kpi--3 .finance-kpi__icon { color: var(--finance-violet); background: #f1edff; }
.finance-kpi small { display: block; overflow: hidden; color: #4f607a; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.finance-kpi strong { display: block; margin-top: 4px; color: #101e3a; font-size: 21px; line-height: 1; white-space: nowrap; }
.finance-kpi em { display: block; margin-top: 8px; color: #00a878; font-size: 9px; font-style: normal; white-space: nowrap; }
.finance-kpi svg { position: absolute; right: 0; bottom: 3px; left: 10px; width: calc(100% - 12px); height: 35px; overflow: visible; }
.finance-kpi svg path { fill: none; stroke: var(--finance-blue); stroke-width: 1.5; }.finance-kpi--2 svg path { stroke: #13a976; }.finance-kpi--3 svg path { stroke: var(--finance-violet); }
.finance-dashboard__middle { display: grid; grid-template-columns: 2.1fr 1.05fr 1.18fr; gap: 14px; height: 280px; margin-top: 15px; }
.finance-cash-card,
.finance-margin-card,
.finance-adviser-card,
.finance-decision-card,
.finance-simulation-card { border: 1px solid #dde6f2; border-radius: 12px; background: rgba(255, 255, 255, .92); }
.finance-cash-card { padding: 14px 14px 9px; }
.finance-cash-card header { display: flex; justify-content: space-between; align-items: center; }
.finance-cash-card header strong { font-size: 11px; }.finance-cash-card header strong small { color: #62718a; font-weight: 400; }
.finance-cash-card header div { display: flex; align-items: center; gap: 5px; color: #61708a; font-size: 8px; }
.finance-cash-card header div i { width: 12px; height: 2px; margin-left: 5px; background: var(--finance-blue); }.finance-cash-card header div i.forecast { border-top: 2px dashed var(--finance-blue); background: none; }.finance-cash-card header div i.scenario { border-top: 2px dashed var(--finance-violet); background: none; }
.finance-cash-chart { position: relative; height: 232px; padding: 20px 2px 16px 38px; }
.finance-cash-chart .axis { position: absolute; top: 22px; left: 0; color: #71809a; font-size: 7px; line-height: 2.65; }
.finance-cash-chart > svg { width: 100%; height: 184px; overflow: visible; }
.finance-cash-chart svg path { fill: none; stroke-width: 2; }.finance-cash-chart svg path.grid { stroke: #e6edf6; stroke-width: 1; }.finance-cash-chart svg path.actual { stroke: var(--finance-blue); }.finance-cash-chart svg path.forecast { stroke: var(--finance-blue); stroke-dasharray: 7 5; }.finance-cash-chart svg path.scenario { stroke: var(--finance-violet); stroke-dasharray: 7 5; }.finance-cash-chart svg path.projection { stroke: #6ea5ff; stroke-width: 1.3; stroke-dasharray: 2 3; }.finance-cash-chart svg line { stroke: #89a7d5; stroke-dasharray: 4 3; }
.finance-weeks { position: absolute; right: 0; bottom: 0; left: 37px; color: #72819a; font-size: 7px; word-spacing: 9px; white-space: nowrap; }
.finance-chart-tip { position: absolute; top: 106px; left: 48%; display: grid; width: 132px; padding: 8px; border: 1px solid #dce6f2; border-radius: 7px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 17px rgba(23, 65, 124, .1); font-size: 7px; }
.finance-chart-tip b { margin-bottom: 4px; font-size: 8px; }.finance-chart-tip span { display: flex; align-items: center; gap: 4px; line-height: 1.5; }.finance-chart-tip span i { width: 5px; height: 5px; border-radius: 50%; background: var(--finance-blue); }.finance-chart-tip span:nth-child(3) i { background: #6ea5ff; }.finance-chart-tip span:nth-child(4) i { background: var(--finance-violet); }.finance-chart-tip span strong { margin-left: auto; }
.finance-margin-card { padding: 15px 13px; }.finance-margin-card .finance-mini-heading,.finance-adviser-title { margin: 0; font-size: 11px; font-weight: 600; }.finance-margin-card > small { color: #6a7890; font-size: 8px; }
.finance-margin-card > div { display: grid; grid-template-columns: 48px 1fr 30px; align-items: center; gap: 5px; margin-top: 13px; font-size: 7px; }.finance-margin-card div b { font-size: 8px; }.finance-margin-card div > span { height: 6px; overflow: hidden; border-radius: 5px; background: #e2e8f1; }.finance-margin-card div span i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: var(--finance-blue); }.finance-margin-card div em { color: #64738b; font-style: normal; }
.finance-adviser-card { position: relative; overflow: hidden; padding: 15px 15px; background: linear-gradient(150deg, #fff 45%, #f0f6ff); }.finance-adviser-label { display: block; margin-bottom: 20px; color: #133b91; font-size: 10px; font-weight: 600; }.finance-adviser-title { max-width: 145px; font-size: 18px; line-height: 1.08; }.finance-adviser-card ul { position: relative; z-index: 2; margin: 23px 0 0; padding: 0; list-style: none; }.finance-adviser-card li { margin-top: 9px; color: #687791; font-size: 8px; }.finance-adviser-card li::before { content: '✓'; display: inline-grid; place-items: center; width: 12px; height: 12px; margin-right: 7px; border: 1px solid var(--finance-blue); border-radius: 50%; color: var(--finance-blue); font-size: 7px; }.finance-adviser-wave { position: absolute; right: -15px; bottom: -20px; width: 150px; height: 80px; border: 2px solid rgba(61, 129, 255, .18); border-radius: 50% 60% 0 0; transform: rotate(-12deg); box-shadow: 0 0 0 9px rgba(61,129,255,.08),0 0 0 18px rgba(61,129,255,.045),0 0 0 29px rgba(61,129,255,.025); }
.finance-dashboard__bottom { display: grid; grid-template-columns: 1.55fr 1.7fr; gap: 14px; height: 224px; margin-top: 15px; }
.finance-decision-card { padding: 10px 12px; }.finance-decision-card > .finance-mini-heading,.finance-simulation-card .finance-mini-heading { margin: 0 0 7px; font-size: 10px; font-weight: 600; }
.finance-decision-row { display: flex; align-items: center; min-height: 53px; margin-top: 7px; padding: 6px 10px; border: 1px solid #fed8a8; border-radius: 8px; background: #fffaf2; }.finance-decision-row--2 { border-color: #a8dfcf; background: #f1fbf7; }.finance-decision-row--3 { border-color: #dce3ee; background: #fbfcfe; }
.finance-decision-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-right: 9px; color: #ff6b1d; font-size: 17px; }.finance-decision-row--2 .finance-decision-icon { color: var(--finance-green); }.finance-decision-row--3 .finance-decision-icon { color: #687891; }
.finance-decision-row p { min-width: 0; margin: 0; }.finance-decision-row p strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.finance-decision-row p strong em { color: #ef6c2f; font-style: normal; }.finance-decision-row--2 p strong em { color: var(--finance-green); }.finance-decision-row p small { color: #728199; font-size: 7px; }.finance-decision-row > b { margin-left: auto; padding: 7px 10px; border: 1px solid #cfdaea; border-radius: 7px; font-size: 7px; white-space: nowrap; }.finance-decision-row > i { margin-left: 7px; font-size: 18px; font-style: normal; }
.finance-simulation-card { padding: 10px 12px; }.finance-simulation-card > header { display: flex; justify-content: space-between; align-items: center; }.finance-simulation-card .finance-mini-heading small { color: #6e7b91; font-weight: 400; }.finance-simulation-card header > span { color: #6b7990; font-size: 7px; }
.finance-scenarios { display: flex; align-items: stretch; height: 180px; }.finance-scenario { position: relative; flex: 1; min-width: 0; padding: 12px 10px; border: 1px solid #dce6f2; border-radius: 8px; }.finance-scenario.is-selected { border: 2px solid var(--finance-blue); box-shadow: 0 8px 18px rgba(7, 93, 255, .17); }.finance-scenario > b,.finance-scenario > small,.finance-scenario > strong { display: block; }.finance-scenario > b { font-size: 10px; }.finance-scenario > small { min-height: 27px; margin-top: 4px; color: #6c7a92; font-size: 7px; }.finance-scenario > strong { margin-top: 3px; color: #31486b; font-size: 12px; }.finance-scenario.is-selected > strong { color: var(--finance-green); }.finance-scenario svg { width: 100%; height: 45px; margin-top: 5px; }.finance-scenario svg path { fill: none; stroke: var(--finance-blue); stroke-width: 2; }.finance-scenario:nth-of-type(3) svg path { stroke: var(--finance-violet); }.finance-scenario > span { display: block; padding-top: 6px; border-top: 1px solid #e4eaf3; color: #718098; font-size: 6px; }.finance-scenario > span em { display: block; margin-top: 2px; color: #20385d; font-size: 9px; font-style: normal; }.finance-selected { position: absolute; top: -12px; right: -10px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--finance-blue); color: #fff; font-style: normal; box-shadow: 0 5px 12px rgba(7, 93, 255, .2); }.finance-scenario-arrow { align-self: center; margin: 0 5px; color: var(--finance-blue); font-size: 23px; font-style: normal; }
.finance-validation-toast { position: absolute; z-index: 4; right: 117px; bottom: -20px; display: flex; align-items: center; width: 275px; min-height: 43px; padding: 0 12px; border: 2px solid #fff; border-radius: 10px; background: linear-gradient(100deg, #18c692, #04ac7d); color: #fff; box-shadow: 0 0 25px rgba(16, 197, 144, .35), 0 10px 22px rgba(27, 112, 92, .2); font-size: 13px; font-weight: 600; white-space: nowrap; }.finance-validation-toast i { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; margin-right: 9px; border-radius: 50%; background: #fff; color: var(--finance-green); font-style: normal; }

@media (max-width: 1200px) { .fx-cockpit__frame { --finance-dashboard-scale: .9; } }
@media (max-width: 1100px) { .fx-cockpit__frame { --finance-dashboard-scale: .82; } }
@media (max-width: 980px) { .fx-cockpit__frame { --finance-dashboard-scale: .72; } }
@media (max-width: 860px) { .fx-cockpit__frame { --finance-dashboard-scale: .6; } }
@media (max-width: 700px) { .fx-cockpit__frame { --finance-dashboard-scale: .5; } }
@media (max-width: 600px) { .fx-cockpit__frame { --finance-dashboard-scale: .42; } }
@media (max-width: 500px) { .fx-cockpit__frame { --finance-dashboard-scale: .35; } }
@media (max-width: 420px) { .fx-cockpit__frame { --finance-dashboard-scale: .3; } }


/* ---------- Briefing de direction : trois questions, trois horizons, trois responsables ---------- */
.fx-questions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
}

.fx-questions article {
  position: relative;
  padding: clamp(18px, 2.2vw, 24px);
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 18px;
}

.fx-questions span {
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-accent);
}

.fx-questions small {
  display: block;
  margin-top: 8px;
  color: var(--fx-ink-soft);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.fx-questions strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--fx-ink);
  letter-spacing: -.01em;
}

.fx-briefing {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(20px, 2.4vw, 28px);
}

.fx-briefing__main {
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 22px;
}

.fx-briefing__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fx-line);
}

.fx-briefing__tabs button {
  padding: 9px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: transparent;
  color: var(--fx-ink-soft);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 280ms var(--fx-ease), border-color 280ms var(--fx-ease), background 280ms var(--fx-ease);
}

.fx-briefing__tabs button[aria-selected="true"] {
  background: var(--fx-ink);
  border-color: var(--fx-ink);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .fx-briefing__tabs button:not([aria-selected="true"]):hover { border-color: var(--fx-accent); color: var(--fx-accent); }
}

.fx-briefing__panel > header { margin-top: 16px; }

.fx-briefing__panel > header p {
  margin: 0;
  font-family: var(--fx-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fx-accent);
}

.fx-briefing__panel > header h3 {
  margin: 6px 0 0;
  font-family: var(--fx-display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--fx-ink);
}

.fx-briefing__panel > header span {
  display: block;
  margin-top: 6px;
  color: var(--fx-ink-soft);
  font-size: 14.5px;
}

.fx-briefing__signals { display: grid; gap: 10px; margin-top: 16px; }

.fx-briefing__signals article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 249, 255, .6), rgba(255, 255, 255, 0));
}

.fx-briefing__signals i {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--fx-mint);
}

.fx-briefing__signals article[data-tone="watch"] i { background: #d18a1f; }
.fx-briefing__signals article[data-tone="action"] i { background: var(--fx-accent); }

.fx-briefing__signals small {
  display: block;
  color: var(--fx-ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fx-briefing__signals strong { display: block; margin-top: 2px; font-size: 15.5px; color: var(--fx-ink); }

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

.fx-briefing__note {
  margin: 16px 0 0;
  color: var(--fx-ink-soft);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fx-briefing__owners {
  align-self: start;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--fx-night);
  border-radius: 22px;
  color: var(--fx-paper);
}

.fx-briefing__owners > p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.fx-briefing__owners article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(159, 173, 214, .25);
}

.fx-briefing__owners span {
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-gold);
}

.fx-briefing__owners strong { display: block; font-size: 14.5px; color: #fff; }

.fx-briefing__owners small { display: block; margin-top: 2px; color: var(--fx-paper-soft); font-size: 12.5px; }


/* ---------- Décisions : quatre étapes, trois priorités, maintenir pour valider ---------- */
.fx-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(24px, 3vw, 36px);
}

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

.fx-process li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 16px;
}

.fx-process li > span {
  position: absolute;
  top: 17px;
  left: 18px;
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-accent);
}

.fx-process h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--fx-ink);
}

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

.fx-decision-demo {
  align-self: start;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 22px;
}

.fx-decision-demo > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fx-line);
}

.fx-decision-demo > header strong { font-size: 15px; color: var(--fx-ink); }

.fx-decision-demo > header span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fx-ink-soft);
  font-size: 12px;
}

.fx-decision-demo > header span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-mint);
  box-shadow: 0 0 0 4px rgba(21, 122, 88, .12);
}

.fx-decision-demo__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 2px;
  border-bottom: 1px solid var(--fx-line);
}

.fx-decision-demo__row:last-of-type { border-bottom: 0; }

.fx-decision-demo__row > b {
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-accent);
  margin-top: 2px;
}

.fx-decision-demo__row h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--fx-ink); }

.fx-decision-demo__row p { margin: 3px 0 0; color: var(--fx-ink-soft); font-size: 13px; }

.fx-decision-demo__row > span {
  margin-left: auto;
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  color: var(--fx-accent-deep);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.fx-hold-lead {
  margin: clamp(22px, 2.6vw, 30px) 0 0;
  color: var(--fx-ink-soft);
  font-size: 15px;
}

.fx-simboard {
  position: relative;
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 38px) clamp(26px, 3.2vw, 38px);
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 22px;
}

.fx-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.fx-scenario {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 249, 255, .65), rgba(255, 255, 255, 0));
  transition: border-color 320ms var(--fx-ease), box-shadow 320ms var(--fx-ease);
}

.fx-scenario > b { display: block; font-size: 15px; color: var(--fx-ink); }

.fx-scenario > small { display: block; margin-top: 2px; color: var(--fx-ink-soft); font-size: 12.5px; }

.fx-scenario > strong {
  display: block;
  margin-top: 10px;
  font-family: var(--fx-display);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 300;
  color: var(--fx-ink);
  font-variant-numeric: tabular-nums;
}

.fx-scenario--reco > strong { color: var(--fx-mint); }

.fx-scenario__bar {
  display: block;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(76, 98, 176, .14);
  overflow: hidden;
}

.fx-scenario__bar i {
  display: block;
  height: 100%;
  width: calc(var(--p, 60%) * var(--hold, 0));
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fx-accent-soft), var(--fx-accent));
}

.fx-scenario--reco .fx-scenario__bar i { background: linear-gradient(90deg, #2fae83, var(--fx-mint)); }

.fx-scenario__prob {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--fx-line);
  color: var(--fx-ink-soft);
  font-size: 11.5px;
}

.fx-scenario__prob em {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  color: var(--fx-ink);
}

.fx-scenario__check {
  position: absolute;
  top: -12px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fx-mint);
  color: #fff;
  font-style: normal;
  font-size: 14px;
  box-shadow: 0 5px 12px rgba(21, 122, 88, .25);
  opacity: var(--hold, 0);
  transform: scale(calc(.6 + .4 * var(--hold, 0)));
}

.fx-simboard.is-done .fx-scenario--reco {
  border-color: rgba(21, 122, 88, .55);
  box-shadow: 0 14px 34px rgba(21, 122, 88, .14);
}

.fx-flow-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: clamp(16px, 2vw, 20px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid var(--fx-line);
}

.fx-flow-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  margin-left: auto;
}

.fx-flow-counter b {
  font-family: var(--fx-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--fx-ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.6ch;
}

.fx-flow-counter span {
  color: var(--fx-ink-soft);
  font-size: 13px;
}

.fx-holdbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 14px;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line-strong);
  border-radius: 999px;
  color: var(--fx-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: none;
  transition: border-color 320ms var(--fx-ease), box-shadow 320ms var(--fx-ease);
}

.fx-holdbtn svg {
  width: 34px;
  height: 34px;
  flex: none;
  transform: rotate(-90deg);
}

.fx-hold-track { fill: none; stroke: var(--fx-line); stroke-width: 3; }

.fx-hold-fill {
  fill: none;
  stroke: var(--fx-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 76;
  stroke-dashoffset: calc(76 - 76 * var(--hold, 0));
}

@media (hover: hover) and (pointer: fine) {
  .fx-holdbtn:hover { border-color: var(--fx-accent); box-shadow: 0 12px 30px rgba(43, 83, 232, .14); }
}

.fx-simboard.is-done .fx-holdbtn { border-color: var(--fx-mint); }

.fx-hold-status {
  margin: 0;
  color: var(--fx-ink-soft);
  font-size: 13.5px;
}

.fx-simboard.is-done .fx-hold-status { color: var(--fx-mint); font-weight: 600; }

/* La vie en sourdine : le témoin des sources respire tant que rien n'est validé. */
@media (prefers-reduced-motion: no-preference) {
  .fx-decision-demo > header span i { animation: fx-beacon 3.6s var(--fx-ease) infinite; }

  body.fx-paused .fx-decision-demo > header span i { animation-play-state: paused !important; }

  @keyframes fx-beacon {
    0%, 100% { box-shadow: 0 0 0 4px rgba(21, 122, 88, .14); }
    50% { box-shadow: 0 0 0 7px rgba(21, 122, 88, .07); }
  }
}


/* ---------- Trésorerie : treize semaines pour voir venir ---------- */
.fx-treasury {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.fx-treasury__panel {
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--fx-night);
  border-radius: 22px;
  color: var(--fx-paper);
}

.fx-treasury__panel > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.fx-treasury__panel h3 { margin: 0; font-size: 16px; font-weight: 600; color: #fff; }

.fx-treasury__panel > header span { font-family: var(--fx-mono); font-size: 12px; color: var(--fx-gold); }

.fx-treasury__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

.fx-treasury__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fx-paper-soft);
  font-size: 12px;
}

.fx-treasury__legend i { width: 14px; height: 3px; border-radius: 2px; background: #fff; }
.fx-treasury__legend--2 i { background: var(--fx-gold); }
.fx-treasury__legend--3 i { background: var(--fx-mint); }

.fx-treasury__chart { width: 100%; height: auto; margin-top: 14px; }

.fx-treasury__chart .grid { fill: none; stroke: rgba(159, 173, 214, .18); stroke-width: 1; }
.fx-treasury__chart .actual { fill: none; stroke: #fff; stroke-width: 2.4; }
.fx-treasury__chart .forecast { fill: none; stroke: var(--fx-gold); stroke-width: 2.2; stroke-dasharray: 7 6; }
.fx-treasury__chart .scenario { fill: none; stroke: var(--fx-mint); stroke-width: 2.2; }
.fx-treasury__chart line { stroke: rgba(159, 173, 214, .4); stroke-width: 1; stroke-dasharray: 3 5; }

.fx-treasury__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.fx-treasury__kpis article {
  padding: 12px 14px;
  border: 1px solid rgba(159, 173, 214, .25);
  border-radius: 14px;
}

.fx-treasury__kpis small { display: block; color: var(--fx-paper-soft); font-size: 11.5px; }

.fx-treasury__kpis strong {
  display: block;
  margin-top: 3px;
  font-family: var(--fx-display);
  font-size: 21px;
  font-weight: 300;
  color: #fff;
}

.fx-checks {
  display: grid;
  gap: 10px;
  margin: clamp(18px, 2.2vw, 24px) 0 0;
  padding: 0;
  list-style: none;
}

.fx-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fx-ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.fx-checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--fx-mint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ---------- Fonctions : six cockpits ---------- */
.fx-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Chaque cockpit porte sa teinte : bleu action, bleu profond, or de la rivière, mint validé. */
.fx-module {
  --fx-module-tone: var(--fx-accent);
  --fx-module-tint: rgba(43, 83, 232, .1);
  --fx-module-delay: calc(140ms + var(--i, 0) * 70ms);
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 20px 24px;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 380ms var(--fx-ease), box-shadow 380ms var(--fx-ease), transform 380ms var(--fx-ease);
}

.fx-module:nth-child(2) { --fx-module-tone: var(--fx-accent-deep); --fx-module-tint: rgba(29, 61, 184, .1); }
.fx-module:nth-child(3) { --fx-module-tone: var(--fx-gold); --fx-module-tint: rgba(185, 138, 47, .14); }
.fx-module:nth-child(5) { --fx-module-tone: var(--fx-mint); --fx-module-tint: rgba(21, 122, 88, .11); }
.fx-module:nth-child(6) { --fx-module-tone: var(--fx-accent-soft); --fx-module-tint: rgba(77, 125, 255, .12); }

@media (hover: hover) and (pointer: fine) {
  .fx-module:hover {
    border-color: var(--fx-module-tone);
    box-shadow: 0 16px 34px rgba(43, 83, 232, .1);
    transform: translateY(-3px);
  }
}

/* L'index du cockpit, 01 → 06, posé dans la marge haute droite. */
.fx-module__index {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--fx-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fx-paper-soft);
}

.fx-module__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 13px;
  background: var(--fx-module-tint);
  color: var(--fx-module-tone);
}

.fx-module__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-module h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

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

.fx-module ul {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--fx-line);
  list-style: none;
}

.fx-module li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--fx-ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}

.fx-module li svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--fx-module-tone);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le filament : un trait de lumière qui se dessine sous la carte à son entrée. */
.fx-module::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fx-module-tone) 0%, var(--fx-module-tone) 38%, rgba(255, 255, 255, 0) 100%);
  transform-origin: left center;
}

/* Entrée carte par carte, uniquement sous .fx-js ; sans JavaScript, les six cockpits restent visibles. */
.fx-js .fx-module {
  opacity: 0;
  translate: 0 18px;
}

.fx-js .fx-module::after { transform: scaleX(0); }

.fx-js .fx-section.in .fx-module {
  opacity: 1;
  translate: none;
  transition:
    opacity 620ms var(--fx-ease) var(--fx-module-delay),
    translate 620ms var(--fx-ease) var(--fx-module-delay),
    border-color 380ms var(--fx-ease),
    box-shadow 380ms var(--fx-ease),
    transform 380ms var(--fx-ease);
}

.fx-js .fx-section.in .fx-module::after {
  transform: scaleX(1);
  transition: transform 900ms var(--fx-ease) calc(var(--fx-module-delay) + 260ms);
}

/* Retraite du décalage après l'entrée : le survol répond sans délai. */
.fx-js .fx-section.is-settled .fx-module { --fx-module-delay: 0ms; }


/* ---------- Confiance : sourcer, contrôler, tracer, partager ---------- */
.fx-path {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

.fx-path article {
  position: relative;
  display: grid;
  gap: 6px;
  flex: 1 1 180px;
  max-width: 260px;
  padding: 22px 22px 24px;
  background: var(--fx-panel);
  border: 1px solid var(--fx-line);
  border-radius: 18px;
}

.fx-path article span {
  font-family: var(--fx-mono);
  font-size: 12px;
  color: var(--fx-paper-soft);
  letter-spacing: .06em;
}

.fx-path article strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

.fx-path article small { color: var(--fx-ink-soft); font-size: 13.5px; line-height: 1.55; }

.fx-path b {
  align-self: center;
  color: var(--fx-paper-soft);
  font-size: 20px;
  font-weight: 400;
}


/* ---------- Garde-fous : trois limites explicites ---------- */
.fx-guardrails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(20px, 2.4vw, 30px);
}

.fx-guardrails article {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(185, 138, 47, .35);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(233, 217, 184, .22), rgba(255, 255, 255, 0));
}

.fx-guardrails strong { display: block; font-size: 15.5px; color: var(--fx-ink); }

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


/* ---------- 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;
}


/* ---------- 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) {
  .finance10k-page { --fx-shell: min(calc(100% - 56px), 1240px); }

  .fx-proof { grid-template-columns: repeat(2, 1fr); }
  .fx-modules { grid-template-columns: repeat(2, 1fr); }
  .fx-briefing { grid-template-columns: 1fr; }
  .fx-decision { grid-template-columns: 1fr; }
  .fx-treasury { grid-template-columns: 1fr; }
  .fx-questions { grid-template-columns: 1fr; }
  .fx-guardrails { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .fx-path b { display: none; }
  .fx-path article { max-width: none; }
  .fx-scenarios { grid-template-columns: 1fr; }
  .fx-treasury__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

  .fx-static-copy { width: min(calc(100% - 40px), 1240px); }
  .fx-proof { grid-template-columns: 1fr; }
  .fx-modules { grid-template-columns: 1fr; }
  .fx-flow-counter { margin-left: 0; }
}


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

  .fx-reveal,
  .fx-js .fx-reveal { opacity: 1; 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-module,
  .fx-js .fx-module { opacity: 1; translate: none; }
  .fx-module::after,
  .fx-js .fx-module::after { transform: none; }
  .fx-holdbtn .fx-hold-fill { stroke-dashoffset: 0; }
}


/* Reduced motion, suite : les chapitres Finance dans leur état final. */
@media (prefers-reduced-motion: reduce) {
  .fx-simboard { --hold: 1; }
  .fx-simboard .fx-scenario--reco {
    border-color: rgba(21, 122, 88, .55);
    box-shadow: 0 14px 34px rgba(21, 122, 88, .14);
  }
}
