/* ============================================================
   styles.css — XSCALE Academy
   Thème nuit cinématique (ADN XSCALE) : navy, bleu, cyan, teal.
   --primary #0b7bff n'est jamais une couleur de texte.
   Titres en Archivo 500–900 (jamais d'italique d'affichage),
   texte en IBM Plex Sans, repères / eyebrows en JetBrains Mono.
   Lockup wordmark en Archivo (même police d'affichage que les titres).
   Mise en page : colonne centrale de 1240 px, titres centrés et
   tenus sur une ligne quand la largeur le permet (<h1> toujours).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-deep: #05060f;
  --hero: #0a1040;
  --ink: #f4f7fb;
  --ink-2: rgba(244, 247, 251, 0.88);
  --ink-3: rgba(244, 247, 251, 0.70);
  --ink-4: rgba(244, 247, 251, 0.50);
  --primary: #0b7bff;              /* fills / glows — never text */
  --primary-dark: #0058e0;
  --primary-darker: #0049bd;
  --accent-text: #0a5ad4;          /* text on light surfaces */
  --accent-on-dark: #4794ff;       /* text accent on navy */
  --accent-rgb: 11, 123, 255;
  --accent-on-dark-rgb: 71, 148, 255;
  --cyan: #06b6d4;
  --cyan-rgb: 6, 182, 212;
  --teal: #14b8a6;
  --teal-rgb: 20, 184, 166;
  --violet: #8b5cf6;
  --violet-rgb: 139, 92, 246;
  --mark: #0164cf;
  --surface-alt: #e8edf5;
  --on-primary: #ffffff;
  --glass: rgba(10, 14, 26, 0.52);
  --glass-strong: rgba(5, 6, 15, 0.72);
  --stroke: rgba(255, 255, 255, 0.11);
  --stroke-2: rgba(255, 255, 255, 0.22);
  --grad-brand: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #14b8a6 100%);

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 24px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --nav-offset: 96px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; line-height: 1.5; tab-size: 4; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: 700; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; background: transparent; border-radius: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(var(--accent-on-dark-rgb), 0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
section[id], article[id], .anchor-alias, .site-footer-col[id] { scroll-margin-top: var(--nav-offset); }
.anchor-alias { height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Fond unique : fumée recadrée navy / cyan ----------
   Photo historique teintée (hue-rotate) pour sortir l'or AInsight.
   Mobile : image dédiée, pas de Ken Burns. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  transform: translateZ(0);
}
@supports (-webkit-touch-callout: none) {
  .site-bg { min-height: -webkit-fill-available; }
}
.site-bg picture,
.site-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 768px) {
  .site-bg img {
    width: 114%;
    height: 114%;
    max-width: none;
    margin: -7%;
    animation: bg-kenburns 32s ease-in-out infinite alternate;
    will-change: transform;
  }
}
.site-bg img {
  filter: hue-rotate(168deg) saturate(0.72) brightness(0.62);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 16, 64, 0.28) 0%, rgba(10, 14, 26, 0.62) 48%, rgba(5, 6, 15, 0.82) 100%),
    radial-gradient(80% 50% at 12% 18%, rgba(11, 123, 255, 0.18), transparent 55%),
    radial-gradient(70% 45% at 88% 82%, rgba(6, 182, 212, 0.14), transparent 55%);
  pointer-events: none;
}
@keyframes bg-kenburns {
  from { transform: scale(1.04) translate3d(-1.2%, -0.8%, 0); }
  to   { transform: scale(1.14) translate3d(1.4%, 1.0%, 0); }
}

/* ---------- Typographie ---------- */
h1, h2, h3,
.display,
.display-italic,
.h1, .title, .hero-tagline,
.program-title, .track-title, .offer-title,
.skill-title, .persona-title, .tier-name, .step-title,
.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-optical-sizing: auto;
}
.h1, h1 { font-weight: 800; }
.display {
  letter-spacing: -0.02em;
}
.display-italic {
  font-weight: 600;
}
h1 em, h2 em, h3 em,
.display em, .display i,
.title em, .h1 em, .hero-tagline em, .modal-title em {
  font-style: normal;
  font-weight: inherit;
}
.display .font-light,
.h1 .font-light,
.title .font-light,
.hero-tagline .font-light {
  font-weight: inherit;
  font-style: normal;
}
.font-light { font-weight: 300; }
.font-medium { font-weight: 700; }
.text-ink { color: var(--ink); }
.text-accent { color: var(--accent-on-dark); }

