/* ============================================================
   InteractiveCrypto — Jetons de design
   ============================================================ */
:root {
  /* Marque */
  --yellow: #FFD200;
  --yellow-soft: #FFF3B0;
  --black: #0a0a0a;
  --paper: #ffffff;
  --paper-alt: #FAF9F5;
  --ink: #111111;
  --ink-2: #666666;
  --ink-3: #999999;
  --rule: #e5e3df;
  --rule-soft: #f5f3ef;
  --up: #16a34a;
  --down: #dc2626;

  /* Polices */
  --sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, monospace;
}

/* ============================================================
   Réinitialisation & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { text-size-adjust: 100%; tab-size: 4; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }

/* ============================================================
   Mise en page
   ============================================================ */
.mx-auto { margin-left: auto; margin-right: auto; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   Barre utilitaire supérieure
   ============================================================ */
.ic-topbar { background: var(--black); color: #c9c9c4; font-size: 11px; }
.ic-strip { padding: 6px 0; }
.ic-strip-inner {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
}
.ic-strip-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.ic-strip-sep { color: #444; margin: 0 10px; }
.ic-strip-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ic-strip-link { color: #c9c9c4; font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ic-strip-link:hover { color: var(--yellow); }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  display: inline-block;
}

/* ============================================================
   En-tête principal / Barre de navigation
   ============================================================ */
.ic-mainbar {
  background: var(--black); color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid var(--yellow);
  position: relative;
}
.ic-mainbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 56px;
}
.ic-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
}
.ic-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--yellow); color: var(--black);
  display: grid; place-items: center;
  font-weight: 800; font-style: italic; font-size: 14px;
}
.ic-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.ic-logo-text strong { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.ic-logo-text .serif-italic { font-family: var(--serif); font-style: italic; font-size: 11px; color: var(--yellow); }

/* Nav links */
.ic-nav { display: flex; align-items: center; gap: 0; }
.ic-nav-link {
  display: inline-flex; align-items: center;
  padding: 0 16px; height: 56px;
  font-size: 13px; font-weight: 600; color: #c9c9c4;
  text-decoration: none; transition: color 0.2s;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ic-nav-link:hover, .ic-nav-link.is-active {
  color: #fff; border-bottom-color: var(--yellow);
}

/* Search */
.ic-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; padding: 0 14px; height: 36px;
  transition: border-color 0.2s;
}
.ic-search:focus-within { border-color: var(--yellow); }
.ic-search input {
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 13px; width: 180px;
}
.ic-search input::placeholder { color: rgba(255,255,255,0.4); }
.ic-search svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

/* Clock */
.ic-clock {
  font-family: var(--mono); font-size: 11px; color: #888;
  letter-spacing: 0.04em;
}

/* Hamburger */
.ic-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; padding: 8px;
}
@media (max-width: 1023px) {
  .ic-nav { display: none; }
  .ic-hamburger { display: block; }
  .ic-search input { width: 120px; }
  .ic-clock { display: none; }
}
@media (max-width: 639px) {
  .ic-mainbar-inner { padding: 0 16px; height: 52px; }
  .ic-logo-text strong { font-size: 11px; }
  .ic-logo-text .serif-italic { font-size: 9px; }
  .ic-search { padding: 0 10px; height: 32px; }
  .ic-search input { width: 100px; font-size: 12px; }
  .ic-hamburger { padding: 6px; }
}

/* ============================================================
   Bande des cryptomonnaies (Ticker)
   ============================================================ */
