/* ==========================================================================
   ServerNews — feuille de style du site public
   Thème sombre par défaut ; thème clair via [data-theme="light"] (bouton de l'en-tête).
   ========================================================================== */

:root {
    color-scheme: dark;
    --fond: #0b0f14;
    --surface: #111821;
    --surface-2: #17202b;
    --surface-3: #1e2935;
    --bordure: #253242;
    --bordure-forte: #33445a;
    --texte: #d6dee8;
    --texte-doux: #9aa8b9;
    --texte-leger: #6c7b8f;
    --titre: #f1f5f9;
    --accent: #2dd4bf;
    --accent-fort: #5eead4;
    --accent-fond: rgba(45, 212, 191, .12);
    --lien: #5eead4;
    --linux: #f5a524;
    --windows: #3b9eff;
    --critique: #ff5c5c;
    --haute: #ff9a3d;
    --moyenne: #f2c94c;
    --basse: #4ade80;
    --neutre: #8b98a9;
    --ok: #4ade80;
    --code-fond: #070a0e;
    --ombre: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
    --rayon: 8px;
    --largeur: 1200px;
    --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "Fira Code", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    --fond: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --surface-3: #e3e9f0;
    --bordure: #d5dde7;
    --bordure-forte: #b9c5d3;
    --texte: #1b2430;
    --texte-doux: #485566;
    --texte-leger: #6b7787;
    --titre: #0b1220;
    --accent: #0d9488;
    --accent-fort: #0f766e;
    --accent-fond: rgba(13, 148, 136, .1);
    --lien: #0f766e;
    --linux: #c27803;
    --windows: #1f6fd1;
    --critique: #d92d2d;
    --haute: #d56a0b;
    --moyenne: #a77a00;
    --basse: #15803d;
    --neutre: #6b7787;
    --ok: #15803d;
    --code-fond: #0f1720;
    --ombre: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
    margin: 0; background: var(--fond); color: var(--texte);
    font: 16px/1.6 var(--sans);
    min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-fort); }
h1, h2, h3, h4 { color: var(--titre); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
code, kbd, pre, .mono { font-family: var(--mono); }
code, kbd { font-size: .88em; background: var(--surface-3); color: var(--accent-fort); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #041311; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }
.conteneur--etroit { max-width: 780px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #041311; padding: .6rem 1rem; }
.lien-evitement:focus { left: 1rem; top: 1rem; }
.principal { flex: 1; padding-bottom: 3rem; }
.vide { color: var(--texte-leger); font-family: var(--mono); font-size: .9rem; }

/* ---------- En-tête ---------- */
.entete {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--fond) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bordure);
}
.entete__barre { display: flex; align-items: center; gap: 1.25rem; height: 62px; }

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--titre); font-family: var(--mono); font-size: 1.15rem; white-space: nowrap; }
.logo:hover { color: var(--titre); }
.logo__icone {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
    background: var(--surface-2); border: 1px solid var(--bordure-forte); color: var(--accent); font-weight: 700; font-size: .9rem;
}
.logo__texte strong { color: var(--accent); font-weight: 700; }
.logo__curseur { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: clignote 1.1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo__curseur { animation: none; } }

.menu { flex: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.menu a {
    display: block; padding: .45rem .75rem; border-radius: 6px; text-decoration: none;
    color: var(--texte-doux); font-weight: 600; font-size: .95rem;
}
.menu a:hover { color: var(--titre); background: var(--surface-2); }
.menu a[aria-current] { color: var(--titre); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--teinte, var(--accent)); }

.entete__outils { display: flex; align-items: center; gap: .5rem; }
.recherche-mini { position: relative; }
.recherche-mini input {
    width: 210px; height: 36px; padding: 0 .75rem 0 2rem; border-radius: 6px;
    border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font: inherit; font-size: .88rem;
}
.recherche-mini input::placeholder { color: var(--texte-leger); font-family: var(--mono); font-size: .82rem; }
.recherche-mini input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-fond); }
.recherche-mini svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--texte-leger); pointer-events: none; }

.bouton-icone {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; cursor: pointer;
    border: 1px solid var(--bordure); background: var(--surface); color: var(--texte-doux);
}
.bouton-icone:hover { color: var(--titre); border-color: var(--bordure-forte); }
.icone-soleil { display: none; }
:root[data-theme="light"] .icone-soleil { display: block; }
:root[data-theme="light"] .icone-lune { display: none; }

