/*SOLUTIONS*/

.solutions {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
  height: 100vh;
  width: 100vw;
}

.solutions__container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.solutions__partie-haute {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.solutions__partie-haute h2 {
  color: var(--colorv3);
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.solutions__partie-haute h3 {
  margin-bottom: 4rem;
}

.card_container {
  display: flex;
  width: 90%;
  justify-content: center;
  padding-bottom: 1rem;
}

.solutions__card {
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
  border: 1px lightgray solid;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.solutions__card img {
  padding-bottom: 1rem;
}

.solutions__card img {
  padding-bottom: 1rem;
}

.solutions__card h4 {
  padding-bottom: 1rem;
  transition: transform 0.3s ease-in-out;
}

.solutions__card h4:hover {
  transform: scale(1.2);
  cursor: pointer;
}

.solutions__card p {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: justify;
}

.card1 {
  background-color: var(--colorv4);
}

.card2 {
  background-color: var(--colorv5);
}

.card3 {
  background-color: var(--colorv6);
}

.card4 {
  background-color: var(--colorv7);
}

.card5 {
  background-color: var(--colorv6);
}

.solutions__container button {
  padding-left: 1rem;
  padding-right: 1rem;
  height: 2.5rem;
  word-spacing: 0.1rem;
  width: 12%;
  margin-bottom: 2rem;
}

.carousel {
  position: relative;
  width: 80%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

/* On cache les inputs radio */
.carousel input {
  display: none;
}

.card_container {
  position: relative;
  height: 400px; /* Ajustez selon vos besoins */
}

/* Toutes les cartes sont positionnées de manière absolue et cachées par défaut */

/* Affichage de la carte correspondante à l'input radio coché */
#slide1:checked ~ .card_container .card1,
#slide2:checked ~ .card_container .card2,
#slide3:checked ~ .card_container .card3,
#slide4:checked ~ .card_container .card4,
#slide5:checked ~ .card_container .card5 {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.solution__card_detail {
  display: flex;
  width: 90%;
  margin: auto;
  justify-content: center;
  text-align: center;
  align-items: center;
}

p.solution__card_detail-p {
  margin: 0;
}

.imageViolet1,
.imageViolet2,
.imageViolet3,
.imageViolet4,
.imageViolet5 {
  width: 7rem;
  height: 7rem;
}

.solution__card_detail-p {
  margin: 0;
}
/* Styles pour les flèches de navigation */
.flèche {
  border: solid var(--text-colorv1);
  padding: 12px;
  border-width: 0 5px 5px 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  /* Vous pouvez ajouter d'autres styles (taille, couleur, etc.) selon vos besoins */
}

.précédent {
  left: 15px;
  transform: rotate(135deg);
}

.suivant {
  right: 15px;
  transform: rotate(-45deg);
}

/* Tablettes et petits écrans (< 1200px) */
@media screen and (max-width: 1199px) {
  .solutions {
    height: auto;
    padding-bottom: 2rem;
  }

  .solutions__partie-haute h2 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }

  .solutions__partie-haute h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .carousel {
    width: 90%;
  }

  .card_container {
    height: 350px;
  }

  .solutions__card p {
    font-size: 1rem;
    width: 90%;
  }

  .solutions__container button {
    width: 30%;
    font-size: 1rem;
  }

  .imageViolet1,
  .imageViolet2,
  .imageViolet3,
  .imageViolet4,
  .imageViolet5 {
    width: 6rem;
    height: 6rem;
  }
}

/* Smartphones (< 768px) */
@media screen and (max-width: 767px) {
  .solutions__partie-haute h2 {
    font-size: 2rem;
    margin-top: 2rem;
  }

  .solutions__partie-haute h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .carousel {
    width: 100%;
  }

  .card_container {
    height: 320px;
  }

  .solutions__card {
    padding: 1rem;
  }

  .solutions__card p {
    font-size: 0.95rem;
  }

  .solutions__card h4 {
    font-size: 1.2rem;
  }

  .solutions__container button {
    width: 50%;
    font-size: 1rem;
  }

  .imageViolet1,
  .imageViolet2,
  .imageViolet3,
  .imageViolet4,
  .imageViolet5 {
    width: 5rem;
    height: 5rem;
  }

  .flèche {
    padding: 8px;
    border-width: 0 4px 4px 0;
  }
}

/* Très petits écrans (< 480px) */
@media screen and (max-width: 479px) {
  .solutions__partie-haute h2 {
    font-size: 1.6rem;
  }

  .solutions__partie-haute h3 {
    font-size: 1.2rem;
  }

  .card_container {
    height: 300px;
  }

  .solutions__card p {
    font-size: 0.85rem;
  }

  .solutions__container button {
    width: 70%;
    font-size: 0.9rem;
  }

  .imageViolet1,
  .imageViolet2,
  .imageViolet3,
  .imageViolet4,
  .imageViolet5 {
    width: 4rem;
    height: 4rem;
  }

  .flèche {
    padding: 6px;
    border-width: 0 3px 3px 0;
  }
}
