@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'DM Sans', sans-serif;
  background-color: #ffd289;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 10px;
  transition: background .4s ease-in;
}

/* Croix en haut à gauche */
.cross {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 6px;
  background-color: white;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.cross::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cross::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cross:hover::before,
.cross:hover::after {
  background-color: #ef8611;
}

/* Conteneur principal */
.container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px; /* Ajout d'espace sous les images */
}

/* Titre du carrousel */
.carousel-title {
  font-size: 48px;
  font-weight: 700;
  color: #400601;
  margin-bottom: 20px;
  font-family: "PolySans Slim", sans-serif;
}

/* Conteneur du carrousel */
.cards {
  position: relative;
  width: 100%;
  height: 600px; /* Ajusté pour éviter de cacher le texte */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px; /* Ajoute un espace sous le carrousel */
}

/* Cartes d'images */
.card {
  position: absolute;
  width: 100%;
  height: 600px;
  left: 0;
  right: 0;
  margin: auto;
  transition: transform .4s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Évite les déformations */
  border-radius: 10px;
}

/* Effet de déplacement des images en fonction du radio sélectionné */
#item-1:checked ~ .cards #song-3, 
#item-2:checked ~ .cards #song-1, 
#item-3:checked ~ .cards #song-2 {
  transform: translateX(-40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-2, 
#item-2:checked ~ .cards #song-3, 
#item-3:checked ~ .cards #song-1 {
  transform: translateX(40%) scale(.8);
  opacity: .4;
  z-index: 0;
}

#item-1:checked ~ .cards #song-1, 
#item-2:checked ~ .cards #song-2, 
#item-3:checked ~ .cards #song-3 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 1;
}

/* Suppression des points du carousel */
input[type="radio"] {
  display: none;
}

/* Listes avec le même style que le texte de base */
ul, ol {
  font-size: 25px;
  color: #400601;
  font-family: 'DM Sans', sans-serif;
  padding-left: 20px;
}

ul li, ol li {
  margin-bottom: 8px;
}

/* Description sous le carrousel */
.carousel-description {
  font-size: 25px;
  color: #400601;
  text-align: left;
  max-width: 100%;
  padding: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
    height: auto;
  }

  .carousel-title {
    font-size: 24px;
    text-align: center;
  }

  .carousel-description {
    font-size: 25px;
    text-align: center;
  }

  /* Ajustement de la taille des images */
  .cards {
    height: 400px; /* Hauteur plus petite pour éviter de cacher le texte */
  }

  .card {
    width: 90%;
    height: 100%;
    user-select: none; 
  }

  .card img {
    height: 100%;
    object-fit: cover;
  }
}


