@import url(index.css);

.container {
  width: 90%;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;

  /* EFFET VERRE CIVRE & LUEUR */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 25px;

  box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.05), 
      0 0 20px rgba(233, 196, 106, 0.3);
}

body.dark-mode .container {
    /* Verre sombre : Noir semi-transparent */
    background: rgba(20, 30, 40, 0.6);
    
    /* Bordure lumineuse très fine */
    border: 1px solid rgba(233, 196, 106, 0.15);
    
    /* LA LUEUR (GLOW) : C'est ici que ça claque ! */
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.5), /* Ombre noire pour la profondeur */
        0 0 15px rgba(233, 196, 106, 0.1); /* Halo jaune subtil */
}

.carousel {
  width: 80%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  position: relative;
}

.carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__item {
  min-width: 100%;
  height: 80%;
  transform: scale(0.92);
  opacity: 0.7;
  transition: 
      transform 0.5s ease,
      opacity 0.5s ease;
}

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.2s ease-out;
  will-change: transform;
}


.carousel__item.active {
  transform: scale(1);
  opacity: 1;
}

.carousel__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.carousel-button {
  font-size: 1.1rem;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: white;
  color: #454545;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;

  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transition: 
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.3s ease;
}

.carousel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background-color: #f5f5f5;
}

.carousel-button:active {
  transform: scale(0.95);
}

.carousel-button:focus-visible {
  background-color: rgb(154, 163, 247);
  color: white;
  box-shadow: 0 0 0 4px rgba(154, 163, 247, 0.4);
}

@media (max-width: 768px) {
  .carousel {
      width: 95%;
      height: 45%;
      padding: none;
  }

  .carousel__item {
      height: 45vh;
  }

  .carousel-button {
      height: 42px;
      width: 42px;
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .carousel {
      width: 100%;
      height: 40%;
      margin: none;
      padding: none;
  }

  .carousel__item {
      height: 35vh;
  }

  .carousel__item img {
      object-position: center top;
  }
}