* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Carrousel principal */
.carousel-container {
  position: relative;
  width: 61vw; 
  margin: auto;
  overflow: hidden; 
}

.carousel {
  display: flex;
  height: 250px; 
  align-items: center;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 180px; 
  margin-right: 10px; 
  height: 100%;
  cursor: pointer;
}

/* Boutons de navigation du carrousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #166a64; 
  border: none;
  padding: 20px; 
  cursor: pointer;
  z-index: 1;
  width: 80px; 
  height: 80px; 
  border-radius: 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent; 
  font-size: 24px; 
}

.prev {
  left: -35px;
}

.next {
  right: -35px;
}

/* Carrousel d'images uniques */
.carousel-container-single {
  position: relative;
  width: 100%;
  max-width: 900px; 
  margin: auto;
  overflow: hidden; 
  padding: 0; 
  margin-top: 0; 
  margin-bottom: 0; 
}

.carousel-single {
  display: flex;
  height: 400px; 
  align-items: center;
  justify-content: center; 
}

.carousel-images-single {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images-single img {
  max-width: 100%; 
  height: auto; 
  object-fit: contain; 
}

/* Boutons de navigation pour les images uniques */
.carousel-btn-single {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #166a64;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-single {
  left: 0px; 
}

.next-single {
  right: 0px; 
}

/* Ligne de séparation */
.divider {
  height: 3px; 
  background-color: #166a64; 
  width: 100%; 
  margin: 0;
}

/* Deuxième carrousel d'images */
.carousel-container-single-2 {
  position: relative;
  width: 100%;
  max-width: 900px; 
  margin: auto;
  overflow: hidden;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.carousel-single-2 {
  display: flex;
  height: 400px; 
  align-items: center;
  justify-content: center;
}

.carousel-images-single-2 {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images-single-2 img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Boutons de navigation pour le deuxième carrousel d'images */
.carousel-btn-single-2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #166a64;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-single-2 {
  left: 0px; 
}

.next-single-2 {
  right: 0px; 
}


/* image non carousel */
.image-left {
  width: 75%; 
  float: left; 
  margin-right: 20px; 
}

.image-right {
  width: 75%; 
  float: right; 
  margin-left: 20px; 
  margin-top: none;
}

/* Clearfix pour corriger les éléments flottants */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
@media screen and (max-width: 1024px) {
  /* Ajustement de la largeur du conteneur */
  .carousel-container {
    width: 90vw;
  }

  /* Réduction de la taille des images */
  .carousel-images img {
    width: 150px;
  }

  /* Ajustement des boutons */
  .carousel-btn {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .prev {
    left: -30px;
  }

  .next {
    right: -30px;
  }

  /* Réduction de la hauteur */
  .carousel {
    height: 200px;
  }

  /* Carrousel unique */
  .carousel-single {
    height: 300px;
  }
}

@media screen and (max-width: 768px) {
  /* Largeur du conteneur ajustée */
  .carousel-container {
    width: 100%;
  }

  /* Images plus petites */
  .carousel-images img {
    width: 75px;
  }

  .carousel {
    height: 150px;
  }

  /* Boutons plus petits */
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .prev {
    left: -20px;
  }

  .next {
    right: -20px;
  }

  /* Carrousel unique ajusté */
  .carousel-single {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {
  /* Carrousel principal */
  .carousel-container {
    width: 100%; /* S'étend sur toute la largeur */
  }

  .carousel-images img {
    width: 60px; /* Taille des icônes ajustée pour une meilleure visibilité */
    height: auto; /* Maintien du ratio des images */
    margin-right: 5px; /* Espacement entre les images */
  }

  .carousel {
    height: 100px; /* Ajustement de la hauteur du carrousel */
    align-items: center;
  }

  /* Retour aux flèches de base avec un écartement plus important */
  .carousel-btn {
    width: 80px; /* Taille d'origine pour les boutons */
    height: 80px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Fond transparent */
    border: none;
    color: #166a64;
    border-radius: 50%; /* Forme ronde */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
  }

  /* Flèche précédente (plus écartée) */
  .prev {
    left: 20px; /* Écartement augmenté */
  }

  /* Flèche suivante (plus écartée) */
  .next {
    right: 20px; /* Écartement augmenté */
  }
}
@media screen and (max-width: 480px) {
  /* Carrousel principal */
  .carousel-container {
    width: 100%; /* S'étend sur toute la largeur */
  }

  .carousel-images img {
    width: 60px; /* Taille d'icônes restaurée */
    height: auto; /* Maintien du ratio des images */
    margin-right: 5px; /* Espacement entre les images */
  }

  .carousel {
    height: 100px; /* Hauteur du carrousel ajustée */
    align-items: center;
  }

  /* Flèches légèrement plus écartées, mais ajustées un peu plus sur les côtés */
  .carousel-btn {
    width: 80px; /* Taille des boutons inchangée */
    height: 80px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Fond transparent */
    border: none;
    color: #166a64;
    border-radius: 50%; /* Forme ronde */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
  }

  /* Flèche précédente (un tout petit peu plus sur le côté) */
  .prev {
    left: -30px; /* Un peu plus éloignée du centre */
  }

  /* Flèche suivante (un tout petit peu plus sur le côté) */
  .next {
    right: -30px; /* Un peu plus éloignée du centre */
  }
}
