/* 2. HERO RESSOURCES */
#hero-blog {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  background-size: 200% 200%;
  animation: gradientMove 14s ease infinite;
  padding: 80px 24px 60px;
  text-align: center;
  color: white;
}

#hero-blog .hero-blog-inner {
  max-width: 700px;
  margin: 0 auto;
}

#hero-blog .hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

#hero-blog h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

#hero-blog p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

#monActu {
  background-color: var(--color-white);
}

#mesArticles {
  background-color: var(--color-bg);
}

.blog-title {
  text-align: center;
  color: var(--color-accent-dark);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  /* Permet de passer à la ligne s'il y a plusieurs cartes */
  gap: 30px;
  /* Espace entre les cartes */
  justify-content: flex-start;
  /* Aligne la carte à gauche (ou 'center' pour centrer) */
  padding: 40px
}

/* La carte individuelle */
.post-card {
  /* On dit à la carte de viser 50% de la largeur, moins l'espace du gap */
  flex: 0 1 calc(50% - 20px);
  /* Sécurité : on impose une largeur maximale de 50% */
  max-width: 50%;
  /* Vos styles précédents (image à gauche, etc.) */
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 20px;
  flex: 1;
  /* Prend tout l'espace restant */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centre le texte verticalement */
}

/* Gestion de la zone image */
.card-image {
  flex: 0 0 30%;
  /* L'image prend 30% de la largeur fixe */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Important : l'image remplit la zone sans être déformée */
}

.post-card:hover {
  transform: translateY(-5px);
  /* Petit effet de survol */
}

.post-card-article li {
  margin-left: 40px;
}

.card-tag {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.card-title {
  margin: 10px 0;
  font-size: 1.25rem;
}

.card-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
}

/* Style du conteneur principal */
.cta-rendezvous {
  background-color: #f4f7f6;
  /* Couleur de fond douce */
  border-left: 5px solid var(--color-accent-dark);
  border-right: 5px solid var(--color-accent-dark);
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 8px;
  text-align: center;
  font-family: Arial, sans-serif;
  margin-left: 20px;
  margin-right: 20px;
}

/* Style du titre */
.cta-rendezvous h3 {
  color: #2c3e50;
  margin-top: 0;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(229, 115, 235, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 20px rgba(229, 115, 235, 0.5);
}

.img-magazine {
  float: left;
  /* Aligne l'image à gauche */
  width: 40%;
  /* Prend 40% de la largeur de l'article */
  max-width: 350px;
  margin-top: 25px;
  /* Limite la taille sur les grands écrans */
  margin-right: 25px;
  /* Espace entre l'image et le texte à droite */
  margin-bottom: 15px;
  /* Espace sous l'image */
  border-radius: 12px;
  /* Coins arrondis pour la douceur */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Ombre légère pour le relief */
}

.article-body {
  margin-top: 25px;
}

/* On s'assure que le flottement ne casse pas la mise en page suivante */
.article-body::after {
  content: "";
  display: table;
  clear: both;
}

/* Conteneur principal */
.navigation-blog {
  display: flex;
  align-items: center;
  padding: 20px 0;
  font-family: sans-serif;
  margin-bottom: 25px;
  width: 100%;
  /* S'assure que le conteneur prend toute la largeur */
}

/* Bouton Précédent : Toujours collé à gauche */
.nav-button.prev {
  margin-right: auto;
}

/* Bouton Suivant : Toujours collé à droite */
.nav-button.next {
  margin-left: auto;
  text-align: right;
}

/* Style de base des boutons */
.nav-button {
  display: flex;
  align-items: center;
  /* Aligne verticalement le rond et le texte */
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

/* Style du petit rond */
.circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  /* Taille du rond */
  height: 40px;
  border: 2px solid #333;
  border-radius: 50%;
  /* Transforme le carré en cercle */
  margin: 0 10px;
  /* Espace entre le rond et le texte */
  font-weight: bold;
}

/* Effet au survol de la souris */
.nav-button:hover {
  opacity: 0.7;
}

/* On peut changer la couleur au survol si on veut */
.nav-button:hover .circle {
  background-color: #333;
  color: white;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero {
    padding: 50px 20px;
  }

  .blog-card {
    flex-direction: column;
    /* L'image repasse au-dessus sur petit écran */
    /* Sur mobile, une carte seule prendra 100% pour être lisible */
    flex: 0 1 100%;
    max-width: 100%;
  }

  /* On retire le padding excessif sur les côtés pour gagner de la place */
  .blog-grid {
    padding: 20px 15px;
    gap: 25px;
    /* Espace vertical entre les cartes */
  }

  /* La carte prend désormais toute la largeur de l'écran */
  .post-card {
    flex: 0 1 100%;
    max-width: 100%;
    flex-direction: column;
    /* L'image se place AU-DESSUS du texte */
  }

  /* Ajustement de la zone image sur mobile */
  .card-image {
    flex: 0 0 auto;
    /* On annule le 30% de la version bureau */
    width: 100%;
    height: 200px;
    /* On fixe une hauteur harmonieuse */
  }

  /* Ajustement du corps de la carte */
  .card-body {
    padding: 20px;
  }
}