/*
 * Composants réutilisables : cadres HUD, header/nav, menu mobile, sous-menus,
 * bannière, ticker, cartes d'articles, widgets, footer.
 * Repris tel quel de la maquette validée (dewebner-homepage-mockup-v2).
 */


      /* ---------- Corner-frame signature element ---------- */
  .frame {
    position: relative;
  }
  .frame::before,
  .frame::after,
  .frame .corner-tl,
  .frame .corner-br {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    transition: width 0.18s ease, height 0.18s ease;
  }
  .frame::before {
    top: -1px; left: -1px;
    border-top: 2px solid var(--frame-color, var(--twitch));
    border-left: 2px solid var(--frame-color, var(--twitch));
  }
  .frame::after {
    bottom: -1px; right: -1px;
    border-bottom: 2px solid var(--frame-color, var(--twitch));
    border-right: 2px solid var(--frame-color, var(--twitch));
  }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }
  .header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
  }
  nav { min-width: 0; }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
  .logo::before { content: "> "; color: var(--twitch); }
  .logo .blink { color: var(--twitch); animation: blink 1.1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  nav ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    list-style: none;
  }
  nav li { position: relative; display: flex; align-items: center; white-space: nowrap; }
  nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 3px;
    white-space: nowrap;
  }
  nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--twitch);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }
  nav a:hover { color: var(--text); }
  nav a:hover::after,
  nav li.current-menu-item > a::after { transform: scaleX(1); }
  nav li.current-menu-item > a { color: var(--text); }

  /* ---------- Menu hamburger (mobile) ---------- */
  .menu-toggle {
    display: none;
    width: 26px; height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
  }
  .menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%; height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle span:nth-child(1) { top: 0; }
  .menu-toggle span:nth-child(2) { top: 9px; }
  .menu-toggle span:nth-child(3) { top: 18px; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* ---------- Sous-menu (fondu + glissement) : classes WordPress natives ---------- */
  nav li.menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 18px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  nav li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav .sub-menu a {
    padding: 7px 8px;
    font-size: 0.75rem;
  }
  nav .sub-menu a::after { display: none; }
  nav .sub-menu a:hover { background: var(--bg-card); }

  /* Sous-sous-menu (niveau 3+) : s'ouvre sur le côté, pas en dessous, pour ne pas
     chevaucher les autres entrées du niveau parent. */
  .sub-menu li.menu-item-has-children > .sub-menu {
    top: -9px;
    left: 100%;
  }

  .search-toggle {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .search-toggle svg { flex-shrink: 0; }
  .search-toggle:hover { border-color: var(--twitch); background: var(--bg-elevated); }

  .search-panel {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
  }
  .search-panel.is-open {
    max-height: 120px;
    opacity: 1;
    padding: 18px 24px;
  }
  .search-panel-inner {
    max-width: 1180px;
    margin: 0 auto;
  }

  .theme-toggle {
    width: 40px; height: 22px;
    background: var(--border);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: none;
  }
  .theme-toggle::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--twitch);
    transition: transform 0.2s ease;
  }
  [data-theme="light"] .theme-toggle::after { transform: translateX(18px); }

  /* ---------- Bannière photo pleine largeur ---------- */
  .banner {
    height: 220px;
    background-image: linear-gradient(180deg, rgba(12,10,16,0.1), rgba(12,10,16,0.85)), url('https://picsum.photos/seed/dewebner-banner/1600/440');
    background-size: cover;
    background-position: center;
  }

  /* ---------- Identité du site ---------- */
  .site-identity {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 22px 24px;
  }
  .site-identity-inner { max-width: 1180px; margin: 0 auto; }
  .site-identity h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
  }
  .site-identity p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
  }

  /* ---------- Ticker "Dernières actus" ---------- */
  .ticker {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  .ticker-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .ticker-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--youtube);
    flex-shrink: 0;
  }
  .ticker-label .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--youtube);
  }
  .ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .ticker-items {
    display: flex;
    width: max-content;
    gap: 40px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-duration, 45s) linear infinite;
  }
  .ticker-items a { flex-shrink: 0; }
  .ticker-items a:hover { color: var(--text); }
  @keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* ---------- Bloc 3 colonnes (article principal / plus lus / tendances) ---------- */
  .top-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 8px;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 22px;
  }
  .top-grid--full { grid-template-columns: 1fr; }
  .side-block { display: flex; flex-direction: column; gap: 14px; }
  .side-block h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .mini-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .mini-item:last-child { border-bottom: none; padding-bottom: 0; }
  .mini-item h4 { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.3; }
  .mini-item .card-foot { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }


  .hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
  }

  .hero-slideshow {
    --frame-color: var(--twitch);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 380px;
  }
  .hero-slides {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
  }
  .hero-slide {
    flex: 0 0 100%;
    min-height: 380px;
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #f3f1f6;
  }
  .hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(12,10,16,0.55);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .hero-nav:hover { background: var(--twitch); }
  .hero-nav--prev { left: 14px; }
  .hero-nav--next { right: 14px; }
  .hero-dots {
    position: absolute;
    bottom: 16px; right: 20px;
    display: flex;
    gap: 6px;
  }
  .hero-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(243,241,246,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .hero-dot.is-active { background: var(--twitch); transform: scale(1.3); }

  .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    width: fit-content;
  }
  .tag--jeux { --tag-color: var(--twitch); }
  .tag--astuces { --tag-color: var(--kick); }
  .tag--tests { --tag-color: var(--youtube); }
  .tag {
    background: color-mix(in srgb, var(--tag-color, var(--twitch)) 14%, transparent);
    color: var(--tag-color, var(--twitch));
    border: 1px solid var(--tag-color, var(--twitch));
  }

  .hero-slide h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    max-width: 20ch;
    margin-bottom: 12px;
    color: #ffffff;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
  }
  .hero-slide p { color: rgba(243,241,246,0.75); max-width: 46ch; font-size: 0.95rem; }
  .hero-slide .card-foot { color: rgba(243,241,246,0.75); }
  .hero-slide .author span:last-child { color: #f3f1f6; }
  .hero-meta {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
  }

  /* ---------- Sidebar ---------- */
  .sidebar { display: flex; flex-direction: column; gap: 18px; }

  .widget {
    --frame-color: var(--kick);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 18px;
  }
  .widget h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .widget h3::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--frame-color);
  }

  .rank-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
  .rank-list li { display: flex; align-items: baseline; gap: 12px; font-size: 0.87rem; }
  .rank-num { font-family: var(--font-mono); color: var(--kick); font-weight: 700; width: 16px; font-size: 0.8rem; }

  .cat-widget-list { display: flex; flex-direction: column; gap: 10px; }
  .cat-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 8px 10px;
    border: 1px solid var(--border);
    color: var(--text-muted);
  }
  .cat-widget-list a:hover { color: var(--text); border-color: var(--twitch); }
  .cat-widget-list .count { color: var(--text-muted); font-size: 0.72rem; }

  /* ---------- Article grid ---------- */
  .section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 24px 56px;
  }
  .widget-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .widget-grid > * {
    grid-column: 1 / -1;
  }
  .widget-grid > .section {
    max-width: none;
    margin: 0;
  }
  .widget-grid > .is-half {
    grid-column: span 1;
  }
  @media (max-width: 860px) {
    .widget-grid { grid-template-columns: 1fr; }
    .widget-grid > .is-half { grid-column: 1 / -1; }
  }
  .section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .section-head h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
  }
  .section-head a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--twitch);
    font-weight: 600;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  /* ---------- "Plus lus" : liste compacte numérotée ---------- */
  .popular-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }
  .popular-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .popular-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--border);
    width: 36px;
    flex-shrink: 0;
  }
  .popular-item h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
  .popular-item .card-foot { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

  /* ---------- "Derniers tests" : score en avant ---------- */
  .test-score-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
  }
  .test-score-circle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--youtube);
    border: 1px solid var(--youtube);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  .section:not(:last-of-type) { padding-bottom: 8px; }

  .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease;
  }
  .card:hover { transform: translateY(-3px); }
  .card:hover.frame::before,
  .card:hover.frame::after {
    width: 16px;
    height: 16px;
    transition: width 0.18s ease, height 0.18s ease;
  }
  .card-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    background: var(--bg-elevated);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 12px;
  }
  .card-thumb .tag { margin: 0; }
  /* Badge de score : reprend l'asset visuel du plugin Game Review Block
     (sprite hexagone, remplissage progressif selon la note sur 10). */
  .score-hex {
    --hex-cell: 46px;
    position: absolute;
    bottom: 12px; right: 12px;
    width: var(--hex-cell);
    height: var(--hex-cell);
    background-image: url('../img/shortscore.svg');
    background-repeat: no-repeat;
    background-size: calc(var(--hex-cell) * 3) calc(var(--hex-cell) * 4);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  }
  .score-hex-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    -webkit-text-stroke: 0.6px #000000;
    paint-order: stroke fill;
  }
  .score-hex-0  { background-position: calc(var(--hex-cell) * -2) calc(var(--hex-cell) * -3); }
  .score-hex-1  { background-position: calc(var(--hex-cell) * -1) 0; }
  .score-hex-2  { background-position: calc(var(--hex-cell) * -2) 0; }
  .score-hex-3  { background-position: 0 calc(var(--hex-cell) * -1); }
  .score-hex-4  { background-position: calc(var(--hex-cell) * -1) calc(var(--hex-cell) * -1); }
  .score-hex-5  { background-position: calc(var(--hex-cell) * -2) calc(var(--hex-cell) * -1); }
  .score-hex-6  { background-position: 0 calc(var(--hex-cell) * -2); }
  .score-hex-7  { background-position: calc(var(--hex-cell) * -1) calc(var(--hex-cell) * -2); }
  .score-hex-8  { background-position: calc(var(--hex-cell) * -2) calc(var(--hex-cell) * -2); }
  .score-hex-9  { background-position: 0 calc(var(--hex-cell) * -3); }
  .score-hex-10 { background-position: calc(var(--hex-cell) * -1) calc(var(--hex-cell) * -3); }
  .score-hex--inline {
    position: static;
    --hex-cell: 30px;
    filter: none;
  }

  .card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .card-body h4 { font-family: var(--font-display); font-size: 1rem; line-height: 1.35; }
  .card-body p { font-size: 0.84rem; color: var(--text-muted); }
  .card-foot {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 4px;
  }
  .author {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .author-avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
  }

  .site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 40px 24px;
  }
  .footer-columns {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .footer-column .widget h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
  }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
  }
  .footer-bottom a { color: var(--text-muted); text-decoration: underline; }
  .footer-bottom a:hover { color: var(--text); }
  .footer-bottom p { margin: 0; }
  .footer-bottom p + p { margin-top: 6px; }

  @media (max-width: 860px) {
    .footer-columns { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .footer-columns { grid-template-columns: 1fr; }
  }

  @media (max-width: 860px) {
    nav { display: none; }
    nav.is-open {
      display: block;
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: var(--bg-elevated);
      border-bottom: 1px solid var(--border);
      padding: 12px 24px 18px;
    }
    nav.is-open ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    nav.is-open li {
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }
    nav.is-open .sub-menu {
      position: static;
      margin-top: 4px;
      opacity: 1;
      transform: none;
      border: none;
      padding-left: 12px;
      pointer-events: auto;
    }
    .menu-toggle { display: block; }
    header { position: sticky; }
    .header-inner { position: relative; }
    .top-grid { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
  }

  /* ---------- Article individuel ---------- */
  .article-hero {
    min-height: 340px;
    background: var(--bg-card);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 40px 24px;
    color: #f3f1f6;
  }
  .article-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
  }
  .article-hero-inner .tag { margin-bottom: 14px; }
  .article-hero-inner h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #ffffff;
    -webkit-text-stroke: 1.5px #000000;
    paint-order: stroke fill;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
  }
  .article-hero-inner .card-foot {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: rgba(243,241,246,0.75);
    justify-content: flex-start;
    gap: 20px;
  }
  .article-hero-inner .author span:last-child { color: #f3f1f6; }

  .article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 64px;
  }

  .entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
  }
  .entry-content > * + * { margin-top: 1.2em; }
  .entry-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.8em;
  }
  .entry-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.6em;
  }
  .entry-content a { color: var(--twitch); text-decoration: underline; text-underline-offset: 2px; }
  .entry-content img { border-radius: var(--radius); }
  .entry-content figure { margin: 0; }
  .entry-content figcaption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
  }
  .entry-content blockquote {
    border-left: 3px solid var(--twitch);
    padding-left: 18px;
    color: var(--text-muted);
    font-style: italic;
  }
  .entry-content ul,
  .entry-content ol { padding-left: 1.4em; }
  .entry-content li + li { margin-top: 0.4em; }
  .entry-content code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
  }
  .entry-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
  }
  .entry-content pre code { background: none; padding: 0; }
  .entry-content hr { border: none; border-top: 1px solid var(--border); }
  .entry-content table { width: 100%; border-collapse: collapse; }
  .entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

  .page-links {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }
  .article-tags .tag {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
  }
  .article-tags .tag:hover { color: var(--text); border-color: var(--twitch); }

  .article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
  }
  .article-nav-link--next { text-align: right; align-items: flex-end; }
  .article-nav-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--twitch);
  }
  .article-nav-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
  }

  .article-comments { margin-top: 40px; }

  @media (max-width: 600px) {
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-link--next { text-align: left; align-items: flex-start; }
  }

  /* ---------- Pagination des archives ---------- */
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1180px;
    margin: 24px auto 56px;
    padding: 0 24px;
  }
  .nav-links .page-numbers {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 1px solid var(--border);
    color: var(--text-muted);
  }
  .nav-links .page-numbers.current {
    color: var(--text);
    border-color: var(--twitch);
  }
  .nav-links a.page-numbers:hover { color: var(--text); border-color: var(--twitch); }
