/* fondation-design 040526 — :root supprimé : tokens.css est désormais source unique de vérité.
   Variables --bg, --bg-card, --bg-elevated, --text, --text-dim, --accent, --accent-2, --border,
   --danger sont fournies par /nour/v9/static/tokens.css (chargé AVANT ce fichier dans parcours_v9.html). */

* { box-sizing: border-box; margin: 0; padding: 0; }
/* D2 sprint UX4 040526 — scroll vertical garanti :
   - overflow-y: auto explicite (jamais hidden) pour body et html
   - overflow-x: clip remplace hidden (clip ne crée pas de scroll container, autorise le scroll vertical interne)
   - .phase aligné en flex-start (le contenu long peut dépasser et scroller naturellement) */
html, body { overflow-y: auto !important; height: auto !important; min-height: 100vh; }
body.nour-v9 { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, sans-serif; min-height: 100vh; overflow-x: clip; }
.phase { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 4rem 2rem 2rem; transition: opacity 0.4s; overflow-y: visible; }
/* Phase-email reste centrée verticalement (contenu court) */
#phase-email { align-items: center; }
.phase.hidden { display: none; }

/* fondation-design 040526 — Header universel 56px (sous stepper z:1000).
   Logo + toggle FR/EN + toggle dark/light. Toujours fixed top:0 z:999. */
.eb-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--header-h, 56px); padding: 0 var(--space-4, 16px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-sans);
}
.eb-header-logo {
  display: inline-flex; align-items: center; gap: var(--space-2, 8px);
  color: var(--accent); text-decoration: none;
  font-weight: 700; font-size: 15px;
}
.eb-header-logo-img { width: 24px; height: 24px; display: block; }
.eb-header-logo-text { letter-spacing: -0.01em; }
.eb-header-nav { display: flex; gap: var(--space-2, 8px); align-items: center; }
.eb-header .btn-nav {
  font-size: 11px; padding: 6px 12px;
  background: transparent; color: var(--text-muted, var(--text));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer; transition: color var(--t-fast, 150ms), border-color var(--t-fast, 150ms);
  min-height: 32px;
}
.eb-header .btn-nav:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) {
  .eb-header { padding: 0 var(--space-3, 12px); height: 52px; }
  .eb-header-logo-text { display: none; } /* mobile : juste l'icône */
}

/* fondation-design 040526 — body padding-top pour ne pas être caché par header.
   Couplage : header(56) toujours visible, stepper(48) by-dessus quand visible.
   ux3-stepper-active gardé pour compat (geste de mise à jour automatique). */
body.nour-v9 { padding-top: var(--header-h, 56px); }
body.nour-v9 .phase { padding-top: calc(var(--space-4, 16px) + var(--space-2)); }

/* N6 sprint UX3 030526 — Stepper horizontal fixed top-center (refonte fix-stepper 040526).
   Plein largeur, fond dark blur, chip "1 · Profil" inline, active gold #C9A84C. */
.ux3-stepper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 48px; padding: 0 16px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.ux3-stepper.hidden { display: none !important; }
.ux3-stepper ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 1 auto; min-width: 0; max-width: 100%;
}
.ux3-stepper .step {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 0 6px;
  font-size: 13px; line-height: 1;
  color: rgba(255, 255, 255, 0.30); /* future = blanc opacity 0.3 par défaut */
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.25s, font-weight 0.25s, opacity 0.25s;
}
/* Séparateur "·" entre num et label */
.ux3-stepper .step-num::after { content: " · "; opacity: 0.55; margin: 0 2px; font-weight: 400; }
.ux3-stepper .step-num { font-weight: 600; }
/* Étapes passées = blanc opacity 0.5 */
.ux3-stepper .step.done { color: rgba(255, 255, 255, 0.50); }
/* Étape active = gold + bold */
.ux3-stepper .step.active { color: var(--accent); font-weight: 600; }
.ux3-stepper .step.active .step-num { color: var(--accent); }
/* Séparateurs entre étapes (chevron léger) */
.ux3-stepper .step + .step::before {
  content: "›"; opacity: 0.25; margin-right: 6px; color: #fff; font-weight: 400;
}
/* Élément mobile "Étape X/6" — masqué desktop */
.ux3-stepper-mobile { display: none; color: var(--accent); font-size: 13px; font-weight: 600; }
@media (max-width: 640px) {
  .ux3-stepper ol { display: none; }
  .ux3-stepper-mobile { display: inline-block; }
}

