/* ══════════════════════════════════════════════════════════════════════
   Fiche formation — « Affiche + parcours »
   Classes fx-* · tokens --fd-* (les --fx-* de formation-cards.css restent à .fdx)
   Données : uniquement la réponse de GET /formations/:slug (rien d'inventé ;
   un champ absent masque son bloc). Mouvement : transform / opacity seulement,
   rythme de scroll-reveals.js (480 ms, 18 px, cascade 65 ms plafonnée à 280 ms).
   ══════════════════════════════════════════════════════════════════════ */
.fx-page {
  --fd-bg:      #0A0A0F;
  --fd-surf:    #111118;
  --fd-raise:   #17171F;
  --fd-line:    rgba(237, 233, 254, .08);
  --fd-line-2:  rgba(237, 233, 254, .15);
  --fd-v6:      #7C3AED;
  --fd-v7:      #6D28D9;
  --fd-v4:      #A78BFA;
  --fd-v1:      #EDE9FE;
  --fd-mint:    #34D399;
  --fd-mint-bg: rgba(52, 211, 153, .10);
  --fd-amber:   #FBBF24;
  --fd-text:    #ECECF4;
  --fd-mut:     #A1A1AA;
  --fd-dim:     #8B8B97;
  --fd-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --fd-ease:    cubic-bezier(.4, 0, .2, 1);
  --fd-out:     cubic-bezier(.16, 1, .3, 1);
}
.fx-page #page-content { background: transparent; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Petits éléments partagés ─────────────────────────────────────────── */
.fx-k { font: 500 .7rem/1.2 var(--fd-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fd-v4); margin: 0; }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.35rem; border-radius: 999px;
  font: 600 .97rem/1 Inter, system-ui, sans-serif; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--fd-ease), border-color .2s var(--fd-ease), color .2s var(--fd-ease), box-shadow .2s var(--fd-ease);
}
.fx-btn svg { width: 17px; height: 17px; flex: none; }
.fx-btn-pri { background: var(--fd-v6); color: #fff; border: 1px solid rgba(237, 233, 254, .2); box-shadow: 0 14px 34px -16px rgba(124, 58, 237, .95); }
.fx-btn-pri:hover { background: var(--fd-v7); }
.fx-btn-sec { background: rgba(17, 17, 24, .55); color: var(--fd-v1); border: 1px solid var(--fd-line-2); }
.fx-btn-sec:hover { border-color: rgba(167, 139, 250, .55); color: #fff; }
.fx-btn-ghost { background: transparent; color: var(--fd-v4); border: 1px solid transparent; padding: 0 .6rem; }
.fx-btn-ghost:hover { color: var(--fd-v1); }
.fx-btn small { font: 500 .72rem/1 var(--fd-mono); letter-spacing: .02em; color: rgba(255, 255, 255, .78); padding: .3rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.fx-btn:focus-visible, .fx-st-btn:focus-visible, .fx-mod-btn:focus-visible, .fx-l-open:focus-visible,
.fx-l-tick:focus-visible, .fx-q-btn:focus-visible, .fx-pdf:focus-visible, .fx-nav-btn:focus-visible {
  outline: 2px solid var(--fd-v1); outline-offset: 3px;
}
.fx-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.fx-chip {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  font: 500 .74rem/1 var(--fd-mono); letter-spacing: .01em;
  padding: .38rem .6rem; border-radius: 999px; border: 1px solid var(--fd-line-2); color: var(--fd-mut);
}
.fx-chip svg { width: 12px; height: 12px; }
.fx-chip.is-free { color: var(--fd-mint); border-color: rgba(52, 211, 153, .35); background: var(--fd-mint-bg); }
.fx-chip.is-done { color: var(--fd-v1); border-color: rgba(167, 139, 250, .4); background: rgba(124, 58, 237, .16); }
.fx-chip.is-now  { color: var(--fd-v4); border-color: rgba(167, 139, 250, .4); }
.fx-chip.is-warn { color: var(--fd-amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.fx-chip.is-lock { color: var(--fd-dim); }

.fx-bar { display: block; height: 6px; border-radius: 6px; background: rgba(237, 233, 254, .1); overflow: hidden; }
.fx-bar > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fd-v6), var(--fd-v4)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ── Squelette (mêmes dimensions que le haut de fiche : pas de saut) ───── */
/* Hauteur d'écran entière : le pied de page reste hors champ pendant le chargement (sinon son
   déplacement à l'arrivée de la fiche compte comme un décalage de mise en page : CLS 0,10 mesuré) */
.fx-skel { padding: clamp(6.5rem, 9vw, 8rem) 0 3rem; min-height: 100vh; min-height: 100svh; }
.fx-skel .fx-hero-grid { align-items: center; }
.fx-sk { display: block; height: 1rem; border-radius: 8px; margin-bottom: .9rem; background: linear-gradient(90deg, rgba(237, 233, 254, .06), rgba(237, 233, 254, .11), rgba(237, 233, 254, .06)); background-size: 200% 100%; animation: fxSk 1.4s linear infinite; }
.fx-sk.h1 { height: 3.2rem; margin-bottom: .6rem; }
.fx-sk.btn { height: 48px; width: 220px; border-radius: 999px; margin-top: 1.6rem; }
.fx-sk-poster { aspect-ratio: 1055 / 1491; width: 100%; max-width: 320px; justify-self: end; border-radius: 16px; background: rgba(237, 233, 254, .06); }
@keyframes fxSk { to { background-position: -200% 0; } }

/* ── Haut de fiche : affiche + promesse + décision ─────────────────────── */
.fx-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(5.75rem, 7.5vw, 7rem) 0 clamp(2.75rem, 4.5vw, 4rem); }
.fx-amb {
  position: absolute; inset: -6% -4% 0; z-index: -2; pointer-events: none;
  background: var(--fd-amb, none) center / cover no-repeat;
  opacity: 0; transition: opacity .9s var(--fd-ease);
  -webkit-mask-image: radial-gradient(85% 90% at 80% 32%, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 78%);
          mask-image: radial-gradient(85% 90% at 80% 32%, #000 0%, rgba(0, 0, 0, .5) 42%, transparent 78%);
}
.fx-amb.is-on { opacity: .46; }
.fx-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 18%, rgba(124, 58, 237, .15), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 15, 0) 52%, var(--fd-bg) 100%);
}
.fx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .72fr); gap: clamp(2rem, 5vw, 4.75rem); align-items: center; }
/* Haut de fiche : une grille dont l'affiche occupe la 2e colonne sur toute la hauteur ;
   les rangées 1 et 8 (1fr) absorbent l'écart de hauteur : le texte reste centré, sans trous */