/* Surlignage brand (bleu → cyan → teal) qui se dessine à l'apparition */
.underline-brand {
  background-image: var(--grad-brand);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.07em;
  padding-bottom: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js [data-reveal] .underline-brand {
  background-size: 0% 0.07em;
  transition: background-size 1.2s var(--ease) 0.45s;
}
.js [data-reveal].is-in .underline-brand { background-size: 100% 0.07em; }
.hero .underline-brand { animation: underline-draw 1.3s var(--ease) 1.25s both; }
@keyframes underline-draw { from { background-size: 0% 0.07em; } to { background-size: 100% 0.07em; } }

/* Sur-titres de section, encadrés de deux filets */
.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-on-dark);
}
.eyebrow-ai { color: var(--violet); }
.eyebrow-finance { color: var(--cyan); }
.eyebrow-mono { color: var(--cyan); font-weight: 500; letter-spacing: 0.26em; }
.eyebrow::before, .eyebrow::after {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: 0.7;
}
.js [data-reveal] .eyebrow::before,
.js [data-reveal] .eyebrow::after {
  transform: scaleX(0);
  transition: transform 1s var(--ease) 0.25s;
}
.js [data-reveal] .eyebrow::before { transform-origin: right; }
.js [data-reveal] .eyebrow::after { transform-origin: left; }
.js [data-reveal].is-in .eyebrow::before,
.js [data-reveal].is-in .eyebrow::after { transform: scaleX(1); }
.label-accent { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Titres tenus sur une ligne ----------
   <h1> : toujours une ligne, centré. Taille estimée en CSS depuis le
   nombre de caractères (--chars), puis ajustée au pixel par app.js. */
.h1 {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: min(var(--fit-max-css, 128px), calc(min(100vw - 2 * var(--gutter), var(--wrap)) / (var(--chars, 20) * 0.52)));
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.04em 0.18em;
  margin: -0.12em -0.04em -0.18em;
}
.h1 .w-in {
  display: inline-block;
  animation: word-rise 1.15s var(--ease) both;
  animation-delay: calc(260ms + var(--w, 0) * 110ms);
}
@keyframes word-rise {
  from { transform: translate3d(0, 110%, 0); }
  to   { transform: none; }
}
[data-fit].is-fit { white-space: nowrap; text-wrap: nowrap; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.section-tight { position: relative; padding-block: clamp(8px, 2vw, 24px); }
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
  margin: 0 auto clamp(40px, 5.5vw, 68px);
}
.title {
  width: 100%;
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.title-xl { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.04; font-weight: 800; }
.lead {
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- Panneaux de verre ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -36px rgba(0, 0, 0, 0.75);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
  }
}
/* Halo qui suit le pointeur (souris uniquement, voir app.js) */
.spot { position: relative; isolation: isolate; overflow: hidden; }
.spot::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-on-dark-rgb), 0.11), transparent 46%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
.lift { transition: translate 0.45s var(--ease), border-color 0.35s, background-color 0.35s, box-shadow 0.35s; }
.lift:hover { translate: 0 -4px; border-color: rgba(var(--accent-on-dark-rgb), 0.32); }

/* ---------- Boutons ---------- */
.btn-pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-pill svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:hover svg { transform: translateX(4px); }
.btn-pill:active { transform: translateY(0); }
.btn-pill:disabled { opacity: 0.55; transform: none; }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.w-full { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), 0.55); }
.btn-teal { background: var(--teal); color: var(--on-primary); border-color: var(--teal); }
.btn-teal:hover { box-shadow: 0 16px 40px -12px rgba(var(--teal-rgb), 0.55); }
.btn-outline-cyan { color: var(--cyan); border-color: rgba(var(--teal-rgb), 0.8); background: rgba(var(--teal-rgb), 0.05); }
.btn-outline-cyan:hover { background: rgba(var(--teal-rgb), 0.13); }
.btn-outline { color: var(--ink); border-color: var(--stroke-2); background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { border-color: var(--primary); color: var(--accent-on-dark); }
/* Reflet qui balaie les boutons pleins au survol */
.btn-primary::after, .btn-teal::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover::after, .btn-teal:hover::after { transform: translateX(130%); }

.text-link {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-on-dark-rgb), 0.5);
  text-underline-offset: 5px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.text-link:hover { color: var(--accent-on-dark); text-decoration-color: var(--accent-on-dark); }

