:root {
  --bg: #0c0b0a;
  --surface: rgba(24, 22, 20, 0.82);
  --surface-solid: rgba(24, 22, 20, 0.9);
  --surface-2: rgba(32, 30, 28, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.28);
  --text: #f2ede6;
  --muted: #9a9088;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-dim: rgba(212, 175, 55, 0.12);
  --green: #6dd49a;
  --green-dim: rgba(109, 212, 154, 0.1);
  --amber: #f0b429;
  --amber-dim: rgba(240, 180, 41, 0.1);
  --red: #f08080;
  --discord: #5865f2;
  --radius: 12px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Permanent Marker", cursive;
  --site-shell-w: 880px;
  --forum-extra-w: 64px;
  --forum-surface: #2a2724;
  --forum-surface-head: #322e2a;
  --forum-surface-feed: #1e1c1a;
  --forum-surface-soft: #35312d;
  --forum-surface-input: #3a3632;
  --forum-border: rgba(255, 255, 255, 0.1);
  --forum-text: #e8e2da;
  --forum-muted: #9a9088;
  --forum-gold: #c9a84c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene__bg-layer {
  position: absolute;
  inset: -8%;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-color: var(--bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.32) saturate(0.85);
  animation: bgKenBurns 32s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.scene__bg-layer.is-active {
  opacity: 1;
}

/* Colonne droite : salon (hors .scene pour éviter le voile ombragé) */
.scene__forum-rail {
  --shell-w: min(var(--site-shell-w), calc(100vw - 2rem));
  --side-gutter: max(0px, calc((100vw - var(--shell-w)) / 2));
  --forum-w: min(calc(var(--side-gutter) + var(--forum-extra-w)), 380px);
  position: fixed;
  top: 0;
  right: 0;
  width: var(--forum-w);
  height: 100vh;
  height: 100dvh;
  z-index: 2;
  pointer-events: auto;
  isolation: isolate;
}
.scene__forum-rail[hidden] {
  display: none !important;
}
@media (min-width: 2100px) {
  .scene__forum-rail {
    --forum-w: min(calc(var(--side-gutter) + var(--forum-extra-w)), 420px);
  }
}
@media (max-width: 1080px) {
  .scene__forum-rail {
    display: none !important;
  }
}

/* Graphique NQ1! — colonne gauche, derrière le contenu */
.scene__nq-chart {
  --shell-w: min(var(--site-shell-w), calc(100vw - 2rem));
  --side-gutter: max(0px, calc((100vw - var(--shell-w)) / 2));
  --chart-w: var(--side-gutter);
  position: fixed;
  top: 0;
  left: 0;
  width: var(--chart-w);
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  filter: saturate(1.04) brightness(1.02) contrast(1.06);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, transparent 100%);
}
@media (max-width: 1080px) {
  .scene__nq-chart {
    display: none !important;
  }
}
@media (min-width: 2100px) {
  .scene__nq-chart {
    --chart-w: var(--side-gutter);
    width: var(--chart-w);
  }
}
.scene__nq-chart[hidden] {
  display: none !important;
}
.scene__nq-chart-head {
  position: absolute;
  top: 0.55rem;
  left: 0.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  pointer-events: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.scene__nq-chart-canvas {
  position: absolute;
  inset: 0;
  padding: 3.5rem 0.35rem 0.5rem 0.35rem;
  box-sizing: border-box;
}
.scene__nq-chart-canvas a[href*="tradingview"] {
  opacity: 0.25;
  pointer-events: none;
}
.scene__nq-chart-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.scene__nq-chart-status {
  margin-left: 0.35rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  opacity: 0.85;
}
.scene__nq-chart-status.is-live { color: #6dd49a; }
.scene__nq-chart-status.is-direct { color: #6dd49a; }
.scene__nq-chart-status.is-delayed { color: #f0b429; }
.scene__nq-chart-status.is-cache { color: #c9a0a0; }
.scene__nq-chart-status.is-live.is-tick,
.scene__nq-chart-status.is-direct.is-tick {
  animation: nqLivePulse 0.55s ease;
}
@keyframes nqLivePulse {
  0%, 100% { opacity: 0.85; }
  40% { opacity: 1; text-shadow: 0 0 8px rgba(109, 212, 154, 0.65); }
}
.scene__nq-chart-price.is-tick-up {
  animation: nqPriceUp 0.65s ease;
}
.scene__nq-chart-price.is-tick-down {
  animation: nqPriceDown 0.65s ease;
}
@keyframes nqPriceUp {
  0% { color: #f2ede6; }
  35% { color: #6dd49a; }
  100% { color: #f2ede6; }
}
@keyframes nqPriceDown {
  0% { color: #f2ede6; }
  35% { color: #f08080; }
  100% { color: #f2ede6; }
}
.scene__nq-chart-status.is-closed,
.scene__nq-chart-status.is-offline { color: var(--muted); }
.scene__nq-chart-price {
  margin: 0;
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f2ede6;
  letter-spacing: 0.01em;
}
.scene__nq-chart-change {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.scene__nq-chart-change.is-up { color: #6dd49a; }
.scene__nq-chart-change.is-down { color: #f08080; }

/* Salon discussion — colonne droite */
.scene__forum {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(212, 175, 55, 0.32);
  background: var(--forum-surface);
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.4);
  color: var(--forum-text);
}
.scene__forum-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem 0.35rem;
  border-bottom: 1px solid var(--forum-border);
  background: var(--forum-surface-head);
}
.scene__forum-head-text {
  min-width: 0;
}
.scene__forum-close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--forum-border);
  border-radius: 6px;
  background: var(--forum-surface-feed);
  color: var(--forum-muted);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.scene__forum-close:hover {
  color: var(--forum-text);
  border-color: #d4af37;
  background: var(--forum-surface-input);
}
.scene__forum-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--forum-gold);
  letter-spacing: 0.02em;
}
.scene__forum-sub {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: var(--forum-muted);
}
.scene__forum-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scroll-behavior: smooth;
  background: var(--forum-surface-feed);
}
.scene__forum-msg {
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: var(--forum-surface-soft);
  border: 1px solid var(--forum-border);
  font-size: 0.78rem;
  line-height: 1.45;
  position: relative;
}
.scene__forum-msg--own {
  border-color: rgba(201, 168, 76, 0.28);
  background: #3a352c;
}
.scene__forum-msg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}
.scene__forum-msg-author {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--forum-gold);
}
.scene__forum-msg-time {
  font-size: 0.62rem;
  color: var(--forum-muted);
  font-variant-numeric: tabular-nums;
}
.scene__forum-msg-text {
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
  color: var(--forum-text);
}
.scene__forum-msg-edited {
  font-size: 0.58rem;
  color: var(--forum-muted);
  font-style: italic;
}
.scene__forum-msg-actions {
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.scene__forum-msg:hover .scene__forum-msg-actions,
.scene__forum-msg:focus-within .scene__forum-msg-actions,
.scene__forum-msg--editing .scene__forum-msg-actions {
  opacity: 1;
}
.scene__forum-msg-btn {
  padding: 0.1rem 0.35rem;
  font-size: 0.62rem;
  line-height: 1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.scene__forum-msg-edit {
  background: rgba(212, 175, 55, 0.15);
  color: var(--forum-gold);
}
.scene__forum-msg-del {
  background: rgba(240, 128, 128, 0.15);
  color: var(--red);
}
.scene__forum-msg-del--mod {
  background: rgba(240, 128, 128, 0.22);
}
.scene__forum-msg-edit-input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--forum-border);
  background: var(--forum-surface-input);
  color: var(--forum-text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 3rem;
}
.scene__forum-msg-edit-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.scene__forum-compose {
  flex: 0 0 auto;
  padding: 0.45rem 0.55rem 0.55rem;
  border-top: 1px solid var(--forum-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--forum-surface-head);
}
.scene__forum-author {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
  background: var(--forum-surface-input);
  color: var(--forum-text);
  font: inherit;
  font-size: 0.78rem;
}
.scene__forum-input {
  width: 100%;
  resize: vertical;
  min-height: 2.6rem;
  max-height: 6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
  background: var(--forum-surface-input);
  color: var(--forum-text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
}
.scene__forum-author::placeholder,
.scene__forum-input::placeholder {
  color: var(--forum-muted);
}
.scene__forum-author:focus,
.scene__forum-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}
.scene__forum-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.scene__forum-status {
  font-size: 0.72rem;
  color: var(--forum-muted);
}
.scene__forum-empty {
  margin: auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--forum-muted);
  padding: 1rem 0.5rem;
}

/* Salon mobile + rouvrir (desktop fermé) */
.forum-reopen {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--forum-surface);
  color: var(--forum-gold);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, padding-right 0.15s;
}
.forum-reopen__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.forum-reopen .forum-unread-badge {
  top: 0.15rem;
  right: 0.1rem;
}
.forum-reopen:hover {
  background: var(--forum-surface-head);
  padding-right: 0.55rem;
}
.forum-reopen[hidden] { display: none !important; }
@media (max-width: 1080px) {
  .forum-reopen { display: none !important; }
}

.forum-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: var(--forum-surface);
  color: var(--forum-gold);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.forum-unread-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--forum-surface);
  pointer-events: none;
}
.forum-fab[hidden] { display: none !important; }
@media (min-width: 1081px) {
  .forum-fab { display: none !important; }
}
.forum-dialog {
  width: min(100vw - 1.5rem, 420px);
  max-height: min(85vh, 640px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: var(--radius);
  background: var(--forum-surface);
  color: var(--forum-text);
}
.forum-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.forum-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 640px);
  height: 100%;
}
.forum-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--forum-border);
  background: var(--forum-surface-head);
}
.forum-dialog__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--forum-gold);
}
.forum-dialog__feed {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--forum-surface-feed);
}
.forum-dialog__compose {
  padding: 0.5rem 0.65rem 0.65rem;
  border-top: 1px solid var(--forum-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--forum-surface-head);
}

