/* =========================================================
   150 € — webdoc / refonte
   Lumière : papier chaud, encre profonde, un seul accent.
   Typo éditoriale grand format, filets fins, beaucoup d'air.
   ========================================================= */

:root{
  --paper: #faf8f3;
  --paper-2:#f3f0e8;
  --surface:#ffffff;
  --ink:#0d0c0a;
  --ink-2:#27241e;
  --muted:#7a766d;
  --hair:rgba(13,12,10,.10);
  --hair-2:rgba(13,12,10,.18);
  --accent: oklch(0.62 0.16 38);          /* terra / corail chaud */
  --accent-soft: oklch(0.62 0.16 38 / .12);
  --positive: oklch(0.55 0.10 165);       /* vert sourd, hi-fi */
  --maxw: 720px;
  --maxw-wide: 1080px;
  --shadow: 0 1px 2px rgba(13,12,10,.04), 0 12px 40px -12px rgba(13,12,10,.18);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(13, 12, 10, 0.08);
  --glass-shadow: 0 8px 32px rgba(13, 12, 10, 0.03);
}

[data-theme="dark"]{
  --paper:#0e0d0a;
  --paper-2:#16140f;
  --surface:#191712;
  --ink:#f6f1e6;
  --ink-2:#d8d2c4;
  --muted:#8e887d;
  --hair:rgba(246,241,230,.10);
  --hair-2:rgba(246,241,230,.18);
  --accent: oklch(0.70 0.16 38);
  --accent-soft: oklch(0.70 0.16 38 / .14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 60px -10px rgba(0,0,0,.55);
  --glass-bg: rgba(25, 23, 18, 0.65);
  --glass-border: rgba(246, 241, 230, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Manrope", "Manrope", system-ui, sans-serif;
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  font-feature-settings:"ss01","cv11";
  transition:background .4s ease, color .4s ease;
}
::selection{background:var(--accent-soft);color:var(--ink)}

/* ---------- chrome haut : barre de marque + progression ---------- */
header.mast{
  position:fixed;top:0;left:0;right:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 28px;
  background:color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hair);
}
.mast .brand{
  display:flex;align-items:center;gap:10px;
  font-family:"Newsreader", Georgia, serif;
  font-size:20px;letter-spacing:-.01em;
}
.mast .brand .dot{
  width:8px;height:8px;border-radius:50%;background:var(--accent);
  display:inline-block;transform:translateY(-2px);
}
.mast .meta{
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  font-variant-numeric:tabular-nums;
}
#progress{
  position:fixed;top:57px;left:0;height:2px;width:0;
  background:var(--accent);z-index:41;transition:width .12s linear;
  opacity:.9;
}

/* ---------- index chapitre (rail gauche, desktop) ---------- */
nav.rail{
  position:fixed;left:24px;top:50%;transform:translateY(-50%);z-index:30;
  display:flex;flex-direction:column;gap:14px;
}
nav.rail a{
  display:flex;align-items:center;gap:10px;
  color:var(--muted);text-decoration:none;
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  font-variant-numeric:tabular-nums;
  transition:color .25s ease, transform .25s ease;
}
nav.rail a .tick{
  width:14px;height:1px;background:currentColor;display:inline-block;
  transition:width .3s ease, background .3s ease;
}
nav.rail a:hover, nav.rail a.active{ color:var(--ink) }
nav.rail a.active .tick{ width:28px; background:var(--accent) }
nav.rail a .label{ opacity:0; transform:translateX(-4px); transition:opacity .25s, transform .25s }
nav.rail a:hover .label, nav.rail a.active .label{ opacity:1; transform:none }

/* ---------- wallet : carte flottante éditoriale ---------- */
#wallet{
  position:fixed;top:82px;right:20px;z-index:35;
  width:180px;padding:12px 14px 10px;
  background:var(--surface);
  border:1px solid var(--hair-2);
  border-radius:14px;
  box-shadow:var(--shadow);
  transition:transform .45s cubic-bezier(.16,1,.3,1),
             opacity .4s ease,
             box-shadow .45s ease,
             border-color .45s ease,
             background .4s ease;
}
#wallet.wallet-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateY(15px) scale(0.95);
}
#wallet.pulse{
  transform:translateY(-2px);
  border-color:color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow:0 1px 2px rgba(13,12,10,.04), 0 20px 50px -10px var(--accent-soft);
}
.w-row{display:flex;align-items:center;justify-content:space-between}
.w-eyebrow{
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);
}
.w-chip{
  font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  border:1px solid var(--hair-2);border-radius:99px;padding:2px 6px;
  font-variant-numeric:tabular-nums;
}
.w-amount{
  font-family:"Newsreader", Georgia, serif;
  font-size:32px;line-height:1.1;
  margin:6px 0 2px;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  transition:color .35s ease;
}
.w-amount.flash{color:var(--accent)}
.w-amount .eur{
  font-size:16px;color:var(--muted);margin-left:4px;
  font-family:"Manrope", system-ui, sans-serif;
  vertical-align:4px;font-weight:400;
}
.w-bar{
  height:3px;background:var(--paper-2);border-radius:99px;overflow:hidden;
  margin:6px 0 8px;
}
.w-bar span{
  display:block;height:100%;width:100%;
  background:var(--accent);
  transition:width 1s cubic-bezier(.16,1,.3,1);
}
.w-last{
  font-size:11px;color:var(--ink-2);min-height:14px;
  font-variant-numeric:tabular-nums;
  display:flex;align-items:center;gap:6px;
}
.w-last::before{
  content:"";width:5px;height:5px;border-radius:50%;
  background:var(--positive);flex:0 0 5px;
  transition:background .3s;
}
#wallet.spent .w-last::before{ background:var(--accent) }

/* ---------- structure générale des chapitres ---------- */
main{padding-top:62px}
.chapter{
  position:relative;
  padding:14vh 28px 14vh;
  border-bottom:1px solid var(--hair);
}
.chapter.tint{background:var(--paper-2)}
.chapter.ink{background:var(--ink);color:var(--paper)}
.chapter.ink .wrap p{color:color-mix(in oklab, var(--paper) 85%, transparent)}
.chapter.ink .kicker{color:var(--accent)}
.chapter.ink .num{color:color-mix(in oklab, var(--paper) 55%, transparent)}
.chapter.ink .hair{background:color-mix(in oklab, var(--paper) 18%, transparent)}

.wrap{max-width:var(--maxw);margin:0 auto;position:relative}
.wrap.wide{max-width:var(--maxw-wide)}

.chapter .num{
  position:absolute;top:14vh;left:50%;transform:translateX(calc(-1*var(--maxw)/2 + 0px));
  font-family:"JetBrains Mono",monospace;
  font-size:11px;letter-spacing:.18em;color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.chapter .num::after{content:" / 09"}

/* révélation au scroll : conteneurs montent doucement */
.wrap > *{opacity:0;transform:translateY(20px);transition:opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1)}
.wrap.in > *{opacity:1;transform:none}
.wrap.in > *:nth-child(2){transition-delay:.06s}
.wrap.in > *:nth-child(3){transition-delay:.12s}
.wrap.in > *:nth-child(4){transition-delay:.18s}
.wrap.in > *:nth-child(5){transition-delay:.24s}
.wrap.in > *:nth-child(6){transition-delay:.30s}

/* ============ scroll à la Apple ============
   Les mots de chaque phrase s'illuminent l'un après l'autre
   au fur et à mesure que la phrase entre dans le tiers haut
   de l'écran. La transition est pilotée par JS (opacity inline)
   pour rester fluide pendant le scroll. */
.word{
  display:inline-block;
  opacity:.12;
  color:var(--ink);
  transition:opacity .15s linear;
  will-change:opacity;
}
.word.lit{opacity:1}
.wrap p .word, .pull .word{color:inherit}

/* Une fois la phrase passée, on garde l'état finalisé sans
   ralentir le scroll : les nouveaux mots ajoutés restent stables */

/* sections « pinned » : le titre d'un chapitre reste collé en haut
   pendant qu'on scroll le corps du chapitre, comme Apple */
.chapter .pin{
  position:sticky;
  top:80px;
  z-index:5;
  background:transparent;
  padding-top:8px;
  margin-bottom:24px;
}
.chapter.tint .pin{ /* sur fond teinté, fondre la sticky */
  background:linear-gradient(180deg, var(--paper-2) 70%, transparent);
}
.chapter.ink .pin{
  background:linear-gradient(180deg, var(--ink) 70%, transparent);
}

/* le grand « 300 » du hero qui descend vers la wallet */
.cover .num-huge{
  transform-origin:left center;
  will-change:transform,opacity;
  transition:none;
}

/* typo */
.kicker{
  font-size:11.5px;letter-spacing:.22em;text-transform:uppercase;
  color:var(--accent);margin-bottom:28px;
  display:flex;align-items:center;gap:10px;
}
.kicker::before{content:"";width:18px;height:1px;background:currentColor}

h1{
  font-family:"Newsreader", Georgia, serif;
  font-weight:400;
  font-size:clamp(3rem, 8vw, 6.8rem);
  line-height:.98;
  letter-spacing:-.025em;
  color:var(--ink);
}
h1 .it{font-style:italic;color:var(--accent)}
h1 .num-huge{
  font-variant-numeric:tabular-nums;
  letter-spacing:-.04em;
  display:inline-block;
}

h2{
  font-family:"Newsreader", Georgia, serif;
  font-weight:400;
  font-size:clamp(2.2rem, 4.6vw, 3.6rem);
  line-height:1.04;
  letter-spacing:-.018em;
  margin-bottom:.6em;
  color:var(--ink);
}
h2 .it{font-style:italic;color:var(--accent)}

