/* Blog BJ Buro : hub (home.php), rubriques (category.php), cartes (parts/blog-carte.php), navigation (parts/blog-nav.php).
   Chargée sur le blog seulement (bj-buro-core/inc/blog.php). Jetons et composants de bj-buro.css. */

.bj-blog { padding-bottom: var(--bj-s-16); }
/* Fil d'Ariane : même retrait que les catégories et les fiches (main > .bj-breadcrumb dans 03-gabarit.css) */
.bj-blog > .bj-wrap > .bj-breadcrumb { padding-top: 12px; }

/* ---------- En-tête : panneau bleu de la marque, surligneur jaune ---------- */
.bj-blog-tete {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  display: grid; gap: var(--bj-s-8); margin-top: var(--bj-s-3); padding: var(--bj-s-8) var(--bj-s-5);
  background: var(--bj-action); color: var(--bj-on-action); border-radius: var(--bj-r-md);
}
.bj-blog-tete::before { content: ""; position: absolute; z-index: -1; left: -18%; bottom: -70%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.bj-blog-tete::after { content: ""; position: absolute; z-index: -1; right: -12%; top: -50%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 226, 122, 0.10); pointer-events: none; }
.bj-blog-tete :focus-visible { outline-color: var(--bj-hl); }
.bj-blog-tete__texte { display: flex; flex-direction: column; align-items: flex-start; gap: var(--bj-s-3); min-width: 0; }
.bj-blog-tete__surtitre { margin: 0; font-size: var(--bj-fs-sm); font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.bj-blog-tete__titre { margin: 0; max-width: 18ch; font-family: var(--bj-font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: var(--bj-ls-display); line-height: 1.02; text-wrap: balance; }
.bj-blog-hl { padding: 0 0.12em; border-radius: var(--bj-r-xs); background: var(--bj-hl); color: var(--bj-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bj-blog-tete__chapo { margin: 0; max-width: 54ch; font-size: 17px; line-height: var(--bj-lh-body); color: rgba(255, 255, 255, 0.9); text-wrap: pretty; }
.bj-blog-tete__engagements { list-style: none; margin: var(--bj-s-3) 0 0; padding: 0; display: grid; gap: var(--bj-s-2); width: 100%; }
.bj-blog-tete__engagements li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--bj-r-sm); background: rgba(255, 255, 255, 0.08); font-size: var(--bj-fs-sm); line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.bj-blog-tete__engagements .bj-icon { margin-top: 1px; color: var(--bj-hl); }
.bj-blog-tete__engagements strong { display: block; color: var(--bj-on-action); font-weight: 800; }
.bj-blog-tete__une { display: flex; flex-direction: column; gap: var(--bj-s-2); min-width: 0; }
.bj-blog-tete__une-titre { margin: 0; font-size: var(--bj-fs-sm); font-weight: 800; color: var(--bj-hl); }
.bj-blog-tete__icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bj-hl); color: var(--bj-ink); }
.bj-blog-tete__icone .bj-icon { width: 26px; height: 26px; }
.bj-blog-tete__compte { margin: var(--bj-s-1) 0 0; padding: 6px 12px; border-radius: var(--bj-r-pill); background: rgba(255, 255, 255, 0.1); font-size: var(--bj-fs-sm); font-weight: 700; }
.bj-blog-tete--rubrique .bj-blog-tete__titre { max-width: 22ch; font-size: clamp(30px, 3.6vw, 44px); }
.bj-blog-tete-simple { margin-top: var(--bj-s-4); }
/* Mobile : les quatre engagements en 2 × 2, titres seuls ; le détail revient dès 720 px */
.bj-blog-tete__engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 719px) {
  .bj-blog-tete__engagements li { align-items: center; padding: 10px 12px; }
  .bj-blog-tete__detail { display: none; }
}
@media (min-width: 1024px) {
  .bj-blog-tete { padding: var(--bj-s-12) var(--bj-s-10); }
  .bj-blog-tete--une { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: center; gap: var(--bj-s-10); }
  .bj-blog-tete--rubrique { padding: var(--bj-s-10); }
}

