/* plus.css */

/* -------------------------------
   1) Container Principal
------------------------------- */
.article-detail-container {
  background-color: transparent;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
}

.article-detail {
  position: relative;
  z-index: 1;
}

/* Titre (H1) */
.article-detail h1 {
  color: #000;
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: bold;
}

/* -------------------------------
   2) Slideshow
------------------------------- */
.slideshow-container {
  margin: 20px auto;
  max-width: 800px;
  position: relative;
}

.mySlides {
  display: none;
  width: 100%;
  text-align: center;
}

.mySlides img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.dot-container {
  text-align: center;
  margin-top: 10px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: white;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  border: 2px solid black;
}
.active,
.dot:hover {
  background-color: black;
}

/* -------------------------------
   3) Encadré autour du contenu
------------------------------- */
.article-body-wrapper {
  background: #FFFFFF;
  border: 1px solid #DDD;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.article-body-wrapper .article-content {
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  min-height: 250px;
}
.article-body-wrapper .article-content p {
  line-height: 1.8;
  color: #000;
  margin-bottom: 1.2em;
}

/* -------------------------------
   4) Blocs PRÉCÉDENT / SUIVANT
------------------------------- */
.article-nav-container {
  width: 80%;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #DDD;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);

  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* Un seul bloc => centrer */
.article-nav-container.single-block {
  justify-content: center;
  align-items: center;
}

/* Chaque bloc précédent/suivant */
.article-nav-block {
  flex: 0 0 45%;
  text-align: center;
  color: #000;
}

.article-nav-block a {
  display: block;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-nav-block a:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Image aperçue dans Precedent/Suivant */
.article-nav-block img {
  display: block;
  max-width: 140px;
  max-height: 100px;
  margin: 0 auto 10px;
  border: 1px solid #DDD;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Titre dans Precedent/Suivant => ellipsis */
.article-nav-title {
  /* Sur desktop, on autorise plus de largeur => plus de caractères */
  display: inline-block;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #000;
  word-break: break-word;
}

/* -------------------------------
   5) Responsive <= 600px
------------------------------- */
@media (max-width: 600px) {
  .article-nav-container {
    width: 90%;
    padding: 15px;
    gap: 10px;
  }

  .article-nav-block {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 10px;
  }

  .article-nav-block img {
    max-width: 100%;
    height: auto;
  }

  /* Sur mobile, on force un conteneur plus étroit => ~13 chars */
  .article-nav-title {
    /* ICI: on réduit la largeur => ~13 caractères avant ... */
    max-width: 70px; /* Ajustez la valeur si besoin (~13 chars) */
    font-size: 14px;
  }
}