.coinstrip {
  background: var(--paper-alt); border-bottom: 1px solid var(--rule);
  padding: 14px 24px;
}
.coinstrip-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  max-width: 1320px; margin: 0 auto;
}
.coin-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 6px; padding: 10px 14px;
  min-width: 0; color: inherit; text-decoration: none; display: block;
  transition: border-color 0.2s;
}
.coin-card:hover { border-color: var(--ink); }
.coin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.coin-sym-wrap { display: inline-flex; align-items: center; gap: 6px; }
.coin-icon { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; background: var(--paper-alt); }
.coin-sym { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
.coin-price { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.1; }
.coin-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; }
.coin-pct { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.coin-pct.is-up { color: var(--up); }
.coin-pct.is-down { color: var(--down); }
.coin-vol { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.coin-spark { width: 56px; height: 18px; }
@media (max-width: 1023px) { .coinstrip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) {
  .coinstrip-grid {
    display: flex; gap: 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .coinstrip-grid::-webkit-scrollbar { display: none; }
  .coin-card { min-width: 130px; flex-shrink: 0; scroll-snap-align: start; }
}

/* ============================================================
   En-têtes de section
   ============================================================ */
.kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 6px;
}
.lean-h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(22px, 3vw, 32px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
}
.lean-h2 em { font-family: var(--serif); font-style: italic; }
.section-head-wrap {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
}

/* ============================================================
   Salle de rédaction
   ============================================================ */
.newsroom {
  background: var(--paper-alt); padding: 56px 0;
}
.newsroom-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Pilules d'actualités */
.news-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.news-pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-2);
  font-size: 12px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.news-pill:hover { background: var(--rule-soft); }
.news-pill.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* Grille d'articles à la une */
.news-feature {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px;
  margin: 32px 0;
}
.news-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
  min-width: 0;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.news-card a { color: inherit; text-decoration: none; display: block; }
.news-art {
  position: relative; background: var(--black);
  color: #5a5a5a; display: grid; place-items: center;
  overflow: hidden;
}
.news-art--feature { aspect-ratio: 16 / 9; }
.news-art--small { aspect-ratio: 16 / 9; }
.news-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.news-art-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.news-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow); color: var(--black);
  padding: 4px 8px; font-family: var(--mono);
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; border-radius: 3px;
  text-transform: uppercase; z-index: 1;
}
.news-body { padding: 28px; }
.news-body--small { padding: 18px; }
.news-title {
  font-family: var(--sans); font-weight: 800;
  color: var(--ink); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.news-title--feature { font-size: clamp(24px, 3vw, 42px); line-height: 1.04; }
.news-title--small { font-size: 17px; line-height: 1.18; }
.news-dek {
  color: var(--ink-2); margin: 12px 0 18px; line-height: 1.5;
}
.news-dek--serif { font-family: var(--serif); font-style: italic; font-size: 20px; }
.news-dek--small { font-size: 12.5px; margin: 8px 0 10px; }
.news-dek--clamp {
  font-size: 12.5px; margin: 4px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Signature */
.news-byline {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; font-size: 13px; color: var(--ink-2);
}
.news-byline--small { font-size: 11.5px; gap: 6px; }
.news-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow-soft); border: 1px solid var(--rule);
  color: var(--ink); font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0;
}
.news-cat-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--rule-soft); color: var(--ink-2);
  padding: 4px 8px; border-radius: 4px;
}
.news-meta-mono {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.04em;
}

/* Cartes secondaires */
.news-secondary { display: flex; flex-direction: column; gap: 16px; }
.news-card--small { flex-direction: row; }
.news-card--small .news-art--small { width: 160px; flex-shrink: 0; aspect-ratio: auto; }

/* Grille inférieure */
.news-tail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.news-tail--list {
  grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: none; padding-top: 0;
}
.news-title--tail { font-size: 15px; line-height: 1.25; margin-bottom: 6px; }
.news-art--tail { aspect-ratio: 4 / 3; }
.news-body--tail { padding: 14px; }