.scene__bg-layer--default {
  background-image:
    url("assets/bg-universe-default.png"),
    url("assets/hero-bg.png"),
    radial-gradient(ellipse at 50% 120%, rgba(180, 100, 20, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, #0a0908 0%, #14100c 50%, #0c0b0a 100%);
}
.scene__bg-layer--strategie {
  background-image:
    url("assets/bg-universe-strategie.png"),
    radial-gradient(ellipse at 30% 20%, rgba(120, 60, 180, 0.35) 0%, transparent 50%),
    linear-gradient(165deg, #0a0612 0%, #140a1e 45%, #0c0b0a 100%);
  filter: brightness(0.28) saturate(1.05) hue-rotate(-8deg);
}
.scene__bg-layer--setup {
  background-image:
    url("assets/bg-universe-setup.png"),
    radial-gradient(ellipse at 70% 30%, rgba(40, 180, 140, 0.22) 0%, transparent 48%),
    linear-gradient(165deg, #060e0c 0%, #0a1412 50%, #0c0b0a 100%);
  filter: brightness(0.3) saturate(0.95) hue-rotate(12deg);
}
.scene__bg-layer--journal {
  background-image:
    url("assets/bg-universe-journal.png"),
    radial-gradient(ellipse at 50% 80%, rgba(40, 80, 160, 0.25) 0%, transparent 50%),
    linear-gradient(165deg, #080a10 0%, #0c0f14 50%, #0c0b0a 100%);
  filter: brightness(0.3) saturate(0.9);
}

/* Fallback hero-bg si bg-universe-default absent — règle fusionnée ci-dessus */

.scene[data-universe="strategie"] .scene__aurora {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(160, 80, 220, 0.28) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.22) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 90%, rgba(100, 40, 160, 0.12) 0%, transparent 45%);
}
.scene[data-universe="setup"] .scene__aurora {
  background:
    radial-gradient(ellipse at 15% 45%, rgba(60, 200, 160, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse at 85% 25%, rgba(80, 220, 200, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse at 55% 85%, rgba(109, 212, 154, 0.1) 0%, transparent 45%);
}
.scene[data-universe="journal"] .scene__aurora {
  background:
    radial-gradient(ellipse at 20% 35%, rgba(60, 100, 200, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse at 75% 25%, rgba(109, 212, 154, 0.12) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 45%);
}
.scene[data-universe="strategie"] .scene__glow--left { background: rgba(140, 80, 200, 0.32); }
.scene[data-universe="strategie"] .scene__glow--right { background: rgba(212, 175, 55, 0.24); }
.scene[data-universe="setup"] .scene__glow--left { background: rgba(40, 180, 140, 0.28); }
.scene[data-universe="setup"] .scene__glow--right { background: rgba(80, 220, 200, 0.2); }
.scene[data-universe="journal"] .scene__glow--left { background: rgba(60, 100, 200, 0.28); }
.scene[data-universe="journal"] .scene__glow--right { background: rgba(109, 212, 154, 0.18); }

.scene[data-universe="strategie"] .scene__grid {
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(180, 120, 255, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.9) 1px, transparent 1px);
}
.scene[data-universe="setup"] .scene__grid {
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(80, 220, 180, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 212, 154, 0.9) 1px, transparent 1px);
}
.scene[data-universe="journal"] .scene__grid {
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(100, 140, 220, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 212, 154, 0.9) 1px, transparent 1px);
}

.scene[data-universe="strategie"] .scene__shade {
  background:
    linear-gradient(180deg, rgba(10, 6, 18, 0.6) 0%, rgba(8, 7, 6, 0.4) 35%, rgba(8, 7, 6, 0.9) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(160, 80, 220, 0.12) 0%, transparent 50%);
}
.scene[data-universe="setup"] .scene__shade {
  background:
    linear-gradient(180deg, rgba(6, 14, 12, 0.58) 0%, rgba(8, 7, 6, 0.38) 35%, rgba(8, 7, 6, 0.88) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(60, 200, 160, 0.1) 0%, transparent 50%);
}
.scene[data-universe="journal"] .scene__shade {
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.58) 0%, rgba(8, 7, 6, 0.38) 35%, rgba(8, 7, 6, 0.88) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(60, 100, 200, 0.1) 0%, transparent 50%);
}

.scene:not([data-universe="default"]) .scene__dollars {
  opacity: 0;
  transition: opacity 1s ease;
}
.scene[data-universe="default"] .scene__dollars {
  opacity: 1;
  transition: opacity 1s ease;
}

.scene__aurora,
.scene__glow,
.scene__grid,
.scene__shade {
  transition: opacity 1.2s ease, background 1.4s ease, filter 1.2s ease;
}

.scene__aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse at 15% 45%, rgba(245, 140, 24, 0.2) 0%, transparent 48%),
    radial-gradient(ellipse at 85% 25%, rgba(212, 175, 55, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse at 55% 85%, rgba(109, 212, 154, 0.06) 0%, transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: auroraShift 24s ease-in-out infinite alternate;
}

/* Petits $ qui tombent — discret, au-dessus du shade */
.scene__dollars {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.dollar-fall {
  position: absolute;
  top: -1.25rem;
  left: 0;
  color: #d4af37;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  user-select: none;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
  animation: dollarFall linear infinite;
  will-change: transform, opacity;
}

.scene__grid {
  position: absolute;
  inset: -50%;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.9) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(58deg);
  transform-origin: 50% 100%;
  animation: gridPan 50s linear infinite;
}

.scene__mist {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(
    100deg,
    transparent 0,
    rgba(212, 175, 55, 0.04) 100px,
    transparent 200px
  );
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

.scene__mist--1 { animation: mistDrift 28s linear infinite; }
.scene__mist--2 {
  opacity: 0.18;
  background: repeating-linear-gradient(
    80deg,
    transparent 0,
    rgba(255, 160, 60, 0.05) 140px,
    transparent 280px
  );
  animation: mistDrift 40s linear infinite reverse;
}

.scene__glow {
  position: absolute;
  width: min(480px, 55vw);
  height: min(480px, 55vw);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
}

.scene__glow--left {
  top: 5%;
  left: -12%;
  background: rgba(245, 140, 24, 0.28);
  animation: glowDrift 16s ease-in-out infinite;
}

.scene__glow--right {
  bottom: 0;
  right: -10%;
  background: rgba(212, 175, 55, 0.2);
  animation: glowDrift 22s ease-in-out infinite reverse;
}

.scene__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.04) 48%,
    rgba(212, 175, 55, 0.08) 50%,
    rgba(212, 175, 55, 0.04) 52%,
    transparent 100%
  );
  animation: scanline 10s ease-in-out infinite;
  opacity: 0.7;
}

