/*!
Theme Name: Bebeours Mag
Theme URI: https://www.bebeours.com/
Author: Équipe Bebeours
Author URI: https://www.bebeours.com/
Description: Thème WordPress sur mesure pour Bebeours.com — magazine des (futures) mamans. Mobile-first, ultra rapide, optimisé Core Web Vitals (INP, LCP, CLS), Discover, AdSense et E-E-A-T. Polices locales, zéro jQuery, blocs éditoriaux dédiés (Mon expérience, Quand consulter, Réponse rapide), schema.org natif, support dossiers/piliers.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bebeours-mag
Tags: blog, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS — variables CSS
   ========================================================================== */
:root {
  /* Couleurs */
  --bb-rose: #C44569;
  --bb-rose-soft: #FCE4EC;
  --bb-rose-dark: #9D2D4F;
  --bb-vert: #5D8A66;
  --bb-vert-soft: #E8F0E9;
  --bb-vert-dark: #3F6448;
  --bb-creme: #FAF7F2;
  --bb-creme-dark: #F0EBE2;
  --bb-noir: #1A1A1A;
  --bb-gris-900: #2D2D2D;
  --bb-gris-700: #5A5A5A;
  --bb-gris-500: #8A8A8A;
  --bb-gris-300: #D0D0D0;
  --bb-gris-200: #E5E5E5;
  --bb-gris-100: #F5F5F5;
  --bb-blanc: #FFFFFF;
  --bb-alerte: #C5413E;
  --bb-alerte-soft: #FBEAE9;
  --bb-info: #2D6A8F;
  --bb-info-soft: #E5F0F6;

  /* Typographie */
  --bb-ff-titre: "Fraunces", Georgia, "Times New Roman", serif;
  --bb-ff-corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Échelle modulaire (ratio 1.2 mobile, 1.25 desktop via clamp) */
  --bb-fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --bb-fs-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --bb-fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --bb-fs-md: clamp(1.125rem, 1.07rem + 0.27vw, 1.25rem);
  --bb-fs-lg: clamp(1.25rem, 1.16rem + 0.45vw, 1.5rem);
  --bb-fs-xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --bb-fs-2xl: clamp(1.875rem, 1.6rem + 1.4vw, 2.5rem);
  --bb-fs-3xl: clamp(2.25rem, 1.85rem + 2vw, 3.25rem);

  /* Espacements (échelle 8px) */
  --bb-sp-1: 0.25rem;
  --bb-sp-2: 0.5rem;
  --bb-sp-3: 0.75rem;
  --bb-sp-4: 1rem;
  --bb-sp-5: 1.5rem;
  --bb-sp-6: 2rem;
  --bb-sp-7: 3rem;
  --bb-sp-8: 4rem;
  --bb-sp-9: 6rem;

  /* Layout */
  --bb-container: 1200px;
  --bb-container-narrow: 760px;
  --bb-container-text: 800px;
  --bb-radius-sm: 4px;
  --bb-radius: 8px;
  --bb-radius-lg: 16px;
  --bb-radius-xl: 24px;

  /* Ombres (très douces, on ne les abuse pas) */
  --bb-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --bb-shadow: 0 2px 8px rgba(0,0,0,0.06);
  --bb-shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

  /* Transitions */
  --bb-tr-fast: 150ms ease;
  --bb-tr: 250ms ease;
}

/* ==========================================================================
   2. RESET MINIMAL (pas de Normalize, on a pas besoin de 600 lignes)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { margin: 0; min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: var(--bb-ff-corps); font-size: var(--bb-fs-base); color: var(--bb-gris-900); background: var(--bb-creme); }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; margin: 0 0 var(--bb-sp-4); }
a { color: var(--bb-rose-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--bb-tr-fast); }
a:hover { color: var(--bb-rose); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--bb-rose); outline-offset: 2px; border-radius: var(--bb-radius-sm); }
hr { border: 0; border-top: 1px solid var(--bb-gris-200); margin: var(--bb-sp-6) 0; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================================
   3. TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--bb-ff-titre); font-weight: 600; line-height: 1.2; color: var(--bb-noir); letter-spacing: -0.01em; }
h1 { font-size: var(--bb-fs-3xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--bb-fs-2xl); }
h3 { font-size: var(--bb-fs-xl); }
h4 { font-size: var(--bb-fs-lg); }
h5, h6 { font-family: var(--bb-ff-corps); font-weight: 600; font-size: var(--bb-fs-md); margin-bottom: var(--bb-sp-3); }
.eyebrow { font-family: var(--bb-ff-corps); font-size: var(--bb-fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-rose); margin-bottom: var(--bb-sp-2); display: inline-block; }
blockquote { margin: var(--bb-sp-6) 0; padding: 0 0 0 var(--bb-sp-5); border-left: 4px solid var(--bb-rose); font-family: var(--bb-ff-titre); font-size: var(--bb-fs-lg); font-style: italic; color: var(--bb-gris-700); }
blockquote cite { display: block; margin-top: var(--bb-sp-3); font-family: var(--bb-ff-corps); font-size: var(--bb-fs-sm); font-style: normal; color: var(--bb-gris-500); }

/* ==========================================================================
   4. ACCESSIBILITÉ
   ========================================================================== */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background-color: var(--bb-blanc); border-radius: var(--bb-radius); box-shadow: var(--bb-shadow-lg); clip: auto !important; -webkit-clip-path: none; clip-path: none; color: var(--bb-noir); display: block; font-size: 1rem; font-weight: 700; height: auto; left: var(--bb-sp-3); padding: var(--bb-sp-3) var(--bb-sp-4); top: var(--bb-sp-3); width: auto; z-index: 100000; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: var(--bb-sp-3); top: var(--bb-sp-3); z-index: 100000; }