/* ---------- Pastilles, badges ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.chip:hover { border-color: rgba(var(--accent-on-dark-rgb), 0.6); color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap;
}
.badge-ai { color: var(--violet); background: rgba(var(--violet-rgb), 0.12); border: 1px solid rgba(var(--violet-rgb), 0.4); }
.badge-finance { color: var(--cyan); background: rgba(var(--teal-rgb), 0.12); border: 1px solid rgba(var(--teal-rgb), 0.45); }
.live-dot {
  position: relative; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.live-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: live-ping 2.4s var(--ease) infinite;
}
@keyframes live-ping {
  from { transform: scale(1); opacity: 0.65; }
  to   { transform: scale(3.4); opacity: 0; }
}

/* ---------- Logo ---------- */
.brand-lockup {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}
.brand-lockup:hover .brand-mark { transform: none; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.55)); }
.brand-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 19px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand-name-main { font-weight: 700; letter-spacing: 0.07em; }
.brand-name-sub { font-style: normal; font-weight: 500; letter-spacing: 0.13em; font-size: 0.8em; }
.preview-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #A8A8A4; border: 1px solid #3A3B3E; padding: 3px 8px; border-radius: 3px; line-height: 1.2;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.72), rgba(10, 14, 26, 0));
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-nav.is-scrolled {
  background: rgba(10, 14, 26, 0.78);
  border-bottom-color: var(--stroke);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.85);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav.is-scrolled {
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
}
.site-nav-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  min-height: var(--nav-h);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  position: relative;
}
.site-nav-inner > .brand-lockup { justify-self: start; }
.site-nav-menu { display: flex; align-items: center; }
.site-nav-links {
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(10, 14, 26, 0.4);
}
.site-nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  color: var(--ink-2);
  transition: color 0.25s, background-color 0.25s;
}
.site-nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.site-nav-menu-cta { display: none; }
.site-nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn-nav-cta { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  background: rgba(10, 14, 26, 0.45);
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px;
  height: 1.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.menu-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  :root { --nav-h: 68px; --nav-offset: 84px; }
  .site-nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .btn-nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .btn-nav-cta { display: inline-flex; }
  .site-nav-menu {
    position: absolute; top: calc(100% + 4px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--stroke-2);
    background: rgba(5, 6, 15, 0.97);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .menu-open .site-nav-menu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.3s, transform 0.35s var(--ease);
  }
  .site-nav.menu-open { background: rgba(10, 14, 26, 0.92); border-bottom-color: var(--stroke); }
  .site-nav-links { flex-direction: column; align-items: stretch; gap: 2px; padding: 0; border: 0; background: none; }
  .site-nav-links a { padding: 13px 14px; font-size: 17px; border-radius: 12px; }
  .site-nav-menu-cta { display: inline-flex; }
}
@media (max-width: 400px) {
  .brand-name { font-size: 15.5px; }
  .brand-mark { width: 22px; height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + clamp(36px, 7vh, 88px)) clamp(80px, 11vh, 128px);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-on-dark-rgb), 0.3);
  background: rgba(10, 14, 26, 0.38);
  font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero-lead {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 34em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.hero-body {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 44em;
  text-wrap: pretty;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: clamp(26px, 3.2vw, 38px); }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 8px;
  font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0.02em;
  color: var(--ink-3);
}
.hero-meta li { display: inline-flex; align-items: center; }
.hero-meta li + li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  margin-inline: 16px;
  background: rgba(var(--accent-on-dark-rgb), 0.6);
}
@media (max-width: 640px) {
  .hero-kicker { padding: 7px 13px; font-size: 10.5px; letter-spacing: 0.12em; text-align: left; }
  .hero-meta { flex-direction: column; align-items: center; gap: 6px; }
  .hero-meta li + li::before { display: none; }
}
.hero-tagline {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 26em;
  text-wrap: balance;
  margin-bottom: 18px;
}
.hero-course .hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 44em; margin-bottom: clamp(26px, 3vw, 36px); }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 15px; color: var(--ink-2); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks svg { color: var(--accent-on-dark); }

