/* ============================================================
   RPA Invest — Design system
   Un seul endroit pour changer les couleurs / la marque.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #0a0e14;
  --bg-soft:   #111722;
  --bg-card:   #151c28;
  --border:    #232c3b;
  --text:      #e6edf6;
  --text-dim:  #93a1b5;
  --text-faint:#5c6b80;

  /* Accents */
  --accent:      #16c784;   /* vert "bullish" */
  --accent-soft: rgba(22,199,132,.12);
  --gold:        #e8b339;   /* niveaux clés / premium */
  --gold-soft:   rgba(232,179,57,.12);
  --red:         #ea3943;   /* bearish / risque */
  --blue:        #3b82f6;

  /* Typo & layout */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p  { color: var(--text-dim); }
.lead { font-size: 1.18rem; color: var(--text-dim); max-width: 720px; }

.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: grid; place-items: center; font-size: .85rem; color: #06210f; font-weight: 900;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: .94rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.lang { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.lang a, .lang button {
  background: none; border: 1px solid var(--border); color: var(--text-faint);
  border-radius: 6px; padding: 3px 8px; cursor: pointer; font: inherit; font-size: .8rem;
  text-decoration: none; display: inline-block; line-height: 1.4;
}
.lang a:hover { color: var(--text); }
.lang a.active, .lang button.active { color: var(--text); border-color: var(--accent); }
.lang button:disabled { opacity: .45; cursor: not-allowed; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; width: 40px; height: 40px; place-items: center; font-size: 1.2rem; cursor: pointer; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .96rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .12s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #06210f; }
.btn-gold { background: var(--gold); color: #2a1f00; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 110px 0 100px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(22,199,132,.16), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(232,179,57,.10), transparent 45%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 880px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-card { width: 100%; }
.hero-card .price { margin: 0; }
.hero-card .price .amount { margin-top: 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--text); }
.hero-stats .stat span { color: var(--text-faint); font-size: .9rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card .ic { font-size: 1.7rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .96rem; }

.feature-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.feature-row.rev { direction: rtl; } .feature-row.rev > * { direction: ltr; }

/* Compare scalping vs long terme */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .col { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); }
.compare .col.bad { background: linear-gradient(180deg, rgba(234,57,67,.07), transparent); border-color: rgba(234,57,67,.3); }
.compare .col.good { background: linear-gradient(180deg, rgba(22,199,132,.08), transparent); border-color: rgba(22,199,132,.35); }
.compare h3 { margin-bottom: 14px; }
.compare ul { list-style: none; display: grid; gap: 11px; }
.compare li { display: flex; gap: 10px; font-size: .96rem; color: var(--text-dim); }
.compare li::before { content: ""; flex: none; }
.compare .bad li::before { content: "✕"; color: var(--red); font-weight: 700; }
.compare .good li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: flex; gap: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 4px; }

/* ---------- Tables (suivi) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th {
  text-align: left; padding: 14px 16px; background: var(--bg-soft);
  color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .76rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
tbody tr:hover { background: rgba(255,255,255,.015); }
.asset { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.tk { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--bg-soft); color: var(--text-dim); }
.mono { font-family: var(--mono); }
.pos { color: var(--accent); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tag-buy { background: var(--accent-soft); color: var(--accent); }
.tag-watch { background: var(--gold-soft); color: var(--gold); }
.tag-hold { background: rgba(59,130,246,.12); color: var(--blue); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.price { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.price.featured { border-color: var(--gold); box-shadow: var(--shadow); position: relative; }
.price.featured::after {
  content: "Le plus populaire"; position: absolute; top: -12px; left: 32px;
  background: var(--gold); color: #2a1f00; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 20px;
}
.price .amount { font-size: 2.6rem; font-weight: 800; color: var(--text); margin: 8px 0 2px; }
.price .amount span { font-size: 1rem; color: var(--text-faint); font-weight: 500; }
.price .amount [data-price] { font-size: 3.2rem; color: #ffffff; font-weight: 800; }
.price ul { list-style: none; margin: 22px 0; display: grid; gap: 12px; }
.price li { display: flex; gap: 10px; color: var(--text-dim); font-size: .95rem; }
.price li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.price .btn { width: 100%; justify-content: center; }

/* Puces riches (titre + description) — check à gauche, texte groupé à droite */
.price .bullet-list { display: block; }
.price .card-bullet { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.price .card-bullet:last-child { margin-bottom: 0; }
.card-bullet-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.card-bullet-text strong { color: var(--text); }
.card-bullet-text span { color: var(--text-dim); font-size: .88rem; line-height: 1.45; }

/* ---------- Disclaimer / footer ---------- */
.disclaimer {
  background: var(--gold-soft); border: 1px solid rgba(232,179,57,.3);
  border-radius: var(--radius); padding: 18px 22px; font-size: .88rem; color: var(--text-dim);
}
.disclaimer strong { color: var(--gold); }

footer { border-top: 1px solid var(--border); padding: 50px 0 40px; background: var(--bg-soft); }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot a { color: var(--text-dim); text-decoration: none; font-size: .92rem; display: block; margin-bottom: 8px; }
.foot a:hover { color: var(--text); }
.foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 14px; }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3, .compare, .price-grid, .feature-row { grid-template-columns: 1fr; }
  .feature-row.rev { direction: ltr; }
  .nav-toggle { display: grid; }
  .lang { margin-left: auto; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 6px 0; z-index: 60;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 24px; font-size: 1rem; border-top: 1px solid var(--border); }
  section { padding: 64px 0; }
  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 26px; }
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 36px; align-items: stretch; }
  .hero-card { max-width: 460px; }
}

