/* ============================================================
   C365 — MODERN DARK
   Thème sombre contemporain. Coins arrondis, ombres douces,
   typographie sans-serif, accent bleu.
   Feuille unique du site public.
   ============================================================ */

@import 'fonts.css';

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* ── Surfaces ── */
  --bg:     #0A0C12;
  --bg-2:   #10131B;
  --bg-3:   #161A24;
  --bg-4:   #1E2430;
  --bg-5:   #262D3B;

  /* ── Traits ── */
  --border:   #212734;
  --border-2: #2E3646;
  --border-3: #3C4658;

  /* ── Texte ── */
  --text:   #E9EBF0;
  --text-2: #A5ADBE;
  --text-3: #7A8496;

  /* ── Accents ── */
  --accent:      #5B8CFF;
  --accent-hi:   #85A9FF;
  --accent-solid:    #2E63DE;   /* fond de bouton : blanc lisible dessus (5.3:1) */
  --accent-solid-hi: #4275E8;
  --accent-ink:  #08101F;
  --accent-soft: rgba(91,140,255,.13);
  --accent-line: rgba(91,140,255,.34);

  --green:  #3DDC97;
  --orange: #F7B955;
  --red:    #FF6B6B;
  --violet: #A78BFA;

  /* ── Rayons ── */
  --r-xs:   6px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-full: 9999px;

  /* ── Ombres ── */
  --sh-1: 0 1px 2px rgba(0,0,0,.35);
  --sh-2: 0 4px 16px -4px rgba(0,0,0,.5);
  --sh-3: 0 16px 40px -12px rgba(0,0,0,.65);
  --ring: 0 0 0 3px var(--accent-soft);

  /* ── Typo ── */
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', SFMono-Regular, Consolas, monospace;

  /* ── Layout ── */
  --max-width: 1200px;   /* chrome : barre de nav, pied de page */
  --measure:   760px;    /* colonne de lecture : listes et articles */
  --nav-h: 60px;

  /* ── Alias de compatibilité (styles inline & anciens fichiers) ── */
  --blue:       var(--accent);
  --primary:    var(--accent);
  --acc:        var(--accent);
  --acc2:       var(--accent-hi);
  --acc3:       var(--orange);
  --acc4:       var(--red);
  --font:       var(--sans);
  --fg:         var(--text);
  --fg2:        var(--text-2);
  --fg3:        var(--text-3);
  --fg4:        var(--text-3);
  --line:       var(--border);
  --line2:      var(--border-2);
  --line3:      var(--border-3);
  --surface1:   var(--bg-3);
  --surface:    var(--bg-3);
  --bg1:        var(--bg-2);
  --bg2:        var(--bg-3);
  --bg3:        var(--bg-4);
  --muted:      var(--text-3);
  --danger:     var(--red);
  --success:    var(--green);
  --radius:     var(--r-lg);
  --radius-m:   var(--r-md);
  --radius-s:   var(--r-sm);
  --radius-xs:  var(--r-xs);
  --rad:        var(--r-sm);
  --rad-sm:     var(--r-xs);
  --rad-md:     var(--r-md);
  --rad-lg:     var(--r-lg);
  --rad-xl:     var(--r-xl);
  --shadow-1:   var(--sh-1);
  --shadow-2:   var(--sh-2);
  --glow-g:     none;
  --glow-b:     none;

  color-scheme: dark;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; margin: 0 0 1rem; }
::selection { background: var(--accent-line); color: #fff; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Halo discret en haut de page (remplace la grille + scanlines) */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 420px;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(91,140,255,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; min-height: calc(100vh - 260px); }

/* ── Focus clavier ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ── Utilitaires ── */
.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.narrow    { width: min(calc(100% - 2rem), 860px); margin-inline: auto; }
.divider   { height: 1px; background: var(--border); border: none; margin: 1.5rem 0; }
.eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 .35rem;
}
.visually-hidden, .hv3-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   BOUTONS & CHAMPS (base partagée)
   ============================================================ */
.btn-primary,
.blog-cta-primary,
.button-primary,
.snav-nl-btn,
.nl-inline-btn,
.newsletter-widget-btn,
.blog-404-search-btn,
.about-newsletter-btn,
.article-newsletter-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--accent-solid);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: .6rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
  box-shadow: var(--sh-1);
}
.btn-primary:hover,
.blog-cta-primary:hover,
.button-primary:hover,
.snav-nl-btn:hover,
.nl-inline-btn:hover,
.newsletter-widget-btn:hover,
.blog-404-search-btn:hover,
.about-newsletter-btn:hover,
.article-newsletter-inline-btn:hover {
  background: var(--accent-solid-hi);
  box-shadow: var(--sh-2);
}
.btn-primary:active,
.blog-cta-primary:active,
.button-primary:active { transform: translateY(1px); }

.btn-secondary,
.button-secondary,
.blog-cta-ghost,
.blog-404-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .6rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.btn-secondary:hover,
.button-secondary:hover,
.blog-cta-ghost:hover,
.blog-404-btn-home:hover {
  background: var(--bg-4);
  border-color: var(--border-3);
  color: var(--text);
}

.button-sm { font-size: .8rem; padding: .4rem .8rem; }
.button-link {
  color: var(--accent); font-weight: 600; font-size: .875rem;
  background: none; border: none; padding: 0; text-decoration: none;
}
.button-link:hover { color: var(--accent-hi); text-decoration: underline; }

input[type="text"], input[type="email"], input[type="search"],
input[type="url"], input[type="password"], textarea, select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .6rem .8rem;
  color: var(--text);
  font-size: .9rem;
  width: 100%;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: var(--bg-4);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}
.notice, .error {
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  font-size: .875rem;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text-2);
}
.error { border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); color: #FFB4B4; }

