
/* Grille des cartes */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  justify-items: center;
}

/* Carte */
.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
  max-width: 380px;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* Bande colorée uniquement en haut */
.blog-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  font-size: 36px;
  color: white;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: none;
}

/* Couleurs par carte */
.blog-card:nth-child(1) .blog-image {
  background: linear-gradient(135deg, #f7941e, #fcb045);
}

.blog-card:nth-child(2) .blog-image {
  background: linear-gradient(135deg, #00b894, #55efc4);
}

.blog-card:nth-child(3) .blog-image {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
}

/* Zone texte - forçage du fond blanc */
.blog-content {
  padding: 20px;
  background: white;
  flex-grow: 1;
}

.blog-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.blog-content h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.blog-excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.blog-btn {
  font-weight: bold;
  color: #f7941e;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Titre principal et sous-titre */
.section-title {
  text-align: center;
  margin: 40px 0 30px 0;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #3c3c3c;
}

.section-title .subtitle {
  color: #f7941e;
  font-size: 18px;
}

/* Bouton centré */
.text-center {
  text-align: center;
}

.btn-outline-primary {
  border: 2px solid #f7941e;
  color: #f7941e;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  background: white;
  margin-top: 20px;
}

.btn-outline-primary:hover {
  background: #f7941e;
  color: white;
}
