/*
Theme Name:   Bio et Naturel – Thème enfant Astra
Theme URI:    https://bioetnaturel.fr
Description:  Thème enfant Astra pour Bio et Naturel. Templates éditoriaux premium (articles, comparatifs, catégories, accueil) — palette encre & beige, accents commerciaux verts. Léger, sans JavaScript.
Author:       Bio et Naturel
Template:     astra
Version:      2.4.4
Text Domain:  bio-naturel
*/

/* Changelog
   2.4.4  Padding latéral de l'image héro d'article limité aux fenêtres
          < 1000px (gouttière mobile) — sur PC l'image occupe les 960px pleins.
   2.4.3  Image héro d'article recentrée (la règle générique .bn-main figure
          annulait le margin auto) ; mention de transparence déplacée sous
          l'image héro et allégée (ligne grise italique, sans encadré).
   2.4.2  L'image flottée des fiches produit ne s'applique plus dans
          l'éditeur (blocs à nouveau sélectionnables) — rendu front inchangé.
   2.4.1  Confort de lecture PC : colonne de texte 680→720px ; tableau
          comparatif et fiches produit débordent jusqu'à ~940px (effet
          magazine) ; fiche produit : image flottée à gauche, le texte
          l'entoure puis reprend toute la largeur (plus de vide sous la
          photo) — s'applique aussi aux articles déjà publiés, sans les
          modifier. Image en pleine largeur sur mobile.
   2.4.0  Modèle — Comparatif v2 aligné sur l'article de référence
          (éponges lavables) : checklist de publication, encadré « En résumé »,
          « Notre sélection en bref », tableau avant les fiches + note
          fabricants, section méthode, 3 fiches produit rédactionnelles
          (variantes A/B/C, H2 « N. Produit : bénéfice »), guide d'achat et
          erreurs en prose, verdict enrichi, FAQ ×6, sources typées.
          Avantages/Inconvénients reste une brique séparée, hors modèle.
   2.3.1  Images dans les compositions : Box produit restructurée
          (visuel officiel à gauche + consigne, texte à droite, empilé
          sur mobile) ; blocs image d'ambiance dans les 3 modèles
          (1 informatif, 2 guide, 1 optionnelle comparatif).
   2.3.0  Modèles d'article complets (informatif, guide pratique, comparatif)
          dans une nouvelle catégorie de compositions « Bio et Naturel — Modèles » ;
          briques bn_bloc_* réutilisables ; styles de l'éditeur Gutenberg
          alignés sur le front (add_editor_style + sélecteurs :is()) ;
          tableau comparatif scrollable sur mobile.
   2.2.x  Accueil : surtitre héro, bande de réassurance, bandeau comparatifs,
          textes newsletter ; pleine largeur Astra (no-sidebar + width 100%) ;
          voile des bandeaux catégories 78→70 % ; --bn-wide 1080→1200px.
   2.1.0  Thème enfant v2 initial (palette encre & beige).
*/

/* =============================================
   TOKENS — Palette B (encre & beige, vert commercial)
   ============================================= */
:root {
  --bn-ink: #1c1c1f;
  --bn-ink-soft: #4b4b50;
  --bn-muted: #8a8a8e;
  --bn-paper: #ffffff;
  --bn-surface: #f6f3ec;      /* beige sable */
  --bn-hairline: #e7e4dc;
  --bn-green: #3e6b52;        /* vert : uniquement CTA & marqueurs commerciaux */
  --bn-green-dark: #2f5240;

  --bn-display: "Fraunces", Georgia, serif;
  --bn-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --bn-col: 720px;
  --bn-wide: 1200px;
}

.bn-main {
  /* width 100% : le conteneur Astra est en flex, sans ça le <main> se rétracte à la largeur de son contenu */
  width: 100%;
  font-family: var(--bn-body);
  color: var(--bn-ink);
  background: var(--bn-paper);
}
.bn-main figure { margin: 0; }

/* =============================================
   ÉLÉMENTS PARTAGÉS
   ============================================= */