.fx-hero-text {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .72fr);
  grid-template-rows: 1fr repeat(6, auto) 1fr; column-gap: clamp(2rem, 5vw, 4.75rem);
}
.fx-hero-text > * { grid-column: 1; min-width: 0; }
.fx-hero-text > .fx-crumbs { grid-row: 2; }
.fx-hero-text > .fx-eyebrow { grid-row: 3; }
.fx-hero-text > .fx-title { grid-row: 4; }
.fx-hero-text > .fx-promise { grid-row: 5; }
.fx-hero-text > .fx-facts { grid-row: 6; }
.fx-hero-text > .fx-decide { grid-row: 7; }
.fx-hero-text > .fdx-aside { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.fx-crumbs { font-size: .8rem; margin-bottom: 1.4rem; }
.fx-eyebrow { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin: 0 0 .9rem; }
.fx-eyebrow .fx-k { color: var(--fd-v4); }
.fx-eyebrow .fx-k + .fx-k::before { content: '/'; margin-right: .9rem; color: var(--fd-line-2); }
.fx-title {
  font-size: clamp(2.3rem, 1.15rem + 3.5vw, 4.05rem); line-height: 1.02; margin: 0 0 1.05rem;
  color: #F6F4FF; text-wrap: balance; max-width: 17ch;
}
.fx-promise { font-size: 1.13rem; line-height: 1.6; color: var(--fd-mut); max-width: 46ch; margin: 0 0 1.6rem; text-wrap: pretty; }
.fx-facts { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.fx-facts li { display: inline-flex; align-items: baseline; gap: .38rem; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--fd-line); background: rgba(17, 17, 24, .5); font-size: .86rem; color: var(--fd-mut); }
.fx-facts b { font: 600 .92rem/1 var(--fd-mono); color: var(--fd-v1); font-variant-numeric: tabular-nums; }

.fx-decide { margin-top: 2.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; }
.fx-price { display: grid; gap: .3rem; padding-right: 1.6rem; border-right: 1px solid var(--fd-line-2); }
.fx-price-v { font-family: var(--font-title); font-weight: 700; font-stretch: 88%; font-size: 2.75rem; line-height: .95; color: var(--fd-v1); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fx-price-v.is-free { color: var(--fd-mint); }
.fx-price-n { font: 500 .74rem/1.35 var(--fd-mono); color: var(--fd-mut); letter-spacing: .02em; }
.fx-ctas { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.fx-note { flex-basis: 100%; margin: 0; font-size: .82rem; color: var(--fd-dim); }
.fx-note svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: .3rem; color: var(--fd-mint); }

/* Inscrit : reprise */
.fx-resume { flex-basis: 100%; max-width: 600px; display: grid; grid-template-columns: 1fr auto; gap: .75rem 1.25rem; align-items: center; padding: 1.05rem 1.2rem; border-radius: 18px; border: 1px solid var(--fd-line-2); background: rgba(17, 17, 24, .72); }
.fx-resume-t { min-width: 0; }
.fx-resume-t strong { display: block; margin-top: .35rem; font-size: 1.04rem; color: var(--fd-text); line-height: 1.35; overflow-wrap: anywhere; }
.fx-resume-t span { display: block; margin-top: .25rem; font: 500 .76rem/1.3 var(--fd-mono); color: var(--fd-mut); }
.fx-resume-p { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: .9rem; align-items: center; }
.fx-resume-p em { font: 600 .82rem/1 var(--fd-mono); font-style: normal; color: var(--fd-v1); font-variant-numeric: tabular-nums; }
.fx-done-msg { flex-basis: 100%; max-width: 560px; margin: 0; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid rgba(52, 211, 153, .3); background: var(--fd-mint-bg); color: #D1FAE5; font-size: .95rem; line-height: 1.55; }
.fx-done-msg b { color: #fff; }

/* Affiche : la carte du catalogue (FormationCards.hero), sans ses étiquettes ici */
.fx-hero .fdx-aside { width: 100%; max-width: 330px; justify-self: end; }
.fx-hero .fdx-tags, .fx-hero .fdx-prog { display: none; }
.fx-hero .fdx-pt { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(237, 233, 254, .08); }

/* Entrée du haut de fiche (une seule fois, page au repos lisible sans elle) */
.fx-anim .fx-in { animation: fxRise .48s var(--fd-out) both; animation-delay: var(--d, 0ms); }
/* Titre et affiche : déplacement seul, jamais d'opacité nulle — ce sont les candidats au LCP,
   et un élément peint à opacité 0 n'est compté qu'à sa prochaine peinture (mesuré : +1,4 s) */
.fx-anim .fx-hero .fx-title { animation-name: fxLift; }
.fx-anim .fx-hero .fdx-aside { animation: fxPoster .7s var(--fd-out) both; animation-delay: 120ms; }
@keyframes fxRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fxLift { from { transform: translateY(18px); } }
@keyframes fxPoster { from { transform: translateY(26px) scale(.98); } }

/* ── Le parcours (frise des modules) ───────────────────────────────────── */
.fx-path { position: relative; padding: 2.4rem 0 2.1rem; border-block: 1px solid var(--fd-line); background: linear-gradient(180deg, rgba(17, 17, 24, .65), rgba(10, 10, 15, .35)); }
.fx-path-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: 1.35rem; }
.fx-path-head h2 { font-size: clamp(1.45rem, 1.05rem + 1.1vw, 1.95rem); margin: .35rem 0 0; color: #F6F4FF; }
.fx-path-sum { margin: .45rem 0 0; font: 500 .8rem/1.5 var(--fd-mono); color: var(--fd-mut); }
.fx-path-nav { display: flex; gap: .5rem; }
.fx-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fd-line-2); background: rgba(17, 17, 24, .7); color: var(--fd-v1); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, opacity .2s; }
.fx-nav-btn:hover { border-color: rgba(167, 139, 250, .6); }
.fx-nav-btn:disabled { opacity: .35; cursor: default; }
.fx-nav-btn svg { width: 18px; height: 18px; }
/* Marge du 1er module = marge du contenu du site (.container : 1200 px, 1340 px dès 1440 px, 28 px de retrait).
   Calculée en CSS sur la largeur de la zone de défilement : aucune mesure en JS, donc aucun saut. */
.fx-track-wrap {
  --pad: max(1.75rem, calc((100% - 1200px) / 2 + 1.75rem));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline: var(--pad);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
@media (min-width: 1440px) { .fx-track-wrap { --pad: calc((100% - 1340px) / 2 + 1.75rem); } }
.fx-track-wrap::-webkit-scrollbar { display: none; }
.fx-track {
  --sw: 164px; --dot: 36px; --top: 10px;
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: var(--sw);
  /* marge intérieure en % : elle se rapporte à la largeur de la zone de défilement (bloc conteneur) */
  list-style: none; margin: 0; width: max-content; padding: var(--top) var(--pad) 4px;
}

/* Le fil : un segment par station, du centre de son point au centre du suivant.
   ::before = tracé pointillé, ::after = segment parcouru (scaleX), allumé en cascade */
.fx-st { position: relative; scroll-snap-align: start; }
.fx-st:not(:last-child)::before, .fx-st:not(:last-child)::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none; left: 50%; width: 100%;
}
.fx-st:not(:last-child)::before { height: 2px; top: calc(var(--dot) / 2 - 1px); background: repeating-linear-gradient(90deg, var(--fd-line-2) 0 8px, transparent 8px 13px); }
.fx-st:not(:last-child)::after {
  height: 4px; top: calc(var(--dot) / 2 - 2px); border-radius: 4px;
  background: linear-gradient(90deg, var(--fd-v6), var(--fd-v4)); box-shadow: 0 0 14px rgba(124, 58, 237, .5);
  transform-origin: 0 50%; transform: scaleX(0);
}
.fx-st.is-lit:not(:last-child)::after { transform: none; }
.fx-anim .fx-st.is-lit:not(:last-child)::after { animation: fxFill .5s var(--fd-out) both; animation-delay: calc(min(var(--i) * 90ms, 900ms) + 300ms); }
@keyframes fxFill { from { transform: scaleX(0); } }
.fx-st-btn {
  position: relative; display: grid; justify-items: center; gap: .55rem; width: 100%; padding: 0 .6rem .4rem;
  background: none; border: 0; color: inherit; font: inherit; text-align: center; cursor: pointer; border-radius: 14px;
}
.fx-dot {
  position: relative; z-index: 1; width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center;
  font: 600 .82rem/1 var(--fd-mono); color: var(--fd-mut); background: var(--fd-bg); border: 1.5px solid var(--fd-line-2);
  transition: border-color .2s, color .2s, background-color .2s;
}
.fx-dot svg { width: 15px; height: 15px; }
.fx-st-t { font-size: .84rem; line-height: 1.35; color: var(--fd-mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3); }
.fx-st-m { font: 500 .7rem/1.2 var(--fd-mono); color: var(--fd-dim); font-variant-numeric: tabular-nums; }
.fx-st-btn:hover .fx-st-t { color: var(--fd-text); }
.fx-st-btn:hover .fx-dot { border-color: rgba(167, 139, 250, .7); }
.fx-st.is-done .fx-dot { background: var(--fd-v6); border-color: var(--fd-v6); color: #fff; }
.fx-st.is-done .fx-st-t { color: #D9D6EA; }
.fx-st.is-now .fx-dot { border: 2px solid var(--fd-v4); color: var(--fd-v1); background: #1A1430; }
.fx-st.is-now .fx-dot::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .55);
  animation: fxHalo 2.4s var(--fd-ease) 1.2s 3 both;
}
@keyframes fxHalo { 0% { opacity: 0; transform: scale(.7); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.fx-st.is-now .fx-st-t { color: #fff; }
.fx-st.is-free .fx-dot { border-color: rgba(52, 211, 153, .7); color: var(--fd-mint); }
.fx-st.is-locked .fx-dot { color: var(--fd-dim); }
.fx-st.is-locked .fx-st-t { color: var(--fd-dim); }
.fx-st-tag { font: 600 .66rem/1 var(--fd-mono); letter-spacing: .08em; text-transform: uppercase; padding: .28rem .45rem; border-radius: 999px; color: var(--fd-mint); background: var(--fd-mint-bg); border: 1px solid rgba(52, 211, 153, .3); }
.fx-st-tag.is-now { color: var(--fd-v1); background: rgba(124, 58, 237, .2); border-color: rgba(167, 139, 250, .4); }
/* Porte de quiz entre deux modules : un losange sur le fil */
.fx-gate {
  position: absolute; z-index: 2; top: calc(var(--dot) / 2 - 6px); left: 100%; width: 12px; height: 12px; margin-left: -6px;
  transform: rotate(45deg); border-radius: 2px; background: var(--fd-bg); border: 1.5px solid rgba(167, 139, 250, .45);
}
.fx-gate.is-ok { background: var(--fd-v4); border-color: var(--fd-v4); }
.fx-gate.is-next { border-color: var(--fd-amber); background: rgba(251, 191, 36, .25); }
.fx-gate-l { position: absolute; z-index: 2; left: 100%; top: calc(var(--dot) / 2 + 12px); transform: translateX(-50%); white-space: nowrap; font: 600 .62rem/1 var(--fd-mono); color: var(--fd-amber); letter-spacing: .04em; }
.fx-anim .fx-st { animation: fxRise .48s var(--fd-out) both; animation-delay: calc(min(var(--i) * 65ms, 280ms) + 200ms); }

/* ── Corps : colonne principale + carte latérale ───────────────────────── */
.fx-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-top: clamp(2.75rem, 5vw, 4rem); padding-bottom: 2rem; }
.fx-main { min-width: 0; }
.fx-block { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.fx-block > h2, .fx-block-h h2 { font-size: clamp(1.45rem, 1.05rem + 1.1vw, 1.95rem); margin: .35rem 0 .45rem; color: #F6F4FF; }
.fx-block-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.2rem; }
.fx-lead { margin: 0; color: var(--fd-mut); font-size: .95rem; line-height: 1.6; max-width: 62ch; }

/* Module découverte (prospects) */
.fx-free { position: relative; border-radius: 20px; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid rgba(52, 211, 153, .28); background: linear-gradient(135deg, rgba(52, 211, 153, .08), rgba(17, 17, 24, .7) 55%); }
.fx-free h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); margin: .4rem 0 .4rem; color: #F6F4FF; }
.fx-free .fx-k { color: var(--fd-mint); }
.fx-free-list { list-style: none; margin: 1.1rem 0 1.3rem; padding: 0; display: grid; gap: 2px; counter-reset: fl; }
.fx-free-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: .75rem; align-items: center; padding: .7rem .2rem; border-top: 1px solid var(--fd-line); font-size: .93rem; color: var(--fd-text); }
.fx-free-list li:first-child { border-top: 0; }
.fx-free-list .fx-ico { color: var(--fd-mint); display: grid; place-items: center; }
.fx-free-list .fx-ico svg { width: 16px; height: 16px; }
.fx-free-list span:last-child { font: 500 .74rem/1 var(--fd-mono); color: var(--fd-dim); }

/* Objectifs */
.fx-learn { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .65rem; }
.fx-learn li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--fd-line); background: rgba(17, 17, 24, .55); color: var(--fd-text); font-size: .93rem; line-height: 1.5; }
.fx-learn svg { width: 18px; height: 18px; color: var(--fd-v4); margin-top: .1rem; }

/* Programme */
.fx-mods { display: grid; gap: .6rem; }
.fx-mod { border-radius: 16px; border: 1px solid var(--fd-line); background: rgba(17, 17, 24, .62); transition: border-color .2s; scroll-margin-top: 96px; }
.fx-mod:hover { border-color: var(--fd-line-2); }
.fx-mod.is-open { border-color: rgba(167, 139, 250, .32); background: rgba(19, 17, 30, .8); }
.fx-mod h3 { margin: 0; font: inherit; }
.fx-mod-btn {
  width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 22px; gap: .9rem; align-items: center;
  padding: .95rem 1.1rem; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; border-radius: 16px; font: inherit;
}
.fx-mod-n { font-family: var(--font-title); font-weight: 700; font-stretch: 88%; font-size: 1.55rem; line-height: 1; color: rgba(237, 233, 254, .28); font-variant-numeric: tabular-nums; }
.fx-mod.is-done .fx-mod-n, .fx-mod.is-now .fx-mod-n { color: var(--fd-v4); }
.fx-mod.is-free .fx-mod-n { color: var(--fd-mint); }
.fx-mod-t { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--fd-text); }
.fx-mod-m { display: block; margin-top: .3rem; font: 500 .74rem/1.3 var(--fd-mono); color: var(--fd-dim); font-variant-numeric: tabular-nums; }
.fx-mod.is-locked .fx-mod-t { color: var(--fd-mut); }
.fx-mod-s { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.fx-chev { color: var(--fd-dim); display: grid; place-items: center; transition: transform .25s var(--fd-ease); }
.fx-chev svg { width: 18px; height: 18px; }
.fx-mod.is-open .fx-chev { transform: rotate(180deg); }
.fx-mod-b { padding: 0 1.1rem 1.05rem calc(1.1rem + 46px + .9rem); }
.fx-mod-b[hidden] { display: none; }
.fx-mod.is-open .fx-mod-b > * { animation: fxIn .26s var(--fd-out) both; }
@keyframes fxIn { from { opacity: 0; transform: translateY(6px); } }
.fx-mod-bar { margin: -.2rem 0 .9rem; max-width: 260px; }
.fx-why { margin: 0 0 .9rem; padding: .7rem .9rem; border-radius: 12px; font-size: .86rem; line-height: 1.5; color: var(--fd-mut); background: rgba(237, 233, 254, .04); border: 1px dashed var(--fd-line-2); display: flex; gap: .6rem; align-items: flex-start; }
.fx-why svg { width: 16px; height: 16px; flex: none; margin-top: .12rem; color: var(--fd-v4); }
.fx-why b { color: var(--fd-text); font-weight: 600; }
.fx-why.is-free { border-color: rgba(52, 211, 153, .35); background: var(--fd-mint-bg); color: #A7F3D0; }
.fx-why.is-free svg { color: var(--fd-mint); }

.fx-ls { list-style: none; margin: 0; padding: 0; display: grid; }
.fx-l { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: .5rem; border-top: 1px solid var(--fd-line); }
.fx-l:first-child { border-top: 0; }
.fx-l-tick { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.fx-l-tick span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--fd-line-2); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.fx-l-tick svg { width: 11px; height: 11px; color: #fff; opacity: 0; transition: opacity .2s; }
.fx-l.is-done .fx-l-tick span { background: var(--fd-v6); border-color: var(--fd-v6); }
.fx-l.is-done .fx-l-tick svg { opacity: 1; }
.fx-l-tick:disabled { cursor: default; }
.fx-l-tick:not(:disabled):hover span { border-color: var(--fd-v4); }
.fx-l-open { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: .65rem; align-items: center; min-height: 48px; padding: .4rem .5rem; background: none; border: 0; color: var(--fd-text); font: inherit; font-size: .93rem; text-align: left; cursor: pointer; border-radius: 10px; }
.fx-l-open:hover { background: rgba(237, 233, 254, .04); }
.fx-l-open:hover .fx-l-t { color: #fff; }
.fx-l-open[aria-disabled="true"] { cursor: default; color: var(--fd-dim); }
.fx-l-open[aria-disabled="true"]:hover { background: none; }
.fx-l-open .fx-ico { color: var(--fd-v4); display: grid; place-items: center; }
.fx-l-open[aria-disabled="true"] .fx-ico { color: var(--fd-dim); }
.fx-l-open .fx-ico svg { width: 16px; height: 16px; }
.fx-l-t { line-height: 1.4; overflow-wrap: anywhere; }
.fx-l-d { font: 500 .72rem/1 var(--fd-mono); color: var(--fd-dim); font-variant-numeric: tabular-nums; }
.fx-l.is-next .fx-l-t::after { content: 'à suivre'; margin-left: .55rem; padding: .18rem .4rem; border-radius: 999px; font: 600 .62rem/1 var(--fd-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fd-v1); background: rgba(124, 58, 237, .32); vertical-align: 1px; }

.fx-q { margin-top: .75rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; background: rgba(124, 58, 237, .08); border: 1px solid rgba(167, 139, 250, .2); }
.fx-q-t { font-weight: 600; font-size: .93rem; color: var(--fd-text); display: flex; align-items: center; gap: .5rem; }
.fx-q-t svg { width: 17px; height: 17px; color: var(--fd-v4); }
.fx-q-m { grid-column: 1; font: 500 .74rem/1.4 var(--fd-mono); color: var(--fd-mut); }
.fx-q-m b { color: var(--fd-v1); font-weight: 600; }
.fx-q-m b.is-low { color: var(--fd-amber); }
.fx-q-a { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .5rem; align-items: center; }
.fx-q-btn { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .18); color: var(--fd-v1); font: 600 .84rem/1 Inter, sans-serif; cursor: pointer; }
.fx-q-btn:hover { background: rgba(124, 58, 237, .32); }
.fx-q-btn:disabled { opacity: .45; cursor: default; }
.fx-pdf { min-height: 40px; display: inline-flex; align-items: center; gap: .45rem; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--fd-line-2); background: transparent; color: var(--fd-text); font: 500 .8rem/1 Inter, sans-serif; cursor: pointer; text-decoration: none; }
.fx-pdf svg { width: 15px; height: 15px; color: var(--fd-v4); }
.fx-pdf:hover { border-color: rgba(167, 139, 250, .55); }
.fx-pdf[aria-disabled="true"] { color: var(--fd-dim); cursor: default; border-style: dashed; }
.fx-pdf[aria-disabled="true"] svg { color: var(--fd-dim); }
.fx-mod-foot { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fx-mod-foot .fx-btn { min-height: 42px; font-size: .88rem; }

/* ── Carte latérale : décision (prospects) ou tableau de bord (inscrits) ── */
.fx-side { position: sticky; top: 96px; }
.fx-card { border-radius: 22px; padding: 1.4rem; border: 1px solid var(--fd-line-2); background: linear-gradient(180deg, rgba(23, 23, 31, .92), rgba(15, 15, 21, .92)); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.fx-card .fx-price { border-right: 0; padding-right: 0; }
.fx-card .fx-btn { width: 100%; }
.fx-card-ctas { display: grid; gap: .55rem; margin: 1.15rem 0 1.1rem; }
.fx-inc { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--fd-line); display: grid; gap: .7rem; }
.fx-inc li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; font-size: .88rem; color: var(--fd-mut); line-height: 1.45; }
.fx-inc li b { color: var(--fd-text); font-weight: 600; }
.fx-inc svg { width: 17px; height: 17px; color: var(--fd-v4); margin-top: .08rem; }
.fx-trust { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--fd-line); font-size: .78rem; line-height: 1.55; color: var(--fd-dim); }
.fx-trust a { color: var(--fd-v4); }
.fx-card-links { display: flex; gap: .4rem; margin-top: .8rem; }
.fx-card-links button { flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--fd-line); background: transparent; color: var(--fd-mut); font: 500 .8rem/1 Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.fx-card-links button:hover { color: var(--fd-text); border-color: var(--fd-line-2); }
.fx-card-links svg { width: 14px; height: 14px; }

.fx-dash-pct { display: flex; align-items: baseline; gap: .6rem; margin: .5rem 0 .7rem; }
.fx-dash-pct b { font-family: var(--font-title); font-weight: 700; font-stretch: 88%; font-size: 3rem; line-height: 1; color: var(--fd-v1); font-variant-numeric: tabular-nums; }
.fx-dash-pct span { font-size: .85rem; color: var(--fd-mut); }
.fx-stats { margin: 1.15rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--fd-line); border: 1px solid var(--fd-line); }
.fx-stats div { background: #131319; padding: .8rem .85rem; }
.fx-stats dt { font: 500 .64rem/1.2 var(--fd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fd-dim); }
.fx-stats dd { margin: .35rem 0 0; font: 600 1.02rem/1.1 var(--fd-mono); color: var(--fd-text); font-variant-numeric: tabular-nums; }
.fx-stats dd small { font-size: .74rem; color: var(--fd-dim); font-weight: 500; }
.fx-next { margin: 1rem 0 0; font-size: .86rem; line-height: 1.55; color: var(--fd-mut); }
.fx-next b { color: var(--fd-text); font-weight: 600; }

.fx-nextf:focus-visible { outline: 2px solid var(--fd-v1); outline-offset: 3px; }

/* ── Carte cadeau reçue (?cadeau=CODE) ─────────────────────────────────── */

/* ── Suite conseillée (fin de parcours) ────────────────────────────────── */
.fx-nextf {
  flex-basis: 100%; max-width: 560px; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center;
  padding: .95rem 1.15rem; border-radius: 16px; border: 1px solid var(--fd-line-2); background: rgba(17, 17, 24, .72);
  color: var(--fd-text); text-decoration: none; transition: border-color .2s var(--fd-ease);
}
.fx-nextf:hover { border-color: rgba(167, 139, 250, .6); }
.fx-nextf .fx-k { grid-column: 1; }
.fx-nextf strong { grid-column: 1; font-size: 1.02rem; line-height: 1.35; color: #fff; }
.fx-nextf > svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--fd-v4); transition: transform .2s var(--fd-ease); }
.fx-nextf:hover > svg { transform: translateX(3px); }
.fx-nextf.is-side { margin-top: 1rem; }

/* ── Prérequis et public visé ──────────────────────────────────────────── */
.fx-pre { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .65rem; }
.fx-pre-c { padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--fd-line); background: rgba(17, 17, 24, .55); }
.fx-pre-c h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; font: 600 .72rem/1.2 var(--fd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fd-v4); }
.fx-pre-c h3 svg { width: 16px; height: 16px; }
.fx-pre-c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fx-pre-c li { position: relative; padding-left: 1.05rem; font-size: .93rem; line-height: 1.5; color: var(--fd-text); }
.fx-pre-c li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); background: var(--fd-v4); }

