/* ============================================================
   Landing Page — Formation AI Act × FormaVerse
   Theme tokens: dark-first, with light-mode override
   ============================================================ */

:root {
  --page-bg: #05070B;
  --page-bg-2: #0B0E14;
  --surface: #0F1320;
  --surface-2: #151A2B;
  --surface-3: #1B2238;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --fg: #F7F8FA;
  --fg-muted: #9AA1B2;
  --fg-subtle: #6B7280;
  --grid-line: rgba(139, 92, 246, 0.06);
  --glow: 0 0 80px rgba(139, 92, 246, 0.35);
  --halo-violet: radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,0.35) 0%, transparent 70%);
  --halo-blue:   radial-gradient(60% 60% at 100% 50%, rgba(59,130,246,0.25) 0%, transparent 70%);
}

[data-theme="light"] {
  --page-bg: #FFFFFF;
  --page-bg-2: #F7F8FA;
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #EEF0F4;
  --border: rgba(11,14,20,0.08);
  --border-strong: rgba(11,14,20,0.16);
  --fg: #0B0E14;
  --fg-muted: #4B5360;
  --fg-subtle: #6B7280;
  --grid-line: rgba(139, 92, 246, 0.08);
  --glow: 0 0 80px rgba(139, 92, 246, 0.18);
  --halo-violet: radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 70%);
  --halo-blue:   radial-gradient(60% 60% at 100% 50%, rgba(59,130,246,0.12) 0%, transparent 70%);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* aucun scroll horizontal au niveau du document */
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--fg);
  font-family: var(--fv-font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; }

/* ============ Layout ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ============ Background grid ============ */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

/* ============ Top bar / countdown ============ */
.alert-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #8B5CF6 0%, #3B82F6 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  text-align: center;
  letter-spacing: 0.01em;
  display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.alert-bar strong { font-weight: 700; }
.alert-bar .countdown-mini {
  font-family: var(--fv-font-mono);
  font-size: 12px;
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 28px; width: auto; }
.nav-logo .nav-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms;
}
.nav-logo .nav-sub:hover {
  color: var(--fv-violet);
}
.nav-logo .nav-sub::after {
  content: " ↗";
  font-size: 9px;
  opacity: 0.5;
  margin-left: 2px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms;
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* Burger mobile */
.nav-burger {
  display: none;
  appearance: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 200ms;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 240ms var(--fv-ease-emphatic), opacity 200ms;
}
.nav-burger:hover { border-color: var(--fv-violet); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,7,11,0.6);
  backdrop-filter: blur(8px);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms;
}
.nav-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86%, 340px);
  background: linear-gradient(160deg, #0B0F1F 0%, #050709 80%);
  border-left: 1px solid rgba(139,92,246,0.3);
  box-shadow: -20px 0 60px -16px rgba(139,92,246,0.4);
  transform: translateX(100%);
  transition: transform 320ms var(--fv-ease-emphatic);
  z-index: 200;
  padding: 0;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer-title {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.nav-drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 180ms;
}
.nav-drawer-close:hover { border-color: var(--fv-violet); transform: rotate(90deg); }
.nav-drawer-links {
  flex: 1 1 auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.nav-drawer-links a {
  padding: 14px 4px;
  font-family: var(--fv-font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 180ms, padding-left 180ms;
}
.nav-drawer-links a:hover {
  color: var(--fv-violet-soft);
  padding-left: 10px;
}
.nav-drawer-cta {
  flex-shrink: 0;
  margin: 0 24px;
  margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: auto;
  justify-content: center;
  padding: 16px 24px !important;
}

body.nav-drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  .nav-logo .nav-sub { display: none; }
  .nav-actions .nav-cta-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  /* Theme toggle conservé sur mobile */
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-family: var(--fv-font-body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms var(--fv-ease-standard), box-shadow 200ms, background 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--fv-gradient);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(139,92,246,0.5);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 600ms var(--fv-ease-standard);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { box-shadow: 0 18px 48px -12px rgba(139,92,246,0.7); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--fv-violet); background: rgba(139,92,246,0.08); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ============ Theme toggle ============ */
.theme-toggle {
  display: inline-flex; align-items: center;
  width: 52px; height: 30px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  transition: background 200ms;
}
.theme-toggle .knob {
  width: 24px; height: 24px;
  background: var(--fv-gradient);
  border-radius: 50%;
  transition: transform 220ms var(--fv-ease-standard);
  display: grid; place-items: center;
  color: #fff;
  font-size: 12px;
}
[data-theme="light"] .theme-toggle .knob { transform: translateX(22px); }

/* ============ Typography helpers ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fv-violet);
  padding: 6px 12px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fv-violet);
  box-shadow: 0 0 12px var(--fv-violet);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.h-display {
  font-family: var(--fv-font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}
.h-display.uppercase { text-transform: uppercase; }
.h-2 {
  font-family: var(--fv-font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-3 {
  font-family: var(--fv-font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 60ch;
}
.gradient-text {
  background: linear-gradient(90deg, #C4B5FD 0%, #8B5CF6 40%, #EC4FBC 70%, #3B82F6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--halo-violet), var(--halo-blue);
  pointer-events: none;
  z-index: 0;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px;
  font-size: 13px; color: var(--fg-muted);
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; }
.hero-meta-item svg { color: var(--fv-violet); }

/* ============ Demo module card (hero right) ============ */
.demo-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(139,92,246,0.4), 0 0 0 1px rgba(139,92,246,0.1);
}
.demo-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fv-gradient);
}
.demo-card-header {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.demo-card-header .traffic-lights { display: flex; gap: 6px; }
.demo-card-header .traffic-lights span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3);
}
.demo-card-header .demo-title {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: var(--fv-font-mono);
  letter-spacing: 0.04em;
}
.demo-card-header .live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FF4B6E;
  font-weight: 700;
}
.demo-card-header .live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #FF4B6E;
  box-shadow: 0 0 8px #FF4B6E;
  animation: pulse 1.4s infinite;
}

.demo-stage {
  padding: 32px 28px 28px;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
}

/* AI orb + waveform */
.ai-orb-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 8px 0 18px;
}
.sophia-avatar {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--fv-gradient);
  padding: 3px;
  box-shadow: 0 0 60px rgba(139,92,246,0.5);
  flex-shrink: 0;
}
.sophia-avatar::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.4);
  animation: ring 2.4s ease-out infinite;
}
.sophia-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 8%;
  background: #0F1320;
  transition: opacity 300ms;
}
.sophia-name-tag {
  position: absolute;
  bottom: -6px; right: -8px;
  background: var(--fv-ink-900);
  border: 1px solid rgba(139,92,246,0.4);
  color: #fff;
  font-family: var(--fv-font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sophia-hero {
  position: absolute;
  right: -40px; bottom: 0;
  width: 360px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  filter: drop-shadow(0 20px 60px rgba(139,92,246,0.4));
}
@media (max-width: 1100px) { .sophia-hero { display: none; } }

.sophia-feature {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 180px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 12px 40px rgba(139,92,246,0.5));
}
@media (max-width: 720px) { .sophia-feature { width: 120px; right: 8px; bottom: 8px; opacity: 0.7; } }

/* FOMO — single-column dramatique, rouge → violet */
.fomo-center {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.fomo-center .eyebrow {
  color: #FCA5A5;
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.3);
}
.fomo-center .eyebrow .dot { background: #EF4444; box-shadow: 0 0 12px rgba(239,68,68,0.7); }
.fomo-center .h-2 { margin-top: 4px; }
.fomo-center .h-2 .gradient-text {
  background: linear-gradient(90deg, #EF4444 0%, #DC2626 40%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .fomo-center .eyebrow {
  color: #B91C1C;
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.25);
}
.ai-orb {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--fv-gradient);
  position: relative;
  display: none;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 60px rgba(139,92,246,0.6);
}
.ai-orb::before, .ai-orb::after {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.4);
  animation: ring 2.4s ease-out infinite;
}
.ai-orb::after { animation-delay: 1.2s; }
@keyframes ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.waveform {
  display: flex; align-items: center; gap: 3px;
  height: 32px;
}
.waveform span {
  width: 3px;
  background: var(--fv-violet);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 28px; opacity: 1; }
}