/* Chiffres du catalogue (en-tête du hub tant qu'aucun article n'est à la une) */
.bj-blog-tete__chiffres { display: flex; flex-direction: column; gap: var(--bj-s-2); min-width: 0; }
.bj-blog-chiffres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--bj-s-3); }
.bj-blog-chiffre {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--bj-s-4); row-gap: 2px; align-items: baseline;
  padding: var(--bj-s-4) var(--bj-s-5); border-radius: var(--bj-r-md); background: var(--bj-paper); color: var(--bj-ink);
  box-shadow: 0 14px 30px rgba(10, 25, 50, 0.25);
  animation: bj-blog-apparait 480ms var(--bj-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.bj-blog-chiffre__valeur { grid-row: span 2; font-family: var(--bj-font-display); font-size: 40px; font-weight: 800; letter-spacing: var(--bj-ls-display); line-height: 1; color: var(--bj-action); font-variant-numeric: tabular-nums; }
.bj-blog-chiffre__texte { font-size: var(--bj-fs-sm); font-weight: 700; line-height: 1.35; }
.bj-blog-chiffre__base { font-size: var(--bj-fs-micro); color: var(--bj-muted); }
@media (min-width: 1024px) {
  .bj-blog-chiffre:nth-child(2) { margin-left: var(--bj-s-8); }
  .bj-blog-chiffre:nth-child(3) { margin-left: var(--bj-s-4); }
}
@media (max-width: 479px) {
  .bj-blog-chiffre { grid-template-columns: minmax(0, 1fr); }
  .bj-blog-chiffre__valeur { grid-row: auto; margin-bottom: var(--bj-s-1); }
}
@media (prefers-reduced-motion: reduce) { .bj-blog-chiffre { animation: none; } }

/* ---------- Navigation des rubriques ---------- */
.bj-blog-nav { margin-top: var(--bj-s-4); }
.bj-blog-nav__liste { list-style: none; margin: 0; padding: var(--bj-s-2) 0; display: flex; gap: var(--bj-s-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.bj-blog-nav__liste::-webkit-scrollbar { display: none; }
.bj-blog-nav__lien {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px;
  border: 1.5px solid var(--bj-line); border-radius: var(--bj-r-pill); background: var(--bj-paper);
  color: var(--bj-ink); font-size: var(--bj-fs-sm); font-weight: 700; white-space: nowrap; text-decoration: none;
  transition: border-color var(--bj-dur) var(--bj-ease), background var(--bj-dur) var(--bj-ease);
}
.bj-blog-nav__lien .bj-icon { color: var(--bj-action); }
.bj-blog-nav__lien:hover { border-color: var(--bj-action); color: var(--bj-ink); }
.bj-blog-nav__lien[aria-current="page"] { border-color: var(--bj-action); background: var(--bj-action); color: var(--bj-on-action); }
.bj-blog-nav__lien[aria-current="page"] .bj-icon { color: var(--bj-hl); }
.bj-blog-nav__n { padding: 1px 7px; border-radius: var(--bj-r-pill); background: var(--bj-bg); color: var(--bj-muted); font-size: var(--bj-fs-micro); font-variant-numeric: tabular-nums; }
.bj-blog-nav__lien[aria-current="page"] .bj-blog-nav__n { background: rgba(255, 255, 255, 0.16); color: var(--bj-on-action); }
/* Desktop : toutes les rubriques visibles, sur deux lignes au besoin */
@media (min-width: 960px) {
  .bj-blog-nav__liste { flex-wrap: wrap; overflow: visible; }
}
/* Mobile : l'en-tête du site ne colle pas, la navigation du blog colle en haut */
@media (max-width: 959px) {
  .bj-blog-nav { position: sticky; top: 0; z-index: 10; background: var(--bj-bg); box-shadow: 0 1px 0 var(--bj-line); }
}

/* ---------- Sections ---------- */
.bj-blog-section { margin-top: var(--bj-s-10); }
.bj-blog-section__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--bj-s-2) var(--bj-s-4); margin-bottom: var(--bj-s-4); }
.bj-blog-section__titre { margin: 0; font-family: var(--bj-font-display); font-weight: 800; font-size: var(--bj-fs-h2); letter-spacing: var(--bj-ls-display); line-height: var(--bj-lh-snug); }
.bj-blog-section__note { margin: 0; font-size: var(--bj-fs-sm); color: var(--bj-muted); }

/* ---------- Cartes d'article ---------- */
.bj-blog-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bj-s-5); }
@media (min-width: 640px) { .bj-blog-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bj-blog-grille:not(.bj-blog-grille--2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bj-blog-carte {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--bj-paper); border: var(--bj-b-hair); border-radius: var(--bj-r-md); color: var(--bj-ink);
  transition: transform 220ms var(--bj-ease), box-shadow 220ms var(--bj-ease);
}
.bj-blog-carte:hover { transform: translateY(-2px); box-shadow: var(--bj-shadow-md); }
.bj-blog-carte:has(.bj-blog-carte__titre a:focus-visible) { outline: 3px solid var(--bj-focus); outline-offset: 2px; }
.bj-blog-carte__visuel { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bj-tint); }
.bj-blog-carte__visuel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--bj-ease); }
.bj-blog-carte:hover .bj-blog-carte__visuel img { transform: scale(1.03); }
.bj-blog-carte__motif { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 28% 22%, rgba(255, 226, 122, 0.6), transparent 52%), var(--bj-tint); }
.bj-blog-carte__motif .bj-icon { width: 56px; height: 56px; stroke-width: 1.4; color: var(--bj-action); }
.bj-blog-carte__corps { display: flex; flex: 1; flex-direction: column; gap: var(--bj-s-2); padding: var(--bj-s-4) var(--bj-s-5) var(--bj-s-5); }
.bj-blog-carte__rubrique { position: relative; z-index: 1; align-self: flex-start; padding: 3px 9px; border-radius: var(--bj-r-pill); background: var(--bj-tint); color: var(--bj-action); font-size: var(--bj-fs-micro); font-weight: 800; text-decoration: none; }
a.bj-blog-carte__rubrique:hover { background: var(--bj-action); color: var(--bj-on-action); }
.bj-blog-carte__titre { margin: 0; font-family: var(--bj-font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
.bj-blog-carte__titre a { color: inherit; text-decoration: none; outline: none; }
.bj-blog-carte__titre a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.bj-blog-carte__chapo { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--bj-fs-sm); color: var(--bj-ink-2); }
.bj-blog-carte__meta { margin: auto 0 0; padding-top: var(--bj-s-1); display: flex; flex-wrap: wrap; gap: 2px var(--bj-s-3); font-size: var(--bj-fs-xs); color: var(--bj-muted); }
/* À la une, dans le panneau bleu */
.bj-blog-carte--une { border: 0; box-shadow: 0 18px 40px rgba(10, 25, 50, 0.3); }
.bj-blog-carte--une .bj-blog-carte__titre { font-size: 23px; }

/* ---------- Cartes de rubrique ---------- */
.bj-blog-rubriques { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bj-s-4); }
@media (min-width: 720px) { .bj-blog-rubriques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bj-blog-rubriques { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bj-blog-rubrique {
  display: flex; flex-direction: column; gap: var(--bj-s-3); padding: var(--bj-s-5);
  background: var(--bj-paper); border: var(--bj-b-hair); border-radius: var(--bj-r-md);
  animation: bj-blog-apparait 420ms var(--bj-ease) both; animation-delay: calc(min(var(--i, 0), 10) * 40ms);
}
@keyframes bj-blog-apparait { from { opacity: 0; transform: translateY(8px); } }
.bj-blog-rubrique__tete { display: flex; align-items: center; gap: var(--bj-s-3); }
.bj-blog-rubrique__icone { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bj-hl); color: var(--bj-ink); }
.bj-blog-rubrique__icone .bj-icon { width: 23px; height: 23px; }
.bj-blog-rubrique__nom { margin: 0; font-family: var(--bj-font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.bj-blog-rubrique__nom a { color: var(--bj-ink); text-decoration: none; }
.bj-blog-rubrique__nom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bj-blog-rubrique__promesse { margin: 0; font-size: var(--bj-fs-sm); line-height: var(--bj-lh-body); color: var(--bj-ink-2); }
.bj-blog-rubrique__articles { list-style: none; margin: 0; padding: 0; }
.bj-blog-rubrique__articles li { border-top: var(--bj-b-hair); }
.bj-blog-rubrique__articles a { display: block; padding: 9px 0; color: var(--bj-action); font-size: var(--bj-fs-sm); font-weight: 700; line-height: 1.35; text-decoration: none; }
.bj-blog-rubrique__articles a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bj-blog-rubrique__programme-titre { margin: var(--bj-s-1) 0 0; font-size: var(--bj-fs-xs); font-weight: 800; color: var(--bj-muted); }
.bj-blog-rubrique__programme { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bj-blog-rubrique__programme li { position: relative; padding-left: 20px; font-size: var(--bj-fs-sm); line-height: 1.4; color: var(--bj-ink-2); }
.bj-blog-rubrique__programme li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 9px; height: 9px; border: 2px solid var(--bj-action); border-radius: 50%; opacity: 0.45; }
.bj-blog-rubrique__pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bj-s-2) var(--bj-s-4); margin-top: auto; padding-top: var(--bj-s-3); border-top: var(--bj-b-hair); font-size: var(--bj-fs-sm); }
.bj-blog-rubrique__voir { display: inline-flex; align-items: center; gap: 6px; color: var(--bj-action); font-weight: 800; text-decoration: none; }
.bj-blog-rubrique__voir:hover { text-decoration: underline; text-underline-offset: 3px; }
.bj-blog-rubrique__rayon { color: var(--bj-muted); text-decoration: underline; text-underline-offset: 3px; }
.bj-blog-rubrique__rayon:hover { color: var(--bj-action); }

/* ---------- Méthode ---------- */
.bj-blog-methode { display: grid; gap: var(--bj-s-6); padding: var(--bj-s-6); border-radius: var(--bj-r-md); background: var(--bj-tint); }
.bj-blog-methode__texte { display: flex; flex-direction: column; gap: var(--bj-s-3); }
.bj-blog-methode__texte p { margin: 0; max-width: 66ch; line-height: var(--bj-lh-body); color: var(--bj-ink-2); }
.bj-blog-methode__appel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--bj-s-2); padding: var(--bj-s-5); border-radius: var(--bj-r-md); background: var(--bj-paper); box-shadow: var(--bj-shadow-sm); }
.bj-blog-methode__appel p { margin: 0; color: var(--bj-ink-2); }
.bj-blog-methode__appel .bj-blog-methode__appel-titre { font-family: var(--bj-font-display); font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--bj-ink); }
.bj-blog-methode__appel .bj-btn { margin-top: var(--bj-s-2); }
.bj-blog-methode__appel .bj-icon { margin-left: 6px; }
@media (min-width: 960px) {
  .bj-blog-methode { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: center; padding: var(--bj-s-10); }
}