.scene__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.95) 0%, rgba(212, 175, 55, 0.35) 45%, transparent 72%);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
  animation: emberRise linear infinite;
  pointer-events: none;
}

.scene__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0) 0%, rgba(8, 7, 6, 0.04) 42%, rgba(8, 7, 6, 0.28) 62%, rgba(8, 7, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.18) 0%, rgba(8, 7, 6, 0.06) 38%, rgba(8, 7, 6, 0.45) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

.app {
  position: relative;
  z-index: 1;
  max-width: var(--site-shell-w);
  margin-left: max(1rem, calc((100vw - min(var(--site-shell-w), calc(100vw - 2rem))) / 2));
  margin-right: max(1rem, calc((100vw - min(var(--site-shell-w), calc(100vw - 2rem))) / 2 + var(--forum-extra-w)));
  padding: 1rem 1rem 2.5rem;
  transition: margin-right 0.2s ease;
}
body.forum-collapsed .app {
  margin-right: max(1rem, calc((100vw - min(var(--site-shell-w), calc(100vw - 2rem))) / 2));
}

.app--journal {
  max-width: 1180px;
}

.tab--journal {
  padding: 0;
}

.journal-firm-picker h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.journal-picker-back {
  margin-bottom: 0.65rem;
}

.journal-firm-picker__note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
}

.journal-resume-btn {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}

.journal-firm-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.journal-firm-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.journal-firm-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.08);
}

.journal-firm-card__name {
  font-weight: 700;
  color: var(--gold);
}

.journal-firm-card__plan {
  font-size: 0.82rem;
  color: var(--muted);
}

.journal-firm-card__tag {
  font-size: 0.72rem;
  color: var(--text);
  opacity: 0.85;
}

.journal-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.journal-firm-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

.journal-intro {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.journal-frame {
  display: block;
  width: 100%;
  min-height: min(78vh, 920px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c0f14;
}

.tool-chip--accent {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold);
}

/* ── Topbar ── */
.topbar {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
.topbar__brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}
.topbar__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow);
  animation: logoGlow 4s ease-in-out infinite;
  cursor: default;
  user-select: none;
}
.topbar__admin-chip {
  display: none;
  align-items: center;
  padding: 0.15rem 0.45rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1510;
  background: var(--gold);
  vertical-align: middle;
}
body.site-admin .topbar__admin-chip {
  display: inline-flex !important;
}
.topbar__title {
  font-weight: 600;
  font-size: 1rem;
}
.topbar__v {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}
.topbar__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Nav ── */
.nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.5rem 0.5rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.nav__main,
.nav__premium {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}
.nav__premium {
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.nav__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav__btn:hover { color: var(--text); }
.nav__btn--active {
  background: var(--gold-dim);
  color: var(--gold);
}
.nav__btn--locked {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__btn--locked:hover { color: var(--text); }
.nav__btn--forum {
  color: var(--forum-gold, #c9a84c);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.nav__btn--forum:hover {
  color: #e8d08a;
  border-color: rgba(201, 168, 76, 0.55);
}
.nav__btn--locked.nav__btn--active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.nav__lock-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--muted);
}
.nav__lock-badge--starter {
  color: var(--green);
  border-color: rgba(109, 212, 154, 0.35);
  background: var(--green-dim);
}
.nav__lock-badge--free {
  color: var(--forum-gold, #c9a84c);
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.12);
}
.nav__btn--free-strat {
  color: #e8d08a;
}
.nav__btn--admin {
  color: var(--gold);
}

/* ── Stats admin ── */
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.stats-kpi {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stats-kpi--gold {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(145deg, var(--gold-dim), var(--surface));
}
.stats-kpi__label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats-kpi__value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stats-kpi__hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.stats-panel {
  margin-bottom: 1.25rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stats-panel__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}
.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  min-height: 140px;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.stats-chart__col {
  flex: 1 0 18px;
  min-width: 18px;
  max-width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.stats-chart__bar-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.stats-chart__bar {
  width: 70%;
  min-height: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.35));
  border-radius: 3px 3px 0 0;
}
.stats-chart__label {
  font-size: 0.58rem;
  color: var(--muted);
  writing-mode: horizontal-tb;
  transform: rotate(-45deg);
  transform-origin: center;
  white-space: nowrap;
  height: 1.4rem;
}
.stats-chart__val {
  font-size: 0.62rem;
  color: var(--text);
  font-weight: 600;
}
.stats-pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.stats-pages li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
}
.stats-pages strong { color: var(--gold); }
.stats-table-wrap { overflow-x: auto; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.stats-table th,
.stats-table td {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border);
}
.stats-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stats-footnote {
  margin-top: 0.5rem;
  font-size: 0.78rem;
}
.stats-loading { margin: 1rem 0; }

/* ── Promo propfirm page ── */
.promo-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.promo-page__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 2px solid rgba(212, 175, 55, 0.45);
  transition: border-color 0.15s, background 0.15s;
}
.promo-page__card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: var(--surface-2);
}
.promo-page__card-top {
  flex: 1;
  min-width: 0;
}
.promo-page__firm {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.promo-page__offer {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}
.promo-page__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.promo-page__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.promo-page__code {
  padding: 0.4rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1520;
  background: var(--gold);
  border-radius: 8px;
}
.promo-page__code-soon {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
.promo-page__checkout {
  align-self: flex-start;
  text-decoration: none;
}
.promo-page__community {
  margin-top: 0.5rem;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.14), rgba(24, 22, 20, 0.55) 55%);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius);
}
.promo-page__community-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.promo-page__community-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aab0ff;
}
.promo-page__community-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.promo-page__community-blurb {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}
.promo-page__community-cta {
  flex-shrink: 0;
  text-decoration: none;
}

