/* ═══════════════════════════════════════════════════════════════
   INVEST COMMUNITY — Design System v2
   Aesthetic: Editorial finance · Premium · Anti-generic
   Fonts: DM Serif Display (titres) + DM Sans (corps)
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');


/* ─── TOKENS ──────────────────────────────────────────────────── */

:root {
  --bg:            #f5f4f0;
  --bg-warm:       #eeece6;
  --surface:       #ffffff;
  --surface-soft:  #faf9f7;
  --surface-mid:   #f0ede8;
  --text:          #16130e;
  --text-muted:    #6b6459;
  --text-light:    #9e978e;
  --border:        #e2ddd7;
  --border-strong: #c8c2ba;
  --gold:          #b8962e;
  --gold-light:    rgba(184,150,46,0.12);
  --gold-mid:      rgba(184,150,46,0.28);
  --gold-dark:     #8f6e18;
  --navy:          #0e1f3d;
  --navy-soft:     #1a3a6b;
  --navy-light:    rgba(14,31,61,0.08);
  --green:         #1d7a45;
  --green-bg:      rgba(29,122,69,0.1);
  --red:           #b83232;
  --red-bg:        rgba(184,50,50,0.1);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 3px rgba(22,19,14,0.06);
  --shadow-sm: 0 4px 16px rgba(22,19,14,0.07);
  --shadow-md: 0 8px 28px rgba(22,19,14,0.10);
  --shadow-lg: 0 20px 52px rgba(22,19,14,0.13);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

body.dark {
  --bg:            #0f0e0b;
  --bg-warm:       #161410;
  --surface:       #1a1815;
  --surface-soft:  #201e1a;
  --surface-mid:   #252219;
  --text:          #f0ede6;
  --text-muted:    #a09890;
  --text-light:    #6e6660;
  --border:        #2e2b24;
  --border-strong: #3e3a31;
  --navy-light:    rgba(142,189,255,0.08);
  --shadow-sm:     0 4px 16px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 52px rgba(0,0,0,0.5);
}


/* ─── RESET & BASE ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 400px at 0% 0%, rgba(184,150,46,0.04), transparent 60%),
    radial-gradient(ellipse 700px 350px at 100% 100%, rgba(14,31,61,0.04), transparent 60%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.01em; font-family: var(--font-body); font-weight: 700; }
h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-weight: 400; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }


/* ─── LAYOUT ──────────────────────────────────────────────────── */

.container { width: min(1200px, calc(100% - 2.4rem)); margin: 0 auto; }
main { padding: 2.8rem 0 4rem; }
.section { margin-top: 3rem; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.section-head p { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.9rem; }


/* ─── HEADER ──────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,244,240,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
body.dark .site-header { background: rgba(15,14,11,0.96); }

.top-note { border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--gold-light), transparent 70%); }
.top-note-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-note p { font-size: 0.73rem; font-weight: 600; color: var(--text-muted); }
.top-note a { font-size: 0.73rem; color: var(--gold-dark); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--gold-mid); padding-bottom: 1px; transition: color 0.15s; }
body.dark .top-note a { color: var(--gold); }
.top-note a:hover { color: var(--gold); }

.nav-row { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: nowrap; }


/* ─── BRAND ───────────────────────────────────────────────────── */

.brand-wrap { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; border-radius: var(--radius-sm); object-fit: contain; padding: 4px; background: #111; border: 1px solid var(--gold-mid); flex-shrink: 0; }
.brand-meta { display: grid; gap: 0.02rem; }
.brand { font-size: 0.95rem; font-weight: 700; color: var(--text); font-family: var(--font-display); }
.brand-meta small { color: var(--text-light); font-size: 0.67rem; font-weight: 400; line-height: 1; }


/* ─── NAV ─────────────────────────────────────────────────────── */

.menu-toggle { display: none; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.42rem 0.75rem; cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 0.1rem; flex-wrap: nowrap; }
.main-nav a { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; border-radius: 6px; padding: 0.28rem 0.55rem; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.main-nav a:hover { color: var(--text); background: var(--surface-mid); }
.main-nav a.active { color: var(--gold-dark); background: var(--gold-light); font-weight: 600; }
body.dark .main-nav a.active { color: var(--gold); }


/* ─── BUTTONS ─────────────────────────────────────────────────── */

.header-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; flex-wrap: nowrap; }

.btn {
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: 0.79rem; font-weight: 600;
  padding: 0.46rem 0.85rem; cursor: pointer; white-space: nowrap;
  letter-spacing: 0.01em; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost     { background: var(--surface); border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-mid); color: var(--text); }

.btn-primary   { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 10px rgba(14,31,61,0.22); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: 0 5px 16px rgba(14,31,61,0.3); }

.btn-gold      { color: #fff; background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-secondary { color: var(--navy-soft); background: var(--navy-light); border-color: rgba(14,31,61,0.18); }
body.dark .btn-secondary { color: #8ebdff; background: rgba(142,189,255,0.1); border-color: rgba(142,189,255,0.2); }

/* Bouton icône (soleil/lune) */
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 2px; color: var(--text-muted);
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-icon:hover { background: var(--surface-mid); color: var(--text); border-color: var(--border-strong); }
.btn-icon svg   { display: block; pointer-events: none; width: 5px; height: 5px; }


/* ─── HERO ────────────────────────────────────────────────────── */

.hero {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 3vw, 2.8rem); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 500px; height: 300px;
  background: radial-gradient(ellipse at top right, var(--gold-light), transparent 65%); pointer-events: none;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 700; color: var(--gold-dark);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
body.dark .hero-kicker { color: var(--gold); }
.hero-kicker::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--gold); }

.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 18ch; line-height: 1.1; }
.hero > p { margin-top: 0.85rem; max-width: 58ch; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }


/* ─── SEARCH ──────────────────────────────────────────────────── */

.search-wrap {
  display: flex; align-items: center; gap: 0.55rem;
  width: min(540px, 100%); margin: 1.3rem 0 0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 0.48rem 0.65rem 0.48rem 0.75rem;
  box-shadow: var(--shadow-xs); transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.search-wrap svg   { width: 14px; height: 14px; color: var(--text-light); flex-shrink: 0; }
.search-wrap input { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.84rem; outline: none; }
.search-wrap input::placeholder { color: var(--text-light); }


/* ─── STATS ───────────────────────────────────────────────────── */

.hero-stats { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; }
.stat-card  { border-radius: var(--radius-sm); background: var(--surface-soft); border: 1px solid var(--border); padding: 0.85rem 1rem; }
.stat-card .label { font-size: 0.68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-card .value { margin-top: 0.28rem; font-size: 1.45rem; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.02em; }


/* ─── EDITORIAL ROW ───────────────────────────────────────────── */

.editorial-row { margin-top: 1.2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 0.8rem; }


/* ─── CARDS ───────────────────────────────────────────────────── */

.editorial-card, .insight-card, .analysis-card, .card,
.profile-panel, .discussion-item, .market-card, .member-card {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.editorial-card, .insight-card, .analysis-card, .card, .profile-panel, .discussion-item { padding: 1.1rem 1.2rem; }

.editorial-card { border-left: 3px solid var(--gold); }
.insight-card   { border-left: 3px solid var(--navy-soft); }

.card h3, .editorial-card h3, .insight-card h3, .analysis-card h3 { font-size: 0.98rem; font-weight: 600; }
.card p, .editorial-card p, .insight-card p, .analysis-card p { margin-top: 0.42rem; color: var(--text-muted); font-size: 0.87rem; line-height: 1.6; }

.card:hover, .market-card:hover, .discussion-item:hover, .member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }


/* ─── DISCUSSIONS ─────────────────────────────────────────────── */

.discussion-list { display: grid; gap: 0.85rem; }
.discussion-item { display: grid; gap: 0.75rem; }
.discussion-item h3 { font-size: 1.05rem; font-weight: 600; }
.discussion-item h3 a:hover, .card h3 a:hover, .link:hover { color: var(--gold-dark); }
body.dark .discussion-item h3 a:hover, body.dark .card h3 a:hover, body.dark .link:hover { color: var(--gold); }
.discussion-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }


/* ─── PILLS & BADGES ──────────────────────────────────────────── */

.pill-row { display: flex; align-items: center; gap: 0.32rem; flex-wrap: wrap; }
.pill { border-radius: 4px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text-muted); font-size: 0.69rem; font-weight: 600; padding: 0.16rem 0.48rem; }

.badge { border-radius: 4px; padding: 0.16rem 0.48rem; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-default { color: var(--navy-soft); background: var(--navy-light); }
body.dark .badge-default { color: #8ebdff; background: rgba(142,189,255,0.12); }
.badge-gold    { color: var(--gold-dark); background: var(--gold-light); }
body.dark .badge-gold { color: var(--gold); background: rgba(184,150,46,0.15); }
.badge-slate   { color: #4a5e78; background: rgba(74,94,120,0.12); }
body.dark .badge-slate { color: #a0b4cc; background: rgba(160,180,204,0.12); }


/* ─── POSTS ───────────────────────────────────────────────────── */

.post { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: start; }
.post + .post { margin-top: 0.7rem; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.avatar-a { background: linear-gradient(135deg, #0e2747, #1e4a8a); }
.avatar-b { background: linear-gradient(135deg, #3a4d65, #556a82); }
.avatar-c { background: linear-gradient(135deg, #7a5618, #aa7c2a); }
.avatar-d { background: linear-gradient(135deg, #0e4a58, #158070); }
.avatar-e { background: linear-gradient(135deg, #3c2a65, #5a3e90); }
.avatar-f { background: linear-gradient(135deg, #123852, #1a6080); }
.avatar-g { background: linear-gradient(135deg, #163e38, #226860); }
.avatar-h { background: linear-gradient(135deg, #622830, #8e3e48); }
.avatar-i { background: linear-gradient(135deg, #2a3820, #4a6830); }

.post-body   { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-soft); padding: 0.7rem 0.85rem; }
.post-head   { display: flex; align-items: center; gap: 0.38rem; flex-wrap: wrap; margin-bottom: 0.38rem; }
.post-head time { font-size: 0.7rem; color: var(--text-light); }
.post-actions { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.5rem; }


/* ─── VOTE / SMALL BUTTONS ────────────────────────────────────── */

.vote-btn, .tiny-btn, .page-btn {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font: inherit; font-size: 0.71rem;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.vote-btn, .tiny-btn { border-radius: 6px; padding: 0.24rem 0.55rem; }
.vote-btn:hover, .tiny-btn:hover { background: var(--surface-mid); color: var(--text); }
.vote-btn.active { border-color: var(--gold-mid); color: var(--gold-dark); background: var(--gold-light); }
body.dark .vote-btn.active { color: var(--gold); }


/* ─── MARKET CARDS ────────────────────────────────────────────── */

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1rem;
}

.market-card {
  padding: 1rem 1rem 0.85rem;
  display: block; text-decoration: none; color: inherit;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.market-card.active { border-color: var(--gold-mid); background: linear-gradient(145deg, var(--surface), rgba(184,150,46,0.04)); }

.market-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.market-card h4  { font-size: 0.9rem; font-weight: 600; }
.market-price    { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 500; }
.market-right    { text-align: right; }
.delta           { font-size: 0.83rem; font-weight: 700; }
.delta-period    { font-size: 0.68rem; color: var(--text-light); margin-top: 0.15rem; }
.up              { color: var(--green); }
.down            { color: var(--red); }
.chart-spark     { width: 100%; margin-top: 0.6rem; display: block; }


/* ─── TREND BADGE ─────────────────────────────────────────────── */

.trend-badge {
  display: inline-flex; align-items: center; gap: 0.22rem;
  font-size: 0.76rem; font-weight: 700;
  padding: 0.16rem 0.5rem; border-radius: 4px;
}
.trend-badge.up   { background: var(--green-bg); color: var(--green); }
.trend-badge.down { background: var(--red-bg);   color: var(--red); }
.trend-badge.flat { background: rgba(100,100,100,0.1); color: var(--text-muted); }


/* ─── ANALYSES ────────────────────────────────────────────────── */

.analysis-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.analysis-card { padding: 1.1rem 1.2rem; }
.analysis-meta { margin-top: 0.28rem; font-size: 0.7rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.06em; }
body.dark .analysis-meta { color: var(--gold); }


/* ─── TABLES ──────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.forum-table { width: 100%; border-collapse: collapse; }
.forum-table th, .forum-table td { text-align: left; padding: 0.78rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.forum-table thead th { color: var(--text-light); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-soft); }
.forum-table tbody tr:last-child td { border-bottom: 0; }
.forum-table tbody tr:hover { background: var(--surface-soft); }

.signal-table { border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.signal-table table { width: 100%; border-collapse: collapse; }
.signal-table th, .signal-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.875rem; }
.signal-table th { background: var(--surface-soft); color: var(--text-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.signal-table tr:last-child td { border-bottom: 0; }
.signal-table tbody tr:hover { background: var(--surface-soft); }


/* ─── PAGINATION ──────────────────────────────────────────────── */

.pagination { margin-top: 1rem; display: flex; justify-content: flex-end; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.page-btn { min-width: 34px; height: 32px; border-radius: var(--radius-xs); font-size: 0.78rem; }
.page-btn:hover  { background: var(--surface-mid); color: var(--text); }
.page-btn.active { color: var(--gold-dark); border-color: var(--gold-mid); background: var(--gold-light); }
body.dark .page-btn.active { color: var(--gold); }
.page-btn[disabled] { opacity: 0.4; cursor: not-allowed; }


/* ─── MISC ────────────────────────────────────────────────────── */

.thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.thread-head h1 { margin-top: 0.4rem; font-size: clamp(1.65rem, 3.5vw, 2.3rem); }
.muted   { color: var(--text-muted); }
.link    { color: var(--gold-dark); font-size: 0.84rem; font-weight: 600; }
body.dark .link { color: var(--gold); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.4rem 0; }


/* ─── PROFILE ─────────────────────────────────────────────────── */

.profile-grid   { display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; }
.profile-avatar { width: 78px; height: 78px; font-size: 0.98rem; margin-bottom: 0.7rem; }
.stats-list     { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.42rem; }
.stats-list li  { display: flex; justify-content: space-between; gap: 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface-soft); padding: 0.48rem 0.65rem; font-size: 0.84rem; }


/* ─── MEMBERS ─────────────────────────────────────────────────── */

.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.member-card { padding: 1rem; }
.member-head { display: flex; align-items: center; gap: 0.55rem; }
.member-meta { margin-top: 0.6rem; display: grid; gap: 0.28rem; }
.member-meta span { font-size: 0.79rem; color: var(--text-muted); }


/* ─── TIMELINE ────────────────────────────────────────────────── */

.timeline      { display: grid; gap: 0.7rem; margin-top: 1rem; }
.timeline-item { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-soft); padding: 0.72rem 0.85rem; }
.timeline-item h4 { font-size: 0.93rem; }
.timeline-item p  { margin-top: 0.32rem; color: var(--text-muted); font-size: 0.84rem; }


/* ─── CATEGORIES ──────────────────────────────────────────────── */

.categories-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.category-card {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); padding: 1.2rem; box-shadow: var(--shadow-xs);
  border-left: 3px solid var(--gold); transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card h3 { font-size: 0.98rem; }
.category-card p  { margin-top: 0.38rem; color: var(--text-muted); font-size: 0.84rem; }


/* ─── DETAIL PANEL (marchés) ──────────────────────────────────── */

.detail-panel { display: none; margin-top: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; animation: slideDown 0.3s ease; }
.detail-panel.open { display: block; }

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

.dp-header { padding: 1.4rem 1.6rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; }
.dp-title-block h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 0.3rem; }
.dp-meta-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.dp-meta-row span { font-size: 0.78rem; color: var(--text-muted); }
.dp-meta-row .sep { color: var(--border); }
.dp-stats { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.dp-stat .val { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.dp-stat .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem; }

.dp-body { display: grid; grid-template-columns: 1fr 340px; }
.dp-chart-zone { padding: 1.4rem 1.6rem; border-right: 1px solid var(--border); }
.dp-chart-tabs { display: flex; gap: 0.3rem; margin-bottom: 1rem; }
.dp-tab { border: 1px solid var(--border); background: var(--surface-soft); color: var(--text-muted); font: inherit; font-size: 0.75rem; font-weight: 700; padding: 0.28rem 0.64rem; border-radius: 999px; cursor: pointer; transition: all 0.15s; }
.dp-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.dp-main-chart { height: 220px; position: relative; }

.dp-side { padding: 1.4rem; display: grid; gap: 0.8rem; align-content: start; }
.dp-info-card { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-soft); padding: 0.85rem 0.9rem; }
.dp-info-card h4 { font-size: 0.82rem; font-weight: 700; color: var(--navy-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
body.dark .dp-info-card h4 { color: #8ebdff; }
.dp-info-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

.dp-kv-list { display: grid; gap: 0.4rem; }
.dp-kv { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.dp-kv:last-child { border-bottom: none; }
.dp-kv .k { color: var(--text-muted); }
.dp-kv .v { font-weight: 700; color: var(--text); }
.dp-kv .v.up   { color: var(--green); }
.dp-kv .v.down { color: var(--red); }

.dp-close { position: absolute; top: 1rem; right: 1rem; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: inherit; font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; z-index: 2; }
.dp-close:hover { background: var(--surface-mid); }


/* ─── PLATEFORMES (page comparatif) ──────────────────────────── */

.plat-hero {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.6rem); position: relative; overflow: hidden;
}
.plat-hero::before {
  content: ''; position: absolute; top: 0; right: 0; width: 480px; height: 240px;
  background: radial-gradient(ellipse at top right, var(--gold-light), transparent 65%); pointer-events: none;
}

.plat-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 700; color: var(--gold-dark);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem;
}
body.dark .plat-kicker { color: var(--gold); }
.plat-kicker::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--gold); }

.plat-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 0.7rem; }
.plat-hero > p { color: var(--text-muted); font-size: 0.9rem; max-width: 60ch; }

.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }

.plat-card {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-xs);
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit;
}
.plat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.plat-card.featured { border-color: var(--gold-mid); background: linear-gradient(145deg, var(--surface), rgba(184,150,46,0.04)); }

.plat-featured-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-dark); background: var(--gold-light); border: 1px solid var(--gold-mid);
  border-radius: 4px; padding: 0.18rem 0.52rem;
}
body.dark .plat-featured-badge { color: var(--gold); }

.plat-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.plat-card-title-col { display: flex; flex-direction: column; gap: 0.18rem; flex: 1; min-width: 0; }
.plat-card-score-col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; flex-shrink: 0; padding-top: 0.05rem; }

.plat-name       { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.plat-desc       { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.plat-score-main { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); color: var(--gold-dark); line-height: 1; text-align: right; }
body.dark .plat-score-main { color: var(--gold); }
.plat-score-lbl  { font-size: 0.62rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; text-align: right; white-space: nowrap; }

.plat-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.plat-stat  { border-radius: 5px; border: 1px solid var(--border); background: var(--surface-soft); padding: 0.24rem 0.6rem; font-size: 0.74rem; font-weight: 600; color: var(--text-muted); display: flex; gap: 0.28rem; align-items: center; }
.plat-stat .st-val { color: var(--text); font-weight: 700; }

.plat-tags { display: flex; gap: 0.32rem; flex-wrap: wrap; }
.plat-tag  { font-size: 0.67rem; font-weight: 600; padding: 0.15rem 0.44rem; border-radius: 4px; background: var(--navy-light); color: var(--navy-soft); }
body.dark .plat-tag { color: #8ebdff; background: rgba(142,189,255,0.1); }
.plat-tag.gold-tag { background: var(--gold-light); color: var(--gold-dark); }
body.dark .plat-tag.gold-tag { color: var(--gold); }

.plat-cta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); margin-top: auto; }
.plat-cta span { font-size: 0.77rem; color: var(--text-light); }
.plat-link { font-size: 0.8rem; font-weight: 700; color: var(--gold-dark); display: flex; align-items: center; gap: 0.28rem; flex-shrink: 0; }
body.dark .plat-link { color: var(--gold); }
.plat-link svg { width: 13px; height: 13px; }

.method-note { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-soft); padding: 1rem 1.2rem; font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 0.8rem; }
.method-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--gold-dark); }
body.dark .method-note svg { color: var(--gold); }


/* ─── FOOTER ──────────────────────────────────────────────────── */

.site-footer { border-top: 2px solid var(--gold-mid); background: var(--bg-warm); padding: 2.4rem 0 1.4rem; margin-top: 2rem; }
body.dark .site-footer { background: var(--surface-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.4rem; }
.footer-grid h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--text-light); margin-bottom: 0.75rem; }
.footer-grid a  { display: block; margin-bottom: 0.38rem; color: var(--text-muted); font-size: 0.84rem; transition: color 0.15s; }
.footer-grid a:hover { color: var(--gold-dark); }
body.dark .footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 0.7rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-light); font-size: 0.77rem; }


/* ─── REVEAL ANIMATION ────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }


/* ─── BREAKPOINTS ─────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .card-grid, .market-grid, .analysis-grid, .footer-grid,
  .hero-stats, .member-grid, .profile-grid, .categories-grid,
  .plat-grid, .dp-body { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editorial-row { grid-template-columns: 1fr; }
  .dp-chart-zone { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-row { flex-wrap: wrap; height: auto; padding: 0.6rem 0; }
  .main-nav {
    position: absolute; left: 1.2rem; right: 1.2rem; top: 118px;
    display: none; flex-direction: column; align-items: flex-start; gap: 0.28rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); box-shadow: var(--shadow-md); padding: 0.65rem; z-index: 200;
  }
  .main-nav.open { display: flex; }
  .header-actions { margin-left: auto; }
  .top-note-inner { min-height: 44px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0.28rem 0; gap: 0.18rem; }
}

@media (max-width: 680px) {
  .container { width: min(100%, calc(100% - 1.4rem)); }
  main { padding: 1.8rem 0 3rem; }
  .card-grid, .market-grid, .analysis-grid, .footer-grid,
  .hero-stats, .member-grid, .profile-grid, .categories-grid,
  .plat-grid { grid-template-columns: 1fr; }
  .thread-head { flex-direction: column; align-items: flex-start; }
  .forum-table th, .forum-table td { white-space: nowrap; font-size: 0.79rem; padding: 0.62rem 0.7rem; }
}