/*Etapes de formulaire - visible-hide*/
.form-step {
    display: none;
}
#part1 {
    display: block;
}
#part2 {
    display: block;
}
#part3 {
    display: block;
}
#part4 {
    display: block;
}
/*Fin des etapes de formulaire*/
/* Applique un style global à la page */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5; /* Fond gris clair */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Conteneur du formulaire */
form {
  background-color: #ffffff; /* Fond blanc */
  border-radius: 10px; /* Coins arrondis */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
  padding: 20px 30px;
  width: 100%;
  max-width: 600px;
}

/* Espacement entre les champs */
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

form input, form select, form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px; /* Coins arrondis pour les champs */
  font-size: 14px;
}

input[type="radio"], label {
    display: inline;
    margin-right: 10px; /* Espace entre chaque groupe */
}

/* Bouton de soumission à droite et a gauche*/
.button-container {
  display: flex;
  justify-content: space-between; /* Sépare les éléments aux extrémités */
  align-items: center; /* Centre verticalement si nécessaire */
}

/* Bouton de soumission */
form button {
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 200px;
    margin-right: 20px;
    align-content: flex-start;
    
}

form button:hover {
  background-color: #41c246;
}

/* Titre des sections */
h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Résultat affiché */
p {
  font-size: 14px;
  color: #333;
}

.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Style commun pour masquer les input natifs */
.toggle-switch input[type="checkbox"],
.toggle-switch input[type="radio"] {
  display: none;
}

.toggle-switch label {
  position: relative;
  padding-left: 50px;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
}

/* Barre de fond de l'interrupteur */
.toggle-switch label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 20px;
  background-color: #ddd;
  border-radius: 20px;
  transition: background-color 0.3s;
}

/* Curseur de l'interrupteur */
.toggle-switch label::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s;
}

/* Effet activé pour les cases à cocher */
.toggle-switch input[type="checkbox"]:checked + label::before {
  background-color: #2196F3;
}

.toggle-switch input[type="checkbox"]:checked + label::after {
  left: 24px;
}

/* Effet activé pour les boutons radio */
.toggle-switch input[type="radio"]:checked + label::before {
  background-color: #4caf50;
}

.toggle-switch input[type="radio"]:checked + label::after {
  left: 24px;
}
/* Anime va-et-viens-fluide*/
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.toggle-show {
  display: block;
  animation: slideIn 0.5s ease-out;
}

.toggle-hide {
  display: none;
  animation: slideOut 0.5s ease-in;
}
/* Style du tableau PHP*/
table {
            width: 60%;
            margin: 20px auto;
            border-collapse: collapse;
        }
        th, td {
            padding: 10px;
            text-align: center;
            border: 1px solid #ccc;
        }
        th {
            background-color: #8de396;
            color: white;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        .produit-recommande {
            background-color: #FFD700;
            font-weight: bold;
        }
        @media (min-width: 769px) and (max-width: 1024px),
        @media (max-width: 768px) {
            table {
                width: 100%;
                margin: 0 auto;
                border-collapse: collapse;
            }
        }
        #btn-pdf {
            display: block;
            margin: 30px auto;
            padding: 10px 20px;
            font-size: 16px;
            background: #cbe4ce;
            color: white;
            border: none;
            cursor: pointer;
        }
/* Style du podium de 3 appareils recommandé*/
        .podium {
            width: 60%;
            align-content: center;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            margin-top: 20px;
            gap: 20px;
            font-family: Arial, sans-serif;
        }
        .podium .card {
            flex: 1;
            margin: 10px;
            padding: 15px;
            border-radius: 12px;
            text-align: center;
            background: #cbe4ce;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .podium .first {
            border: solid 2px #8de396;
            background: #ffffff;
            font-weight: bold;
            transform: scale(1.1);
        }
        .podium h3 {
            margin: 0 0 10px;
            font-size: 18px;
        }
        .podium .value {
            font-size: 16px;
            margin: 5px 0;
        }