/* =============================================
   BLOG — archive.php · single.php · home.php
   Variables : :root (style.css)
   ============================================= */

/* ── [data-animate] scroll reveal ─────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate="fade-left"]  { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate].is-visible   { opacity: 1; transform: none; }

/* ── Reset Astra (full-width, no-sidebar) ─────────────────────────────── */
.ast-theme-transparent-header #masthead {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}
body.blog #content,
body.archive #content,
body.single #content,
body.blog .site-content,
body.archive .site-content,
body.single .site-content       { padding-top: 0 !important; padding-bottom: 0 !important; }
body.blog .ast-container,
body.archive .ast-container,
body.single .ast-container,
body.blog #primary,
body.archive #primary,
body.single #primary            { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
body.blog .ast-article-single,
body.archive .ast-article-single,
body.single .ast-article-single { box-shadow: none !important; border: none !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.bl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ════════════════════════════════════════════════════════════════════════
   HERO BLOG
   ════════════════════════════════════════════════════════════════════════ */
.bl-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9rem 2rem 6rem;
}

.bl-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--clr-primary-dark);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.05);
  transition: transform 9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-hero.is-loaded .bl-hero__bg { transform: scale(1); }

/* Fallback gradient quand pas d'image */
.bl-hero__bg--gradient {
  background: linear-gradient(145deg, #1a3a1a 0%, var(--clr-primary-dark) 55%, var(--clr-primary) 100%);
}
.bl-hero__bg--gradient::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  top: -180px;
  right: -100px;
  pointer-events: none;
}

.bl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 38, 20, 0.88) 0%,
    rgba(61, 107, 56, 0.66) 50%,
    rgba(125, 191, 120, 0.24) 100%
  );
}

.bl-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.bl-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-primary-muted);
  margin-bottom: 1.5rem;
}

.bl-hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.5rem, 6vw, 4.25rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.1 !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border: none !important;
  text-shadow: 0 3px 28px rgba(0,0,0,0.25);
}
.bl-hero__title::before,
.bl-hero__title::after { content: none !important; }

.bl-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.175rem);
  color: rgba(255,255,255,0.84);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.bl-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,0.50);
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
  animation: bl-bounce 2.4s ease-in-out infinite;
}
.bl-hero__scroll:hover { color: #fff; border-color: rgba(255,255,255,0.55); }
.bl-hero__scroll svg  { width: 1.1rem; height: 1.1rem; }

@keyframes bl-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Séparateur wave ─────────────────────────────────────────────────── */
@keyframes bl-sway {
  from { transform: translateX(0); }
  to   { transform: translateX(-50px); }
}

.bl-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
  width: 100%;
  margin-bottom: -2px;
  pointer-events: none;
}
.bl-sep svg {
  display: block;
  width: calc(100% + 100px);
  height: 80px;
  margin-left: -50px;
  animation: bl-sway 9s ease-in-out infinite alternate;
}
.bl-sep--hero {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   BLOC INTRODUCTION ÉDITORIAL
   ════════════════════════════════════════════════════════════════════════ */
.bl-intro {
  position: relative;
  text-align: center;
  padding: 4.5rem 2rem 3.75rem;
  overflow: hidden;
}

/* Souffle de couleur — radial très subtil, non perceptible directement */
.bl-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 72% 85% at 50% 38%,
    rgba(125,191,120,0.055) 0%,
    transparent 68%
  );
  pointer-events: none;
}

/* Séparateur bas — ligne dégradée */
.bl-intro::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 380px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(125,191,120,0.38) 30%,
    rgba(125,191,120,0.38) 70%,
    transparent
  );
  pointer-events: none;
}

.bl-intro__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.375rem;
}

/* ── Label micro — ——— Le blog d'ASAPH ——— ───────────────────────────── */
.bl-intro__label {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-primary);
}
.bl-intro__label::before,
.bl-intro__label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* ── Titre ───────────────────────────────────────────────────────────── */
.bl-intro__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
  font-weight: 300 !important;
  color: var(--clr-primary-dark) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-feature-settings: 'kern' 1, 'liga' 1;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.bl-intro__title::before,
.bl-intro__title::after { content: none !important; }
.bl-intro__title em {
  font-style: italic;
  color: var(--clr-primary);
  font-weight: 400;
}

/* ── Description ─────────────────────────────────────────────────────── */
.bl-intro__desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Trois points décoratifs ─────────────────────────────────────────── */
.bl-intro__decoration {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.25rem;
}
.bl-intro__decoration span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
}
.bl-intro__decoration span:nth-child(1) { opacity: 1; }
.bl-intro__decoration span:nth-child(2) { opacity: 0.5; }
.bl-intro__decoration span:nth-child(3) { opacity: 0.25; }