/* ── Pack : formations incluses ─────────────────────────────────────────────
   Une ligne par formation : titre, modules et niveau, durée réelle. La barre
   est à l'échelle de la plus longue formation (--p de 0 à 1) et se remplit à
   l'apparition de la section (transform seulement). */
.fx-pk { list-style: none; margin: 1.15rem 0 0; padding: 0; display: grid; }
.fx-pk li + li { border-top: 1px solid var(--fd-line); }
.fx-pk-row {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(88px, 22%, 168px) 4.75rem;
  grid-template-areas: "t bar d" "m bar d"; column-gap: 1.1rem; row-gap: .3rem; align-items: center;
  padding: .82rem .6rem; margin: 0 -.6rem; border-radius: 12px; color: var(--fd-text); text-decoration: none;
  transition: background-color .2s var(--fd-ease);
}
.fx-pk-row:hover { background: rgba(23, 23, 31, .9); }
.fx-pk-row:focus-visible { outline: 2px solid var(--fd-v4); outline-offset: -2px; }
.fx-pk-t { grid-area: t; font-weight: 600; font-size: .96rem; line-height: 1.35; color: #F6F4FF; transition: color .2s var(--fd-ease); }
.fx-pk-row:hover .fx-pk-t { color: var(--fd-v4); }
.fx-pk-m { grid-area: m; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; font: 500 .72rem/1.3 var(--fd-mono); letter-spacing: .02em; color: var(--fd-dim); }
.fx-pk-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .5rem; border-radius: 999px; border: 1px solid var(--fd-line-2); color: var(--fd-mut); }
.fx-pk-tag svg { width: 12px; height: 12px; }
.fx-pk-tag.is-open { color: var(--fd-mint); border-color: rgba(52, 211, 153, .35); background: var(--fd-mint-bg); }
.fx-pk-bar { grid-area: bar; height: 6px; border-radius: 999px; background: rgba(237, 233, 254, .07); overflow: hidden; }
.fx-pk-bar b {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fd-v7), var(--fd-v4));
  transform-origin: left center; transform: scaleX(var(--p));
  transition: transform .7s var(--fd-out) calc(min(var(--i) * 45ms, 450ms) + 120ms);
}
.fx-pack.will-reveal:not(.is-revealed) .fx-pk-bar b { transform: scaleX(0); }
.fx-pk-d { grid-area: d; justify-self: end; font: 600 .84rem/1 var(--fd-mono); color: var(--fd-v1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-pk-sum { margin: 1rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--fd-mut); }
@media (max-width: 560px) {
  .fx-pk-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t d" "m m" "bar bar"; row-gap: .45rem; }
}

/* ── Barre d'action mobile ─────────────────────────────────────────────── */
.fx-dock { display: none; }
@media (max-width: 899px) {
  .fx-dock {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: .9rem; padding: .55rem .55rem .55rem 1.05rem; border-radius: 999px;
    background: rgba(17, 17, 24, .94); border: 1px solid var(--fd-line-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .95);
    transform: translateY(140%); opacity: 0; transition: transform .32s var(--fd-out), opacity .2s var(--fd-ease);
  }
  .fx-dock.is-on { transform: none; opacity: 1; }
  .fx-dock-l { min-width: 0; flex: 1; display: grid; gap: .15rem; }
  .fx-dock-l b { font: 700 1.15rem/1 var(--fd-mono); color: var(--fd-v1); font-variant-numeric: tabular-nums; }
  .fx-dock-l span { font-size: .74rem; color: var(--fd-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fx-dock .fx-btn { min-height: 46px; }
  /* Les boutons flottants du site (Feedback, Nova, retour en haut) montent au-dessus de la barre.
     « translate » se compose avec leurs propres transform, sans les écraser. */
  body.fx-page #fb-btn { transition: color .2s, border-color .2s, background .2s, translate .32s var(--fd-out); }
  body.fx-page #scroll-top-btn { transition: opacity .22s var(--fd-ease), transform .22s cubic-bezier(.34, 1.56, .64, 1), background .15s var(--fd-ease), translate .32s var(--fd-out); }
  body.fx-dock-on #fb-btn, body.fx-dock-on #nova-launcher, body.fx-dock-on #scroll-top-btn { translate: 0 -70px; }
}

/* ── Mise en page mobile ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .fx-body { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 899px) {
  .fx-hero { padding-top: 4.75rem; }
  .fx-skel { padding-top: 4.75rem; }
  .fx-skel .fx-hero-grid { grid-template-columns: minmax(0, 1fr) 30%; gap: 1rem; align-items: start; }
  /* Mise en page de magazine : l'affiche en vignette à droite, le titre l'habille */
  .fx-hero-text { display: block; }
  .fx-crumbs { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 1rem; font-size: .76rem; }
  .fx-hero .fdx-aside { float: right; width: 31%; max-width: 132px; margin: .2rem 0 .9rem 1rem; }
  .fx-hero .fdx-pt { border-radius: 10px; }
  .fx-eyebrow { flex-direction: column; align-items: flex-start; gap: .35rem; margin-bottom: .8rem; }
  .fx-eyebrow .fx-k + .fx-k::before { content: none; }
  .fx-eyebrow .fx-k { font-size: .64rem; }
  .fx-title { font-size: clamp(1.85rem, 1.15rem + 3.4vw, 2.35rem); margin: 0 0 .85rem; max-width: none; }
  .fx-promise { font-size: 1rem; margin: 0 0 1.1rem; }
  .fx-facts { clear: both; }
  .fx-facts li { padding: .42rem .65rem; font-size: .8rem; }
  .fx-decide { clear: both; margin-top: 1.25rem; gap: .9rem 1.1rem; }
  .fx-price { border-right: 0; padding-right: 0; }
  .fx-ctas { width: 100%; }
  .fx-ctas .fx-btn { flex: 1 1 100%; }
  .fx-amb { display: none; }
  .fx-hero .fdx-aside { animation: none; }
  .fx-track { --sw: 136px; --dot: 32px; }
  .fx-path-nav { display: none; }
  .fx-body { grid-template-columns: minmax(0, 1fr); }
  .fx-side { position: static; order: -1; }
  .fx-body.is-prospect .fx-side { display: none; }
  /* inscrit : « Reprendre » est déjà dans le haut de fiche et dans la barre du bas */
  .fx-body:not(.is-prospect) .fx-side .fx-card-ctas { display: none; }
  .fx-mod-btn { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: .7rem; padding: .85rem .9rem; }
  .fx-mod-n { font-size: 1.25rem; }
  .fx-mod-s { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .fx-chev { grid-column: 3; grid-row: 1; }
  .fx-mod-b { padding: 0 .9rem 1rem; }
  .fx-q { grid-template-columns: 1fr; }
  .fx-q-a { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
  .fx-resume { grid-template-columns: 1fr; }
  .fx-resume .fx-btn { width: 100%; }
}
@media (max-width: 380px) {
  .fx-hero-grid { grid-template-columns: minmax(0, 1fr) 92px; }
  .fx-hero .fdx-aside { max-width: 92px; }
}

/* ── Mouvement réduit : tout est déjà à sa place ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fx-anim .fx-in, .fx-anim .fx-hero .fdx-aside, .fx-anim .fx-st::after, .fx-anim .fx-st,
  .fx-mod.is-open .fx-mod-b > *, .fx-st.is-now .fx-dot::after { animation: none !important; }
  .fx-amb, .fx-dock, .fx-chev, .fx-nextf > svg, .fx-pk-row, .fx-pk-t, .fx-pk-bar b { transition: none !important; }
  .fx-sk { animation: none; }
}