.bn-eyebrow,
.bn-main .bn-eyebrow {
  display: inline-block;
  font-family: var(--bn-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bn-ink);
  text-decoration: none;
}
a.bn-eyebrow:hover { color: var(--bn-green); }

.bn-section-title {
  font-family: var(--bn-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bn-ink);
  margin: 0 0 1.8rem;
}

/* Carte d'article : image au-dessus, titre, extrait, lien */
.bn-card { text-decoration: none; display: block; }
.bn-card img,
.bn-card .bn-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  background: var(--bn-surface);
  display: block;
}
.bn-card .bn-card-cat {
  font-family: var(--bn-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-muted);
}
.bn-card h3, .bn-card h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.3;
  color: var(--bn-ink);
  margin: 0.4rem 0 0.5rem;
  transition: color 0.15s ease;
}
.bn-card:hover h3, .bn-card:hover h2 { color: var(--bn-green); }
.bn-card p {
  font-family: var(--bn-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bn-ink-soft);
  margin: 0 0 0.6rem;
}
.bn-card .bn-readmore {
  font-family: var(--bn-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bn-green);
}

.bn-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

/* Bouton */
.bn-btn,
.bn-main .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
  display: inline-block;
  font-family: var(--bn-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--bn-green);
  text-decoration: none;
  padding: 0.72rem 1.6rem;
  border-radius: 6px;
  border: 0;
  transition: background 0.15s ease;
}
.bn-btn:hover,
.bn-main .wp-block-button__link:hover,
.editor-styles-wrapper .wp-block-button__link:hover { background: var(--bn-green-dark); color: #fff; }
.bn-btn--ghost {
  background: transparent;
  color: var(--bn-ink);
  border: 1px solid var(--bn-ink);
}
.bn-btn--ghost:hover { background: var(--bn-ink); color: #fff; }

/* Pagination */
.bn-main .navigation.pagination { font-family: var(--bn-sans); margin: 3rem 0; }
.bn-main .nav-links { display: flex; gap: 0.4rem; justify-content: center; }
.bn-main .page-numbers {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--bn-hairline);
  border-radius: 6px;
  text-decoration: none;
  color: var(--bn-ink);
  font-size: 0.9rem;
}
.bn-main .page-numbers.current { background: var(--bn-ink); color: #fff; border-color: var(--bn-ink); }

/* =============================================
   TEMPLATE ARTICLE (single.php)
   ============================================= */
.bn-article-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 0;
  text-align: center;
}
.bn-article-header .bn-eyebrow { color: var(--bn-muted); margin-bottom: 1.1rem; }
.bn-article-header .bn-eyebrow:hover { color: var(--bn-green); }

.bn-title {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 auto 1.4rem;
  max-width: 24ch;
}

.bn-standfirst {
  font-family: var(--bn-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--bn-ink-soft);
  max-width: 36rem;
  margin: 0 auto 1.8rem;
}

.bn-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--bn-sans);
  font-size: 0.85rem;
  color: var(--bn-muted);
  padding-top: 1.4rem;
  position: relative;
}
.bn-meta::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3rem; height: 2px;
  background: var(--bn-ink);
}
.bn-meta .avatar { width: 32px; height: 32px; border-radius: 50%; }
.bn-meta a { color: var(--bn-ink); font-weight: 600; text-decoration: none; }
.bn-meta a:hover { color: var(--bn-green); }
.bn-meta .sep { opacity: 0.5; }

/* Transparence affiliation — discrète : simple ligne grise en italique,
   sous l'image héro, avant le corps (donc toujours avant les liens affiliés) */
.bn-disclosure {
  max-width: var(--bn-col);
  margin: 1.4rem auto 0;
  padding: 0 1.25rem;
}
.bn-disclosure p {
  font-family: var(--bn-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--bn-muted);
  margin: 0;
}
.bn-disclosure a { color: var(--bn-ink-soft); }

/* Héro — sélecteur .bn-main .bn-hero requis : sinon la règle générique
   « .bn-main figure { margin: 0 } » annule le centrage (margin auto).
   Padding latéral uniquement sous 1000px (gouttière mobile) : sur PC,
   l'image occupe les 960px pleins, sans liseré. */
