.blog-page {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* =========================
   HERO
========================= */

.blog-hero {
  padding: 3.2rem 0 2.8rem;
  background:
    linear-gradient(
      90deg,
      rgba(10,22,40,0.65) 0%,
      rgba(10,22,40,0.45) 35%,
      rgba(10,22,40,0.15) 70%,
      rgba(10,22,40,0.05) 100%
    ),
    url("/static/img/photo-accueil.png") center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 32, .30), rgba(6, 18, 32, .08));
  pointer-events: none;
}

.blog-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 2rem;
  align-items: center;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.blog-title {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 760px;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.blog-subtitle {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: rgba(255,255,255,.93);
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.blog-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.blog-hero-actions .btn {
  border-radius: 999px;
  padding: .9rem 1.45rem;
  font-weight: 700;
}

.blog-hero-panel {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 1.45rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 46px rgba(0,0,0,.18);
}

.blog-hero-panel h3 {
  margin: 0 0 .9rem 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
}

.blog-hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-hero-points li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .9rem;
  color: rgba(255,255,255,.96);
  line-height: 1.65;
  font-size: .96rem;
}

.blog-hero-points i {
  color: #d1fae5;
  margin-top: .18rem;
  font-size: 1rem;
}

/* =========================
   COMMON
========================= */

.section-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.7rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: .8rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: #edf8f1;
  color: #198754;
  font-weight: 700;
  font-size: .9rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .8rem;
  color: #1f2937;
  letter-spacing: -.02em;
}

.section-heading p {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* =========================
   MAIN
========================= */

.blog-main {
  padding: 4rem 0 4.5rem;
}

.featured-article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,.06);
  margin-bottom: 2.5rem;
}

.featured-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.featured-body {
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  background: #eef7f1;
  color: #198754;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  font-size: .92rem;
  color: #6b7280;
  margin-bottom: .9rem;
}

.featured-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.featured-title a {
  color: #111827;
  text-decoration: none;
}

.featured-title a:hover {
  color: #198754;
}

.featured-text {
  color: #374151;
  line-height: 1.85;
  margin-bottom: 1.35rem;
}

.featured-actions .btn {
  border-radius: 999px;
  padding: .8rem 1.2rem;
  font-weight: 700;
}

.articles-grid {
  margin-top: .2rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.09);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 240px);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  font-size: .92rem;
  color: #6b7280;
  margin-bottom: .85rem;
}

.blog-category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: #eef7f1;
  color: #198754;
  font-weight: 700;
  font-size: .85rem;
}

.blog-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: .85rem;
}

.blog-card-title a {
  color: #111827;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: #198754;
}

.blog-card-text {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.blog-actions .btn {
  border-radius: 999px;
  padding: .72rem 1.15rem;
  font-weight: 700;
}

.empty-state {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.05);
  padding: 2.5rem 2rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,135,84,.1);
  color: #198754;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: .8rem;
}

.empty-state p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 0;
}

/* =========================
   CTA
========================= */

.blog-cta {
  padding: 0 0 5rem;
}

.blog-cta-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.05);
}

.blog-cta-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: .75rem;
}

.blog-cta-box p {
  max-width: 760px;
  margin: 0 auto 1.2rem;
  color: #4b5563;
  line-height: 1.8;
}

.blog-cta-box .btn {
  border-radius: 999px;
  padding: .85rem 1.45rem;
  font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .blog-hero {
    padding: 2.4rem 0 2.2rem;
  }

  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-image {
    min-height: 240px;
  }

  .blog-card-image {
    height: 220px;
  }

  .blog-card-body {
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .blog-title {
    font-size: 2rem;
  }

  .blog-hero-actions .btn,
  .blog-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-cta-box {
    padding: 2rem 1.2rem;
  }
}