.menu-bouton { display: none; }
.menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.menu-bouton__barres::before { position: absolute; top: -6px; }
.menu-bouton__barres::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
    .entete__barre { flex-wrap: wrap; height: auto; padding-top: .6rem; padding-bottom: .6rem; gap: .75rem; }
    .menu-bouton { display: grid; order: 3; }
    .entete__outils { margin-left: auto; }
    .menu { display: none; order: 4; flex-basis: 100%; }
    .menu.ouvert { display: block; }
    .menu ul { flex-direction: column; padding-bottom: .4rem; }
    .recherche-mini input { width: 150px; }
}
@media (max-width: 480px) {
    .recherche-mini { display: none; }
    .menu.ouvert .recherche-mobile { display: block; }
}
.recherche-mobile { display: none; margin: .4rem 0 .6rem; }
.recherche-mobile input { width: 100%; }

/* ---------- Pastilles, badges ---------- */
.pastille {
    display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .5rem; border-radius: 4px;
    font: 600 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
    color: var(--teinte, var(--accent)); background: color-mix(in srgb, var(--teinte, var(--accent)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--teinte, var(--accent)) 35%, transparent);
}
a.pastille:hover { color: var(--teinte, var(--accent)); background: color-mix(in srgb, var(--teinte, var(--accent)) 24%, transparent); }

.produit {
    display: inline-block; padding: .05rem .45rem; border-radius: 4px; text-decoration: none;
    font: 500 .78rem/1.6 var(--mono); color: var(--texte-doux); background: var(--surface-3); border: 1px solid var(--bordure);
}
a.produit:hover { color: var(--titre); border-color: var(--bordure-forte); }
.produit--actif { color: var(--accent-fort); border-color: var(--accent); background: var(--accent-fond); }
.produit small { color: var(--texte-leger); margin-left: .25rem; }

.type { font: 600 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); }
.type::before { content: "#"; color: var(--texte-leger); }

.sev {
    display: inline-flex; align-items: center; gap: .35rem; padding: .08rem .5rem; border-radius: 4px; white-space: nowrap;
    font: 700 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em;
    color: var(--sev); background: color-mix(in srgb, var(--sev) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sev) 40%, transparent);
}
.sev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sev); }
.sev--critique { --sev: var(--critique); }
.sev--haute { --sev: var(--haute); }
.sev--moyenne { --sev: var(--moyenne); }
.sev--basse { --sev: var(--basse); }
.sev--aucune { --sev: var(--neutre); }
.sev__score { font-weight: 500; opacity: .9; }

.exploite {
    display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .5rem; border-radius: 4px;
    font: 700 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em;
    color: #fff; background: var(--critique);
}

.cve { font: 500 .82rem/1.5 var(--mono); color: var(--accent-fort); text-decoration: none; white-space: nowrap; }
a.cve:hover { text-decoration: underline; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .5rem; color: var(--texte-leger); font: .8rem/1.5 var(--mono); }
.meta time { color: var(--texte-leger); }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 6px; cursor: pointer;
    font: 600 .92rem/1.2 var(--sans); text-decoration: none; border: 1px solid var(--accent);
    background: var(--accent); color: #041311;
}
.bouton:hover { background: var(--accent-fort); color: #041311; }
.bouton--secondaire { background: transparent; color: var(--accent-fort); }
.bouton--secondaire:hover { background: var(--accent-fond); color: var(--accent-fort); }

/* ---------- Titres de section façon terminal ---------- */
.section-titre {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--bordure);
}
.section-titre h2 { margin: 0; font: 700 1rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--titre); }
.section-titre h2::before { content: "$ "; color: var(--teinte, var(--accent)); }
.section-titre a { font: .82rem var(--mono); text-decoration: none; white-space: nowrap; }

/* ---------- Accueil ---------- */
.intro { padding-top: 2.2rem; padding-bottom: 1.4rem; }
.intro__ligne { font: .9rem/1.6 var(--mono); color: var(--texte-leger); margin: 0 0 .3rem; }
.intro__ligne span { color: var(--accent); }
.intro h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.intro p { margin: .4rem 0 0; color: var(--texte-doux); max-width: 70ch; }