.lede{
  font-size:clamp(1.15rem, 1.8vw, 1.4rem);
  line-height:1.45;
  color:var(--ink-2);
  max-width:40ch;
  margin-top:36px;
  font-weight:400;
}

.wrap p{margin-bottom:1.2em;color:var(--ink-2)}
.wrap p:last-child{margin-bottom:0}
.wrap p a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:var(--hair-2)}
.wrap p a:hover{text-decoration-color:var(--accent)}

em{font-style:italic;color:var(--ink)}
strong{color:var(--ink);font-weight:600}

.pull{
  font-family:"Newsreader", Georgia, serif;
  font-size:clamp(1.7rem, 3.4vw, 2.4rem);
  line-height:1.18;
  letter-spacing:-.012em;
  color:var(--ink);
  margin:1.2em 0 1.4em;
  max-width:24ch;
}
.pull .it{font-style:italic}
.pull::before{
  content:"";display:block;width:36px;height:1px;background:var(--accent);
  margin-bottom:24px;
}

/* couverture */
.cover{
  min-height:100vh;display:flex;align-items:center;
  padding-top:80px; padding-bottom:14vh;
}
.cover .num{display:none}
.cover-inner{max-width:var(--maxw);margin:0 auto;position:relative}
.cover h1{margin-top:6px}
.cover .num-huge{
  color:var(--accent);
  font-size:clamp(7rem, 22vw, 18rem);
  display:block;line-height:.88;margin:.05em 0;
}
.cover .num-huge .e{font-size:.4em;vertical-align:.6em;color:var(--muted);margin-left:.04em;letter-spacing:0}
.cover .lede{margin-top:42px}

.scrollhint{
  display:inline-flex;align-items:center;gap:10px;
  margin-top:54px;
  font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
}
.scrollhint .arrow{
  display:inline-block;width:18px;height:18px;border:1px solid var(--hair-2);border-radius:99px;
  position:relative;
}
.scrollhint .arrow::after{
  content:"";position:absolute;left:50%;top:5px;width:1px;height:6px;background:var(--ink);
  transform:translateX(-50%);animation:tap 1.6s ease-in-out infinite;
}
@keyframes tap{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,3px)}}

/* tag de filet */
.hair{display:block;height:1px;background:var(--hair);margin:2.4em 0}

/* ---------- dataviz : barres minces, tabular figures ---------- */
.dataviz{
  margin:3.4em 0 2.4em;
  padding:28px 0;
  border-top:1px solid var(--hair);
  border-bottom:1px solid var(--hair);
}
.viz-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:22px}
.viz-title{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted)!important;margin:0!important}
.viz-src{font-size:11px!important;color:var(--muted)!important;margin:14px 0 0!important;letter-spacing:.04em}
.bar-row{
  display:grid;grid-template-columns:50px 1fr 60px;align-items:center;gap:18px;
  padding:14px 0;border-top:1px solid var(--hair);
}
.bar-row:first-of-type{border-top:0}
.bar-year{font-family:"JetBrains Mono",monospace;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.bar{height:2px;background:var(--paper-2);border-radius:99px;overflow:hidden;position:relative}
.bar i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;
  transition:width 1.4s cubic-bezier(.16,1,.3,1)}
.dataviz.in .bar i{width:var(--w)}
.bar-val{
  text-align:right;
  font-family:"Newsreader", Georgia, serif;font-size:24px;color:var(--ink);
  font-variant-numeric:tabular-nums;letter-spacing:-.01em;
}

/* ---------- reform comparison table ---------- */
.reform-table-container {
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.reform-table-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 1.2rem 0;
  color: var(--ink);
}
.reform-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  text-align: left;
}
.reform-table th, .reform-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair-2);
}
.reform-table th {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--paper-2);
}
.reform-table td {
  color: var(--ink-2);
}
.reform-table tr:last-child td {
  border-bottom: none;
}
.reform-table td .suspended {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 600;
}
.reform-table td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.reform-table td .highlight-val {
  color: var(--ink);
  font-weight: 700;
}
.reform-table td .now-val {
  color: var(--accent);
  font-weight: 700;
}
.reform-table td.negative {
  color: #dc2626;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.reform-table td.positive {
  color: #22c55e;
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

/* ---------- bloc compteur 300 → 150 ---------- */
.counter-block{
  margin:3em 0 2em;
  display:grid;grid-template-columns:1fr 1fr;gap:0;
  border:1px solid var(--hair);border-radius:12px;overflow:hidden;
}
.counter-line{
  padding:26px 24px;
  background:var(--surface);
  position:relative;
}
.counter-line+.counter-line{
  border-left:1px solid var(--hair);
  background:var(--accent-soft);
}
.counter-label{
  font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
  display:block;margin-bottom:14px;
}
.counter-num{
  font-family:"Newsreader", Georgia, serif;font-size:54px;line-height:1;
  letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink);
}
.counter-num.was{color:var(--muted);text-decoration:line-through;
  text-decoration-color:color-mix(in oklab, var(--accent) 70%, transparent);
  text-decoration-thickness:2px}
.counter-num.now{color:var(--accent)}
.counter-delta{
  position:absolute;top:24px;right:24px;font-family:"JetBrains Mono",monospace;
  font-size:11px;color:var(--accent);letter-spacing:.04em;
}

/* ---------- salle d'attente ---------- */
.queue{
  margin:3em 0 2em;padding:48px 28px;
  text-align:center;border:1px solid var(--hair-2);border-radius:12px;
  background:var(--surface);
  position:relative;overflow:hidden;
}
.queue::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(600px 200px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events:none;
}
.queue-title{
  font-size:11px!important;letter-spacing:.22em;text-transform:uppercase;color:var(--muted)!important;
  margin-bottom:22px!important;display:flex;align-items:center;justify-content:center;gap:10px;
}
.queue-title::before, .queue-title::after{
  content:"";width:20px;height:1px;background:var(--hair-2);display:inline-block;
}
.queue-pos{
  font-family:"Newsreader", Georgia, serif;
  font-size:clamp(2.6rem, 8vw, 4.5rem)!important;line-height:1;
  color:var(--ink)!important;margin-bottom:16px!important;
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;
}
.queue-pos #queueNum{color:var(--accent)}
.queue-msg{font-size:12px!important;color:var(--muted)!important;margin:0!important;letter-spacing:.04em}
.queue-dots{display:inline-flex;gap:5px;margin-top:18px}
.queue-dots span{
  width:5px;height:5px;border-radius:50%;background:var(--muted);
  opacity:.35;animation:dot 1.4s infinite ease-in-out;
}
.queue-dots span:nth-child(2){animation-delay:.2s}
.queue-dots span:nth-child(3){animation-delay:.4s}
@keyframes dot{0%,80%,100%{opacity:.25;transform:scale(.85)}40%{opacity:1;transform:scale(1)}}

/* ---------- grille de stats ---------- */
.stat-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:0;
  margin:3em 0 2em;
  border:1px solid var(--hair);border-radius:12px;overflow:hidden;
  background:var(--surface);
}
.stat{
  padding:30px 26px;border-top:1px solid var(--hair);border-left:1px solid var(--hair);
}
.stat:nth-child(1),.stat:nth-child(2){border-top:0}
.stat:nth-child(odd){border-left:0}
.stat-num{
  display:block;
  font-family:"Newsreader", Georgia, serif;
  font-size:clamp(2.6rem, 5vw, 3.6rem);
  color:var(--ink);
  letter-spacing:-.02em;line-height:1;
  font-variant-numeric:tabular-nums;
  margin-bottom:14px;
}
.stat-num .it{font-style:italic;color:var(--accent)}
.stat-txt{font-size:.92rem;color:var(--muted);line-height:1.45;display:block}