/* Padding-top global pour éviter que le contenu passe sous le stepper */
body.nour-v9.ux3-stepper-active { padding-top: 56px; }
body.nour-v9.ux3-stepper-active .phase { min-height: calc(100vh - 56px); }

/* Sprint 040526 BLOC 4 — transitions équivalentes framer-motion (vanilla JS) */
@keyframes phaseFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes qcmSlideUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes canvasFadeOut { from { opacity: 1; } to { opacity: 0.3; } }
.phase-enter         { animation: phaseFadeIn 300ms ease-out; }
.qcm-enter           { animation: qcmSlideUp 280ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.canvas-validating   { animation: canvasFadeOut 350ms ease-in forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .phase-enter, .qcm-enter, .canvas-validating { animation: none !important; }
}
.phase-inner { max-width: 720px; width: 100%; }

/* D1 sprint UX4 040526 — panneau explicatif (.ped-banner et .liv-ped-banner) plafonné en largeur,
   max-width: 280px par défaut sur desktop (form en colonne ne passe pas au-dessus en plein écran).
   Comportement : transformé en sticky-info compact avec icône ℹ️ + tooltip extension. */
.ped-banner, .liv-ped-banner {
  max-width: 280px !important;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 56px; /* sous le stepper top:0 height:48 + 8px gap */
  z-index: 5;
  font-size: 12px !important;
  line-height: 1.5;
}
/* Variante canvas reste compacte 48px (sprint UX3 N4) — override sticky avec full-width */
.ped-banner.ped-banner-canvas {
  max-width: 100% !important;
}
@media (max-width: 768px) {
  /* Mobile : panneau caché par défaut, accessible via bouton ℹ️ injecté */
  .ped-banner, .liv-ped-banner {
    max-width: 100% !important;
    position: static;
    font-size: 11px !important;
  }
  .ped-banner.ped-collapsed, .liv-ped-banner.ped-collapsed { display: none; }
}
.ped-info-toggle {
  display: none;
  position: fixed; bottom: 16px; left: 16px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(212,168,67,0.18); border: 1px solid var(--accent); color: var(--accent);
  font-size: 18px; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
  .ped-info-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
.phase-badge { display: inline-block; padding: 4px 12px; background: rgba(212,168,67,0.12); color: var(--accent); border-radius: 999px; font-size: 11pt; font-weight: 600; margin-bottom: 20px; }
h1 { font-size: 36pt; line-height: 1.15; margin-bottom: 16px; color: var(--text); font-weight: 700; }
.subtitle { color: var(--text-dim); font-size: 13pt; margin-bottom: 32px; line-height: 1.5; }
input, textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 14px 18px; border-radius: 10px; font-size: 12pt; font-family: inherit; resize: vertical; transition: border 0.2s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
button { background: var(--accent-2); color: #fff; border: none; padding: 14px 28px; border-radius: 20px; font-size: 13pt; font-weight: 600; cursor: pointer; transition: transform 0.15s, background 0.2s; margin-top: 16px; }
button:hover { background: #17b87a; transform: translateY(-1px); }
button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.prompts-hint { background: var(--bg-card); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 8px; margin: 20px 0; font-size: 11pt; color: var(--text-dim); }
.prompts-hint strong { color: var(--text); }
.word-counter { color: var(--text-dim); font-size: 10pt; margin-top: 10px; }
.word-counter.ok { color: var(--accent-2); }

/* MARCHE */
.marche-question { background: var(--bg-card); padding: 24px; border-radius: 12px; margin-bottom: 20px; }
.q-text { font-size: 14pt; margin-bottom: 16px; line-height: 1.4; }
.qcm-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qcm-btn { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: 8px; cursor: pointer; text-align: left; transition: all 0.15s; font-size: 11pt; background: var(--bg-elevated); }
.qcm-btn:hover { border-color: var(--accent); }
.qcm-btn.selected { background: rgba(212,168,67,0.12); border-color: var(--accent); }
.progress-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 24px; }
.progress-fill { height: 100%; background: var(--accent-2); transition: width 0.4s; }
.marche-nav { display: flex; gap: 12px; }

/* CANVAS */
.canvas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
/* N3 sprint UX3 030526 — cases Canvas en hauteur auto, contenu jamais coupé. */
.canvas-field { background: var(--bg-card); padding: 16px; border-radius: 12px; cursor: pointer; transition: all 0.15s; border: 1px solid var(--border); height: auto; min-height: 80px; overflow: visible; }
.canvas-field:hover { border-color: var(--accent); }
.canvas-field label { display: block; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 6px; }
.canvas-field .value { font-size: 12pt; color: var(--text); line-height: 1.5; white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; }
.canvas-field.editing .value textarea { width: 100%; background: transparent; border: none; color: var(--text); font-size: 12pt; padding: 0; font-family: inherit; resize: vertical; min-height: 60px; }

/* DT */
.dt-inner { max-width: 960px; }
.dt-tours { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.dt-tour { background: var(--bg-card); border-radius: 14px; padding: 20px; border: 1px solid var(--border); opacity: 0.35; transition: all 0.5s; }
.dt-tour.active { opacity: 1; border-color: var(--accent); box-shadow: 0 0 24px rgba(212,168,67,0.15); }
.dt-tour.done { opacity: 0.65; border-color: var(--accent-2); }
.tour-header { font-size: 13pt; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tour-num { background: var(--accent); color: #000; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11pt; font-weight: 700; flex-shrink: 0; }
.agents-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.agent { background: var(--bg-elevated); padding: 18px 12px; border-radius: 10px; text-align: center; position: relative; transition: all 0.3s; }
.agent.active { border: 1px solid var(--accent); animation: agentPulse 1.5s infinite; }
.agent.done { border: 1px solid var(--accent-2); }
.agent-icon { font-size: 24pt; margin-bottom: 6px; }
.agent-name { font-weight: 700; font-size: 11pt; }
.agent-role { color: var(--text-dim); font-size: 9pt; margin-top: 2px; }
.agent-status { margin-top: 8px; font-size: 9pt; color: var(--accent-2); min-height: 14px; }
.dt-done { text-align: center; margin-top: 32px; padding: 30px; background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(29,158,117,0.08)); border-radius: 14px; border: 1px solid var(--border); }
.dt-done.hidden { display: none; }
.dt-done h2 { font-size: 22pt; color: var(--accent-2); margin-bottom: 12px; }
@keyframes agentPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(29,158,117,0.4); } 50% { box-shadow: 0 0 12px 4px rgba(29,158,117,0.2); } }

/* LIVRABLES */
.livrables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.livrable { background: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 16px; transition: all 0.3s; flex-wrap: wrap; }
.livrable.generating { border-color: var(--accent); }
.livrable.done { border-color: var(--accent-2); background: rgba(29,158,117,0.05); }
.livrable-icon { font-size: 28pt; flex-shrink: 0; }
.livrable-info { flex: 1; }
.livrable-name { font-weight: 600; font-size: 12pt; }
.livrable-status { color: var(--text-dim); font-size: 10pt; margin-top: 4px; }
.livrable.done .livrable-status { color: var(--accent-2); }
a.download-btn { display: inline-block; margin-top: 10px; padding: 8px 16px; background: var(--accent-2); color: #fff; border-radius: 20px; text-decoration: none; font-size: 10pt; font-weight: 600; }

/* EMAIL PHASE */
#phase-email .phase-inner { text-align: center; }
#phase-email input { max-width: 400px; text-align: left; }
#phase-email h1 { font-size: 42pt; }
.brand-badge { display: inline-block; font-size: 10pt; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.brand-logo { display: block; width: 40px; height: 40px; margin: 0 auto 16px; }

/* NAVIGATION RETOUR / ACCUEIL */
.phase-nav { display: flex; gap: 10px; margin-bottom: 24px; }
.btn-nav { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 7px 16px; border-radius: 20px; font-size: 10pt; font-weight: 500; cursor: pointer; margin-top: 0; transition: all 0.2s; }
.btn-nav:hover { background: var(--bg-card); color: var(--text); border-color: var(--accent); transform: none; }

/* CAROUSEL ÉDUCATIF */
.edu-carousel { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 20px 24px; margin-bottom: 28px; min-height: 72px; }
.edu-slide { font-size: 12pt; color: var(--text-dim); line-height: 1.65; }
.edu-slide.fadeIn { animation: slideIn 0.45s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.edu-slide-dots { display: flex; gap: 7px; margin-top: 14px; }
.edu-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.3s, transform 0.2s; flex-shrink: 0; }
.edu-dot.active { background: var(--accent); transform: scale(1.3); }

/* LOGO SVG LIVRABLE */
.livrable-logo { grid-column: span 2; flex-direction: column; align-items: flex-start; }
.logo-svg-preview { width: 100%; margin-top: 14px; }
.logo-svg-preview svg { width: 100%; height: auto; max-height: 140px; }
.btn-download-svg { display: inline-block; margin-top: 10px; padding: 8px 16px; background: var(--accent-2); color: #fff; border: none; border-radius: 20px; text-decoration: none; font-size: 10pt; font-weight: 600; cursor: pointer; }

/* VALIDATE CANVAS BUTTON */
.btn-validate-canvas { background: var(--accent-2); color: #fff; border-radius: 20px; }
.btn-validate-canvas:hover { background: #17b87a; }

/* LEILA TRANSITION MESSAGE */
#leila-msg { margin-top: 28px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
#leila-msg.visible { opacity: 1; transform: translateY(0); }
.leila-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.leila-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #000; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leila-name { color: var(--accent); font-weight: 700; font-size: 12pt; }
.leila-bubble { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 12px; padding: 16px 20px; font-size: 12pt; color: var(--text); line-height: 1.75; }

/* PHASE IDEES — Sélecteur d'idées */
.btn-pick-idea { background: var(--accent-2); color: #fff; border: none; border-radius: 20px; padding: 12px 28px; font-size: 13pt; font-weight: 700; cursor: pointer; transition: background .2s, opacity .2s; }
.btn-pick-idea:disabled { opacity: .35; cursor: default; }
.btn-pick-idea:not(:disabled):hover { background: #17b87a; }
#idees-grid::-webkit-scrollbar { width: 5px; }
#idees-grid::-webkit-scrollbar-track { background: transparent; }
#idees-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Q&A BLOCK */
.qa-block { margin: 32px 0 8px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.qa-title { font-size: 15pt; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.qa-subtitle { font-size: 10pt; color: #888; margin: 0 0 16px; }
.qa-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qa-chip { background: transparent; border: 1px solid var(--border); border-radius: 20px; color: #aaa; font-size: 9pt; padding: 6px 14px; cursor: pointer; transition: border-color .2s, color .2s; }
.qa-chip:hover { border-color: var(--accent); color: var(--accent); }
.qa-input-row { display: flex; gap: 8px; }
#qa-input { flex: 1; background: #111; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 11pt; outline: none; }
#qa-input:focus { border-color: var(--accent); }
#qa-btn { background: var(--accent); color: #000; border: none; border-radius: 8px; padding: 10px 20px; font-weight: 700; font-size: 11pt; cursor: pointer; transition: opacity .2s; }
#qa-btn:disabled { opacity: .4; cursor: default; }
.qa-answer { margin-top: 16px; padding: 16px 20px; background: #111; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 12px; font-size: 11pt; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.satisfaction-block { margin: 24px 0 8px; padding: 24px; background: var(--bg-card); border: 1px solid #6366F1; border-left: 3px solid #6366F1; border-radius: 16px; }
.satisfaction-title { font-size: 13pt; font-weight: 700; color: #a5b4fc; margin: 0 0 4px; }
.satisfaction-subtitle { font-size: 10pt; color: #888; margin: 0 0 16px; }

/* ── MOBILE RESPONSIVE (P1-4) ───────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 26pt; }
  .phase { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
  .phase-inner { max-width: 100%; }

  /* Canvas: stack to 1 col */
  .canvas-grid { grid-template-columns: 1fr; }

  /* Livrables: 1 col */
  .livrables-grid { grid-template-columns: 1fr; }
  .livrable-logo { grid-column: span 1; }

  /* DT agents: responsive grid on mobile */
  .agents-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .agent {
    max-width: 100%;
    padding: 12px 8px;
    overflow: hidden;
  }
  .agent-icon { font-size: 18pt; }
  .agent-name { font-size: 10pt; }
  .agent-role { font-size: 8pt; }

  /* QCM options: 1 col on very small */
  .qcm-options { grid-template-columns: 1fr; }

  /* Buttons: full width, tap-friendly */
  button { min-height: 44px; font-size: 14pt; width: 100%; margin-top: 10px; }
  .btn-nav { width: auto; min-height: 36px; font-size: 10pt; }
  a.download-btn { min-height: 36px; display: inline-block; }
  .btn-download-svg { min-height: 36px; }

  /* Canvas table scroll */
  .canvas-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Upgrade block table scroll */
  #upgrade-block table { font-size: .75rem; }

  /* Version switcher wrap */
  #version-switcher { flex-wrap: wrap; gap: 6px; }

  /* Phase nav */
  .phase-nav { flex-wrap: wrap; }

  /* Plans table scroll */
  #upgrade-block > div > div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 400px) {
  h1 { font-size: 22pt; }
  .phase-badge { font-size: 9pt; }
  .qcm-btn { padding: 10px 8px; font-size: 10pt; }
  .agents-grid { grid-template-columns: 1fr !important; }
  video, iframe { max-width: 100%; height: auto; display: block; }
}

/* ────────────────────────────────────────────────────────────
   Onboarding (Sprint 250425) — remplace dump textarea
   ──────────────────────────────────────────────────────────── */
.onb-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.onb-fieldset { border: 1px solid var(--border, #222); border-radius: 12px; padding: 18px 16px; margin: 0; }
.onb-fieldset legend { padding: 0 8px; font-size: 11pt; color: var(--accent); font-weight: 600; letter-spacing: .3px; }
.onb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .onb-row { grid-template-columns: 1fr; } }
.onb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.onb-field > span { font-size: 10.5pt; color: var(--text-dim, #aaa); font-weight: 500; }
.onb-field input[type=text], .onb-field input[type=email], .onb-field select, .onb-field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; background: #111; border: 1px solid var(--border, #333);
  border-radius: 10px; color: var(--text, #fff); font-size: 11pt; font-family: inherit; outline: none; transition: border-color .15s;
}
.onb-field input:focus, .onb-field select:focus, .onb-field textarea:focus { border-color: var(--accent); }
.onb-field textarea { resize: vertical; }
.onb-select-wrap { position: relative; }
.onb-select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; font-size: 13px; }
.onb-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.onb-counter { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--text-soft, #666); }

.onb-add-member {
  all: unset; cursor: pointer; min-height: 44px; padding: 10px 16px;
  border: 1px dashed var(--border, #333); border-radius: 10px;
  color: var(--accent); background: transparent;
  text-align: center; font-size: 10.5pt; margin-top: 6px;
  transition: border-color .15s, background .15s, color .15s;
}
/* B14 sprint UX2 030526 : hover en or (jamais vert). Avant : --accent-2 (vert) leak via all:unset incomplet. */
.onb-add-member:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.10);
  color: var(--accent);
}
.onb-add-member:focus, .onb-add-member:active {
  background: rgba(212, 168, 67, 0.15);
  outline: none;
}
.onb-team-member {
  background: var(--bg-card-2); border: 1px solid var(--border, #222); border-radius: 10px;
  padding: 12px; margin-top: 8px; position: relative;
}
.onb-team-remove {
  position: absolute; top: 6px; right: 6px; background: transparent; border: none; color: #e11d48;
  cursor: pointer; font-size: 18px; min-width: 44px; min-height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.onb-team-remove:hover, .onb-team-remove:focus { background: rgba(225,29,72,.12); outline: none; }

.onb-stade-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px;
}
@media (min-width: 768px) { .onb-stade-grid { grid-template-columns: repeat(4, 1fr); } }
.onb-stade-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 8px; background: var(--bg-card-2); border: 1.5px solid var(--border, #333);
  border-radius: 12px; cursor: pointer; min-height: 80px; transition: all .15s; gap: 6px;
}
.onb-stade-card:hover { border-color: var(--accent); }
.onb-stade-card input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.onb-stade-card:has(input:checked) { border-color: var(--accent); background: rgba(212,168,67,.08); }
.onb-stade-icon { font-size: 22px; }
.onb-stade-label { font-size: 10pt; color: var(--text, #fff); font-weight: 500; text-align: center; }

.onb-cta {
  all: unset; cursor: pointer; min-height: 48px; padding: 12px 28px; background: var(--accent);
  color: #111; font-weight: 700; border-radius: 10px; text-align: center; font-size: 11pt; letter-spacing: .3px;
  transition: opacity .15s, background .15s;
}
.onb-cta:hover:not([disabled]) { background: #e5b959; }
.onb-cta[disabled] { opacity: .4; cursor: not-allowed; }
.onb-cta.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.onb-cta.ghost:hover { background: rgba(212,168,67,.08); }

/* Market snapshot */
.onb-market-loading { text-align: center; padding: 40px 20px; color: var(--text-dim, #aaa); }
.onb-dots { display: inline-flex; gap: 8px; margin-bottom: 16px; }
.onb-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  animation: onb-bounce 1.2s infinite ease-in-out;
}
.onb-dots span:nth-child(2) { animation-delay: .2s; }
.onb-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes onb-bounce { 0%, 80%, 100% { transform: scale(.4); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.onb-market-result {
  background: var(--bg-card-2); border: 1px solid var(--accent); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 18px 18px; margin: 16px 0 12px; color: var(--text, #fff);
  font-size: 11pt; line-height: 1.6; white-space: pre-wrap; text-align: left;
}
.onb-market-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.onb-market-actions .onb-cta { flex: 1 1 200px; }
.onb-market-correction { margin-top: 16px; }

/* QCM */
.onb-qcm-q { font-size: 22pt; text-align: center; margin: 20px 0 24px; line-height: 1.25; }
@media (max-width: 520px) { .onb-qcm-q { font-size: 17pt; } }
.onb-qcm-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.onb-qcm-card {
  all: unset; cursor: pointer; padding: 14px 18px; background: var(--bg-card-2);
  border: 1.5px solid var(--border, #333); border-radius: 12px; color: var(--text, #fff); font-size: 11pt;
  transition: all .15s; min-height: 44px; display: flex; align-items: center;
}
.onb-qcm-card:hover { border-color: var(--accent); }
.onb-qcm-card.selected { border-color: var(--accent); background: rgba(212,168,67,.08); }

/* Done */
.onb-done { text-align: center; padding: 60px 20px; }
.onb-check { font-size: 72px; animation: onb-pop .4s ease-out; margin-bottom: 20px; }
@keyframes onb-pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
