/* ==========================================================================
   Blog & Guides — habillage « site »
   Aligne les pages du blog sur les pages pôle (bandeau photo, cartes à pastille
   numérotée, pastilles de filtre, bloc d'appel à l'action). Chargé après blog.css
   et pole.css ; ne touche pas au contenu éditorial (.prose), seulement à son cadre.
   Ce fichier est écrit à la main : scripts/import-blog.mjs ne l'écrase pas.
   ========================================================================== */

/* ---------- Bandeau (accueil du blog et en-tête d'article) ---------- */

.blog-band .pole-band-inner { max-width: 900px; }
.blog-band .pole-band-sub { max-width: 640px; }
.blog-band .eyebrow,
.article-hero-inner .cat-label { color: rgba(255, 255, 255, 0.7); }

/* Recherche posée sur la photo */
.blog-band .blog-search { margin-top: 30px; max-width: 540px; }
.blog-band .blog-search label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.blog-band .blog-search-field {
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
}
.blog-band .blog-search-field:focus-within { border-color: rgba(255, 255, 255, 0.55); }

/* En-tête d'article : fil d'Ariane, titre, chapeau et méta lisibles sur la photo */
.article-band { padding-bottom: 56px; }
@media (min-width: 1040px) { .article-band { padding: 172px 0 72px; } }
.article-band .article-hero-inner { max-width: 880px; }
.article-band .breadcrumb,
.article-band .breadcrumb a { color: rgba(255, 255, 255, 0.66); }
.article-band .breadcrumb a:hover { color: #fff; }
.article-band .breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.9); }
.article-band h1 { margin: 22px 0 20px; }
.article-band .article-lead { color: rgba(255, 255, 255, 0.84); }
.article-band .article-meta { color: rgba(255, 255, 255, 0.66); }

/* ---------- Filtres : même pastille que les sélecteurs du site ---------- */

.blog-toolbar { padding: 40px 0 0; border-block: 0; background: transparent; }
.blog-toolbar-inner { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 0; border-bottom: 0; }
.blog-toolbar .cat-list { gap: 10px; }
.blog-toolbar .blog-count { font-size: 13px; color: var(--muted); }
.cat-chip { border-color: var(--hairline); border-radius: 999px; color: #b4b8be; }
.cat-chip[aria-pressed="true"], .cat-chip.is-active { background: #fff; border-color: #fff; color: #111; }
.cat-chip-count { background: rgba(255, 255, 255, 0.08); }
.cat-chip[aria-pressed="true"] .cat-chip-count { background: rgba(17, 17, 17, 0.12); }

/* ---------- Titres de section ---------- */

.blog-section { padding-top: 56px; }
.blog-section-title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }

/* ---------- Cartes : photo arrondie + pied de carte, comme les cartes des pôles ---------- */

.post-grid { gap: 40px 24px; counter-reset: post; }
.post-card { counter-increment: post; }
.post-card .badge-num::before { content: counter(post, decimal-leading-zero); }
.post-card {
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
}
.post-card:hover { background: transparent; }
.post-card-media {
  position: relative;
  aspect-ratio: 460 / 400;
  border-radius: var(--r-md);
  background: linear-gradient(169deg, #36383d 0%, #212429 85%);
}
.post-card-media img { transition: transform 0.6s var(--ease-out-soft); }
.post-card-media .badge-num { top: 16px; left: 16px; z-index: 1; }
.post-card-body { gap: 10px; padding: 18px 2px 0; }
.post-card-title { font-size: 18px; letter-spacing: -0.18px; line-height: 1.32; }
.post-card-excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.post-card .cat-label { color: var(--muted); }
.post-meta { padding-top: 10px; }
.post-more { color: #fff; }

/* ---------- Article à la une ---------- */

.post-featured {
  border: 0;
  border-radius: var(--r-lg);
  background: var(--ink-panel);
  overflow: hidden;
}
.post-featured:hover { background: #202024; }
.post-featured { align-items: stretch; }
/* L'illustration garde ses proportions ; la colonne reprend le fond sombre de l'illustration
   pour que la hauteur du texte ne laisse ni bande grise ni recadrage. */
.post-featured-media { display: flex; align-items: center; aspect-ratio: auto; background: #0d0d0f; }
.post-featured-media img { height: auto; object-fit: contain; }
.post-featured-body { padding: 48px 48px 44px; }
@media (max-width: 899px) { .post-featured-body { padding: 28px 24px 30px; } }

/* ---------- Couverture d'article ---------- */

.article-cover-frame { border: 0; border-radius: var(--r-lg); background: linear-gradient(169deg, #36383d 0%, #212429 85%); }
.article-cover img { object-position: center 40%; }
.article-cover figcaption { color: var(--muted); }

/* ---------- Bloc d'appel à l'action (celui des pages pôle) ---------- */

.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 4px; }
.blog-page .cta { border-top: 1px solid var(--hairline); }
.blog-page .cta .btn-dark { margin-top: 0; }

/* ---------- Encadrés et listes liées : fond et filets du site ---------- */

.related-services a,
.related-services li a { border-color: var(--hairline); }
.blog-page .site-footer { margin-top: 0; }

/* ---------- Marges : mêmes gouttières que le bandeau et le reste du site (.wrap) ---------- */

.blog-page .b-container {
  max-width: calc(var(--content) + var(--gutter) * 2);
  padding-inline: var(--gutter);
}
