/* =====  CARTES ACTUALITÉS  ===== */

/* Conteneur global des encarts */
.encarts-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
  padding:0;
}

/* Carte */
.card-affiche.overlay {
  aspect-ratio: 3/4; /* ratio d'une affiche */
  width: 260px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 0; /* si jamais un blanc traîne encore */
  padding: 0;
}


/* Image */
.card-affiche.overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bande noire + texte */
.card-affiche.overlay .info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.55);
  padding: 12px 8px;
  color: white;
  text-align: center;
}

/* TITRE */
.card-affiche.overlay h3 {
  font-size: 18px;
  margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* SOUS-TEXTE */
.card-affiche.overlay p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

/* TITRE DE PAGE */
.titreactu {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 45px;
  font-family: "Georgia", serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-bottom: 2px solid #000;
  display: inline-block;
  padding-bottom: 10px;
}


@media (max-width: 700px) {
  .encarts-row {
    flex-direction: column;   /* 1 colonne */
    align-items: center;      /* centré */
    gap: 20px;                /* un peu d'espace entre les cartes */
  }

  .card-affiche.overlay {
    width: 80%;               /* plus large sur mobile */
    max-width: 320px;         /* évite que ça déborde */
  }
}
