* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}


/***PAGE D'ACCUEIL***/
.accueil {
  height: 100vh;
}
.accueil img {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  object-fit: cover;
}
.accueil article {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.formDevisAccueil {
  width: 97%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Section formulaire */
.form-switch {
  margin-bottom: -19px;
  height: 56px;
  display: flex;
  width: 96%;
}

.switch-btn {
  border: none;
  background-color: #ff66008a;
  color: white;
  cursor: pointer;
  border-radius: 25px 25px 0 0;
  width: 140px;
  margin-bottom: 10px;
}

.switch-btn:hover {
  background-color: #ff66008a;
}
#trajet-form {
  display: flex; /* Formulaire Trajet visible par défaut */
  flex-direction: column; /* Optionnel : Organise les champs en colonne */
}

#service-heure-form {
  display: none; /* Formulaire Service à l'heure masqué par défaut */
}

.switch-btn.active {
  background-color: #ff6600; /* Exemple de style pour le bouton actif */
  font-weight: bold;
}
.form {
  /*display: none;*/
  width: 98%;
  border-radius: 20px 50px;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}
.form h2 {
  margin-bottom: 20px;
  font-size: large;
  line-height: 1.3;
  text-align: center;
}

.form input,
.form button {
  width: 77%;
  padding: 8px;
  margin-bottom: 10px;
  border: none;
  background-color: #a8a9ad29;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.form button {
  background-color: #ff6600;
  color: white;
  border: none;
  cursor: pointer;
  margin: 10px 0 10px 0;
  display: flex;
  align-items: center;
}

.form button:hover {
  background-color: #ff66008a;
}
.switch-btn.active {
  background-color: #ff6600; /* Couleur surbrillance */
}
.form {
  display: flex;
  flex-direction: column;
  height: 375px;
}
.separatorFormAccueil {
  width: 77%;
  display: flex;
  gap: 5px;
}
.selectorAccueilForm {
  border: none;
  background-color: #a8a9ad29;
  width: 77%;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
  color: #a8a9ad;
}
input::placeholder {
  color: #a8a9ad;
}
.selectorAccueilForm:focus {
  outline: none;
}
input:focus {
  outline: none;
}
.form h3 {
  margin: 10px 0 20px 0;
}
/***section accueilInfo ***/
.accueilInfo,
.voitureInfo {
  width: 100%;
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* background-image: url("../images/backgroundTelAccueil.png");
    background-size: cover;
    background-position: center;
    padding: 50px 0 100px 0; */
}
.voitureInfotitre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: x-large;
  margin-bottom: 62px;
  text-align: center;
}
.accueilInfoSeparator {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 100px;
}
.accueilInfo h1 {
    margin: 30px 0;
    /* font-size: larger; */
    font-weight: 600;
    text-align: center;
    font-size: x-large;
    margin-bottom: 63px;
}
.infoPost {
  display: flex;
  flex-direction: column;
  width: 80%;

  margin: 20px 0;
}
.infoPost img {
  width: 100%;

  height: 140px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 11px;
}
.infoPost h2 {
  font-size: large;
  margin: 4px 0 10px;
}

.infoPost a {
  color: #000000;
  margin-top: 20px;
}

