/* ───────────────────────────────────────────────────────────
   SEMIRP-MINECRAFT.FR — Global Styles
─────────────────────────────────────────────────────────── */
:root {
  --bg:            #0d0f0b;
  --bg2:           #141710;
  --bg3:           #1e2118;
  --bg-card:       #171a14;
  --accent:        #84cc16;
  --accent-dim:    rgba(132,204,22,.12);
  --accent-glow:   rgba(132,204,22,.25);
  --accent2:       #d97706;
  --text:          #e7e5e4;
  --text2:         #a8a29e;
  --border:        #2a2d24;
  --border-hover:  #3d4235;
  --semirp-color:  #f97316;
  --survie-color:  #84cc16;
  --smp-color:     #60a5fa;
  --guides-color:  #c084fc;
  --serveurs-color:#34d399;
  --mises-a-jour-color: #f43f5e;
  --radius:        10px;
  --radius-lg:     14px;
  --shadow-card:   0 4px 24px rgba(0,0,0,.4);
  --shadow-glow:   0 0 20px rgba(132,204,22,.15);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Reading Progress Bar ──────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #d97706);
  z-index: 999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Header ────────────────────────────────────────────── */
header {
  background: rgba(20,23,16,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

nav { display: flex; gap: .15rem; align-items: center; }
nav a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text2);
  padding: .35rem .7rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
nav a:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
nav a.active { color: var(--accent); }
nav a.nav-live {
  color: #9146ff;
  font-weight: 600;
}
nav a.nav-live:hover { background: rgba(145,70,255,.1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 6px;
  z-index: 200;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,15,11,.97);
  z-index: 90;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text2);
  padding: .75rem 2rem;
  border-radius: 10px;
  transition: color .2s, background .2s;
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.mobile-nav a:hover { color: var(--accent); background: var(--bg3); text-decoration: none; }

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
}

/* ── Back to Top ───────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(132,204,22,.35);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { opacity: .85; }

/* ── Search ─────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.8rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-input::placeholder { color: var(--text2); }
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  pointer-events: none;
  font-size: 1rem;
}
#search-count {
  text-align: center;
  font-size: .82rem;
  color: var(--text2);
  margin-top: .5rem;
  min-height: 1.2em;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text2);
  font-size: .85rem;
  margin-top: auto;
}
footer a { color: var(--text2); transition: color .2s; }
footer a:hover { color: var(--accent); text-decoration: none; }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 20px 4px var(--accent-glow); }
}
.animate-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(132,204,22,.1) 0%, transparent 65%),
              linear-gradient(180deg, #0d1109 0%, var(--bg) 100%);
}
/* pixel grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(132,204,22,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,204,22,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* glow blob */
.hero::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(132,204,22,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  position: relative;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.5px;
}
.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(132,204,22,.4);
}
.hero > p, .hero .hero-sub {
  position: relative;
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero-badges { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; position: relative; }
.badge {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .82rem;
  color: var(--text2);
  transition: border-color .2s, color .2s;
}
.badge:hover { border-color: var(--accent); color: var(--accent); }

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 3rem 1.5rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  border-left: 3px solid var(--accent);
  padding-left: .8rem;
  letter-spacing: -.2px;
}
.section-link { font-size: .85rem; color: var(--text2); transition: color .2s; }
.section-link:hover { color: var(--accent); text-decoration: none; }

/* ── Category Cards ─────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  color: var(--text);
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
}
.category-card:hover { transform: translateY(-3px); text-decoration: none; }
.category-card.semirp   { border-top: 2px solid var(--semirp-color); }
.category-card.semirp:hover   { border-color: var(--semirp-color); box-shadow: 0 8px 28px rgba(249,115,22,.12); }
.category-card.survie   { border-top: 2px solid var(--survie-color); }
.category-card.survie:hover   { border-color: var(--survie-color); box-shadow: 0 8px 28px rgba(132,204,22,.12); }
.category-card.smp      { border-top: 2px solid var(--smp-color); }
.category-card.smp:hover      { border-color: var(--smp-color); box-shadow: 0 8px 28px rgba(96,165,250,.12); }
.category-card.guides   { border-top: 2px solid var(--guides-color); }
.category-card.guides:hover   { border-color: var(--guides-color); box-shadow: 0 8px 28px rgba(192,132,252,.12); }
.category-card.serveurs { border-top: 2px solid var(--serveurs-color); }
.category-card.serveurs:hover { border-color: var(--serveurs-color); box-shadow: 0 8px 28px rgba(52,211,153,.12); }
.category-card.mises-a-jour { border-top: 2px solid var(--mises-a-jour-color); }
.category-card.mises-a-jour:hover { border-color: var(--mises-a-jour-color); box-shadow: 0 8px 28px rgba(244,63,94,.12); }
.category-card .emoji { font-size: 2rem; margin-bottom: .35rem; }
.category-card h3 { font-size: 1rem; font-weight: 700; }
.category-card p { font-size: .8rem; color: var(--text2); line-height: 1.4; flex: 1; }
.category-card .cat-count {
  font-size: .75rem; font-weight: 700;
  color: var(--text2);
  margin-top: .25rem;
}

/* ── Article Cards ──────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: var(--text);
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transition: opacity .3s;
  opacity: .6;
}
.article-card:hover { transform: translateY(-3px); text-decoration: none; color: var(--text); }
.article-card:hover::before { opacity: 1; }
/* category top bar colors */
.article-card[data-cat="semirp"]::before        { background: var(--semirp-color); }
.article-card[data-cat="survie"]::before         { background: var(--survie-color); }
.article-card[data-cat="smp"]::before            { background: var(--smp-color); }
.article-card[data-cat="guides"]::before         { background: var(--guides-color); }
.article-card[data-cat="serveurs"]::before       { background: var(--serveurs-color); }
.article-card[data-cat="mises-a-jour"]::before   { background: var(--mises-a-jour-color); }
/* hover glow */
.article-card[data-cat="semirp"]:hover   { border-color: rgba(249,115,22,.4); box-shadow: 0 6px 24px rgba(249,115,22,.08); }
.article-card[data-cat="survie"]:hover   { border-color: rgba(132,204,22,.4); box-shadow: 0 6px 24px rgba(132,204,22,.08); }
.article-card[data-cat="smp"]:hover      { border-color: rgba(96,165,250,.4); box-shadow: 0 6px 24px rgba(96,165,250,.08); }
.article-card[data-cat="guides"]:hover   { border-color: rgba(192,132,252,.4); box-shadow: 0 6px 24px rgba(192,132,252,.08); }
.article-card[data-cat="serveurs"]:hover { border-color: rgba(52,211,153,.4); box-shadow: 0 6px 24px rgba(52,211,153,.08); }
.article-card[data-cat="mises-a-jour"]:hover { border-color: rgba(244,63,94,.4); box-shadow: 0 6px 24px rgba(244,63,94,.08); }