/* ============================================================
   NAVIGATION (partials/nav.php — .snav)
   ============================================================ */
.hv3-skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  padding: .55rem 1.1rem;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.hv3-skip-link:focus { position: fixed; top: 8px; left: 8px; border-radius: var(--r-sm); }

/* Le contenu de l'en-tete s'aligne sur la colonne de lecture : le padding
   lateral se calcule pour que logo et liens tombent exactement sur les bords
   du texte. Pas de conteneur supplementaire dans le balisage. */
.snav {
  height: var(--nav-h);
  background: rgba(10,12,18,.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  /* +1.5rem : .blog-main plafonne a --measure padding compris, son texte
     commence donc 1.5rem plus a l'interieur. On reproduit ce retrait. */
  padding-inline: max(1.5rem, calc((100% - var(--measure)) / 2 + 1.5rem));
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 500;
}
.snav-inner { display: flex; align-items: baseline; gap: 1.5rem; flex: 1; min-width: 0; }

/* ── Logo — texte simple, sans degrade ── */
.snav-logo { display: inline-flex; align-items: baseline; text-decoration: none; flex-shrink: 0; }
.snav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.snav-logo:hover .snav-logo-text { color: var(--accent-hi); }
.snav-logo-img { height: 26px; width: auto; align-self: center; }

/* ── Liens rubriques — discrets, defilables si trop nombreux ── */
.site-subnav {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.site-subnav::-webkit-scrollbar { display: none; }
.site-subnav-link {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-3);
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-subnav-link:hover { color: var(--text); }
.site-subnav-link.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Contrôles droite ── */
.snav-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

.snav-search-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-3);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: color .15s;
}
.snav-search-btn:hover { color: var(--text); background: none; }
.snav-search-btn .kbd-hint {
  font-size: .68rem;
  font-family: var(--mono);
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  padding: .05rem .35rem;
  color: var(--text-3);
}

.snav-theme-btn {
  font-size: .8rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .38rem .6rem;
  transition: color .15s, border-color .15s;
}
.snav-theme-btn:hover { color: var(--text); border-color: var(--border-3); }

/* Dans l'en-tete, la newsletter redevient un lien : un bouton plein bleu
   dans la barre donnait un air de landing page SaaS. */
.snav-nl-btn {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
}
.snav-nl-btn:hover { background: none; box-shadow: none; color: var(--accent-hi); text-decoration: underline; text-underline-offset: 4px; }

/* ── Burger ── */
.snav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .5rem .55rem;
  margin-left: auto;
}
.snav-burger span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--text-2); }

/* ── Drawer mobile ── */
.snav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  z-index: 499;
  overflow-y: auto;
  padding: .5rem;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.snav-drawer[aria-hidden="false"], .snav-drawer.is-open { transform: translateX(0); }
.snav-drawer-links { display: flex; flex-direction: column; gap: 2px; }
.snav-drawer-section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  padding: .9rem 1rem .35rem;
}
.snav-drawer-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  padding: .65rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.snav-drawer-link:hover { color: var(--text); background: var(--bg-3); }
.snav-drawer-link.is-active { color: var(--accent); background: var(--accent-soft); }
.snav-drawer-cat-dot { width: 8px; height: 8px; border-radius: var(--r-full); flex-shrink: 0; }
.snav-drawer-cat-count {
  margin-left: auto; font-size: .7rem; color: var(--text-3);
  background: var(--bg-4); border-radius: var(--r-full); padding: .05rem .45rem;
}

/* ── Overlay recherche ── */
.snav-search-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,8,13,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.snav-search-overlay[aria-hidden="false"] { opacity: 1; pointer-events: all; }
.snav-search-box {
  width: min(640px, calc(100% - 2rem));
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.snav-search-form {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.snav-search-icon { color: var(--text-3); flex-shrink: 0; }
.snav-search-input {
  background: transparent; border: none; outline: none; box-shadow: none;
  font-size: 1rem; color: var(--text); flex: 1; padding: 0; width: auto;
}
.snav-search-input:focus { background: transparent; box-shadow: none; border: none; }
.snav-search-input::placeholder { color: var(--text-3); }
.snav-search-submit {
  background: var(--bg-4); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: .35rem .5rem;
  color: var(--text-3);
  transition: color .15s, border-color .15s, background .15s;
}
.snav-search-submit:hover { color: var(--text); background: var(--bg-5); border-color: var(--border-3); }
.snav-search-hint {
  font-size: .74rem; color: var(--text-3);
  padding: .65rem 1rem; margin: 0;
  display: flex; gap: .75rem; flex-wrap: wrap;
  background: var(--bg-3);
}
.snav-search-hint kbd, .kbd-keys kbd, .kbd-help-hint kbd {
  font-family: var(--mono); font-size: .7rem;
  background: var(--bg-5); border: 1px solid var(--border-2);
  border-radius: var(--r-xs); padding: .05rem .35rem; color: var(--text-2);
}

/* ============================================================
   PIED DE PAGE — aligne sur la colonne de lecture
   ============================================================ */
.blog-footer {
  border-top: 1px solid var(--border);
  background: none;
  position: relative;
  z-index: 1;
  margin-top: 5rem;
}
.blog-footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-footer-brand-block { display: flex; flex-direction: column; gap: .4rem; }
.blog-footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  width: fit-content;
}
.blog-footer-brand:hover { color: var(--accent-hi); }
.footer-brand-desc {
  font-size: .95rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

/* Deux rangees de liens en ligne, plutot qu'un plan du site en colonnes */
.blog-footer-links,
.blog-footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.35rem;
}
.blog-footer-links a,
.blog-footer-cats a {
  font-size: .9rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
}
.blog-footer-cats a { font-size: .85rem; color: var(--text-3); }
.blog-footer-links a:hover,
.blog-footer-cats a:hover { color: var(--accent-hi); }

.blog-footer-copy-row {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
  font-size: .8rem;
  color: var(--text-3);
}
.blog-footer-copy { color: var(--text-3); margin: 0; }

/* ============================================================
   LISTE D'ARTICLES — mise en page editoriale
   Une seule colonne, entrees separees par un filet fin. Pas de
   cartes : on lit un carnet, on ne scanne pas un portail.
   ============================================================ */
.post-grid,
.featured-grid,
.category-grid,
.home-list,
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: none;
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.post-card,
.home-list-row,
.blog-list-entry {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 2.25rem 0;
  position: relative;
  overflow: visible;
  transition: none;
}
.post-card:hover,
.home-list-row:hover,
.blog-list-entry:hover {
  background: none;
  transform: none;
  box-shadow: none;
}
.post-card::before,
.home-list-row::before,
.blog-list-entry::before { content: none; }
.post-card-accent { display: none; }

/* ── Vignette : petite, a droite, ne vole pas la vedette au titre ── */
.post-card-image,
.home-list-row-thumb-wrap,
.blog-list-entry-img-wrap {
  display: block;
  width: 148px;
  flex: 0 0 148px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-4);
  order: 2;
}
.post-card-image img,
.home-list-row-thumb,
.blog-list-entry-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .25s ease;
}
.post-card:hover .post-card-image img,
.home-list-row:hover .home-list-row-thumb,
.blog-list-entry:hover .blog-list-entry-img { transform: scale(1.04); }