/* ==========================================================================
   5. LAYOUT — container, grilles
   ========================================================================== */
.bb-container { width: 100%; max-width: var(--bb-container); margin: 0 auto; padding: 0 var(--bb-sp-4); }
.bb-container--narrow { max-width: var(--bb-container-narrow); }
.bb-container--text { max-width: var(--bb-container-text); }
@media (min-width: 768px) { .bb-container { padding: 0 var(--bb-sp-6); } }

.bb-stack > * + * { margin-top: var(--bb-sp-4); }
.bb-stack-lg > * + * { margin-top: var(--bb-sp-6); }

.bb-grid { display: grid; gap: var(--bb-sp-5); }
.bb-grid--2 { grid-template-columns: 1fr; }
.bb-grid--3 { grid-template-columns: 1fr; }
.bb-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .bb-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .bb-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .bb-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .bb-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Layout principal article + sidebar */
.bb-layout { display: grid; gap: var(--bb-sp-7); padding: var(--bb-sp-6) 0; }
@media (min-width: 1024px) {
  .bb-layout--with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.bb-header { background: var(--bb-blanc); border-bottom: 1px solid var(--bb-gris-200); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(255,255,255,0.94); }
.bb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--bb-sp-4); height: 64px; }
.bb-brand { display: flex; align-items: center; gap: var(--bb-sp-3); text-decoration: none; flex-shrink: 0; }
.bb-brand__logo { height: 36px; width: auto; }
.bb-brand__name { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-lg); font-weight: 700; color: var(--bb-noir); letter-spacing: -0.02em; }

.bb-nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--bb-radius); color: var(--bb-noir); }
.bb-nav-toggle:hover { background: var(--bb-gris-100); }
.bb-nav-toggle__icon { width: 24px; height: 24px; }
.bb-nav-toggle .bb-icon-close { display: none; }
.bb-nav-toggle[aria-expanded="true"] .bb-icon-bars { display: none; }
.bb-nav-toggle[aria-expanded="true"] .bb-icon-close { display: block; }

.bb-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bb-blanc); padding: var(--bb-sp-5); overflow-y: auto; }
.bb-nav[data-open="true"] { display: block; }
.bb-nav__list { list-style: none; padding: 0; margin: 0; }
.bb-nav__item { border-bottom: 1px solid var(--bb-gris-100); }
.bb-nav__link { display: block; padding: var(--bb-sp-4) 0; font-family: var(--bb-ff-titre); font-size: var(--bb-fs-lg); color: var(--bb-noir); text-decoration: none; font-weight: 500; }
.bb-nav__link:hover, .bb-nav .current-menu-item > a { color: var(--bb-rose); }

