/* ============================================================
   CryptoHorizon — main.css (thème standalone)
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Variables ── */
:root {
  --bg:        #0B0F1A;
  --bg-card:   #131929;
  --bg-hover:  #1a2238;
  --cyan:      #00D4FF;
  --violet:    #7B2FFF;
  --text:      #F0F2F8;
  --muted:     #7A86A1;
  --dim:       #4A5568;
  --border:    rgba(255,255,255,0.07);
  --border-s:  rgba(255,255,255,0.14);
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-article: 'Lora', serif;
}

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Barre de progression ── */
#ch-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s linear; pointer-events: none;
}

/* ── Ticker ── */
.ch-ticker {
  background: #0D1220; border-bottom: 1px solid var(--border);
  height: 38px; display: flex; align-items: center; overflow: hidden;
}
.ch-ticker-label {
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  padding: 0 20px; flex-shrink: 0; border-right: 1px solid var(--border);
  height: 100%; display: flex; align-items: center;
}
.ch-ticker-inner { overflow: hidden; flex: 1; }
.ch-ticker-track {
  display: flex; gap: 48px; white-space: nowrap; padding-left: 32px;
  animation: ticker 32s linear infinite;
}
.ch-ticker-item {
  font-family: var(--f-display); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ch-ticker-sym { color: var(--muted); }
.ch-ticker-price { color: var(--text); }
.ch-up   { color: #22D3A1; }
.ch-down { color: #F97066; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Nav ── */
.ch-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,15,26,0.95); backdrop-filter: blur(12px);
}
.ch-logo {
  font-family: var(--f-display); font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.ch-logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.ch-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.ch-nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.ch-nav-links a:hover { color: var(--text); }
.ch-nav-cta {
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  color: var(--bg); background: var(--cyan); padding: 8px 20px;
  border-radius: 6px; transition: opacity .2s;
}
.ch-nav-cta:hover { opacity: .85; }

/* ── Boutons ── */
.ch-btn-primary {
  font-family: var(--f-display); font-size: 14px; font-weight: 700;
  color: var(--bg); background: var(--cyan); padding: 12px 28px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s;
}
.ch-btn-primary:hover { opacity: .85; }
.ch-btn-ghost {
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--border-s); padding: 12px 24px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s;
}
.ch-btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* ── Section helpers ── */
.ch-section { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }
.ch-section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 36px;
}
.ch-section-title {
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ch-section-link { font-size: 13px; color: var(--cyan); transition: gap .2s; display: inline-flex; gap: 4px; }
.ch-section-link:hover { gap: 8px; }

/* ── HERO ── */
.ch-hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 48px 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ch-hero-eyebrow {
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.ch-hero-eyebrow::before { content:''; width:24px; height:1px; background:var(--cyan); }
.ch-hero-h1 {
  font-family: var(--f-display); font-size: clamp(38px,5vw,56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.03em; color: var(--text); margin-bottom: 24px;
}
.ch-hero-h1 em { font-style: normal; color: var(--cyan); }
.ch-hero-desc { font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.ch-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card */
.ch-hero-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: block; transition: border-color .2s;
}
.ch-hero-card:hover { border-color: var(--border-s); }
.ch-hero-card-img {
  height: 220px; background: linear-gradient(135deg,#0d1f4a,#1a0f3d);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.ch-hero-card-cat {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.ch-hero-card-body { padding: 24px; }
.ch-card-meta { font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.ch-hero-card-title {
  font-family: var(--f-display); font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25; color: var(--text); margin-bottom: 10px;
}
.ch-hero-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.ch-hero-card-read { font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--cyan); }

/* ── Grille articles ── */
.ch-articles-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px;
}
.ch-article-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, background .2s;
}
.ch-article-card:hover { border-color: var(--border-s); background: var(--bg-hover); }
.ch-article-card.ch-featured { grid-row: span 2; }
.ch-article-img {
  height: 180px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ch-article-card.ch-featured .ch-article-img { flex: 1 1 auto; min-height: 260px; height: auto; }
.ch-img-placeholder {
  font-family: var(--f-display); font-size: 48px; font-weight: 700;
  color: var(--text); opacity: .06; letter-spacing: -.05em; user-select: none;
}
.ch-article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ch-article-cat {
  font-family: var(--f-display); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; align-self: flex-start; margin-bottom: 10px;
}
.ch-article-title {
  font-family: var(--f-display); font-size: 16px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.3; color: var(--text);
  margin-bottom: 8px; flex: 1;
}
.ch-article-card.ch-featured .ch-article-title { font-size: 22px; flex: 0 1 auto; }
.ch-article-card.ch-featured .ch-article-body { flex: 0 0 auto; }
.ch-article-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ch-article-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.ch-article-meta { font-size: 12px; color: var(--dim); }
.ch-article-read { font-size: 12px; color: var(--dim); }

/* ── Catégories ── */
.ch-cats-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.ch-cat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 20px; display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; transition: border-color .2s, background .2s;
}
.ch-cat-card:hover { border-color: var(--border-s); background: var(--bg-hover); }
.ch-cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ch-cat-name { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--text); }
.ch-cat-count { font-size: 12px; color: var(--dim); }

/* ── Newsletter ── */
.ch-newsletter-section { max-width: 1200px; margin: 0 auto 80px; padding: 0 48px; }
.ch-newsletter-inner {
  background: linear-gradient(135deg,rgba(0,212,255,.06),rgba(123,47,255,.06));
  border: 1px solid rgba(0,212,255,.18); border-radius: 20px;
  padding: 56px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.ch-newsletter-h2 {
  font-family: var(--f-display); font-size: 30px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; color: var(--text);
}
.ch-newsletter-h2 span { color: var(--cyan); }
.ch-newsletter-desc { font-size: 15px; color: var(--muted); line-height: 1.6; }
.ch-newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.ch-newsletter-form input {
  background: rgba(255,255,255,.05); border: 1px solid var(--border-s);
  border-radius: 8px; padding: 14px 18px;
  font-family: var(--f-body); font-size: 15px; color: var(--text);
  outline: none; transition: border-color .2s;
}
.ch-newsletter-form input::placeholder { color: var(--dim); }
.ch-newsletter-form input:focus { border-color: var(--cyan); }
.ch-newsletter-form button {
  font-family: var(--f-display); font-size: 14px; font-weight: 700;
  color: var(--bg); background: var(--cyan); border: none;
  border-radius: 8px; padding: 14px; cursor: pointer; transition: opacity .2s;
}
.ch-newsletter-form button:hover { opacity: .85; }
.ch-newsletter-note { font-size: 12px; color: var(--dim); text-align: center; }

/* ── ARTICLE INDIVIDUEL ── */
.ch-article-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 48px 80px;
  display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: start;
}
.ch-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 24px; }
.ch-breadcrumb a { color: var(--muted); transition: color .2s; }
.ch-breadcrumb a:hover { color: var(--cyan); }
.ch-cat-badge {
  display: inline-block; font-family: var(--f-display); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; border: 1px solid; margin-bottom: 20px;
}
.ch-article-h1 {
  font-family: var(--f-display); font-size: clamp(28px,4vw,42px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.15; color: var(--text); margin-bottom: 20px;
}
.ch-article-lead {
  font-size: 18px; color: var(--muted); line-height: 1.65;
  border-left: 3px solid var(--cyan); padding-left: 20px;
  margin-bottom: 32px; font-style: italic;
}
.ch-meta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; margin-bottom: 40px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ch-meta-author { display: flex; align-items: center; gap: 10px; }
.ch-author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,rgba(0,212,255,.3),rgba(123,47,255,.3));
  border: 1px solid var(--border-s);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--cyan);
  flex-shrink: 0;
}
.ch-author-name { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ch-author-role { font-size: 12px; color: var(--dim); }
.ch-meta-sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.ch-meta-item { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ch-meta-share { margin-left: auto; display: flex; gap: 8px; }
.ch-share-btn {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); cursor: pointer;
  background: transparent; transition: border-color .2s, color .2s;
  text-decoration: none; font-family: var(--f-display); font-weight: 700;
}
.ch-share-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* Image hero article */
.ch-article-hero-img {
  height: 380px; border-radius: 16px; border: 1px solid var(--border);
  margin-bottom: 48px; overflow: hidden; position: relative;
}
.ch-article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.ch-article-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#0d1f4a,#1a0f3d);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 120px; font-weight: 700;
  color: var(--text); opacity: .07; letter-spacing: -.05em;
}

