/* ============================================
   RICHARD'S MODDING — docs.css
   Light editorial documentation theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ───────────────────────────────── */
:root {
  --bg:         #FAFAF8;
  --bg2:        #F3F2ED;
  --bg3:        #ECEAE3;
  --border:     #E0DED6;
  --text:       #1C1B18;
  --text2:      #5C5A54;
  --text3:      #9B9890;
  --accent:     #E8511A;
  --accent-h:   #C94412;
  --accent-bg:  #FEF0EA;
  --green:      #2A7A4B;
  --green-bg:   #EDFBF3;
  --blue:       #1A5FE8;
  --blue-bg:    #EAF0FE;
  --unlisted:   #7C3AED;
  --sidebar-w:  272px;
  --toc-w:      220px;
  --hdr-h:      56px;
  --radius:     8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow:     0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.05);
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 24px); }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--bg);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

/* ── Barre de progression ────────────────────── */
#read-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff8c5a);
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── HEADER ──────────────────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hdr-h);
  background: rgba(250,250,248,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
}

.hdr-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 16px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.hdr-logo img { height: 26px; width: auto; }
.hdr-logo-sep { width: 1px; height: 18px; background: var(--border); }
.hdr-logo-docs {
  font-weight: 600; font-size: 13px;
  color: var(--text2); font-family: 'Syne', sans-serif;
}

/* ── Recherche header ────────────────────────── */
.hdr-search {
  flex: 1; max-width: 440px; margin: 0 auto; position: relative;
}
.hdr-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none; width: 15px; height: 15px;
}
.hdr-search input {
  width: 100%; height: 34px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 36px 0 34px;
  font-family: 'Syne', sans-serif; font-size: 13px;
  color: var(--text); outline: none;
  transition: border-color .15s, background .15s;
}
.hdr-search input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(232,81,26,.08); }
.hdr-search input::placeholder { color: var(--text3); }
.hdr-search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text3); background: var(--bg3);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 5px; pointer-events: none;
}
.hdr-search input:focus + .hdr-search-kbd { display: none; }

/* ── Dropdown résultats ──────────────────────── */
.hdr-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 400px; overflow-y: auto;
  display: none; z-index: 200;
}
.hdr-search-results.open { display: block; }

.search-group-title {
  padding: 8px 14px 4px;
  font-family: 'Syne', sans-serif; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text3);
}
.search-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-top: 1px solid var(--border);
  transition: background .1s; text-decoration: none;
}
.search-item:first-child { border-top: none; }
.search-item:hover { background: var(--bg2); }
.search-item-icon { color: var(--text3); width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; }
.search-item-title {
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: 13px; color: var(--text);
}
.search-item-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.search-item-cat { font-size: 11px; color: var(--text3); }
.search-item-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.search-item-tag {
  font-size: 10px; font-family: 'Syne', sans-serif;
  background: var(--bg3); color: var(--text2);
  padding: 1px 6px; border-radius: 10px;
}
.search-empty {
  padding: 20px 14px; font-size: 13px;
  color: var(--text3); text-align: center;
}

/* ── Header nav ──────────────────────────────── */
.hdr-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--text2);
  cursor: pointer; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.hdr-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.hdr-btn svg { width: 14px; height: 14px; }
.hdr-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.hdr-btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; cursor: pointer; color: var(--text2);
  align-items: center;
}
.menu-btn svg { width: 18px; height: 18px; }