@media (min-width: 1024px) {
  .bb-header__inner { height: 72px; }
  .bb-nav-toggle { display: none; }
  .bb-nav { display: flex !important; position: static; padding: 0; background: transparent; overflow: visible; flex: 1; justify-content: center; }

  /* Cible le ul généré par WP (avec ou sans classe bb-nav__list) */
  .bb-nav > ul { display: flex !important; gap: 0 !important; flex-wrap: nowrap !important; align-items: center; list-style: none; padding: 0; margin: 0; }

  /* Cible les li générés par WP (classes menu-item-*) */
  .bb-nav > ul > li { border: 0 !important; position: relative; }

  /* Cible les liens directs dans les li */
  .bb-nav > ul > li > a {
    font-family: var(--bb-ff-corps) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: var(--bb-radius) !important;
    white-space: nowrap !important;
    display: block !important;
    text-decoration: none !important;
    color: var(--bb-noir) !important;
    line-height: 1.4;
  }
  .bb-nav > ul > li > a:hover,
  .bb-nav > ul > li.current-menu-item > a,
  .bb-nav > ul > li.current-menu-ancestor > a { background: var(--bb-rose-soft) !important; color: var(--bb-rose-dark) !important; }

  /* Compatibilité classes bb-nav__ si le walker les génère */
  .bb-nav__list { display: flex !important; gap: 0 !important; flex-wrap: nowrap !important; align-items: center; }
  .bb-nav__item { border: 0 !important; position: relative; }
  .bb-nav__link { font-family: var(--bb-ff-corps) !important; font-size: 0.9375rem !important; font-weight: 500 !important; padding: 0.625rem 0.875rem !important; border-radius: var(--bb-radius); white-space: nowrap !important; display: block !important; color: var(--bb-noir) !important; text-decoration: none !important; }
  .bb-nav__link:hover { background: var(--bb-rose-soft) !important; color: var(--bb-rose-dark) !important; }

  /* Sous-menus */
  .bb-nav > ul > li > ul,
  .bb-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bb-blanc); box-shadow: var(--bb-shadow-lg); border-radius: var(--bb-radius); min-width: 220px; padding: var(--bb-sp-2); list-style: none; margin: 0; z-index: 10; }
  .bb-nav > ul > li:hover > ul,
  .bb-nav > ul > li:focus-within > ul,
  .bb-nav__item:hover > .sub-menu, .bb-nav__item:focus-within > .sub-menu { display: block; }
  .bb-nav .sub-menu a,
  .bb-nav > ul > li > ul > li > a { display: block !important; padding: var(--bb-sp-3) !important; font-size: var(--bb-fs-sm) !important; border-radius: var(--bb-radius-sm); text-decoration: none !important; color: var(--bb-noir) !important; white-space: normal !important; }
}

.bb-header__search { display: none; }
@media (min-width: 1024px) { .bb-header__search { display: flex; align-items: center; } }
.bb-header__search-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bb-header__search-btn:hover { background: var(--bb-gris-100); }

/* Bottom bar mobile */
.bb-bottombar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bb-blanc); border-top: 1px solid var(--bb-gris-200); display: grid; grid-template-columns: repeat(5, 1fr); padding: var(--bb-sp-2) 0 calc(var(--bb-sp-2) + env(safe-area-inset-bottom)); z-index: 90; }
.bb-bottombar__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--bb-sp-1); text-decoration: none; color: var(--bb-gris-700); font-size: 0.6875rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; width: 100%; }
.bb-bottombar__item.is-active { color: var(--bb-rose); }
.bb-bottombar__item svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .bb-bottombar { display: none; } body { padding-bottom: 0 !important; } }
@media (max-width: 1023px) { body { padding-bottom: 60px; } }

/* ==========================================================================
   7. CARTES ARTICLES
   ========================================================================== */
.bb-card { display: flex; flex-direction: column; background: var(--bb-blanc); border-radius: var(--bb-radius-lg); overflow: hidden; transition: transform var(--bb-tr), box-shadow var(--bb-tr); }
.bb-card:hover { transform: translateY(-2px); box-shadow: var(--bb-shadow-lg); }
.bb-card__media { position: relative; aspect-ratio: 16/10; background: var(--bb-gris-100); overflow: hidden; }
.bb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.bb-card:hover .bb-card__media img { transform: scale(1.04); }
.bb-card__category { position: absolute; top: var(--bb-sp-3); left: var(--bb-sp-3); background: var(--bb-blanc); color: var(--bb-rose-dark); padding: 4px 10px; border-radius: 999px; font-size: var(--bb-fs-xs); font-weight: 600; text-decoration: none; letter-spacing: 0.02em; }
.bb-card__category:hover { background: var(--bb-rose); color: var(--bb-blanc); }
.bb-card__body { padding: var(--bb-sp-4) var(--bb-sp-4) var(--bb-sp-5); display: flex; flex-direction: column; flex: 1; }
.bb-card__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-md); font-weight: 600; line-height: 1.3; margin-bottom: var(--bb-sp-3); color: var(--bb-noir); }
.bb-card__title a { color: inherit; text-decoration: none; }
.bb-card__title a:hover { color: var(--bb-rose-dark); }
.bb-card__excerpt { font-size: var(--bb-fs-sm); color: var(--bb-gris-700); margin-bottom: var(--bb-sp-3); line-height: 1.5; }
.bb-card__meta { margin-top: auto; display: flex; align-items: center; gap: var(--bb-sp-2); font-size: var(--bb-fs-xs); color: var(--bb-gris-500); }
.bb-card__author { display: flex; align-items: center; gap: var(--bb-sp-2); color: var(--bb-gris-700); text-decoration: none; font-weight: 500; }
.bb-card__author img { width: 24px; height: 24px; border-radius: 50%; }
.bb-card__date { color: var(--bb-gris-500); }
.bb-card__date::before { content: "·"; margin-right: var(--bb-sp-2); }
.bb-card__readtime { margin-left: auto; }