.alertes { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .alertes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .alertes { grid-template-columns: repeat(4, 1fr); } }
.alerte {
    position: relative; padding: 1rem 1.1rem 1rem 1.2rem; border-radius: var(--rayon);
    background: var(--surface); border: 1px solid var(--bordure); box-shadow: var(--ombre);
    border-left: 3px solid var(--sev, var(--accent));
}
.alerte h3 { font-size: 1.02rem; margin: .4rem 0 .5rem; }
.alerte h3 a { color: var(--titre); text-decoration: none; }
.alerte h3 a::after { content: ""; position: absolute; inset: 0; }
.alerte h3 a:hover { color: var(--accent-fort); }
.alerte .meta { position: relative; z-index: 1; margin: 0; }
.alerte .meta a { position: relative; z-index: 2; }
.alerte__cves { margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }

.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .colonnes { grid-template-columns: 1fr; } }
.colonne { min-width: 0; }
.colonne__entete { display: flex; align-items: center; gap: .6rem; }
.colonne .section-titre h2::before { content: none; }
.colonne__icone { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--teinte); background: color-mix(in srgb, var(--teinte) 15%, transparent); }
.colonne__produits { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }

.grille-bas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
@media (max-width: 1100px) { .grille-bas { grid-template-columns: 1fr; } }

/* ---------- Entrées (liste d'articles) ---------- */
.entrees { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); overflow: hidden; }
.entree { position: relative; display: flex; gap: 1rem; padding: .9rem 1rem; border-top: 1px solid var(--bordure); }
.entree:first-child { border-top: 0; }
.entree:hover { background: var(--surface-2); }
.entree__corps { flex: 1; min-width: 0; }
.entree__titre { font-size: 1rem; line-height: 1.35; margin: 0 0 .3rem; }
.entree__titre a { color: var(--titre); text-decoration: none; }
.entree__titre a::after { content: ""; position: absolute; inset: 0; }
.entree__titre a:hover { color: var(--accent-fort); }
.entree .meta { margin: 0; position: relative; z-index: 1; pointer-events: none; }
.entree .meta a { pointer-events: auto; position: relative; z-index: 2; }
.entree__chapo { margin: .1rem 0 .4rem; color: var(--texte-doux); font-size: .92rem; }
.entree__image { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--surface-3); align-self: flex-start; }
.entree__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .entree__image { width: 84px; } }
.entree--sev { border-left: 3px solid var(--sev); }

/* ---------- Tableau CVE ---------- */
.table-cve { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; font-size: .88rem; }
.table-cve th, .table-cve td { padding: .55rem .75rem; text-align: left; border-top: 1px solid var(--bordure); vertical-align: top; }
.table-cve thead th { border-top: 0; background: var(--surface-2); font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-leger); }
.table-cve tbody tr:hover { background: var(--surface-2); }
.table-cve td a:not(.cve) { color: var(--texte); text-decoration: none; }
.table-cve td a:not(.cve):hover { color: var(--accent-fort); }
.table-cve .num { font-family: var(--mono); white-space: nowrap; }
.table-defile { overflow-x: auto; border-radius: var(--rayon); }
.correctif { font: .75rem var(--mono); white-space: nowrap; }
@media (max-width: 640px) { .table-cve th:nth-child(4), .table-cve td:nth-child(4) { display: none; } }
.correctif--disponible { color: var(--ok); }
.correctif--contournement { color: var(--moyenne); }
.correctif--aucun { color: var(--critique); }
.correctif--inconnu { color: var(--texte-leger); }

