/* ===========================================================
   Campus Art & Fenêtres — Design System v4 — Charte officielle A&F
   Gris charbon #2a292a + vert lime Pantone 367C #B6D23D
   =========================================================== */

:root {
  /* ── Palette Art & Fenêtres officielle ── */
  --af-charcoal:   #2a292a;
  --af-charcoal-2: #3d3c3d;
  --af-lime:       #B6D23D;
  --af-lime-d:     #94AE2A;
  --af-lime-50:    #F3F8D6;
  --af-lime-100:   #E5F0A0;
  --af-white:      #FFFFFF;
  --af-off-white:  #F7F7F6;
  --af-gray-100:   #EBEBEA;
  --af-gray-300:   #C4C3C4;
  --af-gray-500:   #7A797A;
  --af-gray-700:   #4A4949;

  /* ── Sémantique ── */
  --ok:     #2d7a3e;
  --ok-bg:  #ECFDF5;
  --ok-br:  #6FCCA5;
  --bad:    #C8251D;
  --bad-bg: #FEF2F2;
  --bad-br: #F5A8A5;

  /* ── Aliases compatibilité code existant ── */
  --blue-950: var(--af-charcoal);
  --blue-900: var(--af-charcoal);
  --blue-800: var(--af-charcoal-2);
  --blue-700: var(--af-lime);
  --blue-600: var(--af-lime-d);
  --blue-400: var(--af-lime-100);
  --blue-200: var(--af-gray-100);
  --blue-100: var(--af-lime-50);
  --blue-50:  var(--af-lime-50);
  --orange:   var(--af-lime);
  --orange-d: var(--af-lime-d);
  --orange-50: var(--af-lime-50);
  --orange-100: var(--af-lime-100);
  --ink:   var(--af-charcoal);
  --ink-2: var(--af-gray-700);
  --muted: var(--af-gray-500);
  --line:  var(--af-gray-100);
  --bg:    var(--af-off-white);
  --card:  var(--af-white);

  /* ── Elevation (ombres grises sur fond blanc) ── */
  --shadow-xs: 0 1px 2px rgba(42,41,42,.06);
  --shadow-sm: 0 2px 4px rgba(42,41,42,.08), 0 1px 2px rgba(42,41,42,.05);
  --shadow:    0 4px 12px rgba(42,41,42,.10), 0 2px 4px rgba(42,41,42,.06);
  --shadow-lg: 0 12px 28px rgba(42,41,42,.14), 0 4px 8px rgba(42,41,42,.07);

  /* ── Shape ── */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-pill: 99px;

  --bnav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOP BAR — marine premium
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: .6rem;
  padding: calc(.75rem + env(safe-area-inset-top)) .9rem .75rem;
  background: var(--af-charcoal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.brand { display: flex; align-items: center; gap: .6rem; flex: 1; cursor: pointer; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  padding: 4px; flex: none;
  border: 1px solid rgba(255,255,255,.2);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.04rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: .7rem; opacity: .78; font-style: italic; margin-top: .05rem; }
.topbar .back, .topbar .ghost {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15);
  color: #fff; width: 38px; height: 38px; border-radius: 11px;
  font-size: 1.25rem; cursor: pointer; flex: none; display: flex;
  align-items: center; justify-content: center; transition: background .12s;
}
.topbar .ghost { font-size: 1rem; }
.topbar .back:active, .topbar .ghost:active { background: rgba(255,255,255,.28); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.view { max-width: 1140px; margin: 0 auto; padding: 1.1rem 1.4rem 3rem; }
.loading { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.appfoot { max-width: 1140px; margin: 0 auto; padding: .8rem 1.4rem; color: var(--muted); font-size: .72rem; text-align: center; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME HERO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  margin: .1rem 0 1.4rem;
  padding: 1.3rem 1.1rem 1.2rem;
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -30px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.hero::after {
  content: '';
  position: absolute; bottom: -20px; right: 30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.02em; }
.hero p { color: rgba(255,255,255,.82); margin: 0; font-size: .92rem; line-height: 1.5; }
.search {
  display: block; width: 100%; margin-top: 1rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; background: #fff; color: var(--ink);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(0,120,200,.18); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION TITLE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sec-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.5rem 0 .7rem;
}
.sec-title h2 {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PARCOURS CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cards { display: flex; flex-direction: column; gap: .75rem; }
.pcard {
  display: block; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem; border: 1px solid var(--line);
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .1s ease, box-shadow .15s;
  border-left: 4px solid var(--blue-600);
  position: relative;
}
.pcard:active { transform: scale(.99); box-shadow: var(--shadow-xs); }
.pcard-top { display: flex; align-items: center; gap: .75rem; }
.pcard-emoji { font-size: 1.7rem; flex: none; }
.pcard h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pcard .role { font-size: .71rem; color: var(--muted); margin-top: .1rem; font-weight: 500; }
.pcard p { margin: .5rem 0 .2rem; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }

.badge {
  display: inline-flex; align-items: center;
  font-size: .67rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: var(--radius-pill); letter-spacing: .02em;
}
.badge.live { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-br); }
.badge.soon { background: var(--orange-50); color: var(--orange-d); border: 1px solid var(--orange-100); }
.badge.lvl { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.badge.blue { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.badge-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; align-items: center; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRESS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bar { height: 7px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-top: .7rem; }
.bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--af-lime-d), var(--af-lime));
  border-radius: var(--radius-pill); transition: width .5s ease;
}
.bar-label { font-size: .73rem; color: var(--muted); margin-top: .3rem; font-weight: 500; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PARCOURS DETAIL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.detail-head { margin: .2rem 0 1.1rem; }
.detail-head .role {
  font-size: .75rem; color: var(--blue-700); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.detail-head h1 { font-size: 1.45rem; font-weight: 800; margin: .25rem 0 .4rem; letter-spacing: -.02em; }
.detail-head p { color: var(--ink-2); margin: 0; font-size: .92rem; }

.mod {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: .9rem 1rem; margin-bottom: .65rem;
  display: flex; gap: .85rem; align-items: flex-start; cursor: pointer;
  text-align: left; width: 100%; transition: transform .08s ease, box-shadow .12s;
}
.mod:active { transform: scale(.995); box-shadow: var(--shadow-xs); }
.mod .tick {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: transparent; margin-top: .1rem;
  transition: background .2s, border-color .2s;
}
.mod.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.mod .m-body { flex: 1; min-width: 0; }
.mod h3 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 700; }
.mod p { margin: 0; font-size: .83rem; color: var(--muted); line-height: 1.4; }
.mod .m-meta { margin-top: .4rem; display: flex; gap: .35rem; flex-wrap: wrap; }

.chip {
  font-size: .64rem; font-weight: 600; padding: .15rem .48rem;
  border-radius: 6px; background: var(--bg); color: var(--ink-2);
}
.chip.vid { background: var(--orange-50); color: var(--orange-d); }
.chip.quiz { background: var(--blue-50); color: var(--blue-700); }
.chip.atelier { background: #EDE9FE; color: #6D28D9; font-weight: 700; }
.chip.score { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.chip.steps { background: var(--blue-50); color: var(--blue-700); }

/* Atelier IA = carte VIOLETTE */
.mod.atelier {
  background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1.5px solid #A855F7;
  box-shadow: 0 3px 12px rgba(124,58,237,.15);
}
.mod.atelier .tick { border-color: #A855F7; }
.mod.atelier h3 { color: #6D28D9; }
.mod.atelier h3::before { content: "🎙️ "; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODULE / LESSON VIEW
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.embed {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(42,41,42,.18);
  margin: .5rem 0 1rem;
  position: relative;
  background: #000;
  width: 100%;
}
.embed iframe {
  display: block; width: 100%;
  aspect-ratio: 16/9; border: none;
}
.embed::before {
  content: '▶ VIDÉO';
  position: absolute; top: .7rem; left: .7rem;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px; z-index: 1;
  pointer-events: none;
}
.vbonus {
  background: #f8f8f7; border: 1px solid #e5e5e3;
  border-radius: 10px; padding: .7rem 1rem; margin: .2rem 0 1.1rem;
}
.vbonus summary {
  font-weight: 700; font-size: .85rem; color: #2a292a;
  cursor: pointer; list-style: none; padding: .1rem 0;
}
.vbonus summary::before { content: '+ '; color: #B6D23D; }

/* ━━ PROSE / SLIDE CONTENT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.prose, .step-prose {
  background: transparent;
  border: none; box-shadow: none;
  padding: .2rem 0 1rem;
  font-size: .95rem; line-height: 1.7; color: #2a292a;
  max-width: 100%;
  width: 100%;
}

/* Chaque h2 = titre de section avec pastille lime */
.prose h2, .step-prose h2 {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.05rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #2a292a 0%, #3d3c3c 100%);
  border-left: 5px solid #B6D23D;
  border-radius: 0 10px 10px 0;
  padding: .7rem 1rem .7rem .9rem;
  margin: 1.2rem 0 .5rem;
  letter-spacing: -.01em;
}
.prose h2::before, .step-prose h2::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #B6D23D;
  border-radius: 50%;
  flex: none;
}
.prose h2:first-child, .step-prose h2:first-child { margin-top: 0; }

.prose h3, .step-prose h3 {
  font-size: .92rem; font-weight: 800; color: #2a292a;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 1.2rem 0 .4rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid #e8e8e4;
}

/* Paragraphes */
.prose p, .step-prose p {
  margin: 0 0 .9rem;
  padding: 0 .2rem;
}

/* Listes → chips visuels */
.prose ul, .step-prose ul {
  list-style: none;
  margin: .3rem 0 .8rem;
  padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.prose li, .step-prose li {
  display: flex; align-items: flex-start; gap: .5rem;
  background: #f7f7f5;
  border: 1px solid #e4e4e0;
  border-radius: 10px;
  padding: .5rem .85rem;
  font-size: .88rem; line-height: 1.45;
  color: #2a292a;
  flex: 0 1 auto;
  min-width: 140px;
  max-width: 100%;
}
.prose li::before, .step-prose li::before {
  content: '▸';
  color: #B6D23D;
  font-size: 1em;
  flex: none;
  margin-top: .05em;
}
.prose strong, .step-prose strong { color: #2a292a; font-weight: 800; }

/* Images dans les slides */
.prose img, .step-prose img {
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  margin: .8rem auto;
  display: block;
}

/* Blockquote = encadré mise en avant */
.prose blockquote, .step-prose blockquote {
  background: linear-gradient(135deg, #f8fde8, #f3f9d6);
  border-left: 4px solid #B6D23D;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-style: normal;
  color: #2a292a;
}
.prose table { width: 100%; border-collapse: collapse; margin: .6rem 0; font-size: .86rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .55rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); font-weight: 700; color: var(--blue-900); }
.prose code, .step-prose code {
  background: #f0f0ee; border-radius: 4px;
  padding: 2px 6px; font-size: .87em; color: #2a292a;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BATTLECARD
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.battlecard {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a292a 100%);
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  margin-bottom: 1rem;
}
.battlecard .bc-head {
  background: linear-gradient(135deg, #B6D23D, #94AE2A);
  color: #1a1a1a;
  font-weight: 900; font-size: 1.1rem;
  padding: 1rem 1.4rem;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: .5rem;
}
.battlecard .bc-body {
  padding: 1.4rem;
  font-size: .9rem; line-height: 1.65;
  color: rgba(255,255,255,.88);
}
.battlecard .bc-body ul { padding-left: 1.2rem; }
.battlecard .bc-body ul li { margin-bottom: .5rem; }
.battlecard .bc-body ul li::marker { color: #B6D23D; }
.battlecard .bc-body strong { color: #B6D23D; font-weight: 700; }
.battlecard .bc-body h3 {
  color: #B6D23D; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; margin: 1.2rem 0 .5rem;
  border-bottom: 1px solid rgba(182,210,61,.3); padding-bottom: .3rem;
}
.battlecard .bc-body p { margin: 0 0 .7rem; }
.battlecard .bc-actions {
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.battlecard .bc-actions .btn {
  background: rgba(182,210,61,.15); color: #B6D23D;
  border: 1px solid rgba(182,210,61,.35); border-radius: 8px;
  padding: .5rem 1.2rem; font-size: .85rem; font-weight: 700; cursor: pointer;
  width: auto;
}
.battlecard .bc-actions .btn:hover { background: rgba(182,210,61,.25); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUIZ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.quiz {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.quiz h3 { margin: .1rem 0 .2rem; font-weight: 700; }
.quiz .q { margin: 1rem 0; padding-top: .6rem; border-top: 1px solid var(--line); }
.quiz .q:first-of-type { border-top: 0; }
.quiz .q-text, .quiz-q {
  font-size: 1rem; font-weight: 700; color: #2a292a;
  background: #f8f8f7; border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 1rem;
  border-left: 4px solid #2a292a;
}
.opt, .quiz-opt {
  display: block; width: 100%; text-align: left;
  border: 2px solid #e5e5e3; background: #fff;
  border-radius: 10px; padding: .8rem 1rem; margin: .5rem 0;
  cursor: pointer; font-size: .9rem; font-family: inherit;
  transition: all .15s; color: #2a292a;
  display: flex; align-items: center; gap: .7rem;
}
.opt:hover, .quiz-opt:hover { border-color: #B6D23D; background: #f8fde8; }
.opt:active { transform: scale(.997); }
.opt.sel, .quiz-opt.selected { border-color: #B6D23D; background: rgba(182,210,61,.1); font-weight: 700; }
.opt.correct, .quiz-opt.correct { border-color: #2d7a3e; background: rgba(45,122,62,.08); color: #1a5e2a; }
.opt.wrong, .quiz-opt.wrong { border-color: #DC3545; background: rgba(220,53,69,.06); color: #a01020; }
.opt.disabled, .quiz-opt.disabled { cursor: default; }
.explain {
  font-size: .84rem; color: var(--ink-2); margin: .35rem 0 0;
  padding: .5rem .7rem; background: var(--bg); border-radius: var(--radius-sm);
}
.explain.ok { background: var(--ok-bg); color: var(--ok); }
.explain.no { background: var(--bad-bg); color: var(--bad); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: var(--radius-sm); padding: .82rem 1.2rem;
  font-size: .95rem; font-weight: 700; cursor: pointer; font-family: inherit;
  background: var(--af-lime); color: var(--af-charcoal);
  width: 100%; transition: opacity .12s, transform .08s;
  box-shadow: 0 2px 8px rgba(182,210,61,.35);
}
.btn:active { transform: scale(.99); opacity: .93; }
.btn.sec {
  background: #fff; color: var(--af-charcoal);
  border: 1.5px solid var(--af-gray-100); box-shadow: var(--shadow-xs);
}
.btn.flat { background: var(--bg); color: var(--ink-2); box-shadow: none; border: 1px solid var(--line); }
.btn.orange { background: linear-gradient(135deg, var(--orange), var(--orange-d)); box-shadow: 0 2px 8px rgba(216,139,28,.28); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: .6rem; margin-top: .5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   QUIZ RESULT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.result {
  text-align: center; padding: 1.3rem; border-radius: var(--radius); margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.result.pass { background: var(--ok-bg); border: 1px solid var(--ok-br); }
.result.fail { background: var(--bad-bg); border: 1px solid var(--bad-br); }
.result .score { font-size: 2.1rem; font-weight: 800; margin: .2rem 0; }
.result .pass-t { color: var(--ok); }
.result .fail-t { color: var(--bad); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CERTIFICATE BANNER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.certif {
  margin: 1.2rem 0; padding: 1.2rem; border-radius: var(--radius-lg); text-align: center;
  background: linear-gradient(135deg, var(--blue-50), #fff);
  border: 1px solid var(--blue-200); box-shadow: var(--shadow);
}
.certif .seal { font-size: 2.4rem; }
.certif h3 { margin: .3rem 0; color: var(--blue-900); }
.certif small { color: var(--muted); }

@media (min-width: 620px) {
  .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IMAGES LEÇON + QUIZ MULTI-TYPES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.md-img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: .5rem 0; display: block; }
.q-img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: .2rem 0 .55rem; display: block; cursor: zoom-in; }
.q-img:active { transform: scale(1.01); }
.assoc-row { display: flex; align-items: center; gap: .5rem; margin: .32rem 0; flex-wrap: wrap; }
.assoc-g { flex: 1 1 42%; min-width: 120px; font-weight: 600; }
.assoc-sel {
  flex: 1 1 46%; min-width: 140px; padding: .5rem .55rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; font-size: .92rem;
}
.assoc-sel.correct { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.assoc-sel.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.assoc-fix { font-size: .82rem; color: var(--ok); font-weight: 600; margin-left: .35rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   USER CHIP (topbar)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.userchip {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 11px; height: 34px; min-width: 34px;
  padding: 0 .6rem; font-size: .78rem; font-weight: 700; cursor: pointer; flex: none;
  white-space: nowrap; font-family: inherit; transition: background .12s;
}
.userchip.logged {
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--blue-900); font-size: .85rem;
}
.userchip:active { transform: scale(.96); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHAPITRAGE — stepper module
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stepper { display: flex; flex-direction: column; min-height: calc(100vh - 220px); width: 100%; max-width: 100%; }

/* Header du module — fond sombre premium */
.step-head {
  background: linear-gradient(135deg, #2a292a 0%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 1.2rem 1.4rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.step-head::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #B6D23D, #94AE2A, #B6D23D);
  background-size: 200% 100%;
  animation: shimmerBar 3s ease-in-out infinite;
}
@keyframes shimmerBar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.step-head .crumb {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-bottom: .4rem;
  display: flex; align-items: center; gap: .4rem;
}
.step-head .crumb::before {
  content: '';
  width: 14px; height: 2px;
  background: #B6D23D; border-radius: 2px; flex: none;
}
.step-title-mod {
  font-size: 1.18rem; font-weight: 900; color: #fff;
  margin: 0 0 .8rem; letter-spacing: -.02em;
  line-height: 1.3;
}

/* Barre de progression */
.step-prog { margin-bottom: .7rem; }
.step-prog-bar {
  height: 6px; background: rgba(255,255,255,.15);
  border-radius: 99px; overflow: hidden; margin-bottom: .35rem;
}
.step-prog-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #B6D23D, #94AE2A);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(182,210,61,.4);
}
.step-prog-lbl { font-size: .72rem; color: rgba(255,255,255,.55); }

/* Dots de navigation — petits cercles avec tooltip */
.step-dots { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; cursor: pointer;
  transition: all .2s; padding: 0; position: relative;
  flex: none;
}
.step-dot i { display: none; }
.step-dot span {
  display: none; position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%); background: #2a292a; color: #fff;
  font-size: .65rem; padding: 3px 7px; border-radius: 5px;
  white-space: nowrap; z-index: 10; pointer-events: none;
  border: 1px solid rgba(255,255,255,.15);
}
.step-dot:hover span { display: block; }
.step-dot.seen { background: rgba(182,210,61,.5); }
.step-dot.active {
  background: #B6D23D; width: 24px; border-radius: 5px;
  box-shadow: 0 0 8px rgba(182,210,61,.5);
}

.step-stage { flex: 1; min-height: 40vh; padding: 0 .1rem; width: 100%; }
.step-prose { margin-bottom: 1rem; }
.step-prose h2:first-child, .step-prose h3:first-child { margin-top: 0; }
.step-vid-cap { color: var(--muted); font-size: .84rem; margin: .1rem 0 1rem; text-align: center; font-style: italic; }

/* Fin de module — encadré lime festif */
.step-done {
  text-align: center; padding: 2.5rem 1rem;
  background: linear-gradient(135deg, #f8fde8, #fff);
  border-radius: 16px; border: 2px solid #B6D23D;
  margin-bottom: 1rem;
}
.step-done .big {
  font-size: 4rem; margin-bottom: .5rem;
  display: block;
  animation: arenaPulse 2s ease-in-out infinite;
}
.step-done h3 { font-size: 1.3rem; font-weight: 900; color: #2a292a; margin: .3rem 0; }
.step-done p { color: #666; margin-bottom: 1.2rem; }
.step-done .btn {
  background: #B6D23D; color: #1a1a1a; border: none;
  padding: .75rem 2rem; border-radius: 10px;
  font-size: .95rem; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(182,210,61,.35);
  width: auto; display: inline-flex;
}

/* Navigation stepper — sticky, visuel amélioré */
.step-nav {
  position: sticky; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom));
  display: flex; gap: 1rem; justify-content: space-between;
  margin-top: 1.2rem; padding: 1rem 0 .5rem;
  border-top: 1px solid rgba(42,41,42,.1);
  background: linear-gradient(180deg, rgba(244,247,252,0), var(--bg) 30%);
}
.step-btn {
  border-radius: 10px;
  font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit;
  transition: all .15s; border: 2px solid transparent;
  padding: .75rem 1.5rem;
}
.step-btn.prev {
  background: #f5f5f4; color: #2a292a; border-color: #e0e0df;
  flex: 0 0 auto;
}
.step-btn.prev:hover { background: #e8e8e7; }
.step-btn.next {
  background: #B6D23D; color: #1a1a1a;
  border-color: #B6D23D; flex: 1; margin-left: auto;
  box-shadow: 0 4px 16px rgba(182,210,61,.3);
}
.step-btn.next:hover {
  background: #94AE2A; border-color: #94AE2A;
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(182,210,61,.4);
}
.step-btn:active { transform: scale(.985); opacity: .92; }
.step-btn.hidden { display: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IDENTITÉ / COMPTE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth { max-width: 440px; margin: 1rem auto; display: flex; flex-direction: column; gap: .7rem; }
.auth-head { text-align: center; margin-bottom: .4rem; }
.auth-emoji { font-size: 2.2rem; }
.auth-head h1 { font-size: 1.4rem; font-weight: 800; margin: .3rem 0 .2rem; }
.auth-head p { color: var(--ink-2); margin: 0; font-size: .9rem; }
.avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--af-charcoal-2), var(--af-charcoal));
  color: #fff; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .2rem;
}
.auth-tabs { display: flex; gap: .4rem; background: var(--bg); border-radius: var(--radius-sm); padding: .25rem; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: .6rem; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: .9rem; font-family: inherit; }
.auth-tab.active { background: #fff; color: var(--blue-800); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: .6rem; }
.auth-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.auth-form input { padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; background: #fff; font-family: inherit; }
.auth-form input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(0,120,200,.15); }
.auth-err { color: var(--bad); font-size: .84rem; min-height: 1.1em; font-weight: 600; }
.auth-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .84rem; padding: .4rem; font-family: inherit; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATS (tiles + listes)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .3rem 0 .4rem; }
.stat-tile {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: .9rem 1rem; text-align: center;
}
.st-val { font-size: 1.5rem; font-weight: 800; color: var(--blue-800); line-height: 1.15; }
.st-lbl { font-size: .72rem; color: var(--muted); margin-top: .15rem; font-weight: 500; }
.stat-list { display: flex; flex-direction: column; gap: .6rem; }
.stat-row {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); padding: .8rem .9rem;
}
.stat-row.ok { border-color: var(--ok-br); }
.stat-row.warn { border-color: var(--bad-br); }
.sr-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sr-top strong { font-size: .95rem; }
.sr-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .4rem; font-size: .75rem; color: var(--muted); }
.heat { height: 8px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin: .5rem 0 .1rem; }
.heat-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--af-lime-100), var(--af-lime) 60%, var(--af-lime-d));
  border-radius: var(--radius-pill);
}

@media (min-width: 620px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ESPACE ENTRAÎNEMENT (section dédiée)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.train-hero {
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
  border-radius: var(--radius-lg); padding: 1.4rem 1.1rem 1.3rem; margin: .1rem 0 1.4rem;
  color: #fff; position: relative; overflow: hidden;
}
.train-hero::before {
  content: '';
  position: absolute; top: -20px; right: -10px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.train-hero-icon { font-size: 2.2rem; margin-bottom: .4rem; }
.train-hero h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.02em; }
.train-hero p { color: rgba(255,255,255,.82); margin: 0; font-size: .9rem; line-height: 1.5; }

.train-grid { display: flex; flex-direction: column; gap: .75rem; }
.train-card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--af-lime);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem;
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .08s ease, box-shadow .12s;
}
.train-card:active { transform: scale(.99); box-shadow: var(--shadow-xs); }
.train-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; }
.train-card-icon {
  font-size: 1.6rem; flex: none; width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--af-lime-50), var(--af-lime-100));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.train-card h3 { margin: 0 0 .1rem; font-size: 1.02rem; font-weight: 700; color: var(--af-charcoal); }
.train-card-path { font-size: .72rem; color: var(--muted); }
.train-card p { margin: .4rem 0 .5rem; font-size: .86rem; color: var(--ink-2); }
.train-card-cta {
  font-size: .82rem; font-weight: 700; color: var(--af-lime-d); margin-top: .3rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIMULATEUR DE VENTE IA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim { display: flex; flex-direction: column; gap: .8rem; }
.sim-intro { text-align: center; padding: .4rem 0 .2rem; }
.sim-intro .sim-emoji { font-size: 2rem; }
.sim-intro h3 { margin: .2rem 0 .15rem; font-weight: 800; }
.sim-intro p { color: var(--muted); font-size: .87rem; margin: 0; line-height: 1.5; }
.sim-scn { display: grid; gap: .7rem; }
.sim-card {
  display: block; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem .9rem; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .08s;
}
.sim-card:active { transform: scale(.99); }
.sim-card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.sim-cli { font-weight: 700; font-size: .84rem; color: var(--ink); }
.sim-card h4 { margin: .1rem 0 .25rem; font-size: 1rem; color: var(--blue-800); font-weight: 700; }
.sim-card p { margin: 0; color: var(--ink-2); font-size: .85rem; }
.sim-go { display: inline-block; margin-top: .5rem; font-size: .82rem; font-weight: 700; color: var(--orange); }
.sim-warn {
  background: var(--orange-50); border: 1px solid var(--orange-100);
  color: #7A3200; border-radius: var(--radius-sm); padding: .65rem .85rem; font-size: .84rem;
}
.sim-note { color: var(--muted); font-size: .79rem; text-align: center; margin: .2rem 0; }

/* contexte + fil */
.sim-ctx {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: .65rem .85rem;
}
.sim-ctx strong { display: block; margin-bottom: .15rem; color: var(--blue-900); }
.sim-ctx p { margin: 0; font-size: .85rem; color: var(--ink-2); }
.sim-log {
  display: flex; flex-direction: column; gap: .55rem; max-height: 48vh; overflow-y: auto;
  padding: .45rem; background: var(--bg); border-radius: var(--radius-sm);
}
.sim-bubble {
  max-width: 85%; padding: .55rem .75rem; border-radius: 14px;
  font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow-xs); word-wrap: break-word;
}
.sim-bubble .sim-who { display: block; font-size: .68rem; font-weight: 700; opacity: .7; margin-bottom: .12rem; }
.sim-bubble.client { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sim-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--af-charcoal-2), var(--af-charcoal));
  color: #fff; border-bottom-right-radius: 4px;
}
.sim-bubble.me .sim-who { color: #fff; opacity: .85; }
.sim-bubble.sys { align-self: center; background: var(--bad-bg); color: var(--bad); font-size: .82rem; max-width: 95%; }
.sim-bubble.typing { align-self: flex-start; display: flex; gap: .25rem; padding: .7rem .8rem; }
.sim-bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #bbb;
  animation: simblink 1.2s infinite both;
}
.sim-bubble.typing span:nth-child(2) { animation-delay: .2s; }
.sim-bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes simblink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }

/* barre vocale */
.sim-voicebar { display: flex; gap: .5rem; align-items: stretch; margin-bottom: .5rem; }
.sim-mic {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  padding: .6rem .7rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: none; transition: background .12s, transform .06s;
}
.sim-mic:active { transform: scale(.98); }
.sim-mic.rec {
  background: linear-gradient(135deg, #e23b3b, #b81d1d); color: #fff; border-color: #b81d1d;
  animation: simpulse 1s infinite;
}
.sim-mic:disabled { opacity: .55; cursor: default; }
@keyframes simpulse {
  0%,100%{box-shadow:0 0 0 0 rgba(226,59,59,.5)}
  50%{box-shadow:0 0 0 6px rgba(226,59,59,0)}
}
.sim-soundtog {
  flex: none; display: flex; align-items: center; gap: .3rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  cursor: pointer; padding: .6rem .7rem; font: inherit; font-size: .82rem;
}
.sim-soundtog.off { opacity: .6; }
.sim-speaking { align-self: flex-start; font-size: .78rem; color: var(--muted); padding: .1rem .2rem; animation: simblink 1.4s infinite; }

.sim-input { display: flex; gap: .5rem; align-items: flex-end; }
.sim-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .7rem; font: inherit; font-size: .9rem; background: #fff;
}
.sim-input textarea:focus { outline: none; border-color: var(--blue-600); }
.sim-input .btn { flex: none; width: auto; padding: .6rem 1rem; }
.sim-actions { display: flex; justify-content: center; margin-top: .2rem; }
.sim-eval-load { text-align: center; color: var(--muted); padding: 1rem; font-size: .9rem; }

/* résultat coach */
.sim-result { text-align: center; border-radius: var(--radius); padding: 1.1rem; color: #fff; }
.sim-result.pass { background: linear-gradient(135deg, #27a052, #0A7A5A); }
.sim-result.fail { background: linear-gradient(135deg, var(--orange), var(--orange-d)); }
.sim-score-big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.sim-score-big span { font-size: 1.1rem; font-weight: 600; opacity: .85; }
.sim-verdict { font-weight: 700; margin-top: .2rem; }
.sim-appr { margin: .5rem 0 0; font-size: .88rem; opacity: .95; }
.sim-phases { display: grid; gap: .6rem; }
.sim-phase-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .2rem; }
.sim-phase-top b { color: var(--blue-700); }
.sim-block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .85rem;
}
.sim-block h4 { margin: 0 0 .35rem; font-size: .92rem; font-weight: 700; }
.sim-block ul { margin: 0; padding-left: 1.15rem; }
.sim-block li { font-size: .86rem; margin: .2rem 0; color: var(--ink-2); }

/* --- Tirage + mode ciblé --- */
.sim-draw {
  width: 100%; background: linear-gradient(135deg, #1a2200, #243000);
  border: 2px solid #B6D23D; border-radius: 16px; color: #fff;
  padding: 1.4rem 1.6rem; cursor: pointer;
  display: flex; align-items: center; gap: 1.2rem;
  transition: all .2s; margin: 1.5rem 0;
  text-align: left;
}
.sim-draw:hover {
  background: linear-gradient(135deg, #243000, #2e3c00);
  box-shadow: 0 0 0 1px rgba(182,210,61,.5), 0 12px 40px rgba(182,210,61,.2);
  transform: translateY(-2px);
}
.sim-draw.loading { opacity: .6; pointer-events: none; }
.sim-draw-ic { font-size: 2.2rem; flex: none; }
.sim-draw-txt { flex: 1; display: flex; flex-direction: column; }
.sim-draw-txt strong {
  display: block; font-size: 1rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em; color: #B6D23D; margin-bottom: .25rem;
}
.sim-draw-txt small { font-size: .82rem; color: rgba(255,255,255,.6); }
.sim-draw .sim-go {
  background: #B6D23D; color: #1a1a1a; font-weight: 900;
  padding: .6rem 1.2rem; border-radius: 10px; font-size: .85rem;
  letter-spacing: .03em; white-space: nowrap; flex: none;
}
.sim-blind-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--orange-d);
  background: var(--orange-50); border-radius: var(--radius-pill); padding: .1rem .5rem; vertical-align: middle;
}

/* --- Sélecteur mode exigence — dark arena --- */
.sim-modes { margin: .2rem 0 .7rem; }
.sim-modes-lbl { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.4); margin-bottom: .75rem; }
.sim-modes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sim-mode {
  background: #1a1a1a; border: 2px solid #333; border-radius: 16px; color: #fff;
  padding: 1.5rem 1.2rem; cursor: pointer; transition: all .2s; text-align: left;
  display: flex; flex-direction: column; gap: .5rem; min-height: 160px; position: relative;
}
.sim-mode:hover { border-color: #B6D23D; background: #1f2200; }
.sim-mode.active {
  border-color: #B6D23D;
  background: linear-gradient(135deg, #1a2200, #0f1800);
  box-shadow: 0 0 0 1px rgba(182,210,61,.3), 0 8px 32px rgba(182,210,61,.12);
}
.sim-mode.active::before {
  content: '✓ SÉLECTIONNÉ';
  position: absolute; top: .6rem; right: .7rem;
  font-size: .6rem; font-weight: 800; color: #B6D23D; letter-spacing: .1em;
}
.sim-mode-ic { font-size: 2rem; }
.sim-mode-l { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.sim-mode.active .sim-mode-l { color: #B6D23D; }
.sim-mode small { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.4; }
.sim-mode-tag { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: var(--radius-pill); padding: .1rem .5rem; vertical-align: middle; }
.sim-mode-tag.entrainement { color: var(--ok); background: var(--ok-bg); }
.sim-mode-tag.expertise { color: var(--orange-d); background: var(--orange-50); }
@media(max-width: 430px) { .sim-modes-row { grid-template-columns: 1fr; } }

/* --- Arena Hero --- */
.sim-arena-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a2800 100%);
  border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
  color: #fff; position: relative; overflow: hidden; margin-bottom: 2rem;
}
.sim-arena-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, transparent, #B6D23D, transparent);
}
.sim-arena-title {
  font-size: 1.7rem; font-weight: 900; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; margin: .8rem 0 .4rem;
}
.sim-arena-sub { font-size: 1rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }
.sim-arena-pills { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.sim-arena-pill {
  background: rgba(182,210,61,.15); border: 1px solid rgba(182,210,61,.35);
  color: #B6D23D; font-size: .75rem; font-weight: 700; padding: 4px 12px;
  border-radius: 99px; letter-spacing: .04em;
}
.sim-arena-icon {
  font-size: 2.8rem; display: inline-block;
  animation: arenaPulse 2s ease-in-out infinite;
}
@keyframes arenaPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(182,210,61,0)); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(182,210,61,0.6)); }
}

/* --- Séparateur de section dark --- */
.sim-section-sep {
  display: flex; align-items: center; gap: .8rem;
  margin: 1.5rem 0 1rem;
  color: rgba(255,255,255,.3); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.sim-section-sep::before, .sim-section-sep::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12);
}

/* --- Cards scénarios ciblés dark --- */
.sim-scn { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .75rem; }
.sim-scn-card {
  background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 1rem; cursor: pointer; transition: all .15s; color: #fff; text-align: left;
}
.sim-scn-card:hover {
  border-color: rgba(182,210,61,.5); background: #1f2200;
  transform: translateY(-2px);
}
.sim-scn-name { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.sim-scn-desc { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.4; }
.sim-scn-badge {
  display: inline-block; margin-top: .6rem;
  font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: rgba(182,210,61,.15); color: #B6D23D;
  text-transform: uppercase; letter-spacing: .06em;
}

/* --- Barre progression 4 phases --- */
.sim-stepper { display: flex; gap: .3rem; margin: .5rem 0 .35rem; }
.sim-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .22rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: .4rem .2rem; background: #fff;
  transition: all .2s;
}
.sim-step-n {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--ink-2); font-size: .78rem; font-weight: 800; flex: none;
  transition: background .2s, color .2s;
}
.sim-step-l { font-size: .65rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15; }
.sim-step.done .sim-step-n { background: var(--ok-bg); color: var(--ok); }
.sim-step.done { border-color: var(--ok-br); background: var(--ok-bg); }
.sim-step.active { border-color: var(--af-lime); background: var(--af-lime-50); }
.sim-step.active .sim-step-n { background: var(--af-lime); color: var(--af-charcoal); }
.sim-step.active .sim-step-l { color: var(--af-charcoal); font-weight: 700; }

.sim-phase-hint {
  font-size: .8rem; color: var(--ink-2); background: var(--af-lime-50);
  border: 1px solid var(--af-lime-100); border-radius: var(--radius-sm);
  padding: .5rem .7rem; margin-bottom: .5rem;
}
.sim-phase-hint b { color: var(--af-charcoal); }

/* ── JAUGE DE SATISFACTION CLIENT (feature v2) ── */
.sim-satisfaction {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .65rem .85rem; margin-bottom: .5rem;
  transition: border-color .3s;
}
.sim-satisfaction.validated { border-color: var(--ok-br); background: var(--ok-bg); }
.sim-sat-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--ink-2); margin-bottom: .35rem;
}
.sim-sat-header b { font-size: .8rem; color: var(--blue-900); }
.sim-sat-pct {
  font-weight: 800; font-size: .88rem;
  color: var(--blue-700); transition: color .3s;
}
.sim-satisfaction.validated .sim-sat-pct { color: var(--ok); }
.sim-sat-bar {
  height: 9px; background: var(--line); border-radius: var(--radius-pill);
  overflow: hidden; position: relative;
}
.sim-sat-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--af-lime-100), var(--af-lime));
  transition: width .7s cubic-bezier(.4, 0, .2, 1);
  min-width: 0;
}
.sim-sat-fill.high { background: linear-gradient(90deg, #0A9E78, var(--ok)); }
.sim-sat-fill.validated { background: linear-gradient(90deg, var(--ok), #0B6E50); }
.sim-sat-msg {
  font-size: .77rem; color: var(--muted); margin-top: .28rem; min-height: 1em;
  transition: color .2s;
}
.sim-sat-msg.good { color: var(--ok); font-weight: 600; }
.sim-sat-msg.warn { color: var(--orange-d); }
.sim-sat-checking { font-size: .7rem; color: var(--muted); font-style: italic; }

/* Bouton vérifier maintenant (discret) */
.sim-check-now {
  background: none; border: 0; color: var(--muted); font-size: .75rem;
  text-decoration: underline; cursor: pointer; padding: .2rem .1rem; font-family: inherit;
  margin-top: .1rem;
}
.sim-check-now:hover { color: var(--blue-700); }

/* Animation de validation de phase */
@keyframes phase-validate {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.03); }
  60%  { transform: scale(.98); }
  100% { transform: scale(1); }
}
.sim-step.just-validated { animation: phase-validate .4s ease; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOTTOM NAV (navigation principale mobile)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(15,43,92,.08);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom));
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .18rem; border: 0; background: transparent; cursor: pointer; font-family: inherit;
  color: var(--muted); padding: .4rem .3rem; font-size: .64rem; font-weight: 600;
  transition: color .15s;
  position: relative;
}
.bnav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; transition: stroke .15s; }
.bnav-item span { margin-top: .05rem; }
.bnav-item.active { color: var(--af-charcoal); }
.bnav-item.active svg { stroke: var(--af-charcoal); }
.bnav-item.active::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--af-lime);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}
.bnav-item:active { opacity: .7; }

/* Badge pastille pour compte connecté */
.bnav-item .bnav-dot {
  position: absolute; top: 7px; right: 50%; margin-right: -18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); border: 2px solid #fff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE DESKTOP — breakpoints 768 / 1024
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Tablette 768px : 2 colonnes pour grilles, nav bas conservée ── */
@media (min-width: 768px) {
  .view { max-width: 900px; padding: 1.4rem 1.4rem 3rem; }
  .appfoot { max-width: 900px; }
  .train-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; }
  .sim-scn { grid-template-columns: 1fr 1fr; }
}

/* ── Desktop ≥1024px : sidebar fixe gauche + contenu décalé ── */
@media (min-width: 1024px) {

  /* Shell : pas de grid sur body (dskbar hors flux via position:fixed) */
  body {
    padding-bottom: 0;
    padding-left: 230px; /* réserve l'espace de la sidebar */
    min-height: 100vh;
  }

  /* Topbar pleine largeur, par-dessus la sidebar */
  .topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  }

  /* Compense la topbar fixe (~60px) */
  body { padding-top: 62px; }

  /* Cache la nav bottom sur desktop */
  .bnav { display: none !important; }

  /* Step-nav : plus besoin du décalage bnav sur desktop */
  .step-nav { bottom: 0; }

  /* Sidebar fixe — indépendante du DOM order */
  .dskbar {
    position: fixed;
    top: 60px; left: 0;
    width: 230px;
    background: var(--af-charcoal);
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 2px 0 16px rgba(42,41,42,.28);
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: 1.4rem .75rem 2rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .dskbar-label {
    font-size: .62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--af-lime);
    padding: .7rem .6rem .3rem; margin-top: .4rem;
  }
  .dskbar-item {
    display: flex; align-items: center; gap: .7rem;
    border: 0; background: transparent; width: 100%;
    padding: .6rem .75rem; border-radius: var(--radius-sm);
    font: inherit; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.65);
    cursor: pointer; text-align: left; transition: background .12s, color .12s;
  }
  .dskbar-item svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; flex: none; }
  .dskbar-item:hover { background: rgba(255,255,255,.07); color: #fff; }
  .dskbar-item.active { background: rgba(182,210,61,.14); color: var(--af-lime); font-weight: 700; }
  .dskbar-item.active svg { stroke: var(--af-lime); }
  .dskbar-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--af-lime); margin-left: auto; flex: none;
  }
  .dskbar-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem .5rem; }

  /* Zone de contenu principale */
  .view {
    max-width: 1200px;
    width: 100%;
    padding: 1.6rem 2rem 3rem;
    margin: 0;
  }
  .appfoot {
    max-width: none;
    padding: .8rem 2rem;
    text-align: left;
  }

  /* Grille home : 3 colonnes */
  .home-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Parcours cards : 2 colonnes */
  .cards { grid-template-columns: 1fr 1fr; }

  /* Catalogue entraînement : 2 colonnes */
  .train-grid { grid-template-columns: 1fr 1fr; }

  /* Simulateur : 2 colonnes CSS Grid (conversation | phases + jauge) */
  .sim {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: .8rem 1.4rem;
    align-items: start;
  }
  /* Default: items pleine largeur (mode sélection scénario) */
  .sim > * { grid-column: 1 / -1; }
  /* Pendant l'entretien : col gauche */
  .sim-ctx, .sim-log, .sim-voicebar, .sim-input, .sim-actions,
  .sim-eval-load { grid-column: 1; }
  /* Pendant l'entretien : col droite sticky */
  .sim-stepper  { grid-column: 2; grid-row: 1; position: sticky; top: 70px; }
  .sim-phase-hint { grid-column: 2; grid-row: 2; }
  .sim-satisfaction { grid-column: 2; grid-row: 3; position: sticky; top: 130px; }
  /* Résultat final : pleine largeur */
  .sim-result, .sim-phases { grid-column: 1 / -1; }
  /* Log plus haut sur desktop */
  .sim-log { max-height: 60vh; }

  /* Hero sections plus larges */
  .hero h1 { font-size: 1.8rem; }
  .train-hero h1 { font-size: 1.7rem; }
}