/* Variante héro */
.bb-card--hero { grid-column: 1/-1; }
@media (min-width: 768px) {
  .bb-card--hero { display: grid; grid-template-columns: 1.4fr 1fr; align-items: stretch; min-height: 380px; }
  .bb-card--hero .bb-card__media { aspect-ratio: unset; height: 100%; min-height: 320px; }
  .bb-card--hero .bb-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .bb-card--hero .bb-card__media { position: relative; }
  .bb-card--hero .bb-card__body { padding: var(--bb-sp-6) var(--bb-sp-7); display: flex; flex-direction: column; justify-content: center; }
  .bb-card--hero .bb-card__title { font-size: var(--bb-fs-2xl); margin-bottom: var(--bb-sp-4); }
  .bb-card--hero .bb-card__excerpt { font-size: var(--bb-fs-base); margin-bottom: var(--bb-sp-4); }
}

/* Variante list (horizontale, sidebar/footer) */
.bb-card--list { flex-direction: row; gap: var(--bb-sp-3); background: transparent; border-radius: 0; box-shadow: none; padding: var(--bb-sp-3) 0; border-bottom: 1px solid var(--bb-gris-100); }
/* Espace entre les li du widget sidebar */
.bb-widget li { list-style: none; padding: 0; margin: 0; }
.bb-widget li + li { border-top: 1px solid var(--bb-gris-100); }
.bb-widget li:has(.bb-card--list) { border: 0; }
.bb-card--list:hover { transform: none; box-shadow: none; }
.bb-card--list:last-child { border-bottom: 0; padding-bottom: 0; }
.bb-card--list .bb-card__media { width: 88px; height: 88px; flex-shrink: 0; aspect-ratio: 1; border-radius: var(--bb-radius); overflow: hidden; }
.bb-card--list .bb-card__body { padding: 0; }
.bb-card--list .bb-card__title { font-size: var(--bb-fs-sm); line-height: 1.4; }
.bb-card--list:first-child .bb-card__title a { color: var(--bb-rose-dark); }
.bb-card--list .bb-card__excerpt { display: none; }
/* Séparateur entre cartes list consécutives */
.bb-card--list + .bb-card--list { margin-top: 0; }
.bb-widget .bb-card--list { border-bottom: 1px solid var(--bb-gris-100) !important; margin-bottom: 0; }
.bb-widget .bb-card--list:last-of-type { border-bottom: 0 !important; }

/* ==========================================================================
   8. SECTION TITRES
   ========================================================================== */
.bb-section { margin: var(--bb-sp-7) 0; }
.bb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--bb-sp-4); margin-bottom: var(--bb-sp-5); padding-bottom: var(--bb-sp-3); border-bottom: 2px solid var(--bb-noir); }
.bb-section__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-xl); font-weight: 700; margin: 0; color: var(--bb-noir); }
.bb-section__link { font-size: var(--bb-fs-sm); color: var(--bb-rose-dark); text-decoration: none; font-weight: 500; flex-shrink: 0; }
.bb-section__link:hover { text-decoration: underline; }

/* ==========================================================================
   9. SINGLE — article
   ========================================================================== */
.bb-article { background: var(--bb-blanc); border-radius: var(--bb-radius-lg); overflow: hidden; }
.bb-article__hero { position: relative; }
.bb-article__hero-media { aspect-ratio: 3/2; background: var(--bb-gris-100); }
.bb-article__hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .bb-article__hero-media { aspect-ratio: 21/9; } }

.bb-article__header { padding: var(--bb-sp-6) var(--bb-sp-4) var(--bb-sp-5); max-width: 860px; margin: 0 auto; }
@media (min-width: 768px) { .bb-article__header { padding: var(--bb-sp-7) var(--bb-sp-6) var(--bb-sp-6); } }