.strategie-free-eyebrow {
  color: var(--forum-gold, #c9a84c);
  margin-bottom: 0.35rem;
}
.free-gift {
  margin: 1.35rem 0 0.25rem;
  max-width: 36rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border: 1px solid rgba(232, 208, 138, 0.55);
  border-left: 4px solid #e8d08a;
  background:
    linear-gradient(135deg, rgba(232, 208, 138, 0.16), rgba(20, 18, 28, 0.35) 55%),
    rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: freeGiftIn 0.55s ease-out both;
}
@keyframes freeGiftIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.free-gift__tag {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1520;
  background: #e8d08a;
}
.free-gift__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f5e6b8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.free-gift__text {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #d8d0c0;
}
.free-gift__text strong {
  color: #f0e2b0;
}
.free-gift__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #1a1520;
  background: linear-gradient(180deg, #f0e2b0, #c9a84c);
  border: 1px solid rgba(255, 240, 190, 0.45);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.free-gift__cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
}
.free-gift__how {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(200, 190, 165, 0.85);
}
.doc-reader__badge--free {
  color: var(--forum-gold, #c9a84c);
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.1);
}
.path-card--free {
  border-color: rgba(201, 168, 76, 0.28);
}
.locked-section--starter {
  border-color: rgba(109, 212, 154, 0.28);
}
.locked-section--starter .locked-section__eyebrow {
  color: var(--green);
}
.strategie-shell__dev-tag--starter { color: var(--green); }

.setup-modules {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.setup-module {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.setup-module:hover {
  border-color: rgba(109, 212, 154, 0.35);
}
.setup-module__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border-radius: 8px;
}
.setup-module__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.setup-module__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Section verrouillée (premium à venir) ── */
.locked-section {
  max-width: 36rem;
  margin: 2rem auto 0;
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
}
.locked-section__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.locked-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.locked-section__lead { margin-bottom: 1.25rem; }
.locked-section__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  display: inline-block;
}
.locked-section__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.locked-section__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.locked-section__note {
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.premium-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.premium-gate[hidden] { display: none !important; }

.premium-howto {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  text-align: left;
}
.premium-warn {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(240, 160, 96, 0.45);
  border-left: 3px solid #f0a060;
  background: rgba(240, 160, 96, 0.1);
  border-radius: 8px;
}
.premium-warn--after {
  max-width: 42rem;
}
.premium-warn__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0a060;
}
.premium-warn__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e8d8c8;
}
.premium-warn__ps {
  display: block;
  margin-top: 0.55rem;
  font-style: italic;
  color: #f0a060;
}
.premium-howto__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--gold);
}
.premium-howto__intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.premium-products {
  margin: 0 0 1rem;
}
.premium-product-list {
  display: grid;
  gap: 0.65rem;
}
.premium-product {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.premium-product--owned {
  border-color: rgba(127, 217, 154, 0.35);
}
.premium-product--soon {
  opacity: 0.85;
}
.premium-product__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.premium-product__title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}
.premium-product__badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.premium-product__badge--price {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
}
.premium-product__badge--ok {
  color: #7fd99a;
  border-color: rgba(127, 217, 154, 0.35);
  background: rgba(127, 217, 154, 0.1);
}
.premium-product__blurb {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.premium-product__action {
  margin: 0;
  font-size: 0.78rem;
}

.strategie-discord-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: min(100%, 36rem);
  margin: 0 auto 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border: 2px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.strategie-discord-cta:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.28);
  color: #f0d78c;
}
.strategie-discord-cta__q {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 215, 140, 0.85);
}
.strategie-discord-cta__a {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.premium-gate__status {
  width: 100%;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}
.premium-gate__status--todo { color: #f0a060; }
.premium-gate__status--ok { color: #7fd99a; }

.premium-gate__user { margin: 0 0 0.35rem; width: 100%; }
.premium-gate__lead {
  margin: 0 0 0.75rem;
  width: 100%;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.premium-steps {
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0;
  max-width: 28rem;
  text-align: left;
}
.premium-steps li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}
.premium-steps li::before {
  content: counter(premium-step);
  counter-increment: premium-step;
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
.premium-steps {
  counter-reset: premium-step;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal[hidden] { display: none !important; }
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.auth-modal__panel {
  position: relative;
  width: min(100%, 400px);
  z-index: 1;
}
.auth-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.auth-modal__title { margin: 0 0 0.35rem; font-size: 1.1rem; }
.auth-modal__hint { margin: 0 0 1rem; font-size: 0.82rem; }
.auth-form__label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-form__input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}
.auth-form__error {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #f07178;
}
.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Ma stratégie (contenu dev / premium) ── */
.strategie-shell__dev-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.strategie-shell__foot {
  margin-top: 1rem;
  font-size: 0.78rem;
  text-align: center;
}
.strategie-views { margin-top: 0.75rem; }
.strategie-view[hidden] { display: none !important; }
.strategie-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.strategie-pick__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  transition: background 0.15s, border-color 0.15s;
}
.strategie-pick__card:hover {
  background: var(--surface-2);
  border-color: rgba(212, 175, 55, 0.55);
}
.strategie-pick__name {
  font-size: 1.05rem;
  font-weight: 700;
}
.strategie-pick__cta {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}
body.site-admin #strategieLocked { display: none !important; }
body.site-admin #strategieContent { display: block !important; }
body.site-admin #strategiePick { display: grid !important; }
.strategie-view h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.strategie-placeholder {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ── Mode révision (flashcards) ── */
.revision-header h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.revision-deck-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.revision-deck-wrap--quiz {
  max-width: 720px;
}

.revision-hub {
  padding: 1.5rem 0 2rem;
}
.revision-hub__lead {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
}
.revision-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 560px) {
  .revision-hub__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}
.revision-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 168px;
  padding: 1.35rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
  color: #ebe3da;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.revision-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.revision-hub-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold, #d4af37);
  letter-spacing: 0.02em;
}
.revision-hub-card__desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.revision-hub-card__meta {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
}

.revision-back {
  margin-bottom: 0.65rem;
}
.revision-quiz__strategy {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  text-align: center;
}

.revision-strategy-pick {
  display: none;
}
.revision-meta {
  margin-bottom: 0.85rem;
}
.revision-meta__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.revision-meta__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.revision-meta__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.85), rgba(212, 175, 55, 0.45));
  transition: width 0.25s ease;
}

.revision-quiz__card {
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(165deg, rgba(22, 20, 17, 0.98) 0%, rgba(12, 11, 9, 0.98) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.85rem;
}
.revision-quiz__tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.revision-quiz__question {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #ebe3da;
}
.revision-quiz__img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: #0a0908;
}
.revision-quiz__figure {
  position: relative;
  margin-top: 0.75rem;
}
.revision-quiz__img--zoomable {
  cursor: zoom-in;
}
.revision-quiz__zoom-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 6px;
  background: rgba(10, 9, 8, 0.88);
  color: var(--gold, #d4af37);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
}
.revision-quiz__zoom-btn:hover,
.revision-quiz__zoom-btn:focus-visible {
  opacity: 1;
  background: rgba(212, 175, 55, 0.2);
  outline: none;
}
.revision-quiz__choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.revision-quiz__choices--images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
@media (max-width: 620px) {
  .revision-quiz__choices--images {
    grid-template-columns: 1fr;
  }
}
.revision-quiz__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 11px;
  background: rgba(212, 175, 55, 0.05);
  color: #ddd5cb;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.revision-quiz__choice--img {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  padding: 0.45rem;
  gap: 0.35rem;
}
.revision-quiz__choice--img .revision-quiz__choice-label {
  align-self: flex-start;
}
.revision-quiz__choice-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: #0a0908;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
.revision-quiz__choice:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
}
.revision-quiz__choice.is-locked {
  cursor: default;
}
.revision-quiz__choice.is-correct {
  border-color: rgba(67, 160, 71, 0.65);
  background: rgba(67, 160, 71, 0.14);
  color: #c8e6c9;
}
.revision-quiz__choice.is-wrong {
  border-color: rgba(229, 57, 53, 0.55);
  background: rgba(229, 57, 53, 0.12);
  color: #ffcdd2;
}
.revision-quiz__choice-label {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold, #d4af37);
}
.revision-quiz__choice.is-correct .revision-quiz__choice-label {
  background: rgba(67, 160, 71, 0.35);
  color: #fff;
}
.revision-quiz__choice.is-wrong .revision-quiz__choice-label {
  background: rgba(229, 57, 53, 0.35);
  color: #fff;
}
.revision-quiz__feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-align: center;
}
.revision-quiz__feedback--ok {
  border: 1px solid rgba(67, 160, 71, 0.45);
  background: rgba(67, 160, 71, 0.1);
}
.revision-quiz__feedback--ko {
  border: 1px solid rgba(229, 57, 53, 0.4);
  background: rgba(229, 57, 53, 0.08);
}
.revision-quiz__verdict {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.revision-quiz__feedback--ok .revision-quiz__verdict {
  color: #a5d6a7;
  background: rgba(67, 160, 71, 0.2);
}
.revision-quiz__feedback--ko .revision-quiz__verdict {
  color: #ef9a9a;
  background: rgba(229, 57, 53, 0.18);
}
.revision-quiz__explain {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #ddd5cb;
  text-align: left;
}
.revision-quiz__feedback .revision-quiz__figure {
  margin-top: 0.65rem;
}
.revision-quiz__feedback .revision-quiz__img {
  border-color: rgba(67, 160, 71, 0.25);
}
.revision-quiz__next {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
}
.revision-foot {
  margin-top: 0.75rem;
  text-align: center;
}
.revision-done {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.04);
}
.revision-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(67, 160, 71, 0.2);
  color: #a5d6a7;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.revision-done__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.revision-done__stats {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.revision-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.nav__btn--unlocked.nav__btn--active {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ── Lecteur document (type PDF, lecture seule) ── */
.doc-reader {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: calc(var(--radius) + 4px);
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 80px var(--gold-dim);
}
.doc-reader__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, rgba(24, 22, 20, 0.98) 100%);
  border-bottom: 1px solid var(--border-gold);
}
.doc-reader__meta { min-width: 0; }
.doc-reader__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.doc-reader__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20rem;
}
.doc-reader__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.doc-reader__btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.doc-reader__btn:hover:not(:disabled) {
  border-color: var(--border-gold);
  background: var(--gold-dim);
  color: var(--gold);
}
.doc-reader__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.doc-reader__zoom,
.doc-reader__page {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 3.25rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.doc-reader__sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
  margin: 0 0.25rem;
}
.doc-reader__stage {
  position: relative;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    #0a0908;
  min-height: 28rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}
