/* Styles pour le shortcode [post_details_grid]
   Basés sur le style principal de la grille mais allégés pour ce composant */

/* --- Grille (flex) pour les actualités --- */
.actualites-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  justify-content: center;
}

.actualite-col {
  display: flex;
  flex: 0 0 calc((100% - 36px) / 2);
  max-width: calc((100% - 36px) / 2);
  box-sizing: border-box;
}

.actualite {
  background: #dff6fb;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.actualite .actualite-thumb {
  height: 250px;
  overflow: hidden;
}

.actualite .actualite-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 40px;
}

.actualite .actualite-title {
  margin: 8px 0 30px 0px;
  font-weight: 700;
}

.actualite .actualite-excerpt {
  margin: 8px 0 0;
}

a.btn-lire-plus {
  display: inline-block;
  background: var(--e-global-color-text);
  padding: 0.25px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-family: 'Shantell Sans';
  font-size: 1.4rem;
  transition: background 0.3s ease;
  width: fit-content;
}

a.btn-lire-plus:hover {
  background: var(--e-global-color-secondary);
}
/* Wrapper contenu interne */
.actualite-content-inner {
  padding: 4% 4% 6% 7%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pousse le bouton en bas */
  flex: 1 1 auto; /* prend l'espace restant pour égaliser la hauteur */
  min-height: 0; /* évite overflow dans certains browsers */
}

.grid-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  justify-content: center;
  align-items: stretch;
}

/* Responsive: passe à 2 colonnes puis 1 colonne */
@media (max-width: 1024px) {
  .actualite-col {
    flex: 0 0 calc(50% - 18px);
  }
}

@media (max-width: 768px) {
  .actualite-col {
    flex: 0 0 100%;
  }

  .actualite .actualite-thumb {
    height: 180px;
  }
}

/* Utilities */
.actualite-thumb { overflow: hidden; flex: 0 0 auto; }