.carousel-wrapper {
  position: relative;
}

.carousel {
  display: block;
  width: 1fr; /* fixe la taille du carrousel */
  height: 550px; /* fixe la hauteur */
  overflow: hidden;
  margin-top: 55px;
  margin-left: 0px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.carousel-slide {
  width: 100%;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 82%;
  object-fit: contain;
}

.opac-link {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 100;
}

.carousel-links {
  position: absolute;
  top: 125px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carousel-links div {
  background-color: rgba(16, 18, 159, 0.6);
  color: white;
  padding: 7px 10px;
  border-radius: 5px;
}

.carousel-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.carousel-links div:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.icon-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.icon-label a {
  color: white;
  text-decoration: none;
}

.icon-label a:hover {
  text-decoration: underline;
}

.icon-box {
  width: 10px;
  height: 10px;
  background-color: #040691;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.icon-box i {
  color: white;
  font-size: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 70%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ===========================
   Responsive Tablettes
=========================== */
@media screen and (max-width: 768px) {
  .carousel {
    height: 450px;
    margin-top: 55px;
  }

  .carousel-slide img {
    height: auto;
    object-fit: contain;
  }

  .opac-img {
    width: 150px;
    margin-top: 80px;
  }

  .carousel-links {
    top: 100px;
    left: 15px;
  }

  .carousel-links div {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* ===========================
   Responsive Mobile
=========================== */
@media screen and (max-width: 480px) {
  .carousel {
    height: 350px;
    margin-top: 45px;
  }

  .carousel-slide img {
    height: auto;
    object-fit: contain;
  }

  .opac-img {
    width: 100px;
    margin-top: 60px;
  }

  .carousel-links {
    top: 70px;
    left: 10px;
  }

  .carousel-links div {
    font-size: 10px;
    padding: 5px 7px;
  }
}