.strategie-watermark {
  position: absolute;
  inset: 12% 4%;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.95rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(242, 237, 230, 0.14);
  transform: rotate(-28deg);
  user-select: none;
  word-break: break-all;
}
.doc-page {
  width: min(100%, 42rem);
  min-height: 34rem;
  padding: 2.5rem 2.75rem 3rem;
  background:
    linear-gradient(145deg, #1e1c19 0%, #161412 40%, #121010 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 4px;
  box-shadow:
    0 2px 0 rgba(212, 175, 55, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform-origin: top center;
  transition: transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  overflow: visible;
}
.doc-page__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.doc-page__heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}
.doc-page__heading-wrap {
  position: relative;
  margin: 0 0 1.25rem;
  padding-right: 3.5rem;
  min-height: 3.5rem;
  overflow: visible;
}
.doc-page__heading-wrap .doc-page__heading {
  padding-right: 0;
}
.doc-page__heading-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.doc-page__heading-hotspots .doc-hotspot {
  pointer-events: auto;
}
.doc-page__body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #d8d0c8;
}
.doc-page__body h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.doc-page__body p { margin: 0 0 0.85rem; }
.doc-page__body ul,
.doc-page__body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.doc-page__body li { margin-bottom: 0.35rem; }
.doc-page__body blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  color: var(--text);
  font-style: italic;
}
.doc-page__body .doc-callout {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.06);
}
.doc-page__body .doc-callout > strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-page__body .doc-callout p strong {
  display: inline;
  color: var(--gold);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
}
.doc-page__body .doc-callout p { margin: 0; }
.doc-page__muted {
  font-size: 0.78rem;
  color: var(--muted) !important;
  margin-top: 1.5rem !important;
  font-style: italic;
}

/* Figures interactives + voix sur captures */
.doc-figure {
  margin: 1.35rem 0 0.75rem;
  padding: 0;
  overflow: visible;
}
.doc-figure__visual {
  position: relative;
  overflow: visible;
}
.doc-figure__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.doc-figure__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.doc-figure__hint {
  font-size: 0.72rem;
  color: var(--muted);
}
.doc-figure__frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #0a0908;
  line-height: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.doc-figure__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.06) 0%,
    transparent 40%,
    transparent 60%,
    rgba(212, 175, 55, 0.03) 100%
  );
}
.doc-figure__hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.doc-figure__img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10px;
}
.doc-figure__img--zoomable {
  cursor: zoom-in;
}
.doc-figure__zoom-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  background: rgba(10, 9, 8, 0.82);
  color: var(--gold, #d4af37);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
  backdrop-filter: blur(4px);
}
.doc-figure__zoom-btn:hover,
.doc-figure__zoom-btn:focus-visible {
  opacity: 1;
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.75);
  outline: none;
}
.doc-figure__zoom-btn--revision {
  top: 0.4rem;
  right: 0.4rem;
}
.doc-figure__caption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-align: left;
  line-height: 1.4;
}
.doc-figure__note {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1.05rem;
  font-size: 0.93rem;
  font-weight: 450;
  line-height: 1.68;
  letter-spacing: 0.01em;
  color: #ebe3da;
  border-left: 3px solid rgba(212, 175, 55, 0.75);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.09) 0%, rgba(212, 175, 55, 0.02) 100%);
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.doc-exercise-reveal {
  display: block;
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px dashed rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold, #d4af37);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.doc-exercise-reveal:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.85);
}
.doc-exercise-reveal[hidden] { display: none !important; }
.doc-figure--answer[hidden] { display: none !important; }

.doc-exercise-block {
  margin-top: 2.25rem;
  padding: 1.65rem 1.1rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.doc-exercise-block + .doc-exercise-block {
  margin-top: 2.75rem;
}
.doc-exercise-block__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.doc-exercise-block__num {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.doc-exercise-block__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.08) 100%);
}
.doc-exercise-block .doc-figure {
  margin-top: 0;
}
.doc-exercise-block .doc-figure--answer {
  margin-top: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.22);
}
.doc-exercise-block--revealed .doc-exercise-reveal {
  display: none !important;
}

.doc-exercise-draw-panel {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.22);
}
.doc-exercise-draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.doc-exercise-draw-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.doc-exercise-draw-group--actions {
  margin-left: auto;
}
.doc-exercise-draw-group.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.doc-exercise-draw-tool,
.doc-exercise-draw-width,
.doc-exercise-draw-action {
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.05);
  color: #ddd5cb;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.doc-exercise-draw-tool:hover,
.doc-exercise-draw-width:hover,
.doc-exercise-draw-action:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.5);
}
.doc-exercise-draw-tool.is-active,
.doc-exercise-draw-width.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.75);
  color: var(--gold, #d4af37);
}
.doc-exercise-draw-color {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--swatch);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.doc-exercise-draw-color.is-active {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 4px var(--swatch);
  transform: scale(1.08);
}
.doc-exercise-draw-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.doc-exercise-draw-action--muted {
  color: var(--muted);
}
.doc-exercise-draw {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  cursor: crosshair;
  touch-action: none;
}
.doc-exercise-draw--eraser {
  cursor: cell;
}
.doc-exercise-draw-hint {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.doc-exercise-draw-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 6;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1612;
  background: rgba(212, 175, 55, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.doc-exercise-draw-badge--answer {
  background: rgba(67, 160, 71, 0.92);
  color: #fff;
}
.doc-figure--drawable-done .doc-exercise-draw-panel {
  opacity: 0.72;
  pointer-events: none;
}

.doc-hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}
.doc-hotspot__pin-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
}
.doc-hotspot__cluster {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  pointer-events: none;
  z-index: 7;
}
.doc-hotspot--chip-top .doc-hotspot__cluster {
  left: 0;
  bottom: 36px;
  transform: translateX(-50%);
  flex-direction: row;
}
.doc-hotspot--chip-bottom .doc-hotspot__cluster {
  left: 0;
  top: 36px;
  transform: translateX(-50%);
  flex-direction: row;
}
.doc-hotspot--chip-left .doc-hotspot__cluster {
  right: 36px;
  top: 0;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
}
.doc-hotspot--chip-right .doc-hotspot__cluster {
  left: 36px;
  top: 0;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
}
.doc-hotspot__transport {
  display: none;
  align-items: center;
  gap: 0.15rem;
  pointer-events: auto;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(10, 9, 8, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.doc-hotspot.is-active .doc-hotspot__transport,
.doc-hotspot.is-playing .doc-hotspot__transport {
  display: inline-flex;
}
.doc-hotspot__ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.doc-hotspot__ctrl--play {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.55rem;
}
.doc-hotspot__ctrl:hover,
.doc-hotspot__ctrl:focus-visible {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.65);
  outline: none;
}
.doc-hotspot__pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a0, var(--gold) 45%, #9a7b1a);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.65), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.doc-hotspot__pin::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.5);
  animation: hotspotPulse 2.2s ease-out infinite;
}
.doc-hotspot.is-playing .doc-hotspot__pin::after {
  animation: hotspotPulse 0.85s ease-out infinite;
}
.doc-hotspot__stem {
  position: absolute;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.25));
  width: 2px;
  transform-origin: top center;
  pointer-events: none;
}
.doc-hotspot--chip-top .doc-hotspot__stem {
  height: 28px;
  left: 0;
  top: -28px;
  transform: translateX(-50%);
}
.doc-hotspot--chip-bottom .doc-hotspot__stem {
  height: 28px;
  left: 0;
  top: 0;
  transform: translateX(-50%);
}
.doc-hotspot--chip-left .doc-hotspot__stem {
  width: 28px;
  height: 2px;
  left: -28px;
  top: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.9));
}
.doc-hotspot--chip-right .doc-hotspot__stem {
  width: 28px;
  height: 2px;
  left: 0;
  top: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.25));
}

