/* ============================================================
   BLOG HUB — Design & animations
   Chargé uniquement sur blog.html
   CSS pur — aucune dépendance externe
   ============================================================ */

:root {
  --bl-prix: #00685b;        /* Prix & budgets (vert MY RENOV) */
  --bl-aides: #1e8a78;       /* Aides & démarches (vert clair) */
  --bl-conseils: #b76e2e;    /* Conseils & travaux (terre brûlée) */
}

/* ===== HERO ===== */
.bl-hero {
  background: linear-gradient(135deg, #0d2520 0%, #1b1c1c 60%, #003832 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.bl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 104, 91, 0.45), transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(183, 110, 46, 0.25), transparent 50%);
  pointer-events: none;
}
.bl-hero .container { position: relative; z-index: 2; }
.bl-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
  color: #fff;
  letter-spacing: -0.025em;
}
.bl-hero h1 .accent { color: #6fcfb8; }
.bl-hero .intro {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}
.bl-hero .breadcrumb-nav { margin-bottom: 1rem; }
.bl-hero .breadcrumb { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.bl-hero .breadcrumb li { color: rgba(255,255,255,0.6); }
.bl-hero .breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.bl-hero .breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ===== STATS sous hero ===== */
.bl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.bl-stat { text-align: center; }
.bl-stat-value {
  display: block;
  font: 800 2.2rem/1 'Manrope', sans-serif;
  color: #6fcfb8;
  font-variant-numeric: tabular-nums;
}
.bl-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.4rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ===== ARTICLE À LA UNE ===== */
.bl-featured-section {
  padding: 4rem 0 1.5rem;
  background: #fafafa;
}
.bl-featured-label {
  display: inline-block;
  font: 700 0.75rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bl-prix);
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--bl-prix);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.bl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.bl-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -28px rgba(0, 0, 0, 0.25);
}
.bl-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.bl-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.bl-featured:hover .bl-featured-img img { transform: scale(1.05); }
.bl-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bl-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}
.bl-featured-cat {
  background: var(--bl-prix);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font: 700 0.72rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.bl-featured h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #1b1c1c;
  letter-spacing: -0.015em;
}
.bl-featured-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.5rem;
}
.bl-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.95rem 'Manrope', sans-serif;
  color: var(--bl-prix);
}
.bl-featured-cta svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.bl-featured:hover .bl-featured-cta svg { transform: translateX(5px); }

/* ===== FILTRES CHIPS ===== */
.bl-articles-section {
  padding: 2.5rem 0 4rem;
  background: #fafafa;
}
.bl-articles-section h2.bl-articles-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #1b1c1c;
  letter-spacing: -0.015em;
}
.bl-articles-section .h2-sub {
  text-align: center;
  color: #555;
  margin: 0 0 2rem;
  font-size: 1rem;
}
.bl-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
}
.bl-chip {
  border: 2px solid #e6e8e7;
  background: #fff;
  color: #1b1c1c;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: 600 0.88rem 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.bl-chip:hover { border-color: #00685b; color: #00685b; }
.bl-chip.is-active {
  background: #00685b;
  border-color: #00685b;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(0, 104, 91, 0.55);
}
.bl-chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== GRID ARTICLES ===== */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #ebeded;
  border-radius: 14px;
  text-decoration: none;
  color: #1b1c1c;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease,
              opacity 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
.bl-card.is-revealed { opacity: 1; transform: translateY(0); }
.bl-card[hidden] { display: none; }
.bl-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}
.bl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-card-cat-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 700 0.7rem 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.bl-card[data-cat="prix"] .bl-card-cat-badge { background: var(--bl-prix); }
.bl-card[data-cat="aides"] .bl-card-cat-badge { background: var(--bl-aides); }
.bl-card[data-cat="conseils"] .bl-card-cat-badge { background: var(--bl-conseils); }
.bl-card-body {
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bl-card-meta {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}
.bl-card-title {
  font: 700 1.08rem/1.35 'Manrope', sans-serif;
  color: #1b1c1c;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.bl-card-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 1rem;
  flex: 1;
}
.bl-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 700 0.85rem 'Manrope', sans-serif;
  color: var(--bl-prix);
}
.bl-card[data-cat="aides"] .bl-card-cta { color: var(--bl-aides); }
.bl-card[data-cat="conseils"] .bl-card-cta { color: var(--bl-conseils); }
.bl-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.bl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px -20px rgba(0, 0, 0, 0.18);
  border-color: currentColor;
}
.bl-card[data-cat="prix"]:hover { border-color: var(--bl-prix); }
.bl-card[data-cat="aides"]:hover { border-color: var(--bl-aides); }
.bl-card[data-cat="conseils"]:hover { border-color: var(--bl-conseils); }
.bl-card:hover .bl-card-cta svg { transform: translateX(4px); }

/* ===== FAQ ===== */
.bl-faq-section {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #fafafa, #f4f6f5);
}
.bl-faq-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem;
  color: #1b1c1c;
  letter-spacing: -0.015em;
}
.bl-faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.bl-faq-item {
  background: #fff;
  border: 1px solid #e6e8e7;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.bl-faq-item[open] { box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.15); }
.bl-faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font: 700 1rem 'Manrope', sans-serif;
  color: #1b1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.bl-faq-item summary::-webkit-details-marker { display: none; }
.bl-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #00685b;
  transition: transform 0.3s ease;
}
.bl-faq-item[open] summary::after { transform: rotate(45deg); }
.bl-faq-item .bl-faq-body {
  padding: 0 1.4rem 1.2rem;
  color: #444;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
  .bl-card,
  .bl-card-img img,
  .bl-featured,
  .bl-featured-img img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bl-featured {
    grid-template-columns: 1fr;
  }
  .bl-featured-img { min-height: 240px; }
  .bl-featured-body { padding: 1.8rem; }
}
@media (max-width: 600px) {
  .bl-hero { padding: 4.5rem 0 3rem; }
  .bl-stats { padding: 1rem; }
  .bl-stat-value { font-size: 1.7rem; }
  .bl-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bl-featured-body { padding: 1.4rem; }
}