/* Sans image : on n'affiche pas de bloc vide, le texte prend toute la largeur */
.post-card-image-placeholder,
.home-list-row-thumb-ph {
  display: none;
}
.post-card-placeholder-initial {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-2);
}

/* ── Ligne haute : rubrique + disponibilité ── */
.post-card-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.05rem 0;
}
.post-card-cat-chip,
.home-list-row-cat,
.blog-list-entry-cat-tag,
.home-hero-cat,
.article-cat-link {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .18rem .55rem;
  border-radius: var(--r-full);
  border: 1px solid currentColor;
  color: var(--accent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s;
}
/* Les couleurs de rubrique viennent de la base et sont calibrées pour un
   fond clair : on les éclaircit pour rester lisibles sur fond sombre. */
.post-card-cat-chip,
.home-list-row-cat,
.blog-list-entry-cat-tag,
.home-hero-cat,
.article-cat-link,
.article-header-cat-badge,
.serie-cat { filter: brightness(1.3) saturate(.95); }

.post-card-cat-chip:hover,
.home-hero-cat:hover,
.article-cat-link:hover { filter: brightness(1.55) saturate(.95); }

.post-card-avail {
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
}
.post-card-avail.is-released  { color: var(--green); }
.post-card-avail.is-announced { color: var(--orange); }

/* ── Corps de l'entree ── */
.post-card-body,
.home-list-row-body,
.blog-list-entry-body {
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.blog-list-entry-inner { display: block; text-decoration: none; }

.post-card-title,
.home-list-row-title,
.blog-list-entry-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.022em;
  color: var(--text);
  margin: 0;
  transition: color .15s;
}
.post-card-title a { color: inherit; text-decoration: none; transition: color .15s; }
.post-card:hover .post-card-title a,
.home-list-row:hover .home-list-row-title,
.blog-list-entry:hover .blog-list-entry-title { color: var(--accent-hi); }

.post-card-excerpt,
.home-list-row-excerpt,
.blog-list-entry-excerpt {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ── Ligne basse ── */
.post-card-footer {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1.05rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.012);
}
.post-card-date, .post-card-stat,
.home-list-row-date, .blog-list-entry-date {
  font-size: .75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.post-card-date svg, .post-card-stat svg { color: var(--text-3); flex-shrink: 0; }

.home-list-row-meta,
.blog-list-entry-dateline {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  flex-wrap: wrap;
}
/* La date suit la rubrique au lieu d'etre repoussee au bout de la ligne :
   en colonne unique, la ligne est large et l'ecart devenait absurde. */
.home-list-row-date, .blog-list-entry-date { margin-left: 0; }
.home-list-row-link { text-decoration: none; display: block; }

/* ============================================================
   ACCUEIL
   ============================================================ */
.blog-main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.blog-col-main { width: 100%; }

/* ── Héro ── */
.home-hero {
  padding: 4rem 0 2.5rem;
}
.home-hero-tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.home-hero-sep { color: var(--text-3); }
.home-hero-link { text-decoration: none; display: block; }
.home-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
  transition: color .15s;
}
.home-hero-link:hover .home-hero-title { color: var(--accent-hi); }
.home-hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.home-hero-meta { font-size: .85rem; color: var(--text-3); margin: 0; }
.home-hero-img-wrap {
  display: block;
  margin: 0 0 3rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.home-hero-img { width: 100%; height: auto; display: block; border: none; }

.home-list::before { content: none; }
.blog-intro-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.blog-flux-empty-inline { color: var(--text-3); font-size: .9rem; padding: 2rem 0; }

/* ── En-tête de section ── */
.sec-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0 .25rem;
}
.sec-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.sec-rule { flex: 1; height: 1px; background: var(--border); }
.sec-count { font-size: .78rem; color: var(--text-3); }

/* ============================================================
   PAGINATION
   ============================================================ */
.blog-pg, .blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  gap: .75rem;
}
.blog-pg-arrow {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: .5rem .95rem;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.blog-pg-arrow:hover { color: var(--text); border-color: var(--border-3); background: var(--bg-4); }
.blog-pg-arrow.is-disabled { color: var(--text-3); pointer-events: none; opacity: .45; }

.blog-pg-list { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.blog-pg-num {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  min-width: 34px;
  padding: .4rem .6rem;
  display: block;
  text-align: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.blog-pg-num:hover { background: var(--bg-3); color: var(--text); }
.blog-pg-num.is-current {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-hi);
}
.blog-pg-ellipsis { font-size: .84rem; color: var(--text-3); padding: .4rem .35rem; display: block; }

/* ============================================================
   BOUTON RETOUR HAUT & AIDE CLAVIER
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  box-shadow: var(--sh-2);
  transition: color .15s, border-color .15s, transform .15s, background .15s;
}
.scroll-top-btn:hover { color: var(--text); background: var(--bg-4); border-color: var(--border-3); transform: translateY(-2px); }

.kbd-help {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(6,8,13,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.kbd-help[hidden] { display: none; }
.kbd-help-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 1.5rem;
  width: min(440px, calc(100% - 2rem));
}
.kbd-help-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.kbd-help-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .6rem; }
.kbd-help-list li { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-2); }
.kbd-keys { display: flex; gap: .25rem; }
.kbd-help-hint { font-size: .78rem; color: var(--text-3); margin: 0; }

/* ============================================================
   EN-TÊTES DE PAGE (catégorie, recherche, série…)
   ============================================================ */
.category-hero, .page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  position: relative; z-index: 1;
}
.category-hero-inner, .page-hero-inner { max-width: var(--max-width); margin: 0 auto; }

.cat-page-header, .simple-header {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.blog-crumb, .article-breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.blog-crumb a, .article-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.blog-crumb a:hover, .article-breadcrumb a:hover { color: var(--accent); }
.blog-crumb-sep, .article-breadcrumb svg { color: var(--text-3); }
.blog-crumb-current { color: var(--text-2); }

.category-eyebrow, .page-eyebrow, .blog-cat-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.category-title, .page-title, .cat-page-title, .simple-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.category-count-badge {
  font-size: .8rem; font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-full);
  padding: .15rem .65rem;
}
.category-desc, .page-desc, .cat-page-desc, .simple-lead {
  font-size: 1rem; color: var(--text-2); line-height: 1.7; max-width: 62ch; margin: 0 0 .5rem;
}
.cat-page-count { font-size: .82rem; color: var(--text-3); margin: 0; }

/* ============================================================
   RECHERCHE
   ============================================================ */
.search-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  max-width: 640px;
  padding: .25rem .3rem .25rem 1.1rem;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.search-form::before { content: none; }
.search-input {
  background: transparent; border: none; outline: none; box-shadow: none;
  font-size: .95rem; color: var(--text); flex: 1; padding: .55rem 0; min-width: 0; width: auto;
}
.search-input:focus { background: transparent; box-shadow: none; border: none; }
.search-input::placeholder { color: var(--text-3); }
.search-form .blog-cta-ghost { border-radius: var(--r-full); padding: .5rem 1.05rem; }

.blog-cta { display: inline-flex; text-decoration: none; }

.search-suggest {
  position: absolute;
  top: calc(100% + .4rem); left: 0; right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  list-style: none; padding: .3rem; margin: 0;
  z-index: 100;
  overflow: hidden;
}
.search-suggest-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .75rem;
  border-radius: var(--r-sm);
  font-size: .875rem; color: var(--text-2);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.search-suggest-item:hover,
.search-suggest-item[aria-selected="true"] { background: var(--bg-3); color: var(--text); }
.search-suggest-meta { color: var(--text-3); font-size: .75rem; margin-left: auto; }

.search-empty-state { padding: 2.5rem 0; }
.search-empty-message { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.search-empty-hint { font-size: .9rem; color: var(--text-3); margin-bottom: 1.25rem; }

.blog-cat-simple-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-cat-simple-chip {
  font-size: .8rem; font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  padding: .35rem .9rem;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
}
.blog-cat-simple-chip:hover { color: var(--text); background: var(--bg-4); border-color: var(--border-3); }

mark { background: rgba(247,185,85,.2); color: var(--orange); border-radius: 3px; padding: 0 3px; }

.search-results { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.25rem; }
.search-result-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
  transition: border-color .18s, background .18s;
}
.search-result-card::before { content: none; }
.search-result-card:hover { background: var(--bg-3); border-left-color: var(--accent); }

/* ============================================================
   PAGE ARTICLE
   ============================================================ */
.article-main { padding: 0 1.5rem 5rem; }

/* Colonne de lecture unique et centree. La grille a deux colonnes laissait
   une gouttiere de 290px pour un simple encart newsletter, et poussait le
   texte hors de sa largeur confortable. */
.article-columns {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#readingProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 999; transition: width .1s linear;
}

/* ── En-tête ── */
.article-header {
  margin-bottom: 2rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-header-meta-top {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-header-cat-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--art-cc, var(--accent));
  background: color-mix(in srgb, var(--art-cc, var(--accent)) 14%, transparent);
  border: 1px solid var(--art-cc, var(--accent));
  border-radius: var(--r-full);
  padding: .18rem .6rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.article-header-cat-badge:hover { background: var(--art-cc, var(--accent)); color: #fff; }
.article-header-new {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--green);
  border-radius: var(--r-full);
  padding: .18rem .55rem;
}
.article-header-read, .article-header-date { font-size: .82rem; color: var(--text-3); }
.article-meta-sep { color: var(--text-3); }
.article-title {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}
.article-cat-link { display: inline-block; margin-bottom: .85rem; }
.article-meta {
  font-size: .82rem; color: var(--text-3);
  display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: .75rem;
}

/* ── Visuel de couverture ── */
.article-cover {
  margin: 0 0 2rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh-2);
}
.article-cover img, .article-cover picture { display: block; width: 100%; height: auto; }
.article-cover-caption {
  font-size: .78rem; color: var(--text-3);
  padding: .6rem .9rem;
  background: var(--bg-2);
  margin: 0;
}

/* ── Carrousel ── */
.article-carousel {
  margin: 0 0 2rem;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-carousel-track-wrap { position: relative; overflow: hidden; }
.article-carousel-track { display: flex; transition: transform .35s ease; }
.article-carousel-slide { min-width: 100%; }
.article-carousel-slide img { width: 100%; height: auto; display: block; }
.article-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(10,12,18,.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  color: var(--text);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.article-carousel-btn:hover { background: var(--bg-4); border-color: var(--border-3); }
.article-carousel-prev { left: .75rem; }
.article-carousel-next { right: .75rem; }
.article-carousel-counter {
  position: absolute; bottom: .75rem; right: 1rem;
  font-size: .72rem; color: var(--text-2);
  background: rgba(10,12,18,.75);
  border-radius: var(--r-full);
  padding: .2rem .6rem;
}
.article-carousel-thumbs { display: flex; gap: .35rem; padding: .5rem; background: var(--bg-2); }
.article-carousel-thumb {
  flex: 1; border: 1px solid transparent; padding: 0; cursor: pointer;
  opacity: .55; border-radius: var(--r-xs); overflow: hidden;
  background: var(--bg-4);
  transition: opacity .15s, border-color .15s;
}
.article-carousel-thumb.is-active { opacity: 1; border-color: var(--accent); }
.article-carousel-thumb:hover { opacity: .85; }
.article-carousel-thumb img { width: 100%; height: 48px; object-fit: cover; display: block; }

/* ── Colonnes ── */
.article-body { min-width: 0; display: flex; flex-direction: column; }
.article-body-text { min-width: 0; }

/* ── Sommaire — encart discret et repliable, place avant le texte ──
   L'aside vient apres .article-body-text dans le DOM (utile pour les
   lecteurs d'ecran, qui atteignent d'abord le contenu) ; `order` le
   remonte visuellement sans toucher a l'ordre du document. */
.article-toc-sidebar {
  order: -1;
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
  border-left: 2px solid var(--border-2);
  background: none;
}
.article-toc-details { padding: 0 0 0 1.15rem; }
.article-toc-heading {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  transition: color .15s;
}
.article-toc-heading::-webkit-details-marker { display: none; }
.article-toc-heading::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  transition: transform .2s ease;
}
.article-toc-details[open] .article-toc-heading::after {
  transform: rotate(-135deg) translate(-2px,-2px);
}
.article-toc-heading:hover { color: var(--text-2); }

.article-toc-list {
  list-style: none; padding: 0; margin: .85rem 0 0;
  display: flex; flex-direction: column; gap: .1rem;
}
.article-toc-list a {
  font-size: .9rem; color: var(--text-3);
  text-decoration: none; line-height: 1.5; display: block;
  padding: .25rem 0;
  transition: color .15s;
}
.article-toc-list a:hover { color: var(--text); }
.article-toc-list a.is-active { color: var(--accent); }

/* ── Série ── */
.article-series {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
}
.article-series-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .45rem;
}
.article-series-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.article-series-item { display: flex; align-items: baseline; gap: .7rem; font-size: .9rem; color: var(--text-2); }
.article-series-item a { color: var(--accent); text-decoration: none; }
.article-series-item a:hover { color: var(--accent-hi); text-decoration: underline; }
.article-series-item.is-current { color: var(--text); font-weight: 600; }
.article-series-num {
  font-family: var(--mono); font-size: .72rem; color: var(--text-3);
  min-width: 1.2rem; text-align: right; flex-shrink: 0;
}

/* ── Contenu rédactionnel ── */
.article-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); }
.article-content h2, .article-content h3, .article-content h4 {
  color: var(--text); letter-spacing: -.02em; margin: 2.5rem 0 .85rem; scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.article-content h2 { font-size: 1.6rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.05rem; }
.article-content p { margin-bottom: 1.15rem; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-content a:hover { color: var(--accent-hi); }
.article-content strong { color: var(--text); font-weight: 700; }

.article-content code {
  font-family: var(--mono);
  font-size: .875em;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  padding: .12em .4em;
  color: var(--accent-hi);
}
.article-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-family: var(--mono);
  font-size: .875rem;
  line-height: 1.7;
  position: relative;
}
.article-content pre code { background: none; border: none; padding: 0; color: var(--text-2); }
.article-content ul, .article-content ol { color: var(--text-2); padding-left: 1.4rem; margin-bottom: 1.15rem; }
.article-content li { margin-bottom: .4rem; }
.article-content li::marker { color: var(--text-3); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  color: var(--text-2);
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img {
  max-width: 100%;
  display: block;
  margin: 1.75rem 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: table;
}
.article-content th {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-2); background: var(--bg-3);
  border-bottom: 1px solid var(--border-2);
  padding: .7rem .9rem; text-align: left;
}
.article-content td {
  border-bottom: 1px solid var(--border);
  padding: .7rem .9rem; font-size: .92rem; color: var(--text-2);
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tbody tr:hover td { background: var(--bg-2); }
.article-content hr { border: none; height: 1px; background: var(--border); margin: 2.5rem 0; }

.article-code-copy {
  position: absolute; top: .55rem; right: .55rem;
  font-size: .7rem; font-weight: 600;
  background: var(--bg-4); color: var(--text-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  padding: .25rem .6rem;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.article-code-copy:hover { color: var(--text); background: var(--bg-5); }
.article-code-copy.is-copied { color: var(--green); border-color: var(--green); }

/* ── Sources ── */
.article-sources {
  margin: 2.5rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.article-sources-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: .75rem;
}
.article-sources-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.article-source-pill {
  font-size: .8rem; color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  padding: .3rem .8rem;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
a.article-source-pill:hover { border-color: var(--accent-line); color: var(--accent-hi); background: var(--accent-soft); }

/* ── CTA newsletter dans l'article ── */
.article-newsletter-inline {
  display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  padding: 1.25rem 1.35rem;
  margin: 2.5rem 0;
}
.article-newsletter-inline-icon { font-size: 1.4rem; flex-shrink: 0; }
.article-newsletter-inline-body {
  flex: 1; display: flex; flex-direction: column; gap: .2rem;
  font-size: .875rem; color: var(--text-2); min-width: 0;
}
.article-newsletter-inline-body strong { color: var(--text); font-size: 1rem; font-weight: 700; }

/* ── Actions article ── */
.article-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.article-like-btn {
  display: flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; color: var(--text-3);
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  padding: .45rem 1rem;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.article-like-btn:hover, .article-like-btn.is-liked {
  color: var(--red); border-color: rgba(255,107,107,.45); background: rgba(255,107,107,.08);
}
.article-like-btn.is-liked .like-icon-heart { fill: currentColor; }
.like-count, .like-label { color: inherit; font-size: .8rem; }
.article-action-link {
  font-size: .84rem; font-weight: 600; color: var(--text-3);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color .15s;
}
.article-action-link:hover { color: var(--accent); }
.share-confirm { color: var(--green); font-size: .78rem; }

/* Cachet « lu » — discret */
.article-stamp-lu {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green);
  background: rgba(61,220,151,.1);
  border: 1px solid rgba(61,220,151,.35);
  border-radius: var(--r-full);
  padding: .4rem 1rem;
  opacity: 0; pointer-events: none;
  position: fixed; bottom: 1.5rem; right: 5rem; z-index: 200;
  transition: opacity .4s ease;
}
.article-stamp-lu.is-visible { opacity: 1; }

/* ── Barre latérale ── */
/* N'est plus une colonne laterale : bloc qui suit l'article. */
.blog-sidebar { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.blog-sidebar-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.blog-sidebar-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin: 0;
}
.blog-sidebar-about-text { font-size: .875rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.blog-sidebar-about-link {
  font-size: .84rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.blog-sidebar-about-link:hover { color: var(--accent-hi); text-decoration: underline; }

.article-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

/* ============================================================
   COMMENTAIRES
   ============================================================ */
.article-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-comments-header { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
.article-comments-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin: 0; }
.article-comments-count {
  font-size: .78rem; font-weight: 700; color: var(--text-3);
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-full); padding: .1rem .6rem;
}
.article-comments-empty { font-size: .92rem; color: var(--text-3); margin-bottom: 1.5rem; }
.article-comment-notice {
  font-size: .875rem; color: var(--green);
  background: rgba(61,220,151,.08);
  border: 1px solid rgba(61,220,151,.3);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
}
.article-comment {
  display: flex; gap: .9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.article-comment:last-of-type { border-bottom: none; }
.article-comment-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; text-transform: uppercase;
}
.article-comment-body-wrap { min-width: 0; flex: 1; }
.article-comment-meta {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-3); margin-bottom: .3rem;
}
.article-comment-meta strong { color: var(--text); font-size: .9rem; font-weight: 700; }
.article-comment-body { font-size: .92rem; color: var(--text-2); line-height: 1.65; margin: 0; }

.article-comment-form-wrap {
  margin-top: 2rem;
  padding: 1.35rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.article-comment-form { display: flex; flex-direction: column; gap: .9rem; }
.article-comment-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: .9rem; }
.article-comment-field { display: flex; flex-direction: column; gap: .35rem; }
.article-comment-field label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.article-comment-field-hint, .article-comment-char-count, .article-comment-privacy {
  font-size: .75rem; color: var(--text-3);
}
.article-comment-submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.article-comment-error {
  font-size: .85rem; color: #FFB4B4;
  background: rgba(255,107,107,.08);
  border: 1px solid rgba(255,107,107,.35);
  border-radius: var(--r-sm);
  padding: .65rem .9rem;
  margin-bottom: 1rem;
}

/* ============================================================
   CARTE AUTEUR
   ============================================================ */
.author-card {
  margin: 2.5rem 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem;
}
.author-card-inner { display: flex; gap: 1.1rem; align-items: flex-start; }
.author-card-avatar, .author-card-avatar-placeholder {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--border-2);
}
.author-card-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff; font-size: 1.3rem; font-weight: 700; text-transform: uppercase;
  border: none;
}
.author-card-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.author-card-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.author-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.author-card-bio { font-size: .9rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.author-card-linkedin {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-top: .25rem;
}
.author-card-linkedin:hover { color: var(--accent-hi); text-decoration: underline; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.nl-page-main { max-width: 640px; margin: 0 auto; padding: 4rem 1.25rem 5rem; }
.nl-page-wrap { display: flex; flex-direction: column; gap: 1.35rem; }
.nl-page-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.nl-page-eyebrow::before { content: none; }
.nl-page-title {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--text); line-height: 1.15; margin: 0;
}
.nl-page-desc {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.75; margin: 0;
  border-left: 2px solid var(--accent-line); padding-left: 1.15rem;
}
.nl-page-rss { font-size: .85rem; color: var(--text-3); margin: 0; }
.nl-page-rss a { color: var(--accent); text-decoration: none; }
.nl-page-rss a:hover { color: var(--accent-hi); text-decoration: underline; }

/* ── Bloc inline (partials/newsletter-inline.php) ── */
.newsletter-inline, .nl-inline-wrap {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .7rem;
  margin: 2.5rem 0;
}
.newsletter-inline-eyebrow, .nl-inline-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.newsletter-inline-title {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); margin: 0;
}
.newsletter-inline-desc { font-size: .92rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.newsletter-inline-form { display: flex; flex-direction: column; gap: .75rem; margin-top: .35rem; align-items: flex-start; }
.newsletter-inline-form .newsletter-inline-input { align-self: stretch; }
.newsletter-inline-input, .nl-inline-input { width: 100%; }
.newsletter-inline-consent, .newsletter-widget-consent {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .82rem; color: var(--text-3); line-height: 1.5;
  cursor: pointer;
}
.newsletter-inline-consent input[type="checkbox"],
.newsletter-widget-consent input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: .15rem;
  accent-color: var(--accent); flex-shrink: 0; cursor: pointer;
}
.newsletter-inline-msg, .nl-inline-msg, .newsletter-widget-msg {
  font-size: .82rem; color: var(--text-2); margin: 0;
}
.newsletter-inline-msg.is-success, .newsletter-widget-msg.is-success { color: var(--green); }
.newsletter-inline-msg.is-error, .nl-inline-msg.is-error, .newsletter-widget-msg.is-error { color: var(--red); }
.newsletter-inline-privacy { font-size: .78rem; color: var(--text-3); margin: 0; }
.newsletter-inline-confirm {
  border: 1px solid rgba(61,220,151,.35);
  background: rgba(61,220,151,.08);
  border-radius: var(--r-sm);
  padding: .9rem 1.1rem;
}
.newsletter-inline-confirm-text { font-size: .9rem; color: var(--green); margin: 0; }

.nl-inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.nl-inline-form .nl-inline-input { flex: 1; min-width: 220px; }

/* ── Widget latéral ── */
.newsletter-widget, .blog-sidebar-widget--newsletter {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.newsletter-widget-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.newsletter-widget-desc { font-size: .85rem; color: var(--text-2); line-height: 1.55; margin: 0; }
.newsletter-widget-form { display: flex; flex-direction: column; gap: .6rem; }
.newsletter-widget-btn { width: 100%; }
.nl-btn-label { display: inline-block; }
.nl-btn-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.nl-cat-prefs { display: flex; flex-direction: column; gap: .45rem; }
.nl-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .35rem; }
.nl-cat-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--text-2); cursor: pointer;
}
.nl-cat-label input[type="checkbox"] { accent-color: var(--accent); }

/* ============================================================
   PAGE « À PROPOS »
   ============================================================ */
.about-header {
  display: flex; align-items: center; gap: 1.35rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.about-avatar {
  width: 84px; height: 84px; flex-shrink: 0;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1px solid var(--border-2);
}
.about-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff; font-size: 2rem; font-weight: 800; text-transform: uppercase;
  border: none;
}
.about-header-body { min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.about-name {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em; color: var(--text); margin: 0;
}
.about-tagline { font-size: 1rem; color: var(--text-2); line-height: 1.6; margin: 0; max-width: 60ch; }
.about-linkedin {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .84rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-full);
  padding: .3rem .85rem;
  width: fit-content;
  text-decoration: none;
  transition: background .15s;
}
.about-linkedin:hover { background: rgba(91,140,255,.22); }
.about-content { max-width: 70ch; }
.about-newsletter {
  margin: 3rem 0 0;
  padding: 1.75rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.about-newsletter-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0; }
.about-newsletter-desc { font-size: .92rem; color: var(--text-2); margin: 0; }
.about-newsletter-btn { margin-top: .6rem; }

/* ============================================================
   PAGE CONTACT (formulaire simple)
   ============================================================ */
.simple-form {
  display: flex; flex-direction: column; gap: 1.15rem;
  max-width: 680px;
  margin: 2rem 0 0;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.15rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.form-errors {
  list-style: none; padding: .9rem 1.1rem; margin: 2rem 0 0;
  border: 1px solid rgba(255,107,107,.35);
  background: rgba(255,107,107,.08);
  border-radius: var(--r-sm);
  color: #FFB4B4; font-size: .875rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.form-success {
  padding: 1rem 1.15rem; margin: 2rem 0 0;
  border: 1px solid rgba(61,220,151,.35);
  background: rgba(61,220,151,.08);
  border-radius: var(--r-sm);
  color: var(--green); font-size: .92rem;
}

/* ============================================================
   PAGE RUBRIQUES (categories.php)
   ============================================================ */
.cats-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.cats-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cats-hero-orb, .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.cats-hero-orb-1, .orb-1 { width: 340px; height: 340px; background: rgba(91,140,255,.35); top: -140px; left: -60px; }
.cats-hero-orb-2, .orb-2 { width: 300px; height: 300px; background: rgba(167,139,250,.28); top: -100px; right: -40px; }
.cats-hero-inner { position: relative; z-index: 1; }
.cats-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--text); line-height: 1.1; margin: 0 0 .85rem;
}
.cats-hero-highlight {
  background: linear-gradient(120deg, var(--accent), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cats-hero-lead { font-size: 1.05rem; color: var(--text-2); line-height: 1.7; max-width: 62ch; margin: 0; }

.cats-section { padding: 2.5rem 0 4rem; }
.cats-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 1rem; }
.cats-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
}
.cats-item:hover {
  border-color: var(--border-3);
  background: var(--bg-3);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.cats-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .02em;
}
.cats-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.cats-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cats-item-name { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 0; }
.cats-item-desc {
  font-size: .85rem; color: var(--text-3); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cats-item-end { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
/* Couleur + fond translucide fournis en style inline par categories.php */
.cats-item-count {
  font-size: .75rem; font-weight: 700; white-space: nowrap;
  border-radius: var(--r-full);
  padding: .2rem .65rem;
}
.cats-item-arrow { color: var(--text-3); transition: transform .18s, color .18s; }
.cats-item:hover .cats-item-arrow { color: var(--accent); transform: translateX(3px); }

.empty-state-card {
  background: var(--bg-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-3);
}
.empty-state-card h3 { color: var(--text); font-size: 1.15rem; margin: 0 0 .5rem; }
.empty-state-card p { margin: 0; font-size: .9rem; }

/* ============================================================
   PAGE SÉRIE
   ============================================================ */
.serie-list { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-direction: column; gap: 0; }
.serie-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem .25rem;
  border-bottom: 1px solid var(--border);
}
.serie-item:first-child { border-top: 1px solid var(--border); }
.serie-num {
  flex-shrink: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  font-family: var(--mono); font-size: .75rem; font-weight: 700; color: var(--text-3);
}
.serie-content { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; }
.serie-thumb { width: 84px; height: 54px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.serie-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.serie-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.serie-title { font-size: 1rem; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.35; }
.serie-title:hover { color: var(--accent-hi); }
.serie-meta { font-size: .78rem; color: var(--text-3); }

/* ============================================================
   PARTENAIRES
   ============================================================ */
.home-partner-strip { padding: 2rem 0; }
.partner-leaderboard, .partner-tile {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.15rem;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.partner-leaderboard:hover, .partner-tile:hover { border-color: var(--border-3); background: var(--bg-3); }
.partner-leaderboard-banner-img, .partner-tile-banner-img {
  width: 100%; height: auto; display: block; border-radius: var(--r-md);
}
.partner-leaderboard-logo, .partner-tile-logo-img {
  max-height: 40px; width: auto; flex-shrink: 0;
}
.partner-logo-text { font-size: 1rem; font-weight: 700; color: var(--text); }
.partner-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  background: var(--bg-4);
  border-radius: var(--r-full);
  padding: .12rem .55rem;
  flex-shrink: 0;
}

/* ============================================================
   PAGE 404
   ============================================================ */
.error-page, .blog-404-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.error-code, .blog-404-code {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  background: linear-gradient(150deg, var(--accent), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  display: block;
  margin-bottom: .75rem;
}
.error-title, .blog-404-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--text); margin: 0 0 .75rem;
}
.error-msg, .blog-404-lead {
  font-size: 1rem; color: var(--text-2); margin: 0 0 2rem; max-width: 52ch;
}
.error-sub { font-size: .85rem; color: var(--text-3); margin-bottom: 2rem; }
.error-actions, .blog-404-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

.blog-404-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-full);
  padding: .25rem .3rem .25rem 1.1rem;
  width: min(480px, 100%);
  margin-bottom: 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.blog-404-search:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.blog-404-search-input {
  flex: 1; background: transparent; border: none; outline: none; box-shadow: none;
  padding: .5rem 0; font-size: .95rem; color: var(--text); width: auto;
}
.blog-404-search-input:focus { background: transparent; box-shadow: none; border: none; }
.blog-404-search-btn { border-radius: var(--r-full); padding: .5rem 1.1rem; }