@media (max-width: 1023px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-tail { grid-template-columns: repeat(2, 1fr); }
  .news-tail--list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-title--feature { font-size: 28px; }
}
@media (max-width: 639px) {
  .newsroom { padding: 24px 0; }
  .newsroom-inner { padding: 0 16px; }
  .news-feature { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
  .news-tail { grid-template-columns: 1fr; gap: 12px; }
  .news-tail--list { grid-template-columns: 1fr; gap: 16px; }
  .news-card--small { flex-direction: row; }
  .news-card--small .news-art--small { width: 88px; height: 80px; }
  .news-body { padding: 18px; }
  .news-body--small { padding: 14px; }
  .news-title--feature { font-size: 22px; }
  .news-title--small { font-size: 15px; }
  .news-dek--serif { font-size: 16px; }
  .news-badge { top: 10px; left: 10px; font-size: 9px; padding: 3px 6px; }
  .section-head-wrap { padding: 0 16px; }
}

/* ============================================================
   Courtiers / Sections supplémentaires
   ============================================================ */
.progrid { background: var(--paper-alt); padding: 40px 0; }
.progrid-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Pied de page
   ============================================================ */
.ic-footer {
  background: var(--black); color: #c9c9c4;
  font-family: var(--sans); margin-top: auto;
}
.ic-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px;
}
.ic-footer-brand { max-width: 360px; }
.ic-footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; margin-bottom: 14px;
}
.ic-footer-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--yellow); color: var(--black);
  display: grid; place-items: center;
  font-weight: 800; font-style: italic; font-size: 16px;
}
.ic-footer-name { display: flex; flex-direction: column; line-height: 1.1; }
.ic-footer-name strong { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: #fff; }
.ic-footer-name .serif-italic { font-family: var(--serif); font-style: italic; font-size: 11px; color: var(--yellow); }
.ic-footer-blurb { font-size: 12.5px; line-height: 1.55; color: #888; margin: 0; }
.ic-footer-col h3 {
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  color: var(--yellow); letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 12px;
}
.ic-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ic-footer-col a { color: #c9c9c4; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.ic-footer-col a:hover { color: var(--yellow); }
.ic-footer-strip {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid #1a1a1a;
  font-family: var(--mono); font-size: 11px; color: #666;
}
.ic-footer-meta { color: #999; }
@media (max-width: 1023px) {
  .ic-footer-grid { grid-template-columns: 1fr 1fr; }
  .ic-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .ic-footer { padding-bottom: max(80px, env(safe-area-inset-bottom)); }
  .ic-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .ic-footer-brand { max-width: 100%; }
  .ic-footer-strip { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   Page de détail d'article
   ============================================================ */
.article-page { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.article-page .article-kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 10px;
}
.article-page h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 16px;
}
.article-page .article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.article-page .article-hero {
  width: 100%; aspect-ratio: 16/9; border-radius: 10px;
  overflow: hidden; margin-bottom: 32px; background: var(--paper-alt);
}
.article-page .article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-page .article-content {
  font-family: var(--serif); font-size: 18px; line-height: 1.75;
  color: var(--ink);
}
.article-page .article-content p { margin-bottom: 1.5em; }
.article-page .article-content h2 {
  font-family: var(--sans); font-weight: 700; font-size: 24px;
  margin: 2em 0 0.5em; color: var(--ink);
}
.article-page .article-content blockquote {
  border-left: 3px solid var(--yellow); padding-left: 20px;
  margin: 1.5em 0; font-style: italic; color: var(--ink-2);
}
@media (max-width: 639px) {
  .article-page { padding: 32px 16px; }
  .article-page h1 { font-size: 28px; }
  .article-page .article-content { font-size: 16px; }
  .article-page .article-content h2 { font-size: 20px; }
  .article-page .article-meta { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  padding: 32px 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--rule); color: var(--ink-2);
  text-decoration: none; transition: all 0.2s;
}
.pagination a:hover { background: var(--rule-soft); color: var(--ink); }
.pagination .current {
  background: var(--yellow); border-color: var(--yellow);
  color: var(--black);
}
@media (max-width: 639px) {
  .pagination { gap: 4px; padding: 24px 0; }
  .pagination a, .pagination span { min-width: 32px; height: 32px; font-size: 12px; padding: 0 6px; }
}

/* ============================================================
   Menu mobile
   ============================================================ */
.ic-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ic-mobile-menu.is-open {
  display: block;
  max-height: 400px;
  overflow-y: auto;
}
.ic-mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.ic-mobile-link {
  display: block;
  padding: 14px 24px;
  color: #c9c9c4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ic-mobile-link:last-child {
  border-bottom: none;
}
.ic-mobile-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--yellow);
}
@media (max-width: 1023px) {
  .ic-mobile-menu {
    display: none;
  }
  .ic-mobile-menu.is-open {
    display: block;
  }
}
@media (max-width: 639px) {
  .ic-mobile-link {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ============================================================
   Utilitaires
   ============================================================ */
.tabular { font-variant-numeric: tabular-nums; }
.serif-italic { font-family: var(--serif); font-style: italic; }
.m-section { margin-top: 0; }