/***section voitureInfo ***/
.voitureInfo {
  /* background-color: #f7f7f7; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.voitureInfo h1 {
  margin: 40px 0 30px;
  font-size: large;
  text-align: center;
}
.voiturePost {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 297px;
  margin: 30px 60px;
}

.voiturePost h3 {
  font-size: 20px;
  margin: 15px;
}
.voitureInfo img {
  width: 134px;
}
/***section InfoTel***/
.telInfo {
  display: flex;
  flex-direction: column;
  gap: 85px;
}
.telInfoTextTel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.infoTel img {
  width: 300px;
  object-fit: cover;
  margin-bottom: -300px;
}
.infoText {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0;
  border: solid 4px #ff6600;
  padding: 20px;
  border-radius: 31px;
  background-color: #ffffff;
  gap: 20px;
}
.infoText h1 {
  margin: 14px 0 0;
  font-size: larger;
  font-weight: bold;
  line-height: 1.3;
}
.infoText p {
  line-height: 1.5;
}

.infoText button {
  color: #ffffff;
  background-color: #ff6600;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin: 10px 0 15px 0;
}
.infoText button:hover {
  background-color: #ff66008a;
}
.telinfo {
  margin: 50px 0;
}

/***sectionContact***/
.contactAccueil {
  
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
}
.contactAccueil p {
  margin: 0 30px 30px 30px;
  line-height: 1.3;
  text-align: center;
}
.contactTitre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}
.contactTitre h1 {
  font-size: 24px; /* Taille du texte */
  font-weight: bold;
  margin: 0;
}
.line {
  content: "";
  display: block;
  width: 50px; /* Longueur de la ligne */
  height: 2px; /* Épaisseur de la ligne */
  background-color: #ff6600; /* Couleur de la ligne (orange) */
}
.iconsAccueil {
  display: flex;
  gap: 20px;
  margin: 0 0 30px 0;
}
.iconsAccueil i {
  font-size: 40px;
}
.contactAccueil form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70%;
  gap: 13px;
}
.contactAccueil form input,
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 30px;
  border: solid 0.5px #a8a9ad;
  outline: none;
}
.contactAccueil form button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 30px;
  background-color: #ff6600;
  color: white;
  cursor: pointer;
  margin: 10px 0 20px 0;
}
.contactGroup1 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contactGroup2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
input:focus,
textarea:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
.telinfo {
  background-image: url("../images/backgroundTelAccueil.png");
  background-size: cover;
  background-position: center;
  padding: 50px 0 100px 0;
}
/* Cache initial */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation d'apparition */
.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Cache initial */
.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Animation de fondu */
.fade-in {
  opacity: 0;
  transform: translateY(50px); /* Décalage vertical */
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0); /* Restauration de la position */
}

/**************************ACCUEIL TABLETTE**************************/
@media (min-width: 768px) {
  .form {
    width: 60%;
  }
  .form-switch {
    width: 55%;
  }
  .form input {
    padding: 10px;
  }
  .infoPost {
    width: 333px;
    height: 244px;
  }

  .infoPost img {
    width: 333px;
  }
  .accueilInfo {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  .voitureInfo {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  
  .infoTel img {
    position: sticky;
    margin-bottom: -441px;
    margin-right: 324px;
  }
  .telInfoTextTel {
    height: 640px;
  }
  .infoTextGroup {
    width: 50%;
  }
  .infoText {
    width: 737px;
    display: flex;
    align-items: flex-end;
  }
  .differTel .infoText {
    display: flex;
    align-items: flex-start;
  }
  .differTel img {
    margin-right: -324px;
  }
  .contactAccueil {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    gap: 90px;
    height: 70vh;
  }
  .contactAccueil form input,
  textarea {
    width: 100%;
  }
  .contactAccueil form button {
    width: 100%;
  }
  .contactGroup1 {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .contactGroup2 {
    width: 50%;
  }
  .voitureInfo {
    margin-top: 100px;
    margin-bottom: 100px;
  }
}
@media (min-width: 1024px) {
  .form {
    width: 500px;
    height: 400px;
  }
  .form-switch {
    width: 469px;
  }
  .form input,
  .form button {
    margin-bottom: 13px;
  }
}

.contact-info {
   display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    text-align: center;
}
.contactAccueil{
    margin-top: 130px;
}
.service_redirection{
        background-color: #ff6600;
    color: white;
     border: none; 
    cursor: pointer;
    margin: 10px 0 10px 0;
     display: flex
; 
    justify-content: center;
     align-items: center; 
    text-decoration: none;
    width: 57%;
     padding: 8px; 
    margin-bottom: 10px;
    border-radius: 5px;
}

#resultat{
    display: flex
;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px); /* floutage du fond */
  background-color: rgba(0, 0, 0, 0.3); /* pour un peu d'opacité sombre */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none; /* masqué par défaut */
}

#popup {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

#popup a {
  color: black;
  display: block;
  margin-top: 10px;
  font-weight: bold;
}
#close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

#popup {
  position: relative; /* obligatoire pour que la croix soit bien positionnée */
  background: white;
  padding: 30px 20px 20px 20px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

