/* ══════════════════════════════════════════════════════════════════
   culture-diagnostic-v2.css — Fichier CSS unique du diagnostic
   Base Layer consolidée + extensions v2
   ══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   BASE LAYER — consolidé depuis 6 fichiers legacy
   Ordre de cascade préservé :
   twist-theme → twist-theme-full → autodiagnostic
   → twist-compat → twist-premium → culture-diagnostic
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables (twist-theme) ─────────────────────────────────────── */
:root {
  --twist-primary-color: #4B3C7D;
  --twist-primary-strong: #4E3E82;
  --twist-accent: #ffb000;
  --twist-blue: #4B3C7D;
  --twist-blue-2: #4E3E82;
  --text: #03101a;
  --muted: #6b4f3a;
  --bg: #fff3e0;
  --card: #fffefb;
  --radius: 10px;
  --shadow: 0 20px 50px rgba(11,17,40,0.08);
  --w-start: #29c6c0;
  --w-mid: #4E3E82;
  --w-end: #ff7a8a;
}

/* ── Variables (autodiagnostic — surcharges) ──────────────────────── */
:root {
  --twist-dark: #071025;
  --success: #1e9e57;
  --accent: #ffb000;
  --muted: #6b5a49;
  --bg: #fff7ea;
  --card: #fffdf9;
}

/* ── Variables (twist-premium) ───────────────────────────────────── */
:root {
  --grad-start: #6f56e6;
  --grad-mid: #4E3E82;
  --grad-end: #29c6c0;
  --brand-purple: #4B3C7D;
  --brand-dark: #eaf6ff;
  --bg-soft: linear-gradient(180deg, rgba(255,176,0,0.06), rgba(255,220,150,0.03));
  --pyr-accent: #ffb000;
}