/* Corps article */
.ch-article-content { font-family: var(--f-article); font-size: 17px; line-height: 1.85; color: #D8DCE8; }
.ch-article-content p { margin-bottom: 1.5em; }
.ch-article-content h2 {
  font-family: var(--f-display) !important; font-size: 24px !important;
  font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.25 !important;
  color: var(--text) !important; margin: 2.5em 0 .8em !important;
  padding-top: 2em !important; border-top: 1px solid var(--border) !important;
}
.ch-article-content h3 {
  font-family: var(--f-display) !important; font-size: 18px !important;
  font-weight: 700 !important; color: var(--text) !important; margin: 1.8em 0 .6em !important;
}
.ch-article-content strong { font-weight: 600; color: var(--text); }
.ch-article-content a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(0,212,255,.3); text-underline-offset: 3px; }
.ch-article-content a:hover { text-decoration-color: var(--cyan); }
.ch-article-content ul, .ch-article-content ol { padding-left: 0; margin: 1.5em 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ch-article-content li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.7; }
.ch-article-content ul li::before { content:''; position:absolute; left:0; top:11px; width:6px; height:6px; border-radius:50%; background:var(--cyan); opacity:.7; }
.ch-article-content ol { counter-reset: ch-ol; }
.ch-article-content ol li { counter-increment: ch-ol; }
.ch-article-content ol li::before { content:counter(ch-ol)'.'; position:absolute; left:0; font-family:var(--f-display); font-size:13px; font-weight:700; color:var(--cyan); top:3px; }
.ch-article-content blockquote { border-left:3px solid var(--cyan); padding:4px 0 4px 24px; margin:2em 0; }
.ch-article-content blockquote p { font-size:19px; color:var(--muted); font-style:italic; }
.ch-article-content blockquote cite { font-family:var(--f-display); font-size:12px; font-style:normal; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); display:block; margin-top:8px; }