/* ---------- vidéo ---------- */
.video-slot{
  margin:2.4em 0 1em;aspect-ratio:16/9;border-radius:12px;overflow:hidden;
  background:#000;border:1px solid var(--hair-2);position:relative;
}
.video-slot video,.video-slot iframe{width:100%;height:100%;border:0;display:block}
.video-placeholder{
  height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:10px;padding:36px;
  color:var(--ink);
  background:
    linear-gradient(180deg,var(--paper-2),var(--paper));
}
[data-theme="dark"] .video-placeholder{
  background:linear-gradient(180deg,#221f19,#19170f);color:var(--paper);
}
.vp-icon{
  width:72px;height:72px;border-radius:50%;
  border:1px solid var(--hair-2);
  display:grid;place-items:center;font-size:18px;color:var(--accent);
  margin-bottom:6px;
}
.vp-icon::before{
  content:"";display:block;width:0;height:0;
  border-left:14px solid currentColor;border-top:9px solid transparent;border-bottom:9px solid transparent;
  margin-left:4px;
}
.video-placeholder p{margin:0!important;opacity:1!important;transform:none!important}
.vp-strong{font-family:"Newsreader", Georgia, serif;font-size:22px;letter-spacing:-.01em}
.vp-sub{font-size:.84rem;color:var(--muted)!important;max-width:48ch;line-height:1.5}
code{
  font-family:"JetBrains Mono",monospace;font-size:.82em;
  background:var(--paper-2);padding:2px 6px;border-radius:5px;color:var(--ink);
  border:1px solid var(--hair);
}
.caption{font-size:.82rem!important;color:var(--muted)!important;margin-top:1em!important;letter-spacing:.02em}

/* ---------- Discord (skin contenu, gardé tel-quel par cohérence) ---------- */
.discord{
  margin:2.4em 0 1em;background:#313338;border-radius:12px;overflow:hidden;
  font-family:"gg sans","Manrope", system-ui, sans-serif;color:#dbdee1;border:1px solid #232428;
  box-shadow:var(--shadow);
}
.dc-channel{background:#2b2d31;padding:14px 18px;font-weight:600;color:#f2f3f5;border-bottom:1px solid #232428;font-size:14px}
.dc-msg{display:flex;gap:14px;padding:14px 18px}
.dc-msg+.dc-msg{padding-top:4px}
.dc-avatar{flex:0 0 40px;height:40px;border-radius:50%;background:#5865f2;color:#fff;
  display:grid;place-items:center;font-weight:700;font-size:14px}
.dc-avatar.alt{background:#3ba55d}.dc-avatar.alt2{background:#faa61a;color:#1e1f22}
.dc-body{flex:1;min-width:0}
.dc-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:3px}
.dc-user{font-weight:600;color:#f2f3f5}
.dc-bot{background:#5865f2;color:#fff;font-size:10px;font-weight:700;padding:1px 5px;border-radius:4px;text-transform:uppercase;letter-spacing:.04em}
.dc-time{font-size:12px;color:#949ba4}
.dc-text{color:#dbdee1!important;font-size:.95rem;margin-bottom:0!important;opacity:1!important;transform:none!important}
.dc-poll{margin-top:10px;background:#2b2d31;border-radius:10px;padding:16px}
.dc-poll-q{font-weight:600;color:#f2f3f5;margin-bottom:14px}
.dc-opt{margin-bottom:12px}
.dc-opt-top{display:flex;justify-content:space-between;font-size:.92rem;margin-bottom:5px}
.dc-pct{color:#949ba4;font-variant-numeric:tabular-nums}
.dc-opt-bar{height:8px;background:#1e1f22;border-radius:5px;overflow:hidden}
.dc-opt-bar i{display:block;height:100%;width:0;background:#5865f2;border-radius:5px;transition:width 1s cubic-bezier(.16,1,.3,1)}
.discord.in .dc-opt-bar i{width:var(--p)}
.dc-opt:first-child .dc-opt-bar i{background:#ff5b35}
.dc-poll-foot{font-size:12px;color:#949ba4;margin-top:6px}
.dc-reactions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.dc-reactions span{background:#2b2d31;border:1px solid #232428;border-radius:8px;padding:3px 9px;font-size:13px}

/* ---------- sources / colophon ---------- */
.sources{background:var(--paper-2);border-bottom:0}
.src-list{list-style:none;margin:1.8em 0;display:grid;gap:0}
.src-list li{
  padding:18px 0;border-bottom:1px solid var(--hair);
  font-size:.92rem;color:var(--ink-2);
  display:grid;grid-template-columns:36px 1fr;gap:18px;align-items:baseline;
}
.src-list li:first-child{border-top:1px solid var(--hair)}
.src-list li .n{font-family:"JetBrains Mono",monospace;font-size:11px;color:var(--muted);letter-spacing:.06em}
.src-list li em{display:block;font-style:normal;color:var(--ink);font-weight:500;margin-bottom:2px;font-family:"Newsreader", Georgia, serif;font-size:1.15em;letter-spacing:-.01em}
.colophon{font-size:.82rem;color:var(--muted)!important;margin-top:2.4em!important;max-width:62ch;line-height:1.6}

/* ============== Moments visuels pleine page (style Apple) ==============
   Chaque .media est une section 100vh avec une grande photo
   légèrement zoomée qui parallaxe pendant le scroll, et un titre
   éditorial en surimpression.                                          */
.media{
  position:relative;
  height:100vh;
  min-height:520px;
  overflow:hidden;
  background:#0a0908;
  border-bottom:1px solid var(--hair);
}
.media-bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform:scale(1.14) translateY(0);
  will-change:transform;
  filter:saturate(1.05) contrast(1.02);
}
.media::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,.82) 100%),
    radial-gradient(80% 80% at 20% 80%, rgba(0,0,0,.25), transparent 60%);
  pointer-events:none;
}
.media-overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:10vh 6vw 8vh;
  color:#fff;
  z-index:2;
}
.media-kicker{
  font-family:"JetBrains Mono",monospace;
  font-size:11px; letter-spacing:.24em; text-transform:uppercase;
  color:rgba(255,255,255,.7);
  margin-bottom:22px;
  display:flex;align-items:center;gap:12px;
}
.media-kicker::before{content:"";width:24px;height:1px;background:currentColor}
.media-title{
  font-family:"Newsreader", Georgia, serif;
  font-weight:400;
  font-size:clamp(3rem, 8.5vw, 7rem);
  line-height:.98; letter-spacing:-.022em;
  max-width:14ch;
  color:#fff;
}
.media-title .it{font-style:italic; color:#fff;
  background:linear-gradient(180deg,#fff,color-mix(in oklab, var(--accent) 80%, #fff));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.media-sub{
  margin-top:26px;
  font-size:clamp(1rem,1.4vw,1.2rem);
  line-height:1.45;
  max-width:42ch;
  color:rgba(255,255,255,.86);
}

/* Variante « appli » : layout deux colonnes avec le téléphone à droite */
.media.phone .media-overlay.phone-overlay{
  flex-direction:row;
  align-items:flex-end;
  justify-content:space-between;
  gap:6vw;
  padding:8vh 6vw;
}
.media.phone .phone-slot{
  flex:0 0 auto;
  border-radius:42px;
  padding:14px;
  background:linear-gradient(180deg,#1a1816,#000);
  box-shadow:0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.media.phone .phone-slot image-slot{
  display:block; border-radius:30px; overflow:hidden;
}
.media.phone .phone-text{flex:1 1 auto;max-width:34rem}
.media.phone .phone-text .media-title{max-width:16ch}
@media (max-width:760px){
  .media.phone .media-overlay.phone-overlay{flex-direction:column;align-items:flex-start;justify-content:flex-end}
  .media.phone .phone-slot{align-self:center;transform:scale(.8);margin-top:24px}
  .media-title{font-size:clamp(2.4rem,9vw,3.4rem)}
  .media-overlay{padding:6vh 24px}
}

/* ============ LINEUP : scroll vertical → défilement horizontal ============
   On donne à la section une grande hauteur (le « train » de scroll).
   Le sticky pinne le contenu à hauteur d'écran, et le strip translateX
   en fonction de la progression dans la section parent.                  */
.lineup{
  position:relative;
  height: 300vh;          /* course de scroll : ~2 écrans pour défiler */
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 12%, transparent);
}
.lineup-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6vh 6vw 4vh;
}

.lineup-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: 4vh;
}
.lineup-kicker{
  font-family:"JetBrains Mono",monospace;
  font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
  margin-bottom:18px;
  display:flex;align-items:center;gap:12px;
}
.lineup-kicker::before{content:"";width:24px;height:1px;background:currentColor}
.lineup-title{
  font-family:"Newsreader", Georgia, serif;
  font-weight:400;
  font-size:clamp(2.4rem, 5.8vw, 4.6rem);
  line-height:1; letter-spacing:-.02em;
  max-width: 18ch;
}
.lineup-title .it{font-style:italic;color: color-mix(in oklab, var(--accent) 80%, #fff)}
.lineup-counter{
  font-family:"JetBrains Mono",monospace;
  font-size: 18px;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  font-variant-numeric: tabular-nums;
  display:flex;align-items:baseline;gap:6px;
  white-space:nowrap;
}
.lineup-counter #lineupNow{
  font-family:"Newsreader", Georgia, serif;
  font-style:italic;
  font-size: 42px;
  color: var(--accent);
  line-height:1;
  transition: color .3s;
}
.lineup-counter .sep{opacity:.4}

.lineup-track{
  flex:1 1 auto;
  overflow:hidden;
  position:relative;
}
.lineup-strip{
  display:flex;
  gap: 28px;
  height: 100%;
  will-change: transform;
  /* padding latéral pour amorcer et terminer hors écran */
  padding-right: 6vw;
}
.lineup-card{
  flex: 0 0 64vw;
  max-width: 880px;
  min-width: 320px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:#16140f;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lineup-card img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.03);
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.lineup-card::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, transparent 30%, rgba(0,0,0,.85) 100%);
  pointer-events:none;
}
.card-overlay{
  position:absolute; left:0; right:0; bottom:0;
  padding: 36px 36px 32px;
  color: #fff;
  z-index: 2;
}
.card-num{
  font-family:"JetBrains Mono",monospace;
  font-size:11px;letter-spacing:.2em;color: rgba(255,255,255,.6);
  margin-bottom:8px;
}
.card-cat{
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color: color-mix(in oklab, var(--accent) 80%, #fff);
  margin-bottom: 10px;
}
.card-title{
  font-family:"Newsreader", Georgia, serif;
  font-weight:400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height:1.05; letter-spacing:-.012em;
  max-width: 18ch;
  margin-bottom: 14px;
}
.card-title .it{font-style:italic; color: color-mix(in oklab, var(--accent) 70%, #fff)}
.card-meta{
  font-size: 13px;
  color: rgba(255,255,255,.78);
  max-width: 42ch;
  line-height: 1.45;
}

.lineup-hint{
  position:absolute; left:6vw; bottom:3vh;
  font-family:"JetBrains Mono",monospace;
  font-size:11px;letter-spacing:.16em;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  margin:0;
}

@media (max-width: 900px){
  .lineup{height:260vh}
  .lineup-card{flex-basis:78vw}
  .lineup-header{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:3vh}
  .lineup-counter #lineupNow{font-size:32px}
  .lineup-hint{display:none}
}

/* ---------- pied ---------- */
footer.foot{
  padding:48px 28px;text-align:center;
  border-top:1px solid var(--hair);background:var(--paper);
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
}
footer.foot .brand{
  font-family:"Newsreader", Georgia, serif;font-size:18px;
  text-transform:none;letter-spacing:-.01em;color:var(--ink);
  display:block;margin-bottom:8px;
}

/* ---------- tweaks panel ---------- */
.tweaks-fab{
  position:fixed;bottom:22px;right:22px;z-index:60;
  width:44px;height:44px;border-radius:50%;
  background:var(--ink);color:var(--paper);
  border:0;display:grid;place-items:center;cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .2s ease;
  font-size:18px;
}
.tweaks-fab:hover{transform:scale(1.06)}
.tweaks-panel{
  position:fixed;bottom:80px;right:22px;z-index:60;width:280px;
  background:var(--surface);border:1px solid var(--hair-2);border-radius:14px;
  box-shadow:var(--shadow);padding:18px;
  display:none;
  font-size:13px;
}
.tweaks-panel.open{display:block}
.tweaks-panel h4{
  font-family:"Manrope", system-ui, sans-serif;font-weight:500;font-size:11px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  margin-bottom:12px;margin-top:14px;
}
.tweaks-panel h4:first-child{margin-top:0}
.tw-row{display:flex;gap:8px}
.tw-btn{
  flex:1;padding:10px 0;background:var(--paper-2);border:1px solid var(--hair);
  border-radius:8px;color:var(--ink);cursor:pointer;font-size:12px;
  font-family:inherit;
  transition:all .2s;
}
.tw-btn:hover{border-color:var(--hair-2)}
.tw-btn.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.tw-swatch{
  width:32px;height:32px;border-radius:50%;border:2px solid var(--hair);cursor:pointer;
  padding:0;transition:transform .2s, border-color .2s;
}
.tw-swatch:hover{transform:scale(1.08)}
.tw-swatch.active{border-color:var(--ink);transform:scale(1.08)}

/* ---------- responsive ---------- */
@media (max-width:1140px){
  nav.rail{display:none}
}
@media (max-width:1140px) and (min-width:761px){
  #wallet{
    width:150px;
    right:10px;
    top:72px;
    padding:10px 12px 8px;
  }
  #wallet .w-amount{
    font-size:26px;
  }
  #wallet .w-amount .eur{
    font-size:12px;
    vertical-align:2px;
  }
}
@media (max-width:760px){
  .chapter .num{position:static;display:block;margin-bottom:24px;transform:none}
  #wallet {
    position: fixed;
    top: 8px;
    right: 12px;
    left: auto;
    width: auto;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 45;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    background: color-mix(in oklab, var(--surface) 90%, transparent) !important;
    border: 1px solid var(--hair-2) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: none !important;
  }
  #wallet.wallet-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px) scale(0.95) !important;
  }
  #wallet .w-row {
    display: none !important;
  }
  #wallet .w-bar {
    display: none !important;
  }
  #wallet .w-last {
    display: none !important;
  }
  #wallet .w-amount {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin: 0;
  }
  #wallet .w-amount .eur {
    font-size: 11px !important;
    margin-left: 2px;
    vertical-align: baseline !important;
  }
  main{padding-top:80px}
  .stat-grid{grid-template-columns:1fr}
  .stat{border-left:0!important;border-top:1px solid var(--hair)!important}
  .stat:nth-child(1){border-top:0!important}
  .counter-block{grid-template-columns:1fr}
  .counter-line+.counter-line{border-left:0;border-top:1px solid var(--hair)}
  .counter-num{font-size:42px}
  header.mast{padding:12px 16px}
  .mast .meta{display:none}
  .chapter{padding:10vh 18px}
  .cover{padding-top:100px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .wrap>*{opacity:1;transform:none;transition:none}
  .scrollhint .arrow::after{animation:none}
  .queue-dots span{animation:none;opacity:.5}
}

/* =====================================================================
   ÉDITORIAL — couche de finition
   Réglages typographiques fins, texture papier, lettrines, citations,
   raffinement des composants (wallet, stats, sources, lineup).
   ===================================================================== */

/* texture papier très discrète (noise SVG) */
body{
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed, scroll;
}
[data-theme="dark"] body{
  background-image:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Newsreader : tirer parti de l'opsz variable */
h1, h2, h3, .card-title, .lineup-title, .media-title, .pull, .stat-num,
.counter-num, .w-amount, .queue-pos, .bar-val, .vp-strong,
.src-list li span em{
  font-variation-settings: "opsz" 144;
  font-feature-settings: "ss01", "ss02", "kern", "liga";
}
.kicker, .lineup-kicker, .media-kicker, .card-cat,
.viz-title, .wrap p .word, .lede{
  font-feature-settings: "kern", "liga", "ss01";
}
/* italique de Newsreader = très joli, on lui donne du caractère */
.it, em.it, .news-it{
  font-family:"Newsreader", Georgia, serif !important;
  font-style: italic !important;
  font-variation-settings: "opsz" 144;
  font-weight: 400;
}

/* corps : Manrope un cran plus chaud */
body{
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -.003em;
}
.wrap p{
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.62;
}
.wrap p strong{font-weight: 600}

/* hero : on remonte la finesse du grand chiffre */
.cover .num-huge{
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  letter-spacing: -.05em;
}
.cover h1 .it{
  font-style: italic;
  color: var(--accent);
  letter-spacing: -.02em;
}

/* lettrine : sur le premier vrai paragraphe de prose (après h2, ou après pull) */
.chapter:not(.cover):not(.sources) .wrap h2 + p:not(.pull):first-letter,
.chapter:not(.cover):not(.sources) .wrap .pull + p:first-letter{
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4.6em;
  float: left;
  line-height: .82;
  padding: 8px 14px 0 0;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

/* pull quote : guillemets positionnés absolument pour éviter tout chevauchement ou retour à la ligne désordonné */
.pull{
  position: relative;
  text-align: center;
  margin: 2.2rem auto 2.5rem;
  max-width: 32ch;
  padding: 1.5rem 4.5rem;
  line-height: 1.35;
}
.pull::before,
.pull::after {
  position: absolute;
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4.2rem;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  display: block;
  width: auto;
  height: auto;
  background: none;
  margin: 0;
}
.pull::before {
  content: "“";
  top: -0.5rem;
  left: 0.5rem;
}
.pull::after {
  content: "”";
  bottom: -2.2rem;
  right: 0.5rem;
}

/* wallet : raffinement */
#wallet{
  padding: 16px 18px 14px;
  border-radius: 14px;
}
.w-eyebrow, .w-chip{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 10px;
}
.w-amount{
  font-weight: 400;
  letter-spacing: -.025em;
}
.w-amount .eur{
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  vertical-align: 4px;
  color: var(--muted);
}
.w-bar{
  height: 2px;
  background: var(--hair);
  position: relative;
}
.w-bar::before{
  content: ""; position:absolute; inset:0;
  background:
    repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px), var(--hair) calc(10% - 1px) 10%);
  opacity:.4; pointer-events:none;
}
.w-last{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .02em;
}

/* chapitre : kicker plus aérien, numéro plus discret */
.kicker{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .24em;
}
.chapter .num{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .22em;
  opacity: .7;
}

/* titres : forcer le rendu éditorial Newsreader */
h1{
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.028em;
  line-height: .96;
}
h2{
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.022em;
  line-height: 1.02;
}

/* dataviz : valeurs en italique fin */
.bar-val{
  font-family: "Newsreader", serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  font-variation-settings: "opsz" 72;
}
.bar i{
  background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--paper)));
}