.bn-main .bn-hero {
  max-width: 960px;
  margin: 1.8rem auto 0;
  padding: 0;
}
@media (max-width: 1000px) {
  .bn-main .bn-hero { padding: 0 1.25rem; }
}
.bn-hero img { width: 100%; height: auto; display: block; border-radius: 6px; }
.bn-hero figcaption {
  font-family: var(--bn-sans);
  font-size: 0.8rem;
  color: var(--bn-muted);
  text-align: right;
  margin-top: 0.55rem;
}

/* Corps */
:is(.bn-content, .editor-styles-wrapper) {
  max-width: var(--bn-col);
  margin: 2.6rem auto 0;
  padding: 0 1.25rem;
  font-size: 1.13rem;
  line-height: 1.78;
}
:is(.bn-content, .editor-styles-wrapper) > p:first-of-type::first-letter {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 3.6em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--bn-ink);
}
:is(.bn-content, .editor-styles-wrapper) p { margin: 0 0 1.5rem; }
:is(.bn-content, .editor-styles-wrapper) a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--bn-green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
:is(.bn-content, .editor-styles-wrapper) a:hover { color: var(--bn-green); }
:is(.bn-content, .editor-styles-wrapper) h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 2.8rem 0 1rem;
}
:is(.bn-content, .editor-styles-wrapper) h3 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 2.2rem 0 0.8rem;
}
:is(.bn-content, .editor-styles-wrapper) blockquote {
  margin: 2.6rem 0;
  padding: 0 0 0 1.6rem;
  border-left: 3px solid var(--bn-ink);
  font-family: var(--bn-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.45;
}
:is(.bn-content, .editor-styles-wrapper) blockquote cite {
  display: block;
  font-family: var(--bn-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--bn-muted);
}
:is(.bn-content, .editor-styles-wrapper) img { max-width: 100%; height: auto; border-radius: 6px; }
:is(.bn-content, .editor-styles-wrapper) figcaption { font-family: var(--bn-sans); font-size: 0.8rem; color: var(--bn-muted); margin-top: 0.5rem; }
:is(.bn-content, .editor-styles-wrapper) ul, :is(.bn-content, .editor-styles-wrapper) ol { margin: 0 0 1.5rem 1.4rem; padding: 0; }
:is(.bn-content, .editor-styles-wrapper) li { margin-bottom: 0.5rem; }

/* ---- Composition : Sommaire ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-toc {
  border: 1px solid var(--bn-hairline);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 2.2rem 0;
}
:is(.bn-content, .editor-styles-wrapper) .bn-toc > p:first-child, :is(.bn-content, .editor-styles-wrapper) .bn-toc h2 {
  font-family: var(--bn-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bn-ink);
  margin: 0 0 0.7rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-toc ol, :is(.bn-content, .editor-styles-wrapper) .bn-toc ul {
  margin: 0; padding-left: 1.2rem;
  font-family: var(--bn-sans);
  font-size: 0.92rem;
  line-height: 2;
}
:is(.bn-content, .editor-styles-wrapper) .bn-toc li { margin: 0; }
:is(.bn-content, .editor-styles-wrapper) .bn-toc a { text-decoration: none; }
:is(.bn-content, .editor-styles-wrapper) .bn-toc a:hover { text-decoration: underline; }

/* ---- Composition : Encadré "À retenir" ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-box {
  background: var(--bn-surface);
  border-radius: 6px;
  padding: 1.5rem 1.7rem;
  margin: 2.4rem 0;
  font-size: 1.02rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-box > :first-child { margin-top: 0; }
:is(.bn-content, .editor-styles-wrapper) .bn-box > :last-child { margin-bottom: 0; }
:is(.bn-content, .editor-styles-wrapper) .bn-box h2, :is(.bn-content, .editor-styles-wrapper) .bn-box h3, :is(.bn-content, .editor-styles-wrapper) .bn-box > p:first-child strong {
  font-family: var(--bn-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bn-ink);
  margin: 0 0 0.7rem;
}

/* ---- Composition : Box produit ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-product {
  border: 1px solid var(--bn-hairline);
  border-radius: 8px;
  padding: 1.6rem 1.7rem;
  margin: 2.4rem 0;
  display: flow-root; /* contient l'image flottée */
}
:is(.bn-content, .editor-styles-wrapper) .bn-product .bn-rank {
  font-family: var(--bn-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-green);
  margin: 0 0 0.3rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product h2,
:is(.bn-content, .editor-styles-wrapper) .bn-product h3 {
  font-size: 1.35rem;
  margin: 0 0 0.3rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product .bn-tagline {
  font-family: var(--bn-sans);
  font-size: 0.9rem;
  color: var(--bn-ink-soft);
  margin: 0 0 1.1rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product figure { margin-bottom: 1.1rem; }
:is(.bn-content, .editor-styles-wrapper) .bn-product img { border-radius: 6px; }
:is(.bn-content, .editor-styles-wrapper) .bn-product ul {
  font-family: var(--bn-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.4rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bn-green);
  font-weight: 700;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product .bn-cta-note {
  font-family: var(--bn-sans);
  font-size: 0.75rem;
  color: var(--bn-muted);
  margin-left: 0.8rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product .wp-block-buttons { display: inline-flex; }
/* Les « colonnes » de la fiche deviennent : image flottée à gauche + texte
   qui l'entoure puis reprend toute la largeur — plus de vide sous la photo.
   FRONT UNIQUEMENT (pas .editor-styles-wrapper) : dans l'éditeur, le float
   ferait recouvrir l'image par le bloc de texte et empêcherait de la
   sélectionner ; Gutenberg garde donc les colonnes classiques. */
.bn-content .bn-product .bn-product-cols { display: block; margin: 0.4rem 0 0; }
.bn-content .bn-product .bn-product-cols > .wp-block-column:first-child {
  float: left;
  width: min(38%, 300px);
  margin: 0.2rem 1.7rem 0.9rem 0;
}
:is(.bn-content, .editor-styles-wrapper) .bn-product .bn-product-cols img { width: 100%; }
:is(.bn-content, .editor-styles-wrapper) .bn-product .bn-product-cols figure { margin-bottom: 0; }

/* ---- Composition : Avantages / Inconvénients ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-proscons { margin: 2rem 0; gap: 1rem; }
:is(.bn-content, .editor-styles-wrapper) .bn-proscons .wp-block-column {
  border: 1px solid var(--bn-hairline);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-proscons h4, :is(.bn-content, .editor-styles-wrapper) .bn-proscons p strong {
  font-family: var(--bn-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-proscons ul {
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--bn-sans);
  font-size: 0.9rem;
  line-height: 1.6;
}
:is(.bn-content, .editor-styles-wrapper) .bn-proscons li { padding-left: 1.3rem; position: relative; margin-bottom: 0.45rem; }
:is(.bn-content, .editor-styles-wrapper) .bn-pros li::before { content: "+"; position: absolute; left: 0; font-weight: 700; color: var(--bn-green); }
:is(.bn-content, .editor-styles-wrapper) .bn-cons li::before { content: "–"; position: absolute; left: 0; font-weight: 700; color: var(--bn-muted); }
:is(.bn-content, .editor-styles-wrapper) .bn-pros h4, :is(.bn-content, .editor-styles-wrapper) .bn-pros p strong { color: var(--bn-green); }
:is(.bn-content, .editor-styles-wrapper) .bn-cons h4, :is(.bn-content, .editor-styles-wrapper) .bn-cons p strong { color: var(--bn-muted); }

/* ---- Composition : Tableau comparatif ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-table {
  margin: 2.4rem 0;
  overflow-x: auto; /* tableau scrollable horizontalement sur petit écran */
  -webkit-overflow-scrolling: touch;
}
:is(.bn-content, .editor-styles-wrapper) .bn-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--bn-sans);
  font-size: 0.9rem;
  border: 0;
}
:is(.bn-content, .editor-styles-wrapper) .bn-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bn-muted);
  border: 0;
  border-bottom: 2px solid var(--bn-ink);
  padding: 0.7rem 0.9rem;
  background: transparent;
}
:is(.bn-content, .editor-styles-wrapper) .bn-table td {
  border: 0;
  border-bottom: 1px solid var(--bn-hairline);
  padding: 0.85rem 0.9rem;
  vertical-align: top;
}
:is(.bn-content, .editor-styles-wrapper) .bn-table td:first-child { font-weight: 600; }
:is(.bn-content, .editor-styles-wrapper) .bn-table-note {
  font-family: var(--bn-sans);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--bn-muted);
  margin: -1.6rem 0 2.4rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-table mark {
  background: none;
  color: var(--bn-green);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Blocs « larges » : le tableau comparatif et les fiches produit
        débordent de la colonne de texte (720px) jusqu'à ~940px, proche
        de la largeur du titre — effet magazine, moins de vide latéral ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-table,
:is(.bn-content, .editor-styles-wrapper) .bn-product {
  --bn-large: min(940px, calc(100vw - 2.5rem));
  width: var(--bn-large);
  margin-left: calc((100% - var(--bn-large)) / 2);
}

/* ---- Composition : Verdict ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-verdict {
  background: var(--bn-surface);
  border-left: 4px solid var(--bn-green);
  border-radius: 0 8px 8px 0;
  padding: 1.6rem 1.8rem;
  margin: 2.6rem 0;
}
:is(.bn-content, .editor-styles-wrapper) .bn-verdict h2, :is(.bn-content, .editor-styles-wrapper) .bn-verdict h3, :is(.bn-content, .editor-styles-wrapper) .bn-verdict > p:first-child strong {
  font-family: var(--bn-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bn-green);
  margin: 0 0 0.7rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-verdict p { font-size: 1.05rem; margin: 0; }
:is(.bn-content, .editor-styles-wrapper) .bn-verdict p + p { margin-top: 0.8rem; }

/* ---- Composition : Sources ---- */
:is(.bn-content, .editor-styles-wrapper) .bn-sources {
  border-top: 1px solid var(--bn-hairline);
  padding-top: 1.8rem;
  margin: 3rem 0 0;
}
:is(.bn-content, .editor-styles-wrapper) .bn-sources h2, :is(.bn-content, .editor-styles-wrapper) .bn-sources > p:first-child strong {
  font-family: var(--bn-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bn-muted);
  margin: 0 0 0.8rem;
}
:is(.bn-content, .editor-styles-wrapper) .bn-sources ol {
  font-family: var(--bn-sans);
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--bn-ink-soft);
  margin: 0;
  padding-left: 1.2rem;
}

