/* Container for the entire articles section */
.articlesContent {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  padding: 30px;
  background-color: var(--greenContrast-);
}

.articlesContent h1, .articlesContent h2 {
  width: 100%;
  font-size: clamp(20px, 2vw, 42px);
  line-height: 150%;
  margin-bottom: 3rem;
  color: var(--gray-);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article {
  width: 100%;
  display: flex;
  
}
/* Styles for the left and right columns of each article */

.left {
  min-width: 48%;
  flex: 1; 
  max-width: 100%;
  height: auto;
}

/* Styles for the gallery */
.right {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
/* Base styles remain the same */

/* Column Layout Styles */
.article.column-layout {
  flex-direction: column;
  align-items: center;
}

.article.column-layout .left {
  width: 100%;
  margin-bottom: 20px; /* Optional: add some space between the columns */
}

.article.column-layout .right {
  width: 70%;
  margin-bottom: 20px; /* Optional: add some space between the columns */
}

/* Add other necessary styles here */

/* Styles for article text */
.textArticle {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  font-size: clamp(12px, 0.9vw, 24px);
  color: var(--gray-);
  line-height: 170%;
  word-wrap: break-word; /* Permet au texte de s'enrouler dans le conteneur */
  overflow-wrap: break-word; /* Equivalent moderne de word-wrap */
  white-space: normal;
  background-color: white;
}

.textArticle ul, .textArticle ol {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  background-color: transparent !important;
  margin: 0 !important;
  padding-left: 30px !important;
  padding-bottom: 5px !important;
}

.textArticle li {
  list-style-type: square;
  font-size: clamp(12px, 0.9vw, 24px);
  color: var(--black-);
  line-height: 150%;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  margin-bottom: 3px !important;
}
.textArticle li p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.textArticle a,
.textArticle li a {
  text-decoration: none;
  font-size: clamp(12px, 0.9vw, 24px);
  font-weight: 700;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Styles for PDF links */
.articlesPdfLink {
  width: 90%;
  margin-bottom: 0.5rem;
}

.articlesPdfLink a {
  font-size: clamp(12px, 0.9vw, 24px);
  text-decoration: none;
  color: var(--black-);
  font-weight: 800;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.articlesPdfLink a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--black-);
  transition: width 0.3s ease;
}

.articlesPdfLink a:hover {
  transform: scale(1.1);
}

.articlesPdfLink a:hover::after {
  width: 100%;
}

/* Gallery Styles */
.gallery {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-bottom: 30px;
}

.gallery__main {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.gallery__main .gallery__img {
  width: auto;
  max-width: 100%;
  display: none;
  height: 300px;
  object-fit: contain;

  transition: transform 0.3s;
  margin: 0 auto;
}

.gallery__main .gallery__img.active {
  display: block;
}

.gallery__thumbnails-wrapper {
  position: relative;
  overflow-x: hidden;
  width: 90%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.gallery__thumbnails-wrapper::-webkit-scrollbar {
  display: none;
}
.gallery__thumbnails {
  display: flex;
  transition: transform 0.5s ease;
  gap: 10px;
}

.gallery__thumbnail {
  width: 75px;
  height: 56px;
  cursor: pointer;
  transition: transform 0.3s;
  border: 1px solid var(--gray-);
  flex: 0 0 auto;
}

.gallery__thumbnail.active {
  border: 2px solid var(--green-);
  transform: scale(1.2);
}

.gallery__thumbnail:hover {
  transform: scale(1.1);
}

.gallery__thumbnail:not(.active) {
  opacity: 0.7;
}

/* Pagination Styles */
.gallery__pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Styles for the pagination arrows */
.gallery__pagination button {
  width: 60px;
  height: 60px;
  padding: 10px;
  font-size: 24px;
  color: var(--greenContrast-);
  background-color: var(--black-);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 3px 3px 2px #045e10;
}

.gallery__pagination button:hover {
  background-color: var(--gray-);
  box-shadow: none;
}

/* Lightbox Styles */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 20.5vh; /* Adjust to match the height of your header */
  width: 100%;
  height: calc(
    100% - 20.5vh
  ); /* Adjust to match the combined height of header and footer */
  background-color: rgba(205, 243, 182, 0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox__content {
  max-width: 80%;
  max-height: 80%;
  display: block;
  margin: auto;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--gray-);
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__close:focus {
  color: var(--green-);
  text-decoration: none;
  cursor: pointer;
}

.lightbox__description {
  color: var(--gray-);
  text-align: center;
  margin-top: 15px;
  max-width: 90%;
  font-weight: bold;
}

.lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  max-width: 100%;
  max-height: 100%;
}

/* Media Queries */
@media (max-width: 1100px) {

  .article {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    box-shadow: none;
    border: 2px solid var(--green-);
    padding: 20px;
  }

  .left,
  .right {
    width: 90%;
    overflow: hidden;
  }

  .textArticle {
    width: 95%;
    margin: 0 auto 10px;
    padding: 20px;
    border-radius: none;
  }

  .articlesPdfLink {
    width: 95%;
    padding-left: 25px;
  }


  .gallery__pagination button {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* Media query for smaller screens */

@media (max-width: 500px) {
  .descriptionPage {
    width: 100%;
    border: none;
    background-color: var(--greenContrast-);
  }

  .articlesContent {
    width: 100%;
  }

  .article {
    width: 100%;
    margin-bottom: 20px;
  }

  .left {
    width: 100%;
    padding: 0;
  }

  .right {
    width: 100%;
    padding: 0;
  }

  .textArticle {
    padding: 20px 10px;
  }

  .articlesPdfLink {
    width: 100%;
    background-color: var(--black-);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
  }

  .articlesPdfLink a {
    font-size: 14px;
    color: var(--greenContrast-);
  }

  .articlesPdfLink a::after {
    background-color: var(--greenContrast-);
  }
  .gallery__main .gallery__img {
    width: 100%;
  }
}
/* Media query for very small screens */
@media (max-width: 400px) {
  .gallery__pagination button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
