/* ==========================================================================
   Blog & Guides — pont avec la feuille du site (css/home.css)

   Le paquet du blog a été écrit pour l'ancien site (/css/style.css) : mêmes noms de
   jetons (--ink = blanc, --bg…) et de classes (.container, .btn-accent, .cta…) que
   home.css, avec d'autres valeurs. scripts/import-blog.mjs renomme donc ces noms en
   --b-* / .b-* dans blog.css et dans les pages ; ce fichier fournit leurs définitions,
   reprises des règles du site d'origine. Chargé AVANT blog.css.
   Ne contient rien d'autre : tout le reste vient de home.css (en-tête, pied de page).
   ========================================================================== */

:root {
  --b-bg: #111111;
  --b-bg-elevated: #1b1b1e;
  --b-ink: #ffffff;
  --b-ink-muted: #7b8087;
  --b-border: rgba(255, 255, 255, 0.08);
  --b-surface-tint: rgba(255, 255, 255, 0.06);
  --b-surface-tint-strong: rgba(255, 255, 255, 0.22);
  --b-accent-fill: #ffffff;
  --b-accent-fill-hover: #ededed;
  --b-accent-on-fill: #111111;
  --b-accent-text: #7b8087;
  --b-header-bg-scrolled: rgba(17, 17, 17, 0.92);
  --b-shadow-dropdown: 0 20px 40px rgba(0, 0, 0, 0.4);
  --b-container-w: 1240px;
  --b-radius-sm: 6px;
  --b-radius-md: 10px;
  --b-radius-lg: 18px;
  --b-ease: cubic-bezier(0.16, 0.84, 0.44, 1);
}

.b-container { width: 100%; max-width: var(--b-container-w); margin-inline: auto; padding-inline: 24px; }

.b-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--b-accent-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.b-eyebrow-rule { display: inline-block; width: 28px; height: 1px; background: var(--b-accent-text); }
.b-section-title { margin-bottom: 20px; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* Boutons : la base (.btn) vient de home.css */
.blog-page .btn { gap: 10px; border: 1px solid transparent; }
.b-btn-accent { background: var(--b-accent-fill); color: var(--b-accent-on-fill); }
.b-btn-outline { background: transparent; color: var(--b-ink); border-color: var(--b-surface-tint-strong); }
.b-btn-sm { padding: 10px 20px; font-size: 0.85rem; }
@media (hover: hover) and (pointer: fine) {
  .b-btn-accent:hover { background: var(--b-accent-fill-hover); }
  .b-btn-outline:hover { border-color: var(--b-accent-fill); background: var(--b-surface-tint); }
}

/* Fondus des bandeaux et bloc d'appel à l'action de fin d'article */
.b-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent, var(--b-bg)); }
.b-hero-fade-top { position: absolute; left: 0; right: 0; top: -50px; height: 240px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--b-bg), transparent); }
.b-cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; background: var(--b-bg); }
.b-cta .b-eyebrow { justify-content: center; }
.b-cta-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.b-cta-bg svg { display: block; width: 100%; height: 100%; }
.b-cta-bg .b-cta-bg-base { fill: #0d0d0f; }
.b-cta-fade-top { position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--b-bg) 0%, var(--b-bg) 8%, transparent 100%); }
.b-cta-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.b-cta-desc { max-width: 520px; margin: 22px auto 40px; color: var(--b-ink-muted); font-size: 1.05rem; line-height: 1.6; }
.b-cta-stop-edge { stop-color: #0b0b0d; }
.b-cta-stop-mid { stop-color: #17171a; }

/* Texte réservé aux lecteurs d'écran */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Le blog empile ses sections : le pied de page vient juste après */
.blog-page main { display: block; }
