/* ==============================
   RESET & GENERAL STYLES
================================= */
html, body {
  margin: 0;
  padding: 0;
  color: #E5A154;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================
   CONTAINER PRINCIPAL
================================= */
.container {
  flex: 1;
  padding: 70px 20px 40px; /* haut - côtés - bas */
  color: #E5A154;
  box-sizing: border-box;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   GRID ARTICLES
================================= */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ==============================
   CARD ARTICLE
================================= */
.card {
  background-color: #1A1A1A;
  border: 1px solid #301910;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transition: transform 0.3s;
  margin-bottom: 20px;
}

.card:hover {
  transform: scale(1.05);
}

.card-body {
  padding: 15px;
  background-color: transparent;
}

/* ==============================
   TITRE ET TEXTE ARTICLE
================================= */
.card-title {
  font-size: 24px;
  margin: 10px 0;
  color: #E5A154;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-text {
  font-size: 16px;
  color: white;
  max-width: 400px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.6;
  height: 1.6em;
  box-sizing: border-box;
}

/* ==============================
   SLIDESHOW
================================= */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  background-color: black;
}

.mySlides {
  display: none;
  width: 100%;
  text-align: center;
}

.mySlides img {
  cursor: pointer;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  height: auto;
  border-radius: 5px;
}

/* ==============================
   NAVIGATION (DOTS) DIAPORAMA
================================= */
.dot-container {
  background-color: #1A1A1A;
  padding: 7px 0; /* Ajustement pour ne pas prendre trop de place */
  border-top: 1px solid #301910;
  border-bottom: 1px solid #301910;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px; /* Réduction pour que les 15 dots tiennent bien */
  max-width: 100%;
  overflow: hidden;
}

/* Empêche plus de 15 dots d’apparaître */
.dot-container .dot:nth-child(n+16) {
  display: none;
}

.dot {
  cursor: pointer;
  height: 11px; /* Réduction de la taille */
  width: 11px;  /* Réduction de la taille */
  margin: 0 1.8px; /* Ajustement pour alignement parfait */
  background-color: #301910;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  border: 2px solid #E5A154;
}

.active, .dot:hover {
  background-color: #E5A154;
}

/* Cache les dots si une seule image */
.slideshow-container:has(.mySlides:nth-child(1):only-child) + .dot-container {
  display: none;
}

/* ==============================
   BOUTON "PLUS"
================================= */
.btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #301910;
  color: #E5A154;
  text-decoration: none;
  border: 1px solid #301910;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background-color: #E5A154;
  color: #301910;
  transform: scale(1.05);
}

/* ==============================
   CONTENU DE L'ARTICLE
================================= */
.article-content p {
  font-size: 16px;
  color: white;
  max-width: 400px;
  max-height: 250px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7; /* Ajustez selon besoin */
  line-height: 1.6;
}

/* ==============================
   FOOTER CARD
================================= */
.card-footer-line {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-top: 10px;
}

.card-footer-line .card-tags {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
  color: #E5A154;
  font-style: italic;
  font-size: 14px;
}

/* ==============================
   RESPONSIVE DESIGN
================================= */
@media only screen and (max-width: 600px) {
  .container {
    padding: 70px 10px 40px;
  }

  .card-title {
    font-size: 20px;
    max-width: 25ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-text {
    font-size: 14px;
    max-width: 20ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Réduction supplémentaire des dots pour mobile */
  .dot {
    height: 9px;
    width: 9px;
    margin: 0 1.5px;
  }

  .dot-container {
    gap: 5px;
  }
}

/* Icône trefle pour les tags */
.tag-icon {
  width: 25px;
  height: 25px;
  vertical-align: middle; 
  position: relative; 
  top: 1px;           /* Ajustez la valeur pour déplacer plus ou moins bas */
  margin-right: -5px; /* Ajustez si besoin l'espace à droite */
}