/* ======================================
   FICHIER : contexte.css
   DESCRIPTION : Feuille de styles de la page contexte.html
   AUTEUR : COULAIS Tom
   DATE : 02/04/2025
   ====================================== */

/* Section principale de la page contexte */
.contextesection {
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: calc(100dvh - 60px); 
  background-color: #F9F3E9; 
}

/* Conteneur principal du carrousel */
.carousel {
  position: relative; 
  width: 70vw;
  overflow: hidden; 
  border-radius: 10px; 
}

/* Conteneur des diapositives du carrousel */
.carousel-container {
  display: flex; 
  transition: transform 0.5s ease-in-out; 
  margin-top: 100px;
}

/* Chaque diapositive du carrousel */
.carousel-slide {
  min-width: 100%; 
}

/* Images des diapositives */
.carousel-slide img {
  width: 100%; 
  height: auto; 
  display: block; 
}

/* Indicateurs du carrousel */
.carousel-indicators {
  position: absolute; 
  top: 10px; 
  left: 50%;
  transform: translateX(-50%); 
  display: flex; 
  gap: 55px; 
  z-index: 10; 
}

/* Style des points indicateurs */
.dot {
  width: 25px; 
  height: 25px; 
  background-color: none; 
  border: solid #e46d26 2px; 
  border-radius: 50%; 
  margin: 50px 0 0 0; 
  cursor: pointer; 
  transition: background-color 0.3s; 
}

/* Point actif */
.dot.active {
  background-color: #e46d26;
}

/* Boutons de navigation */
.prev, .next {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  background-color: rgba(0, 0, 0, 0.5); 
  color: white; 
  border: none; 
  padding: 10px; 
  cursor: pointer; 
  font-size: 25px; 
  border-radius: 5px; 
}

/* Bouton précédent */
.prev {
  left: 10px; 
}

/* Bouton suivant */
.next {
  right: 10px; 
}

/* Effet au survol des boutons */
.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8); 
}

@media only screen and (max-width: 1366px) {
  .carousel {
    width: 90vw; 
  }
  .prev, .next {
    top: 55%; 
  }
}