.course-switch {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(10, 14, 26, 0.42);
  margin-bottom: 26px;
}
.course-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  transition: color 0.25s, background-color 0.25s;
}
.course-switch a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.course-switch a.is-active { background: var(--primary); color: var(--on-primary); }

/* Séquence d'ouverture du hero (CSS pur : visible même sans JS) */
[data-hero] { animation: hero-in 1s var(--ease) both; animation-delay: calc(120ms + var(--d, 0) * 110ms); }
@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: none; }
}
.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 26px;
  width: 26px; height: 42px; margin: 0 auto;
  display: flex; justify-content: center; padding-top: 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(244, 247, 251, 0.35);
  animation: hero-in 1s var(--ease) 1.3s both;
}
.scroll-cue span {
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--primary);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}
@media (max-height: 700px), (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Apparition des sections au défilement ----------
   Masquées seulement quand le JS tourne (classe .js sur <html>). */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition-property: opacity, transform, translate, border-color, background-color, box-shadow;
  transition-duration: 0.95s, 0.95s, 0.45s, 0.35s, 0.35s, 0.35s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s, 0s, 0s;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Accueil : deux programmes ---------- */
.programs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); }
@media (min-width: 1180px) { .programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.program {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 22px;
  padding: clamp(34px, 4vw, 56px) clamp(20px, 3.2vw, 44px) clamp(30px, 3.6vw, 48px);
}
.program-ai.lift:hover { border-color: rgba(var(--violet-rgb), 0.4); }
.program-finance.lift:hover { border-color: rgba(var(--teal-rgb), 0.4); }
.program-glow {
  position: absolute; top: -140px; left: 50%; z-index: -1;
  width: 460px; height: 280px; margin-left: -230px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--violet-rgb), 0.55), transparent);
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}
.program-finance .program-glow, .offer .program-glow { background: radial-gradient(closest-side, rgba(var(--teal-rgb), 0.6), transparent); }
@keyframes breathe {
  from { opacity: 0.22; transform: scale(0.92); }
  to   { opacity: 0.42; transform: scale(1.06); }
}
.program-top { display: flex; align-items: center; gap: 14px; }
.program-index {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: 32px; line-height: 1;
  color: var(--accent-on-dark);
}
.program-ai .program-index { color: var(--violet); }
.program-finance .program-index { color: var(--cyan); }
.program-title { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.04; letter-spacing: -0.02em; }
.program-lead { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.program-chips { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chips-label { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.program-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
@media (min-width: 620px) { .program-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background-color 0.3s, translate 0.4s var(--ease);
}
.step:hover { border-color: rgba(var(--accent-on-dark-rgb), 0.38); background: rgba(255, 255, 255, 0.05); translate: 0 -2px; }
.program-ai .step:hover { border-color: rgba(var(--violet-rgb), 0.42); }
.program-finance .step:hover { border-color: rgba(var(--teal-rgb), 0.42); }
.step-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-dark); }
.program-ai .step-tag { color: var(--violet); }
.program-finance .step-tag { color: var(--cyan); }
.step-title { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 20px; line-height: 1.2; color: var(--ink); }
.step-body { font-size: 15px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.program-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border-block: 1px solid var(--stroke);
}
.fact { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; }
.fact:nth-child(even) { border-left: 1px solid var(--stroke); }
.fact:nth-child(n+3) { border-top: 1px solid var(--stroke); }
@media (min-width: 620px) {
  .program-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact:nth-child(n+3) { border-top: 0; }
  .fact + .fact { border-left: 1px solid var(--stroke); }
}
.fact dt { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.program-note { font-size: 13.5px; font-style: normal; color: var(--ink-3); margin-top: -8px; }
.program-cta { margin-top: auto; }

/* ---------- Accueil : tracks IA ---------- */
.tracks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .tracks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.track {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  padding: 30px 26px 28px;
}
.track-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.track-vendor { font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.track-title { font-size: clamp(36px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.02em; margin-top: 6px; }
.track-body { font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.track-tagline { font-size: 14px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.track-prices { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: auto; border-block: 1px solid var(--stroke); }
.track-price { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; }
.track-price + .track-price { border-left: 1px solid var(--stroke); }
.track-price strong { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 26px; line-height: 1.1; }
.track-price span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.track-meta { font-size: 14px; color: var(--ink-3); }
.track-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.track-actions .text-link { font-size: 14.5px; }

.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.feature-icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  color: var(--accent-on-dark);
  border: 1px solid rgba(var(--accent-on-dark-rgb), 0.35);
  background: rgba(var(--accent-on-dark-rgb), 0.07);
  margin-bottom: 4px;
}
.feature h3 { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 22px; line-height: 1.2; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--ink-3); max-width: 24em; }

/* ---------- Accueil : offre finance (centrée) ---------- */
.offer {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px;
  padding: clamp(36px, 4.6vw, 60px) clamp(20px, 4vw, 56px);
}
.offer.lift:hover, .offer:hover { border-color: rgba(var(--teal-rgb), 0.4); }
.offer-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.offer-title { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
.offer-body { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.timeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-block: 10px 4px;
}
.timeline::before {
  content: "";
  position: absolute; top: 20px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--teal-rgb), 0.8), rgba(var(--accent-on-dark-rgb), 0.5));
  transform-origin: left;
}
.js [data-reveal] .timeline::before { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.35s; }
.js [data-reveal].is-in .timeline::before { transform: none; }
.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-inline: 6px; }
.tl-dot {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--on-primary);
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(var(--teal-rgb), 0.14);
}
.js [data-reveal] .tl-dot { transform: scale(0.4); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; }
.js [data-reveal].is-in .tl-dot { transform: none; opacity: 1; }
.js [data-reveal].is-in .tl-step:nth-child(2) .tl-dot { transition-delay: 0.35s; }
.js [data-reveal].is-in .tl-step:nth-child(3) .tl-dot { transition-delay: 0.7s; }
.js [data-reveal].is-in .tl-step:nth-child(4) .tl-dot { transition-delay: 1.05s; }
.tl-label { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 13em; }
@media (max-width: 639px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .timeline::before { display: none; }
}
.offer-prices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.price-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 132px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.price-chip-featured { border-color: rgba(var(--teal-rgb), 0.55); background: rgba(var(--teal-rgb), 0.08); }
.price-chip strong { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: 24px; line-height: 1.15; }
.price-chip span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.offer-meta { font-size: 14.5px; color: var(--ink-3); }