.doc-hotspot__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.65rem 0.32rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  pointer-events: auto;
  cursor: pointer;
}
.doc-hotspot--chip-top .doc-hotspot__chip,
.doc-hotspot--chip-bottom .doc-hotspot__chip,
.doc-hotspot--chip-left .doc-hotspot__chip,
.doc-hotspot--chip-right .doc-hotspot__chip {
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
}
.doc-hotspot:hover .doc-hotspot__chip,
.doc-hotspot__chip:hover,
.doc-hotspot.is-active .doc-hotspot__chip,
.doc-hotspot.is-playing .doc-hotspot__chip {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}
.doc-hotspot__waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.75rem;
}
.doc-hotspot__waves i {
  display: block;
  width: 2px;
  height: 40%;
  border-radius: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.doc-hotspot.is-playing .doc-hotspot__waves i {
  opacity: 1;
  animation: voiceBar 0.55s ease-in-out infinite alternate;
}
.doc-hotspot.is-playing .doc-hotspot__waves i:nth-child(2) { animation-delay: 0.12s; }
.doc-hotspot.is-playing .doc-hotspot__waves i:nth-child(3) { animation-delay: 0.24s; }
.doc-hotspot__label { white-space: nowrap; }

@keyframes hotspotPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes voiceBar {
  from { height: 25%; }
  to { height: 100%; }
}

.doc-voice-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(24, 22, 20, 0.98) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.doc-voice-panel__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.doc-voice-panel__play {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.doc-voice-panel__play:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}
.doc-voice-panel__play-icon { font-size: 0.72rem; margin-left: 2px; }
.doc-voice-panel__meta {
  flex: 1;
  min-width: 0;
}
.doc-voice-panel__title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.doc-voice-panel__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 0.85rem;
  opacity: 0.25;
}
.doc-voice-panel__bars i {
  display: block;
  width: 3px;
  height: 35%;
  border-radius: 2px;
  background: var(--gold);
}
.doc-figure.is-speaking .doc-voice-panel__bars {
  opacity: 1;
}
.doc-figure.is-speaking .doc-voice-panel__bars i {
  animation: voiceBar 0.5s ease-in-out infinite alternate;
}
.doc-figure.is-speaking .doc-voice-panel__bars i:nth-child(2) { animation-delay: 0.08s; }
.doc-figure.is-speaking .doc-voice-panel__bars i:nth-child(3) { animation-delay: 0.16s; }
.doc-figure.is-speaking .doc-voice-panel__bars i:nth-child(4) { animation-delay: 0.24s; }
.doc-figure.is-speaking .doc-voice-panel__bars i:nth-child(5) { animation-delay: 0.32s; }
.doc-voice-panel__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.doc-voice-panel__close:hover { color: var(--text); }
.doc-voice-panel__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e0d8d0;
}
.doc-voice-panel__audio {
  display: none;
}
.doc-voice-panel__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
}

.doc-page__num {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
}
.doc-page__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  flex-wrap: wrap;
}
.doc-page__nav-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold, #d4af37);
  letter-spacing: 0.04em;
}
.doc-page__nav-btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  color: #ebe3da;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.doc-page__nav-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.6);
}
.doc-page__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.doc-audio-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
  position: sticky;
  bottom: 0;
  z-index: 8;
}
.doc-audio-bar[hidden] { display: none !important; }
.doc-audio-bar__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold, #d4af37);
  width: 100%;
}
.doc-audio-bar__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.doc-audio-bar__seek {
  flex: 1;
  min-width: 0;
  height: 0.35rem;
  accent-color: var(--gold, #d4af37);
  cursor: pointer;
}
.doc-audio-bar__seek:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.doc-audio-bar__time {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2.5rem;
}
.doc-audio-bar__time:last-child {
  text-align: right;
}
.doc-audio-bar__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
}
.doc-audio-bar__btn {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #ddd5cb;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 2.5rem;
}
.doc-audio-bar__btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.55);
}
.doc-audio-bar__btn--primary {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold, #d4af37);
  font-size: 0.9rem;
  min-width: 2.75rem;
}
.doc-reader__foot {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
@media (max-width: 640px) {
  .doc-page { padding: 1.5rem 1.25rem 2rem; min-height: 24rem; }
  .doc-reader__title { max-width: 10rem; }
}

/* ── Pages ── */
.tab[hidden] { display: none !important; }
.tab--enter {
  animation: tabIn 0.45s ease both;
}
.tab--active .path-card:nth-child(1) { animation: fadeUp 0.5s 0.05s ease both; }
.tab--active .path-card:nth-child(2) { animation: fadeUp 0.5s 0.12s ease both; }
.tab--active .path-card:nth-child(3) { animation: fadeUp 0.5s 0.19s ease both; }
.tab--active .card--discord { animation: fadeUp 0.5s 0.26s ease both; }
.page-intro { margin-bottom: 1.25rem; }
.page-intro--compact { margin-bottom: 0.85rem; }
.page-intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── Accueil paths ── */
.path-grid {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 640px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  position: relative;
  padding: 1rem 1.1rem;
  background: var(--surface-solid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(212, 175, 55, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.path-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(212, 175, 55, 0.08);
}
.path-card:hover::after {
  transform: translateX(120%);
}
.path-card--primary {
  border-color: var(--border-gold);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.16), var(--surface-solid));
  animation: borderPulse 3s ease-in-out infinite;
}
.path-card h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.05rem;
}
.path-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.path-card__cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* Accueil — plus d'air */
#tab-accueil .page-intro {
  margin-bottom: 2.25rem;
}
#tab-accueil .page-intro h1 {
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
#tab-accueil .lead {
  line-height: 1.55;
  max-width: 36rem;
}
#tab-accueil .path-grid {
  gap: 1rem;
  margin-bottom: 2.25rem;
}
#tab-accueil .path-card {
  padding: 1.35rem 1.25rem 1.45rem;
}
#tab-accueil .path-card h2 {
  margin: 0 0 0.5rem;
}
#tab-accueil .path-card p {
  line-height: 1.55;
}
#tab-accueil .path-card__cta {
  margin-top: 1.1rem;
}
#tab-accueil .card--discord {
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 1.35rem 1.4rem;
}
#tab-accueil .legal-note--compact {
  margin: 0;
  padding-top: 0.5rem;
  line-height: 1.5;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tool-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.tool-chip:hover { color: var(--text); border-color: var(--border-gold); }