/* ---------- Cartes guides ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.carte { position: relative; padding: 1rem; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--bordure); }
.carte:hover { border-color: var(--bordure-forte); }
.carte h3 { font-size: 1rem; margin: .3rem 0 .4rem; }
.carte h3 a { color: var(--titre); text-decoration: none; }
.carte h3 a::after { content: ""; position: absolute; inset: 0; }
.carte p { margin: 0; color: var(--texte-doux); font-size: .9rem; }

/* ---------- En-tête de page (rubrique, archives…) ---------- */
.entete-page { padding: 2rem 0 1.4rem; border-bottom: 1px solid var(--bordure); margin-bottom: 1.8rem; background: linear-gradient(180deg, color-mix(in srgb, var(--teinte, var(--accent)) 7%, transparent), transparent); }
.entete-page h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .2rem 0 .4rem; }
.entete-page h1 .invite { color: var(--teinte, var(--accent)); font-family: var(--mono); font-weight: 500; }
.entete-page p { margin: 0; color: var(--texte-doux); max-width: 75ch; }
.entete-page__produits { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.ariane { font: .8rem var(--mono); color: var(--texte-leger); margin-bottom: .4rem; }
.ariane a { color: var(--texte-doux); text-decoration: none; }
.ariane a:hover { color: var(--accent-fort); }
.flux-lien { display: inline-flex; align-items: center; gap: .3rem; font: .8rem var(--mono); text-decoration: none; }

.mise-en-page { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .mise-en-page { grid-template-columns: 1fr; } }
.lateral { display: grid; gap: 1.5rem; position: sticky; top: 80px; }
@media (max-width: 960px) { .lateral { position: static; } }
.panneau { border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); padding: 1rem; }
.panneau h2 { font: 700 .8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; color: var(--texte-doux); }
.panneau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.panneau li { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; }

/* ---------- Article ---------- */
.lecture__entete { padding-top: 2rem; padding-bottom: 1rem; }
.lecture__entete h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: .5rem 0 .8rem; }
.lecture__chapo { font-size: 1.15rem; line-height: 1.55; color: var(--texte-doux); margin: 0 0 1rem; }
.lecture__infos { font: .82rem var(--mono); color: var(--texte-leger); margin: 0; }
.lecture__infos strong { color: var(--texte-doux); font-weight: 600; }
.lecture__image { margin: 1rem auto 1.6rem; max-width: 1000px; }
.lecture__image img { border-radius: var(--rayon); width: 100%; border: 1px solid var(--bordure); }
.lecture__image figcaption { font-size: .82rem; color: var(--texte-leger); margin-top: .5rem; }
.credit { margin-left: .4rem; opacity: .8; }