/* ============================================================
   ACADÉMIE — documentation (sidebar + contenu + schémas)
   ============================================================ */
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 46px; align-items: start; }
.docs-side { position: sticky; top: 86px; align-self: start; }
.docs-side h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 22px 0 10px; }
.docs-side h4:first-child { margin-top: 0; }
.docs-side a { display: block; color: var(--text-dim); text-decoration: none; font-size: .92rem; padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--text); background: var(--bg-card); }
.docs-side a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }

.lesson { scroll-margin-top: 86px; padding: 30px 0 38px; border-bottom: 1px solid var(--border); }
.lesson:last-child { border-bottom: none; }
.lesson .num { font-family: var(--mono); color: var(--text-faint); font-size: .85rem; font-weight: 700; }
.lesson h2 { margin: 6px 0 14px; }
.lesson h3 { margin: 22px 0 8px; }
.lesson p { margin-bottom: 12px; }
.lesson ul { margin: 0 0 14px 20px; color: var(--text-dim); display: grid; gap: 7px; }
.lesson strong { color: var(--text); }

.diagram { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .cap { color: var(--text-dim); font-size: .98rem; line-height: 1.45; margin-top: 14px; text-align: center; }

.note { background: var(--bg-soft); border-left: 3px solid var(--blue); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: .95rem; color: var(--text-dim); }
.note.key { border-left-color: var(--gold); background: var(--gold-soft); }
.note strong { color: var(--text); }

/* éléments SVG réutilisables */
.svg-label { font: 700 13px var(--font); fill: var(--text-dim); }
.svg-label-sm { font: 600 11px var(--font); fill: var(--text-faint); }
.svg-liq { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 4; }
.svg-axis { stroke: var(--border); stroke-width: 1; }

@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-side { position: static; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
}

/* ============================================================
   COULEUR & VIE — surcouche visuelle (gaieté / originalité)
   Tout est ici : facile à doser ou retirer.
   ============================================================ */
:root {
  --violet: #8b5cf6;
  --cyan:   #22d3ee;
  --pink:   #ec4899;
  --orange: #fb923c;
}

/* Fond global légèrement coloré (moins plat) */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -12%, rgba(139,92,246,.12), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(34,211,238,.07), transparent 38%);
  background-attachment: fixed;
}

/* Bandeau dégradé animé tout en haut de page */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--violet), var(--pink), var(--gold), var(--accent));
  background-size: 200% 100%;
  animation: rpa-slide 9s linear infinite;
}
@keyframes rpa-slide { to { background-position: 200% 0; } }

/* Hero : halos multicolores qui respirent */
.hero::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(22,199,132,.22), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(139,92,246,.22), transparent 45%),
    radial-gradient(circle at 72% 82%, rgba(34,211,238,.16), transparent 45%),
    radial-gradient(circle at 22% 88%, rgba(236,72,153,.14), transparent 45%);
  animation: rpa-breathe 12s ease-in-out infinite alternate;
}
@keyframes rpa-breathe { from { opacity:.75; transform: scale(1); } to { opacity:1; transform: scale(1.08); } }

