/* ============================================================
   BIAIS — Actualité débiaisée
   Thème sombre premium / journal moderne
   ============================================================ */

/* L'attribut hidden doit TOUJOURS l'emporter (sinon display:flex/grid
   des composants l'écrase : lightbox ouverte au chargement, bouton
   « charger plus » visible à tort, squelettes affichés). */
[hidden] { display: none !important; }

:root {
  --bg: #0a0d13;
  --bg-2: #0e1219;
  --surface: #131926;
  --surface-2: #1a2233;
  --surface-3: #212b41;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-2: #b6bfd0;
  --text-3: #7d889c;
  --accent: #f0b34a;
  --accent-soft: rgba(240, 179, 74, 0.14);
  --accent-2: #ff6b5e;
  --good: #3ddc97;
  --good-soft: rgba(61, 220, 151, 0.12);
  --warn-soft: rgba(255, 107, 94, 0.12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 85% -100px, rgba(240, 179, 74, 0.07), transparent 60%),
    radial-gradient(900px 450px at -10% 10%, rgba(61, 220, 151, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #16130a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3448; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4760; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 13, 19, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(240, 179, 74, 0.12);
  transition: transform .25s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em;
  color: var(--text);
}
.brand-tag { font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-strong); transform: translateY(-1px); }

/* Barre de recherche */
.search-bar {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: rgba(10, 13, 19, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
}
.search-bar.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-bar input {
  width: 100%; padding: 14px 20px; font-size: 1.05rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-bar input::placeholder { color: var(--text-3); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: all .22s ease; white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #e2932f);
  color: #16130a; box-shadow: 0 8px 24px rgba(240, 179, 74, 0.25);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240, 179, 74, 0.35); color: #16130a; }
.btn-ghost {
  background: var(--surface); color: var(--text-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-back { padding: 9px 16px; font-size: 0.88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 44px 0 8px; }

.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr 1fr;
  min-height: 380px;
}

.hero-media { position: relative; overflow: hidden; min-height: 380px; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.hero-card:hover .hero-media img { transform: scale(1.045); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(10, 13, 19, 0.55));
  pointer-events: none;
}
.hero-media.no-img { background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.hero-media.no-img::after {
  content: 'Biais'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 3.4rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.07);
}

.hero-body { display: flex; flex-direction: column; justify-content: center; padding: 40px; gap: 14px; }

.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.6vw, 2.35rem); line-height: 1.18; }
.hero-title a { color: var(--text); }
.hero-title a:hover { color: var(--accent); }

.hero-excerpt { color: var(--text-2); font-size: 1.02rem; }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.hero-note { font-size: 0.82rem; color: var(--text-3); }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 28px 0 8px; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .2s, transform .2s;
}
.stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat strong { font-family: var(--serif); font-size: 1.65rem; color: var(--accent); }
.stat span { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; }
.stat-accent { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: rgba(240, 179, 74, 0.3); }
.stat-accent strong { color: var(--good); }

/* ============================================================
   FIL D'ACTUALITÉ
   ============================================================ */
main#feed { padding: 36px 0 70px; }

.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ''; width: 6px; height: 26px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.sort-toggle { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.sort-btn {
  padding: 7px 16px; border: none; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--text-3); font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
  transition: all .2s;
}
.sort-btn:hover { color: var(--text-2); }
.sort-btn.active { background: var(--surface-3); color: var(--accent); }

/* Chips thématiques */
.chips {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.chips::-webkit-scrollbar { height: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), #e2932f); border-color: transparent;
  color: #16130a; font-weight: 600;
}
.chip-count {
  font-size: 0.7rem; background: rgba(255, 255, 255, 0.12); padding: 1px 7px;
  border-radius: 999px; color: inherit;
}
.chip.active .chip-count { background: rgba(0, 0, 0, 0.18); }

/* ============================================================
   GRILLE & CARTES
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .6, .2, 1), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(240, 179, 74, 0.35); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }

.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media.no-img::after {
  content: 'Biais'; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 2rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.07);
}

.card-debias {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(13, 18, 26, 0.85); backdrop-filter: blur(8px);
  color: var(--good); font-size: 0.72rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(61, 220, 151, 0.3);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; gap: 10px; }

.card-meta { display: display; align-items: center; gap: 10px; display: flex; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(240, 179, 74, 0.22);
}
.badge-link:hover { background: var(--accent); color: #16130a; }
.badge-warn { background: var(--warn-soft); color: var(--accent-2); border-color: rgba(255, 107, 94, 0.25); }

.meta-date, .meta-reads { font-size: 0.78rem; color: var(--text-3); }

.card-title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.32; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-excerpt { color: var(--text-2); font-size: 0.9rem; flex: 1; }

.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card-reads { font-size: 0.76rem; color: var(--text-3); }
.card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.84rem; font-weight: 600; color: var(--accent);
}
.card-link:hover { gap: 9px; transition: gap .2s; }

/* Squelettes de chargement */
.skeleton-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skeleton-card {
  height: 320px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.load-wrap { text-align: center; margin-top: 38px; }

/* Fin des articles */
.end-feed {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-3); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; max-width: 420px; margin: 6px auto 0;
}
.end-feed span {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ============================================================
   PAGE ARTICLE
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent;
}
.reading-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}

.article { padding: 44px 0 70px; }
.article-container { max-width: 860px; }

.article-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.16; letter-spacing: -0.01em;
  margin-top: 14px;
}