/* ---------- Accueil : lettre ---------- */
.lettre-panel {
  position: relative;
  max-width: 940px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}
.lettre-glow {
  position: absolute; left: -80px; top: 10%;
  width: 380px; height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.lettre-form { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 560px; margin-top: 8px; }
@media (min-width: 640px) {
  .lettre-form { flex-direction: row; align-items: stretch; }
  .lettre-form .field-wide { flex: 1; }
}
.field {
  width: 100%; min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke-2);
  background: rgba(8, 9, 10, 0.55);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field::placeholder { color: rgba(244, 247, 251, 0.5); }
.field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--accent-on-dark-rgb), 0.18); }
.lettre-note { font-family: var(--font-body); font-style: normal; font-size: 11.5px; color: var(--ink-4); }
.notify-ok { color: var(--accent-on-dark); font-weight: 700; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Page formation ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 14px 26px; }
.stat-value {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: clamp(52px, 6vw, 86px); line-height: 0.9;
  color: var(--accent-on-dark);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.why-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.why-item {
  padding-top: 24px;
  border-top: 1px solid rgba(var(--accent-on-dark-rgb), 0.35);
  font-size: 18px; line-height: 1.7; text-align: center;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cards-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 700px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 34px 26px 32px; }
.skill-num {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: 46px; line-height: 1;
  color: rgba(var(--accent-on-dark-rgb), 0.45);
  transition: color 0.4s;
}
.skill:hover .skill-num { color: var(--accent-on-dark); }
.skill-title { font-size: 24px; line-height: 1.2; }
.skill p { font-size: 16px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.programme-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .programme-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.programme-intro p {
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
  font-size: 17.5px; line-height: 1.7; text-align: center;
  color: var(--ink-2);
  text-wrap: pretty;
}
.day-tabs { display: grid; grid-template-columns: repeat(var(--days, 2), minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 719px) { .day-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(10, 14, 26, 0.4);
  color: var(--ink-3);
  text-align: center;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.day-tab:hover { border-color: var(--stroke-2); color: var(--ink); }
.day-tab[aria-selected="true"] {
  border-color: rgba(var(--accent-on-dark-rgb), 0.6);
  background: rgba(var(--accent-on-dark-rgb), 0.1);
  color: var(--ink);
}
.day-tab-num { font-family: var(--font-display); font-style: normal; font-weight: 600; font-size: 30px; line-height: 1; color: var(--accent-on-dark); }
.day-tab-label { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.day-panels { padding: 6px clamp(18px, 3vw, 36px); }
.slot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--stroke); }
.slot:last-child { border-bottom: 0; }
@media (min-width: 800px) {
  .slot { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px; align-items: baseline; }
}
.slot-time { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }
.slot-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.slot-detail { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.day-panel.is-entering .slot { animation: slot-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes slot-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

.cards-4 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.persona { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 22px 28px; }
.persona-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  color: var(--accent-on-dark);
  background: rgba(var(--accent-on-dark-rgb), 0.08);
  border: 1px solid rgba(var(--accent-on-dark-rgb), 0.26);
  margin-bottom: 4px;
}
.persona-title { font-size: 21px; line-height: 1.2; }
.persona p { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); text-wrap: pretty; }
.footnote {
  max-width: 40em; margin: clamp(32px, 4vw, 48px) auto 0;
  text-align: center;
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5;
  color: var(--ink-2);
}

/* Tarifs : cartes en verre sur le même fond que le reste de la page */
.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 28px 30px; }
.tier-featured {
  border-color: rgba(var(--accent-on-dark-rgb), 0.55);
  background: rgba(10, 16, 64, 0.52);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-on-dark-rgb), 0.12), 0 40px 90px -44px rgba(var(--accent-on-dark-rgb), 0.4);
}
@media (min-width: 960px) {
  .tier-featured { translate: 0 -14px; }
  .tier-featured.lift:hover { translate: 0 -18px; }
}
.tier-badge {
  display: inline-flex;
  padding: 6px 14px; margin-bottom: 16px;
  border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.tier-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.tier-featured .tier-kicker { color: var(--accent-on-dark); }
.tier-name { font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
.tier-blurb { font-size: 15px; line-height: 1.55; color: var(--ink-3); max-width: 22em; }
.tier-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.tier-amount {
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  font-size: 66px; line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.tier-amount-text { font-size: 46px; }
.tier-featured .tier-amount { color: var(--accent-on-dark); }
.tier-currency { font-size: 24px; color: var(--ink-2); }
.tier-note { font-size: 14px; color: var(--ink-3); }
.tier-strike { margin-top: 4px; font-size: 13.5px; color: var(--ink-4); text-decoration: line-through; }
.tier-sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-4); }
.tier-features { flex: 1; display: flex; flex-direction: column; gap: 11px; width: 100%; margin: 26px 0 28px; padding-top: 24px; border-top: 1px solid var(--stroke); text-align: left; }
.tier-features li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tier-features svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-on-dark); }
.tier-features li.is-off { color: var(--ink-4); }
.tier-features li.is-off svg { color: var(--ink-4); }
.assurances {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  max-width: 1000px; margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 26px clamp(20px, 3vw, 36px);
}
@media (min-width: 800px) { .assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.assurance { display: flex; align-items: flex-start; gap: 14px; }
.assurance svg { flex-shrink: 0; color: var(--accent-on-dark); }
.assurance strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.assurance span { font-size: 14.5px; color: var(--ink-3); }

/* FAQ */
.faq-list { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--glass);
  transition: border-color 0.3s, background-color 0.3s;
}
.faq-item:hover { border-color: var(--stroke-2); }
.faq-item.open { border-color: rgba(var(--accent-on-dark-rgb), 0.42); background: var(--glass-strong); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-display); font-weight: 600; font-style: normal;
  font-size: clamp(18px, 1.6vw, 21px); line-height: 1.35;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.faq-icon {
  position: relative; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--stroke-2);
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: var(--primary);
  transition: transform 0.45s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { transform: rotate(180deg); border-color: var(--primary); background: rgba(var(--accent-on-dark-rgb), 0.12); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-a-inner { overflow: hidden; }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-a-inner { visibility: hidden; transition: visibility 0s linear 0.5s; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; }
.js .faq-item.open .faq-a-inner { visibility: visible; transition-delay: 0s; }
.faq-a p { padding: 0 24px 24px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }

/* Dernier appel */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.final-sub {
  max-width: 36em;
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5;
  color: var(--ink-2);
}
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; margin-top: 8px; }