/* ---------- Page de rubrique ---------- */
.bj-blog-rubrique-page { display: grid; gap: var(--bj-s-6); margin-top: var(--bj-s-6); }
.bj-blog-rubrique-page__aside { display: flex; flex-direction: column; gap: var(--bj-s-4); }
@media (min-width: 1024px) {
  .bj-blog-rubrique-page { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .bj-blog-rubrique-page__aside { position: sticky; top: calc(var(--bj-entete-h, 132px) + var(--bj-s-4)); }
}
.bj-blog-encart { display: flex; flex-direction: column; align-items: flex-start; gap: var(--bj-s-2); padding: var(--bj-s-5); border: var(--bj-b-hair); border-radius: var(--bj-r-md); background: var(--bj-paper); }
.bj-blog-encart p { margin: 0; font-size: var(--bj-fs-sm); color: var(--bj-ink-2); }
.bj-blog-encart .bj-blog-encart__titre { font-family: var(--bj-font-display); font-size: 18px; font-weight: 800; color: var(--bj-ink); }
.bj-blog-encart .bj-btn { margin-top: var(--bj-s-1); }
.bj-blog-encart .bj-icon { margin-left: 6px; }
.bj-blog-encart--calme { border-color: transparent; background: var(--bj-tint); }
.bj-blog-encart__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--bj-fs-sm); }
.bj-blog-encart__liste a { color: var(--bj-action); font-weight: 700; text-decoration: none; }
.bj-blog-encart__liste a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bj-blog-vide { display: flex; flex-direction: column; gap: var(--bj-s-3); padding: var(--bj-s-6); border: var(--bj-b-hair); border-radius: var(--bj-r-md); background: var(--bj-paper); }
.bj-blog-vide p { margin: 0; color: var(--bj-ink-2); }
.bj-blog-vide .bj-blog-rubrique__programme li { font-size: var(--bj-fs-body); }