/* ── Cards ── */
.card {
  background: rgba(24, 22, 20, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card--panel:hover {
  border-color: rgba(212, 175, 55, 0.18);
}
.card--panel { padding: 1rem 1.1rem; }

.promo-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1408;
  background: linear-gradient(135deg, #f5d547, #e8b923);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.muted { color: var(--muted); }
.legal-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.legal-note--compact { margin: 0.75rem 0 0; }
.legal-note--inline { margin-top: 0.5rem; font-size: 0.72rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn--primary {
  background: var(--gold);
  color: #1a1408;
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn--sm { font-size: 0.8rem; padding: 0.4rem 0.75rem; }
.btn--discord { background: var(--discord); color: #fff; text-decoration: none; }
.link-btn {
  border: none;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ── Subnav comparateur ── */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.subnav__btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}
.subnav__btn--active {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.subnav__btn--soon {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}
.subnav__btn--soon:hover { color: var(--muted); }
.subnav__soon {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.locked-section--compact {
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.locked-section--compact h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.1rem;
}

/* ── Firm accordion ── */
.firms-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.firm-accordion { padding: 0; overflow: hidden; }
.firm-accordion__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
}
.firm-accordion__head::-webkit-details-marker { display: none; }
.firm-accordion__rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}
.firm-accordion__name {
  font-weight: 600;
  color: var(--text);
}
.firm-accordion__rank-tag {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
}
.firm-accordion__profile-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1a1510;
  background: var(--gold);
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
}
.firm-overview__profile-badge {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.firm-accordion__teaser {
  margin-left: auto;
  font-size: 0.8rem;
}
.firm-accordion__chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.firm-accordion[open] .firm-accordion__chevron { transform: rotate(-135deg); }
.firm-accordion__body {
  padding: 0 1rem 1rem;
  animation: firmAccordionIn 0.3s ease;
}

/* ── Firm tabs ── */
.firm-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.firm-tabs__btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}
.firm-tabs__btn--active {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.firm-tabs__count {
  font-size: 0.75rem;
  opacity: 0.8;
}
.firm-tabs__intro { font-size: 0.82rem; margin: 0 0 0.65rem; }

.firm-overview__price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.firm-overview__from {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}
.firm-quote {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-dim);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
}
.firm-facts {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.firm-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem; }
.firm-facts dt { color: var(--muted); font-weight: 500; }
.firm-facts dd { margin: 0; }
.firm-overview__proscons p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}
.tag {
  display: inline-block;
  font-weight: 700;
  margin-right: 0.35rem;
}
.tag--ok { color: var(--green); }
.tag--warn { color: var(--amber); }

/* ── Plan accordions ── */
.firm-plan-accordion { margin-bottom: 0.45rem; }
.firm-pricing-accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.firm-pricing-accordion__head::-webkit-details-marker { display: none; }
.firm-plan-accordion__title { font-weight: 600; font-size: 0.92rem; }
.firm-pricing-accordion__tag {
  font-size: 0.72rem;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.firm-pricing-accordion__body {
  padding: 0.75rem 0 0.25rem;
}
.firm-plan-accordion__hook { font-size: 0.82rem; margin: 0 0 0.35rem; }
.firm-plan-accordion__pitch { font-size: 0.88rem; margin: 0 0 0.65rem; }

.firm-tip {
  margin: 0.65rem 0;
  padding: 0.65rem 0.85rem;
  background: var(--amber-dim);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
}
.firm-tip strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

/* ── Tables ── */
.firm-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.firm-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.firm-table th,
.firm-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.firm-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
}
.firm-pricing-block { margin-bottom: 1rem; }
.firm-pricing-block__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}
.firm-pricing-block__note { font-size: 0.78rem; margin: 0 0 0.5rem; }
.firm-pricing-badge {
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}
.firm-pricing-badge--ok { background: var(--green-dim); color: var(--green); }
.firm-pricing-badge--muted { background: rgba(255,255,255,0.06); color: var(--muted); }

.firm-rules {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 560px) {
  .firm-rules { grid-template-columns: 1fr 1fr; }
}
.firm-rules h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--gold);
}
.firm-rules ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.firm-rules--compact ul { font-size: 0.8rem; }
.firm-plan-rules__title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.firm-rules__footnote { font-size: 0.75rem; margin: 0.35rem 0 0; }
.firm-plan-perks {
  margin: 0.5rem 0;
  padding: 0.65rem;
  background: var(--green-dim);
  border-radius: 8px;
  font-size: 0.82rem;
}
.firm-plan-perks__list { margin: 0.35rem 0 0; padding-left: 1.1rem; }

.money-eur {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ── Quiz ── */
.quiz-form { margin-top: 0.5rem; }
.quiz-q {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.quiz-q:last-of-type { border-bottom: none; }
.quiz-q legend {
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.quiz-q__help {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}
.quiz-q__help summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 500;
}
.quiz-q__help p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.quiz-q label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.quiz-q label:has(input:checked) { color: var(--text); }
.quiz-profile-summary {
  margin: 1rem 0;
  padding: 0.85rem;
  background: var(--gold-dim);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.quiz-plan-pick {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  background: var(--green-dim);
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(109, 212, 154, 0.2);
  border-top: none;
}
.quiz-result-firm .result-firm { margin-bottom: 0; border-radius: 8px 8px 0 0; }

/* ── Comparateur ── */
.compare-form { margin-top: 0.5rem; }
.compare-group {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.compare-group legend {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.compare-group__hint { font-size: 0.78rem; margin: 0 0 0.5rem; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem;
}
.compare-check {
  display: flex;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
}
.compare-check:has(input:checked) {
  color: var(--text);
  background: var(--gold-dim);
}
.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.compare-result { margin-top: 1rem; }
.compare-result__sub {
  margin: 1rem 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.compare-matrix-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.compare-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.compare-matrix th,
.compare-matrix td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--border);
}
.compare-matrix__sticky {
  position: sticky;
  left: 0;
  background: var(--surface-2);
  z-index: 1;
}
.compare-matrix__yes { color: var(--green); font-weight: 700; }
.compare-matrix__no { color: var(--muted); }
.compare-full__hint { font-size: 0.78rem; margin-top: 0.5rem; }

.compare-firms-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compare-firm-detail { padding: 0; overflow: hidden; }
.compare-firm-detail__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
}
.compare-firm-detail__head::-webkit-details-marker { display: none; }
.compare-firm-detail__body { padding: 0 1rem 1rem; }

/* ── Match cards ── */
.result-firm {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}
.result-firm__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.result-firm__head h3 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
}
.match-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}
.match-pct {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.match-pct--ok { background: var(--green-dim); color: var(--green); }
.match-plan-line { font-size: 0.85rem; margin: 0.45rem 0; }
.match-details {
  margin: 0.45rem 0;
  font-size: 0.8rem;
}
.match-details summary { cursor: pointer; color: var(--gold); }
.match-line { margin: 0.35rem 0; }
.match-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  margin: 0.1rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}

.price-rank { margin-top: 1rem; }
.price-rank h3 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.price-rank__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.price-rank__list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.price-rank__mo { font-size: 0.75rem; color: var(--muted); }

/* ── Guide payout ── */
.payout-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 0.65rem;
}
.payout-firm-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.payout-firm-list button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.payout-firm-list button.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.payout-firm-list__name {
  font-weight: 600;
  line-height: 1.35;
}
.payout-firm-list__rails {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.payout-detail h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--gold);
}
.payout-detail__intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.payout-detail__sub {
  margin: 1rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.payout-flow {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.payout-flow li + li { margin-top: 0.35rem; }
.payout-methods {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.payout-method {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.payout-method__head {
  margin-bottom: 0.45rem;
}
.payout-method__head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gold);
}
.payout-method__meta {
  font-size: 0.72rem;
  color: var(--muted);
}
.payout-method__steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.payout-method__steps li + li { margin-top: 0.3rem; }
.payout-method__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
}
.payout-traps ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.payout-traps li + li { margin-top: 0.3rem; }
.payout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.payout-detail__disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}
.payout-nav input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

/* ── Lexique ── */
.lexique-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 0.65rem;
}
.lexique-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.lexique-list button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.lexique-list button.active {
  background: var(--gold-dim);
  color: var(--gold);
}
.lexique-list__cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--amber);
}
.lexique-detail h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--gold);
}
.lexique-detail__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--amber);
}
.lexique-detail .example {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
}
.lexique-detail .trap {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-dim);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
}