/* Pied d'article */
.bn-article-footer {
  max-width: var(--bn-col);
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}
.bn-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.bn-tags a {
  font-family: var(--bn-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bn-ink-soft);
  text-decoration: none;
  border: 1px solid var(--bn-hairline);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  transition: all 0.15s ease;
}
.bn-tags a:hover { border-color: var(--bn-green); color: var(--bn-green); }

.bn-author {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  border-top: 1px solid var(--bn-hairline);
  padding: 2.2rem 0;
}
.bn-author img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.bn-author .label {
  font-family: var(--bn-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-muted);
  margin-bottom: 0.3rem;
}
.bn-author .name { font-family: var(--bn-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.4rem; }
.bn-author .name a { color: inherit; text-decoration: none; }
.bn-author .name a:hover { color: var(--bn-green); }
.bn-author .bio { font-family: var(--bn-sans); font-size: 0.92rem; line-height: 1.6; color: var(--bn-ink-soft); margin: 0; }

/* Articles liés */
.bn-related {
  max-width: var(--bn-wide);
  margin: 1.5rem auto 4rem;
  padding: 2.5rem 1.25rem 0;
  border-top: 1px solid var(--bn-hairline);
}

/* =============================================
   TEMPLATE CATÉGORIE (category.php)
   ============================================= */
.bn-cat-header {
  background: var(--bn-surface);
  padding: 3.2rem 1.25rem 2.8rem;
  text-align: center;
}
.bn-cat-header .bn-eyebrow { color: var(--bn-muted); margin-bottom: 0.9rem; }
.bn-cat-title {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  margin: 0 auto 1rem;
}
.bn-cat-desc {
  font-family: var(--bn-body);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--bn-ink-soft);
  max-width: 42rem;
  margin: 0 auto;
}
.bn-subcats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.bn-subcats a {
  font-family: var(--bn-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bn-ink);
  background: var(--bn-paper);
  border: 1px solid var(--bn-hairline);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.bn-subcats a:hover, .bn-subcats a.active {
  background: var(--bn-ink);
  border-color: var(--bn-ink);
  color: #fff;
}

.bn-cat-body { max-width: var(--bn-wide); margin: 0 auto; padding: 3rem 1.25rem 2rem; }

/* Article vedette de catégorie */
.bn-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
  text-decoration: none;
}
.bn-featured img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}
.bn-featured .bn-card-cat { color: var(--bn-muted); font-family: var(--bn-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.bn-featured h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.22;
  color: var(--bn-ink);
  margin: 0.6rem 0 0.8rem;
  transition: color 0.15s ease;
}
.bn-featured:hover h2 { color: var(--bn-green); }
.bn-featured p { font-family: var(--bn-sans); font-size: 0.95rem; line-height: 1.65; color: var(--bn-ink-soft); margin: 0 0 1rem; }

/* =============================================
   TEMPLATE ACCUEIL (front-page.php)
   ============================================= */
.bn-home-hero {
  background: var(--bn-surface);
  padding: 4rem 1.25rem;
  text-align: center;
}
.bn-home-hero .bn-eyebrow { color: var(--bn-muted); margin-bottom: 1rem; }
.bn-home-hero h1 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 auto 1.2rem;
}
.bn-home-hero p {
  font-family: var(--bn-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--bn-ink-soft);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.bn-home-section {
  max-width: var(--bn-wide);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
}
.bn-home-section .bn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--bn-ink);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}
.bn-home-section .bn-section-head h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}
.bn-home-section .bn-section-head a {
  font-family: var(--bn-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bn-green);
  text-decoration: none;
  white-space: nowrap;
}
.bn-home-section .bn-section-head a:hover { text-decoration: underline; }