/* ── Animation — staggered fade-up ──────────────────────────────────── */
.bl-intro__label,
.bl-intro__title,
.bl-intro__desc,
.bl-intro__decoration {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-intro.is-visible .bl-intro__label      { opacity: 1; transform: none; transition-delay:   0ms; }
.bl-intro.is-visible .bl-intro__title      { opacity: 1; transform: none; transition-delay:  90ms; }
.bl-intro.is-visible .bl-intro__desc       { opacity: 1; transform: none; transition-delay: 190ms; }
.bl-intro.is-visible .bl-intro__decoration { opacity: 1; transform: none; transition-delay: 305ms; }

/* Reduced motion — visible d'emblée, aucune transition */
@media (prefers-reduced-motion: reduce) {
  .bl-intro__label,
  .bl-intro__title,
  .bl-intro__desc,
  .bl-intro__decoration {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .bl-intro { padding: 2.75rem 1.5rem 2.25rem; }
  .bl-intro__inner { gap: 1.125rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   GRILLE ARCHIVE
   ════════════════════════════════════════════════════════════════════════ */
.bl-posts {
  background: var(--clr-bg);
  padding: 5rem 0 6rem;
}

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

/* ── Card de base ──────────────────────────────────────────────────────── */
.bl-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(185,217,181,0.42);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-card.is-visible        { opacity: 1; transform: translateY(0); }
.bl-card:hover             { box-shadow: var(--shadow-lg); }

/* Lien couvre-tout (invisible, z-index bas) */
.bl-card__link-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Image ─────────────────────────────────────────────────────────────── */
.bl-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--clr-primary-light);
  flex-shrink: 0;
}
.bl-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-card:hover .bl-card__img-wrap img { transform: scale(1.06); }

.bl-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,28,10,0.22) 0%, transparent 55%);
  transition: opacity 0.32s;
  pointer-events: none;
}
.bl-card:hover .bl-card__img-overlay { opacity: 1.4; }

.bl-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary-muted));
}
.bl-card__img-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--clr-primary-dark);
  opacity: 0.35;
}

/* ── Corps ─────────────────────────────────────────────────────────────── */
.bl-card__body {
  padding: 1.5rem 1.375rem 1.375rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.bl-card__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important;
  color: var(--clr-primary-dark) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.bl-card__title::before,
.bl-card__title::after { content: none !important; }
.bl-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.bl-card:hover .bl-card__title a { color: var(--clr-primary); }

.bl-card__excerpt {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}
.bl-card__date { font-variant-numeric: tabular-nums; }
.bl-card__sep  { opacity: 0.4; }

.bl-card__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  text-decoration: none;
  transition: gap 0.22s, color 0.22s;
}
.bl-card__cta svg { transition: transform 0.22s; }
.bl-card:hover .bl-card__cta     { gap: 0.5rem; color: var(--clr-primary); }
.bl-card:hover .bl-card__cta svg { transform: translateX(3px); }

/* ── HERO CARD (première card — pleine largeur) ─────────────────────────── */
.bl-card--hero {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 440px;
  border-radius: 20px;
}
.bl-card--hero .bl-card__img-wrap {
  aspect-ratio: unset;
  flex: 0 0 55%;
  min-height: 360px;
}
.bl-card--hero .bl-card__body {
  flex: 1;
  padding: 2.5rem 2.5rem 2rem;
  justify-content: flex-end;
  gap: 0.875rem;
}
.bl-card--hero .bl-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  line-height: 1.2 !important;
}
.bl-card--hero .bl-card__excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 3;
  line-height: 1.7;
}
.bl-card--hero.is-visible { opacity: 1; transform: translateY(0); }

/* ── BADGE catégorie ────────────────────────────────────────────────────── */
.bl-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.72rem;
  border-radius: 999px;
  text-decoration: none;
  transition: filter 0.18s;
  line-height: 1.6;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  position: relative;
  z-index: 1;
}
.bl-badge:hover { filter: brightness(0.92); }

/* Couleurs par catégorie */
.bl-badge--activites               { background: #e5f3e4; color: #276123; }
.bl-badge--sorties                 { background: #e0edf8; color: #17559b; }
.bl-badge--culture                 { background: #fbe9e2; color: #a84020; }
.bl-badge--loisirs                 { background: #fef3e2; color: #9e5100; }
.bl-badge--sorties-exceptionnelles { background: #f2e8fb; color: #6b1b9a; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.bl-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}
.bl-pagination .nav-links {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  flex-wrap: wrap;
}
.bl-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.625rem;
  height: 2.625rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--clr-text-muted);
  border: 1.5px solid rgba(185,217,181,0.60);
  background: #fff;
  transition: all 0.2s;
  gap: 0.35rem;
}
.bl-pagination .page-numbers svg  { width: 0.95rem; height: 0.95rem; }
.bl-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.bl-pagination .page-numbers:hover:not(.dots),
.bl-pagination .page-numbers.current {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(61,107,56,0.25);
}
.bl-pagination .prev,
.bl-pagination .next {
  padding: 0 1rem;
  gap: 0.4rem;
  font-size: 0.8rem;
}

/* ── État vide ──────────────────────────────────────────────────────────── */
.bl-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--clr-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.bl-empty svg  { opacity: 0.3; stroke: var(--clr-primary-muted); }
.bl-empty p    { font-size: 1.1rem; margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   SINGLE — HERO
   ════════════════════════════════════════════════════════════════════════ */
.bl-single-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bl-single-hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--clr-primary-dark);
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  transition: transform 9s cubic-bezier(0.22, 1, 0.36, 1);
}
.bl-single-hero.is-loaded .bl-single-hero__bg { transform: scale(1); }

.bl-single-hero__bg--gradient {
  background: linear-gradient(145deg, #1a3a1a 0%, var(--clr-primary-dark) 60%, var(--clr-primary) 100%);
}

.bl-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 20, 8, 0.90) 0%,
    rgba(20, 48, 20, 0.60) 45%,
    rgba(61, 107, 56, 0.20) 100%
  );
}

