/* =============================
   STYLE GLOBAL
============================= */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  color: #301910;
}

/* =============================
   CONTAINER PRINCIPAL
============================= */
.all-actualites-container {
  width: 532px; /* taille largeru pareil que plan-du-site.php */ 
  max-width: 100%; 
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffffff;
  box-sizing: border-box;

  /* Empêche le débordement horizontal si un mot est trop long */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Titre principal */
.all-actualites-container h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Ligne horizontale personnalisée */
hr.custom-line {
  border: none;
  border-top: 2px dashed #301910;
  margin: 2rem 0;
}

/* =============================
   ILLUSTRATION (escargot)
============================= */
.illustration {
  text-align: center;
  margin: 2rem 0;
}

.illustration img {
  max-width: 100%;
  height: auto;
  width: 40%;
}

/* =============================
   FORMULAIRE DE FILTRE
============================= */
.tag-year-filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.tag-year-filter-form label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}
.tag-year-filter-form select {
  padding: 0.5rem;
  border: 2px solid #6C9F42;
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.tag-year-filter-form button {
  padding: 0.5rem 1rem;
  border: 2px solid #6C9F42;
  background-color: #C7E2A6;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* =============================
   LISTE DES ACTUALITÉS
============================= */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed #b8d8a4;
  margin-bottom: 1rem;
}
.news-list li:last-child {
  border-bottom: none;
}

/* =============================
   METADATA: DATE + TAG
============================= */
.news-meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 4px; /* Petit espace sous la ligne metadata */
}
.news-date {
  font-weight: bold;
  color: #2c3e1f;
  font-size: 0.95rem;
}
.news-tag {
  font-size: 0.85rem;
  color: #666;
  background-color: #f3f3f3;
  padding: 2px 6px;
  border-radius: 6px;
}

/* =============================
   IMAGE
============================= */
.news-image {
  margin: 0.75rem 0;
}
.news-image-preview {
  max-width: 200px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: block;
}

/* =============================
   TITRE & CONTENU
============================= */
.news-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-excerpt {
  margin: 0.5rem 0 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 576px) {
  .all-actualites-container {
    width: auto;
    max-width: 95vw;
    margin: 1rem auto;
    padding: 1rem;
  }
  .illustration img {
    width: 40%;
    max-width: 100%;
  }
  .news-image-preview {
    max-width: 100%;
  }
}
