html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f5faff 0%, #e9f3ff 100%);
  color: #333;
  margin: 0;
  padding: 0;
    display: flex;
    flex-direction: column; /* Empile les enfants verticalement */
    min-height: 100vh; /* Garantit que le body fait au moins toute la hauteur de la fenêtre d'affichage */
}
.main-content {
  flex-grow: 1;
  min-height: calc(100vh - 200px); /* Ajuster selon la hauteur du footer */
}

/* Titres */
h2 {
  font-weight: 700;
  color: #0056b3;
}

/* Cartes d'actualités */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-card .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px; /* hauteur uniforme à ajuster si besoin */
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.news-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card .card-title {
  min-height: 3.5rem; /* pour uniformiser hauteur titre */
}

.news-card .card-text {
  flex-grow: 1;
  margin-bottom: 1rem;

  /* Limiter le texte à 3 lignes avec ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card .btn {
  margin-top: auto; /* pousse le bouton en bas */
}

/* Boutons filtres */
.filter-btn {
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background-color: #0d6efd;
  color: #fff;
}

/* Styles pour fade-in-up */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Pagination */
#pagination button {
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
}
#pagination button.active {
  background-color: #0d6efd;
  color: white;
}

/* Footer */
footer {
  background-color: #002147 !important; /* bleu sombre */
  color: #ffffff !important;
  padding: 3rem 0;
}

footer h5,
footer p,
footer ul li a {
  color: #ffffff !important;
}

footer ul li a:hover {
  color: #adb5bd !important;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

footer ul {
  padding: 0;
  list-style: none;
}

footer ul li a {
  color: #333;
  text-decoration: none;
}
footer ul li a:hover {
  text-decoration: underline;
}

/* Icône WhatsApp verte */
footer a[href*="wa.me"] i.bi-whatsapp {
  color: #25D366; /* Vert officiel WhatsApp */
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
  .filter-btn {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
}