.bl-single-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 9rem 2rem 3.5rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.bl-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}
.bl-breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.18s;
}
.bl-breadcrumb a:hover { color: #fff; }
.bl-breadcrumb span[aria-current] { color: rgba(255,255,255,0.90); }
.bl-breadcrumb__sep { opacity: 0.5; }

/* ── Titre + méta hero single ───────────────────────────────────────────── */
.bl-single-hero__cats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.125rem;
}
.bl-single-hero__cat {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.90);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s;
}
.bl-single-hero__cat:hover { background: rgba(255,255,255,0.30); }

.bl-single-hero__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.12 !important;
  margin: 0 0 1.375rem !important;
  padding: 0 !important;
  border: none !important;
  text-shadow: 0 3px 22px rgba(0,0,0,0.22);
}
.bl-single-hero__title::before,
.bl-single-hero__title::after { content: none !important; }

.bl-single-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
}
.bl-single-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bl-single-hero__meta svg { width: 0.9rem; height: 0.9rem; stroke: var(--clr-primary-muted); }

/* ════════════════════════════════════════════════════════════════════════
   SINGLE — LAYOUT (share bar + contenu)
   ════════════════════════════════════════════════════════════════════════ */
.bl-single-layout {
  background: var(--clr-bg);
  padding: 4rem 0 5rem;
}

.bl-single-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════════════
   SHARE BAR — sticky latérale
   ════════════════════════════════════════════════════════════════════════ */
.bl-share-bar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.bl-share-bar__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0.6;
  margin-bottom: 0.25rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: none; /* shown on wider screens only */
}

/* ── Boutons <a> de la share bar (liens externes) ──────────────────────── */
.bl-share-bar .bl-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1.5px solid rgba(185,217,181,0.55);
  background: #fff;
  color: var(--clr-text-muted);
  transition: all 0.22s;
  cursor: pointer;
  position: relative;
}
.bl-share-bar .bl-share-btn svg  { width: 1.1rem; height: 1.1rem; }
.bl-share-bar .bl-share-btn:hover { transform: scale(1.12); box-shadow: var(--shadow-sm); }
.bl-share-bar .bl-share-btn--li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

/* ── <button> copier + natif — mêmes règles que .acc-filter-btn ─────────
   Copié depuis acc-filters-section .acc-filters .acc-filter-btn (accompagnements.css).
   Seuls les noms de classes ont changé.                                  */
.bl-share-bar .bl-share-btn--copy,
.bl-share-bar .bl-share-btn--native {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  font-family: var(--font-body, 'DM Sans', sans-serif) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  color: #2C4A28 !important;
  background: transparent !important;
  border: 1.5px solid rgba(0,0,0,.15) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  width: 42px !important;
  height: 42px !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bl-share-bar .bl-share-btn--copy:hover,
.bl-share-bar .bl-share-btn--native:hover {
  border-color: #7DBF78 !important;
  color: #3D6B38 !important;
  background: #F0F8EF !important;
}

.bl-share-bar .bl-share-btn--copy.is-copied {
  background: #7DBF78 !important;
  color: #2C4A28 !important;
  border-color: #7DBF78 !important;
  font-weight: 600 !important;
}

/* Icône check (état copié) */
.bl-share-btn--copy .bl-share-btn__icon-check { display: none; }
.bl-share-btn--copy.is-copied .bl-share-btn__icon-copy  { display: none; }
.bl-share-btn--copy.is-copied .bl-share-btn__icon-check { display: block; }

/* Native share — masqué par défaut, affiché par JS si navigator.share disponible */
.bl-share-btn--native { display: none; }

/* Séparateur */
.bl-share-bar__divider {
  width: 1px;
  height: 20px;
  background: rgba(185,217,181,0.55);
  margin: 0.125rem 0;
}

/* ════════════════════════════════════════════════════════════════════════
   ARTICLE CONTENT
   ════════════════════════════════════════════════════════════════════════ */
#bl-article { min-width: 0; }

.bl-single-body.entry-content,
.bl-entry-content {
  font-size: 1.075rem;
  line-height: 1.82;
  color: var(--clr-text);
}
.bl-entry-content h2,
.bl-entry-content h3,
.bl-entry-content h4 {
  font-family: var(--font-heading) !important;
  color: var(--clr-primary-dark) !important;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding: 0 !important;
  border: none !important;
}
.bl-entry-content h2::before,
.bl-entry-content h2::after,
.bl-entry-content h3::before,
.bl-entry-content h3::after { content: none !important; }
.bl-entry-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; }
.bl-entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.6rem) !important; }
.bl-entry-content p    { margin-bottom: 1.375rem; }
.bl-entry-content ul,
.bl-entry-content ol   { padding-left: 1.625rem; margin-bottom: 1.375rem; }
.bl-entry-content li   { margin-bottom: 0.5rem; }
.bl-entry-content a    { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.bl-entry-content a:hover { color: var(--clr-primary); }
.bl-entry-content strong { color: var(--clr-text); }
.bl-entry-content blockquote {
  border-left: 4px solid var(--clr-primary-muted);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--clr-primary-light);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}