/* Shortcodes */
.ch-key-stats {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:24px; margin:2em 0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:24px;
}
.ch-stat-item { text-align:center; }
.ch-stat-num { font-family:var(--f-display); font-size:28px; font-weight:700; letter-spacing:-.03em; color:var(--cyan); line-height:1.1; margin-bottom:6px; }
.ch-stat-label { font-size:12px; color:var(--muted); line-height:1.4; }
.ch-callout { border-radius:12px; padding:20px 24px; margin:2em 0; display:flex; gap:16px; align-items:flex-start; border:1px solid; }
.ch-callout-icon { font-size:20px; flex-shrink:0; margin-top:2px; }
.ch-callout-label { font-family:var(--f-display); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:6px; }
.ch-callout p { font-family:var(--f-body); font-size:14px; color:var(--muted); line-height:1.6; margin:0; }

/* Tags */
.ch-article-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:48px; padding-top:32px; border-top:1px solid var(--border); }
.ch-tag { font-family:var(--f-display); font-size:12px; font-weight:500; color:var(--muted); border:1px solid var(--border); padding:5px 14px; border-radius:20px; transition:border-color .2s,color .2s; }
.ch-tag:hover { border-color:var(--cyan); color:var(--cyan); }

/* Carte auteur */
.ch-author-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:28px; margin-top:48px; display:flex; gap:20px; }
.ch-author-card-avatar { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,rgba(0,212,255,.3),rgba(123,47,255,.3)); border:1px solid var(--border-s); display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-size:18px; font-weight:700; color:var(--cyan); flex-shrink:0; }
.ch-author-card-name { font-family:var(--f-display); font-size:16px; font-weight:700; color:var(--text); margin-bottom:4px; }
.ch-author-card-role { font-size:13px; color:var(--cyan); margin-bottom:10px; }
.ch-author-card-bio { font-size:14px; color:var(--muted); line-height:1.65; }