/* CTA collant mobile */
.mobile-sticky-cta { display: none; }
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed; left: 12px; right: 12px; z-index: 45;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 10px 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--stroke-2);
    background: rgba(10, 14, 26, 0.88);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
    transform: translateY(160%);
    transition: transform 0.5s var(--ease);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .mobile-sticky-cta { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  }
  .mobile-sticky-cta.is-visible, html:not(.js) .mobile-sticky-cta { transform: none; }
  .page-course { padding-bottom: 88px; }
}
.mobile-sticky-price { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-sticky-price span { font-size: 12px; color: var(--ink-3); }
.mobile-sticky-price strong { font-family: var(--font-display); font-weight: 700; font-style: normal; font-size: 24px; }
.mobile-sticky-price small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-3); }

/* ---------- Pages légales ---------- */
.legal-hero { padding-block: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) clamp(24px, 3vw, 40px); }
.legal-hero .h1 { margin-bottom: 0; }
.legal-section { padding-bottom: clamp(80px, 10vw, 128px); }
.legal-panel { max-width: 880px; margin: 0 auto; padding: clamp(28px, 4.4vw, 56px); }
.legal-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-style: normal; line-height: 1.25; margin: 2.5rem 0 1rem; color: var(--ink); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; color: var(--ink-2); }
.legal-content li { margin-bottom: 0.4rem; line-height: 1.65; }
.legal-content a { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding-block: 52px 28px;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0), rgba(5, 6, 15, 0.72));
}
.site-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 36px; }
@media (min-width: 800px) { .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer-brand .brand-name { font-size: 18px; }
.site-footer-blurb { margin-top: 16px; max-width: 360px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.footer-title { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(var(--accent-on-dark-rgb), 0.8); margin-bottom: 14px; }
.site-footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer-col a { font-size: 14.5px; color: var(--ink-3); transition: color 0.25s; }
.site-footer-col a:hover { color: var(--cyan); }
.site-footer-col .footer-email { font-family: var(--font-mono); font-size: 13px; }
.site-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px;
  background: linear-gradient(var(--stroke), var(--stroke)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  font-size: 13px; color: var(--ink-4);
}
.site-footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer-legal a { transition: color 0.25s; }
.site-footer-legal a:hover { color: var(--cyan); }

/* ---------- Modales (paiement, confirmation) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 15, 0.72);
  animation: fade-in 0.3s ease both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal-backdrop { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.modal {
  position: relative;
  width: 100%; max-width: 540px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-on-dark-rgb), 0.3);
  background: rgba(10, 14, 26, 0.94);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
  animation: modal-up 0.5s var(--ease) both;
}
.modal-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  animation: pop-in 0.6s var(--ease) 0.15s both;
}
.modal-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 10px; }
.modal-title { font-family: var(--font-display); font-weight: 600; font-style: normal; font-size: clamp(26px, 4vw, 34px); line-height: 1.12; margin-bottom: 14px; }
.modal-body { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 22px; }
.modal-note {
  margin-bottom: 24px; padding: 14px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14.5px; line-height: 1.6; text-align: left;
  color: var(--ink-2);
}
.modal-note a { color: var(--accent-on-dark); text-decoration: underline; text-underline-offset: 3px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-up { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  .site-bg img { animation: none; will-change: auto; width: 100%; height: 100%; margin: 0; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal] .underline-brand { background-size: 100% 0.07em; }
  .live-dot::after { display: none; }
}
