/* ── Variables ── */
:root {
  --green:       #166534;
  --green-mid:   #16a34a;
  --green-light: #dcfce7;
  --amber:       #d97706;
  --amber-light: #fef3c7;
  --bg:          #f8faf8;
  --card:        #ffffff;
  --text:        #1a2e1a;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover:0 8px 30px rgba(0,0,0,0.13);
  --max-w:       1200px;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui,-apple-system,'Segoe UI',sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 64px; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link { padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: all .2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: var(--green-light); color: var(--green); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ── Buttons ── */
.btn-primary { display: inline-block; background: var(--green); color: #fff; padding: 0.7rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: background .2s, transform .15s; border: none; cursor: pointer; }
.btn-primary:hover { background: #14532d; text-decoration: none; transform: translateY(-1px); }
.btn-outline { display: inline-block; border: 1.5px solid var(--border); color: var(--text); padding: 0.65rem 1.3rem; border-radius: 8px; font-weight: 500; font-size: 0.9rem; transition: all .2s; background: #fff; cursor: pointer; }
.btn-outline:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-danger { display: inline-block; background: #dc2626; color: #fff; padding: 0.4rem 0.9rem; border-radius: 8px; font-size: 0.82rem; font-weight: 500; transition: background .2s; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; }

/* ══════════════════════════════════════
   HOMEPAGE
══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(160deg, #052e16 0%, #14532d 55%, #15803d 100%);
  color: #fff;
  padding: 6rem 0 0;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,222,128,.15) 0%, transparent 70%);
  top: -150px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem;
  padding-bottom: 4.5rem;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: .3rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.3);
  animation: pulse-dot 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
  50%      { box-shadow: 0 0 0 7px rgba(74,222,128,.08); }
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.025em;
  max-width: 760px;
}
.hero-accent { color: #4ade80; }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.72);
  line-height: 1.7; max-width: 540px;
}
.hero-br { display: none; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; margin-top: .5rem;
}
.hero-btn-main {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #4ade80; color: #052e16;
  font-weight: 800; font-size: 1rem;
  padding: .9rem 1.8rem; border-radius: 10px;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 24px rgba(74,222,128,.4);
}
.hero-btn-main:hover {
  background: #22c55e; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,222,128,.45);
  text-decoration: none; color: #052e16;
}
.hero-btn-ghost {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.7rem; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: background .18s, border-color .18s;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4);
  text-decoration: none; color: #fff;
}
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem; margin-top: .5rem;
}
.hero-pills span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: .3rem .85rem; border-radius: 999px;
  font-size: .8rem; color: rgba(255,255,255,.75);
}
.hero-wave { line-height: 0; margin-top: -1px; }
.hero-wave svg { display: block; width: 100%; height: 64px; }

/* ── Navigation thèmes ── */
.topics-nav { background: #fff; border-bottom: 1px solid var(--border); }
.topics-inner {
  display: flex; gap: .75rem; padding: 1.1rem 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.topics-inner::-webkit-scrollbar { display: none; }
.topic-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1.1rem; border-radius: 999px; white-space: nowrap;
  font-size: .88rem; font-weight: 600; flex-shrink: 0;
  background: var(--chip-bg); color: var(--chip-txt);
  border: 1.5px solid transparent;
  transition: border-color .18s, transform .15s, box-shadow .18s;
}
.topic-chip:hover {
  border-color: var(--chip-border);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  text-decoration: none; color: var(--chip-txt);
}

/* ── Sections ── */
.section { padding: 4.5rem 0; }
.guides-section { background: var(--bg); }
.section-alt { background: #fff; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.section-sub { color: var(--muted); font-size: 1rem; }
.section-link { color: var(--green); font-weight: 600; font-size: .88rem; white-space: nowrap; padding-bottom: .15rem; border-bottom: 1.5px solid #bbf7d0; transition: border-color .18s; }
.section-link:hover { border-color: var(--green); text-decoration: none; }

/* ── Guides : grille éditoriale ── */
.guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.guides-side  { display: flex; flex-direction: column; gap: 1.25rem; }

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--card-color, var(--green));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  text-decoration: none; color: var(--text);
  transition: box-shadow .22s, transform .22s;
}
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }

.guide-card--big { grid-row: span 3; padding: 2rem; }
.guide-card--big h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.guide-card--big p  { color: var(--muted); font-size: .95rem; line-height: 1.65; flex: 1; }

.guide-card--small h3 { font-size: .98rem; font-weight: 700; line-height: 1.35; flex: 1; }

.guide-card-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.guide-icon    { font-size: 1.6rem; }
.guide-icon--sm { font-size: 1.2rem; }
.guide-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px;
}
.guide-star {
  font-size: .7rem; font-weight: 700; color: #92400e;
  background: #fef3c7; padding: .2rem .6rem; border-radius: 999px; margin-left: auto;
}
.guide-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .75rem; border-top: 1px solid var(--border); margin-top: auto;
}
.guide-read { font-size: .78rem; color: var(--muted); }
.guide-cta  { font-size: .85rem; font-weight: 700; color: var(--card-color, var(--green)); }

/* ── Chiffres clés ── */
.numbers-strip { background: var(--green); }
.numbers-inner {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 0; padding: 2.5rem 0;
}
.number-item {
  text-align: center; padding: .5rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.number-item:last-child { border-right: none; }
.number-item strong { display: block; font-size: 2rem; font-weight: 900; color: #4ade80; line-height: 1; margin-bottom: .3rem; }
.number-item span   { font-size: .82rem; opacity: .78; }

/* ── Category cards ── */
.cat-section { background: #f8faf8; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 1.25rem;
  margin-top: 0.25rem;
  justify-content: center;
}
.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
  text-decoration: none;
}
.cat-card--blue  { border-color: #0369a1; }
.cat-card--orange{ border-color: #ea580c; }
.cat-card--yellow{ border-color: #ca8a04; }
.cat-card--green { border-color: #16a34a; }
.cat-card--blue:hover  { border-color: #0369a1; }
.cat-card--orange:hover{ border-color: #ea580c; }
.cat-card--yellow:hover{ border-color: #ca8a04; }
.cat-card--green:hover { border-color: #16a34a; }

.cat-card-icon {
  font-size: 2.5rem;
  padding: 1.5rem 1.5rem 0.75rem;
  line-height: 1;
  text-align: center;
}
.cat-card--blue  .cat-card-icon { background: #e0f2fe; }
.cat-card--orange .cat-card-icon { background: #fff7ed; }
.cat-card--yellow .cat-card-icon { background: #fefce8; }
.cat-card--green  .cat-card-icon { background: #f0fdf4; }

.cat-card-body {
  padding: 1rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  flex: 1;
}
.cat-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}
.cat-card--blue   .cat-card-body h3 { color: #0369a1; }
.cat-card--orange .cat-card-body h3 { color: #c2410c; }
.cat-card--yellow .cat-card-body h3 { color: #a16207; }
.cat-card--green  .cat-card-body h3 { color: #166534; }

.cat-card-body p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.cat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
.cat-card--blue   .cat-card-cta { color: #0369a1; }
.cat-card--orange .cat-card-cta { color: #c2410c; }
.cat-card--yellow .cat-card-cta { color: #a16207; }
.cat-card--green  .cat-card-cta { color: #166534; }

/* ── Article cards ── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  transition: box-shadow .22s, transform .22s;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }
.ac-stripe { height: 4px; flex-shrink: 0; }
.ac-body   { padding: 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ac-cat    { font-size: .75rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.ac-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.ac-body p  { color: var(--muted); font-size: .86rem; line-height: 1.55; flex: 1; }
.ac-footer  { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); padding-top: .75rem; border-top: 1px solid var(--border); margin-top: auto; }
.ac-link    { color: var(--green); font-weight: 700; }

/* ── CTA finale ── */
.home-cta { background: #f0fdf4; border-top: 1px solid #bbf7d0; padding: 5rem 0; }
.home-cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.home-cta-emoji { font-size: 2.5rem; }
.home-cta-inner h2 { font-size: 2rem; font-weight: 800; color: var(--text); }
.home-cta-inner p  { font-size: 1.05rem; color: var(--muted); max-width: 520px; }
.home-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.home-cta .hero-btn-main { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(22,101,52,.25); }
.home-cta .hero-btn-main:hover { background: #14532d; color: #fff; }
.home-cta .hero-btn-ghost {
  background: #fff; color: var(--green); border-color: #bbf7d0;
}
.home-cta .hero-btn-ghost:hover {
  background: var(--green-light); border-color: var(--green); color: var(--green);
}

/* ── Article layout ── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding-top: 3rem; padding-bottom: 4rem; align-items: start; }
.article-header { margin-bottom: 2rem; }
.article-badge { display: inline-block; background: var(--green-light); color: var(--green); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem; }
.article-badge.pillar { background: var(--amber-light); color: var(--amber); }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.25; margin: 0.75rem 0; }
.article-info { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 0.85rem; color: var(--muted); margin: 1rem 0; }
.article-intro { font-size: 1.1rem; color: var(--muted); border-left: 4px solid var(--green); padding-left: 1rem; font-style: italic; }

/* Article body typography */
.article-body { max-width: 800px; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border); color: var(--green); }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 0.5rem; }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0.75rem 0 1.2rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--green); font-weight: 500; text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-body th { background: var(--green); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.article-body td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--green-light); }
.article-body strong { font-weight: 700; color: var(--text); }
.article-footer-share { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); flex-wrap: wrap; }
.article-footer-share span { color: var(--muted); }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-widget h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar-links a { font-size: 0.9rem; color: var(--text); display: block; padding: 0.35rem 0; border-bottom: 1px solid var(--border); transition: color .2s; }
.sidebar-links a:hover { color: var(--green); text-decoration: none; }
.sidebar-links li:last-child a { border-bottom: none; }
.sidebar-cta { background: var(--green-light); border-color: #bbf7d0; }
.sidebar-tip { background: var(--amber-light); border-color: #fde68a; }
.sidebar-tip h3 { color: var(--amber); }
.sidebar-tip p { font-size: 0.88rem; margin-bottom: 1rem; }

/* ── Footer ── */
.site-footer { background: #111827; color: #d1d5db; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.88rem; line-height: 1.6; color: #9ca3af; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: #9ca3af; font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: #86efac; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 1.2rem 0; text-align: center; font-size: 0.82rem; color: #6b7280; }
.footer-bottom .container { padding-top: 0; }

/* ── Admin ── */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; width: 360px; }
.admin-logo { font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 1.5rem; }
.admin-login-card h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-logo { font-size: 1.1rem; font-weight: 700; color: var(--green); }
.admin-header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.admin-content h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.88rem; }
.admin-table th { background: var(--green); color: #fff; padding: 0.75rem 1rem; text-align: left; font-weight: 600; }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8faf8; }
/* ── Dashboard Analytics ── */
.dash-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem 2rem; margin-bottom: 1.75rem; }
.dash-section h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.dash-section h3 { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.dash-section-head h2 { margin-bottom: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1rem; text-align: center; }
.stat-card.green { border-color: #bbf7d0; background: var(--green-light); }
.stat-card.accent { border-color: #fde68a; background: var(--amber-light); }
.stat-card-val { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 0.4rem; }
.stat-card.accent .stat-card-val { color: var(--amber); }
.stat-card-label { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }

/* Graphique barres */
.chart-wrap { margin-top: 0.5rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 28px; position: relative; }
.chart-col { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.chart-val { font-size: 0.65rem; color: var(--muted); margin-bottom: 2px; min-height: 14px; }
.chart-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--green-mid), var(--green)); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s; }
.chart-label { font-size: 0.65rem; color: var(--muted); margin-top: 5px; white-space: nowrap; }

/* Table stats */
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.88rem; }
.art-link { color: var(--text); font-size: 0.88rem; }
.art-link:hover { color: var(--green); }

.admin-actions { display: flex; gap: 0.5rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge.pillar { background: var(--amber-light); color: var(--amber); }
.badge.secondary { background: var(--green-light); color: var(--green); }
.badge.pub { background: #dcfce7; color: #166534; }
.badge.draft { background: #f3f4f6; color: #6b7280; }
.admin-form { display: flex; flex-direction: column; gap: 1.2rem; }
.admin-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.admin-form input, .admin-form select, .admin-form textarea { border: 1.5px solid var(--border); border-radius: 8px; padding: 0.65rem 0.9rem; font-size: 0.95rem; font-family: inherit; transition: border-color .2s; width: 100%; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--green); outline: none; }
.admin-form-full { max-width: 100%; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.form-col-2 { grid-column: span 1; }
.form-col-1 { grid-column: span 1; }
.checkbox-label { flex-direction: row; align-items: center; font-weight: 500; }
.checkbox-label input { width: auto; }
.code-textarea { font-family: 'Menlo','Monaco','Consolas',monospace; font-size: 0.85rem; line-height: 1.6; resize: vertical; min-height: 400px; }
.form-actions { display: flex; gap: 1rem; padding-top: 0.5rem; }
.admin-alert { background: #fee2e2; color: #dc2626; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.admin-success { background: #dcfce7; color: #166534; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; }
.admin-edit { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.admin-edit h2 { margin-bottom: 1.5rem; }

/* ── Responsive ── */
/* ── Blog ── */
.blog-hero { background: linear-gradient(135deg, #14532d, #166534); color: #fff; padding: 3rem 0 2.5rem; }
.blog-hero .breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.75rem; display: flex; gap: 0.5rem; align-items: center; }
.blog-hero .breadcrumb a { color: #fff; text-decoration: underline; }
.blog-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.blog-hero p { opacity: 0.8; font-size: 1rem; }

.blog-layout { padding: 2.5rem 0 4rem; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.filter-btn { display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px solid var(--border); font-size: 0.88rem; font-weight: 500; color: var(--muted); background: #fff; cursor: pointer; transition: all .2s; text-decoration: none; white-space: nowrap; }
.filter-btn:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }

.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; color: var(--text); transition: box-shadow .25s, transform .25s; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }
.blog-card-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.blog-cat-badge { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); background: var(--green-light); padding: 0.2rem 0.65rem; border-radius: 999px; }
.blog-pillar-badge { font-size: 0.73rem; font-weight: 700; color: var(--amber); background: var(--amber-light); padding: 0.2rem 0.65rem; border-radius: 999px; }
.blog-card h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; flex: 1; }
.blog-card p { font-size: 0.88rem; color: var(--muted); flex: 1; }
.blog-card-footer { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--muted); padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: auto; flex-wrap: wrap; }
.blog-cta { color: var(--green); font-weight: 700; margin-left: auto; }

.blog-empty { text-align: center; padding: 4rem 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 0.75rem; border-radius: 8px; border: 1.5px solid var(--border); font-size: 0.9rem; font-weight: 500; color: var(--text); background: #fff; text-decoration: none; transition: all .2s; }
.page-btn:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card--big { grid-row: span 1; }
  .guides-side { display: grid; grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .number-item { padding: .5rem 1.5rem; }
}
@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .guides-side { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero-wave svg { height: 40px; }
  .number-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); padding: 1rem 0; width: 100%; }
  .number-item:last-child { border-bottom: none; }
  .numbers-inner { flex-direction: column; padding: 2rem 1rem; gap: 0; }
}