.ai-question {
  font-family: var(--fv-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  text-align: center;
  margin: 0 0 24px;
  min-height: 60px;
  letter-spacing: -0.01em;
}
.ai-transcript {
  font-size: 12px;
  color: var(--fg-subtle);
  font-family: var(--fv-font-mono);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.demo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.demo-option {
  padding: 14px 16px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 180ms var(--fv-ease-standard);
  display: flex; align-items: center; gap: 12px;
}
.demo-option:hover {
  border-color: var(--fv-violet);
  background: rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.demo-option .key {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--fv-font-mono);
  color: var(--fg-muted);
  flex-shrink: 0;
}
.demo-option.selected {
  border-color: var(--fv-violet);
  background: rgba(139,92,246,0.12);
}
.demo-option.selected .key { background: var(--fv-violet); color: #fff; border-color: var(--fv-violet); }

.demo-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--fg-muted);
}
.demo-progress-bar {
  flex: 1; max-width: 160px; height: 4px; background: var(--surface-3); border-radius: 999px; overflow: hidden;
  margin: 0 12px;
}
.demo-progress-bar > div {
  height: 100%; background: var(--fv-gradient);
  width: 20%;
  transition: width 400ms var(--fv-ease-standard);
}


/* ============ HERO PLAYER (le hero EST le module diagnostic) ============ */
.hero-player {
  position: relative;
  padding: 24px 0 32px;
  /* Le hero entier prend le fond sombre + glows. La section remplit la viewport
     (moins la hauteur de la nav) pour qu'il n'y ait jamais de scroll vertical
     sur step 0. dvh = dynamic viewport height (gère l'address bar iOS). */
  min-height: min(calc(100dvh - 100px), 880px);
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(139,92,246,0.28), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(59,130,246,0.18), transparent 70%),
    linear-gradient(160deg, #0B0F1F 0%, #050709 70%);
  isolation: isolate;
  display: flex;
  align-items: stretch;
}
.hero-player > .container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* (Silhouette SophIA en background du hero supprimée — n'apporte pas d'info sur step 0 et redondante sur step 1+) */
.hero-player .container { max-width: 1280px; position: relative; z-index: 1; }

/* Le player vit directement dans le hero — exit la card, plus de border, plus de bg, plus de box-shadow.
   Le card remplit le hero (via flex:1) qui lui-même remplit la viewport. */
.dx-card-hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 100%;
  flex: 1;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.dx-card-hero::before,
.dx-card-hero::after { display: none !important; }

/* ───────────────────────────────────────────────────────────
   MODE BARE : step 0, pas de "module SCORM", contenu nu sur le fond du hero
   ─────────────────────────────────────────────────────────── */
.dx-card.is-bare {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.dx-card.is-bare::before { display: none; }
.dx-card.is-bare::after { display: none; }
.dx-card.is-bare .dx-rail,
.dx-card.is-bare .dx-narration,
.dx-card.is-bare .dx-captions {
  display: none !important;
}
/* SophIA cachée (image + video) en mode bare — la silhouette du hero suffit */
.dx-card.is-bare .dx-side { display: none !important; }
.dx-card.is-bare .dx-card-body {
  grid-template-columns: 1fr !important;
  min-height: 0;
}
/* Le contenu de la slide hero prend toute la largeur, centré */
.dx-card.is-bare .dx-main {
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 60px);
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  text-align: center;
}
.dx-card.is-bare .dx-step-hero {
  align-items: center;
  text-align: center;
  /* Distribution homogène sur toute la hauteur du stage (3 groupes : intro / cta / visualizer) */
  flex: 1 1 auto;
  justify-content: space-around !important;
  gap: 0 !important;
  height: 100%;
}
/* Group intro = H1 + lead serrés ensemble (gap court à l'intérieur du groupe) */
.dx-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.8vw, 22px);
  text-align: center;
}
/* Stage en flex column pour que step-hero puisse stretch vertical */
.dx-card.is-bare .dx-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.dx-card.is-bare .dx-hero-title {
  max-width: 18ch;
  text-align: center;
}
.dx-card.is-bare .dx-hero-lead {
  max-width: 56ch;
  text-align: center;
}
.dx-card.is-bare .dx-cta-row {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dx-card.is-bare .dx-step-hero .dx-meta {
  text-align: center;
}
/* Les barres visualizer toujours visibles, centrées, comme un waveform d'ambiance */
.dx-card.is-bare .dx-hero-bars {
  display: flex !important;
  margin-top: clamp(8px, 1.5vw, 20px);
  height: clamp(48px, 6vw, 72px);
}

/* Slide 0 = contenu hero (H1 + lead + démarrer) — beaucoup d'air entre les blocs */
.dx-step-hero {
  justify-content: center;
  gap: 36px !important;
}
.dx-hero-title {
  margin: 0;
  font-family: var(--fv-font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}
.dx-hero-title em {
  font-style: normal;
  background: var(--fv-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dx-hero-lead {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  max-width: 52ch;
}
.dx-hero-lead strong { color: #fff; font-weight: 700; }
.dx-step-hero .dx-cta-row { margin-top: 16px; gap: 24px; }
.dx-step-hero .btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.dx-step-hero .btn-lg svg { width: 18px; height: 18px; }
.dx-step-hero .dx-meta { font-size: 13px; }
.dx-step-hero .dx-hero-lead { margin-bottom: 4px; }

/* Bouton recommencer dans le reveal */
.dx-restart {
  border-style: dashed !important;
}

/* Visualizer flourish dans la slide héro — caché par défaut, visible mobile */
.dx-hero-bars {
  display: none;
  align-items: flex-end; justify-content: center;
  gap: 8px;
  height: 72px;
  margin-top: 14px;
}
.dx-hero-bars span {
  display: inline-block;
  width: 7px;
  background: linear-gradient(180deg, #C4B5FD, #8B5CF6);
  border-radius: 3px;
  animation: dx-bar 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(139,92,246,0.5);
}
.dx-hero-bars span:nth-child(1){ animation-delay: 0s;  height: 18px; }
.dx-hero-bars span:nth-child(2){ animation-delay: .1s; height: 40px; }
.dx-hero-bars span:nth-child(3){ animation-delay: .2s; height: 58px; }
.dx-hero-bars span:nth-child(4){ animation-delay: .3s; height: 30px; }
.dx-hero-bars span:nth-child(5){ animation-delay: .4s; height: 72px; }
.dx-hero-bars span:nth-child(6){ animation-delay: .5s; height: 28px; }
.dx-hero-bars span:nth-child(7){ animation-delay: .6s; height: 50px; }
.dx-hero-bars span:nth-child(8){ animation-delay: .7s; height: 36px; }
.dx-hero-bars span:nth-child(9){ animation-delay: .8s; height: 18px; }

/* ============ DIAGNOSTIC AI ACT — Aurora SCORM look (slides intérieures) ============
   Layout : 2 colonnes (avatar gauche · slide droite), slides qui se remplacent.
   ================================================================== */
.dx-card {
  position: relative;
  height: 600px;
  max-height: 80vh;
  border-radius: 24px;
  background: linear-gradient(160deg, #0B0F1F 0%, #050709 70%);
  border: 1px solid rgba(139,92,246,0.25);
  box-shadow: 0 40px 80px -30px rgba(139,92,246,0.5), 0 0 0 1px rgba(139,92,246,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.dx-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(139,92,246,0.28), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(59,130,246,0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.dx-card * { position: relative; }

/* (Pill SCORM-style supprimée — le hero parle de lui-même sans barre de titre) */

/* Body : grid 2 cols (colonne SophIA agrandie pour qu'elle respire).
   Sans pill au-dessus on ajoute un padding-top pour que le contenu respire. */
.dx-card-body {
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 0;
  padding-top: clamp(20px, 3vh, 36px);
  gap: 0 clamp(20px, 3vw, 40px);
}

/* Colonne gauche — SophIA Aurora (centrée H + V) */
.dx-side {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px 8px;
  min-height: 0;
  gap: 10px;
}
.dx-side-glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: radial-gradient(60% 70% at 50% 80%, rgba(139,92,246,0.45), transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.dx-sophia {
  position: relative; z-index: 1;
  max-width: 100%;
  max-height: 360px;
  width: auto; height: auto;
  filter: drop-shadow(0 18px 40px rgba(139,92,246,0.55));
  transition: transform 360ms var(--fv-ease-emphatic), opacity 200ms;
}
.dx-sophia.dx-sophia-pulse { transform: translateY(-2px) scale(1.015); }

/* Video qui remplace l'image sur step 1 (intro narrée par SophIA) */
.dx-sophia-video {
  display: none;
  position: relative; z-index: 1;
  max-width: 100%;
  max-height: 360px;
  width: auto; height: auto;
  border-radius: 14px;
  /* On supprime la drop-shadow violette (le fond du video étant déjà sombre, l'effet glow ne fonctionnerait pas — on conserve juste un soft glow autour) */
  box-shadow: 0 18px 40px -12px rgba(139,92,246,0.45);
  /* Mask radial pour fade les bords dans le fond de la card (pas de seam visible) */
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 50% 50%, #000 65%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 95% at 50% 50%, #000 65%, transparent 100%);
}
.dx-side.has-video .dx-sophia { display: none; }
.dx-side.has-video .dx-sophia-video { display: block; }
.dx-side-tag {
  position: relative; z-index: 2;
  margin-top: 8px;
  font-family: var(--fv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(11,14,20,0.7);
  border: 1px solid rgba(139,92,246,0.45);
  border-radius: 999px;
  padding: 3px 10px;
  backdrop-filter: blur(8px);
}
.dx-side-bars {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 3px;
  height: 18px; margin-top: 8px;
}
.dx-side-bars span {
  display: inline-block;
  width: 3px;
  background: linear-gradient(180deg, #C4B5FD, #8B5CF6);
  border-radius: 2px;
  animation: dx-bar 1.4s ease-in-out infinite;
}
.dx-side-bars span:nth-child(1){ animation-delay: 0s; height: 6px; }
.dx-side-bars span:nth-child(2){ animation-delay: .1s; height: 12px; }
.dx-side-bars span:nth-child(3){ animation-delay: .2s; height: 16px; }
.dx-side-bars span:nth-child(4){ animation-delay: .3s; height: 10px; }
.dx-side-bars span:nth-child(5){ animation-delay: .4s; height: 18px; }
.dx-side-bars span:nth-child(6){ animation-delay: .5s; height: 8px; }
.dx-side-bars span:nth-child(7){ animation-delay: .6s; height: 14px; }
.dx-side-bars span:nth-child(8){ animation-delay: .7s; height: 11px; }
.dx-side-bars span:nth-child(9){ animation-delay: .8s; height: 6px; }
@keyframes dx-bar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

/* Colonne droite — slide unique */
.dx-main {
  display: flex; flex-direction: column;
  padding: 24px 30px 18px;
  min-height: 0;
  overflow: hidden;
}
.dx-narration {
  margin: 0 0 18px;
  font-family: var(--fv-font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  font-weight: 400;
  border-left: 3px solid rgba(139,92,246,0.55);
  padding-left: 14px;
  min-height: 44px;
}

.dx-stage {
  flex: 1;
  position: relative;
  display: flex;
  min-height: 0;
}
.dx-step {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}
.dx-step.is-active { display: flex; animation: dx-slide-in 360ms var(--fv-ease-emphatic); }
@keyframes dx-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.dx-slide-title {
  margin: 0;
  font-family: var(--fv-font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  text-transform: none;
}
.dx-slide-title em {
  font-style: normal;
  background: var(--fv-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dx-slide-title .gradient-text { font-weight: 800; }

.dx-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.dx-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.dx-bullets li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fv-gradient);
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
}
.dx-bullets li strong { color: #fff; font-weight: 600; }

.dx-cta-row {
  margin-top: auto;
  padding-top: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.dx-meta {
  font-family: var(--fv-font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Option cards (steps 2/3/4) — grid 2 cols, icône + label + check */
.dx-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-content: flex-start;
}
.dx-chip {
  appearance: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #fff;
  font-family: var(--fv-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition: transform 240ms var(--fv-ease-emphatic),
              border-color 200ms,
              background 200ms,
              box-shadow 240ms;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.dx-chip::before {
  /* Shimmer reflet au hover */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--fv-ease-emphatic);
  pointer-events: none;
}
.dx-chip:hover {
  border-color: rgba(139,92,246,0.55);
  background: rgba(139,92,246,0.10);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(139,92,246,0.45);
}
.dx-chip:hover::before { transform: translateX(120%); }
.dx-chip.is-selected {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(59,130,246,0.10));
  border-color: var(--fv-violet);
  box-shadow: 0 10px 26px -8px rgba(139,92,246,0.55);
}
.dx-chip-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(139,92,246,0.15);
  color: var(--fv-violet-soft);
  transition: background 240ms, color 240ms, transform 240ms;
}
.dx-chip:hover .dx-chip-icon { transform: rotate(-4deg) scale(1.05); }
.dx-chip.is-selected .dx-chip-icon {
  background: var(--fv-gradient);
  color: #fff;
}
.dx-chip-label {
  flex: 1;
  min-width: 0;
}
.dx-chip-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fv-gradient);
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  transition: all 280ms var(--fv-ease-emphatic);
}
.dx-chip.is-selected .dx-chip-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Variantes sémantiques pour la step Maturité */
.dx-chip[data-val="audit"] .dx-chip-icon { background: rgba(22,163,74,0.18); color: #4ADE80; }
.dx-chip[data-val="cartographie"] .dx-chip-icon { background: rgba(59,130,246,0.18); color: #93C5FD; }
.dx-chip[data-val="decouverte"] .dx-chip-icon { background: rgba(245,158,11,0.18); color: #FCD9A0; }
.dx-chip[data-val="rien"] .dx-chip-icon { background: rgba(220,38,38,0.18); color: #FF6B8A; }
.dx-chip[data-val="rien"]:hover { border-color: rgba(220,38,38,0.5); }

/* Stagger entrance — items apparaissent en cascade quand la step devient active */
.dx-step.is-active .dx-chip,
.dx-step.is-active .dx-feature {
  animation: dx-card-in 480ms var(--fv-ease-emphatic) backwards;
}
.dx-step.is-active .dx-chip:nth-child(1),
.dx-step.is-active .dx-feature:nth-child(1) { animation-delay: 60ms; }
.dx-step.is-active .dx-chip:nth-child(2),
.dx-step.is-active .dx-feature:nth-child(2) { animation-delay: 120ms; }
.dx-step.is-active .dx-chip:nth-child(3),
.dx-step.is-active .dx-feature:nth-child(3) { animation-delay: 180ms; }
.dx-step.is-active .dx-chip:nth-child(4) { animation-delay: 240ms; }
.dx-step.is-active .dx-chip:nth-child(5) { animation-delay: 300ms; }
.dx-step.is-active .dx-chip:nth-child(6) { animation-delay: 360ms; }
.dx-step.is-active .dx-chip:nth-child(7) { animation-delay: 420ms; }

@keyframes dx-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Feature grid (step intro) */
.dx-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.dx-feature {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.dx-feature::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--fv-gradient);
  opacity: 0.7;
}
.dx-feature-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(139,92,246,0.18);
  color: var(--fv-violet-soft);
}
.dx-feature-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.dx-feature-title {
  font-family: var(--fv-font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.dx-feature-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .dx-chips { grid-template-columns: 1fr; gap: 8px; }
  .dx-chip { padding: 11px 12px; font-size: 13.5px; }
  .dx-chip-icon { width: 28px; height: 28px; }
  .dx-chip-icon svg { width: 14px; height: 14px; }
  .dx-feature { padding: 10px 12px 10px 16px; }
  .dx-feature-icon { width: 32px; height: 32px; }
  .dx-feature-title { font-size: 14px; }
  .dx-feature-sub { font-size: 12px; }
}

/* Mini form (étape 4 contexte) */
.dx-form-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; min-width: 0;
}
.dx-select {
  appearance: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--fv-font-body);
  font-size: 15px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.dx-select:focus { outline: none; border-color: var(--fv-violet); box-shadow: var(--fv-focus-ring); }
.dx-select option { background: #0B0F1F; color: #fff; }

/* Compact form (étape 5) */
.dx-form-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.dx-form-compact input {
  appearance: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--fv-font-body);
  font-size: 15px;
  transition: border-color 200ms;
  /* Critique : laisse l'input rétrécir avec sa cellule grid (sinon il garde ~200px de min-width par défaut) */
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.dx-form-compact input::placeholder { color: rgba(255,255,255,0.4); font-size: 14px; }
.dx-form-compact input:focus { outline: none; border-color: var(--fv-violet); box-shadow: var(--fv-focus-ring); }
.dx-form-submit {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.dx-teaser-msg {
  margin: 0;
  padding: 12px 16px;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 12px;
  font-size: 14px;
  color: #FFC4D0;
  line-height: 1.5;
}
.dx-teaser-msg strong { color: #FF6B8A; font-weight: 700; }

/* Reveal */
.dx-reveal-grid {
  display: grid; grid-template-columns: 120px 1fr; gap: 22px;
  align-items: center;
}
.dx-reveal-ring { position: relative; width: 120px; height: 120px; }
.dx-reveal-ring svg { width: 100%; height: 100%; }
.dx-reveal-ring-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--fv-font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--fv-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.dx-reveal-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dx-reveal-info .dx-slide-title {
  font-size: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dx-reveal-info .dx-slide-title span { color: var(--fv-violet-soft); }
.dx-reveal-amount { display: flex; flex-direction: column; gap: 2px; }
.dx-reveal-amount-big {
  font-family: var(--fv-font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.0;
  background: linear-gradient(180deg, #FF6B6B 0%, #DC2626 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.dx-reveal-amount-sub {
  font-family: var(--fv-font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.dx-reveal-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.dx-reveal-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.dx-reveal-list li svg { width: 16px; height: 16px; }
.dx-reveal-list li svg { flex-shrink: 0; margin-top: 1px; }
.dx-reveal-list li strong { color: #fff; font-weight: 700; }
.dx-reveal-list li.is-warn svg { color: #FF6B8A; }
.dx-reveal-list li.is-info svg { color: var(--fv-violet); }
.dx-reveal-list li.is-good svg { color: #16A34A; }
/* Réassurance sous le gate (étape 6) */
.dx-gate-reassure {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.dx-gate-reassure svg { color: #34D399; flex-shrink: 0; }

/* ===== Bloc solution : la formation FormaVerse (étape 7) ===== */
.dx-solution {
  margin-top: 4px;
  padding: 14px 16px;
  background: linear-gradient(150deg, rgba(139,92,246,0.16) 0%, rgba(59,130,246,0.07) 100%);
  border: 1px solid rgba(139,92,246,0.32);
  border-radius: 14px;
}
.dx-solution-tag {
  display: inline-block;
  font-family: var(--fv-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C4B5FD;
  font-weight: 700;
  margin-bottom: 5px;
}
.dx-solution-title {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dx-solution-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}
@media (max-width: 720px) {
  .dx-solution { padding: 12px 14px; }
  .dx-solution-title { font-size: 14.5px; }
  .dx-solution-desc { font-size: 12.5px; }
}

/* ===== Bloc prise de RDV natif (étape 7) ===== */
.dx-book {
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(165deg, rgba(139,92,246,0.12) 0%, rgba(59,130,246,0.06) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dx-book-head { display: flex; flex-direction: column; gap: 3px; }
.dx-book-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.dx-book-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: var(--fv-font-mono);
}

/* Jours — rangée scrollable */
.dx-book-days {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.dx-book-days::-webkit-scrollbar { height: 3px; }
.dx-book-days::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 999px; }
.dx-book-day {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 60px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dx-book-day:hover { background: rgba(255,255,255,0.1); }
.dx-book-day.is-active {
  background: linear-gradient(135deg, rgba(139,92,246,0.35) 0%, rgba(59,130,246,0.25) 100%);
  border-color: var(--fv-violet);
}
.dx-book-day-dow {
  font-family: var(--fv-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.dx-book-day.is-active .dx-book-day-dow { color: rgba(255,255,255,0.85); }
.dx-book-day-num {
  font-family: var(--fv-font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.dx-book-day-mon {
  font-size: 9.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Créneaux horaires */
.dx-book-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.dx-book-slot {
  padding: 9px 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  color: #fff;
  font-family: var(--fv-font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.dx-book-slot:hover { background: rgba(255,255,255,0.1); border-color: rgba(139,92,246,0.5); }
.dx-book-slot.is-active {
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(139,92,246,0.7);
}
.dx-book-slots-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  padding: 14px 0;
}

.dx-book-confirm {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}
.dx-book-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.dx-book-callback {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: var(--fv-font-body);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.25);
  padding: 2px;
  transition: color 0.15s ease;
}
.dx-book-callback:hover { color: #fff; }

/* 3ᵉ porte de sortie : "Je préfère un échange par email" (sans appel) — tertiary, plus discrète encore. */
.dx-book-nocontact {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.48);
  font-family: var(--fv-font-body);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.18);
  padding: 2px;
  margin-top: -2px;
  transition: color 0.15s ease;
}
.dx-book-nocontact:hover { color: rgba(255,255,255,0.85); }
.dx-book-nocontact:disabled { opacity: 0.6; cursor: default; }

/* État confirmé (injecté en JS dans #dxBook) */
.dx-book-confirmed {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px;
}
.dx-book-confirmed-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(139,92,246,0.7);
}
.dx-book-confirmed-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.dx-book-confirmed-detail {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.dx-book-confirmed-detail strong { color: #fff; }

/* Footer reveal — liens discrets */
.dx-reveal-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dx-foot-link {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--fv-font-body);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  padding: 2px;
  transition: color 0.15s ease;
}
.dx-foot-link:hover { color: #fff; }
.dx-foot-sep { color: rgba(255,255,255,0.25); font-size: 12px; }

/* Étape 7 — scroll interne si le contenu dépasse */
.dx-step[data-step="7"].is-active {
  overflow-y: auto;
  max-height: 100%;
}

@media (max-width: 720px) {
  .dx-book { padding: 14px; gap: 10px; }
  .dx-book-title { font-size: 14px; }
  .dx-book-slots { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dx-book-slot { font-size: 12.5px; padding: 8px 3px; }
  .dx-book-day { min-width: 54px; padding: 7px 8px; }
}

/* Footer rail — bandeau dans le hero, plus de card autour */
.dx-rail {
  z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  margin-top: clamp(16px, 2vh, 28px);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}
.dx-back {
  appearance: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 180ms;
}
.dx-back svg { width: 16px; height: 16px; }
.dx-back:hover:not([disabled]) { color: #fff; border-color: var(--fv-violet); background: rgba(139,92,246,0.15); }
.dx-back[disabled] { opacity: 0.3; cursor: not-allowed; }

/* Sound toggle (rail) */
.dx-sound {
  appearance: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 180ms;
  position: relative;
}
.dx-sound:hover { color: #fff; border-color: var(--fv-violet); background: rgba(139,92,246,0.15); }
.dx-sound svg { position: absolute; transition: opacity 180ms; }
.dx-sound .dx-sound-off { opacity: 0; }
.dx-sound.is-muted .dx-sound-on { opacity: 0; }
.dx-sound.is-muted .dx-sound-off { opacity: 1; color: #FF6B8A; }
.dx-sound:not(.is-muted)::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 9px;
  border: 1px solid rgba(139,92,246,0.4);
  animation: dx-sound-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes dx-sound-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* CC (sous-titres) toggle */
.dx-cc {
  appearance: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 180ms;
}
.dx-cc:hover { color: #fff; border-color: var(--fv-violet); background: rgba(139,92,246,0.15); }
.dx-cc.is-off { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.08); }
.dx-cc.is-off::after {
  content: "";
  position: absolute;
  width: 22px; height: 1.5px;
  background: rgba(255,107,138,0.7);
  transform: rotate(-30deg);
  pointer-events: none;
}
.dx-cc { position: relative; }

/* Toast hint paysage mobile (injecté en JS, ne s'affiche jamais sur desktop / paysage) */
.fv-rotate-toast {
  position: fixed;
  left: 50%; bottom: 16px;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 14px;
  background: rgba(11,14,20,0.92);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 999px;
  color: #fff;
  font-family: var(--fv-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 240ms var(--fv-ease-emphatic), transform 240ms var(--fv-ease-emphatic);
  pointer-events: auto;
  max-width: calc(100vw - 32px);
}
.fv-rotate-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%);
}
.fv-rotate-toast-icon {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(139,92,246,0.2);
  color: var(--fv-violet-soft);
}
.fv-rotate-toast-text { white-space: nowrap; }
.fv-rotate-toast-close {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px 4px;
  border-radius: 999px;
  transition: color 180ms;
}
.fv-rotate-toast-close:hover { color: #fff; }

/* Captions en bas du player — élément de layout (pas overlay), réservé quand CC on.
   Les CTA des steps restent visibles car le slot captions est en dessous d'eux. */
.dx-captions {
  display: none;
  flex-shrink: 0;
  margin: 12px -2px 0;
  padding: 10px 16px;
  background: rgba(11,14,20,0.72);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  transition: opacity 220ms;
}
/* Slot visible uniquement quand CC est activé sur la card */
.dx-card.cc-on .dx-captions { display: flex; }
.dx-card.cc-on .dx-captions:empty::before {
  content: "♪";
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 18px;
}
@media (max-width: 720px) {
  .dx-captions { font-size: 13px; padding: 8px 12px; min-height: 36px; margin-top: 8px; }
}

/* Hint sous le bouton "Suivant" */
.dx-cta-row-end { margin-top: auto; padding-top: 8px; }
.dx-meta-hint {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  transition: opacity 240ms;
}
/* Étape contexte — bouton verrouillé tant qu'effectif + secteur non choisis */
.dx-go[disabled] { opacity: 0.4; cursor: not-allowed; }
#dxToRevealHint { display: block; text-align: center; margin-top: 10px; }
.dx-cta-row .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.dx-rail-step {
  font-family: var(--fv-font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  min-width: 96px;
}
.dx-rail-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dx-rail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16A34A 0%, #F59E0B 55%, #DC2626 100%);
  border-radius: 999px;
  transition: width 600ms var(--fv-ease-emphatic);
  box-shadow: 0 0 12px rgba(220,38,38,0.5);
}
.dx-rail-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; gap: 3px; }
.dx-rail-lbl {
  font-family: var(--fv-font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.dx-rail-val {
  font-family: var(--fv-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: color 240ms;
}

/* Floating gauge flag (apparaît brièvement quand un risque est détecté) */
.dx-gauge-flags {
  position: absolute;
  bottom: 60px; right: 16px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  pointer-events: none;
  max-width: 60%;
}
.dx-gauge-flag {
  font-family: var(--fv-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(220,38,38,0.18);
  color: #FFC4D0;
  border: 1px solid rgba(220,38,38,0.4);
  backdrop-filter: blur(8px);
  animation: dx-flag-pop 360ms var(--fv-ease-emphatic), dx-flag-fade 4s 1s forwards;
  white-space: nowrap;
}
.dx-gauge-flag.dx-flag-soft {
  background: rgba(245,158,11,0.18);
  color: #FCD9A0;
  border-color: rgba(245,158,11,0.4);
}
.dx-gauge-flag.dx-flag-info {
  background: rgba(59,130,246,0.18);
  color: #BFD9FF;
  border-color: rgba(59,130,246,0.4);
}
@keyframes dx-flag-pop {
  from { opacity: 0; transform: translateX(8px) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes dx-flag-fade {
  to { opacity: 0; transform: translateX(8px); }
}

/* Responsive */
@media (max-width: 720px) {
  .hero-player { padding: 12px 0 16px; min-height: min(calc(100dvh - 80px), 760px); }
  .hero-player .container { padding: 0 12px; }
  /* Hauteur auto pour remplir le hero (via flex:1), le hero remplit la viewport (dvh = iOS-safe) */
  .dx-card-hero { height: auto !important; min-height: 0 !important; }

  /* Mobile : on cache la colonne SophIA, le contenu prend toute la largeur. */
  .dx-card-body { grid-template-columns: 1fr; }
  .dx-side { display: none; }
  /* (Silhouette SophIA en background mobile supprimée — ne porte aucune info utile) */

  /* Visualizer 9 barres sous le CTA (slide hero uniquement) */
  .dx-hero-bars { display: flex; height: 56px; gap: 7px; margin-top: 10px; }
  .dx-hero-bars span { width: 6px; }

  /* Pill et rail compactés pour gagner de la hauteur */
  .dx-card-pill { padding: 9px 16px; }
  .dx-pill-eyebrow { font-size: 10px; letter-spacing: 0.06em; }
  .dx-rail { padding: 8px 14px; gap: 10px; }
  .dx-rail-step { display: none; }
  .dx-rail-track { height: 4px; }
  .dx-back { width: 30px; height: 30px; }

  /* Texte général */
  .dx-main { padding: 14px 18px 10px; position: relative; z-index: 1; min-height: 0; }
  /* Permet le scroll vertical à l'intérieur du stage si la step a beaucoup de contenu (ex: step 2 avec 7 chips). Le rail et la pill restent fixes. */
  .dx-stage {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,92,246,0.5) transparent;
  }
  .dx-stage::-webkit-scrollbar { width: 4px; }
  .dx-stage::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.5); border-radius: 4px; }
  .dx-narration { font-size: 13px; padding-left: 10px; margin-bottom: 10px; min-height: 0; }
  .dx-slide-title { font-size: 18px; line-height: 1.25; }
  .dx-hero-title { font-size: clamp(30px, 8vw, 42px); line-height: 1.05; max-width: 100%; }
  .dx-hero-lead { font-size: 15.5px; max-width: 100%; line-height: 1.5; }

  /* Chips plus aérés et plus lisibles */
  .dx-step { gap: 12px !important; justify-content: flex-start; }
  .dx-chips { gap: 7px; margin-top: 4px; }
  .dx-chip { padding: 10px 14px; font-size: 13.5px; }

  /* Hero step (slide 0) — air entre les blocs, pas d'aglutination */
  .dx-step-hero { gap: 22px !important; justify-content: flex-start; }
  .dx-step-hero .dx-cta-row { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 6px; padding-top: 0; }
  .dx-step-hero .btn-lg { padding: 14px 20px; font-size: 15px; width: 100%; justify-content: center; }
  .dx-step-hero .dx-meta { font-size: 12.5px; text-align: center; }
  .dx-step-hero .dx-hero-lead { margin-bottom: 0; }
  .dx-bullets { gap: 6px; }
  .dx-bullets li { font-size: 13.5px; padding-left: 18px; }

  /* Step 4 — selects 1 col */
  .dx-form-mini { grid-template-columns: 1fr; gap: 8px; }
  .dx-select { padding: 12px 14px; font-size: 14px; border-radius: 10px; }

  /* Step 5 — form COMPACT 2 cols pour ne pas scroller */
  .dx-step[data-step="5"] .dx-slide-title { font-size: 18px; }
  .dx-teaser-msg { padding: 9px 12px; font-size: 12.5px; line-height: 1.45; border-radius: 10px; }
  .dx-form-compact { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dx-form-compact input { padding: 11px 12px; font-size: 14px; border-radius: 10px; }
  .dx-form-compact input::placeholder { font-size: 13px; }
  .dx-form-submit { padding: 12px 20px !important; font-size: 14px !important; }

  /* Step 6 — reveal compact pour ne pas scroller */
  .dx-reveal-grid { grid-template-columns: 76px 1fr; gap: 14px; }
  .dx-reveal-ring { width: 76px; height: 76px; }
  .dx-reveal-ring-num { font-size: 24px; }
  .dx-reveal-info { gap: 2px; }
  .dx-reveal-info .dx-slide-title { font-size: 16px; }
  .dx-reveal-amount-big { font-size: 24px; }
  .dx-reveal-amount-sub { font-size: 10px; }
  .dx-reveal-list { gap: 4px; }
  .dx-reveal-list li { padding: 7px 10px; font-size: 12px; gap: 8px; line-height: 1.4; }
  .dx-reveal-list li svg { width: 13px; height: 13px; }
  .dx-reveal-actions { gap: 6px; }
  .dx-reveal-actions .btn { flex: 1 1 100%; min-width: 0; padding: 11px 16px !important; font-size: 13.5px !important; border-radius: 10px !important; }
  .dx-reveal-actions .btn svg { width: 14px; height: 14px; }
  .dx-reveal-actions .btn-ghost {
    background: rgba(11,14,20,0.55) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    backdrop-filter: blur(6px);
  }
}
@media (max-width: 480px) {
  /* Hauteur héritée de hero-player en flex (pas d'override ici, juste les autres ajustements) */
  .dx-hero-bars { height: 44px; gap: 6px; }
  .dx-hero-bars span { width: 5px; }
  .dx-hero-title { font-size: clamp(28px, 7.6vw, 36px); }
  /* Chips : on garde 2 colonnes (au lieu de 1) pour faire tenir les 7 outils sans scroll */
  .dx-chips { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dx-chip { padding: 8px 10px; font-size: 12.5px; gap: 8px; }
  .dx-chip-icon { width: 26px; height: 26px; }
  .dx-chip-icon svg { width: 13px; height: 13px; }
  .dx-chip-check { width: 18px; height: 18px; }
  .dx-form-compact input { padding: 10px 11px; font-size: 13.5px; }
  .dx-reveal-list li { font-size: 11.5px; padding: 6px 9px; }
}

/* ════════════════════════════════════════════════════════════════
   Diagnostic du hero — MODE PAYSAGE (téléphone à l'horizontale)
   Les breakpoints largeur (max-width:720px) ne couvrent pas le paysage :
   un téléphone couché est large (>720px) et reçoit la mise en page
   desktop, trop haute pour les ~320-430px de hauteur dispo. Ici, on
   compacte chaque étape pour qu'elle tienne sans scroll. SophIA reste
   affichée à gauche. Placé en dernier → surcharge desktop ET bloc 720px.
   ════════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 720px) {
  /* Nav compactée — récupère ~30px de hauteur fixe (nav sticky 67px) */
  .nav-inner { padding: 4px 0 !important; }
  .nav-logo img { height: 20px; }

  /* Conteneur — neutraliser les hauteurs forcées */
  .hero-player { min-height: 0; padding: 3px 0; }
  .hero-player .container { padding: 0 10px; }
  .dx-card-hero { height: auto !important; min-height: 0 !important; max-height: none !important; }

  /* Grille — SophIA fine à gauche, contenu à droite */
  .dx-card-body { grid-template-columns: clamp(88px, 15vw, 140px) 1fr; gap: 0 14px; padding-top: 6px; }
  .dx-card.is-bare .dx-card-body { grid-template-columns: 1fr; }

  /* SophIA — ré-affichée (surcharge le display:none du bloc 720px), compactée */
  .dx-side { display: flex; padding: 4px; gap: 4px; }
  .dx-sophia, .dx-sophia-video { max-height: clamp(116px, 40vh, 188px); width: auto; }
  .dx-side-bars { display: none; }
  .dx-side-tag { font-size: 9.5px; padding: 2px 8px; }

  /* Contenu — compaction transversale */
  .dx-main { padding: 6px 12px 4px; }
  .dx-narration { font-size: 11.5px; line-height: 1.35; padding-left: 9px; margin-bottom: 5px; min-height: 0; }
  .dx-stage { overflow: visible; }
  .dx-step { gap: 7px !important; }
  .dx-slide-title { font-size: 15px; line-height: 1.2; }
  .dx-meta-hint { font-size: 10px; }

  /* Rail bas — compact */
  .dx-rail { padding: 5px 12px; gap: 10px; margin-top: 0; }
  .dx-rail-step { display: none; }
  .dx-back { width: 26px; height: 26px; }

  /* Décor masqué — gain de hauteur */
  .dx-hero-bars, .dx-card.is-bare .dx-hero-bars { display: none !important; }
  .dx-captions { display: none !important; }

  /* Étape 0 — intro (compactée ++ pour fit même avec chrome agressif) */
  .dx-step-hero { gap: 5px !important; }
  .dx-hero-title { font-size: clamp(17px, 4.4vw, 22px) !important; line-height: 1.05; }
  .dx-hero-lead { font-size: 11.5px; line-height: 1.35; }
  .dx-step-hero .dx-cta-row { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
  .dx-step-hero .btn-lg { padding: 7px 14px; font-size: 13px; width: auto; }
  .dx-step-hero .dx-meta { font-size: 10.5px; }

  /* Étapes 1-4 — features & chips sur plusieurs colonnes (exploite la largeur) */
  .dx-features { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dx-feature { padding: 8px 9px !important; gap: 6px; }
  .dx-feature p, .dx-feature span:not(.dx-feature-title) { font-size: 10px; line-height: 1.3; }
  .dx-feature h3, .dx-feature h4, .dx-feature .dx-feature-title { font-size: 11.5px; }
  .dx-feature svg { width: 18px; height: 18px; }
  .dx-chips { grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 5px; margin-top: 2px; }
  .dx-chip { padding: 5px 9px !important; font-size: 10.5px !important; line-height: 1.2; gap: 6px; min-height: 0; }
  .dx-chip-icon { display: none; }
  .dx-chip-check { width: 14px; height: 14px; flex-shrink: 0; }
  .dx-chip-label, .dx-chip span { line-height: 1.2; }
  .dx-cta-row { margin-top: 2px; }
  .dx-cta-row .btn { padding: 9px 18px; font-size: 13px; }

  /* Étape 5 — selects 2 colonnes */
  .dx-form-mini { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dx-select { padding: 9px 12px; font-size: 13px; }

  /* Étape 6 — formulaire ULTRA compact (la plus chargée : narration + teaser + 4 champs + bouton + réassurance) */
  /* La narration est masquée sur les étapes 6 & 7 — déjà contextualisées visuellement */
  .dx-main:has(.dx-step[data-step="6"].is-active) .dx-narration,
  .dx-main:has(.dx-step[data-step="7"].is-active) .dx-narration { display: none !important; }
  .dx-step[data-step="6"] .dx-slide-title { font-size: 14px !important; margin: 0; line-height: 1.15; }
  .dx-teaser-msg { padding: 4px 9px !important; font-size: 10.5px !important; line-height: 1.25 !important; border-radius: 6px !important; }
  .dx-form-compact { grid-template-columns: 1fr 1fr; gap: 5px !important; }
  .dx-form-compact input { padding: 6px 10px !important; font-size: 12px !important; }
  .dx-form-compact input::placeholder { font-size: 11.5px !important; }
  .dx-form-submit { padding: 7px 16px !important; font-size: 12px !important; }
  .dx-form-submit svg { width: 13px; height: 13px; }
  .dx-gate-reassure { display: none !important; }

  /* Étape 7 — résultat : 2 colonnes pour diviser la hauteur par ~2 */
  .dx-step[data-step="7"].is-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "score book"
      "flags book"
      "soln  book"
      "foot  foot";
    gap: 0 14px;
    align-content: start;
    max-height: none;
    overflow: visible;
  }
  .dx-step[data-step="7"] .dx-reveal-grid { grid-area: score; }
  .dx-step[data-step="7"] .dx-reveal-list { grid-area: flags; margin: 0; }
  .dx-step[data-step="7"] .dx-solution    { grid-area: soln; }
  .dx-step[data-step="7"] .dx-book        { grid-area: book; align-self: start; }
  .dx-step[data-step="7"] .dx-reveal-foot { grid-area: foot; }
  .dx-reveal-grid { grid-template-columns: 42px 1fr; gap: 6px; }
  .dx-reveal-ring { width: 42px !important; height: 42px !important; }
  .dx-reveal-ring-num { font-size: 15px; }
  .dx-reveal-amount-big { font-size: 16px; }
  .dx-reveal-list { gap: 1px; }
  .dx-reveal-list li { padding: 2px 7px; font-size: 9.5px; gap: 5px; line-height: 1.2; }
  .dx-solution { padding: 3px 8px !important; }
  .dx-solution-desc { display: none; }
  .dx-solution-tag { font-size: 8.5px; }
  .dx-solution-title { font-size: 11px; line-height: 1.2; }
  .dx-book { padding: 5px 8px !important; gap: 3px !important; min-height: 0 !important; }
  .dx-book-head { display: none !important; }
  .dx-book-callback { display: none !important; }
  .dx-book-days { gap: 3px !important; }
  .dx-book-day { min-width: 0 !important; padding: 4px 3px !important; font-size: 10px !important; }
  .dx-book-slots { grid-template-columns: repeat(6, 1fr) !important; gap: 3px !important; }
  .dx-book-slot { font-size: 10px !important; padding: 4px 2px !important; }
  .dx-book-confirm, .dx-book-callback, .dx-book .btn { padding: 4px 8px !important; font-size: 10px !important; }
  .dx-reveal-foot { font-size: 9.5px; }
  .dx-rail { padding: 3px 12px !important; gap: 8px !important; }
}

/* ════════════════════════════════════════════════════════════════
   TABLETTE en paysage — corrections ciblées (étapes 2 et 7 uniquement)
   La mise en page desktop fonctionne presque partout. Seules step 2
   (8 chips) et step 7 (reveal + booking widget) débordent. On garde le
   look desktop pour les autres étapes, et on applique le minimum :
   narration cachée sur les étapes lourdes + step 7 en 2 colonnes.
   ════════════════════════════════════════════════════════════════ */
@media (orientation: landscape) and (min-height: 721px) and (max-height: 1100px) {
  /* Narration cachée sur les étapes les plus chargées (step 2, 6, 7) */
  .dx-main:has(.dx-step[data-step="2"].is-active) .dx-narration,
  .dx-main:has(.dx-step[data-step="6"].is-active) .dx-narration,
  .dx-main:has(.dx-step[data-step="7"].is-active) .dx-narration { display: none !important; }

  /* Step 7 — bascule en 2 colonnes (score+flags+solution | booking) */
  .dx-step[data-step="7"].is-active {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "score book"
      "flags book"
      "soln  book"
      "foot  foot";
    gap: 10px 28px;
    align-content: start;
    overflow: visible;
    max-height: none;
  }
  .dx-step[data-step="7"] .dx-reveal-grid { grid-area: score; }
  .dx-step[data-step="7"] .dx-reveal-list { grid-area: flags; margin: 0; }
  .dx-step[data-step="7"] .dx-solution    { grid-area: soln; }
  .dx-step[data-step="7"] .dx-book        { grid-area: book; align-self: start; }
  .dx-step[data-step="7"] .dx-reveal-foot { grid-area: foot; }
  .dx-book { min-height: 0 !important; }
  .dx-book-callback { display: none !important; }
  .dx-solution-desc { display: none !important; }
}


/* Lead form inside demo */
.demo-form { display: none; flex-direction: column; gap: 14px; padding: 8px 4px; }
.demo-form.active { display: flex; }
.demo-form h4 {
  font-family: var(--fv-font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.demo-form p { margin: 0 0 8px; color: var(--fg-muted); font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  font-weight: 600;
}
.form-field input, .form-field select {
  padding: 11px 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--fv-font-body);
  font-size: 14px;
  transition: border-color 200ms;
  /* Empêche les inputs d'imposer leur min-width implicite (~200px par défaut) */
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--fv-violet);
  box-shadow: var(--fv-focus-ring);
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .lead-form { padding: 22px !important; }
  .lead-form-grid { gap: 32px !important; }
}

.score-display {
  text-align: center;
  padding: 24px 0 8px;
}
.score-ring {
  width: 140px; height: 140px;
  margin: 0 auto 16px;
  position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .score-value {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--fv-font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--fv-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ Trust strip ============ */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 56px;
  animation: trust-marquee 38s linear infinite;
}
.trust-strip:hover .trust-strip-inner { animation-play-state: paused; }
@keyframes trust-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--fg-muted); font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-item strong { color: var(--fg); font-weight: 600; }

/* ============ Sanctions / FOMO section ============ */
.fomo-section {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(239,68,68,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(139,92,246,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  overflow: hidden;
}
[data-theme="light"] .fomo-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(239,68,68,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(139,92,246,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
}

/* Compte à rebours géant rouge → violet */
.fomo-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.6vw, 18px);
  margin: 8px 0 4px;
  flex-wrap: nowrap;
}
.fomo-cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(72px, 12vw, 132px);
}
.fomo-cd-cell .num {
  font-family: var(--fv-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: clamp(56px, 11vw, 132px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FF6B6B 0%, #DC2626 45%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(220,38,38,0.18);
  animation: fomoPulse 2.6s ease-in-out infinite;
}
.fomo-cd-cell .lbl {
  font-family: var(--fv-font-mono);
  font-size: clamp(10px, 1.2vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  margin-top: 6px;
  font-weight: 600;
}
.fomo-cd-sep {
  font-family: var(--fv-font-mono);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  color: rgba(239,68,68,0.35);
  align-self: flex-start;
  margin-top: clamp(4px, 1vw, 10px);
  animation: fomoSepBlink 1.2s steps(2, end) infinite;
}
@keyframes fomoPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(220,38,38,0)); }
  50% { filter: drop-shadow(0 0 24px rgba(220,38,38,0.35)); }
}
@keyframes fomoSepBlink {
  0%, 49% { opacity: 0.35; }
  50%, 100% { opacity: 0.9; }
}
[data-theme="light"] .fomo-cd-cell .num {
  background: linear-gradient(180deg, #DC2626 0%, #B91C1C 45%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fomo-subtitle {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--fg);
  max-width: 720px;
}
.fomo-subtitle::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0 auto 18px;
  background: linear-gradient(90deg, #EF4444, #8B5CF6);
  border-radius: 2px;
}

/* Trio comparatif AI Act / RGPD / Écart */
.fomo-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin-top: 8px;
}
.fomo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fomo-card:hover { transform: translateY(-3px); }
.fomo-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--fomo-card-glow, transparent);
  opacity: 0.08;
  z-index: -1;
}
.fomo-card-tag {
  display: inline-block;
  font-family: var(--fv-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 4px;
}
.fomo-card-big {
  font-family: var(--fv-font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fomo-card-or {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.fomo-card-or strong { color: var(--fg); font-weight: 700; }
.fomo-card-ref {
  margin-top: 8px;
  font-family: var(--fv-font-mono);
  font-size: 10.5px;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  width: 100%;
}

/* Variante AI Act — rouge dominant */
.fomo-card-aiact {
  --fomo-card-glow: radial-gradient(circle at 50% 0%, rgba(239,68,68,0.5), transparent 60%);
  border-color: rgba(239,68,68,0.35);
}
.fomo-card-aiact .fomo-card-tag {
  color: #FCA5A5;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.3);
}
.fomo-card-aiact .fomo-card-big {
  background: linear-gradient(180deg, #FF6B6B 0%, #DC2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Variante RGPD — neutre / bleu froid */
.fomo-card-rgpd {
  --fomo-card-glow: radial-gradient(circle at 50% 0%, rgba(96,165,250,0.4), transparent 60%);
  border-color: rgba(96,165,250,0.22);
}
.fomo-card-rgpd .fomo-card-tag {
  color: #93C5FD;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.25);
}
.fomo-card-rgpd .fomo-card-big {
  color: var(--fg);
  opacity: 0.85;
}

[data-theme="light"] .fomo-card { background: #fff; }
[data-theme="light"] .fomo-card-aiact .fomo-card-tag { color: #B91C1C; background: rgba(220,38,38,0.07); }
[data-theme="light"] .fomo-card-rgpd .fomo-card-tag { color: #1D4ED8; background: rgba(59,130,246,0.07); }
[data-theme="light"] .fomo-card-aiact .fomo-card-big {
  background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CTA final */
.fomo-cta {
  margin-top: 12px;
  background: linear-gradient(90deg, #DC2626 0%, #8B5CF6 100%);
  border: none;
  box-shadow: 0 18px 50px -16px rgba(220,38,38,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.fomo-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 22px 60px -18px rgba(139,92,246,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Responsive — 2 cartes côte-à-côte conservées sur mobile (anti-scroll) */
@media (max-width: 880px) {
  .fomo-compare { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fomo-card { padding: 16px 11px 14px; }
}
@media (max-width: 560px) {
  .fomo-countdown { gap: 4px; }
  .fomo-cd-cell { min-width: 60px; }
  .fomo-cd-cell .num { font-size: clamp(44px, 13vw, 64px); }
  .fomo-cd-sep { font-size: clamp(28px, 9vw, 44px); }
  .fomo-cd-cell .lbl { font-size: 9.5px; letter-spacing: 0.14em; }
  .fomo-card-big { font-size: clamp(28px, 8.5vw, 40px); }
  .fomo-card-or { font-size: 12.5px; }
  .fomo-card-ref { font-size: 9.5px; }
}

.sanctions-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 32px;
  border-collapse: separate;
  border-spacing: 0;
}
.sanctions-table th {
  background: var(--surface-2);
  text-align: left;
  padding: 16px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.sanctions-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.sanctions-table tr:last-child td { border-bottom: none; }
.sanctions-table .amount {
  font-family: var(--fv-font-mono);
  font-weight: 700;
  color: #FF6B8A;
}

/* ============ USP / pillars ============ */
/* ======= USP — Timeline 01 / 02 / 03 ======= */
.pillars {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  counter-reset: pillar;
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; gap: 14px; }
}

.pillar {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 26px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 240ms var(--fv-ease-standard), border-color 240ms, box-shadow 240ms;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 24px 60px -28px rgba(139,92,246,0.45);
}

/* Numéro géant en watermark décoratif top-right */
.pillar-num {
  position: absolute;
  top: -18px;
  right: 6px;
  font-family: var(--fv-font-display, "Inter Tight", "Inter", sans-serif);
  font-size: 140px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.pillar-body {
  display: contents;
}

/* Header de la card : icône + petit label "Étape 01" */
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(59,130,246,0.14) 100%);
  border: 1px solid rgba(139,92,246,0.30);
  display: grid;
  place-items: center;
  color: #C4B5FD;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
/* Petit numéro lisible "01" en label sous l'icône */
.pillar-icon::after {
  counter-increment: pillar;
  content: "Étape 0" counter(pillar);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
  font-family: var(--fv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.pillar-verb {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.pillar p {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Light theme */
[data-theme="light"] .pillar-num {
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.12;
}
[data-theme="light"] .pillar-icon { color: #6D28D9; }

@media (max-width: 880px) {
  /* Piliers compactés sur mobile — anti-scroll, sans rien masquer */
  .pillar { padding: 16px 18px 14px; }
  .pillar-num { font-size: 90px; top: -8px; right: 2px; }
  .pillar-icon { width: 38px; height: 38px; margin-bottom: 11px; }
  .pillar-verb { font-size: 19px; margin: 0 0 6px; }
  .pillar p { font-size: 13.5px; line-height: 1.5; }
}

/* ============ Module 3.0 explained ============ */
.module-explain {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 980px) { .module-explain { grid-template-columns: 1fr; gap: 40px; } }

/* Colonne droite : carte audio SophIA + CTA « Démarrer le diagnostic » empilés */
.module-visual { display: flex; flex-direction: column; gap: 18px; }
.module-cta { width: 100%; justify-content: center; }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  display: grid; place-items: center;
  color: var(--fv-violet);
  flex-shrink: 0;
}
.feature-item h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.feature-item p { margin: 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
/* Feature-items compactés sur mobile — anti-scroll */
@media (max-width: 900px) {
  .module-explain { gap: 28px; }
  .feature-list { gap: 12px; margin-top: 18px; }
  .feature-item { gap: 12px; }
  .feature-item .ico { width: 32px; height: 32px; }
  .feature-item h4 { font-size: 14.5px; }
  .feature-item p { font-size: 13px; line-height: 1.45; }
}

/* ====== Mini-player audio SophIA (vrai player, pas mock) ====== */
/* Player SophIA — design épuré, sans card extérieure.
   La vidéo est l'élément central, titre + sub au-dessus en typo classique. */
.sophia-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 0 0;
}
.sophia-demo-glow { display: none; }

.sophia-demo-video-wrap {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 18px auto 0;
  aspect-ratio: 3 / 4;
}
.sophia-demo-video {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  display: block;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
}
/* Bouton play custom — overlay au-dessus du poster.
   Disparaît dès le 1er click ; les controls natifs prennent ensuite le relais. */
.sophia-demo-playbtn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  cursor: pointer;
  border-radius: 16px;
  font: inherit;
  padding: 0;
  transition: background 0.25s ease;
}
.sophia-demo-playbtn:hover {
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}
.sophia-demo-playbtn:focus-visible {
  outline: 2px solid var(--fv-violet);
  outline-offset: 4px;
}
.sophia-demo-playbtn[hidden] { display: none; }
.sophia-demo-playbtn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  box-shadow: 0 12px 28px -8px rgba(139,92,246,0.7), 0 0 0 5px rgba(139,92,246,0.18);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sophia-demo-playbtn:hover .sophia-demo-playbtn-circle {
  transform: scale(1.08);
  box-shadow: 0 16px 36px -8px rgba(139,92,246,0.85), 0 0 0 7px rgba(139,92,246,0.22);
}
.sophia-demo-playbtn-circle svg {
  margin-left: 3px; /* compensation optique du triangle play */
}
.sophia-demo-playbtn-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.sophia-demo-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-family: var(--fv-font-mono);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.sophia-demo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.sophia-demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 12px rgba(139,92,246,0.8);
  animation: sophiaDemoDot 2s ease-in-out infinite;
}
@keyframes sophiaDemoDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.sophia-demo-meta { text-transform: uppercase; }

.sophia-demo-title {
  font-family: var(--fv-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.25;
}
.sophia-demo-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

/* Waveform animée — 40 barres */
.sophia-demo-waveform {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3px;
  height: 56px;
  margin: 8px 0 18px;
  padding: 0 2px;
}
.sophia-demo-waveform > span {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 6px;
  height: 18%;
  background: linear-gradient(180deg, #A78BFA 0%, #60A5FA 100%);
  border-radius: 3px;
  opacity: 0.35;
  transform-origin: center;
  transition: opacity 200ms ease;
}
/* Hauteurs variables pour un look organique au repos */
.sophia-demo-waveform > span:nth-child(odd)  { height: 28%; }
.sophia-demo-waveform > span:nth-child(3n)   { height: 45%; }
.sophia-demo-waveform > span:nth-child(5n)   { height: 62%; }
.sophia-demo-waveform > span:nth-child(7n)   { height: 22%; }
.sophia-demo-waveform > span:nth-child(11n)  { height: 78%; }

/* Animation play : chaque barre danse */
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span {
  opacity: 0.95;
  animation: sophiaBars 1.1s ease-in-out infinite;
}
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span:nth-child(2n)  { animation-delay: -0.15s; animation-duration: 1.3s; }
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span:nth-child(3n)  { animation-delay: -0.4s;  animation-duration: 0.9s; }
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span:nth-child(5n)  { animation-delay: -0.6s;  animation-duration: 1.5s; }
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span:nth-child(7n)  { animation-delay: -0.25s; animation-duration: 0.7s; }
.sophia-demo[data-playing="true"] .sophia-demo-waveform > span:nth-child(11n) { animation-delay: -0.8s;  animation-duration: 1.1s; }
@keyframes sophiaBars {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1.15); }
}

/* Slot sous-titres */
.sophia-demo-caption {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 70px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin-bottom: 18px;
  display: flex; align-items: center;
  transition: background 250ms ease;
}
.sophia-demo[data-playing="true"] .sophia-demo-caption {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.22);
}
.sophia-demo-caption-hint {
  color: rgba(255,255,255,0.45);
  font-style: italic;
  font-size: 13.5px;
}

/* Contrôles */
.sophia-demo-controls {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sophia-demo-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  border: none;
  display: grid; place-items: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(139,92,246,0.5);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sophia-demo-play:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(139,92,246,0.6); }
.sophia-demo-play:active { transform: scale(0.96); }
.sophia-demo-play .ico-pause { display: none; }
.sophia-demo[data-playing="true"] .sophia-demo-play .ico-play { display: none; }
.sophia-demo[data-playing="true"] .sophia-demo-play .ico-pause { display: block; }

.sophia-demo-progress {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.sophia-demo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #3B82F6);
  border-radius: 999px;
  width: 0%;
  transition: width 0.12s linear;
}
.sophia-demo-time {
  font-family: var(--fv-font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  min-width: 88px;
  text-align: right;
}

/* Audio caché (le natif) */
.sophia-demo audio { display: none; }

@media (max-width: 980px) {
  .sophia-demo { padding: 22px 22px 20px; min-height: 340px; }
  .sophia-demo-title { font-size: 21px; }
  .sophia-demo-waveform { height: 48px; }
  .sophia-demo-caption { font-size: 13.5px; padding: 14px 16px; min-height: 60px; }
  .sophia-demo-time { min-width: 80px; font-size: 11.5px; }
}

/* ============ Programme — Stats banner + mosaïque 21 chips ============ */

/* Stats banner */
.prog-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0 56px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(59,130,246,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.prog-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
}
.prog-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--border);
}
.prog-stat-num {
  font-family: var(--fv-font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.prog-stat-num small {
  font-size: 0.55em;
  vertical-align: baseline;
  margin-left: 2px;
}
.prog-stat-lbl {
  font-family: var(--fv-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
[data-theme="light"] .prog-stats {
  background: linear-gradient(135deg, rgba(139,92,246,0.04) 0%, rgba(59,130,246,0.03) 100%);
}
[data-theme="light"] .prog-stat-num {
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 720px) {
  .prog-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; padding: 24px 16px; }
  .prog-stat:nth-child(2)::after { display: none; }
  .prog-stat:nth-child(odd)::after { display: none; }
}

/* Mosaïque chapitres */
.prog-mosaic {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.prog-chapter-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.prog-chapter-row-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.prog-chapter-row-idx {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  flex-shrink: 0;
}
.prog-chapter-row-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.prog-chapter-row-sub {
  font-family: var(--fv-font-mono);
  font-size: 11.5px;
  color: var(--fg-subtle);
  margin-left: auto;
  letter-spacing: 0.04em;
}
/* Chevron accordéon — masqué en desktop, visible en mobile */
.prog-chapter-row-chevron { display: none; }

/* Couleurs par chapitre (5 tons distincts) */
.prog-chapter-row[data-chapter="1"] .prog-chapter-row-idx { color: #A78BFA; background: rgba(167,139,250,0.08); }
.prog-chapter-row[data-chapter="2"] .prog-chapter-row-idx { color: #60A5FA; background: rgba(96,165,250,0.08); }
.prog-chapter-row[data-chapter="3"] .prog-chapter-row-idx { color: #2DD4BF; background: rgba(45,212,191,0.08); }
.prog-chapter-row[data-chapter="4"] .prog-chapter-row-idx { color: #F472B6; background: rgba(244,114,182,0.08); }
.prog-chapter-row[data-chapter="5"] .prog-chapter-row-idx { color: #FB7185; background: rgba(251,113,133,0.08); }
[data-theme="light"] .prog-chapter-row[data-chapter="1"] .prog-chapter-row-idx { color: #7C3AED; }
[data-theme="light"] .prog-chapter-row[data-chapter="2"] .prog-chapter-row-idx { color: #2563EB; }
[data-theme="light"] .prog-chapter-row[data-chapter="3"] .prog-chapter-row-idx { color: #0D9488; }
[data-theme="light"] .prog-chapter-row[data-chapter="4"] .prog-chapter-row-idx { color: #DB2777; }
[data-theme="light"] .prog-chapter-row[data-chapter="5"] .prog-chapter-row-idx { color: #E11D48; }

/* Grid de chips */
.prog-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.prog-chip {
  --chip-color: #A78BFA;
  --chip-bg: rgba(167,139,250,0.08);
  --chip-border: rgba(167,139,250,0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--chip-color);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.prog-chip::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--chip-bg);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.prog-chip:hover {
  transform: translateY(-2px);
  border-color: var(--chip-border);
  box-shadow: 0 12px 28px -16px rgba(0,0,0,0.4);
}
.prog-chip:hover::before { opacity: 1; }
.prog-chip.is-active {
  border-color: var(--chip-color);
  border-left-width: 4px;
  box-shadow: 0 0 0 2px var(--chip-bg), 0 16px 36px -18px var(--chip-color);
}
.prog-chip.is-active::before { opacity: 1; }
.prog-chip.is-pulse { animation: progChipPulse 1.4s ease-out; }
@keyframes progChipPulse {
  0%   { box-shadow: 0 0 0 0 var(--chip-color); }
  35%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--chip-color) 30%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.prog-chip-num {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--chip-color);
  text-transform: uppercase;
}
.prog-chip-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
}

/* Couleurs des chips par chapitre */
.prog-chip[data-chapter="1"] { --chip-color: #A78BFA; --chip-bg: rgba(167,139,250,0.10); --chip-border: rgba(167,139,250,0.35); }
.prog-chip[data-chapter="2"] { --chip-color: #60A5FA; --chip-bg: rgba(96,165,250,0.10);  --chip-border: rgba(96,165,250,0.35); }
.prog-chip[data-chapter="3"] { --chip-color: #2DD4BF; --chip-bg: rgba(45,212,191,0.10);  --chip-border: rgba(45,212,191,0.35); }
.prog-chip[data-chapter="4"] { --chip-color: #F472B6; --chip-bg: rgba(244,114,182,0.10); --chip-border: rgba(244,114,182,0.35); }
.prog-chip[data-chapter="5"] { --chip-color: #FB7185; --chip-bg: rgba(251,113,133,0.10); --chip-border: rgba(251,113,133,0.35); }
[data-theme="light"] .prog-chip[data-chapter="1"] { --chip-color: #7C3AED; }
[data-theme="light"] .prog-chip[data-chapter="2"] { --chip-color: #2563EB; }
[data-theme="light"] .prog-chip[data-chapter="3"] { --chip-color: #0D9488; }
[data-theme="light"] .prog-chip[data-chapter="4"] { --chip-color: #DB2777; }
[data-theme="light"] .prog-chip[data-chapter="5"] { --chip-color: #E11D48; }

/* Panneau détail (sticky bottom on mobile, inline on desktop) */
.prog-detail {
  margin-top: 32px;
  padding: 24px 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  animation: progDetailSlide 0.25s ease-out;
  border-left: 4px solid var(--chip-color, #A78BFA);
}
.prog-detail[data-chapter="1"] { --chip-color: #A78BFA; }
.prog-detail[data-chapter="2"] { --chip-color: #60A5FA; }
.prog-detail[data-chapter="3"] { --chip-color: #2DD4BF; }
.prog-detail[data-chapter="4"] { --chip-color: #F472B6; }
.prog-detail[data-chapter="5"] { --chip-color: #FB7185; }
[data-theme="light"] .prog-detail[data-chapter="1"] { --chip-color: #7C3AED; }
[data-theme="light"] .prog-detail[data-chapter="2"] { --chip-color: #2563EB; }
[data-theme="light"] .prog-detail[data-chapter="3"] { --chip-color: #0D9488; }
[data-theme="light"] .prog-detail[data-chapter="4"] { --chip-color: #DB2777; }
[data-theme="light"] .prog-detail[data-chapter="5"] { --chip-color: #E11D48; }
@keyframes progDetailSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prog-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.prog-detail-num {
  font-family: var(--fv-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--chip-color, #A78BFA);
  padding: 4px 10px;
  background: color-mix(in srgb, var(--chip-color, #A78BFA) 12%, transparent);
  border-radius: 999px;
}
.prog-detail-chapter {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.prog-detail-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.prog-detail-close:hover { background: var(--surface-2); color: var(--fg); }
.prog-detail-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.25;
}
.prog-detail-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

/* Accordéon programme — mobile/tablette ≤900px : chapitres repliables */
@media (max-width: 900px) {
  .prog-mosaic { gap: 10px; }
  .prog-chapter-row-head {
    position: relative;
    cursor: pointer;
    padding: 4px 32px 8px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .prog-chapter-row-chevron {
    display: inline-flex;
    position: absolute;
    right: 2px;
    top: 2px;
    color: var(--fg-muted);
    transition: transform 0.25s var(--fv-ease-standard);
  }
  .prog-chapter-row:not(.is-collapsed) .prog-chapter-row-chevron { transform: rotate(180deg); }
  .prog-chapter-row.is-collapsed .prog-chips { display: none; }
  .prog-chapter-row-head:focus-visible { outline: 2px solid var(--fv-violet); outline-offset: 3px; border-radius: 6px; }
}

@media (max-width: 720px) {
  .prog-chapter-row-sub { margin-left: 0; flex-basis: 100%; }
  .prog-chips { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .prog-chip { padding: 12px 14px; }
  .prog-chip-title { font-size: 13.5px; }
  .prog-detail { padding: 20px 18px 18px; }
  .prog-detail-title { font-size: 19px; }
  .prog-detail-desc { font-size: 14px; }
}

/* ============ Audience cards ============ */
/* ====== Audience — 4 personas avec modules cliquables ====== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 1080px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }

/* Onglets persona — masqués en desktop, actifs en mobile/tablette (anti-scroll) */
.audience-tabs { display: none; }
@media (max-width: 900px) {
  .audience-tabs {
    display: flex;
    gap: 6px;
    margin: 28px 0 14px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .audience-tab {
    flex: 1;
    padding: 11px 4px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fg-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .audience-tab.is-active {
    background: linear-gradient(135deg, rgba(139,92,246,0.20) 0%, rgba(59,130,246,0.12) 100%);
    color: var(--fg);
    box-shadow: 0 0 0 1px rgba(139,92,246,0.35) inset;
  }
  .audience-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  /* sélecteur descendant pour battre la spécificité de la règle de base .audience-card */
  .audience-grid .audience-card { display: none; }
  .audience-grid .audience-card.is-active { display: flex; animation: faqFadeIn 0.28s ease-out; }
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 3px solid var(--persona-color, #A78BFA);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.audience-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--persona-tint, rgba(167,139,250,0.10)) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.7;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px var(--persona-color, rgba(167,139,250,0.4));
}

/* Couleurs par persona */
.audience-card[data-persona="dg"]  { --persona-color: #A78BFA; --persona-tint: rgba(167,139,250,0.12); }
.audience-card[data-persona="dsi"] { --persona-color: #60A5FA; --persona-tint: rgba(96,165,250,0.10); }
.audience-card[data-persona="dpo"] { --persona-color: #2DD4BF; --persona-tint: rgba(45,212,191,0.10); }
.audience-card[data-persona="rh"]  { --persona-color: #FB7185; --persona-tint: rgba(251,113,133,0.10); }
[data-theme="light"] .audience-card[data-persona="dg"]  { --persona-color: #7C3AED; }
[data-theme="light"] .audience-card[data-persona="dsi"] { --persona-color: #2563EB; }
[data-theme="light"] .audience-card[data-persona="dpo"] { --persona-color: #0D9488; }
[data-theme="light"] .audience-card[data-persona="rh"]  { --persona-color: #E11D48; }

.audience-head { display: flex; flex-direction: column; gap: 6px; }
.audience-role {
  font-family: var(--fv-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--persona-color, #A78BFA);
}
.audience-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.25;
}
.audience-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}

.audience-modules {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-modules-lbl {
  font-family: var(--fv-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
}
.audience-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.audience-chip {
  --chip-color: #A78BFA;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-left: 3px solid var(--chip-color);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--fg);
  transition: background 0.15s ease, border-color 0.18s ease, transform 0.15s ease;
}
.audience-chip:hover {
  background: var(--surface-2);
  border-color: var(--chip-color);
  transform: translateX(2px);
}
.audience-chip-num {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chip-color);
  flex-shrink: 0;
}
.audience-chip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

/* Chips colorés par chapitre (cohérent avec mosaïque programme) */
.audience-chip[data-chapter="1"] { --chip-color: #A78BFA; }
.audience-chip[data-chapter="2"] { --chip-color: #60A5FA; }
.audience-chip[data-chapter="3"] { --chip-color: #2DD4BF; }
.audience-chip[data-chapter="4"] { --chip-color: #F472B6; }
.audience-chip[data-chapter="5"] { --chip-color: #FB7185; }
[data-theme="light"] .audience-chip[data-chapter="1"] { --chip-color: #7C3AED; }
[data-theme="light"] .audience-chip[data-chapter="2"] { --chip-color: #2563EB; }
[data-theme="light"] .audience-chip[data-chapter="3"] { --chip-color: #0D9488; }
[data-theme="light"] .audience-chip[data-chapter="4"] { --chip-color: #DB2777; }
[data-theme="light"] .audience-chip[data-chapter="5"] { --chip-color: #E11D48; }

/* ============ Testimonials ============ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 980px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial blockquote {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg);
  font-weight: 500;
}
.testimonial blockquote::before { content: "« "; color: var(--fv-violet); }
.testimonial blockquote::after { content: " »"; color: var(--fv-violet); }
.testimonial-meta { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fv-gradient);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.testimonial-meta .name { font-size: 14px; font-weight: 600; }
.testimonial-meta .role { font-size: 12px; color: var(--fg-muted); }
.testimonial-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  padding: 4px 8px;
  background: var(--surface-3);
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
}

/* ============ Pricing — Calculateur volume ============ */
.pcalc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 920px) { .pcalc { grid-template-columns: 1fr; } }

.pcalc-input,
.pcalc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pcalc-result {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: rgba(139,92,246,0.28);
  display: flex;
  flex-direction: column;
}
.pcalc-result::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--fv-gradient);
}

.pcalc-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.pcalc-hint {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--fg-subtle);
  line-height: 1.45;
  font-style: italic;
}

.pcalc-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pcalc-q {
  flex: 1;
  min-width: 48px;
  padding: 10px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg-muted);
  font-family: var(--fv-font-mono);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pcalc-q:hover {
  border-color: rgba(139,92,246,0.4);
  color: var(--fg);
}
.pcalc-q.is-active {
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(59,130,246,0.12) 100%);
  border-color: rgba(139,92,246,0.5);
  color: var(--fg);
  box-shadow: 0 4px 14px -6px rgba(139,92,246,0.5);
}

.pcalc-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  margin: 8px 0;
  cursor: pointer;
}
.pcalc-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--fv-violet) 0%, var(--fv-violet) var(--pcalc-pct, 8%), var(--surface-3) var(--pcalc-pct, 8%), var(--surface-3) 100%);
  border-radius: 999px;
}
.pcalc-slider::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, var(--fv-violet) 0%, var(--fv-violet) var(--pcalc-pct, 8%), var(--surface-3) var(--pcalc-pct, 8%), var(--surface-3) 100%);
  border-radius: 999px;
}
.pcalc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(139,92,246,0.5);
  margin-top: -8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pcalc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.pcalc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px rgba(139,92,246,0.5);
  cursor: pointer;
}

.pcalc-volume-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}
.pcalc-volume-num {
  font-family: var(--fv-font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}
.pcalc-volume-lbl {
  font-size: 15px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* RESULT */
.pcalc-result-eyebrow {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-subtle);
  font-weight: 600;
  margin-bottom: 8px;
}
.pcalc-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.pcalc-total-num {
  font-family: var(--fv-font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.pcalc-total-unit {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

.pcalc-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}
.pcalc-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.pcalc-detail-row span { color: var(--fg-muted); }
.pcalc-detail-row strong { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.pcalc-discount {
  background: linear-gradient(90deg, #8B5CF6 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pcalc-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.pcalc-disclaimer {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--fg-subtle);
  line-height: 1.4;
  text-align: center;
}

/* Tiers — barre visible sous le calculator */
.pcalc-tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.pcalc-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pcalc-tier.is-active {
  border-color: rgba(139,92,246,0.6);
  background: linear-gradient(165deg, rgba(139,92,246,0.10) 0%, rgba(59,130,246,0.06) 100%);
  box-shadow: 0 8px 24px -12px rgba(139,92,246,0.5);
}
.pcalc-tier-range {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
  font-weight: 600;
  text-transform: uppercase;
}
.pcalc-tier-price {
  font-family: var(--fv-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.pcalc-tier.is-active .pcalc-tier-price {
  background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pcalc-tier-disc {
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .pcalc-tiers { grid-template-columns: repeat(2, 1fr); }
  .pcalc-tier:nth-child(5) { grid-column: 1 / -1; }
}

/* BOTTOM : Includes + Financing en 2 col */
.pcalc-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 920px) { .pcalc-bottom { grid-template-columns: 1fr; } }

.pcalc-includes,
.pcalc-financing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 24px 22px;
}
.pcalc-includes-title,
.pcalc-financing-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
/* Blocs repliables #tarif — chevron masqué en desktop, toggle actif en mobile */
.pcalc-fold-chevron { display: none; }
@media (max-width: 900px) {
  .pcalc-fold-head {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pcalc-foldable .pcalc-includes-title,
  .pcalc-foldable .pcalc-financing-title { margin-bottom: 0; }
  .pcalc-fold-chevron {
    display: inline-flex;
    margin-left: auto;
    color: var(--fg-muted);
    flex-shrink: 0;
    transition: transform 0.25s var(--fv-ease-standard);
  }
  .pcalc-foldable:not(.is-collapsed) .pcalc-fold-chevron { transform: rotate(180deg); }
  .pcalc-foldable.is-collapsed .pcalc-fold-body { display: none; }
  .pcalc-foldable:not(.is-collapsed) .pcalc-fold-body { margin-top: 14px; }
  .pcalc-fold-head:focus-visible { outline: 2px solid var(--fv-violet); outline-offset: 3px; border-radius: 6px; }
}
.pcalc-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pcalc-includes-list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  align-items: flex-start;
  color: var(--fg-muted);
}
.pcalc-includes-list li svg { color: var(--fv-violet); flex-shrink: 0; margin-top: 2px; }

.pcalc-financing p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.pcalc-financing p strong { color: var(--fg); font-weight: 600; }
.pcalc-financing-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}
.pcalc-financing-meta > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pcalc-financing-meta span {
  font-family: var(--fv-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
}
.pcalc-financing-meta strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
}
.pcalc-opco-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pcalc-opco-chip {
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.pcalc-opco-chip.pcalc-opco-more {
  background: transparent;
  border-style: dashed;
  font-style: italic;
}
.pcalc-financing-cpf {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--fg-subtle);
  line-height: 1.45;
  font-style: italic;
}

@media (max-width: 720px) {
  .pcalc-input, .pcalc-result { padding: 24px 20px; }
  .pcalc-q { font-size: 13px; padding: 9px 4px; }
  .pcalc-volume-num { font-size: 40px; }
  .pcalc-total-num { font-size: clamp(36px, 11vw, 56px); }
}

/* ============ Bandeau de consentement RGPD (.consent-banner) ============ */
/* Affiché en bas de viewport tant que le visiteur n'a pas exprimé son choix
   sur les traceurs publicitaires (LinkedIn Insight Tag). Choix persisté en
   localStorage — 'granted' / 'denied' — pour ne plus le re-afficher. */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(15, 19, 32, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5);
  padding: 18px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 9999;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  animation: consentSlideUp 0.4s ease-out;
}
.consent-banner[hidden] { display: none; }
.consent-banner-text { flex: 1; min-width: 0; }
.consent-banner-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #C4B5FD;
}
.consent-banner-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.consent-banner-text a {
  color: #C4B5FD;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-banner-text a:hover { color: #DDD6FE; }
.consent-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.consent-btn {
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.consent-btn-refuse {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.consent-btn-refuse:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.consent-btn-accept {
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(139, 92, 246, 0.55);
}
.consent-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(139, 92, 246, 0.7);
}
.consent-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@keyframes consentSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 14px 16px;
    font-size: 13px;
  }
  .consent-banner-actions { justify-content: flex-end; }
  .consent-btn { padding: 9px 16px; font-size: 12.5px; }
}

/* ============ Onglets calculateur tarif (.pcalc-tabs) ============ */
/* Pattern calqué sur .faq-tabs : un seul pane visible à la fois.        */
/* Compacte les anciens blocs .pcalc-tiers + .pcalc-bottom (Inclus/OPCO) */
/* en un unique conteneur réduisant la hauteur de section de ~50 %.      */
.pcalc-tabs {
  display: flex;
  gap: 8px;
  margin: 32px 0 20px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: wrap;
}
.pcalc-tab {
  flex: 1 1 auto;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pcalc-tab:hover { color: var(--fg); }
.pcalc-tab:focus-visible {
  outline: 2px solid var(--fv-violet);
  outline-offset: 2px;
}
.pcalc-tab.is-active {
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(59,130,246,0.10) 100%);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.35) inset, 0 8px 22px -12px rgba(139,92,246,0.45);
}
.pcalc-tab-label { letter-spacing: -0.005em; }

.pcalc-pane {
  animation: pcalcPaneFadeIn 0.28s ease-out;
}
.pcalc-pane[hidden] { display: none; }
@keyframes pcalcPaneFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Le pane Paliers utilise les .pcalc-tier déjà stylisés — pas de règle dédiée nécessaire,
   mais on retire la margin verticale ajoutée par .pcalc-tiers en réutilisant les cartes.  */
.pcalc-pane .pcalc-tiers {
  margin: 0;
}

/* Pane Inclus — réutilise .pcalc-includes existant mais sans le fold-head ni le chevron.
   Centré verticalement avec un peu d'air autour de la liste.                            */
.pcalc-pane .pcalc-includes-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Pane OPCO — même logique pour le titre. */
.pcalc-pane .pcalc-financing-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Micro-bénéfices sous le CTA */
.pcalc-cta-benefits {
  list-style: none;
  margin: 14px 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-muted);
}
.pcalc-cta-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.pcalc-cta-benefits li svg {
  flex-shrink: 0;
  color: #10B981;  /* émeraude — signal "rassure" */
  width: 14px;
  height: 14px;
}
.pcalc-disclaimer-small {
  font-size: 10.5px !important;
  opacity: 0.55;
  margin-top: 0 !important;
  line-height: 1.4 !important;
}

@media (max-width: 720px) {
  .pcalc-tabs { gap: 4px; padding: 4px; margin: 24px 0 16px; }
  .pcalc-tab { padding: 10px 8px; font-size: 13px; min-width: 0; flex: 1; }
  .pcalc-cta-benefits { gap: 10px; font-size: 11.5px; }
}

/* ============ FAQ — Tabs catégorisées + sticky CTA ============ */
.faq-tabs {
  display: flex;
  gap: 8px;
  margin: 40px 0 32px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: wrap;
}
.faq-tab {
  flex: 1 1 auto;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.faq-tab:hover { color: var(--fg); }
.faq-tab.is-active {
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(59,130,246,0.10) 100%);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.35) inset, 0 8px 22px -12px rgba(139,92,246,0.45);
}
.faq-tab-label { letter-spacing: -0.005em; }
.faq-tab-count {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq-tab.is-active .faq-tab-count {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.4);
  color: #C4B5FD;
}
[data-theme="light"] .faq-tab.is-active .faq-tab-count { color: #6D28D9; }

@media (max-width: 720px) {
  .faq-tabs { gap: 4px; padding: 4px; }
  .faq-tab { padding: 10px 10px; font-size: 13px; min-width: 0; flex: 1; }
  .faq-tab-count { font-size: 10.5px; padding: 1px 6px; }
}

/* Contenu — toujours dans le DOM, on cache via [hidden] */
.faq-content {
  position: relative;
}
.faq-cat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: faqFadeIn 0.28s ease-out;
}
.faq-cat[hidden] { display: none; }
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--fv-violet);
  border-radius: 14px;
  padding: 22px 26px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.faq-q:hover {
  border-color: rgba(139,92,246,0.45);
  border-left-color: var(--fv-violet);
}
.faq-q-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.faq-q-body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.faq-q-body strong { color: var(--fg); font-weight: 600; }
.faq-q-link {
  color: var(--fv-violet);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(139,92,246,0.3);
  transition: border-color 0.18s ease;
}
.faq-q-link:hover { border-color: var(--fv-violet); }

/* Couleurs par catégorie (gauche border) */
.faq-cat[data-cat="aiact"] .faq-q     { border-left-color: #FB7185; }
.faq-cat[data-cat="formation"] .faq-q { border-left-color: #A78BFA; }
.faq-cat[data-cat="tarif"] .faq-q     { border-left-color: #2DD4BF; }
.faq-cat[data-cat="pratique"] .faq-q  { border-left-color: #60A5FA; }
[data-theme="light"] .faq-cat[data-cat="aiact"] .faq-q     { border-left-color: #E11D48; }
[data-theme="light"] .faq-cat[data-cat="formation"] .faq-q { border-left-color: #7C3AED; }
[data-theme="light"] .faq-cat[data-cat="tarif"] .faq-q     { border-left-color: #0D9488; }
[data-theme="light"] .faq-cat[data-cat="pratique"] .faq-q  { border-left-color: #2563EB; }

/* CTA en bas de la FAQ */
.faq-cta {
  margin-top: 36px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139,92,246,0.10) 0%, rgba(59,130,246,0.06) 100%);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 18px;
}
.faq-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 240px;
}
.faq-cta-eyebrow {
  font-family: var(--fv-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.faq-cta-lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.faq-cta-btn {
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .faq-cta { padding: 20px 20px; }
  .faq-cta-btn { width: 100%; justify-content: center; }
}

/* ============ Final CTA / lead form ============ */
.final-cta {
  background: linear-gradient(135deg, #1A0B3D 0%, #0B1A3D 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .final-cta {
  background: linear-gradient(135deg, #2A1B5D 0%, #1B2A5D 100%);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 20% 50%, rgba(139,92,246,0.4), transparent 70%),
    radial-gradient(40% 60% at 80% 50%, rgba(59,130,246,0.4), transparent 70%);
  pointer-events: none;
}
.final-cta * { color: #fff; }
.final-cta .lead { color: rgba(255,255,255,0.75); }
.final-cta .form-field input,
.final-cta .form-field select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.final-cta .form-field input::placeholder { color: rgba(255,255,255,0.4); }
.final-cta .form-field label { color: rgba(255,255,255,0.6); }

.lead-form-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
@media (max-width: 980px) { .lead-form-grid { grid-template-columns: 1fr; } }

.lead-form {
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 32px;
}
.lead-form h3 { font-family: var(--fv-font-display); font-size: 24px; margin: 0 0 8px; font-weight: 700; }
.lead-form p { margin: 0 0 24px; font-size: 14px; color: rgba(255,255,255,0.7); }
.lead-form .form-row { margin-bottom: 12px; }

/* ============ Footer ============ */
.footer {
  background: var(--page-bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--fg-muted); text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: var(--fg-subtle);
}

/* Logo FormaVerse wrappé dans une box blanche pour lisibilité dark/light */
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 14px -4px rgba(255,255,255,0.12);
}
.footer-logo-wrap img {
  height: 28px;
  width: auto;
  display: block;
}
[data-theme="light"] .footer-logo-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Qualiopi block — fix mobile overflow */
.qualiopi-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 100%;
  min-width: 0;
}
.qualiopi-block img {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}
.qualiopi-block-text {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.qualiopi-block-text strong {
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
/* Sur très petit mobile : empile image au-dessus du texte */
@media (max-width: 480px) {
  .qualiopi-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  .qualiopi-block img { height: 56px; }
  .qualiopi-block-text { font-size: 11.5px; }
}

/* ============ Animations ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--fv-ease-standard), transform 700ms var(--fv-ease-standard); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Cursor follower ============ */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 400ms;
  mix-blend-mode: screen;
}
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 60%);
  mix-blend-mode: multiply;
}

/* utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