/* Fiche technique : bloc façon terminal */
.fiche { margin: 0 0 2rem; border-radius: var(--rayon); border: 1px solid var(--bordure-forte); background: var(--surface); overflow: hidden; box-shadow: var(--ombre); }
.fiche__barre { display: flex; align-items: center; gap: .45rem; padding: .5rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--bordure); font: .78rem var(--mono); color: var(--texte-leger); }
.fiche__barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--bordure-forte); }
.fiche__barre i:nth-child(1) { background: #ff5f57; }
.fiche__barre i:nth-child(2) { background: #febc2e; }
.fiche__barre i:nth-child(3) { background: #28c840; }
.fiche__barre span { margin-left: .4rem; }
.fiche dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.fiche dt, .fiche dd { padding: .6rem .9rem; border-top: 1px solid var(--bordure); margin: 0; }
.fiche dl > :nth-child(1), .fiche dl > :nth-child(2) { border-top: 0; }
.fiche dt { font: 600 .78rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--texte-leger); }
.fiche dd { font-size: .93rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.fiche .valeur-mono { font-family: var(--mono); font-size: .88rem; }
@media (max-width: 560px) {
    .fiche dl { grid-template-columns: 1fr; }
    .fiche dt { padding-bottom: 0; }
    .fiche dd { border-top: 0; padding-top: .2rem; }
}
.jauge { position: relative; width: 120px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.jauge span { position: absolute; inset: 0 auto 0 0; background: var(--sev); border-radius: 3px; }

/* Corps du texte */
.texte { font-size: 1.05rem; line-height: 1.75; }
.texte h2 { font-size: 1.4rem; margin: 2rem 0 .7rem; padding-top: .4rem; }
.texte h2::before { content: "## "; color: var(--accent); font-family: var(--mono); font-weight: 500; font-size: .85em; }
.texte h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.texte h4 { font-size: 1rem; margin: 1.4rem 0 .4rem; }
.texte p, .texte ul, .texte ol { margin: 0 0 1.1rem; }
.texte li { margin-bottom: .3rem; }
.texte li::marker { color: var(--accent); }
.texte blockquote { margin: 1.4rem 0; padding: .6rem 1.1rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--texte-doux); border-radius: 0 6px 6px 0; }
.texte blockquote p:last-child { margin-bottom: 0; }
.texte pre {
    margin: 1.2rem 0 1.4rem; padding: 1rem 1.1rem; overflow-x: auto; border-radius: var(--rayon);
    background: var(--code-fond); color: #c9f2e8; border: 1px solid var(--bordure);
    font-size: .86rem; line-height: 1.6; tab-size: 4;
}
.texte pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.texte figure { margin: 1.6rem 0; }
.texte figure img { border-radius: var(--rayon); border: 1px solid var(--bordure); }
.texte figcaption { font-size: .85rem; color: var(--texte-leger); margin-top: .4rem; }
.texte img { border-radius: 6px; }
.texte table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.texte th, .texte td { border: 1px solid var(--bordure); padding: .45rem .7rem; text-align: left; }
.texte th { background: var(--surface-2); }
.texte hr { border: 0; border-top: 1px dashed var(--bordure-forte); margin: 2rem 0; }

.a-lire { margin-top: 3rem; }
.bandeau-apercu { background: var(--moyenne); color: #1d1600; text-align: center; padding: .6rem 1rem; font-weight: 600; }

/* ---------- Archives ---------- */
.archives { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .archives { grid-template-columns: 1fr; } }
.archives__filtres h2 { font: 700 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-leger); margin: 1.2rem 0 .5rem; }
.archives__filtres h2:first-child { margin-top: 0; }
.filtres, .calendrier { list-style: none; margin: 0; padding: 0; }
.filtres { display: flex; flex-wrap: wrap; gap: .35rem; }
.filtres a, .calendrier a { display: inline-block; padding: .15rem .5rem; border-radius: 4px; text-decoration: none; color: var(--texte-doux); font-size: .88rem; }
.filtres a { border: 1px solid var(--bordure); background: var(--surface); }
.filtres a:hover, .calendrier a:hover { color: var(--titre); }
.filtres a[aria-current], .calendrier a[aria-current] { color: var(--accent-fort); border-color: var(--accent); background: var(--accent-fond); }
.calendrier ul { list-style: none; padding-left: .8rem; margin: .1rem 0 .4rem; }
.archives__mois h2 { font: 700 .85rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); margin: 1.6rem 0 .6rem; }
.archives__mois:first-child h2 { margin-top: 0; }

/* ---------- Recherche ---------- */
.recherche-grande { display: flex; gap: .5rem; margin-top: 1rem; max-width: 640px; }
.recherche-grande input {
    flex: 1; height: 44px; padding: 0 .9rem; border-radius: 6px; font: 1rem var(--mono);
    border: 1px solid var(--bordure-forte); background: var(--surface); color: var(--texte);
}
.recherche-grande input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-fond); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: 2rem 0 0; font-family: var(--mono); font-size: .88rem; }
.pagination a, .pagination span { padding: .35rem .7rem; border-radius: 5px; border: 1px solid var(--bordure); text-decoration: none; color: var(--texte-doux); background: var(--surface); }
.pagination a:hover { color: var(--titre); border-color: var(--bordure-forte); }
.pagination [aria-current] { color: #041311; background: var(--accent); border-color: var(--accent); }

/* ---------- Plan du site ---------- */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.plan h2 { font: 700 .95rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.plan h2 a { color: var(--teinte, var(--titre)); text-decoration: none; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.plan li { margin-bottom: .3rem; font-size: .92rem; }
.plan small { color: var(--texte-leger); font-family: var(--mono); }

/* ---------- Page d'erreur ---------- */
.page-erreur { text-align: center; padding: 4rem 1.25rem; }
.page-erreur__code { font: 700 4.5rem/1 var(--mono); color: var(--accent); margin: 0 0 .5rem; }
.page-erreur__code span { color: var(--critique); }
.page-erreur p { color: var(--texte-doux); }
.page-erreur .bouton { margin: .3rem; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--bordure); background: var(--surface); padding: 2.2rem 0 1.4rem; font-size: .9rem; }
.pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h2 { font: 700 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--texte-leger); margin: 0 0 .7rem; }
.pied p { color: var(--texte-doux); margin: .5rem 0 0; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pied a { color: var(--texte-doux); text-decoration: none; }
.pied a:hover { color: var(--accent-fort); }
.pied__bas { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--bordure); color: var(--texte-leger); font: .78rem var(--mono); }
