/* === STYLES POUR LES ARTICLES === */

.sd-recent-articles {
  min-width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Arial', sans-serif;
}

.sd-section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 40px;
  color: #172436 !important;
  text-align: center;
}

.sd-article-card:hover .sd-section-title {
  color: #F2591C !important;
}

.sd-section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #8190A3 !important;
  margin-bottom: 30px;
}

.sd-articles-grid {
  margin-bottom: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sd-article-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: calc(680px - 10px);
  /* 2 cartes par ligne */
  display: flex;
}

.sd-article-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.card-image img {
  min-width: 220px;
  min-height: 224px;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  /* Largeur fixe pour l'image */
}

.card-content {
  padding: 30px 30px 20px 20px !important;
  min-width: 460px;
  flex-grow: 1;
}

.card-title {
  color: #172436 !important;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 0;
}

.card-excerpt {
  font-size: 1em;
  color: #555;
  margin: 10px 0;
}

.date-btn {
  padding-top: 20px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-size: 0.8em;
  color: #777;
  margin-bottom: 10px;
}

.btn-read-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 8px;
  background: transparent;
  color: #172436;
  text-decoration: none;
  border: 1px solid #77777763;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-read-more:hover {
  background: #F2591C;
  color: white;
}

.sd-see-more {
  text-align: center;
  margin-top: 20px;
}

.sd-see-more a {
  font-size: 14px !important;
  font-weight: 500;
  display: inline-block;
  padding: 8px 15px;
  background: transparent;
  color: #172436 !important;
  text-decoration: none;
  border: 1px solid #77777763 !important;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.sd-see-more a:hover {
  background: #F2591C !important;
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .sd-articles-grid {
    flex-direction: column;
  }

  .sd-article-card {
    width: 100%;
  }
}