/* Masquer la sidebar desktop en mobile/tablette */
@media (max-width: 1023px) {
  .dskbar { display: none !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAMPUS — EXPLOITATION DE LA LARGEUR (présentations / modules)
   Théo · 14/06/2026
   Le .view est déjà élargi (900px @768, 1200px @1024) mais .prose /
   .step-prose restaient bridés à 760px (≈l.296) → contenu coincé en
   colonne étroite dans une zone large. On libère la largeur du contenu,
   on garde une mesure de lecture confortable pour les paragraphes, et on
   étale chips/points en grille responsive + images/tables grand format.
   AUCUN texte/image retiré : mise en page uniquement.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Tablette ≥768px : le contenu module remplit la colonne élargie ── */
@media (min-width: 768px) {
  .prose, .step-prose { max-width: 100%; }

  /* Corps de texte : mesure de lecture confortable, aligné à gauche
     (les bannières h2, images, chips et tables, eux, prennent la largeur). */
  .prose > p, .step-prose > p { max-width: 70ch; }

  /* Caractéristiques (listes → chips) : grille responsive multi-colonnes
     au lieu d'empiler en colonne étroite. */
  .prose ul, .step-prose ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .55rem;
    align-items: stretch;
  }
  .prose li, .step-prose li { min-width: 0; max-width: none; }

  /* Images de présentation : exploitent la largeur, centrées, sans déformation. */
  .prose img, .step-prose img {
    max-width: 100%;
    margin: 1rem auto;
  }
}

/* ── Desktop ≥1024px : pleine exploitation (view = 1200px) ── */
@media (min-width: 1024px) {
  .prose > p, .step-prose > p { max-width: 74ch; }

  .prose ul, .step-prose ul {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .65rem;
  }

  /* Images pleine largeur de la prose (pas de cap arbitraire). */
  .prose img, .step-prose img {
    max-width: 100%;
    margin: 1.2rem auto;
  }

  /* Tables non-scrollables sur desktop — la largeur est là. */
  .prose table, .step-prose table {
    display: table;
    overflow-x: visible;
    font-size: .9rem;
  }
  .prose blockquote, .step-prose blockquote { max-width: 920px; }
}

/* ── Grand desktop ≥1440px : pleine largeur, view sans plafond ── */
@media (min-width: 1440px) {
  /* Libère le view : utilise TOUTE la place à droite de la sidebar */
  .view { max-width: none; }

  /* Prose : mesure de lecture plus généreuse sur grand écran */
  .prose > p, .step-prose > p { max-width: 82ch; }

  /* Chips : 4-5 colonnes sur 1440px+ */
  .prose ul, .step-prose ul {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: .7rem;
  }

  /* Blockquotes s'étirent davantage */
  .prose blockquote, .step-prose blockquote { max-width: 1200px; }

  /* h2 de section = vraie bannière bord-à-bord */
  .prose h2, .step-prose h2 {
    border-radius: 0 14px 14px 0;
    font-size: 1.1rem;
  }

  /* Tableaux : rétablir display:table (redondant avec ≥1024 mais explicite) */
  .prose table, .step-prose table { display: table; overflow-x: visible; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACADÉMIE DE LA PERFORMANCE — nouveaux composants
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Animation d'entrée */
@keyframes perfFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes perfSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.perf-anim { animation: perfFadeUp .55s cubic-bezier(.22,.8,.45,1) both; }
.perf-entering .perf-hero { animation: perfSlideIn .5s cubic-bezier(.22,.8,.45,1) both; }

/* Vue accueil — layout étendu */
.view-home { max-width: 1260px !important; padding: .8rem 1rem 5rem; }

/* ── HERO SALLE DES PERFORMANCES ── */
.perf-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(42,41,42,.28);
}
.perf-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(182,210,61,.12) 0%, transparent 60%);
  pointer-events: none;
}
.perf-hero::after {
  content: '';
  position: absolute; top: -40px; right: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.perf-hero-left { display: flex; flex-direction: column; gap: .35rem; }
.perf-welcome { font-size: .8rem; opacity: .65; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.perf-name { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.perf-name-anon { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.perf-agency { font-size: .85rem; opacity: .68; margin-top: .1rem; }
.perf-grade-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill); padding: .35rem .85rem; margin-top: .5rem;
  width: fit-content; backdrop-filter: blur(4px);
}
.pgb-icon { font-size: 1.1rem; }
.pgb-label { font-weight: 700; font-size: .92rem; }
.pgb-streak { font-size: .8rem; background: rgba(182,210,61,.25); border-radius: var(--radius-pill); padding: .1rem .5rem; margin-left: .3rem; }

.perf-hero-right { display: flex; flex-direction: column; gap: .8rem; justify-content: center; }
.perf-xp-block { background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.12); }
.perf-xp-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.perf-xp-val { font-size: 1.25rem; font-weight: 800; }
.perf-xp-next { font-size: .75rem; opacity: .75; }
.perf-xp-bar { height: 8px; background: rgba(255,255,255,.18); border-radius: var(--radius-pill); overflow: hidden; }
.perf-xp-fill { height: 100%; background: linear-gradient(90deg, var(--af-lime-d), var(--af-lime)); border-radius: var(--radius-pill); transition: width .8s ease; }
.perf-obj { font-size: .84rem; opacity: .82; line-height: 1.4; padding: .5rem .75rem; background: rgba(255,255,255,.07); border-radius: var(--radius-sm); border-left: 3px solid var(--af-lime); }
.perf-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.perf-badge { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: rgba(255,255,255,.12); border-radius: 8px; cursor: default; }

.perf-hero-anon {
  grid-template-columns: 1fr auto;
  padding: 2.4rem 2rem;
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
}
.perf-hero-anon .perf-welcome {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; opacity: .6; margin-bottom: .5rem;
}
.perf-hero-anon .perf-name-anon {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.perf-hero-anon .perf-agency {
  font-size: .95rem; opacity: .65; margin-top: .4rem; font-style: italic;
}
.perf-login-btn {
  align-self: center; white-space: nowrap;
  background: var(--af-lime); color: var(--af-charcoal); border: none;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 800; font-size: .95rem; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(182,210,61,.45);
  transition: filter .12s, transform .08s;
}
.perf-login-btn:hover { filter: brightness(1.1); }
.perf-login-btn:active { transform: scale(.98); }

/* ── BANDE STATS RAPIDES ── */
.perf-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem;
  margin-bottom: .9rem;
}
.perf-strip-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .75rem .9rem; text-align: center;
  box-shadow: var(--shadow-xs); min-width: 0;
}
.perf-strip-item:nth-child(1) { background: linear-gradient(135deg, var(--af-lime-50), #fff); border-color: var(--af-lime-100); }
.perf-strip-item:nth-child(2) { background: linear-gradient(135deg, var(--af-lime-50), #fff); border-color: var(--af-lime-100); }
.perf-strip-item:nth-child(3) { background: linear-gradient(135deg, var(--ok-bg), #fff); border-color: var(--ok-br); }
.perf-strip-item:nth-child(4) { background: linear-gradient(135deg, #EDE9FE, #fff); border-color: #C4B5FD; }
.psi-val { font-size: 1.15rem; font-weight: 800; color: var(--af-charcoal); }
.perf-strip-item:nth-child(2) .psi-val { color: var(--af-lime-d); }
.perf-strip-item:nth-child(3) .psi-val { color: var(--ok); }
.perf-strip-item:nth-child(4) .psi-val { color: #6D28D9; }
.psi-lbl { font-size: .68rem; color: var(--muted); margin-top: .1rem; font-weight: 500; }

/* ── TITRE DE SECTION ── */
.perf-sec-head { margin: 1.4rem 0 .75rem; }
.perf-sec-head h2 { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ── GRILLE PARCOURS RICHES ── */
.perf-parc-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }

/* ── CARD PARCOURS — REDESIGN PREMIUM ── */
.perf-pcard {
  background: var(--card);
  border-radius: 16px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .1s;
}
.perf-pcard:hover { box-shadow: 0 8px 32px rgba(0,0,0,.16); transform: translateY(-2px); }

/* ── Headers colorés par parcours (via data-pid) ── */
.perf-pcard-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 20px 18px 16px;
  border-bottom: none;
  color: #fff;
}

/* Charte A&F — variantes subtiles sur base charbon */
.perf-pcard { border-top: 3px solid var(--af-lime); }
.perf-pcard[data-pid="p-reseau"] .perf-pcard-head {
  background: linear-gradient(135deg, #1e2d1e 0%, #2a3d2a 100%);
}
.perf-pcard[data-pid="p-commerce"] .perf-pcard-head {
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
}
.perf-pcard[data-pid="p-produits"] .perf-pcard-head {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d442d 100%);
}
.perf-pcard:not([data-pid="p-reseau"]):not([data-pid="p-commerce"]):not([data-pid="p-produits"]) .perf-pcard-head {
  background: linear-gradient(135deg, var(--af-charcoal) 0%, var(--af-charcoal-2) 100%);
}

.perf-pcard-ring { position: relative; width: 54px; height: 54px; flex: none; }
.perf-ring { display: block; }
.perf-ring-bg { stroke: rgba(255,255,255,.25); }
.perf-ring-fill { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray .7s ease; }
.perf-ring-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff;
}

.perf-pcard-info { flex: 1; min-width: 0; }
.perf-pcard-emoji { font-size: 2.5rem; line-height: 1; margin-bottom: .2rem; }
.perf-pcard-info h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.perf-pcard-sub { font-size: .78rem; color: rgba(255,255,255,.72); margin-top: .15rem; }

.perf-status-badge {
  display: inline-block; font-size: .66rem; font-weight: 700; padding: .18rem .55rem;
  border-radius: var(--radius-pill); margin-top: .4rem;
  letter-spacing: .02em;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.perf-status-badge.complete { background: rgba(255,255,255,.9); color: var(--ok); border-color: transparent; }

/* Module rows dans la tuile */
.perf-pcard-mods {
  padding: .6rem 1rem;
  display: flex; flex-direction: column; gap: .1rem;
  max-height: 220px; overflow-y: auto;
  flex: 1;
}
.perf-mod-row {
  display: flex; align-items: center; gap: .45rem; padding: .38rem .45rem;
  border-radius: 8px; cursor: pointer; transition: background .12s;
  font-size: .84rem; color: var(--ink-2);
}
.perf-mod-row:hover { background: var(--bg); }
.perf-mod-row.mod-done { color: var(--ok); }
.perf-mod-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: transparent; border: 1.5px solid var(--muted);
}
.perf-mod-dot.done { background: var(--ok); border-color: var(--ok); }
.perf-mod-num { font-size: .72rem; font-weight: 700; color: var(--muted); flex: none; min-width: 16px; }
.perf-mod-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.perf-mod-type {
  font-size: .64rem; font-weight: 700; padding: .1rem .38rem;
  border-radius: 5px; flex: none;
}
.perf-mod-type.quiz { background: var(--blue-50); color: var(--blue-700); }
.perf-mod-type.atelier { background: #EDE9FE; color: #6D28D9; }
.perf-mod-check { font-size: .8rem; color: var(--ok); flex: none; font-weight: 700; }

/* ── CTA bouton plein coloré ── */
.perf-pcard-cta {
  width: 100%;
  padding: .85rem 1.2rem;
  border: none;
  font-weight: 800; font-size: .92rem;
  cursor: pointer; text-align: center;
  font-family: inherit;
  transition: filter .12s, transform .08s;
  color: #fff;
  letter-spacing: .01em;
}
.perf-pcard-cta:active { transform: scale(.99); filter: brightness(.92); }

/* CTA A&F — lime sur fond charbon */
.perf-pcard .perf-pcard-cta {
  background: var(--af-lime);
  color: var(--af-charcoal);
  box-shadow: 0 2px 8px rgba(182,210,61,.30);
}
.perf-pcard-cta:hover { filter: brightness(1.08); }
.perf-pcard.perf-pcard-complete .perf-pcard-cta { opacity: .85; }

/* ── GRAPHES ── */
.perf-charts { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.perf-bar-chart { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.pbc-row { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: .6rem; }
.pbc-lbl { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.pbc-track { height: 10px; background: var(--bg); border-radius: var(--radius-pill); overflow: hidden; border: 1px solid var(--line); }
.pbc-fill { height: 100%; background: linear-gradient(90deg, var(--af-lime-d), var(--af-lime)); border-radius: var(--radius-pill); transition: width .7s ease; }
.pbc-val { font-size: .78rem; color: var(--af-charcoal); font-weight: 700; text-align: right; }

.perf-radar { display: flex; justify-content: center; padding: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.perf-radar svg { max-width: 200px; }
.radar-bg   { fill: var(--af-lime-50); stroke: var(--line); stroke-width: 1; }
.radar-mid  { fill: none; stroke: var(--line); stroke-width: .8; stroke-dasharray: 3 3; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-fill { fill: rgba(182,210,61,.25); stroke: var(--af-lime); stroke-width: 2; }
.radar-dot  { fill: var(--af-lime-d); }
.radar-lbl  { font-size: 9px; fill: var(--ink-2); font-weight: 600; font-family: inherit; }

/* ── CTA BLOCK (non connecté) ── */
.perf-cta-block {
  padding: 1.4rem; background: var(--af-lime-50); border: 1px solid var(--af-lime-100);
  border-radius: var(--radius); text-align: center; margin-top: 1.2rem;
}
.perf-cta-block p { margin: 0 0 .8rem; color: var(--ink-2); font-size: .9rem; }

/* ── GRADE PANEL (stats) ── */
.grade-panel {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; background: var(--card);
  border: 1.5px solid var(--af-lime-100); border-radius: var(--radius);
  margin-bottom: .9rem; box-shadow: var(--shadow-xs);
}
.gp-grade { display: flex; align-items: center; gap: .5rem; flex: none; }
.gp-icon { font-size: 1.5rem; }
.gp-label { font-size: 1rem; font-weight: 800; color: var(--af-charcoal); }
.gp-xp { flex: 1; }
.gp-xp-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; font-size: .85rem; }
.gp-next { color: var(--muted); font-size: .78rem; }

/* ── LEADERBOARD ── */
.ld-table { display: flex; flex-direction: column; gap: .45rem; }
.ld-row {
  display: flex; align-items: center; gap: .7rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .65rem 1rem;
  box-shadow: var(--shadow-xs);
}
.ld-me { border-color: var(--af-lime); background: var(--af-lime-50); box-shadow: 0 0 0 2px rgba(182,210,61,.20); }
.ld-rank { font-size: 1rem; font-weight: 800; width: 32px; text-align: center; color: var(--ink-2); flex: none; }
.ld-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--af-charcoal-2); color: #fff; font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.ld-me .ld-avatar { background: var(--af-charcoal); }
.ld-info { flex: 1; min-width: 0; }
.ld-name { font-weight: 700; font-size: .92rem; }
.ld-you { font-size: .67rem; background: var(--af-lime-100); color: var(--af-charcoal); padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem; }
.ld-agency { font-size: .75rem; color: var(--muted); margin-top: .05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-grade { font-size: .82rem; color: var(--ink-2); flex: none; }
.ld-xp { font-weight: 800; font-size: .9rem; color: var(--af-charcoal); flex: none; }

/* ── COMPARATIF ── */
.cmp-block {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-xs); margin-bottom: 1rem;
}
.cmp-rank { text-align: center; padding-right: 1rem; border-right: 1px solid var(--line); }
.cmp-rank-num { font-size: 2.2rem; font-weight: 800; color: var(--af-charcoal); line-height: 1; }
.cmp-rank-lbl { font-size: .72rem; color: var(--muted); }
.cmp-percentile { font-size: .8rem; color: var(--af-lime-d); font-weight: 700; margin-top: .3rem; }
.cmp-compare { display: flex; flex-direction: column; gap: .55rem; }
.cmp-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.cmp-lbl { color: var(--muted); }
.cmp-val { font-weight: 700; color: var(--ink); }
.cmp-val.my { color: var(--af-lime-d); }
.cmp-diff { font-size: .75rem; padding: .1rem .35rem; border-radius: 4px; margin-left: .3rem; }
.cmp-diff.up { background: var(--ok-bg); color: var(--ok); }
.cmp-diff.down { background: var(--bad-bg); color: var(--bad); }

.cmp-bar-wrap { margin-bottom: 1rem; }
.cmp-bar-track { height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill); position: relative; overflow: visible; margin: 1.8rem 0 .5rem; }
.cmp-bar-avg { position: absolute; top: -22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cmp-bar-avg-line { width: 2px; height: 18px; background: var(--muted); opacity: .6; margin-bottom: 2px; }
.cmp-bar-avg-lbl { font-size: .65rem; color: var(--muted); white-space: nowrap; }
.cmp-bar-me { position: absolute; top: -24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cmp-bar-me-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--af-lime); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--af-lime-d); }
.cmp-bar-me-lbl { font-size: .65rem; font-weight: 700; color: var(--af-lime-d); white-space: nowrap; margin-top: 2px; }
.cmp-bar-ends { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE DESKTOP — Académie de la Performance
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (min-width: 1024px) {
  /* Grille parcours : 3 colonnes */
  .perf-parc-grid { grid-template-columns: repeat(3, 1fr); }

  /* Charts côte à côte */
  .perf-charts { grid-template-columns: 1fr 280px; }

  /* Tuile leaderboard full table width */
  .ld-row { padding: .75rem 1.4rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablette : 2 colonnes parcours */
  .perf-parc-grid { grid-template-columns: repeat(2, 1fr); }
  .perf-charts { grid-template-columns: 1fr 220px; }
}

/* Mobile : hero pleine colonne */
@media (max-width: 767px) {
  .perf-hero { grid-template-columns: 1fr; gap: .9rem; padding: 1.2rem 1rem; }
  .perf-hero-anon { grid-template-columns: 1fr; padding: 1.8rem 1.2rem; }
  .perf-hero-anon .perf-name-anon { font-size: 1.5rem; }
  .perf-login-btn { width: 100%; text-align: center; margin-top: .6rem; }
  .perf-name { font-size: 1.5rem; }
  .pbc-row { grid-template-columns: 90px 1fr 50px; }
  .cmp-block { grid-template-columns: 1fr; }
  .cmp-rank { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: .5rem; }
  .perf-strip { grid-template-columns: repeat(2, 1fr); }
}

/* bnav 4 items */
.bnav { grid-template-columns: repeat(4, 1fr); }

/* ── LEADERBOARD BUTTON DANS LE HERO HOME ── */
.perf-leaderboard-btn {
  margin-top: .7rem;
  font-size: .82rem;
  padding: .45rem .9rem;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.perf-leaderboard-btn:hover { background: rgba(255,255,255,.28); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIMULATEUR — CTA bloc hero sur la home
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sim-home-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--af-lime) 0%, var(--af-lime-d) 100%);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin: 1rem 0 .5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(182,210,61,.30);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.sim-home-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(182,210,61,.40); }
.sim-home-cta:active { transform: translateY(0); }
.sim-home-cta-left { display: flex; align-items: center; gap: .9rem; }
.sim-home-icon {
  font-size: 2rem; line-height: 1;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sim-home-title { font-size: 1rem; font-weight: 800; color: var(--af-charcoal); letter-spacing: -.02em; }
.sim-home-sub { font-size: .78rem; color: rgba(42,41,42,.72); margin-top: .18rem; }
.sim-home-btn {
  white-space: nowrap;
  background: rgba(42,41,42,.15);
  border: 1.5px solid rgba(42,41,42,.30);
  color: var(--af-charcoal);
  border-radius: var(--radius-pill);
  padding: .5rem 1.1rem;
  font-size: .82rem; font-weight: 800; font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.sim-home-btn:hover { background: rgba(255,255,255,.35); }

/* ── bnav simulateur : bouton central mis en avant ── */
.bnav-item.bnav-sim { color: var(--af-lime-d); }
.bnav-item.bnav-sim svg { stroke: var(--af-lime-d); }
.bnav-item.bnav-sim.active { color: var(--af-charcoal); }
.bnav-item.bnav-sim.active svg { stroke: var(--af-charcoal); }
.bnav-item.bnav-sim.active::after { background: var(--af-lime); }
.bnav-item.bnav-sim span { font-weight: 800; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAMPUS A&F — COMPOSANTS PRÉSENTATION — Design validé 14/06/2026
   Aliases mock + rendu enrichi des modules (stat-cards, chips,
   highlight-box, tables, images) via JS enhanceProseBlocks().
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Variables aliases (compatibilité mock) ── */
:root {
  --charbon:    #2a292a;
  --charbon2:   #3d3c3d;
  --lime:       #B6D23D;
  --lime2:      #cde84d;
  --lime-dark:  #8fa82e;
  --border-pres: #e0dede;
  --shadow-pres: 0 2px 16px rgba(42,41,42,.08);
}

/* ── Prose: blockquote → dark highlight ── */
.prose blockquote, .step-prose blockquote {
  background: linear-gradient(135deg, #1e1d1e 0%, var(--charbon) 100%);
  border-left: none;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1rem 0 1.5rem;
  font-style: normal;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.prose blockquote::before, .step-prose blockquote::before {
  content: '"';
  position: absolute; top: -20px; left: 14px;
  font-size: 6rem; font-weight: 900; color: var(--lime); opacity: .15;
  line-height: 1; font-family: Georgia, serif; pointer-events: none;
}
.prose blockquote p, .step-prose blockquote p,
.prose blockquote *, .step-prose blockquote * {
  color: rgba(255,255,255,.9);
  position: relative; margin: 0 0 .4rem; padding: 0;
}
.prose blockquote p:last-child, .step-prose blockquote p:last-child { margin-bottom: 0; }

/* ── Prose: table thead charbon ── */
.prose th, .step-prose th {
  background: var(--charbon);
  color: #fff;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .03em;
}
.prose tbody tr:hover, .step-prose tbody tr:hover {
  background: rgba(182,210,61,.05);
}
.prose td:first-child, .step-prose td:first-child { font-weight: 600; }

/* ── Table wrapper (injecté par JS enhanceProseBlocks) ── */
.table-wrapper-mod {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-pres);
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}
.table-wrapper-mod table {
  display: table !important;
  overflow-x: visible !important;
  margin: 0;
}

/* ── Stat-row (injecté par JS) ── */
.stat-row-mod {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .9rem;
  margin: 1.25rem 0 2rem;
}
.stat-card-mod {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-pres);
  border-left: 4px solid var(--lime);
  position: relative; overflow: hidden;
}
.stat-card-mod::after {
  content: '';
  position: absolute; bottom: -14px; right: -14px;
  width: 54px; height: 54px;
  background: var(--lime); opacity: .06; border-radius: 50%;
}
.stat-num-mod {
  font-size: 2rem; font-weight: 800; color: var(--charbon);
  line-height: 1; margin-bottom: .3rem; letter-spacing: -.02em;
}
.stat-num-mod .stat-unit {
  font-size: 1rem; font-weight: 700;
}
.stat-label-mod {
  font-size: .8rem; color: var(--muted); font-weight: 500; line-height: 1.35;
}

/* ── Image frame (injecté par JS) ── */
.img-frame-mod {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 28px rgba(42,41,42,.12);
  margin: 1rem 0 1.5rem;
  background: #f0f0ee;
  display: block;
}
.img-frame-mod img {
  width: 100%; height: auto; display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* ── Layout 2 colonnes texte/image ── */
.slide-layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: .5rem 0 1.5rem;
}
.slide-layout-2col .slide-col-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.slide-layout-2col .slide-col-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-layout-2col .slide-col-img .img-frame-mod {
  margin: 0;
  width: 100%;
}
.slide-layout-2col .slide-col-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}
@media (max-width: 768px) {
  .slide-layout-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── Liste chips pleine largeur ── */
.prose ul, .step-prose ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ── Highlight-box (blockquote redesign injecté par JS) ── */
.highlight-box-mod {
  background: linear-gradient(135deg, #1e1d1e 0%, var(--charbon) 100%);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1rem 0 1.5rem;
  position: relative; overflow: hidden;
}
.highlight-box-mod::before {
  content: '"';
  position: absolute; top: -20px; left: 14px;
  font-size: 6rem; font-weight: 900; color: var(--lime); opacity: .15;
  line-height: 1; font-family: Georgia, serif; pointer-events: none;
}
.highlight-box-mod p, .highlight-box-mod * {
  color: rgba(255,255,255,.9); position: relative;
  font-size: .97rem; font-weight: 500; line-height: 1.65; margin: 0 0 .4rem; padding: 0;
}
.highlight-box-mod *:last-child { margin-bottom: 0; }

/* ── Module header tag (pastille de parcours) ── */
.module-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(182,210,61,.15); color: var(--lime);
  border: 1px solid rgba(182,210,61,.3);
  padding: .28rem .8rem; border-radius: 99px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1rem;
}

/* ── Note box (info tip, lime) ── */
.note-box-mod {
  background: rgba(182,210,61,.07);
  border: 1px solid rgba(182,210,61,.28);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .85rem; color: var(--charbon);
  margin: 1rem 0;
  line-height: 1.5;
}
.note-box-mod .note-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }

/* ── Section tag inline (pill lime) ── */
.section-tag-mod {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime-dark); background: rgba(182,210,61,.1);
  border: 1px solid rgba(182,210,61,.22);
  padding: .17rem .6rem; border-radius: 99px; margin-bottom: .5rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAMPUS A&F — DESIGN VALIDÉ MOCK 15/06/2026
   Module header premium, stepper numéroté, chips améliorées,
   nav bas Précédent/Suivant, divider sections.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Module header — gradient dark premium (remplace .step-head compact) ── */
.step-head-premium {
  background: linear-gradient(135deg, #1e1d1e 0%, var(--charbon) 60%, #3a3839 100%);
  color: #fff;
  padding: 2.2rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.step-head-premium::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: var(--lime);
  opacity: .05;
  border-radius: 50%;
  pointer-events: none;
}
.step-head-premium .crumb {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .4rem;
}
.step-head-premium .crumb::before {
  content: '';
  width: 14px; height: 2px;
  background: var(--lime); border-radius: 2px; flex: none;
}
.step-head-premium .step-title-mod {
  font-size: 1.65rem; font-weight: 800; color: #fff;
  margin: 0 0 .6rem; letter-spacing: -.02em; line-height: 1.2;
  max-width: 680px;
}
.step-head-premium .step-desc {
  color: rgba(255,255,255,.65);
  font-size: .9rem; max-width: 580px; line-height: 1.6;
  margin: 0 0 1.2rem;
}
.step-head-premium .step-meta {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.step-meta-item { font-size: .76rem; color: rgba(255,255,255,.5); }
.step-meta-item strong { color: #fff; font-size: .82rem; display: block; margin-bottom: .08rem; }

/* Barre de progression intégrée au header premium */
.step-head-premium .step-prog {
  margin: 1rem 0 0;
}
.step-head-premium .step-prog-bar {
  height: 5px; background: rgba(255,255,255,.15);
  border-radius: 99px; overflow: hidden; margin-bottom: .3rem;
}
.step-head-premium .step-prog-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #B6D23D, #94AE2A);
  border-radius: 99px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 6px rgba(182,210,61,.35);
}
.step-head-premium .step-prog-lbl {
  font-size: .7rem; color: rgba(255,255,255,.5);
}

/* ── Stepper numéroté (barre sous le header) ── */
.step-stepper-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid var(--border-pres);
  overflow-x: auto;
  scrollbar-width: none;
}
.step-stepper-bar::-webkit-scrollbar { display: none; }

.step-stepper-dot {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s;
  border: none; background: transparent; font-family: inherit;
  padding: .2rem .1rem;
}
.step-stepper-dot:hover { color: var(--charbon); }
.step-stepper-dot.active { color: var(--charbon); font-weight: 600; }
.step-stepper-dot.seen { color: var(--lime); }

.step-stepper-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border-pres);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  color: var(--muted);
}
.step-stepper-dot.active .step-stepper-num {
  background: var(--charbon); color: #fff;
}
.step-stepper-dot.seen .step-stepper-num {
  background: var(--lime); color: var(--charbon);
}

.step-stepper-line {
  flex: 1; min-width: 24px; max-width: 64px;
  height: 2px; background: var(--border-pres);
  margin: 0 .4rem;
  transition: background .3s;
}
.step-stepper-line.seen { background: var(--lime); }

/* ── Chips listes améliorées (remplace les li basiques) ── */
.prose li.chip-card, .step-prose li.chip-card {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 1rem;
  box-shadow: var(--shadow-pres);
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .85rem;
  color: var(--charbon);
  line-height: 1.5;
  transition: transform .15s, box-shadow .15s;
  min-width: 0; max-width: none;
}
.prose li.chip-card:hover, .step-prose li.chip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,41,42,.11);
}
.prose li.chip-card::before, .step-prose li.chip-card::before {
  content: none; /* retire le ▸ par défaut */
}
.chip-card-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(182,210,61,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── Navigation bas module (Précédent / Suivant) — style mock ── */
.step-nav-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #fff;
  border-top: 1px solid var(--border-pres);
  margin-top: 1.5rem;
}
.step-nav-premium-center {
  text-align: center;
  font-size: .78rem; color: var(--muted);
}
.step-nav-premium-center .prog-bar-mini {
  width: 110px; height: 5px;
  background: var(--border-pres); border-radius: 99px;
  margin: .3rem auto 0;
  overflow: hidden;
}
.step-nav-premium-center .prog-bar-mini-fill {
  height: 100%; background: var(--lime); border-radius: 99px;
  transition: width .4s ease;
}
.step-btn-prev {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.3rem; border-radius: 10px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 2px solid var(--charbon);
  background: #fff; color: var(--charbon);
  font-family: inherit; transition: all .15s;
}
.step-btn-prev:hover { background: var(--charbon); color: #fff; }
.step-btn-prev.hidden { visibility: hidden; pointer-events: none; }
.step-btn-next-prem {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: 10px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: none;
  background: var(--charbon); color: #fff;
  font-family: inherit; transition: all .15s;
  box-shadow: 0 2px 8px rgba(42,41,42,.2);
}
.step-btn-next-prem:hover { background: var(--charbon2); transform: translateY(-1px); }
.step-btn-next-prem.hidden { visibility: hidden; pointer-events: none; }

/* ── Stat-cards améliorées (2.8rem num, style mock) ── */
.stat-card-mod {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-pres);
  border-left: 4px solid var(--lime);
  position: relative; overflow: hidden;
}
.stat-card-mod::after {
  content: '';
  position: absolute; bottom: -16px; right: -16px;
  width: 68px; height: 68px;
  background: var(--lime); opacity: .05; border-radius: 50%;
}
.stat-num-mod {
  font-size: 2.5rem; font-weight: 800; color: var(--charbon);
  line-height: 1; margin-bottom: .35rem; letter-spacing: -.02em;
}
.stat-num-mod .stat-unit {
  font-size: 1.1rem; font-weight: 700;
}
.stat-label-mod {
  font-size: .82rem; color: var(--muted); font-weight: 500; line-height: 1.35;
}

/* ── Divider sections (séparateur avec texte) ── */
.section-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 2rem 0 1.5rem;
  color: var(--muted); font-size: .73rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1; height: 1px; background: var(--border-pres);
}

/* ── Chips-title (titre de section avec barre lime) ── */
.chips-title-mod {
  display: flex; align-items: center; gap: .7rem;
  font-size: 1.05rem; font-weight: 700; color: var(--charbon);
  margin-bottom: 1.1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--lime);
}
.chips-title-mod::before {
  content: '';
  width: 4px; height: 1.1em;
  background: var(--lime); border-radius: 2px; flex-shrink: 0;
}

/* ── Responsive mobile ── */
@media (max-width: 767px) {
  .step-head-premium {
    padding: 1.4rem 1rem 1.2rem;
  }
  .step-head-premium .step-title-mod { font-size: 1.2rem; }
  .step-stepper-bar { padding: .75rem 1rem; }
  .step-nav-premium { padding: 1rem; }
  .step-stepper-line { min-width: 16px; }
}

@media (min-width: 1024px) {
  .step-head-premium {
    padding: 2.8rem 3rem 2.2rem;
  }
  .step-head-premium .step-title-mod { font-size: 2rem; }
  .step-stepper-bar { padding: 1.1rem 3rem; }
  .step-nav-premium { padding: 1.75rem 3rem; }
  .stat-num-mod { font-size: 2.8rem; }
}