/* counter-block : grandeur typographique */
.counter-num{
  font-weight: 400;
  font-size: 64px;
  font-variation-settings: "opsz" 144;
}
.counter-num.was{
  text-decoration-thickness: 1.5px;
}

/* stat grid : nombres plus présents, symbole % en italique accent */
.stat-num{
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
}
.stat-num .it{
  font-size: .7em;
  margin-left: .04em;
  vertical-align: .04em;
  color: var(--accent);
}
.stat{
  position: relative;
}
.stat::before{
  content: "·";
  position: absolute;
  top: 18px; left: 24px;
  color: var(--accent);
  font-size: 32px;
  line-height: 0;
}
.stat-txt{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: -.003em;
}

/* salle d'attente */
.queue-pos{
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
}
.queue-pos #queueNum{
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 500;
}

/* sources : numéros en italique serif, titres redessinés */
.src-list li{
  padding: 22px 0;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  align-items: start;
  cursor: default;
  transition: background .25s, padding-left .25s;
}
.src-list li:hover{
  background: var(--accent-soft);
  padding-left: 16px;
}
.src-list li .n{
  font-family: "Newsreader", serif !important;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 72;
  line-height: 1;
  margin-top: 4px;
}
.src-list li em{
  font-family: "Newsreader", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: -.012em;
  font-variation-settings: "opsz" 72;
}
.src-list li span:not(.n){
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* lineup cards : finitions */
.lineup-title{
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.028em;
}
.card-title{
  font-weight: 400;
  font-variation-settings: "opsz" 96;
}
.card-cat{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .22em;
}
.lineup-counter #lineupNow{
  font-weight: 400;
  font-variation-settings: "opsz" 144;
}

/* media titles : pareil */
.media-title{
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
}
.media-kicker{
  font-family: "JetBrains Mono", monospace;
}

/* brand : utiliser Newsreader avec opsz haut */
.mast .brand{
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -.015em;
}
.mast .brand span:last-child{font-style: italic}

/* footer brand */
footer.foot .brand{
  font-family: "Newsreader", serif;
  font-style: italic;
  font-variation-settings: "opsz" 72;
}

/* lede : un peu plus chaud, italique léger sur la phrase d'attaque */
.lede{
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink-2);
  letter-spacing: -.005em;
}

/* rail : numéros plus expressifs au survol */
nav.rail a{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 10.5px;
}

/* discord : seule différence — police légèrement plus lisible */
.dc-channel, .dc-user, .dc-poll-q{font-family: "Manrope", "gg sans", sans-serif}

