/* ======================================================= # BLOG PAGE STYLES ======================================================= */

.blog-page {
  padding-top: 0 !important;
}

.blog-header {
  background-color: var(--blue-color);
  padding: 80px 20px 90px;
  padding-top: calc(80px + 80px) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Hero Section Effects */
.hero-vrh {
  position: relative;
  overflow: hidden;
}

.hero-vrh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    #ffffff 1px,
    transparent 1px
  ) !important;
  background-size: 40px 40px !important;
  opacity: 0.05 !important;
  pointer-events: none;
  z-index: 0;
}

.hero-vrh > * {
  position: relative;
  z-index: 2;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff1a;
  backdrop-filter: blur(10px);
  color: var(--white-color);
  font-size: 16px;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 25px;
  border: 1px solid var(--blue-color);
  margin-bottom: 10px;
}

.hero-top-badge svg {
  flex-shrink: 0;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: var(--white-color);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #FFFFFF00;
}

.hero-feature-item svg {
  flex-shrink: 0;
  color: #16a34a;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white-color);
  color: var(--blue-color);
  font-size: 18px;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid #0055ff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.hero-illustration {
  opacity: 0.2;
  max-width: 100%;
  height: auto;
}

.blog-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
}

.blog-title {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 20px;
  color: var(--white-color);
  font-weight: 800;
  line-height: 1.15;
}

.blog-intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--white-color);
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-second-title {
  padding: 50px 0px;
  text-align: center;
  color: var(--blue-color);
}

.blog-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Flexbox Grid */
.articles-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
}

/* Card Style */
.article-card {
  background: var(--white-color);
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 20px); /* 3 colonnes moins le gap */
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card:hover {
  border-color: var(--blue-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.article-card:hover .card-title {
  color: var(--blue-color);
}

.article-card:hover .card-read-more {
  color: var(--blue-color);
  translate: 5px;
}

.card-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--blue-color);
  color: var(--white-color);
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  padding-bottom: 15px;
  transition: color 0.3s ease;
}

.card-excerpt {
  line-height: 1.6;
  padding-bottom: 20px;
}

.card-read-more {
  margin-top: auto;
  font-weight: 600;
  transition:
    color 0.3s ease,
    translate 0.3s ease;
}

.load-more-wrapper {
  text-align: center;
  padding-bottom: 60px;
}

.load-more-cta {
  cursor: pointer;
}

/* Pagination archive */
.archive-pagination {
  padding: 20px 0 60px;
  text-align: center;
}

.archive-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  border-color: var(--blue-color);
  color: var(--blue-color);
}

/* Barre admin WP */
.admin-bar .blog-header {
  padding-top: calc(80px + 32px + 80px);
}

/* ======================================================= # MOBILE STYLES ======================================================= */

@media (max-width: 1024px) {
  .article-card {
    width: calc(50% - 15px);
  }
  .hero-features {
    gap: 14px;
  }
  .hero-feature-item {
    font-size: 0.875rem;
    padding: 9px 16px;
  }
}

@media (max-width: 768px) {
  .blog-header {
    padding: calc(80px + 60px) 20px 60px;
  }
  .admin-bar .blog-header {
    padding-top: calc(80px + 32px + 60px);
  }
  .article-card {
    width: 100%;
  }
  .blog-content {
    padding: 0 20px;
  }
  .hero-features {
    gap: 12px;
  }
  .hero-feature-item {
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .hero-cta {
    font-size: 0.95rem;
    padding: 12px 28px;
  }
  .hero-illustration {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-top-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
  .hero-features {
    max-width: 100%;
  }
  .hero-feature-item {
    flex: 1 1 calc(50% - 6px);
    min-width: 140px;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .hero-cta {
    font-size: 0.9rem;
    padding: 12px 24px;
  }
}