.bb-article__category { display: inline-block; background: var(--bb-rose-soft); color: var(--bb-rose-dark); padding: 4px 12px; border-radius: 999px; font-size: var(--bb-fs-xs); font-weight: 600; text-decoration: none; margin-bottom: var(--bb-sp-3); letter-spacing: 0.02em; }
.bb-article__title { font-size: var(--bb-fs-3xl); margin-bottom: var(--bb-sp-4); }
.bb-article__excerpt { font-size: var(--bb-fs-md); color: var(--bb-gris-700); line-height: 1.5; font-family: var(--bb-ff-titre); font-style: italic; }

.bb-author-card { display: flex; align-items: center; gap: var(--bb-sp-3); padding: var(--bb-sp-4); margin-top: var(--bb-sp-5); background: var(--bb-creme); border-radius: var(--bb-radius); }
.bb-author-card__avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.bb-author-card__name { font-weight: 600; color: var(--bb-noir); display: block; line-height: 1.3; text-decoration: none; }
.bb-author-card__bio { font-size: var(--bb-fs-xs); color: var(--bb-gris-700); margin-top: 2px; line-height: 1.4; }
.bb-author-card__meta { font-size: var(--bb-fs-xs); color: var(--bb-gris-500); margin-top: 2px; }

.bb-article__content { padding: 0 var(--bb-sp-4) var(--bb-sp-7); max-width: 860px; margin: 0 auto; font-size: var(--bb-fs-base); line-height: 1.7; }
@media (min-width: 768px) { .bb-article__content { padding: 0 var(--bb-sp-6) var(--bb-sp-8); } }
.bb-article__content p { margin-bottom: var(--bb-sp-5); }
.bb-article__content h2 { font-size: var(--bb-fs-2xl); margin-top: var(--bb-sp-7); margin-bottom: var(--bb-sp-4); }
.bb-article__content h3 { font-size: var(--bb-fs-xl); margin-top: var(--bb-sp-6); margin-bottom: var(--bb-sp-4); }
.bb-article__content ul, .bb-article__content ol { margin: 0 0 var(--bb-sp-5); padding-left: var(--bb-sp-5); }
.bb-article__content li { margin-bottom: var(--bb-sp-2); }
.bb-article__content img { border-radius: var(--bb-radius); margin: var(--bb-sp-5) 0; }
.bb-article__content figure { margin: var(--bb-sp-6) 0; }
.bb-article__content figcaption { text-align: center; font-size: var(--bb-fs-sm); color: var(--bb-gris-500); margin-top: var(--bb-sp-2); }

/* ==========================================================================
   10. BLOCS ÉDITORIAUX SUR MESURE
   ========================================================================== */
/* Bloc Réponse rapide */
.bb-quick-answer { background: var(--bb-vert-soft); border-left: 4px solid var(--bb-vert); padding: var(--bb-sp-5); border-radius: var(--bb-radius); margin: var(--bb-sp-6) 0; }
.bb-quick-answer__label { font-family: var(--bb-ff-corps); font-size: var(--bb-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-vert-dark); display: flex; align-items: center; gap: var(--bb-sp-2); margin-bottom: var(--bb-sp-3); }
.bb-quick-answer__label::before { content: ""; width: 16px; height: 16px; background: var(--bb-vert); border-radius: 50%; flex-shrink: 0; }
.bb-quick-answer__content { font-size: var(--bb-fs-md); color: var(--bb-gris-900); margin: 0; line-height: 1.5; }
.bb-quick-answer__content strong { color: var(--bb-vert-dark); }

/* Bloc Mon expérience */
.bb-experience { background: var(--bb-rose-soft); border-radius: var(--bb-radius-lg); padding: var(--bb-sp-5); margin: var(--bb-sp-6) 0; position: relative; }
.bb-experience__head { display: flex; align-items: center; gap: var(--bb-sp-3); margin-bottom: var(--bb-sp-4); }
.bb-experience__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--bb-blanc); }
.bb-experience__label { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-md); font-weight: 600; color: var(--bb-rose-dark); }
.bb-experience__author { font-size: var(--bb-fs-xs); color: var(--bb-gris-700); }
.bb-experience__content { font-style: italic; color: var(--bb-gris-900); margin: 0; line-height: 1.6; }
.bb-experience__content p:last-child { margin-bottom: 0; }

/* Bloc Quand consulter */
.bb-warning { background: var(--bb-alerte-soft); border: 1px solid #F0C7C5; border-radius: var(--bb-radius); padding: var(--bb-sp-5); margin: var(--bb-sp-6) 0; }
.bb-warning__head { display: flex; align-items: center; gap: var(--bb-sp-3); margin-bottom: var(--bb-sp-3); }
.bb-warning__icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--bb-alerte); }
.bb-warning__title { font-family: var(--bb-ff-corps); font-size: var(--bb-fs-md); font-weight: 700; color: var(--bb-alerte); margin: 0; }
.bb-warning__content { color: var(--bb-gris-900); margin: 0; }
.bb-warning__content ul { margin: var(--bb-sp-2) 0 0; padding-left: var(--bb-sp-5); }