.bl-entry-content blockquote p:last-child { margin: 0; }

/* Images dans l'article */
.bl-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.75rem 0;
  display: block;
}
.bl-entry-content figure { margin: 2rem 0; }
.bl-entry-content figcaption {
  text-align: center;
  font-size: 0.83rem;
  color: var(--clr-text-muted);
  margin-top: 0.625rem;
  font-style: italic;
}

/* Images full-bleed (class .alignfull) */
.bl-entry-content .alignfull,
.bl-entry-content .alignwide {
  margin-left: calc(-2.5rem - 52px - 2.5rem);
  margin-right: -2rem;
  max-width: none;
  width: calc(100% + 2.5rem + 52px + 4.5rem);
  border-radius: 0;
}
.bl-entry-content .alignfull img,
.bl-entry-content .alignwide img { border-radius: 0; width: 100%; }

/* ── Tags ───────────────────────────────────────────────────────────────── */
.bl-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(185,217,181,0.55);
}
.bl-single-tag {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.825rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bl-single-tag:hover { background: var(--clr-primary-dark); color: #fff; }

/* ── Box auteur ─────────────────────────────────────────────────────────── */
.bl-author {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--clr-bg-alt);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  border: 1px solid rgba(185,217,181,0.45);
}
.bl-author__avatar {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--clr-primary-muted);
  background: var(--clr-primary-light);
}
.bl-author__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; display: block; }
.bl-author__avatar .bl-avatar { width: 100%; height: 100%; font-size: 1.4rem; border-radius: 50%; }
.bl-author__name {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 0 0.3rem !important;
  padding: 0 !important;
  border: none !important;
}
.bl-author__name::before,
.bl-author__name::after { content: none !important; }
.bl-author__bio { font-size: 0.875rem; color: var(--clr-text-muted); line-height: 1.65; margin: 0; }

/* ── Nav prev/next ─────────────────────────────────────────────────────── */
.bl-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(185,217,181,0.55);
}
.bl-post-nav__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: #fff;
  border: 1.5px solid rgba(185,217,181,0.50);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  min-width: 0;
}
.bl-post-nav__item:hover { border-color: var(--clr-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.bl-post-nav__item--next { flex-direction: row-reverse; text-align: right; }
.bl-post-nav__item--empty { pointer-events: none; }

.bl-post-nav__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-primary-light);
}
.bl-post-nav__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; margin: 0; }

.bl-post-nav__arrow { flex-shrink: 0; color: var(--clr-primary-muted); }
.bl-post-nav__arrow svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; }
.bl-post-nav__item:hover .bl-post-nav__arrow { color: var(--clr-primary-dark); }

.bl-post-nav__text { min-width: 0; }
.bl-post-nav__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  display: block;
  margin-bottom: 0.2rem;
}
.bl-post-nav__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════════════
   SECTION HEADER (articles similaires)
   ════════════════════════════════════════════════════════════════════════ */
.bl-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.bl-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}
.bl-section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.625rem, 3vw, 2.25rem) !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.bl-section-title::before,
.bl-section-title::after { content: none !important; }

/* ════════════════════════════════════════════════════════════════════════
   ARTICLES SIMILAIRES
   ════════════════════════════════════════════════════════════════════════ */
.bl-related {
  background: var(--clr-bg-alt);
  padding: 5.5rem 0 6rem;
}
.bl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* ════════════════════════════════════════════════════════════════════════
   COMMENTAIRES — bulles modernes
   ════════════════════════════════════════════════════════════════════════ */
.bl-comments-section {
  background: var(--clr-bg);
  padding: 4rem 0 5rem;
}
.bl-comments-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Titre */
.bl-comments__title,
#comments .comments-title {
  font-family: var(--font-heading) !important;
  font-size: 1.5rem !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border: none !important;
}
.bl-comments__title::before,
.bl-comments__title::after,
#comments .comments-title::before,
#comments .comments-title::after { content: none !important; }

