/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #f8f9fb;
  --surface:      #ffffff;
  --surface2:     #f1f3f7;
  --border:       #e4e7ef;
  --text:         #1a1d2e;
  --text-muted:   #6b7280;
  --blue:         #3772ff;
  --blue-light:   #eef2ff;
  --green:        #16a34a;
  --green-light:  #dcfce7;
  --red:          #dc2626;
  --red-light:    #fee2e2;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --radius:       12px;
  --radius-sm:    8px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header / Nav ──────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  max-width: 940px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3772ff, #6fa3ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.nav-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 400;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .87rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px 28px;
}
.hero-inner { max-width: 940px; margin: 0 auto; }

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.hero-coin { display: flex; align-items: center; gap: 14px; }
.coin-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #3772ff, #6fa3ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}
.coin-name { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.coin-sub  { font-size: .83rem; color: var(--text-muted); margin-top: 2px; }

.hero-price-block { text-align: right; }
.hero-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.price-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .87rem;
  font-weight: 600;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 20px;
}
.price-change.up   { background: var(--green-light); color: var(--green); }
.price-change.down { background: var(--red-light);   color: var(--red); }

/* ─── Stat Grid ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.stat-card {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-label {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.stat-value.positive { color: var(--green); }
.stat-value.negative { color: var(--red); }

/* ─── Chart ─────────────────────────────────────────────────── */
.chart-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 12px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.chart-wrapper h3 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

/* ─── Page Main ─────────────────────────────────────────────── */
.page-main { padding: 32px 20px 60px; }
.page-inner { max-width: 940px; margin: 0 auto; }

.section-title {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Latest Card ───────────────────────────────────────────── */
.latest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.latest-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.latest-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.latest-card h2 a { color: var(--text); }
.latest-card h2 a:hover { color: var(--blue); text-decoration: none; }
.card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card-excerpt {
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .1s;
  text-decoration: none;
}
.btn:hover { background: #2960e8; text-decoration: none; transform: translateY(-1px); }

/* ─── Archive ───────────────────────────────────────────────── */
.archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.archive-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.archive-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.archive-item a {
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-item a:hover { color: var(--blue); text-decoration: none; }
.archive-date { font-size: .78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.archive-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.archive-badge.up   { background: var(--green-light); color: var(--green); }
.archive-badge.down { background: var(--red-light);   color: var(--red); }

/* ─── Article (single) ──────────────────────────────────────── */
.article-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 20px 28px;
}
.article-header-inner { max-width: 940px; margin: 0 auto; }
.article-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  max-width: 700px;
}
.article-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article-body { max-width: 940px; margin: 0 auto; padding: 32px 20px 60px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 22px;
  transition: color .15s;
}
.back-link:hover { color: var(--blue); text-decoration: none; }

.article-body h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.article-body h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }
.article-body p  { margin-bottom: 14px; font-size: .96rem; line-height: 1.78; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: .88rem;
}
.article-body th {
  background: var(--surface2);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
}
.article-body td { padding: 11px 16px; border-top: 1px solid var(--border); }
.article-body tr:hover td { background: var(--surface2); }
.article-body em { color: var(--text-muted); font-size: .85rem; }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 20px;
}
.footer-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: .8rem; color: var(--text-muted); }
.footer-disclaimer { font-size: .76rem; color: var(--text-muted); max-width: 440px; text-align: right; }

/* ─── Newsletter (Beehiiv) ──────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 32px 0;
  text-align: center;
}
.newsletter-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.newsletter-section p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.newsletter-section iframe {
  max-width: 100%;
  border-radius: var(--radius-sm);
}
.newsletter-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ─── Publicités (Coinzilla) ────────────────────────────────── */
.ad-wrapper {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}
.ad-wrapper-top {
  margin: 0 0 24px;
}
.ad-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
}
.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--text-muted);
  gap: 8px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-top { flex-direction: column; }
  .hero-price-block { text-align: left; }
  .hero-price { font-size: 1.9rem; }
  .article-header h1 { font-size: 1.3rem; }
  .footer-inner { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
  .nav-links { display: none; }
  .nav-tagline { display: none; }
}