/* Bloc FAQ pliable */
.bb-faq { margin: var(--bb-sp-7) 0; }
.bb-faq__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-xl); font-weight: 700; margin-bottom: var(--bb-sp-4); }
.bb-faq__item { border-bottom: 1px solid var(--bb-gris-200); }
.bb-faq__item details { padding: var(--bb-sp-4) 0; }
.bb-faq__item summary { cursor: pointer; font-weight: 600; color: var(--bb-noir); list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--bb-sp-3); font-size: var(--bb-fs-md); }
.bb-faq__item summary::-webkit-details-marker { display: none; }
.bb-faq__item summary::after { content: "+"; flex-shrink: 0; font-size: 1.5rem; line-height: 1; color: var(--bb-rose); transition: transform var(--bb-tr); font-weight: 300; }
.bb-faq__item details[open] summary::after { content: "−"; }
.bb-faq__item details > *:not(summary) { margin-top: var(--bb-sp-3); color: var(--bb-gris-700); }

/* Bloc Dossier — articles liés */
.bb-dossier { background: var(--bb-vert-soft); border-radius: var(--bb-radius-lg); padding: var(--bb-sp-5); margin: var(--bb-sp-6) 0; }
.bb-dossier__head { display: flex; align-items: center; gap: var(--bb-sp-3); margin-bottom: var(--bb-sp-4); }
.bb-dossier__label { font-family: var(--bb-ff-corps); font-size: var(--bb-fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-vert-dark); }
.bb-dossier__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-lg); margin: 0; }
.bb-dossier__list { list-style: none; padding: 0; margin: 0; }
.bb-dossier__item { padding: var(--bb-sp-3) 0; border-top: 1px solid rgba(93, 138, 102, 0.2); }
.bb-dossier__item:first-child { border-top: 0; }
.bb-dossier__item a { color: var(--bb-vert-dark); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: var(--bb-sp-2); }
.bb-dossier__item a:hover { color: var(--bb-noir); }
.bb-dossier__item.is-current { font-weight: 700; color: var(--bb-noir); }
.bb-dossier__item.is-current::before { content: "▶"; color: var(--bb-vert); margin-right: var(--bb-sp-2); font-size: 0.625rem; }

/* Bloc À lire aussi (en fin d'article) */
.bb-related { margin: var(--bb-sp-7) 0; padding: var(--bb-sp-6) 0 var(--bb-sp-4); border-top: 2px solid var(--bb-noir); }
.bb-related__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-xl); font-weight: 700; margin-bottom: var(--bb-sp-5); }
.bb-related__list { display: grid; gap: var(--bb-sp-4); list-style: none; padding: 0; margin: 0; grid-template-columns: 1fr; }
@media (min-width: 600px) { .bb-related__list { grid-template-columns: repeat(3, 1fr); } }
/* Cartes "À lire aussi" — fond blanc, ombre, image bien proportionnée */
.bb-related .bb-card { background: var(--bb-blanc); border-radius: var(--bb-radius-lg); overflow: hidden; box-shadow: var(--bb-shadow); transition: transform var(--bb-tr), box-shadow var(--bb-tr); }
.bb-related .bb-card:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow-lg); }
.bb-related .bb-card__media { aspect-ratio: 3/2; background: var(--bb-gris-100); display: block; overflow: hidden; }
.bb-related .bb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; display: block; }
.bb-related .bb-card:hover .bb-card__media img { transform: scale(1.04); }
.bb-related .bb-card__body { padding: var(--bb-sp-4); }
.bb-related .bb-card__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-md); font-weight: 600; line-height: 1.3; margin: 0; }
.bb-related .bb-card__title a { color: var(--bb-noir); text-decoration: none; }
.bb-related .bb-card__title a:hover { color: var(--bb-rose-dark); }

/* ==========================================================================
   11. AUTHOR BIO en bas d'article
   ========================================================================== */