/* Modération + fermé */
.bl-comment-moderation {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 0.75rem;
}
.bl-comments-closed {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  text-align: center;
  padding: 2rem;
  border: 1px dashed rgba(185, 217, 181, 0.55);
  border-radius: 12px;
  margin-top: 2rem;
}

/* Navigation pagination commentaires */
.bl-comment-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.bl-comment-nav a {
  color: var(--clr-primary-dark);
  text-decoration: none;
  font-weight: 600;
}
.bl-comment-nav a:hover { color: var(--clr-primary); }

/* ── Message connexion (visiteurs non connectés) ──────────────────────── */
.bl-comment-login {
  margin-top: 3rem;
  background: rgba(251, 254, 251, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 217, 181, 0.5);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.bl-comment-login svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--clr-primary-muted);
  opacity: 0.45;
}
.bl-comment-login p {
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin: 0;
}
.bl-comment-login__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--clr-primary-dark);
  color: #fff !important;
  caret-color: #fff !important;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s;
  box-shadow: 0 4px 14px rgba(61, 107, 56, 0.28);
  cursor: pointer;
}
.bl-comment-login__btn:hover {
  background: #2a5226;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Liste */
#comments .comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
#comments .children     { list-style: none; margin: 1.25rem 0 0 2.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }

/* Commentaire individuel */
#comments .comment { }
#comments .comment-body {
  background: #fff;
  border: 1px solid rgba(185,217,181,0.42);
  border-radius: 16px;
  padding: 1.375rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s;
}
#comments .comment-body:hover { box-shadow: var(--shadow-md); }

/* Header commentaire */
#comments .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
#comments .comment-author { display: flex; align-items: center; gap: 0.75rem; }
#comments .comment-author .fn {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
}
#comments .comment-author .fn a { color: inherit; text-decoration: none; }
#comments .comment-metadata {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-left: auto;
}
#comments .comment-metadata a { color: inherit; text-decoration: none; }
#comments .comment-metadata a:hover { color: var(--clr-primary-dark); }

/* Avatar standard + initiales JS */
#comments .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--clr-primary-muted);
  object-fit: cover;
}
.bl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--bl-avatar-bg, var(--clr-primary-dark));
  flex-shrink: 0;
  user-select: none;
}

/* Contenu commentaire */
#comments .comment-content p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--clr-text);
  margin: 0 0 0.75rem;
}
#comments .comment-content p:last-child { margin: 0; }
#comments .comment-content a { color: var(--clr-primary-dark); text-decoration: underline; }

/* Bouton répondre */
#comments .reply { margin-top: 0.875rem; }
#comments .comment-reply-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, gap 0.2s;
}
#comments .comment-reply-link::after { content: '↩'; font-size: 0.9em; }
#comments .comment-reply-link:hover  { color: var(--clr-primary); gap: 0.45rem; }

/* Formulaire de commentaire — glassmorphisme */
#respond {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: rgba(251, 254, 251, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(185, 217, 181, 0.5);
  border-radius: 20px;
}
#respond .comment-reply-title {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  color: var(--clr-primary-dark) !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
}
#respond .comment-reply-title::before,
#respond .comment-reply-title::after { content: none !important; }
#respond .comment-form { display: flex; flex-direction: column; gap: 1rem; }
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url,
#respond .comment-form-comment { display: flex; flex-direction: column; gap: 0.4rem; }
#respond .comment-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  letter-spacing: 0.03em;
}
#respond .comment-form input,
#respond .comment-form textarea {
  border: 1.5px solid rgba(185,217,181,0.7);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--clr-text) !important;
  caret-color: var(--clr-text) !important;
  background: var(--clr-bg);
  transition: border-color 0.22s, box-shadow 0.22s;
}
#respond .comment-form input:focus,
#respond .comment-form textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(125,191,120,0.18);
  background: #fff;
}
#respond .comment-form textarea { min-height: 120px; resize: vertical; line-height: 1.65; }
#respond .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  background: var(--clr-primary-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  box-shadow: 0 4px 14px rgba(61,107,56,0.28);
}
#respond .form-submit .submit:hover {
  background: #2a5226;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,107,56,0.38);
}
#respond .comment-notes,
#respond .logged-in-as { font-size: 0.82rem; color: var(--clr-text-muted); margin: 0 0 0.5rem; }
#respond .required-field-message,
#respond .comment-notes { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bl-single-inner { grid-template-columns: 44px 1fr; gap: 1.75rem; }
}

@media (max-width: 1024px) {
  .bl-grid         { grid-template-columns: repeat(2, 1fr); }
  .bl-related-grid { grid-template-columns: repeat(2, 1fr); }
  .bl-card--hero   {
    flex-direction: column;
    min-height: auto;
  }
  .bl-card--hero .bl-card__img-wrap {
    aspect-ratio: 16 / 9;
    flex: unset;
    min-height: unset;
  }
}