/* ---------- Pagination ---------- */
.bj-blog-pagination { margin-top: var(--bj-s-8); }
.bj-blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bj-blog-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: var(--bj-b-hair); border-radius: var(--bj-r-sm); background: var(--bj-paper); color: var(--bj-ink); font-weight: 700; text-decoration: none; }
.bj-blog-pagination .page-numbers.current { border-color: var(--bj-action); background: var(--bj-action); color: var(--bj-on-action); }
.bj-blog-pagination a.page-numbers:hover { border-color: var(--bj-action); }

@media (prefers-reduced-motion: reduce) {
  .bj-blog-rubrique { animation: none; }
  .bj-blog-carte, .bj-blog-carte__visuel img { transition: none; }
  .bj-blog-carte:hover { transform: none; }
}

/* =================================================================================================
   Article (single.php) : une colonne de lecture de 70 caractères, la réponse courte d'abord, les preuves après.
   ================================================================================================= */
.bj-billet { margin-top: var(--bj-s-4); }
.bj-billet__tete { display: flex; flex-direction: column; align-items: flex-start; gap: var(--bj-s-3); max-width: 820px; }
.bj-billet__titre { margin: 0; font-family: var(--bj-font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: var(--bj-ls-display); line-height: 1.05; text-wrap: balance; }
.bj-billet__chapo { margin: 0; max-width: 62ch; font-size: 19px; line-height: 1.5; color: var(--bj-ink-2); text-wrap: pretty; }
.bj-billet__signature { display: flex; align-items: center; gap: var(--bj-s-3); margin-top: var(--bj-s-1); }
.bj-billet__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bj-tint); }
.bj-billet__photo--logo { display: grid; place-items: center; background: var(--bj-action); color: var(--bj-hl); }
.bj-billet__photo--logo .bj-icon { width: 22px; height: 22px; }
.bj-billet__photo--grande { width: 64px; height: 64px; }
.bj-billet__photo--initiale { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--bj-action); color: var(--bj-hl); font-family: var(--bj-font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.bj-billet__photo--initiale.bj-billet__photo--grande { font-size: 26px; }
.bj-billet__photo--initiale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bj-billet__auteur { margin: 0; font-size: var(--bj-fs-sm); color: var(--bj-ink-2); }
.bj-billet__auteur strong { color: var(--bj-ink); }
.bj-billet__dates { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px var(--bj-s-3); font-size: var(--bj-fs-xs); color: var(--bj-muted); }
.bj-billet__dates a { color: var(--bj-action); }
.bj-billet__visuel { margin: var(--bj-s-6) 0 0; overflow: hidden; border-radius: var(--bj-r-md); background: var(--bj-tint); }
.bj-billet__visuel img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* Desktop avec image à la une : une carte en deux colonnes, texte à gauche, image à droite, centrés verticalement */
@media (min-width: 1024px) {
  .bj-billet__haut--visuel {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: var(--bj-s-10);
    padding: var(--bj-s-8); border: var(--bj-b-hair); border-radius: var(--bj-r-md); background: var(--bj-paper);
  }
  .bj-billet__haut--visuel .bj-billet__tete { max-width: none; }
  .bj-billet__haut--visuel .bj-billet__titre { font-size: clamp(30px, 2.9vw, 42px); line-height: 1.08; }
  .bj-billet__haut--visuel .bj-billet__chapo { font-size: 18px; max-width: 54ch; }
  .bj-billet__haut--visuel .bj-billet__visuel { margin: 0; aspect-ratio: 4 / 3; }
  .bj-billet__haut--visuel .bj-billet__visuel img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
}
@media (min-width: 1280px) {
  .bj-billet__haut--visuel { padding: var(--bj-s-10); gap: var(--bj-s-12); }
}
.bj-billet__grille { display: grid; gap: var(--bj-s-8); margin-top: var(--bj-s-8); }
@media (min-width: 1100px) {
  .bj-billet__grille { grid-template-columns: minmax(0, 720px) minmax(260px, 300px); justify-content: start; gap: var(--bj-s-16); }
  .bj-billet__grille--seule { grid-template-columns: minmax(0, 720px); }
  .bj-billet__cote { position: sticky; top: calc(var(--bj-entete-h, 132px) + var(--bj-s-4)); align-self: start; max-height: calc(100vh - 160px); overflow: auto; }
  .bj-billet__sommaire-mobile { display: none; }
}
@media (max-width: 1099px) {
  .bj-billet__cote .bj-billet__sommaire { display: none; } /* le sommaire repliable est au-dessus du texte */
}
.bj-billet__texte { min-width: 0; max-width: 720px; }

/* La réponse courte */
.bj-billet__reponse { position: relative; margin: 0 0 var(--bj-s-8); padding: var(--bj-s-5) var(--bj-s-6); border-radius: var(--bj-r-md); background: var(--bj-tint); box-shadow: inset 4px 0 0 var(--bj-action); }
.bj-billet__reponse-titre { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--bj-s-2); font-size: var(--bj-fs-sm); font-weight: 800; color: var(--bj-action); }
.bj-billet__reponse p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--bj-ink); }
.bj-billet__reponse p + p { margin-top: var(--bj-s-2); }