/* ── Reset & typographie de base ─────────────────────────────────── */
* { box-sizing: border-box; }
h1, h2, h3, h4 { font-weight: 600; }
body, button, input, select, textarea {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
body { margin: 0; padding: 32px; -webkit-font-smoothing: antialiased; }
.hidden { display: none; }
.brand-logo { height: 44px; display: block; }
.diag-wrap { max-width: 980px; margin: 0 auto; }
.diag-header { padding: 22px; border-radius: var(--radius); }
.twist-quiz-container { max-width: 980px; padding: 20px 0; box-sizing: border-box; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; border: 1px solid rgba(255,255,255,0.03); }

/* ── Boutons ─────────────────────────────────────────────────────── */
.btn { padding: 10px 14px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 700; }
.btn.primary { background: linear-gradient(90deg, var(--grad-mid), var(--grad-end)); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 12px 36px rgba(91,70,230,0.18); }
.btn.ghost { background: transparent; border: 1px solid rgba(75,60,125,0.08); color: var(--twist-primary-color); }
.btn.outline { background: transparent; border: 1px solid var(--twist-primary-color); color: var(--twist-primary-color); }

/* ── Options (réponses quiz) ─────────────────────────────────────── */
.options { display: flex; flex-direction: column; gap: 10px; flex-wrap: wrap; }
.option { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 120px; padding: 12px; border-radius: 8px; cursor: pointer; background: transparent; border: 1px solid rgba(75,60,125,0.06); transition: transform .18s ease, box-shadow .18s ease; text-align: left; color: var(--text); position: relative; }
.option:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(78,62,130,0.12); background: linear-gradient(90deg, rgba(255,140,0,0.12), rgba(78,62,130,0.03)); }
.option:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(78,62,130,0.14); }
.option:focus-within { box-shadow: 0 0 0 4px rgba(75,60,125,0.06); }
.option input { display: none; }
.option .option-label { display: block; color: var(--text); font-weight: 700; padding-left: 6px; }
.options .option:not(.selected) { opacity: 0.95; filter: none; }
.option.selected { background: linear-gradient(180deg, var(--twist-blue-2), var(--twist-blue)); color: #fff; border-color: transparent; box-shadow: 0 22px 60px rgba(78,62,130,0.16); transform: translateY(-2px); }
.option.selected .option-label { color: #fff; }
.option.selected div { color: #fff; }
.option::after { content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 14px; }
.option.selected::after { display: flex; content: '✓'; background: linear-gradient(90deg, var(--w-mid), #4B3C7D); color: #fff; box-shadow: 0 6px 18px rgba(75,60,125,0.12); }
button.option { font-family: inherit; width: 100%; text-align: left; }

/* Bouton Passer */
.skip-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px dashed rgba(75,60,125,0.15);
  border-radius: 8px;
  color: var(--muted, #888);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}
.skip-btn:hover {
  background: rgba(75,60,125,0.04);
  border-color: rgba(75,60,125,0.25);
  color: var(--text, #333);
}

/* ── Barre de progression ────────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.03); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.03); }
.progress-bar.twist-quiz-progress { height: 8px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--twist-blue-2), var(--twist-blue)); transition: width .45s ease; }
.progress-text { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ── Navigation & actions ────────────────────────────────────────── */
.actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.nav-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.nav-actions .hidden { display: none; }

/* ── Carte question ──────────────────────────────────────────────── */
@keyframes qSlideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes qSlideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-30px); } }
.question-card.q-slide-in { animation: qSlideIn .35s ease forwards; }
.question-card.q-slide-out { animation: qSlideOut .22s ease forwards; }
.pyramid-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.pyramid-info { display: flex; flex-direction: column; gap: 10px; }
.question-card { margin-top: 16px; background: var(--card); position: relative; padding: 16px 16px 16px 28px; border-radius: 12px; border: 1px solid rgba(11,17,40,0.06); box-shadow: 0 14px 34px rgba(11,17,40,0.06); }
.question-card::before { content: ''; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 8px; border-radius: 6px; background: linear-gradient(180deg, var(--w-start), var(--w-mid), var(--w-end)); }
.question-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; background: linear-gradient(90deg, var(--w-start), var(--w-mid), var(--w-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Résultat (base) ─────────────────────────────────────────────── */
.result { border-radius: 14px; padding: 24px; margin-top: 18px; background: linear-gradient(180deg, var(--twist-primary-strong), var(--twist-primary-color)); color: #fff; box-shadow: var(--shadow); border: 1px solid rgba(75,60,125,0.18); text-align: center; }
.result h2 { color: #fff; margin: 6px 0 0; font-size: 22px; }
.result .summary { color: rgba(255,255,255,0.95); margin-top: 10px; }
.result .recommendations { margin-top: 14px; text-align: left; }
.result .result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.result .btn.primary { padding: 12px 18px; font-size: 16px; border-radius: 8px; }
.result .btn.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* ── Score ring & badge (twist-premium) ──────────────────────────── */
.twist-premium-result .result-inner { display: flex; gap: 22px; align-items: stretch; padding: 28px; background: linear-gradient(180deg, #4B3C7D, #4E3E82); border-radius: 14px; box-shadow: 0 26px 80px rgba(75,60,125,0.18); border: 1px solid rgba(75,60,125,0.18); color: #fff; }
.twist-premium-result .result-left { width: 320px; display: flex; flex-direction: column; align-items: center; padding: 18px; }
.twist-premium-result .result-right { flex: 1; padding: 10px; display: flex; flex-direction: column; }
.twist-premium-result .badge { background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,176,0,0.4)); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; letter-spacing: 0.4px; box-shadow: 0 10px 34px rgba(255,138,0,0.12); margin-bottom: 12px; }
.score-ring { width: 210px; height: 210px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; background: conic-gradient(var(--grad-mid) 0deg, #ff8a00 0deg); box-shadow: 0 22px 48px rgba(11,17,40,0.08); }
.score-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: linear-gradient(180deg, #3b2f66, #35295f); box-shadow: inset 0 2px 10px rgba(0,0,0,0.12); }
.score-center { position: relative; z-index: 2; text-align: center; }
.score-center span { font-size: 48px; font-weight: 800; color: #fff; display: block; text-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.score-center small { color: #fff; opacity: 0.85; }
.result-title { margin-top: 14px; font-size: 18px; color: #fff; opacity: 0.95; }
.recommendations { display: flex; flex-direction: column; gap: 10px; }
.result-actions { margin-top: auto; display: flex; gap: 12px; }
.confetti-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 12000; }

/* ── Plan d'action (horizon cards) ───────────────────────────────── */
.action-steps { margin: 10px 0 0; padding-left: 18px; }
.action-steps li { margin-bottom: 8px; }
.action-kpi { font-size: 12px; font-weight: 600; color: var(--w-start, #29c6c0); margin-top: 6px; }
.action-send { margin-top: 12px; display: flex; gap: 8px; align-items: center; }

/* ── Responsive (base) ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .twist-premium-result .result-inner { flex-direction: column; align-items: center; }
  .twist-premium-result .result-left { width: 100%; flex-direction: row; gap: 16px; justify-content: center; }
  .score-ring { width: 140px; height: 140px; }
}
@media (max-width: 720px) {
  body { padding: 16px; }
  .option { min-width: 100px; }
  .options { gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FIN BASE LAYER — Extensions v2 ci-dessous
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero Header ────────────────────────────────────────────────── */
.diag-hero {
  background: linear-gradient(135deg, #4B3C7D 0%, #3b2f66 40%, #2a1f50 100%);
  color: #fff;
  padding: 48px 40px 40px;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.diag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% -10%, rgba(41,198,192,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 30% 110%, rgba(255,176,0,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-top {
  display: none;
}

/* ── Top Logo Bar (above hero, white background) ───────────────── */
.top-logo-bar {
  text-align: center;
  padding: 18px 20px 14px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(0,0,0,0.06);
  border-bottom: none;
}
.top-logo-bar .brand-logo {
  height: 52px;
  display: inline-block;
}

/* ── Kicker (Twist signature line) ──────────────────────────────── */
.hero-kicker {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 24px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 auto 16px;
  position: relative;
  color: #fff;
  text-align: center !important;
  width: 100%;
}
.hero-title em {
  font-style: normal;
  color: #ffb000;
}
.hero-title-top {
  color: #29c6c0;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin: 0 auto 32px;
  max-width: 520px;
  position: relative;
}

/* ── Risk Equation (compact) ────────────────────────────────────── */
.risk-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 28px;
  position: relative;
}
.risk-eq-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}
.risk-eq-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
}
.risk-eq-result {
  background: rgba(255,176,0,0.10);
  border-color: rgba(255,176,0,0.20);
}
.risk-eq-result:hover {
  background: rgba(255,176,0,0.18);
}
.risk-eq-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.20));
}
.risk-eq-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.risk-eq-op {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,0.22);
  flex-shrink: 0;
}

/* ── Hero Steps (parcours visuel) ───────────────────────────────── */
.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 32px;
  max-width: 620px;
  position: relative;
}
.hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.hero-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(41,198,192,0.15);
  border: 2px solid #29c6c0;
  color: #29c6c0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.hero-step:hover .hero-step-num {
  background: rgba(41,198,192,0.28);
  transform: scale(1.1);
}
.hero-step-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}
.hero-step-text small {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
}
.hero-step-arrow {
  color: rgba(255,255,255,0.20);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 0 4px;
  margin-bottom: 18px;
}

/* ── Hero Baseline (signature Twist) ────────────────────────────── */
.hero-baseline {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.32);
  margin: 20px 0 0;
  text-align: center;
  position: relative;
}

/* ── Hero Axes Chips ────────────────────────────────────────────── */
.hero-axes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
}
.hero-axis {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  transition: background 0.2s;
}
.hero-axis:hover {
  background: rgba(255,255,255,0.12);
}
.hero-axis-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* ── Hero CTA Row ───────────────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.48);
  position: relative;
}
.hero-sep {
  color: rgba(255,255,255,0.18);
}
.hero-time, .hero-free {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-reassurance {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.4px;
  text-align: center;
}

/* ── Hero responsive — tablette ─────────────────────────────────── */
@media (max-width: 768px) {
  .diag-hero { padding: 36px 24px 30px; }
  .hero-kicker { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 18px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 14px; margin-bottom: 26px; }
  .risk-equation { gap: 10px; }
  .risk-eq-card { padding: 12px 16px 8px; }
  .risk-eq-icon { font-size: 20px; }
  .risk-eq-label { font-size: 11px; }
  .risk-eq-op { font-size: 17px; }
  .hero-steps { max-width: 500px; }
  .hero-step-num { width: 32px; height: 32px; font-size: 13px; }
  .hero-step-text { font-size: 12px; }
  .hero-step-text small { font-size: 10px; }
  .hero-step-arrow { font-size: 15px; }
  .hero-axes { gap: 8px; }
  .hero-axis { font-size: 11.5px; padding: 6px 13px; }
}

/* ── Hero responsive — mobile ──────────────────────────────────── */
@media (max-width: 480px) {
  .diag-hero { padding: 28px 16px 24px; }
  .hero-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 14px; }
  .hero-title { font-size: 21px; line-height: 1.35; }
  .hero-sub { font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
  .risk-equation { gap: 8px; }
  .risk-eq-card { padding: 10px 12px 8px; border-radius: 10px; }
  .risk-eq-icon { font-size: 18px; }
  .risk-eq-label { font-size: 10px; }
  .risk-eq-op { font-size: 15px; }
  .hero-steps { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .hero-step { flex: 0 0 40%; }
  .hero-step-arrow { display: none; }
  .hero-step-num { width: 30px; height: 30px; font-size: 12px; }
  .hero-step-text { font-size: 11.5px; }
  .hero-step-text small { font-size: 10px; }
  .hero-axes { gap: 6px; }
  .hero-axis { font-size: 11px; padding: 5px 10px; }
  .hero-cta-row { font-size: 11px; gap: 8px; }
  .hero-baseline { font-size: 11px; margin-top: 14px; }
  .top-logo-bar .brand-logo { height: 40px; }
  .top-logo-bar { padding: 14px 16px 10px; }
}

/* ── Layout : colonne gauche plus large ─────────────────────────── */
.twist-premium-result .result-left {
  width: 340px;
  flex-shrink: 0;
}
.twist-premium-result .summary {
  font-size: 12px;
  color: rgba(255,255,255,0.80);
  text-align: center;
  line-height: 1.7;
  margin: 4px 0 0;
}
.twist-premium-result .summary strong { color: #29c6c0; }

/* ── Séparateur de section ──────────────────────────────────────── */
.result-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.result-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.result-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}\n\n#radarCanvas {
  max-width: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  width: 340px;
  height: 340px;
}

/* ── Écran de préparation (pré-quiz) ───────────────────────────── */
.prep-screen {
  background: var(--card, #fffefb);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 44px 40px 40px;
  text-align: center;
  color: var(--text, #03101a);
  border: 1px solid rgba(75,60,125,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  max-width: 540px;
  margin: 24px auto 0;
}
.prep-screen.hidden { display: none; }
.prep-screen-inner { position: relative; z-index: 1; }
.prep-screen-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--twist-primary-color, #4B3C7D);
}
.prep-screen-sub {
  font-size: 14.5px;
  color: var(--muted, #6b4f3a);
  margin: 0 0 28px;
  line-height: 1.65;
}

/* Slider */
.prep-slider-wrap {
  max-width: 440px;
  margin: 0 auto 28px;
  background: rgba(75,60,125,0.04);
  border-radius: 16px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(75,60,125,0.08);
}
.prep-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b4f3a);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.prep-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--twist-primary-color, #4B3C7D) 50%, rgba(75,60,125,0.15) 50%);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}
.prep-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--twist-primary-color, #4B3C7D);
  box-shadow: 0 2px 10px rgba(75,60,125,0.35), 0 0 0 3px rgba(75,60,125,0.12);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prep-slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 14px rgba(75,60,125,0.4), 0 0 0 4px rgba(75,60,125,0.15);
}
.prep-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}
.prep-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--twist-primary-color, #4B3C7D);
  border: none;
  box-shadow: 0 2px 10px rgba(75,60,125,0.35), 0 0 0 3px rgba(75,60,125,0.12);
  cursor: grab;
}
.prep-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(75,60,125,0.15);
}
.prep-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 4px;
}
.prep-slider-ticks span {
  font-size: 10px;
  color: rgba(75,60,125,0.45);
  width: 16px;
  text-align: center;
  font-weight: 500;
}
.prep-slider-feedback {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.prep-slider-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--twist-primary-color, #4B3C7D);
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}
.prep-slider-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #6b4f3a);
  font-style: italic;
  min-height: 20px;
  transition: opacity 0.2s;
}

/* Start button */
.prep-start-btn {
  margin-top: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.prep-screen-hint {
  font-size: 11px;
  color: var(--muted, #6b4f3a);
  opacity: 0.7;
  margin: 20px 0 0;
  font-style: italic;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .prep-screen { padding: 32px 24px 28px; margin: 18px auto 0; }
  .prep-screen-title { font-size: 20px; }
  .prep-screen-sub { font-size: 13.5px; }
  .prep-slider-wrap { max-width: 100%; padding: 20px 18px 16px; }
  .prep-slider-value { font-size: 24px; }
}
@media (max-width: 480px) {
  .prep-screen { padding: 24px 16px 22px; margin: 12px 8px 0; border-radius: 16px; }
  .prep-screen-title { font-size: 18px; }
  .prep-screen-sub { font-size: 13px; margin-bottom: 22px; }
  .prep-slider-wrap { padding: 16px 14px 12px; }
  .prep-slider-value { font-size: 22px; }
  .prep-start-btn { padding: 12px 28px; font-size: 14px; width: 100%; }
}

/* ── Bloc : Risques régionaux ──────────────────────────────────── */
.regional-risk-panel {
  margin-top: 0;
  width: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px 16px 18px;
}
.region-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}
.region-select option {
  background: #2a1f50;
  color: #fff;
}
.region-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-stat-card {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.region-stat-card:hover {
  background: rgba(255,255,255,0.10);
}
.region-stat-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  padding-top: 2px;
}
.region-stat-body {
  flex: 1;
  min-width: 0;
}
.region-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #29c6c0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.region-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 2px 0;
}
.region-stat-detail {
  font-size: 10.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ── Bloc : Conseils culture du risque ─────────────────────────── */
.culture-tips-panel {
  margin-top: 22px;
  width: 100%;
}
.culture-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.culture-tip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: tipFadeIn 0.4s ease both;
  animation-delay: var(--tip-delay, 0ms);
  transition: background 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.culture-tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tip-accent, #29c6c0);
}
.culture-tip-card:nth-child(1) { --tip-accent: #29c6c0; }
.culture-tip-card:nth-child(2) { --tip-accent: #a78bfa; }
.culture-tip-card:nth-child(3) { --tip-accent: #f5a623; }
.culture-tip-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, var(--tip-accent, #29c6c0) -40%, transparent 50%);
  opacity: 0.06;
  pointer-events: none;
}
.culture-tip-card:hover {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.culture-tip-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.culture-tip-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .twist-premium-result .result-left { width: 100%; }
}
@media (max-width: 600px) {
  .bm-row { grid-template-columns: 86px 1fr 44px; }
}

/* ── Transition entre niveaux ───────────────────────────────────── */
.level-transition-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: #29c6c0;
  background: rgba(41,198,192,0.10);
  border-left: 3px solid #29c6c0;
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 14px;
  transition: opacity 0.5s ease, max-height 0.5s ease, padding 0.4s ease, margin 0.4s ease;
  overflow: hidden;
  max-height: 80px;
  opacity: 1;
}
.level-transition-hint.lvl-hint-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ── Points de vigilance (cohérence) ───────────────────────────── */
.coherence-banner { margin-bottom: 16px; }
.coherence-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  border-left: 3px solid;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.55;
}
.coherence-item:last-child { margin-bottom: 0; }
.coherence-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.coherence-label { font-weight: 700; color: #fff; }
.coherence-msg   { color: rgba(255,255,255,0.70); }
.coherence-warning { border-color: #ffb000; background: rgba(255,176,0,0.08); }
.coherence-alert   { border-color: #ff6b6b; background: rgba(255,107,107,0.08); }
.coherence-success { border-color: #29c6c0; background: rgba(41,198,192,0.08); }

/* ── Benchmark sectoriel ───────────────────────────────────────── */
.benchmark-panel {
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px 18px 20px;
  margin-bottom: 0;
}

/* Score comparatif : votre score vs médiane */
.bm-score-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.bm-score-col {
  text-align: center;
}
.bm-score-big {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}
.bm-score-sector {
  color: rgba(255,255,255,0.5);
}
.bm-score-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.bm-score-vs {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.bm-score-diff {
  font-size: 18px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}
.bm-score-diff.pos { color: #29c6c0; background: rgba(41,198,192,0.12); }
.bm-score-diff.neg { color: #ff7a8a; background: rgba(255,122,138,0.12); }

/* Jauge globale avec phrase claire */
.bm-gauge-wrap { margin: 8px 0 14px; }
.bm-gauge-sentence {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.45;
}
.bm-gauge-sentence em { color: #29c6c0; font-style: normal; }
.bm-gauge-sentence small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.48);
  margin-top: 3px;
}
.bm-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: visible;
}
.bm-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bm-gauge-median {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 18px;
  background: rgba(255,255,255,0.50);
  border-radius: 2px;
}
.bm-gauge-median::after {
  content: 'médiane';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}

/* Sélecteur secteur */
.sector-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}
.sector-select option { background: #3b2f66; color: #fff; }
.sector-select:focus  { border-color: #29c6c0; }

/* Tableau par axe avec barres */
.bm-axes { display: flex; flex-direction: column; gap: 8px; }
.bm-row {
  display: grid;
  grid-template-columns: 104px 1fr 48px;
  align-items: center;
  gap: 8px;
}
.bm-axis { font-size: 10.5px; color: rgba(255,255,255,0.60); font-weight: 500; }
.bm-bar-wrap {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: visible;
}
.bm-bar-mine {
  height: 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bm-bar-bench {
  position: absolute;
  top: -3px;
  height: 12px;
  width: 2px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
}
.bm-delta { font-size: 10.5px; font-weight: 700; text-align: right; }
.bm-delta.pos { color: #29c6c0; }
.bm-delta.neg { color: #ff9f9b; }
.bm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.32);
}
.bm-legend-tick {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Points forts/faibles vs secteur */
.bm-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.bm-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.bm-highlight--pos {
  background: rgba(41,198,192,0.08);
  border: 1px solid rgba(41,198,192,0.18);
}
.bm-highlight--neg {
  background: rgba(255,122,138,0.08);
  border: 1px solid rgba(255,122,138,0.18);
}
.bm-highlight-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bm-highlight-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
}

/* ── Roadmap 3 horizons ─────────────────────────────────────────── */
.roadmap-section { margin-bottom: 6px; }
.roadmap-grid { display: flex; flex-direction: column; gap: 10px; }

.horizon-card {
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  transition: background 0.18s;
}
.horizon-card:hover { background: rgba(255,255,255,0.12); }
.horizon-stripe { height: 3px; }
.horizon-card-body { padding: 12px 16px 14px; }

.horizon-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.horizon-number { font-size: 11px; font-weight: 800; opacity: 0.65; min-width: 22px; }
.horizon-label  { font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.horizon-sub    { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.38); text-transform: uppercase; letter-spacing: 0.5px; }

.horizon-axis-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 2px 9px 2px 6px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.horizon-axis-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.horizon-axis-score { font-weight: 700; color: rgba(255,255,255,0.85); }

.horizon-title { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 5px; line-height: 1.35; }
.horizon-desc  { font-size: 11px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 8px; }
.horizon-meta  { display: flex; gap: 14px; font-size: 10px; color: rgba(255,255,255,0.42); margin-bottom: 8px; flex-wrap: wrap; }

/* Steps */
.action-steps { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.action-steps li label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.62);
  cursor: pointer;
  line-height: 1.5;
}
.step-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.step-checkbox:checked { background: #29c6c0; border-color: #29c6c0; }
.step-checkbox:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* KPI chip */
.action-kpi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: #29c6c0;
  background: rgba(41,198,192,0.12);
  border: 1px solid rgba(41,198,192,0.22);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* Boutons */
.action-send { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   TRAIL : Parcours par niveau avec pastilles
   ══════════════════════════════════════════════════════════════════ */
/* ── Phase Stepper ──────────────────────────────────────────── */
.phase-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  position: relative;
}
.phase-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.35);
  transition: all 0.3s ease;
}
.phase-active .phase-dot {
  border-color: #29c6c0;
  background: rgba(41,198,192,0.15);
  color: #29c6c0;
  box-shadow: 0 0 12px rgba(41,198,192,0.25);
}
.phase-done .phase-dot {
  border-color: #29c6c0;
  background: #29c6c0;
  color: #fff;
}
.phase-partial .phase-dot {
  border-color: rgba(167,139,250,0.5);
  background: rgba(167,139,250,0.1);
  color: #a78bfa;
}
.phase-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.phase-name {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}
.phase-active .phase-name { color: #29c6c0; }
.phase-done .phase-name { color: rgba(255,255,255,0.7); }
.phase-partial .phase-name { color: #a78bfa; }
.phase-future .phase-dot { border-color: rgba(255,255,255,0.10); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.20); }
.phase-future .phase-name { color: rgba(255,255,255,0.25); }
.phase-progress {
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  min-height: 12px;
}
.phase-active .phase-progress { color: rgba(41,198,192,0.7); }
.phase-done .phase-progress { color: #29c6c0; font-weight: 700; }
.phase-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  align-self: center;
  margin-top: 14px;
  min-width: 20px;
  border-radius: 2px;
  overflow: hidden;
}
.phase-connector-fill {
  height: 100%;
  background: #29c6c0;
  border-radius: 2px;
  transition: width 0.4s ease;
}
@media (max-width: 600px) {
  .phase-step { min-width: 52px; }
  .phase-dot { width: 24px; height: 24px; font-size: 10px; }
  .phase-name { font-size: 7.5px; }
}

/* ══════════════════════════════════════════════════════════════════
   CHAPÔ : Culture du risque (page résultats)
   ══════════════════════════════════════════════════════════════════ */
.result-chapo {
  padding: 0 28px;
  margin-bottom: 4px;
}
.chapo-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(41,198,192,0.12), rgba(78,62,130,0.15));
  border: 1px solid rgba(41,198,192,0.22);
  backdrop-filter: blur(4px);
}
.chapo-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.chapo-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.chapo-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin: 0 0 6px;
}
.chapo-content strong { color: #29c6c0; }
.chapo-content em { color: #a78bfa; font-style: normal; font-weight: 600; }
.chapo-twist {
  font-size: 10.5px !important;
  color: rgba(255,255,255,0.55) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 6px;
  margin-bottom: 0 !important;
}
.chapo-twist a {
  color: #29c6c0;
  text-decoration: none;
  font-weight: 600;
}
.chapo-twist a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .result-chapo { padding: 0 14px; }
  .chapo-inner { flex-direction: column; gap: 8px; padding: 14px; }
}

/* ══════════════════════════════════════════════════════════════════
   EMAIL GATE : Plan d'action flouté + déblocage par email
   ══════════════════════════════════════════════════════════════════ */
.roadmap-gate { position: relative; }
.roadmap-gate.locked .recommendations {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}
/* .result-actions est désormais hors du gate : pas de blur */
.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
#resetBtn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 4px;
}
#resetBtn:hover {
  background: rgba(255,107,107,0.12);
  border-color: rgba(255,107,107,0.35);
  color: #ff6b6b;
}

.roadmap-overlay {
  display: none;
}
.roadmap-gate.locked .roadmap-overlay {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  background: rgba(59,47,102,0.45);
  backdrop-filter: blur(2px);
  border-radius: 12px;
}

.email-gate-card {
  background: linear-gradient(180deg, #3b2f66, #35295f);
  border: 1px solid rgba(41,198,192,0.22);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.gate-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.email-gate-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.email-gate-card p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin: 0 0 16px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-input {
  font-family: inherit;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.gate-input::placeholder { color: rgba(255,255,255,0.35); }
.gate-input:focus { border-color: #29c6c0; }

.gate-btn {
  font-size: 13px !important;
  padding: 11px 18px !important;
}

.gate-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  cursor: pointer;
  margin-top: 4px;
}
.gate-rgpd input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #29c6c0;
  flex-shrink: 0;
  cursor: pointer;
}
.gate-rgpd a {
  color: #29c6c0;
  text-decoration: underline;
}
.gate-rgpd a:hover {
  color: #fff;
}

.gate-legal {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.32);
  line-height: 1.5;
}

.gate-success {
  font-size: 18px;
  font-weight: 700;
  color: #29c6c0;
  padding: 24px;
  animation: gateFadeIn 0.4s ease;
}
@keyframes gateFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════════
   RESUME BANNER : Reprise de progression
   ══════════════════════════════════════════════════════════════════ */
.resume-banner {
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(41,198,192,0.12), rgba(78,62,130,0.08));
  border: 1px solid rgba(41,198,192,0.18);
  padding: 12px 18px;
  animation: slideDown 0.4s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.resume-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.resume-icon { font-size: 20px; }
.resume-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.resume-btn {
  font-size: 11px !important;
  padding: 6px 14px !important;
}

/* ══════════════════════════════════════════════════════════════════
   BENCHMARK PERSONNALISÉ : Formulaire inline
   ══════════════════════════════════════════════════════════════════ */
.bm-custom-form {
  padding: 10px 0;
}
.bm-custom-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.bm-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.bm-custom-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  width: 100px;
  text-align: right;
  flex-shrink: 0;
}
.bm-custom-input {
  font-family: inherit;
  font-size: 11px;
  width: 60px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  text-align: center;
}
.bm-custom-input:focus { border-color: #29c6c0; }

/* ── Footer professionnel ───────────────────────────────────────── */
.diag-footer-pro {
  background: linear-gradient(135deg, #2a1f50 0%, #1e1740 100%);
  color: rgba(255,255,255,0.85);
  padding: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  /* Break out of .diag-wrap max-width */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 32px 28px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-col p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col a {
  color: #29c6c0;
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 14px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  max-width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.footer-bottom {
  text-align: center;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.15);
}
.footer-bottom small {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  transition: color .2s;
}
.footer-bottom a:hover {
  color: #29c6c0;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 24px 24px;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px 20px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   RÉSULTATS V2 — Layout empilé (stacked)
   ══════════════════════════════════════════════════════════════════ */

/* Override two-column layout */
.result-v2-stacked .result-stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.result-v2-stacked .result-left,
.result-v2-stacked .result-right {
  width: 100%;
  max-width: 100%;
  flex-shrink: unset;
}

/* Grille principale 2 colonnes */
/* Cadre unifié : Score + Radar */
.result-unified-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 22px 28px 24px;
  overflow: hidden;
  text-align: center;
  margin: 20px 0 0;
}
.result-unified-card > .score-card-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}
.result-unified-card > .badge {
  margin-bottom: 18px;
}
.unified-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.unified-left {
  text-align: center;
}
.unified-left .score-ring {
  margin: 0 auto;
}
.unified-left .score-level-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}
.unified-left .result-title {
  margin: 10px 0 4px;
  font-size: 18px;
}
.unified-left .summary {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}
.radar-interp {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border-left: 3px solid rgba(41,198,192,0.4);
  text-align: left;
  max-width: 380px;
}
.unified-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.unified-right canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* unified-inner géré par le bloc 900px ci-dessous */

/* Bloc générique */
.result-block {
  width: 100%;
  padding: 16px 0;
}

/* 11. Cohérence — bannière distincte */
.result-coherence-block {
  padding: 12px 0;
}
.result-coherence-block .coherence-banner {
  border-radius: 12px;
  border-left: 4px solid #f5a623;
}

/* 7. Radar — intégré dans le cadre unifié (pas de style spécifique) */

/* 8. Conseils — 3 blocs en ligne */
.result-tips-row {
  padding: 16px 0;
}

/* 14. Plan d'action — pleine largeur, fond distinct */
.result-roadmap-full {
  max-width: 100%;
  padding: 28px 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  margin: 16px 0;
}

/* 15. Boutons d'action centré */
.result-cta-block {
  text-align: center;
  padding: 20px 0;
}
.result-cta-block .result-actions {
  justify-content: center;
}

/* 9+12+13. Zone complémentaire — 2 colonnes */
.result-complementary {
  max-width: 100%;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  margin: 12px 0 0;
}
.complementary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  align-items: stretch;
}
.complementary-grid > * {
  display: flex;
  flex-direction: column;
}
.complementary-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

/* Chapô V2 amélioré */
.result-chapo-v2 .chapo-inner {
  border-radius: 16px;
  padding: 28px 32px;
}
.result-chapo-v2 .chapo-cta {
  margin-top: 10px;
  font-weight: 600;
  color: #29c6c0;
  font-size: 15px;
}

/* Micro-labels qualitatifs sur les barres (retirés) */

/* culture-tips géré par le bloc 900px en fin de fichier */
@media (max-width: 640px) {
  .complementary-grid {
    grid-template-columns: 1fr;
  }
  .result-block { padding: 16px 0; }
  .result-roadmap-full { padding: 20px 14px; }
  .result-complementary { padding: 18px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION PARCOURS D'ACCOMPAGNEMENT
   ═══════════════════════════════════════════════════════════════════ */
.result-parcours-block {
  padding: 28px 0;
}
.parcours-intro {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.parcours-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.parcours-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
.parcours-card-header {
  padding: 22px 20px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.parcours-card-header.parcours-entreprise {
  background: linear-gradient(135deg, rgba(41,198,192,0.12), rgba(75,60,125,0.10));
}
.parcours-card-header.parcours-territoire {
  background: linear-gradient(135deg, rgba(255,138,0,0.12), rgba(75,60,125,0.10));
}
.parcours-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}
.parcours-card-header h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}
.parcours-baseline {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Steps timeline */
.parcours-steps {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: none;
}
.parcours-steps li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.parcours-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -14px;
  width: 2px;
  background: rgba(255,255,255,0.10);
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--twist-blue-2, #4E3E82), var(--twist-blue, #29c6c0));
  position: relative;
  z-index: 1;
}
.parcours-steps li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.parcours-steps li strong {
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
}
.step-detail {
  font-size: 11.5px;
  color: rgba(255,255,255,0.50);
  line-height: 1.4;
}

/* Meta tags */
.parcours-meta {
  display: flex;
  gap: 12px;
  padding: 0 20px 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.parcours-meta span {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

/* CTA in card */
.parcours-cta {
  margin: 0 20px 20px;
  text-align: center;
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
}
.parcours-entreprise ~ .parcours-steps .step-num { background: linear-gradient(135deg, #29c6c0, #4E3E82); }
.parcours-territoire ~ .parcours-steps .step-num { background: linear-gradient(135deg, #ff8a00, #4E3E82); }

/* RDV block */
.parcours-rdv {
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.parcours-rdv p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin: 0 0 12px;
}
.parcours-rdv-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  transition: all 0.2s ease;
}
.parcours-rdv-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(41,198,192,0.5);
  color: #29c6c0;
}
.parcours-rdv-tel {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.parcours-rdv-tel a {
  color: #29c6c0;
  text-decoration: none;
}
.parcours-rdv-tel a:hover { text-decoration: underline; }

/* Territoire card step-num override */
.parcours-card:nth-child(2) .step-num {
  background: linear-gradient(135deg, #ff8a00, #4E3E82);
}

/* Responsive */
@media (max-width: 768px) {
  .parcours-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .parcours-card-header { padding: 18px 16px 14px; }
  .parcours-steps { padding: 14px 16px; gap: 10px; }
  .parcours-cta { margin: 0 16px 16px; }
  .parcours-meta { padding: 0 16px 12px; }
}

/* ── Responsive mobile (résultats) ─────────────────────────────────────── */
@media (max-width: 640px) {
  .result-block { padding: 16px 12px; }

  /* Score ring */
  .score-ring-wrap { transform: scale(0.85); transform-origin: center; }

  /* Radar */
  #radarCanvas { width: 220px !important; height: 220px !important; }

  /* Benchmark gauges */
  .benchmark-row { flex-direction: column; gap: 6px; }
  .benchmark-label { min-width: unset; }

  /* Coherence banners */
  .coherence-item { flex-direction: column; gap: 6px; }

  /* Tips cards */
  .tips-grid { grid-template-columns: 1fr; }

  /* Roadmap */
  .roadmap-grid { grid-template-columns: 1fr; }
  .horizon-card { margin-bottom: 12px; }

  /* Parcours cards */
  .parcours-grid { flex-direction: column; }
  .parcours-card { width: 100%; }

  /* Action buttons */
  .action-send { flex-direction: column; gap: 8px; }
  .action-send .btn { width: 100%; text-align: center; }

  /* Email gate */
  .gate-form { flex-direction: column; }
  .gate-input { width: 100%; }

  /* Complementary grid */
  .complementary-grid { grid-template-columns: 1fr; }

  /* Tables in results */
  .benchmark-table { font-size: 11px; }
  .benchmark-table td, .benchmark-table th { padding: 4px 6px; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Corrections mobiles complémentaires
   ═══════════════════════════════════════════════════════════════════ */

/* Culture tips : passer en colonne plus tôt */
@media (max-width: 900px) {
  .culture-tips { grid-template-columns: 1fr; }
}

/* Score + radar : 1 colonne dès 900px */
@media (max-width: 900px) {
  .unified-inner { grid-template-columns: 1fr; gap: 20px; }
  .unified-right canvas { max-width: 300px; }
}

/* Benchmark highlights : 1 colonne sur mobile */
@media (max-width: 640px) {
  .bm-highlights { grid-template-columns: 1fr; }
  .bm-row { grid-template-columns: 60px 1fr 40px; gap: 6px; }
}

/* Email gate : s'adapter aux petits écrans */
@media (max-width: 480px) {
  .roadmap-overlay { padding: 12px; }
  .email-gate-card { max-width: 100%; width: 100%; padding: 20px 16px; }
  .email-gate-card h3 { font-size: 13px; }
}

/* Boutons CTA parcours : full-width sur mobile */
@media (max-width: 640px) {
  .parcours-cta { display: block; width: calc(100% - 32px); margin: 0 16px 12px; text-align: center; }
  .parcours-rdv-btn { display: block; width: 100%; text-align: center; }
}

/* Radar canvas très petit écran */
@media (max-width: 360px) {
  #radarCanvas { width: 180px !important; height: 180px !important; }
}