@media (max-width: 900px) {
  .bl-single-inner {
    grid-template-columns: 1fr;
  }
  .bl-share-bar {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(185,217,181,0.55);
    margin-bottom: 2rem;
    order: 2; /* after article on mobile */
  }
  .bl-share-bar__divider { width: 20px; height: 1px; margin: 0 0.25rem; }
  #bl-article { order: 1; }
  .bl-post-nav { grid-template-columns: 1fr; }
  .bl-post-nav__item--next { flex-direction: row; text-align: left; }
}

@media (max-width: 768px) {
  .bl-hero            { min-height: 60vh; padding: 7rem 1.25rem 5rem; }
  .bl-posts           { padding: 3.5rem 0 4rem; }
  .bl-related         { padding: 4rem 0 4.5rem; }
  .bl-container       { padding: 0 1.25rem; }
  .bl-search-bar__inner { padding: 0 1.25rem; flex-wrap: wrap; }
  .bl-search-form       { max-width: 100%; }
  .bl-search-bar__count { display: none; }
  .bl-grid            { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .bl-related-grid    { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .bl-single-hero__content { padding: 7rem 1.25rem 2.5rem; }
  .bl-single-layout   { padding: 2.5rem 0 4rem; }
  .bl-single-inner    { padding: 0 1.25rem; }
  .bl-comments-inner  { padding: 0 1.25rem; }
  .bl-comments-section { padding: 3rem 0 4rem; }
  #comments .children { margin-left: 1.25rem; }
  .bl-card--hero      { grid-column: auto; }
}

@media (max-width: 480px) {
  .bl-hero { min-height: 100svh; }
  .bl-author { flex-direction: column; align-items: center; text-align: center; }
}

/* ── MODALE AJAX ─────────────────────────────────────────────────────────── */
.bl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.bl-modal.is-open { display: flex; }

.bl-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bl-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(61, 107, 56, 0.12);
  outline: none;
}

.bl-modal__panel--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.bl-modal__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(61, 107, 56, 0.2);
  border-top-color: #3d6b38;
  border-radius: 50%;
  animation: bl-spin 0.75s linear infinite;
}
@keyframes bl-spin {
  to { transform: rotate(360deg); }
}

.bl-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85) !important;
  color: #2c4a28 !important;
  caret-color: #2c4a28 !important;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.15s;
}
.bl-modal__close:hover {
  background: #fff !important;
  transform: scale(1.1);
}
.bl-modal__close:focus-visible {
  outline: 2px solid #3d6b38;
  outline-offset: 2px;
}

.bl-modal__hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #3d6b38 0%, #7dbf78 100%);
}
.bl-modal__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61, 107, 56, 0.88) 0%, rgba(61, 107, 56, 0.2) 55%, transparent 100%);
}
.bl-modal__hero--no-img .bl-modal__hero-overlay { opacity: 0.45; }

.bl-modal__hero-meta {
  position: absolute;
  bottom: 1.75rem;
  left: 1.75rem;
  right: 3.5rem;
}
.bl-modal__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}
.bl-modal__cats .bl-badge { font-size: 0.72rem; }