/* Sommaire repliable (mobile, tablette) */
.bj-billet__sommaire-mobile { margin: 0 0 var(--bj-s-6); border: var(--bj-b-hair); border-radius: var(--bj-r-md); background: var(--bj-paper); }
.bj-billet__sommaire-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--bj-tap); padding: 0 var(--bj-s-4); font-weight: 800; cursor: pointer; list-style: none; }
.bj-billet__sommaire-mobile summary::-webkit-details-marker { display: none; }
.bj-billet__sommaire-mobile[open] summary .bj-icon { transform: rotate(180deg); }
.bj-billet__sommaire-mobile ol { margin: 0; padding: 0 var(--bj-s-4) var(--bj-s-4) 2.2em; display: grid; gap: 6px; font-size: var(--bj-fs-sm); }
.bj-billet__sommaire-mobile a { color: var(--bj-action); }

/* Corps du texte */
.bj-billet__corps { font-size: 18px; line-height: 1.7; color: var(--bj-ink-2); }
.bj-billet__corps > * { margin-top: 0; margin-bottom: 1.1em; }
.bj-billet__corps p { margin: 0 0 1.1em; font-size: inherit; color: inherit; }
.bj-billet__corps h2 { margin: 2em 0 0.6em; scroll-margin-top: calc(var(--bj-entete-h, 132px) + 16px); font-family: var(--bj-font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: var(--bj-ls-display); line-height: 1.15; color: var(--bj-ink); text-wrap: balance; }
.bj-billet__corps h3 { margin: 1.6em 0 0.5em; font-family: var(--bj-font-display); font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--bj-ink); }
.bj-billet__corps strong { color: var(--bj-ink); }
.bj-billet__corps a { color: var(--bj-action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bj-billet__corps a:hover { text-decoration-thickness: 2px; }
.bj-billet__corps ul, .bj-billet__corps ol { margin: 0 0 1.1em; padding-left: 1.3em; color: inherit; }
.bj-billet__corps li + li { margin-top: 0.35em; }
.bj-billet__corps li::marker { color: var(--bj-action); font-weight: 700; }
.bj-billet__corps blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.1em; border-left: 3px solid var(--bj-hl); font-size: 19px; color: var(--bj-ink); }
.bj-billet__corps figure { margin: 1.6em 0; }
.bj-billet__corps img { max-width: 100%; height: auto; border-radius: var(--bj-r-sm); }
.bj-billet__corps figcaption { margin-top: 8px; font-size: var(--bj-fs-sm); color: var(--bj-muted); }
.bj-billet__corps hr { margin: 2em 0; border: 0; border-top: var(--bj-b-hair); }
.bj-billet__corps code { padding: 1px 5px; border-radius: var(--bj-r-xs); background: var(--bj-bg); font-size: 0.9em; }
/* Tableaux : défilent seuls en mobile, chiffres alignés */
.bj-billet__corps .wp-block-table, .bj-billet__corps .bj-tableau { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bj-billet__corps table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; background: var(--bj-paper); border: var(--bj-b-hair); border-radius: var(--bj-r-sm); }
.bj-billet__corps th, .bj-billet__corps td, .bj-billet__corps .wp-block-table th, .bj-billet__corps .wp-block-table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: var(--bj-b-hair); }
.bj-billet__corps .wp-block-table thead { border-bottom: 0; }
.bj-billet__corps .wp-block-table table { border: var(--bj-b-hair); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.bj-billet__corps tbody tr:last-child td { border-bottom: 0; }
.bj-billet__corps thead th { background: var(--bj-action); color: var(--bj-on-action); font-weight: 800; white-space: nowrap; }
.bj-billet__corps tbody tr:nth-child(even) { background: var(--bj-bg); }
.bj-billet__corps td.nombre, .bj-billet__corps th.nombre, .bj-billet__corps .has-text-align-right { text-align: right; white-space: nowrap; }
.bj-billet__corps table caption { caption-side: bottom; padding-top: 8px; text-align: left; font-size: var(--bj-fs-sm); color: var(--bj-muted); }
/* Questions dépliables (bloc Détails) */
.bj-billet__corps details { margin: 0 0 0.6em; border: var(--bj-b-hair); border-radius: var(--bj-r-sm); background: var(--bj-paper); }
.bj-billet__corps details summary { padding: 12px 16px; font-weight: 800; color: var(--bj-ink); cursor: pointer; }
.bj-billet__corps details > :not(summary) { padding: 0 16px; }

/* Blocs : le chiffre, le calcul, à retenir */
.bj-blog-bloc { margin: 1.6em 0; padding: var(--bj-s-5) var(--bj-s-6); border-radius: var(--bj-r-md); }
.bj-blog-bloc p { margin: 0 0 0.6em; }
.bj-blog-bloc > :last-child { margin-bottom: 0; }
.bj-blog-bloc__titre { font-size: var(--bj-fs-sm); font-weight: 800; color: var(--bj-action); }
.bj-blog-bloc--chiffre { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--bj-s-2) var(--bj-s-5); background: var(--bj-action); color: var(--bj-on-action); }
.bj-blog-bloc--chiffre .bj-blog-bloc__valeur { margin: 0; font-family: var(--bj-font-display); font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: var(--bj-ls-display); line-height: 1; color: var(--bj-hl); white-space: nowrap; }
.bj-blog-bloc--chiffre figcaption, .bj-billet__corps .bj-blog-bloc--chiffre figcaption { display: flex; flex-direction: column; gap: 4px; margin: 0; color: var(--bj-on-action); }
.bj-blog-bloc__texte { font-size: 17px; font-weight: 700; line-height: 1.4; }
.bj-blog-bloc__source { font-size: var(--bj-fs-xs); color: rgba(255, 255, 255, 0.75); }
@media (max-width: 539px) { .bj-blog-bloc--chiffre { grid-template-columns: minmax(0, 1fr); } }
.bj-blog-bloc--calcul { border: 1.5px dashed var(--bj-action); background: var(--bj-paper); font-size: 16px; }
.bj-blog-bloc--calcul p { color: var(--bj-ink); }
.bj-blog-bloc--retenir { background: #FFF6D6; box-shadow: inset 4px 0 0 var(--bj-hl); }
.bj-blog-bloc--retenir .bj-blog-bloc__titre { color: var(--bj-ink); }
.bj-blog-bloc--retenir p, .bj-blog-bloc--retenir li { color: var(--bj-ink); }

/* Carte produit (dans le texte, dans la colonne) */
.bj-blog-produit { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: var(--bj-s-3); padding: var(--bj-s-3); border: var(--bj-b-hair); border-radius: var(--bj-r-md); background: var(--bj-paper); font-size: var(--bj-fs-sm); line-height: 1.35; }
.bj-blog-produit--contenu { margin: 1.4em 0; max-width: 520px; }
.bj-blog-produit__image { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: var(--bj-r-sm); background: var(--bj-bg); }
.bj-blog-produit__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }
.bj-blog-produit__infos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bj-billet__corps .bj-blog-produit__nom, .bj-blog-produit__nom { color: var(--bj-ink); font-weight: 700; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bj-blog-produit__nom:hover { color: var(--bj-action); text-decoration: underline; }
.bj-blog-produit__prix { margin: 0 !important; font-weight: 800; color: var(--bj-ink) !important; font-variant-numeric: tabular-nums; }
.bj-blog-produit__prix small { font-size: var(--bj-fs-micro); }
.bj-blog-produit__dispo { margin: 0 !important; font-size: var(--bj-fs-xs) !important; color: var(--bj-muted) !important; }
.bj-blog-produit__dispo.is-stock { color: var(--bj-stock) !important; }

/* Carte produit dans le texte : mise en avant. Un seul lien (le nom), étendu à toute la carte ; le bouton est visuel. */
.bj-blog-produit--contenu { position: relative; grid-template-columns: 168px minmax(0, 1fr); gap: var(--bj-s-5); margin: 1.8em 0; max-width: none; padding: var(--bj-s-4) var(--bj-s-5) var(--bj-s-4) var(--bj-s-4); border: 1.5px solid var(--bj-action); box-shadow: var(--bj-shadow-sm); font-size: var(--bj-fs-body); transition: box-shadow var(--bj-dur) var(--bj-ease); }
.bj-blog-produit--contenu:hover { box-shadow: var(--bj-shadow-md); }
.bj-blog-produit--contenu .bj-blog-produit__image { width: 168px; height: 168px; background: var(--bj-paper); }
.bj-blog-produit--contenu .bj-blog-produit__infos { gap: var(--bj-s-2); }
.bj-blog-produit__etiquette { align-self: flex-start; margin: 0 !important; padding: 2px 8px; border-radius: var(--bj-r-xs); background: var(--bj-hl); color: var(--bj-ink) !important; font-size: var(--bj-fs-xs) !important; font-weight: 800; line-height: 1.5; }
.bj-billet__corps .bj-blog-produit--contenu .bj-blog-produit__nom { font-family: var(--bj-font-display); font-size: var(--bj-fs-h3); line-height: var(--bj-lh-snug); -webkit-line-clamp: 3; }
.bj-blog-produit--contenu .bj-blog-produit__nom::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bj-blog-produit--contenu:hover .bj-blog-produit__nom { color: var(--bj-action); text-decoration: underline; }
.bj-blog-produit__texte { margin: 0 !important; color: var(--bj-ink-2) !important; font-size: var(--bj-fs-sm) !important; line-height: 1.45 !important; }
.bj-blog-produit__achat { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--bj-s-3); margin-top: var(--bj-s-1); }
.bj-blog-produit--contenu .bj-blog-produit__prix { font-size: var(--bj-fs-price); letter-spacing: var(--bj-ls-price); line-height: 1.2; }
.bj-blog-produit--contenu .bj-blog-produit__prix small { font-size: var(--bj-fs-xs); letter-spacing: 0; }
.bj-blog-produit--contenu .bj-blog-produit__dispo { font-size: var(--bj-fs-sm) !important; }
.bj-blog-produit__bouton { flex: none; }
.bj-blog-produit--contenu:hover .bj-blog-produit__bouton { background: var(--bj-action-hover); }
@media (max-width: 599px) {
  .bj-blog-produit--contenu { grid-template-columns: minmax(0, 1fr); gap: var(--bj-s-3); padding: var(--bj-s-4); }
  .bj-blog-produit--contenu .bj-blog-produit__image { width: 100%; height: 150px; }
  .bj-blog-produit--contenu .bj-blog-produit__image img { height: 150px; }
  .bj-blog-produit__bouton { width: 100%; }
}