.bb-author-bio { display: grid; gap: var(--bb-sp-4); padding: var(--bb-sp-6); background: var(--bb-creme); border-radius: var(--bb-radius-lg); margin: var(--bb-sp-7) 0; }
@media (min-width: 600px) { .bb-author-bio { grid-template-columns: 120px 1fr; align-items: start; } }
.bb-author-bio__avatar { width: 96px; height: 96px; border-radius: 50%; }
@media (min-width: 600px) { .bb-author-bio__avatar { width: 120px; height: 120px; } }
.bb-author-bio__name { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-xl); margin: 0 0 var(--bb-sp-1); }
.bb-author-bio__role { font-size: var(--bb-fs-sm); color: var(--bb-rose-dark); font-weight: 500; margin-bottom: var(--bb-sp-3); }
.bb-author-bio__desc { color: var(--bb-gris-700); margin-bottom: var(--bb-sp-3); }
.bb-author-bio__link { font-size: var(--bb-fs-sm); color: var(--bb-rose-dark); text-decoration: none; font-weight: 600; }
.bb-author-bio__link:hover { text-decoration: underline; }

/* ==========================================================================
   12. SIDEBAR
   ========================================================================== */
.bb-sidebar { display: flex; flex-direction: column; gap: var(--bb-sp-6); }
.bb-widget { background: var(--bb-blanc); border-radius: var(--bb-radius-lg); padding: var(--bb-sp-5); box-shadow: var(--bb-shadow-sm); }
.bb-widget__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-md); font-weight: 700; margin-bottom: var(--bb-sp-4); padding-bottom: var(--bb-sp-3); border-bottom: 2px solid var(--bb-noir); color: var(--bb-noir); }
.bb-widget ul { list-style: none; padding: 0; margin: 0; }
.bb-widget__list-item { padding: var(--bb-sp-3) 0; border-bottom: 1px solid var(--bb-gris-100); }
.bb-widget__list-item:last-child { border-bottom: 0; }
.bb-widget__list-item a { color: var(--bb-gris-900); text-decoration: none; font-weight: 500; display: block; }
.bb-widget__list-item a:hover { color: var(--bb-rose-dark); }

/* Sticky sidebar */
@media (min-width: 1024px) { .bb-sidebar__sticky { position: sticky; top: 88px; } }

/* ==========================================================================
   13. NEWSLETTER
   ========================================================================== */