/* selection : couleur de fond plus douce */
::selection{background: color-mix(in oklab, var(--accent) 30%, var(--paper)); color: var(--ink)}

/* tweaks panel : Manrope partout */
.tweaks-panel, .tweaks-panel h4, .tw-btn{font-family: "Manrope", system-ui, sans-serif}
.tweaks-fab{font-family: "Newsreader", serif; font-style: italic; font-variation-settings: "opsz" 72}

/* responsive : ajuster lettrine */
@media (max-width: 760px){
  .chapter:not(.cover):not(.sources) .wrap h2 + p:not(.pull):first-letter,
  .chapter:not(.cover):not(.sources) .wrap .pull + p:first-letter{
    font-size: 3.6em;
  }
  .src-list li{grid-template-columns: 42px 1fr; gap: 16px}
  .src-list li .n{font-size: 22px}
  .src-list li em{font-size: 18px}
}

/* =====================================================================
   CINÉMA — sections pinnées avec couches animées par scroll
   ===================================================================== */
.cinema{
  position:relative;
  height: 160vh;
  background: #06050a;
  color:#fff;
  overflow:hidden;
}
.cinema-hero{ background: linear-gradient(180deg, #06050a 0%, #0a0908 60%, #06050a 100%); }
.cinema-reform{ background: linear-gradient(180deg, #06050a 0%, #1a0e08 50%, #06050a 100%); }

.cinema-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cinema .layer{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0 6vw;
  will-change: opacity, transform;
  pointer-events:none;
}
.cinema .layer.flex-col{ flex-direction: column; gap: 28px }
.cinema .layer.bottom{ justify-content: flex-end; align-items: center; padding-bottom: 10vh }
.cinema .layer.top   { align-items: flex-start; padding-top: 12vh }

/* grain et vignette */
.cinema .grain{
  position:absolute; inset:0; pointer-events:none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.10;
  mix-blend-mode: overlay;
}
.cinema .vignette{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(80% 60% at 50% 45%, transparent 0%, transparent 40%, rgba(0,0,0,.85) 100%);
}
.cinema .vignette.warm{
  background:
    radial-gradient(70% 55% at 50% 45%, color-mix(in oklab, var(--accent) 35%, transparent), transparent 50%),
    radial-gradient(80% 60% at 50% 45%, transparent 0%, rgba(0,0,0,.85) 100%);
}

/* typo cinéma */
.cine-kicker{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0;
}
.cine-eyebrow{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.cine-eyebrow .dash{ width:36px; height:1px; background: var(--accent); display:inline-block }
.cine-eyebrow sup{ font-feature-settings:"sups"; font-size:.7em; }

.cine-num{
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(7rem, 26vw, 28rem);
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
  margin: 0;
  text-shadow: 0 0 80px color-mix(in oklab, var(--accent) 45%, transparent);
}
.cine-num .e{
  font-style: normal;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  font-size: .32em;
  vertical-align: .9em;
  margin-left: .04em;
  text-shadow:none;
}

.cine-sub{
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: rgba(255,255,255,.78);
  max-width: 34ch;
  margin: 0 auto;
  font-variation-settings: "opsz" 72;
}

.cine-cta{
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.cine-cta .arrow-line{ width:36px; height:1px; background: var(--accent); display:inline-block }

/* ===== Réforme : morph 300 → 150 ===== */
.morph-num{
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: .9;
  letter-spacing: -.045em;
  color: rgba(255,255,255,.95);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: tabular-nums;
}
.morph-num.accent{
  color: var(--accent);
  font-style: italic;
  text-shadow: 0 0 80px color-mix(in oklab, var(--accent) 50%, transparent);
}
.morph-num .e{
  font-style: normal;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  font-size: .3em;
  vertical-align: .9em;
  margin-left: .04em;
  text-shadow:none;
}

.stamp-num{
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(8rem, 26vw, 28rem);
  color: rgba(255,255,255,.045);
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  user-select:none;
}

.minus50{
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  color: var(--accent);
  padding: 14px 22px;
  border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent);
  border-radius: 99px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.m-line{ width: 32px; height: 1px; background: var(--accent); align-self:center; display:inline-block }
.m-num{
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.015em;
  line-height: 1;
}
.m-pct{
  font-style: normal;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  opacity: .85;
  margin-left: .08em;
  font-size: .7em;
}
.m-label{
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

@media (max-width: 760px){
  .cinema{ height: 140vh }
  .cinema-hero .cine-num, .morph-num{ font-size: clamp(5rem, 32vw, 12rem) }
  .stamp-num{ font-size: clamp(6rem, 36vw, 14rem) }
  .cinema .layer{ padding: 0 24px }
  .minus50{ padding: 10px 14px; gap: 10px }
  .m-line{ display:none }
}

/* =====================================================================
   NOUVEAUX COMPOSANTS INTERACTIFS ET ACCESSIBILITÉ
   ===================================================================== */

/* Modernisation du Wallet (Glassmorphism & Lueur adaptative) */
#wallet {
  background: color-mix(in oklab, var(--surface) 78%, transparent) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hair-2);
}

#wallet.pulse {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(13,12,10,.04), 0 20px 50px -10px var(--accent-soft);
}

/* Accessibilité : Contrôle de la taille de la police */
body.size-small { font-size: 15px !important; }
body.size-normal { font-size: 18px !important; }
body.size-large { font-size: 21px !important; }

body.size-small .wrap p { font-size: 15px !important; }
body.size-normal .wrap p { font-size: 18px !important; }
body.size-large .wrap p { font-size: 21px !important; }

body.size-small .pull { font-size: clamp(1.4rem, 2.8vw, 2rem) !important; }
body.size-large .pull { font-size: clamp(2rem, 4vw, 2.8rem) !important; }

/* Graphique Donut SVG Interactif */
.donut-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 3.5em 0;
  padding: 30px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: background 0.4s ease;
}

.donut-viz {
  flex: 0 0 200px;
  position: relative;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: var(--paper-2);
  stroke-width: 16;
  transition: stroke 0.4s ease;
}

.donut-segment {
  fill: none;
  stroke-width: 16;
  transition: stroke-width 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.donut-segment:hover, .donut-segment.active {
  stroke-width: 20;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.15));
}

.donut-lecture { stroke: oklch(0.62 0.16 38); }
.donut-cinema { stroke: oklch(0.62 0.12 220); }
.donut-musique { stroke: oklch(0.62 0.12 140); }
.donut-spectacle { stroke: oklch(0.62 0.12 290); }
.donut-autres { stroke: oklch(0.68 0.10 80); }

.donut-center {
  transform: rotate(90deg);
  transform-origin: 100px 100px;
}

.donut-center-val {
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  fill: var(--ink);
  text-anchor: middle;
  transition: fill 0.4s ease;
}

.donut-center-label {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 500;
  fill: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.donut-info {
  flex: 1;
}

.donut-info h4 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 0.4s ease;
}

.donut-desc-txt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  min-height: 72px;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

.donut-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.donut-legend li:hover, .donut-legend li.active {
  background: var(--paper-2);
  color: var(--ink);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.donut-lecture { background: oklch(0.62 0.16 38); }
.legend-dot.donut-cinema { background: oklch(0.62 0.12 220); }
.legend-dot.donut-musique { background: oklch(0.62 0.12 140); }
.legend-dot.donut-spectacle { background: oklch(0.62 0.12 290); }
.legend-dot.donut-autres { background: oklch(0.68 0.10 80); }

/* Accordéon de Transcription de la vidéo */
.transcript-accordion {
  margin-top: 24px;
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background 0.4s ease;
}

.chapter.ink .transcript-accordion {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.transcript-trigger {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  transition: background 0.3s ease;
}

.transcript-trigger:hover {
  background: rgba(0, 0, 0, 0.02);
}

.chapter.ink .transcript-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.transcript-trigger .t-arrow {
  font-size: 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.transcript-accordion.open .transcript-trigger .t-arrow {
  transform: rotate(180deg);
}

.transcript-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.transcript-inner {
  padding: 0 24px 28px;
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--hair);
  color: var(--ink-2);
}

.chapter.ink .transcript-inner {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.t-seq {
  margin-top: 24px;
  border-bottom: 1px dashed var(--hair);
  padding-bottom: 16px;
}

.t-seq:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.t-seq h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.t-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.t-seq strong {
  font-weight: 600;
  color: var(--ink);
}

.chapter.ink .t-seq strong {
  color: var(--paper);
}

/* Section Quiz */
.quiz-box {
  margin: 3em 0 2em;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.quiz-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step.active {
  display: block;
  opacity: 1;
  transform: none;
}

.quiz-question {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.6rem) !important;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 28px;
  color: var(--ink);
  transition: color 0.4s ease;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quiz-opt-btn {
  text-align: left;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 10px;
  color: var(--ink-2);
  font-family: "Manrope", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.45;
}

.quiz-opt-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateX(6px);
  box-shadow: 0 4px 14px -4px var(--accent-soft);
}

.quiz-result-card {
  text-align: center;
  padding: 10px 0;
}

.quiz-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
  font-weight: 600;
}

.quiz-result-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem) !important;
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--ink);
  transition: color 0.4s ease;
}

.quiz-result-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 28px;
  transition: color 0.4s ease;
}