/* Sidebar */
.ch-sidebar { position:sticky; top:90px; display:flex; flex-direction:column; gap:24px; }
.ch-sidebar-block { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:20px 22px; }
.ch-sidebar-block-title { font-family:var(--f-display); font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }

/* ToC */
.ch-toc-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.ch-toc-list li a { display:block; font-size:13px; color:var(--muted); padding:6px 10px; border-radius:6px; transition:background .15s,color .15s; }
.ch-toc-list li a:hover { background:rgba(255,255,255,.05); color:var(--text); }
.ch-toc-list li a.ch-toc-active { color:var(--cyan); background:rgba(0,212,255,.07); }

/* Partage sidebar */
.ch-share-list { display:flex; flex-direction:column; gap:8px; }
.ch-share-row { display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid var(--border); border-radius:8px; font-family:var(--f-display); font-size:13px; font-weight:700; color:var(--muted); cursor:pointer; background:transparent; transition:border-color .2s,color .2s; width:100%; text-align:left; text-decoration:none; }
.ch-share-row:hover { border-color:var(--border-s); color:var(--text); }

/* Newsletter sidebar */
.ch-sidebar-newsletter { background:linear-gradient(135deg,rgba(0,212,255,.06),rgba(123,47,255,.06)); border:1px solid rgba(0,212,255,.15); border-radius:12px; padding:22px; }
.ch-sidebar-newsletter h4 { font-family:var(--f-display); font-size:15px; font-weight:700; color:var(--text); margin-bottom:8px; }
.ch-sidebar-newsletter p { font-size:13px; color:var(--muted); line-height:1.55; margin-bottom:14px; }
.ch-sidebar-newsletter input { width:100%; background:rgba(255,255,255,.05); border:1px solid var(--border-s); border-radius:6px; padding:10px 14px; font-family:var(--f-body); font-size:13px; color:var(--text); outline:none; margin-bottom:8px; transition:border-color .2s; }
.ch-sidebar-newsletter input::placeholder { color:var(--dim); }
.ch-sidebar-newsletter input:focus { border-color:var(--cyan); }
.ch-sidebar-newsletter button { width:100%; font-family:var(--f-display); font-size:13px; font-weight:700; color:var(--bg); background:var(--cyan); border:none; border-radius:6px; padding:10px; cursor:pointer; transition:opacity .2s; }
.ch-sidebar-newsletter button:hover { opacity:.85; }

/* Articles liés */
.ch-related { max-width:1200px; margin:0 auto; padding:0 48px 80px; }
.ch-related-title { font-family:var(--f-display); font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid var(--border); padding-bottom:16px; margin-bottom:32px; }
.ch-related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.ch-related-card { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:22px; display:block; transition:border-color .2s,background .2s; }
.ch-related-card:hover { border-color:var(--border-s); background:var(--bg-hover); }
.ch-related-cat { font-family:var(--f-display); font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-bottom:10px; }
.ch-related-post-title { font-family:var(--f-display); font-size:15px; font-weight:700; letter-spacing:-.01em; line-height:1.3; color:var(--text); margin-bottom:12px; }
.ch-related-meta { font-size:12px; color:var(--dim); }