/* ── Filtre tags header ───────────────────────── */
.hdr-tags {
  position: fixed; top: var(--hdr-h); left: var(--sidebar-w); right: 0; z-index: 90;
  background: rgba(250,250,248,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
  height: 40px; overflow-x: auto;
  scrollbar-width: none;
}
.hdr-tags::-webkit-scrollbar { display: none; }
.hdr-tags-label {
  font-family: 'Syne', sans-serif; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text3); white-space: nowrap; flex-shrink: 0;
}
.tag-filter {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.tag-filter:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.tag-filter.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-count { font-size: 10px; opacity: .7; }

/* ── LAYOUT ──────────────────────────────────── */
.layout {
  display: flex;
  padding-top: calc(var(--hdr-h) + 40px); /* header + tag bar */
  min-height: 100vh;
}
.layout.no-tags { padding-top: var(--hdr-h); }

/* ── SIDEBAR ─────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: fixed;
  top: calc(var(--hdr-h) + 40px);
  bottom: 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  padding: 16px 0 40px;
  transition: transform .25s;
}
.layout.no-tags .sidebar { top: var(--hdr-h); }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-section { margin-bottom: 4px; }
.sidebar-cat {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px; font-family: 'Syne', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text3);
  cursor: pointer; user-select: none;
}
.sidebar-cat-icon { width: 15px; height: 15px; color: var(--text3); flex-shrink: 0; }
.sidebar-cat-chevron { margin-left: auto; width: 13px; height: 13px; transition: transform .2s; }
.sidebar-cat.open .sidebar-cat-chevron { transform: rotate(90deg); }
.sidebar-articles { display: none; }
.sidebar-articles.open { display: block; }
.sidebar-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 18px 5px 40px;
  font-size: 13.5px; color: var(--text2); text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .12s; gap: 6px;
}
.sidebar-link:hover { color: var(--text); background: var(--bg3); }
.sidebar-link.active {
  color: var(--accent); border-left-color: var(--accent);
  background: var(--accent-bg); font-weight: 600;
}
.sidebar-link-badges { display: flex; gap: 4px; flex-shrink: 0; }
.badge-unlisted {
  font-size: 9px; font-family: 'Syne', sans-serif; font-weight: 700;
  background: rgba(124,58,237,.12); color: var(--unlisted);
  padding: 1px 5px; border-radius: 3px; letter-spacing: .03em;
}
.badge-version {
  font-size: 9px; font-family: 'JetBrains Mono', monospace;
  background: var(--bg3); color: var(--text3);
  padding: 1px 5px; border-radius: 3px;
}

/* ── MAIN ────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0; display: flex;
}
.content {
  flex: 1; min-width: 0;
  padding: 36px 48px 80px;
  max-width: 800px;
}

/* ── TOC ─────────────────────────────────────── */
.toc-wrap {
  width: var(--toc-w); flex-shrink: 0;
  position: sticky; top: calc(var(--hdr-h) + 40px + 24px);
  height: fit-content; max-height: calc(100vh - var(--hdr-h) - 80px);
  overflow-y: auto; padding: 0 16px 40px;
}
.toc-title {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 10px; padding-top: 4px;
}
.toc-list { list-style: none; }
.toc-item a {
  display: block; font-size: 12.5px; color: var(--text2);
  padding: 3px 0 3px 12px; border-left: 1px solid var(--border);
  text-decoration: none; transition: all .12s; line-height: 1.4;
}
.toc-item a:hover, .toc-item a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-item.h3 a { padding-left: 22px; font-size: 11.5px; color: var(--text3); }

/* ── BREADCRUMB ──────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Syne', sans-serif; font-size: 12px;
  color: var(--text3); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── ARTICLE META ────────────────────────────── */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.meta-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
}
.meta-version { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.meta-version svg { width: 11px; height: 11px; }
.meta-time { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.meta-time svg { width: 11px; height: 11px; }
.meta-unlisted { background: rgba(124,58,237,.1); color: var(--unlisted); border: 1px solid rgba(124,58,237,.2); }
.meta-updated {
  font-family: 'Syne', sans-serif; font-size: 11px;
  color: var(--text3); margin-left: auto;
}

/* ── TAGS ────────────────────────────────────── */
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600;
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border);
  cursor: pointer; transition: all .12s; text-decoration: none;
}
.tag:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }
.tag.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── ARTICLE BODY ────────────────────────────── */
.article-body h1 {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  line-height: 1.2; color: var(--text); margin-bottom: 24px;
}
.article-body h2 {
  font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin: 40px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin: 28px 0 10px;
}
.article-body h4 {
  font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700;
  color: var(--text2); margin: 20px 0 8px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; }
.article-body li { margin-bottom: 4px; }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body em { font-style: italic; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(232,81,26,.3); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body blockquote {
  margin: 24px 0; padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-bg); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text2);
}
.article-body blockquote strong { color: var(--accent); font-style: normal; }
.article-body code {
  font-family: 'JetBrains Mono', monospace; font-size: .84em;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; color: var(--accent);
}
.article-body pre { margin: 0; }
.article-body pre code { background: none; border: none; border-radius: 0; padding: 0; color: inherit; font-size: .86rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg2); padding: 10px 14px;
  text-align: left; border-bottom: 2px solid var(--border); color: var(--text2);
}
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: var(--bg2); }

