.archive-actu-presse {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 4rem auto;
  gap: 1.5rem;
}

.bloc-presse {
  width: 90%;
}

.sous-titre-presse {
  font-size: 2rem;
}

.liste-actu-presse {
  margin: 5rem auto;
  display: inline-grid;
  row-gap: 5.25rem;
  column-gap: 5.25rem;
  grid-template-columns: repeat(3, fit-content(100%));
}

.liste-actu-presse p {
  grid-column: span 3;
}

.card-actu-presse {
  display: flex;
  width: 19.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.card-actu-presse .thumbnail {
  width: 100%;
}

.card-actu-presse .thumbnail img {
  height: 13.5rem;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-actu-presse h3 {
  font-size: 1.2rem;
}

.card-actu-presse .card-date {
  text-transform: lowercase;
}

.card-actu-presse .presse-info-supp,
.card-actu-presse .info-actu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.card-actu-presse .presse-info-supp .presse-journal::after,
.card-actu-presse .actu-date::after {
  content: "・";
  font-weight: bold;
  margin: 0 0.5rem;
}

/* Barre de filtres */
.filtres-bar {
  display: flex;
  align-items: flex-end;
  width: 90%;
  justify-content: center;
  flex-direction: column;
}

#btn-ouvrir-filtres {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid currentColor;
  cursor: pointer;
  border-radius: 4px;
}

#filtre-actif-label {
  font-size: 0.9em;
  opacity: 0.7;
}

/* Modale */
#modale-filtres {
  position: fixed;
  inset: 0; /* raccourci pour top/right/bottom/left: 0 */
  z-index: 1000;
  display: flex;
  align-items: flex-end; /* panneau qui monte par le bas sur mobile */
}

#modale-filtres[hidden] {
  display: none;
}

.modale-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modale-contenu {
  position: relative;
  z-index: 1; /* au-dessus de l'overlay */
  background: white;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 24px;
}

/* Sur desktop, panneau centré plutôt que collé en bas */
@media (min-width: 768px) {
  #modale-filtres {
    align-items: center;
    justify-content: center;
  }

  .modale-contenu {
    width: 400px;
    border-radius: 8px;
    max-height: 70vh;
  }
}

.modale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modale-liste-categories {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.modale-liste-categories li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.modale-liste-categories label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.modale-footer {
  display: flex;
  justify-content: flex-end;
}

#btn-appliquer-filtres {
  padding: 10px 24px;
  background: black;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