/* Colonne : sommaire et produits cités */
.bj-billet__cote { display: flex; flex-direction: column; gap: var(--bj-s-6); }
.bj-billet__cote-titre { margin: 0 0 var(--bj-s-2); font-size: var(--bj-fs-sm); font-weight: 800; color: var(--bj-ink); }
.bj-billet__sommaire ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bj-line); }
.bj-billet__sommaire a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--bj-muted); font-size: var(--bj-fs-sm); line-height: 1.35; text-decoration: none; transition: color var(--bj-dur) var(--bj-ease), border-color var(--bj-dur) var(--bj-ease); }
.bj-billet__sommaire a:hover { color: var(--bj-ink); }
.bj-billet__sommaire a[aria-current] { border-left-color: var(--bj-action); color: var(--bj-action); font-weight: 700; }
.bj-billet__produits { display: flex; flex-direction: column; gap: var(--bj-s-2); }

/* Annexes : méthode, sources, mises à jour */
.bj-billet__annexe { margin-top: var(--bj-s-8); padding-top: var(--bj-s-6); border-top: var(--bj-b-hair); font-size: 16px; line-height: 1.6; color: var(--bj-ink-2); }
.bj-billet__annexe h2 { margin: 0 0 var(--bj-s-3); font-family: var(--bj-font-display); font-size: 20px; font-weight: 800; color: var(--bj-ink); }
.bj-billet__annexe p { margin: 0 0 0.8em; }
.bj-billet__methode { padding: var(--bj-s-5) var(--bj-s-6); border: 1.5px dashed var(--bj-action); border-radius: var(--bj-r-md); }
.bj-billet__sources { margin: var(--bj-s-5) 0 0; font-size: var(--bj-fs-sm); line-height: 1.6; color: var(--bj-muted); }
.bj-billet__sources strong { color: var(--bj-ink); }
.bj-billet__sources a { color: var(--bj-muted); text-decoration: underline; text-underline-offset: 2px; }
.bj-billet__sources a:hover { color: var(--bj-action); }
.bj-billet__sources span { margin: 0 4px; }
.bj-billet__historique { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--bj-fs-sm); }
.bj-billet__historique time { display: inline-block; min-width: 9em; font-weight: 700; color: var(--bj-ink); }