/* Titres & accents en dégradé */
.eyebrow {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent), var(--cyan) 45%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat strong {
  background: linear-gradient(120deg, var(--accent), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Boutons en dégradé + lueur au survol */
.btn-primary { background: linear-gradient(135deg, var(--accent), #0ea5e9); color: #04210f; }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(22,199,132,.4); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #2a1700; }
.btn-gold:hover { box-shadow: 0 8px 26px rgba(232,179,57,.4); }

/* Cartes : liseré coloré en haut + élévation au survol */
.card { position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.grid-3 .card:nth-child(3n+2)::before,
.grid-2 .card:nth-child(2n)::before { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.grid-3 .card:nth-child(3n)::before { background: linear-gradient(90deg, var(--gold), var(--orange)); }

/* Pastilles tickers colorées */
.tk { background: linear-gradient(135deg, var(--violet), var(--cyan)); color: #fff; border: none; }

/* Numéros d'étapes en dégradé */
.step::before { background: linear-gradient(135deg, var(--accent-soft), rgba(139,92,246,.2)); color: var(--cyan); }

/* Diagrammes de l'académie : petit halo */
.diagram { box-shadow: 0 0 0 1px rgba(139,92,246,.08), 0 10px 30px rgba(0,0,0,.25); }

/* Apparition douce au scroll (activée par main.js) */
.reveal-init { opacity: 0; transform: translateY(18px); }
.reveal-init.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; }
  body::before, .hero::before { animation: none; }
}

/* ============================================================
   TRACK RECORD — stats, pastilles, graphique
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.stat-card .big { font-size: 1.7rem; font-weight: 800; background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lbl { color: var(--text-faint); font-size: .82rem; margin-top: 4px; }

.chart-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; color: var(--text-dim); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }

.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.dot-g { background: var(--accent); }
.dot-r { background: var(--red); }
.tri-up   { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--accent); display: inline-block; }
.tri-down { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--red); display: inline-block; }

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Track record : cartes de performance ---------- */
.perf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.perf { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; border-left: 3px solid var(--accent); }
.perf.loss { border-left-color: var(--red); }
.perf-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.perf-res { font-weight: 800; font-size: 1.05rem; }
.perf-res.pos { color: var(--accent); }
.perf-res.neg { color: var(--red); }
.perf p { font-size: .92rem; margin: 0; }
.dot-b { background: var(--blue); }
@media (max-width: 860px) { .perf-grid { grid-template-columns: 1fr; } }

/* ---------- Suivi fusionné : badges + zones ---------- */
.tag-life { background: var(--gold-soft); color: var(--gold); }
.tag-loss { background: rgba(234,57,67,.12); color: var(--red); }
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zone { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--gold); }
.zone .asset { font-size: .95rem; margin-bottom: 10px; }
.zone-lv { font-size: 1.05rem; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.zone p { font-size: .84rem; margin: 0; color: var(--text-faint); }
.members-banner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  background: var(--gold-soft); border:1px solid rgba(232,179,57,.3); border-radius: var(--radius); padding:16px 20px; margin-bottom:22px; }
.members-banner span { color: var(--text-dim); font-size:.94rem; }
@media (max-width: 860px) { .zones-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galerie de preuves (captures annotées) ---------- */
/* Grille de preuves — cartes uniformes, clean & premium */
.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.proof-card {
  background: #0f141c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.proof-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;        /* image entière visible, jamais coupée ni zoomée */
  background-color: #0b0e14;  /* fond propre qui comble les bords vides */
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.2s ease;
  cursor: zoom-in;            /* curseur loupe : on peut regarder de plus près */
}
.proof-card img:hover { transform: scale(1.02); }   /* léger zoom au survol */
.proof-card img.img-missing { cursor: default; }    /* boîte sombre discrète, sans icône cassée */

/* Lightbox — image en plein écran au clic */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88); cursor: zoom-out;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 44px; height: 44px;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Mockup smartphone — flux de notifications en direct */
.phone-mockup {
  background: #090c10;
  border: 4px solid #1f2937;
  border-radius: 36px;
  padding: 16px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  font-family: sans-serif;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 0.75rem;
  padding: 0 8px 12px;
}
.phone-notch {
  width: 60px;
  height: 16px;
  background: #1f2937;
  border-radius: 0 0 12px 12px;
  margin-top: -16px;
}
.notification-feed { display: flex; flex-direction: column; gap: 12px; }
.notif-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
}
.notif-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 4px;
}
.notif-time { margin-left: auto; color: #6b7280; font-size: 0.75rem; }
.notif-body { color: #d1d5db; font-size: 0.85rem; line-height: 1.3; margin: 0; }

/* Paiement — boutons wallet (Apple Pay / Google Pay) */
.pay-wallets { display: flex; gap: 10px; margin-top: 10px; }
.btn-wallet {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 46px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: opacity .15s, transform .15s;
}
.btn-wallet:hover { transform: translateY(-1px); }
.btn-apple { background: #000; color: #fff; border: 1px solid #2a2a2a; }
.btn-gpay  { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.btn-gpay .g { font-weight: 800; color: #4285f4; }
.pay-note { font-size: .8rem; color: var(--text-faint); text-align: center; margin: 10px 0 0; }
.btn.is-disabled, .btn-wallet.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }
.proof-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font-size: .88rem;
  color: var(--text-dim);
}
.proof-card figcaption strong { color: var(--text); font-size: .95rem; }
@media (max-width: 460px) { .proof-card img { height: 280px; } }

/* zone verrouillée (réservée aux membres) */
.zone-lv.locked { display:inline-block; font-size:.82rem; font-weight:700; color:var(--gold);
  background:var(--gold-soft); border:1px solid rgba(232,179,57,.3); border-radius:20px; padding:3px 12px; }

/* ---------- Liste des actifs détenus (chips) ---------- */
.holdings { display: flex; flex-wrap: wrap; gap: 10px; }
.holding { display: inline-flex; align-items: center; gap: 9px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 30px; padding: 7px 16px 7px 7px;
  font-weight: 700; color: var(--text); font-size: .94rem; }
.holding .tk { width: 26px; height: 26px; }

/* ---------- Logos d'actifs (crypto + entreprises) ---------- */
.hl-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: contain;
  background: #fff; padding: 2px; flex: none; box-sizing: border-box; }

/* ============================================================
   ACADÉMIE — confort de lecture (barre, retour haut, sommaire)
   ============================================================ */
.read-progress { position: fixed; top: 65px; left: 0; height: 3px; width: 0; z-index: 45;
  background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 8px rgba(34,211,238,.5); }

.to-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text); font-size: 1.25rem;
  display: grid; place-items: center; cursor: pointer; z-index: 70; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, border-color .15s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

.hero-accroche { margin-top: 20px; font-style: italic; font-size: 1.05rem; color: var(--accent);
  opacity: .92; max-width: 640px; }

.read-time { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; }

/* Petite légende "bonus" sous un bouton d'affiliation */
.btn-bonus { margin: 10px 0 0; font-size: .85rem; line-height: 1.4; color: var(--text-dim); max-width: 480px; }
.btn-bonus strong { color: var(--accent); font-weight: 700; }

/* Leçon 11 — cartes "Où investir ?" (3 options, boutons alignés en bas) */
.invest-card { display: flex; flex-direction: column; }
.invest-card p { flex-grow: 1; color: var(--text-dim); }
.invest-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.invest-region { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; border-radius: 20px; padding: 4px 11px; margin-bottom: 14px; }
.region-eu   { background: var(--accent-soft); color: var(--accent); }
.region-intl { background: rgba(232,179,57,.14); color: var(--gold); }

.toc-toggle { display: none; width: 100%; text-align: left; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius); padding: 14px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.toc-toggle span { float: right; transition: transform .2s; color: var(--accent); }
.toc-toggle.open span { transform: rotate(180deg); }

@media (max-width: 860px) {
  .toc-toggle { display: block; margin-bottom: 14px; }
  .docs-side { display: none; }
  .docs-side.open { display: block; }
}

/* Annotation « sweep » dans l'Académie — boîte placée sous le bottom qui sweep */
.sweep-chart { position: relative; max-width: 560px; margin: 0 auto; }
.sweep-chart svg { width: 100%; display: block; }
.sweep-callout { position: absolute; left: 35%; top: 60%; width: 62%;
  background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: 10px;
  padding: 11px 15px; color: var(--text); font-size: .9rem; font-weight: 600; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.sweep-cap { text-align: center; color: var(--text-dim); font-size: 1.02rem; margin-top: 18px; font-style: italic; }
@media (max-width: 640px) {
  .sweep-callout { position: static; left: auto; top: auto; width: auto; margin-top: 14px; font-size: .95rem; box-shadow: none; }
}

/* ---------- Logo image + accroche dans le header ---------- */
.brand .logo.has-img { background: none; overflow: hidden; width: 38px; height: 38px; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-col { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.brand-tag { font-size: .58rem; font-weight: 500; color: var(--text-faint); white-space: nowrap; margin-top: 1px; letter-spacing: .01em; }
@media (max-width: 980px) {
  .nav { height: auto; min-height: 66px; padding: 6px 0; }
  .brand-tag { white-space: normal; font-size: .54rem; line-height: 1.2; max-width: 175px; }
}