/* 404 */
.ch-404 { max-width:600px; margin:120px auto; padding:0 48px; text-align:center; }
.ch-404-code { font-family:var(--f-display); font-size:120px; font-weight:700; letter-spacing:-.05em; color:var(--border-s); line-height:1; margin-bottom:24px; }
.ch-404-title { font-family:var(--f-display); font-size:32px; font-weight:700; color:var(--text); margin-bottom:16px; }
.ch-404-desc { font-size:17px; color:var(--muted); margin-bottom:36px; }

/* ── Footer ── */
.ch-footer { border-top:1px solid var(--border); margin-top:0; }
.ch-footer-inner { max-width:1200px; margin:0 auto; padding:48px 48px 32px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; }
.ch-footer-logo { font-family:var(--f-display); font-size:18px; font-weight:700; letter-spacing:-.02em; display:flex; align-items:center; gap:8px; color:var(--text); margin-bottom:14px; }
.ch-footer-desc { font-size:14px; color:var(--muted); line-height:1.65; margin-bottom:24px; }
.ch-footer-socials { display:flex; gap:10px; }
.ch-social-btn { width:36px; height:36px; border:1px solid var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; font-family:var(--f-display); font-size:11px; font-weight:700; color:var(--muted); transition:border-color .2s,color .2s; }
.ch-social-btn:hover { border-color:var(--cyan); color:var(--cyan); }
.ch-footer-col-title { font-family:var(--f-display); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:20px; }
.ch-footer-links { list-style:none; display:flex; flex-direction:column; gap:12px; }
.ch-footer-links a { font-size:14px; color:var(--muted); transition:color .2s; }
.ch-footer-links a:hover { color:var(--text); }
.ch-footer-bottom { max-width:1200px; margin:0 auto; padding:20px 48px; border-top:1px solid var(--border); display:flex; justify-content:space-between; font-size:13px; color:var(--dim); }

/* ── Responsive ── */
@media (max-width:960px) {
  .ch-nav { padding:16px 24px; }
  .ch-nav-links { display:none; }
  .ch-hero { grid-template-columns:1fr; padding:48px 24px 56px; gap:40px; }
  .ch-section { padding:0 24px 60px; }
  .ch-articles-grid { grid-template-columns:1fr; }
  .ch-article-card.ch-featured { grid-row:span 1; }
  .ch-cats-grid { grid-template-columns:repeat(2,1fr); }
  .ch-newsletter-section { padding:0 24px; }
  .ch-newsletter-inner { grid-template-columns:1fr; padding:36px 28px; gap:28px; }
  .ch-article-layout { grid-template-columns:1fr; padding:40px 24px 60px; gap:0; }
  .ch-sidebar { position:static; margin-top:48px; }
  .ch-related { padding:0 24px 60px; }
  .ch-related-grid { grid-template-columns:1fr; }
  .ch-footer-inner { grid-template-columns:1fr 1fr; gap:32px; padding:40px 24px 24px; }
  .ch-footer-bottom { padding:16px 24px; flex-direction:column; gap:8px; text-align:center; }
}

/* ============================================================
   AJOUTS v1.1 — Nav mobile, archive, pagination, ToC mobile
   ============================================================ */

/* ── Lien actif dans la nav ── */
.ch-nav-links a.ch-nav-active { color: var(--cyan) !important; }

/* ── Nav right (CTA + hamburger) ── */
.ch-nav-right { display: flex; align-items: center; gap: 12px; }

/* ── Hamburger ── */
.ch-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
}
.ch-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.ch-hamburger.ch-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ch-hamburger.ch-hamburger-open span:nth-child(2) { opacity: 0; }
.ch-hamburger.ch-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile ── */
.ch-mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0;
  background: rgba(11,15,26,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 99;
  padding: 24px 24px 32px; flex-direction: column; gap: 4px;
}
.ch-mobile-menu.ch-mobile-menu-open { display: flex; }
.ch-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ch-mobile-menu ul li a {
  display: block; padding: 12px 16px; font-size: 16px; font-weight: 500;
  color: var(--muted); border-radius: 8px; transition: background .15s, color .15s;
}
.ch-mobile-menu ul li a:hover { background: var(--bg-card); color: var(--text); }