.bl-modal__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.bl-modal__content {
  padding: 2rem;
  color: var(--clr-text, #2c4a28);
  line-height: 1.75;
}
.bl-modal__content h2,
.bl-modal__content h3 { color: #2c4a28; margin-top: 1.5rem; }
.bl-modal__content p  { margin-bottom: 1rem; }
.bl-modal__content img { max-width: 100%; border-radius: 8px; height: auto; }
.bl-modal__content a  { color: #3d6b38; text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════
   MODALE — SECTION COMMENTAIRES
   ════════════════════════════════════════════════════════════════════════ */
.bl-modal__comments {
  padding: 2rem;
  border-top: 2px solid rgba(125, 191, 120, 0.22);
  background: linear-gradient(to bottom, rgba(240, 248, 239, 0.45) 0%, transparent 72px);
}

.bl-modal__comments-title {
  font-family: var(--font-heading) !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-primary-dark, #2c4a28);
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.bl-modal__comments-title::before,
.bl-modal__comments-title::after { content: none !important; }

/* Badge compteur */
.bl-modal__comments-title .bl-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  background: var(--clr-primary-muted, #b9d9b5);
  color: var(--clr-primary-dark, #2c4a28);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
}

/* ── Liste ───────────────────────────────────────────────────────────── */
.bl-modal__comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Entrée en cascade */
@keyframes bl-comment-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.bl-modal__comments .comment-list > li {
  animation: bl-comment-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bl-modal__comments .comment-list > li:nth-child(1) { animation-delay: 0.04s; }
.bl-modal__comments .comment-list > li:nth-child(2) { animation-delay: 0.10s; }
.bl-modal__comments .comment-list > li:nth-child(3) { animation-delay: 0.16s; }
.bl-modal__comments .comment-list > li:nth-child(4) { animation-delay: 0.22s; }
.bl-modal__comments .comment-list > li:nth-child(5) { animation-delay: 0.28s; }

/* Commentaire individuel */
.bl-modal__comments .comment-body {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(185, 217, 181, 0.42);
  border-left: 3px solid rgba(125, 191, 120, 0.45);
  box-shadow: 0 2px 8px rgba(61, 107, 56, 0.06);
  transition: border-left-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.bl-modal__comments .comment-body:hover {
  border-left-color: var(--clr-primary, #7dbf78);
  box-shadow: 0 4px 16px rgba(61, 107, 56, 0.12);
  transform: translateX(3px);
}

/* Header commentaire */
.bl-modal__comments .comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
}
.bl-modal__comments .comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bl-modal__comments .comment-author .fn {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--clr-primary-dark, #2c4a28);
}
.bl-modal__comments .comment-author .fn a { color: inherit; text-decoration: none; }
.bl-modal__comments .comment-metadata {
  font-size: 0.75rem;
  color: var(--clr-text-muted, #7a8a78);
  margin-left: auto;
}
.bl-modal__comments .comment-metadata a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
.bl-modal__comments .comment-metadata a:hover { color: var(--clr-primary-dark, #2c4a28); }

/* Avatars initiales (générés par JS) dans la modale */
.bl-modal__comments .bl-avatar { width: 34px; height: 34px; font-size: 0.85rem; }
.bl-modal__comments .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--clr-primary-muted, #b9d9b5);
  object-fit: cover;
}

/* Contenu */
.bl-modal__comments .comment-content p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--clr-text, #3a4a38);
}
.bl-modal__comments .comment-content p:last-child { margin: 0; }

/* Bouton répondre — anti-Astra */
.bl-modal__comments .reply { margin-top: 0.625rem; }
.bl-modal__comments .comment-reply-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--clr-primary, #7dbf78) !important;
  caret-color: var(--clr-primary, #7dbf78) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.18s, gap 0.18s !important;
}
.bl-modal__comments .comment-reply-link::after { content: ' ↩'; font-size: 0.9em; }
.bl-modal__comments .comment-reply-link:hover {
  color: var(--clr-primary-dark, #3d6b38) !important;
  gap: 0.45rem !important;
}

/* Réponses imbriquées */
.bl-modal__comments .children {
  list-style: none;
  margin: 0.75rem 0 0 1.25rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(125, 191, 120, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.bl-modal__comments .children .comment-body {
  border-left: none;
  background: rgba(240, 248, 239, 0.5);
}
.bl-modal__comments .children .comment-body:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(61, 107, 56, 0.08);
}

/* Aucun commentaire */
.bl-modal__comments .no-comments {
  color: var(--clr-text-muted, #7a8a78);
  font-size: 0.875rem;
  font-style: italic;
  margin: 0 0 1.5rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(240, 248, 239, 0.55);
  border-radius: 10px;
  border: 1px dashed rgba(125, 191, 120, 0.45);
}

/* Modération */
.bl-modal__comments .bl-comment-moderation {
  font-size: 0.78rem;
  color: var(--clr-text-muted, #7a8a78);
  font-style: italic;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Formulaire ──────────────────────────────────────────────────────── */
.bl-modal__comments #respond {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(240, 248, 239, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(185, 217, 181, 0.55);
  border-radius: 14px;
  transition: box-shadow 0.25s;
}
.bl-modal__comments #respond:focus-within {
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.15);
}

.bl-modal__comments .comment-reply-title {
  font-family: var(--font-heading) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--clr-primary-dark, #2c4a28) !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}
.bl-modal__comments .comment-reply-title::before,
.bl-modal__comments .comment-reply-title::after { content: none !important; }

/* Annuler réponse */
.bl-modal__comments #cancel-comment-reply-link {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--clr-text-muted, #7a8a78) !important;
  caret-color: var(--clr-text-muted) !important;
  background: transparent !important;
  border: 1px solid rgba(185, 217, 181, 0.6) !important;
  border-radius: 999px !important;
  padding: 0.2rem 0.7rem !important;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s !important;
}
.bl-modal__comments #cancel-comment-reply-link:hover {
  background: rgba(185, 217, 181, 0.3) !important;
  color: var(--clr-primary-dark, #2c4a28) !important;
}

.bl-modal__comments .comment-form { display: flex; flex-direction: column; gap: 0.75rem; }
.bl-modal__comments .comment-form-author,
.bl-modal__comments .comment-form-email,
.bl-modal__comments .comment-form-url,
.bl-modal__comments .comment-form-comment { display: flex; flex-direction: column; gap: 0.3rem; }
.bl-modal__comments .comment-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-primary-dark, #2c4a28);
  letter-spacing: 0.02em;
}

/* Champs nom + email côte à côte sur desktop */
@media (min-width: 600px) {
  .bl-modal__comments .comment-form-author,
  .bl-modal__comments .comment-form-email {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    width: calc(50% - 0.375rem);
    vertical-align: top;
  }
  .bl-modal__comments .comment-form-author { margin-right: 0.75rem; }
  .bl-modal__comments .comment-form-url,
  .bl-modal__comments .comment-form-comment,
  .bl-modal__comments .comment-form .form-submit,
  .bl-modal__comments .comment-notes,
  .bl-modal__comments .logged-in-as { clear: both; display: block; }
}

/* Inputs */
.bl-modal__comments .comment-form input[type="text"],
.bl-modal__comments .comment-form input[type="email"],
.bl-modal__comments .comment-form input[type="url"],
.bl-modal__comments .comment-form textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid rgba(185, 217, 181, 0.7);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text, #3a4a38) !important;
  caret-color: var(--clr-text, #3a4a38) !important;
  background: #fff;
  transition: border-color 0.22s, box-shadow 0.22s;
  box-sizing: border-box;
  outline: none;
}
.bl-modal__comments .comment-form input:focus,
.bl-modal__comments .comment-form textarea:focus {
  border-color: var(--clr-primary, #7dbf78);
  box-shadow: 0 0 0 3px rgba(125, 191, 120, 0.18);
  background: #fff;
}
.bl-modal__comments .comment-form textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* Bouton soumettre */
.bl-modal__comments .comment-form .submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.7rem 1.75rem !important;
  background: var(--clr-primary-dark, #3d6b38) !important;
  color: #fff !important;
  caret-color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s !important;
  box-shadow: 0 4px 14px rgba(61, 107, 56, 0.25) !important;
}
.bl-modal__comments .comment-form .submit:hover {
  background: #2a5226 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(61, 107, 56, 0.35) !important;
}
.bl-modal__comments .comment-form .submit:active { transform: translateY(0) !important; }
.bl-modal__comments .comment-form .submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Logged-in */
.bl-modal__comments .logged-in-as {
  font-size: 0.8rem;
  color: var(--clr-text-muted, #7a8a78);
  margin: 0;
}
.bl-modal__comments .logged-in-as a {
  color: var(--clr-primary-dark, #2c4a28);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}
.bl-modal__comments .logged-in-as a:hover { color: var(--clr-primary, #7dbf78); }
.bl-modal__comments .comment-notes,
.bl-modal__comments .required-field-message { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bl-modal__comments .comment-list > li { animation: none; opacity: 1; }
  .bl-modal__comments .comment-body { transition: none; }
}

/* Anti-Astra — boutons dans la modale */
#bl-modal button,
#bl-modal input[type="submit"] {
  color: #2c4a28 !important;
  caret-color: #2c4a28 !important;
}
#bl-modal #respond .form-submit .submit,
#bl-modal #respond .form-submit input[type="submit"] {
  color: #fff !important;
  caret-color: #fff !important;
}

body.bl-modal-open { overflow: hidden; }

@media (max-width: 768px) {
  .bl-modal           { padding: 0; align-items: flex-end; }
  .bl-modal__panel    { max-width: 100%; max-height: 95vh; border-radius: 20px 20px 0 0; }
  .bl-modal__hero     { height: 240px; border-radius: 20px 20px 0 0; }
  .bl-modal__content  { padding: 1.5rem 1.25rem 1rem; }
  .bl-modal__comments { padding: 1rem 1.25rem 1.5rem; }
}

/* ── Erreur inline formulaire commentaire ────────────────────────────────── */
.bl-comment-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.28);
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  animation: bl-comment-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bl-comment-error::before {
  content: '⚠';
  flex-shrink: 0;
  font-size: 1em;
  margin-top: 0.05em;
}

/* ── Flash succès commentaire ────────────────────────────────────────────── */
.bl-comment-success {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1rem;
  background: rgba(61, 107, 56, 0.1);
  border: 1px solid rgba(125, 191, 120, 0.45);
  border-radius: 10px;
  color: var(--clr-primary-dark, #2c4a28);
  font-size: 0.875rem;
  font-weight: 600;
  animation: bl-success-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bl-comment-success::before { content: '✓'; font-size: 1.1em; }

@keyframes bl-success-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Spinner bouton envoi ─────────────────────────────────────────────────── */
.bl-modal__comments .comment-form.is-sending .submit {
  padding-left: 2.625rem !important;
  position: relative !important;
}
.bl-modal__comments .comment-form.is-sending .submit::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bl-spin 0.65s linear infinite;
}
@keyframes bl-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate]          { opacity: 1; transform: none; transition: none; }
  .bl-sep svg             { animation: none; }
  .bl-hero__scroll        { animation: none; }
  .bl-hero.is-loaded .bl-hero__bg,
  .bl-single-hero.is-loaded .bl-single-hero__bg { transform: none; }
  .bl-card { opacity: 1; transform: none; transition: box-shadow 0.22s; }
  .bl-modal__spinner { animation: none; opacity: 0.7; }
  .bl-comment-error,
  .bl-comment-success { animation: none; }
  .bl-modal__comments .comment-form.is-sending .submit::before { animation: none; opacity: 0.7; }
}