/* ── Cohérence ── */
.payout-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.payout-check {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.payout-check--amount {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}
.payout-check--amount .payout-check__label { color: var(--text); font-weight: 600; }
.payout-check--amount .payout-check__value { font-size: 1.05rem; font-weight: 700; }
.payout-check:last-child { border-bottom: none; }
.payout-check__label { color: var(--muted); flex: 1; }
.payout-check__value {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.payout-check__value--ok { color: var(--green); }
.payout-check__value--bad { color: var(--red); }
.payout-check__value--warn { color: #e8a030; }
.payout-check__value--na { color: var(--muted); font-weight: 500; }
.payout-checklist__title {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gold);
}
.payout-checklist__verdict {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
.payout-checklist__verdict--ok {
  background: var(--green-dim);
  border-left: 3px solid var(--green);
}
.payout-checklist__verdict--bad {
  background: rgba(240, 128, 128, 0.1);
  border-left: 3px solid var(--red);
}
.payout-checklist__verdict--warn {
  background: var(--amber-dim);
  border-left: 3px solid var(--amber);
}
.payout-days-breakdown {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.coherence-section {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.coherence-section__title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.coherence-section__hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
}
.coherence-plan-summary {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.coherence-highlight {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
}
.coherence-highlight strong {
  display: block;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.coherence-days {
  margin: 0.75rem 0 0.85rem;
}
.coherence-days__label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.coherence-days__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 480px) {
  .coherence-days__grid { grid-template-columns: repeat(3, 1fr); }
}
.coherence-day label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
}
.coherence-day input {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}
.coherence-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  margin: 0.65rem 0 0.35rem;
}
.coherence-bar__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 0.35s ease;
}
.coherence-bar__fill--warn { background: linear-gradient(90deg, var(--gold), #e8a030); }
.coherence-bar__fill--bad { background: linear-gradient(90deg, #e8a030, var(--red)); }

/* ── Outil chiffres (ex-simulateur) ── */
.sim-grid {
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .sim-grid { grid-template-columns: 1fr 1fr; }
}
.sim-form label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.sim-form input,
.sim-form select,
.lexique-nav input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}
.sim-result .status {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.sim-result .status--ok { color: var(--green); }
.sim-result .status--warn { color: #e8a030; }
.sim-result .status--bad { color: var(--red); }
.sim-msg {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.sim-msg--ok { border-color: rgba(109, 212, 154, 0.35); background: rgba(109, 212, 154, 0.08); }
.sim-msg--warn { border-color: rgba(232, 160, 48, 0.35); background: rgba(232, 160, 48, 0.08); }
.sim-msg--bad { border-color: rgba(232, 96, 96, 0.35); background: rgba(232, 96, 96, 0.08); }
.sim-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sim-stat strong { color: var(--text); }

/* ── Discord ── */
.card--discord {
  padding: 1rem;
  margin-top: 0.5rem;
}
.card--discord__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.card--discord__img { border-radius: 12px; }
.card--discord h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.card--discord p { margin: 0 0 0.65rem; font-size: 0.85rem; color: var(--muted); }

/* ── Footer ── */
.footer--compact {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.footer-legal-details {
  margin-top: 0.65rem;
  text-align: left;
}
.footer-legal-details summary { cursor: pointer; color: var(--gold); }
.footer-legal-details ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.footer-legal-nav__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-nav__link:hover { color: var(--text); }
.footer-legal-nav__sep { opacity: 0.45; }

/* ── RGPD ── */
.rgpd-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border);
  background: rgba(18, 20, 26, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.rgpd-banner__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.rgpd-banner__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}
.rgpd-banner__actions { flex-shrink: 0; }

.rgpd-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--panel, #1a1c24);
  color: var(--text);
  overflow: hidden;
}
.rgpd-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.rgpd-dialog__form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.rgpd-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.rgpd-dialog__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.rgpd-dialog__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.rgpd-dialog__body {
  padding: 1rem 1.1rem;
  overflow-y: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}
.rgpd-dialog__body h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text);
}
.rgpd-dialog__body h3:first-child { margin-top: 0; }
.rgpd-dialog__body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.rgpd-dialog__body a { color: var(--gold); }
.rgpd-dialog__updated {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  opacity: 0.75;
}
.rgpd-dialog__foot {
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--border);
  text-align: right;
}

.auth-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}
.auth-form__consent input { margin-top: 0.2rem; flex-shrink: 0; }
.auth-form__consent button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}


@media (max-width: 640px) {
  .lexique-layout,
  .payout-layout { grid-template-columns: 1fr; }
  .firm-accordion__teaser { width: 100%; margin-left: 0; }
}

/* ── Animations ── */
@keyframes bgKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

@keyframes auroraShift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(4%, -3%) rotate(3deg) scale(1.1); }
}

@keyframes gridPan {
  0% { transform: perspective(500px) rotateX(58deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(58deg) translateY(56px); }
}

@keyframes mistDrift {
  from { transform: translateX(-15%); }
  to { transform: translateX(15%); }
}

@keyframes emberRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  80% { opacity: 0.55; }
  100% {
    transform: translateY(-108vh) translateX(var(--sway, 24px)) scale(0.25);
    opacity: 0;
  }
}

@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(24px, -18px) scale(1.08); opacity: 0.55; }
}

@keyframes dollarFall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0deg);
    opacity: 0;
  }
  6% { opacity: var(--dollar-opacity, 0.22); }
  88% { opacity: var(--dollar-opacity, 0.22); }
  100% {
    transform: translate3d(var(--sway, 24px), 108vh, 0) rotate(var(--spin, 120deg));
    opacity: 0;
  }
}

@keyframes scanline {
  0% { top: -15%; opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.5; }
  100% { top: 115%; opacity: 0; }
}

@keyframes logoGlow {
  0%, 100% {
    text-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(212, 175, 55, 0.15);
  }
  50% {
    text-shadow: 0 0 32px rgba(212, 175, 55, 0.65), 0 0 60px rgba(212, 175, 55, 0.2);
  }
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.12); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes firmAccordionIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Q&R playbook (étapes) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qa-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(109, 212, 154, 0.45);
  background: linear-gradient(90deg, rgba(109, 212, 154, 0.14) 0%, rgba(24, 22, 20, 0.95) 100%);
  box-shadow: 0 0 24px rgba(109, 212, 154, 0.12);
}
.qa-banner[hidden] { display: none !important; }
body:not(.qa-mode-admin) #qaAdminBanner { display: none !important; }
body.qa-mode-admin #qaAdminBanner:not([hidden]) { display: flex !important; }
.qa-banner__icon { font-size: 1.1rem; }
.qa-banner__text { flex: 1; font-weight: 600; font-size: 0.88rem; color: var(--green); }
.qa-banner__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.qa-banner--admin {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, rgba(24, 22, 20, 0.95) 100%);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}
.qa-banner--admin .qa-banner__text { color: var(--gold); }

.doc-qa {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.doc-qa--highlight {
  border-top-color: rgba(109, 212, 154, 0.55);
  box-shadow: 0 8px 32px rgba(109, 212, 154, 0.12);
  border-radius: 0 0 10px 10px;
}
.doc-qa__title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold);
}
.doc-qa__hint { margin: 0 0 0.85rem; font-size: 0.78rem; }
.doc-qa__thread { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.doc-qa__item {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.doc-qa__item--answered {
  border-color: rgba(109, 212, 154, 0.35);
  background: rgba(109, 212, 154, 0.06);
}
.doc-qa__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.doc-qa__label--gold { color: var(--gold); }
.doc-qa__q { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.doc-qa__a { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(212, 175, 55, 0.2); }
.doc-qa__a p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.doc-qa__pending { margin: 0.5rem 0 0; font-size: 0.78rem; font-style: italic; }
.doc-qa__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 4.5rem;
}
.doc-qa__input:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.doc-qa__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.doc-qa__status { font-size: 0.78rem; }

.qa-admin {
  margin-top: 1.25rem;
  border-color: rgba(212, 175, 55, 0.35);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.qa-admin--highlight {
  border-color: rgba(212, 175, 55, 0.75);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.25);
}
.qa-admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.qa-admin__head h2 { margin: 0; font-size: 1rem; color: var(--gold); }
.qa-admin__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a1510;
  background: var(--gold);
  vertical-align: middle;
}
.qa-admin__hint { margin: 0 0 1rem; font-size: 0.8rem; }
.qa-admin__list { display: flex; flex-direction: column; gap: 1rem; }
.qa-admin__item {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.qa-admin__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}
.qa-admin__q {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.55;
  padding-left: 0.65rem;
  border-left: 2px solid var(--gold);
}
.qa-admin__answer {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  .scene__bg-layer,
  .scene__aurora,
  .scene__dollars,
  .dollar-fall,
  .scene__grid,
  .scene__mist,
  .scene__glow,
  .scene__scanline,
  .particle,
  .topbar__logo,
  .path-card--primary,
  .path-card::after,
  .tab--enter,
  .tab--active .path-card,
  .tab--active .tools-row,
  .tab--active .card--discord,
  .firm-accordion__body {
    animation: none !important;
    transition: none !important;
  }
  .path-card:hover { transform: none; }
}

/* Lightbox zoom captures */
body.doc-image-lightbox-open {
  overflow: hidden;
}
.doc-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.doc-image-lightbox[hidden] {
  display: none !important;
}
.doc-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.doc-image-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(96vw, 1200px);
  max-height: 96vh;
  gap: 0.65rem;
}
.doc-image-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.9);
  color: #f0e8df;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.doc-image-lightbox__close:hover,
.doc-image-lightbox__close:focus-visible {
  border-color: rgba(212, 175, 55, 0.6);
  color: var(--gold, #d4af37);
  outline: none;
}
.doc-image-lightbox__caption {
  margin: 0;
  padding: 0 2.5rem 0 0.25rem;
  width: 100%;
  font-size: 0.82rem;
  color: #c8c0b6;
  text-align: left;
}
.doc-image-lightbox__stage {
  width: 100%;
  max-height: calc(96vh - 5rem);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: #0a0908;
}
.doc-image-lightbox__img {
  max-width: 100%;
  max-height: calc(96vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.doc-image-lightbox__tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 9, 8, 0.92);
}
.doc-image-lightbox__tool {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold, #d4af37);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.doc-image-lightbox__tool--reset {
  min-width: 4.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.doc-image-lightbox__tool:hover,
.doc-image-lightbox__tool:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}