.quiz-comparison {
  max-width: 440px;
  margin: 0 auto 32px;
  background: var(--paper-2);
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.comp-bar {
  height: 4px;
  background: var(--hair-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.comp-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-txt {
  font-size: 12px;
  color: var(--muted);
  margin: 0 !important;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

.quiz-reset-btn {
  padding: 12px 30px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.quiz-reset-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.quiz-progress-bar {
  height: 4px;
  background: var(--paper-2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: background 0.4s ease;
}

.quiz-progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chatbot IA Assistant (Claude) */
.chat-fab {
  position: fixed;
  bottom: 22px;
  right: 82px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background 0.3s;
}

.chat-fab:hover {
  transform: scale(1.06);
  background: color-mix(in oklab, var(--accent) 85%, #fff);
}

.chat-icon {
  font-size: 18px;
  pointer-events: none;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper);
  animation: bounce 2.2s infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-window {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 1000;
  width: 360px;
  height: 520px;
  max-height: 80vh;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  transform: translateY(15px);
}

.chat-window.open {
  display: flex;
  opacity: 1;
  transform: none;
}

.chat-header {
  padding: 16px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.chat-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(85, 165, 110, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(85, 165, 110, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(85, 165, 110, 0); }
}

.chat-title {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: var(--ink);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--hair-2);
  border-radius: 3px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  animation: bubble-fade 0.25s ease forwards;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
  transition: background 0.4s ease, color 0.4s ease;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg p {
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.chat-suggestions {
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--hair);
  background: var(--surface);
  white-space: nowrap;
  transition: background 0.4s ease, border-color 0.4s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.chat-sugg-btn {
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 20px;
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
  flex: 0 0 auto;
}

.chat-sugg-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}

.chat-input-form {
  padding: 12px 20px;
  background: var(--paper-2);
  border-top: 1px solid var(--hair);
  display: flex;
  gap: 10px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.chat-input-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.4s, color 0.4s;
}

.chat-input-form input:focus {
  border-color: var(--accent);
}

.chat-submit-btn {
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background 0.4s, color 0.4s;
}

.chat-submit-btn:hover {
  opacity: 0.9;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  animation: typing-dots 1s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dots {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 420px) {
  .chat-window {
    width: auto;
    left: 12px;
    right: 12px;
    bottom: 80px;
    height: 70vh;
  }
  .chat-fab {
    right: 72px;
  }
}

/* =====================================================================
   CORRECTIONS CINÉMA REFORME
   ===================================================================== */
.cinema-reform .layer.layer-eyebrow {
  position: absolute;
  top: 17vh;
  bottom: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cinema-reform .layer.layer-eyebrow .cine-eyebrow {
  position: relative;
  top: 0;
}
.cinema-reform .layer.morph-to {
  position: absolute;
  top: auto;
  bottom: 1.5vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cinema-reform .layer.layer-sub {
  position: absolute;
  top: auto;
  bottom: 65vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cinema-reform .layer.layer-sub .cine-sub {
  position: relative;
  top: 0;
}
.cinema-reform .layer.bottom {
  position: absolute;
  top: auto;
  bottom: 50vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* =====================================================================
   MAQUETTE INTERACTIVE APPLICATION PASS CULTURE (LIGHT THEME REALISTIC)
   ===================================================================== */
.pass-culture-app {
  width: 240px;
  height: 500px;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  font-family: "Manrope", sans-serif;
  color: #1c1917;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-align: left;
  user-select: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Scrollbars hiding */
.pass-culture-app *::-webkit-scrollbar {
  display: none;
}
.pass-culture-app * {
  -ms-overflow-style: none;
  scrollbar-width: none;
  box-sizing: border-box;
}

/* Status Bar (Light theme) */
.app-status-bar {
  height: 22px;
  background: #ffffff;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #1c1917;
  flex-shrink: 0;
  position: relative;
}

.app-dynamic-island {
  width: 48px;
  height: 11px;
  background: #000000;
  border-radius: 99px;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: inset 0 0.5px 1px rgba(255, 255, 255, 0.15);
}

.app-icons {
  font-size: 9px;
  letter-spacing: 1px;
}

/* App Header */
.app-header {
  height: 44px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid #f5f5f4;
}

.app-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: #1c1917;
}

.app-logo-accent {
  color: #ff5f57;
  font-style: italic;
  font-weight: 800;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-location-pill {
  font-size: 9px;
  font-weight: 600;
  background: #f5f5f4;
  color: #57534e;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.app-profile {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff5f57;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search bar styling */
.app-search-box {
  padding: 8px 12px;
  background: #ffffff;
  flex-shrink: 0;
}

.app-search-input {
  background: #f5f5f4;
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #78716c;
  border: 1px solid #e7e5e4;
  cursor: pointer;
}

/* Views Container */
.app-views-container {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  background: #fafaf9;
}

.app-view {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.app-view > * {
  flex-shrink: 0;
}

#viewHome {
  padding-bottom: 56px; /* Space for bottom nav */
}

/* Wallet Card (Coral Rose Gradient) */
.app-wallet-card {
  margin: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff5f57 0%, #e04b4b 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 95, 87, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-wallet-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.app-reset-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 8px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.app-reset-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.app-wallet-amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.app-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  margin: 2px 0;
}

.app-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-wallet-info {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.85);
}

/* Categories Navigation Scrollbar */
.app-home-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  flex-shrink: 0;
}
.app-home-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 0 0 54px;
}
.app-home-cat-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, border-color 0.2s;
}
.app-home-cat-item:hover .app-home-cat-circle {
  transform: translateY(-2px);
  border-color: #ff5f57;
}
.app-home-cat-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #57534e;
  text-align: center;
}

/* Sections & Carousels */
.app-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #292524;
  margin: 28px 12px 12px; /* Espacement accru pour aérer la maquette */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 10px;
  height: 245px;
  flex-shrink: 0;
}

/* Interactive Cards */
.app-card {
  flex: 0 0 140px;
  height: 230px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.app-card-img-container {
  position: relative;
  height: 130px;
  width: 100%;
  overflow: hidden;
  background: #f5f5f4;
}

.app-card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.app-card:hover .app-card-img {
  transform: scale(1.05);
}

.app-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.app-card-fav-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.app-card-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  justify-content: space-between;
}

.app-card-cat {
  font-size: 7.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff5f57;
  letter-spacing: 0.05em;
}

.app-card-title {
  font-size: 10px;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
  line-height: 1.3;
  height: 26px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-card-venue {
  font-size: 8px;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #f5f5f4;
  padding-top: 6px;
}

.app-card-price {
  font-size: 11px;
  font-weight: 800;
  color: #ff5f57;
}

.app-card-book-btn {
  background: #ff5f57;
  color: #ffffff;
  border: none;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.app-card-book-btn:hover {
  background: #e04b4b;
  transform: scale(1.02);
}

/* Category Search Grid */
.app-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.app-grid-item {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.app-grid-item:hover {
  transform: translateY(-1px);
  border-color: #ff5f57;
}

.app-grid-icon {
  font-size: 18px;
}

.app-grid-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #292524;
}

/* Search results list */
.app-search-results {
  position: absolute;
  inset: 0;
  background: #fafaf9;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.app-results-header {
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  font-size: 9px;
  font-weight: 600;
  color: #78716c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-results-clear {
  background: none;
  border: none;
  color: #ff5f57;
  font-weight: 700;
  cursor: pointer;
}

.app-results-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-result-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-result-card:hover {
  transform: translateY(-1px);
}

.app-result-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-result-info {
  flex-grow: 1;
  min-width: 0;
}

.app-result-cat {
  font-size: 7px;
  font-weight: 800;
  color: #ff5f57;
  text-transform: uppercase;
}

.app-result-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #292524;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-result-venue {
  font-size: 7.5px;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-result-price {
  font-size: 10px;
  font-weight: 800;
  color: #1c1917;
  flex-shrink: 0;
}

/* Toast */
.app-toast {
  position: absolute;
  top: 72px;
  left: 12px;
  right: 12px;
  background: #b3261e;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: app-fade-in 0.3s ease;
}

@keyframes app-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom Nav */
.app-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #ffffff;
  border-top: 1px solid #e7e5e4;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 5;
  padding-bottom: 6px;
}

/* iOS Home Indicator */
.app-home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  background: #1c1917;
  border-radius: 99px;
  z-index: 6;
  pointer-events: none;
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 4px 10px;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.app-tab:hover {
  opacity: 0.9;
}

.app-tab.active {
  opacity: 1;
}

.app-tab-icon {
  font-size: 14px;
}

.app-tab-label {
  font-size: 8px;
  margin-top: 2px;
  font-weight: 600;
}

.app-tab.active .app-tab-icon,
.app-tab.active .app-tab-label {
  color: #ff5f57;
}

.app-resas-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff5f57;
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 800;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Bottom Sheet Slide-Up */
.app-modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 20;
  display: flex;
  align-items: flex-end;
}

.app-modal-overlay {
  position: absolute;
  inset: 0;
}

.app-modal-content {
  width: 100%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 10px 16px 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 21;
  animation: app-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
}

@keyframes app-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.app-modal-handle {
  width: 36px;
  height: 4px;
  background: #e7e5e4;
  border-radius: 99px;
  margin: 0 auto 12px;
}

.app-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.app-details-cat {
  font-size: 8px;
  font-weight: 800;
  color: #ff5f57;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-details-title {
  font-size: 13px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 2px;
  line-height: 1.3;
}

.app-details-venue {
  font-size: 9px;
  color: #78716c;
}

.app-details-divider {
  height: 1px;
  background: #f5f5f4;
  margin: 10px 0;
}

.app-details-desc {
  font-size: 9.5px;
  color: #57534e;
  line-height: 1.4;
  margin: 0 0 14px;
}

.app-details-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-details-price {
  font-size: 14px;
  font-weight: 800;
  color: #1c1917;
}

.app-details-book-btn {
  flex-grow: 1;
  background: #ff5f57;
  color: #ffffff;
  border: none;
  padding: 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  box-shadow: 0 4px 10px rgba(255, 95, 87, 0.2);
}

.app-details-book-btn:hover {
  background: #e04b4b;
}

.app-modal-close {
  background: #f5f5f4;
  border: none;
  color: #78716c;
  font-size: 14px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Success Ticket View */
.app-ticket-success-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.app-success-icon {
  font-size: 16px;
}

.app-ticket-success-header h3 {
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
  margin: 0;
  flex-grow: 1;
}

.app-ticket-card {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 12px;
}

.app-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.app-ticket-cat {
  font-size: 7.5px;
  font-weight: 800;
  color: #ff5f57;
  text-transform: uppercase;
}

.app-ticket-price-badge {
  font-size: 9px;
  font-weight: 800;
  color: #292524;
  background: #e7e5e4;
  padding: 2px 6px;
  border-radius: 6px;
}

.app-ticket-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 2px;
}

.app-ticket-venue {
  font-size: 8px;
  color: #78716c;
  margin: 0;
}

.app-ticket-barcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0 6px;
}

.app-barcode {
  height: 24px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.app-barcode span {
  background: #000000;
  height: 100%;
}
.app-barcode span:nth-child(even) { width: 1px; }
.app-barcode span:nth-child(3n) { width: 3px; }
.app-barcode span:nth-child(4n) { width: 2px; }
.app-barcode span:nth-child(5n) { width: 4px; }

.app-ticket-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: #292524;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.app-ticket-hint {
  font-size: 7.5px;
  color: #78716c;
  text-align: center;
  margin: 0;
}

/* Mes Résas View */
#viewResas {
  padding-bottom: 56px;
  background: #fafaf9;
}

.app-resas-header {
  padding: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #1c1917;
  border-bottom: 1px solid #e7e5e4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff;
}

.app-resas-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-empty-resas {
  font-size: 9px;
  color: #a8a29e;
  text-align: center;
  margin-top: 40px;
}

.app-resa-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.app-resa-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-resa-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #1c1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.app-resa-cost {
  font-size: 9px;
  font-weight: 700;
  color: #ff5f57;
}

.app-resa-venue {
  font-size: 8px;
  color: #78716c;
}

.app-resa-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  color: #292524;
  background: #fafaf9;
  padding: 2px 4px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 2px;
}

/* =====================================================================
   ADDITIONAL RICH INTERACTIVE COMPONENT STYLES
   ===================================================================== */

/* 1. Reçu Thermique Téléchargeable (Quiz Results) */
.quiz-ticket-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 24px auto;
  max-width: 440px;
  width: 100%;
}

.quiz-thermal-receipt {
  background: #fafaf7;
  color: #1c1917;
  font-family: "Courier New", Courier, monospace;
  padding: 30px 24px;
  width: 100%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border-left: 2px dashed #d6d3d1;
  border-right: 2px dashed #d6d3d1;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.receipt-cut {
  height: 6px;
  width: 100%;
  background-image: linear-gradient(135deg, transparent 3px, #fafaf7 3px), linear-gradient(-135deg, transparent 3px, #fafaf7 3px);
  background-size: 6px 6px;
  background-position: 0 0;
  position: absolute;
  left: 0;
}

.receipt-cut:not(.bottom) {
  top: -6px;
  background-image: linear-gradient(45deg, transparent 3px, #fafaf7 3px), linear-gradient(-45deg, transparent 3px, #fafaf7 3px);
}

.receipt-cut.bottom {
  bottom: -6px;
}

.receipt-header {
  text-align: center;
  font-size: 11px;
}

.r-star {
  display: block;
  letter-spacing: 2px;
  color: #a8a29e;
  font-size: 10px;
  margin: 4px 0;
  user-select: none;
}

.r-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  margin: 6px 0;
  letter-spacing: 0.5px;
  color: #1c1917;
}

.r-meta-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 4px;
  color: #57534e;
  font-size: 10px;
}

.r-meta-id {
  display: block;
  color: #78716c;
  font-size: 9px;
  margin-bottom: 2px;
}

.receipt-dots {
  text-align: center;
  letter-spacing: 1px;
  color: #a8a29e;
  margin: 10px 0;
  font-weight: bold;
  user-select: none;
}

.receipt-body {
  font-size: 12px;
}

.r-item {
  font-weight: 700;
  font-size: 11px;
  color: #57534e;
  margin-bottom: 4px;
}

.r-profile-title {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.r-desc {
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: #292524 !important;
  margin: 8px 0 0 !important;
  text-align: justify !important;
}

.receipt-comparison {
  margin: 14px 0;
}

.comp-bar {
  height: 6px;
  background: #e7e5e4;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.comp-bar span {
  display: block;
  height: 100%;
  background: #1c1917;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-txt {
  font-size: 10px !important;
  color: #57534e !important;
  font-family: "Courier New", Courier, monospace !important;
  margin: 0 !important;
}

.receipt-barcode-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 8px;
}

.receipt-barcode {
  display: flex;
  height: 32px;
  width: 170px;
  justify-content: center;
  background: transparent;
}

.receipt-barcode span {
  display: inline-block;
  background: #000000;
  height: 100%;
  width: 1px;
  margin-right: 1px;
}

.receipt-barcode span:nth-child(3n) { width: 3px; }
.receipt-barcode span:nth-child(4n) { width: 2px; }
.receipt-barcode span:nth-child(5n) { width: 4px; }
.receipt-barcode span:nth-child(even) { background: transparent; }

.receipt-code-txt {
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
  font-weight: 700;
  color: #292524;
}

.receipt-footer {
  text-align: center;
  font-size: 9px;
  color: #78716c;
  margin-top: 12px;
  line-height: 1.4;
}

.receipt-footer p {
  margin: 2px 0 !important;
}

.quiz-ticket-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* 2. Comparateur de Panier Culturel Interactif (Chapitre 2) */
.budget-comparator-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: var(--glass-shadow);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}

.bc-header h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bc-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.45;
}

.bc-controls-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.bc-controls {
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 99px;
  padding: 3px;
  border: 1px solid var(--hair);
  width: 100%;
  max-width: 480px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.bc-limit-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 99px;
  padding: 8px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.bc-limit-btn:hover {
  color: var(--ink);
}

.bc-limit-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  font-weight: 700;
}

.bc-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.bc-item-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.bc-item-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 24px -8px rgba(13, 12, 10, 0.06);
}

/* Selected State */
.bc-item-card.has-qty {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 28px -4px var(--accent-soft);
}

.bc-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bc-item-emoji {
  font-size: 20px;
  width: 40px;
  height: 40px;
  background: var(--paper-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.4s ease, transform 0.2s ease;
}

.bc-item-card.has-qty .bc-item-emoji {
  background: var(--accent-soft);
  transform: scale(1.05);
}

.bc-item-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.bc-item-name {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.35;
}

.bc-item-price {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

.bc-card-divider {
  height: 1px;
  background: var(--hair);
  margin: 14px 0;
}

.bc-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bc-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-2);
  border-radius: 99px;
  padding: 4px 8px;
  border: 1px solid var(--hair);
  flex-shrink: 0;
}

.bc-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.bc-qty-btn:hover {
  background: var(--paper);
  transform: scale(1.08);
}

.bc-qty-btn:active {
  transform: scale(0.95);
}

.bc-qty-val {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

.bc-item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.bc-subtotal-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bc-subtotal-val {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: inline-block;
}

.bc-progress-section {
  margin-top: 20px;
}

.bc-progress-bar {
  height: 10px;
  background: var(--hair-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  transition: background 0.4s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bc-progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px var(--accent-soft);
}

.bc-progress-bar span.over-limit {
  background: #ef4444;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.bc-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
}

.bc-progress-labels strong {
  color: var(--ink);
  font-weight: 800;
}

.bc-alert, .bc-reform-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  animation: chipFadeIn 0.3s ease forwards;
}

.bc-alert {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.bc-reform-alert {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

/* Micro-animations pop effect */
@keyframes popEffect {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); color: var(--accent); }
  100% { transform: scale(1); }
}

.pop {
  animation: popEffect 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. Suggestions Dynamiques du Chatbot IA */
@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-sugg-btn {
  animation: chipFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chat-sugg-btn:nth-child(1) { animation-delay: 0.04s; }
.chat-sugg-btn:nth-child(2) { animation-delay: 0.10s; }
.chat-sugg-btn:nth-child(3) { animation-delay: 0.16s; }

/* 4. Carte SVG Interactive de Toulouse (Chapitre 6) */
.toulouse-map-section {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  transition: background 0.4s ease, border-color 0.4s ease;
  box-sizing: border-box;
}

.map-wrapper {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .map-wrapper {
    grid-template-columns: 1fr;
  }
}

.map-svg-container {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.toulouse-svg {
  width: 100%;
  height: auto;
  max-height: 280px;
}

/* Waterways, bridges, grid styling */
.map-grid-dot {
  fill: var(--hair-2);
  opacity: 0.35;
}

.map-canal {
  stroke: #38bdf8;
  stroke-width: 1.5;
  stroke-dasharray: 3, 3;
  fill: none;
  opacity: 0.7;
}

.map-river {
  stroke: #38bdf8;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

.map-river-bg {
  stroke: #38bdf8;
  stroke-width: 18;
  fill: none;
  opacity: 0.08;
  stroke-linecap: round;
}

.map-bridge {
  stroke: var(--ink-2);
  stroke-width: 2.5;
  stroke-linecap: square;
}

.map-text-bridge {
  font-family: "Manrope", sans-serif;
  font-size: 5.5px;
  fill: var(--muted);
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}

.map-text-water {
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  fill: #0284c7;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.8;
  user-select: none;
}

.map-text-water-canal {
  font-family: "Manrope", sans-serif;
  font-size: 7px;
  fill: #0284c7;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.8;
  user-select: none;
}

.map-text-hood {
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  fill: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.6;
  user-select: none;
  transition: fill 0.4s ease;
}

.map-marker {
  cursor: pointer;
}

.marker-pulse {
  fill: var(--accent);
  opacity: 0;
  transform-origin: 0px 0px;
  animation: pulse 2.2s infinite ease-out;
}

.marker-pulse.book { fill: #f59e0b; }
.marker-pulse.cine { fill: #ef4444; }
.marker-pulse.museum { fill: #3b82f6; }
.marker-pulse.concert { fill: #a855f7; }

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.marker-core {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1.5;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  transform-origin: 0px 0px;
}

.marker-core.book { fill: #f59e0b; }
.marker-core.cine { fill: #ef4444; }
.marker-core.museum { fill: #3b82f6; }
.marker-core.concert { fill: #a855f7; }

.map-marker:hover .marker-core,
.map-marker.active .marker-core {
  transform: scale(1.35);
}

.map-marker.active .marker-core.book { stroke: #d97706; stroke-width: 2.5; }
.map-marker.active .marker-core.cine { stroke: #dc2626; stroke-width: 2.5; }
.map-marker.active .marker-core.museum { stroke: #2563eb; stroke-width: 2.5; }
.map-marker.active .marker-core.concert { stroke: #7c3aed; stroke-width: 2.5; }

.map-marker.active .marker-pulse {
  animation: activePulse 1.2s infinite ease-in-out;
}

@keyframes activePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.marker-icon {
  font-size: 11px;
  pointer-events: none;
  user-select: none;
}

.map-marker:hover .marker-pulse {
  animation-duration: 1.1s;
}

.marker-label {
  font-family: "Manrope", sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  transform: translateY(2px);
}

.map-marker:hover .marker-label,
.map-marker.active .marker-label {
  opacity: 1;
  transform: translateY(0);
}

.map-details-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.map-details-card.highlight {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.map-card-badge {
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--hair-2);
  color: var(--ink-2);
  display: inline-block;
  align-self: flex-start;
}

.map-card-badge.book { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.map-card-badge.cine { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.map-card-badge.museum { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.map-card-badge.concert { background: rgba(168, 85, 247, 0.12); color: #7c3aed; }

.map-card-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

.map-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 !important;
}

/* Map Card Stats Styling */
.map-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hair-2);
}

.map-stat-item {
  display: flex;
  flex-direction: column;
}

.map-stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  transition: color 0.3s;
}

.map-stat-lbl {
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.map-stats-period {
  font-size: 11px;
  color: var(--accent);
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-style: italic;
  font-weight: 500;
  align-self: flex-start;
}

/* 5. Simulated Push Notification Banner inside phone mockup */
.app-notification-banner {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transform: translateY(-130%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.app-notification-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.app-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  color: #78716c;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Manrope", sans-serif;
}

.app-notif-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-notif-dot {
  color: #ef4444;
  font-size: 8px;
}

.app-notif-appname {
  font-weight: 800;
  color: #1c1917;
}

.app-notif-time {
  color: #a8a29e;
}

.app-notif-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.app-notif-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #1c1917;
  font-family: "Manrope", sans-serif;
}

.app-notif-desc {
  font-size: 9.5px;
  color: #44403c;
  line-height: 1.3;
  font-family: "Manrope", sans-serif;
}

/* =====================================================================
   ENRICHISSEMENT ÉDITORIAL & ENCYCLOPÉDIQUE (STYLE WIKIPEDIA PREMIUM)
   ===================================================================== */
.wiki-callout {
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: color-mix(in oklab, var(--accent) 5%, transparent);
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(8px);
}
.wiki-callout p {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--accent);
}

.wiki-subheading {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 3.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 8px;
  letter-spacing: -0.02em;
}
.chapter.ink .wiki-subheading {
  color: var(--paper);
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
.chapter:not(.ink) .wiki-subheading {
  color: var(--ink);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.wiki-text {
  margin-bottom: 1.8rem;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}
.chapter:not(.ink) .wiki-text {
  color: rgba(0, 0, 0, 0.78);
}

.wiki-table-container {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
}
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}
.wiki-table th, .wiki-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair-2);
}
.wiki-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
}
.chapter:not(.ink) .wiki-table th {
  background: rgba(0, 0, 0, 0.02);
}
.wiki-table tr:last-child td {
  border-bottom: none;
}
.wiki-table td strong {
  color: var(--accent);
}

.wiki-ref-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75em;
  vertical-align: super;
  color: var(--accent);
  text-decoration: none;
  margin-left: 2px;
  font-weight: bold;
}
.wiki-ref-link:hover {
  text-decoration: underline;
}

/* Extension des délais de fade-in pour les chapitres longs */
.wrap.in > *:nth-child(7){transition-delay:.36s}
.wrap.in > *:nth-child(8){transition-delay:.42s}
.wrap.in > *:nth-child(9){transition-delay:.48s}
.wrap.in > *:nth-child(10){transition-delay:.54s}
.wrap.in > *:nth-child(11){transition-delay:.60s}
.wrap.in > *:nth-child(12){transition-delay:.66s}
.wrap.in > *:nth-child(13){transition-delay:.72s}
.wrap.in > *:nth-child(14){transition-delay:.78s}
.wrap.in > *:nth-child(15){transition-delay:.84s}
.wrap.in > *:nth-child(16){transition-delay:.90s}
.wrap.in > *:nth-child(17){transition-delay:.96s}
.wrap.in > *:nth-child(18){transition-delay:1.02s}
.wrap.in > *:nth-child(19){transition-delay:1.08s}
.wrap.in > *:nth-child(20){transition-delay:1.14s}

/* =====================================================================
   ADDITIONAL EDITORIAL & INTERACTIVE FEATURES
   ===================================================================== */

/* ---------- glossary terms ---------- */
.glossary-term {
  border-bottom: 1.5px dashed var(--accent);
  cursor: help;
  position: relative;
  font-weight: 500;
}
.glossary-tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  line-height: 1.4;
  white-space: normal;
}
.glossary-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.glossary-tooltip-title {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: capitalize;
}
.glossary-tooltip-text {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- macro simulator ---------- */
.macro-simulator-widget {
  margin: 4rem 0;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.ms-header h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.ms-header p {
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 2rem 0;
}
.ms-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .ms-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.ms-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.ms-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ms-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.ms-label-row strong {
  color: var(--accent);
  font-size: 16px;
  font-family: "JetBrains Mono", monospace;
}
.ms-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-slider-min, .ms-slider-max {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  width: 40px;
}
.ms-slider-max {
  text-align: right;
}
.ms-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--hair-2);
  outline: none;
}
.ms-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.ms-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.ms-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.ms-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.ms-toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ms-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-toggle-title {
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.ms-toggle-desc {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.ms-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.ms-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ms-slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--hair-2);
  transition: .3s;
  border-radius: 24px;
}
.ms-switch input:checked + .ms-slider-round {
  background-color: var(--accent);
}
.ms-slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ms-switch input:checked + .ms-slider-round:before {
  transform: translateX(20px);
}

.ms-results {
  background: var(--paper-2);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  align-items: center;
}
.ms-result-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ms-res-lbl {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.ms-res-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}
.ms-status-badge {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ms-status-badge.green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.ms-status-badge.orange {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}
.ms-status-badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.ms-res-analysis {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.ms-footnote {
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 15px;
  text-align: left;
}

/* ---------- testimonials widget ---------- */
.testimonials-widget {
  margin: 4.5rem 0;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.tw-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.tw-desc {
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 2rem 0;
}
.tw-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.tw-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.tw-card {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  opacity: 0.3;
  transform: scale(0.96);
  transition: opacity 0.5s, transform 0.5s;
}
.tw-card.active {
  opacity: 1;
  transform: scale(1);
}
.tw-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.2rem;
}
.tw-avatar {
  font-size: 2rem;
  background: var(--paper-2);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
}
.tw-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tw-name {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.tw-role {
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  color: var(--muted);
}
.tw-quote {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
}
.tw-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.8rem;
  padding: 0 1rem;
}
.tw-nav-btn {
  background: var(--paper-2);
  border: 1px solid var(--hair-2);
  color: var(--ink);
  font-size: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.tw-nav-btn:hover {
  background: var(--accent);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}
.tw-indicators {
  display: flex;
  gap: 8px;
}
.tw-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair-2);
  cursor: pointer;
  transition: all 0.3s;
}
.tw-indicator.active {
  background: var(--accent);
  transform: scale(1.2);
}
.tw-footnote {
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 20px;
  text-align: left;
  line-height: 1.4;
  border-top: 1px solid var(--hair-2);
  padding-top: 12px;
}

/* ---------- student credits ---------- */
.credits-section {
  margin: 3.5rem 0;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.credits-section h4 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
  margin: 0 0 10px 0;
  color: var(--ink);
}
.credits-desc {
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.credits-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.credits-list li {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  color: var(--ink-2);
  padding: 12px 14px;
  background: var(--paper-2);
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  transition: transform 0.2s, border-color 0.2s;
}
.credits-list li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.credits-list li strong {
  color: var(--accent);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---------- citation tool ---------- */
.citation-tool {
  margin: 2rem 0;
  position: relative;
}
.cite-btn-trigger {
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--accent) 25%, transparent);
}
.cite-btn-trigger:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.citation-popover {
  margin-top: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10;
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cite-pop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.cite-pop-header h5 {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.cite-close {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.cite-close:hover {
  opacity: 1;
}
.cite-formats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cite-format-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cfg-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.cfg-box {
  display: flex;
  gap: 10px;
  background: var(--paper-2);
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  padding: 10px 12px;
  align-items: center;
}
.cfg-box code {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-all;
}
.cfg-copy-btn {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cfg-copy-btn:hover {
  background: var(--paper-2);
}
.cfg-copy-btn.copied {
  background: var(--positive) !important;
  color: white !important;
  border-color: transparent !important;
}