/* ── CODE BLOCK ──────────────────────────────── */
.code-block { margin: 20px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.code-header {
  display: flex; align-items: center;
  background: #181825; padding: 8px 14px;
}
.code-dots { display: flex; gap: 5px; margin-right: 10px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }
.code-lang { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6C7086; text-transform: uppercase; letter-spacing: .06em; }
.code-copy {
  margin-left: auto; background: none; border: 1px solid #313244;
  border-radius: 4px; padding: 3px 10px; font-family: 'Syne', sans-serif;
  font-size: 11px; color: #6C7086; cursor: pointer; transition: all .15s;
}
.code-copy:hover { border-color: #CDD6F4; color: #CDD6F4; }
.code-copy.copied { border-color: #A6E3A1; color: #A6E3A1; }
.article-body pre code {
  display: block; background: #1E1E2E; color: #CDD6F4;
  font-size: .85rem; line-height: 1.65; padding: 20px 24px;
  overflow-x: auto;
}

/* ── PDF VIEWER ──────────────────────────────── */
.pdf-viewer-wrap {
  margin: 20px 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.pdf-toolbar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.pdf-title { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600; color: var(--text2); }
.pdf-open-btn {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 5px;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 600;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.pdf-open-btn:hover { background: var(--accent-h); color: #fff; }
.pdf-open-btn svg { width: 13px; height: 13px; }
.pdf-iframe { width: 100%; height: 720px; display: block; border: none; }

/* ── FEEDBACK ────────────────────────────────── */
.feedback-block {
  margin-top: 48px; padding: 24px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.feedback-title {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--text2); margin-bottom: 14px;
}
.feedback-btns { display: flex; gap: 10px; justify-content: center; }
.feedback-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; transition: all .15s; color: var(--text2);
}
.feedback-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.feedback-btn.yes:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.feedback-btn.no:hover  { border-color: #C0392B; color: #C0392B; background: #fef2f2; }
.feedback-btn.voted-yes { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.feedback-btn.voted-no  { border-color: #C0392B; color: #C0392B; background: #fef2f2; }
.feedback-btn.disabled  { opacity: .5; cursor: default; pointer-events: none; }
.feedback-msg { font-size: 13px; color: var(--text2); margin-top: 12px; }
.feedback-counts { font-size: 11px; color: var(--text3); margin-top: 6px; }

/* ── NAV PREV/NEXT ───────────────────────────── */
.article-nav { display: flex; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-nav-btn {
  flex: 1; padding: 14px 18px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: all .15s;
}
.article-nav-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.article-nav-label { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 4px; }
.article-nav-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); }
.article-nav-btn.next { text-align: right; }

/* ── HOME ────────────────────────────────────── */
.home-hero { padding: 44px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.home-hero h1 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.home-hero p { font-size: 1rem; color: var(--text2); max-width: 480px; }

.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-bottom: 44px; }
.home-card {
  display: block; padding: 20px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: all .15s;
}
.home-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(232,81,26,.08); transform: translateY(-2px); }
.home-card-icon { width: 34px; height: 34px; background: var(--accent-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--accent); }
.home-card-icon svg { width: 17px; height: 17px; }
.home-card h3 { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.home-card p { font-size: 12.5px; color: var(--text2); line-height: 1.5; margin: 0; }
.home-card-count { margin-top: 10px; font-family: 'Syne', sans-serif; font-size: 11px; color: var(--text3); }

/* ── RÉCEMMENT MIS À JOUR ────────────────────── */
.recent-section { margin-bottom: 44px; }
.section-title {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: all .15s;
}
.recent-item:hover { border-color: var(--accent); background: var(--accent-bg); }
.recent-item-icon { color: var(--text3); width: 14px; height: 14px; flex-shrink: 0; }
.recent-item-title { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.recent-item-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.recent-item-cat { font-size: 11px; color: var(--text3); font-family: 'Syne', sans-serif; }
.recent-item-version { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text3); background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; padding: 1px 6px; }
.recent-item-tags { display: flex; gap: 4px; }
.recent-item-tag { font-size: 10px; font-family: 'Syne', sans-serif; background: var(--bg3); color: var(--text2); padding: 1px 6px; border-radius: 10px; }
.recent-item-date { font-size: 11px; color: var(--text3); white-space: nowrap; }

/* ── ÉTATS ───────────────────────────────────── */
.loader { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.loader-spin { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.not-found { padding: 80px 0; text-align: center; }
.not-found h2 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.not-found p { color: var(--text2); font-size: 14px; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1160px) {
  .toc-wrap { display: none; }
  .content { padding: 28px 32px 60px; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed; transform: translateX(-100%);
    top: var(--hdr-h); bottom: 0; z-index: 95;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hdr-tags { left: 0; }
  .menu-btn { display: flex; }
  .content { padding: 20px 18px 60px; }
  .hdr-search { max-width: 180px; }
  .hdr-search-kbd { display: none; }
  .home-hero h1 { font-size: 1.7rem; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .article-nav { flex-direction: column; }
}
@media (max-width: 480px) {
  .home-grid { grid-template-columns: 1fr; }
  .feedback-btns { flex-direction: column; align-items: center; }
}