.blog-404-recent { padding: 2rem 0 3rem; }
.blog-404-recent-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 1.25rem;
}

/* ============================================================
   ÉTATS
   ============================================================ */
.is-draft     { color: var(--text-3); }
.is-published { color: var(--green); }
.is-scheduled { color: var(--accent); }
.is-featured  { color: var(--violet); }
.is-warn      { color: var(--orange); }
.is-danger    { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* La colonne de lecture est deja unique a toutes les tailles :
   plus rien a degrouper ici. */

@media (max-width: 900px) {
  /* le pied de page est deja en colonne unique */
}

@media (max-width: 768px) {
  .snav-burger { display: flex; }
  .site-subnav { display: none; }
  .snav-search-btn .kbd-hint, .snav-nl-btn { display: none; }


  .cats-list { grid-template-columns: 1fr; }

  /* Entrees de liste : la vignette passe sous le texte et s'elargit */
  .post-card, .home-list-row, .blog-list-entry {
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 0;
  }
  .post-card-image, .home-list-row-thumb-wrap, .blog-list-entry-img-wrap {
    width: 100%; flex-basis: auto; order: 0;
  }
  .post-card-image img, .home-list-row-thumb, .blog-list-entry-img {
    aspect-ratio: 16 / 9;
  }
  .post-card-title, .home-list-row-title, .blog-list-entry-title { font-size: 1.25rem; }

  .blog-main { padding: 0 1.25rem 3.5rem; }
  .article-main { padding: 0 1.25rem 3.5rem; }
  .home-hero { padding: 2.5rem 0 1.75rem; }
  .about-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .article-comment-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .blog-footer-copy-row, .footer-bottom { flex-direction: column; gap: .4rem; align-items: flex-start; }
  .serie-content { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .serie-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}

@media (max-width: 480px) {
  .snav-search-btn { display: none; }
  .snav { padding: 0 1rem; }
  .blog-pg, .blog-pagination { flex-wrap: wrap; justify-content: center; }
  .article-newsletter-inline { flex-direction: column; align-items: flex-start; }
  .cats-item { flex-wrap: wrap; }
  .scroll-top-btn { bottom: 1rem; right: 1rem; }
}

/* ============================================================
   IMPRESSION
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  body::before, .snav, .snav-drawer, .snav-search-overlay,
  .scroll-top-btn, .blog-footer, .article-actions,
  .article-newsletter-inline, .newsletter-inline, .article-toc-sidebar,
  .blog-sidebar, .article-stamp-lu { display: none !important; }
  .article-content, .article-content p, .article-content li { color: #000; }
  .article-columns { display: block; }
}