.article-hero { position: relative; margin: 26px 0 8px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }
.article-hero.no-img { display: none; }

.gallery-toggle {
  position: absolute; bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13, 18, 26, 0.85); backdrop-filter: blur(8px);
  color: var(--text); border: 1px solid var(--border-strong);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.gallery-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   ONGLETS
   ============================================================ */
.tabs { margin-top: 30px; }

.tabs-head {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px;
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(19, 25, 38, 0.92);
}

.tab-btn {
  flex: 1; min-width: 120px;
  padding: 11px 16px; border: none; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text-3);
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn.active { background: var(--surface-3); color: var(--text); }
.tab-btn.tab-bias.active { background: var(--warn-soft); color: var(--accent-2); }

.tab-panel { display: none; padding: 26px 4px 10px; }
.tab-panel.active { display: block; animation: fadeUp .45s ease both; }

.tab-flag {
  font-size: 0.84rem; color: var(--text-3); margin-bottom: 18px;
  padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--border-strong);
}
.tab-flag-good { color: var(--good); border-color: rgba(61, 220, 151, 0.3); background: var(--good-soft); }
.tab-flag-kid, .tab-flag-kid { color: var(--accent); border-color: rgba(240, 179, 74, 0.3); background: var(--accent-soft); }

/* Prose */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose p { margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.05em 1.4em; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6em; margin-bottom: 0.5em; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.prose.empty { color: var(--text-3); font-style: italic; }

/* Panneau d'analyse des biais */
.bias-panel { background: linear-gradient(180deg, rgba(255, 107, 94, 0.06), transparent 40%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.bias-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.bias-title { display: flex; align-items: center; gap: 14px; }
.bias-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; color: var(--accent-2);
  background: var(--warn-soft); border: 1px solid rgba(255, 107, 94, 0.25);
}
.bias-title h2 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--text); }
.bias-title p { color: var(--text-3); font-size: 0.85rem; }

/* Barre de partage (sans mention de source) */
.share-bar {
  display: flex; align-items: center; justify-content: center;
  margin-top:	34px; padding:	 14px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}

.share { display: flex; align-items: center; gap: 8px; }
.share-label { color: var(--text-3); font-size: 0.82rem; margin-right: 4px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); transition: all .2s; font-size: 1.1rem; line-height: 1;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share-btn.copied { border-color: var(--good); color: var(--good); }

/* Navigation article */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.article-nav-item {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; transition: all .2s;
}
.article-nav-item:hover { border-color: rgba(240, 179, 74, 0.35); transform: translateY(-2px); }
.article-nav-item.next { text-align: right; }
.nav-label { font-size: 0.78rem; color: var(--text-3); }
.nav-title { font-family: var(--serif); font-size: 0.95rem; color: var(--text-2); line-height: 1.3; }

/* ============================================================
   COMMENTAIRES
   ============================================================ */
.comments { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--border); }
.comments .section-title { font-size: 1.5rem; }

.comment-form { margin-top: 18px; }
.comment-form textarea {
  width: 100%; padding: 16px 18px; resize: vertical; min-height: 96px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.98rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.comment-hint { font-size: 0.78rem; color: var(--text-3); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; }
.form-msg.ok { background: var(--good-soft); color: var(--good); border: 1px solid rgba(61, 220, 151, 0.3); }
.form-msg.err { background: var(--warn-soft); color: var(--accent-2); border: 1px solid rgba(255, 107, 94, 0.3); }

.comment-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.comments-empty { color: var(--text-3); font-size: 0.92rem; }

.comment {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  animation: fadeUp .4s ease both;
}
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border-strong);
  color: var(--accent); font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
}
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.76rem; color: var(--text-3); margin-left: auto; }
.comment-body { color: var(--text-2); font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 7, 11, 0.95); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s ease;
}
.lightbox-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; max-width: min(1100px, 92vw); gap: 8px; border-radius: var(--radius); }
.lightbox-track img { max-height: 82vh; max-width: 92vw; border-radius: 10px; scroll-snap-align: center; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 1.6rem; cursor: pointer; line-height: 1;
  transition: all .2s;
}
.lightbox-close:hover { color: var(--accent-2); border-color: var(--accent-2); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 6px 10px;
}
.lightbox-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface-3); color: var(--text); font-size: 1.2rem;
  transition: all .2s;
}
.lightbox-nav button:hover { background: var(--accent); color: #16130a; }
#lbCount { color: var(--text-2); font-size: 0.85rem; min-width: 40px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 36px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.footer-tag { font-size: 0.8rem; color: var(--text-3); }
.footer-made { color: var(--text-2); font-size: 0.92rem; }
.footer-made a { color: var(--accent); font-weight: 600; }
.footer-made a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px 26px; color: var(--text-3); font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   DIVERS
   ============================================================ */
.error-404 { text-align: center; padding: 90px 24px; }
.error-404 h1 { font-family: var(--serif); font-size: 2.4rem; margin-bottom: 10px; }
.error-404 p { color: var(--text-2); margin-bottom: 24px; }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { animation: fadeUp .55s cubic-bezier(.2, .6, .2, 1) forwards; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 260px; }
  .hero-body { padding: 28px; }
  .grid, .skeleton-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-tag { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .grid, .skeleton-row { grid-template-columns: 1fr; }
  .tab-btn { min-width: 0; font-size: 0.8rem; padding: 10px 10px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; }
  .hero-title { font-size: 1.5rem; }
  .footer-made { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}