/* Héro avec image (si image mise en avant sur la page Accueil) */
.bn-home-hero.has-image { text-align: left; }
.bn-home-hero.has-image .bn-home-hero-inner {
  max-width: var(--bn-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.bn-home-hero.has-image h1 { margin-left: 0; max-width: 18ch; }
.bn-home-hero.has-image p { margin-left: 0; }
.bn-home-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
@media (max-width: 800px) {
  .bn-home-hero.has-image .bn-home-hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Bloc éditorial de l'accueil (contenu de la page Accueil) */
.bn-home-editorial {
  max-width: var(--bn-col);
  margin: 3.2rem auto 0;
  padding: 0 1.25rem;
  font-size: 1.08rem;
  line-height: 1.75;
}
.bn-home-editorial h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 2.2rem 0 0.9rem;
}
.bn-home-editorial p { margin: 0 0 1.3rem; }
.bn-home-editorial a { color: inherit; text-decoration: underline; text-decoration-color: var(--bn-green); text-underline-offset: 3px; }
.bn-home-editorial a:hover { color: var(--bn-green); }
.bn-home-editorial img { max-width: 100%; height: auto; border-radius: 8px; }

/* Héro de catégorie avec image (champ « Image de la rubrique ») */
.bn-cat-header.has-image {
  background-size: cover;
  background-position: center;
  position: relative;
}
.bn-cat-header.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(246,243,236,0.78), rgba(246,243,236,0.70));
}
.bn-cat-header.has-image > * { position: relative; }