/* ── Date de mise à jour ── */
.ch-updated { font-size: 11px; color: var(--dim); margin-left: 4px; }

/* ── PAGE ARCHIVE (catégorie) ── */
.ch-archive-header {
  border-bottom: 1px solid var(--border);
  padding: 60px 0 48px;
}
.ch-archive-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
}
.ch-archive-badge {
  display: inline-block; font-family: var(--f-display); font-size: 11px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; border: 1px solid;
  margin-bottom: 16px;
}
.ch-archive-h1 {
  font-family: var(--f-display); font-size: clamp(32px,5vw,52px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 16px;
}
.ch-archive-desc { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 640px; margin-bottom: 16px; }
.ch-archive-count { font-family: var(--f-display); font-size: 13px; color: var(--dim); }

/* Grille archive (3 colonnes, premier article en grand) */
.ch-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ch-archive-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, background .2s;
}
.ch-archive-card:hover { border-color: var(--border-s); background: var(--bg-hover); }
.ch-archive-card-big { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.ch-archive-card-img {
  height: 200px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ch-archive-card-big .ch-archive-card-img { height: 100%; min-height: 280px; border-bottom: none; border-right: 1px solid var(--border); }
.ch-archive-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ch-archive-card-title {
  font-family: var(--f-display); font-size: 16px; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.3; color: var(--text);
  margin: 10px 0 8px; flex: 1;
}
.ch-archive-card-big .ch-archive-card-title { font-size: 22px; margin: 12px 0 12px; }
.ch-archive-card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ch-archive-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto;
  font-size: 12px;
}

/* ── Pagination ── */
.ch-pagination { margin-top: 48px; display: flex; justify-content: center; }
.ch-pagination .page-numbers {
  list-style: none; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.ch-pagination .page-numbers li a,
.ch-pagination .page-numbers li span {
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border);
  color: var(--muted); transition: border-color .2s, color .2s, background .2s;
  display: inline-block;
}
.ch-pagination .page-numbers li a:hover { border-color: var(--cyan); color: var(--cyan); }
.ch-pagination .page-numbers li span.current {
  border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,.07);
}
.ch-pagination .page-numbers li a.prev,
.ch-pagination .page-numbers li a.next { color: var(--text); }

/* ── Page vide (catégorie sans articles) ── */
.ch-empty {
  max-width: 500px; margin: 80px auto; padding: 0 24px; text-align: center;
}
.ch-empty-icon { font-size: 56px; margin-bottom: 24px; }
.ch-empty-title { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ch-empty-desc { font-size: 16px; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }

/* ── Sidebar ToC — bouton toggle mobile ── */
.ch-toc-toggle {
  display: none; width: 100%; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px;
  font-family: var(--f-display); font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; text-align: left;
  transition: border-color .2s, color .2s;
}
.ch-toc-toggle:hover { border-color: var(--border-s); color: var(--text); }
.ch-toc-toggle::after { content: ' ▾'; }
.ch-toc-toggle.ch-toc-open::after { content: ' ▴'; }

/* ── Responsive ajouts ── */
@media (max-width: 960px) {
  .ch-hamburger { display: flex; }
  .ch-nav-links { display: none !important; }

  .ch-archive-header-inner { padding: 0 24px; }
  .ch-archive-grid { grid-template-columns: 1fr; }
  .ch-archive-card-big { grid-column: span 1; display: flex; flex-direction: column; }
  .ch-archive-card-big .ch-archive-card-img { height: 200px; border-right: none; border-bottom: 1px solid var(--border); }

  .ch-toc-toggle { display: block; margin-bottom: 8px; }
  .ch-toc-list { display: none; }
  .ch-toc-list.ch-toc-list-open { display: flex; }
}
