html, body, main {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place l'image de fond derrière le contenu */
}

.bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre toute la fenêtre */
}
  
.retour a {
    scale: 3;
    
    position: absolute;
    text-decoration: none;
    color: white;
    margin-top: 4%;
    margin-left: 5%;
    opacity: 0.6;
}

.retour a:hover {
    opacity: 1;
}

  #carousel {
    position: relative;
    height: 400px;
    top: 60%;
    transform: translateY(-50%);
    overflow: hidden;
  }
  #carousel div {
    position: absolute;
    transition: transform 1s, left 1s, opacity 1s, z-index 0s;
    opacity: 1;
  }
  #carousel div img {
    width: 400px;
    transition: width 1s;
  }
  #carousel div.hideLeft {
    left: 0%;
    opacity: 0;
    transform: translateY(50%) translateX(-50%);
  }
  #carousel div.hideLeft img {
    width: 200px;
  }
  #carousel div.hideRight {
    left: 100%;
    opacity: 0;
    transform: translateY(50%) translateX(-50%);
  }
  #carousel div.hideRight img {
    width: 200px;
  }
  #carousel div.prev {
    z-index: 5;
    left: 30%;
    transform: translateY(50px) translateX(-50%);
  }
  #carousel div.prev img {
    width: 300px;
  }
  #carousel div.prevLeftSecond {
    z-index: 4;
    left: 15%;
    transform: translateY(50%) translateX(-50%);
    opacity: 0.7;
  }
  #carousel div.prevLeftSecond img {
    width: 200px;
  }
  #carousel div.selected {
    z-index: 10;
    left: 50%;
    transform: translateY(0px) translateX(-50%);
  }
  #carousel div.next {
    z-index: 5;
    left: 70%;
    transform: translateY(50px) translateX(-50%);
  }
  #carousel div.next img {
    width: 300px;
  }
  #carousel div.nextRightSecond {
    z-index: 4;
    left: 85%;
    transform: translateY(50%) translateX(-50%);
    opacity: 0.7;
  }
  #carousel div.nextRightSecond img {
    width: 200px;
  }
  
  .buttons {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
  }
button {
  transform: scale(2);
  padding: 10px 20px;
  font-size: 25px;
z-index: 2;
  font-family: 'Passion One', sans-serif;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
  width: 12px;
  height: 45px;
  margin-bottom: 20%;
  margin-right: 55px;
  filter: blur(1px);
}

button:hover {
    filter: blur(0);
  opacity: 1;
  color: rgb(249, 247, 180);

}

#next {
    
    margin-left: 30px;
}

#prev {
    
    margin-right: 30px;
}