.article-card .cat-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  width: fit-content;
}
.article-card .cat-tag.semirp { color: var(--semirp-color); }
.article-card .cat-tag.survie { color: var(--survie-color); }
.article-card .cat-tag.smp { color: var(--smp-color); }
.article-card .cat-tag.guides { color: var(--guides-color); }
.article-card .cat-tag.serveurs { color: var(--serveurs-color); }
.article-card .cat-tag.mises-a-jour { color: var(--mises-a-jour-color); }

.article-card h3 { font-size: .98rem; font-weight: 700; line-height: 1.35; }
.article-card p  { font-size: .83rem; color: var(--text2); line-height: 1.55; flex: 1; }
.article-card .read-more { color: var(--accent); font-size: .83rem; font-weight: 700; }
.article-meta { font-size: .72rem; color: var(--text2); }
.article-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .25rem; }

/* hidden by search filter */
.article-card.hidden { display: none; }

/* ── Article Page ────────────────────────────────────────── */
.article-layout {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}
.article-content { min-width: 0; }
.article-header { margin-bottom: 2rem; }
.breadcrumb { font-size: .8rem; color: var(--text2); margin-bottom: 1rem; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text2); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.article-header h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.25; margin-bottom: .75rem; }
.article-meta { font-size: .78rem; color: var(--text2); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }

.article-body { line-height: 1.85; }
.article-body h2 {
  font-size: 1.3rem; font-weight: 800;
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
.article-body h3 { font-size: 1.08rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-body p  { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a  { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.article-body th, .article-body td { padding: .55rem .75rem; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--bg3); font-weight: 700; }
.article-body tr:nth-child(even) { background: rgba(255,255,255,.02); }

/* Info boxes */
.info-box {
  background: rgba(217,119,6,.07);
  border: 1px solid rgba(217,119,6,.35);
  border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.tip-box {
  background: rgba(132,204,22,.07);
  border: 1px solid rgba(132,204,22,.3);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.warning-box {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.3);
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
  padding: .9rem 1.1rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  line-height: 1.6;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { position: sticky; top: 5rem; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text2);
  margin-bottom: 1rem;
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--border); padding: .5rem 0; font-size: .85rem; }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--text2); transition: color .2s; font-size: .85rem; }
.sidebar-card a:hover { color: var(--accent); text-decoration: none; }

/* ── Category Header (gradient) ─────────────────────────── */
.cat-header {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.cat-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .07;
}
.cat-header.cat-semirp   { background: linear-gradient(135deg, rgba(249,115,22,.12), transparent 70%); }
.cat-header.cat-survie   { background: linear-gradient(135deg, rgba(132,204,22,.12), transparent 70%); }
.cat-header.cat-smp      { background: linear-gradient(135deg, rgba(96,165,250,.12), transparent 70%); }
.cat-header.cat-guides   { background: linear-gradient(135deg, rgba(192,132,252,.12), transparent 70%); }
.cat-header.cat-serveurs { background: linear-gradient(135deg, rgba(52,211,153,.12), transparent 70%); }
.cat-header.cat-mises-a-jour { background: linear-gradient(135deg, rgba(244,63,94,.12), transparent 70%); }
.cat-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: .4rem; }
.cat-header p { color: var(--text2); max-width: 600px; }
.cat-header .breadcrumb { margin-bottom: .75rem; }

/* ── Page Header (fallback) ──────────────────────────────── */
.page-header { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.page-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.page-header p { color: var(--text2); }

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--accent); transform: scale(1.02); }
.stat-card .number { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-card .label  { font-size: .75rem; color: var(--text2); margin-top: .4rem; text-transform: uppercase; letter-spacing: .06em; }

/* ── Featured Article ────────────────────────────────────── */
.featured-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .25s, box-shadow .25s;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.featured-article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.featured-article:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
  color: var(--text);
}
.featured-badge {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  display: flex; align-items: center; gap: .4rem;
}
.featured-article h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.featured-article p  { color: var(--text2); font-size: .9rem; line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 8px;
  transition: opacity .2s, transform .2s;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; color: var(--bg); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text2);
  font-size: .82rem;
  font-weight: 600;
  transition: border-color .2s, color .2s;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── 404 ─────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 5rem 1.5rem; }
.not-found h1 { font-size: 5rem; font-weight: 900; color: var(--accent); }
.not-found h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.not-found p  { color: var(--text2); margin-bottom: 2rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .header-inner { padding: .7rem 1rem; }
  .section { padding: 2rem 1rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-tabs { gap: .35rem; }
}