/* Encadré auteur */
.bj-billet__auteur-boite { display: flex; align-items: flex-start; gap: var(--bj-s-4); margin-top: var(--bj-s-8); padding: var(--bj-s-5); border-radius: var(--bj-r-md); background: var(--bj-paper); border: var(--bj-b-hair); }
.bj-billet__auteur-boite p { margin: 0; font-size: var(--bj-fs-sm); color: var(--bj-ink-2); }
.bj-billet__auteur-boite .bj-billet__auteur-nom { font-family: var(--bj-font-display); font-size: 18px; font-weight: 800; color: var(--bj-ink); }
.bj-billet__auteur-boite .bj-billet__auteur-fonction { margin-bottom: 6px; color: var(--bj-muted); }

/* Pour aller plus loin */
.bj-billet__suite { margin-top: var(--bj-s-12); padding-top: var(--bj-s-8); border-top: var(--bj-b-hair); }
.bj-billet__suite .bj-blog-section__titre { margin-bottom: var(--bj-s-4); }
.bj-billet__suite-grille { display: grid; gap: var(--bj-s-4); }
@media (min-width: 720px) { .bj-billet__suite-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bj-billet__voisins-titre { margin: var(--bj-s-8) 0 var(--bj-s-4); font-family: var(--bj-font-display); font-size: 20px; font-weight: 800; }

@media print {
  .bj-billet__cote, .bj-billet__suite, .bj-blog-nav, .bj-billet__sommaire-mobile { display: none; }
  .bj-billet__corps { font-size: 12pt; }
}