/* Bloc newsletter */
.bn-newsletter {
  max-width: var(--bn-wide);
  margin: 4rem auto;
  padding: 0 1.25rem;
}
.bn-newsletter .inner {
  background: var(--bn-ink);
  color: #fff;
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
}
.bn-newsletter h2 {
  font-family: var(--bn-display);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}
.bn-newsletter p {
  font-family: var(--bn-sans);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 32rem;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}

/* =============================================
   TEMPLATE GUIDES (page-templates/template-guides.php)
   ============================================= */
.bn-guides-header {
  background: var(--bn-surface);
  padding: 3.2rem 1.25rem 2.8rem;
  text-align: center;
}
.bn-guides-body { max-width: var(--bn-wide); margin: 0 auto; padding: 3rem 1.25rem 2rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .bn-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .bn-featured { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 600px) {
  .bn-grid-3 { grid-template-columns: 1fr; }
  :is(.bn-content, .editor-styles-wrapper) { font-size: 1.05rem; }
  :is(.bn-content, .editor-styles-wrapper) blockquote { font-size: 1.2rem; padding-left: 1.2rem; }
  :is(.bn-content, .editor-styles-wrapper) .bn-proscons .wp-block-column { margin-bottom: 0; }
  :is(.bn-content, .editor-styles-wrapper) .bn-table table { min-width: 560px; } /* force le scroll horizontal plutôt que l'écrasement des colonnes */
  .bn-content .bn-product .bn-product-cols > .wp-block-column:first-child {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
  .bn-article-header, .bn-home-hero { padding-top: 2.2rem; }
}

/* =============================================
   BANDE DE RÉASSURANCE (front-page)
   ============================================= */
.bn-reassurance {
  background: var(--bn-paper);
  border-top: 1px solid var(--bn-hairline);
  border-bottom: 1px solid var(--bn-hairline);
  padding: 32px 24px;
}
.bn-reassurance-inner {
  max-width: var(--bn-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.bn-reassurance-item {
  display: flex;
  align-items: center; /* icône centrée en hauteur par rapport au bloc titre + texte */
  gap: 16px;
  text-align: left;
}
.bn-reassurance-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--bn-green);
}
.bn-reassurance-title {
  font-family: var(--bn-display);
  font-size: 1.1rem;
  color: var(--bn-ink);
  margin: 0 0 4px;
}
.bn-reassurance-text {
  font-family: var(--bn-sans);
  font-size: 0.95rem;
  color: var(--bn-ink-soft);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 780px) {
  .bn-reassurance-inner { grid-template-columns: 1fr; gap: 20px; }
  .bn-reassurance { padding: 28px 20px; }
}

/* =============================================
   BANDEAU « NOS COMPARATIFS » (front-page)
   ============================================= */
.bn-band-comparatifs {
  background: var(--bn-surface);
  border-top: 1px solid var(--bn-hairline);
  border-bottom: 1px solid var(--bn-hairline);
  padding: 56px 24px;
  margin: 48px 0 0;
}
.bn-band-inner {
  max-width: var(--bn-wide);
  margin: 0 auto;
}
.bn-band-head {
  max-width: 640px;
  margin-bottom: 32px;
}
.bn-band-title {
  font-family: var(--bn-display);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--bn-ink);
  margin: 0 0 8px;
}
.bn-band-sub {
  font-size: 1.05rem;
  color: var(--bn-ink-soft);
  margin: 0;
}
.bn-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bn-band-card {
  background: var(--bn-paper);
  border: 1px solid var(--bn-hairline);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.bn-band-card:hover { border-color: var(--bn-green); }
.bn-band-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.bn-band-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.bn-band-cat {
  display: inline-block;
  margin: 16px 20px 0;
  font-family: var(--bn-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bn-green);
}
.bn-band-card-title {
  font-family: var(--bn-display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--bn-ink);
  margin: 8px 20px 20px;
}
.bn-band-card:hover .bn-band-card-title { color: var(--bn-green-dark); }
.bn-band-more {
  margin: 32px 0 0;
  text-align: center;
}
.bn-band-cta {
  display: inline-block;
  background: var(--bn-green);
  color: #fff;
  font-family: var(--bn-sans);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.bn-band-cta:hover,
.bn-band-cta:focus {
  background: var(--bn-green-dark);
  color: #fff;
}
@media (max-width: 900px) {
  .bn-band-grid { grid-template-columns: 1fr; }
  .bn-band-comparatifs { padding: 40px 20px; }
}

/* =============================================
   SURTITRE DU HÉRO (front-page)
   ============================================= */
.bn-hero-surtitre {
  font-family: var(--bn-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b70; /* gris volontaire — le vert reste réservé au commercial */
  margin: 0 0 12px;
}