.bb-newsletter { background: linear-gradient(135deg, var(--bb-rose-soft), var(--bb-creme)); border-radius: var(--bb-radius-lg); padding: var(--bb-sp-6); text-align: center; margin: var(--bb-sp-7) 0; }
.bb-newsletter__title { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-xl); margin-bottom: var(--bb-sp-3); }
.bb-newsletter__desc { color: var(--bb-gris-700); margin-bottom: var(--bb-sp-4); max-width: 480px; margin-left: auto; margin-right: auto; }
.bb-newsletter__form { display: flex; flex-direction: column; gap: var(--bb-sp-3); max-width: 420px; margin: 0 auto; }
@media (min-width: 480px) { .bb-newsletter__form { flex-direction: row; } }
.bb-newsletter__input { flex: 1; padding: var(--bb-sp-3) var(--bb-sp-4); border: 1px solid var(--bb-gris-300); border-radius: var(--bb-radius); background: var(--bb-blanc); font-size: var(--bb-fs-base); min-height: 48px; }
.bb-newsletter__input:focus { border-color: var(--bb-rose); outline: none; }
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--bb-sp-2); padding: var(--bb-sp-3) var(--bb-sp-5); background: var(--bb-rose); color: var(--bb-blanc); border-radius: var(--bb-radius); font-weight: 600; text-decoration: none; min-height: 48px; transition: background var(--bb-tr-fast); border: 0; cursor: pointer; }
.bb-btn:hover { background: var(--bb-rose-dark); color: var(--bb-blanc); }
.bb-btn--ghost { background: transparent; color: var(--bb-rose-dark); border: 1px solid var(--bb-gris-300); }
.bb-btn--ghost:hover { background: var(--bb-gris-100); color: var(--bb-noir); }
.bb-btn--block { width: 100%; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.bb-footer { background: var(--bb-noir); color: var(--bb-gris-300); padding: var(--bb-sp-7) 0 var(--bb-sp-5); margin-top: var(--bb-sp-8); }
.bb-footer a { color: var(--bb-gris-200); text-decoration: none; }
.bb-footer a:hover { color: var(--bb-blanc); text-decoration: underline; }
.bb-footer__grid { display: grid; gap: var(--bb-sp-6); grid-template-columns: 1fr; margin-bottom: var(--bb-sp-7); }
@media (min-width: 600px) { .bb-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bb-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.bb-footer__brand { font-family: var(--bb-ff-titre); font-size: var(--bb-fs-lg); font-weight: 700; color: var(--bb-blanc); margin-bottom: var(--bb-sp-3); }
.bb-footer__col h3 { font-family: var(--bb-ff-corps); font-size: var(--bb-fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bb-blanc); margin-bottom: var(--bb-sp-3); }
.bb-footer__col ul { list-style: none; padding: 0; margin: 0; }
.bb-footer__col li { margin-bottom: var(--bb-sp-2); font-size: var(--bb-fs-sm); }
.bb-footer__bottom { padding-top: var(--bb-sp-5); border-top: 1px solid var(--bb-gris-700); display: flex; flex-direction: column; gap: var(--bb-sp-3); align-items: center; font-size: var(--bb-fs-xs); color: var(--bb-gris-500); }
@media (min-width: 600px) { .bb-footer__bottom { flex-direction: row; justify-content: space-between; } }

/* ==========================================================================
   15. AdSense placeholders — réservation d'espace anti-CLS
   ========================================================================== */

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS — gestion fine
   ========================================================================== */
/* Galerie home — layout adaptatif */
.bb-home-hero { display: grid; gap: var(--bb-sp-5); padding: var(--bb-sp-6) 0; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bb-home-hero { grid-template-columns: 2fr 1fr; } }
.bb-home-hero__list { display: grid; gap: var(--bb-sp-4); grid-auto-rows: 1fr; }

/* ==========================================================================
   17. ANIMATIONS DOUCES (respectent prefers-reduced-motion)
   ========================================================================== */
.bb-fade-in { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.bb-fade-in.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   18. UTILITAIRES (parcimonieux)
   ========================================================================== */
.bb-text-center { text-align: center; }
.bb-mt-0 { margin-top: 0 !important; }
.bb-mb-0 { margin-bottom: 0 !important; }
.bb-hidden-mobile { display: none; }
@media (min-width: 768px) { .bb-hidden-mobile { display: revert; } .bb-hidden-desktop { display: none; } }

/* ==========================================================================
   19. PAGINATION
   ========================================================================== */
.bb-pagination { display: flex; gap: var(--bb-sp-2); justify-content: center; margin: var(--bb-sp-7) 0; flex-wrap: wrap; }
.bb-pagination .page-numbers { padding: var(--bb-sp-3) var(--bb-sp-4); border-radius: var(--bb-radius); background: var(--bb-blanc); color: var(--bb-noir); text-decoration: none; font-weight: 500; min-width: 44px; text-align: center; }
.bb-pagination .page-numbers:hover { background: var(--bb-rose-soft); }
.bb-pagination .page-numbers.current { background: var(--bb-rose); color: var(--bb-blanc); }

/* ==========================================================================
   20. BREADCRUMBS
   ========================================================================== */
.bb-breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--bb-sp-2); padding: var(--bb-sp-4) 0; font-size: var(--bb-fs-sm); color: var(--bb-gris-500); }
.bb-breadcrumbs a { color: var(--bb-gris-700); text-decoration: none; }
.bb-breadcrumbs a:hover { color: var(--bb-rose-dark); }
.bb-breadcrumbs__sep { color: var(--bb-gris-300); }
.bb-breadcrumbs__current { color: var(--bb-noir); font-weight: 500; }

/* ==========================================================================
   21. COMMENTAIRES (minimal)
   ========================================================================== */
.bb-comments { margin: var(--bb-sp-7) 0; max-width: var(--bb-container-text); margin-left: auto; margin-right: auto; padding: 0 var(--bb-sp-4); }
.bb-comments__title { font-family: var(--bb-ff-titre); margin-bottom: var(--bb-sp-5); }
.bb-comment { padding: var(--bb-sp-4); background: var(--bb-blanc); border-radius: var(--bb-radius); margin-bottom: var(--bb-sp-4); }
.bb-comment__head { display: flex; align-items: center; gap: var(--bb-sp-3); margin-bottom: var(--bb-sp-3); }
.bb-comment__avatar { width: 40px; height: 40px; border-radius: 50%; }
.bb-comment__author { font-weight: 600; }
.bb-comment__date { font-size: var(--bb-fs-xs); color: var(--bb-gris-500); }

/* ==========================================================================
   22. TAG ARCHIVE / DOSSIER LANDING
   ========================================================================== */
.bb-archive-header { padding: var(--bb-sp-7) 0 var(--bb-sp-6); text-align: center; max-width: var(--bb-container-narrow); margin: 0 auto; }
.bb-archive-header__title { font-size: var(--bb-fs-3xl); margin-bottom: var(--bb-sp-3); }
.bb-archive-header__desc { font-size: var(--bb-fs-md); color: var(--bb-gris-700); }

/* ==========================================================================
   FIN
   ========================================================================== */