@import url("https://fonts.googleapis.com/css?family=Nunito&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f6f7;
  font-family: "Nunito", sans-serif;
}

main {
  width: 100%;
  position: relative;
}

/* Create a top navigation bar with a black background color  */
.topnav {
  background-color: #333;
}

#logo{
  width:  79.74px;
  height: 54.98 px;
}

/* Style the links inside the navigation bar */
.topnav .nav-element a {
  text-decoration: none;
  padding: 14px 16px;
  font-size: 17px;
  background-color: #d0643d  /*# e62535 */;
  color: white;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  height: 350px;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.stepper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.step--1,
.step--2,
.step--3,
.step--4 {
  width: 15rem;
  padding: 0.5rem 0;
  background: #fff;
  color: #d0643d  /*# e62535 */;
  text-align: center;
}

.step--1,
.step--2,
.step--3 {
  border-right: 1px solid #f5f6f7;
}

.form {
  background: #fff;
  text-align: left;
  position: absolute;
  width: 100%;
  box-shadow: 0.2rem 0.2rem 0.5rem rgba(51, 51, 51, 0.2);
  display: none;
  overflow: hidden;
}

.form--header-container {
  background: #d0643d  /*# e62535 */;
  color: #fff;
  height: 3.7rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.form--header-title {
  font-size: 1.2rem;
}

.form--header-text {
  padding: 0rem 0;
}

/* .file-upload {
  position: relative;
  display: block;
  border: 1px solid #ced4da;
  background-color: #fff;
  border-radius: .375rem;
}

input[type="file"] {
  display: none;
}

.file-label {
  display: inline-block;
  color: #d0643d  /*# e62535 *;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
} */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
.form-select {
  display: block;
  border-radius: 0.5rem;
  outline: none;
}


#div-delivery {  
  display: none; 
}

#div-delivery-silver {  
  display: none; 
}

#div-delivery-premium {  
  display: none; 
}

select:focus,
input:focus {
  border-color: #000000e7 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.form__btn {
  background: #d0643d  /*# e62535 */;
  color: #fff;
  outline: none;
  border: none;
  padding: 0.5rem 0.7rem;
  width: 7rem;
  margin: 1rem auto;
  border-radius: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.form--message-text {
  width: 25rem;
  background: #fff;
  color: #d0643d  /*# e62535 */;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1.4rem;
  box-shadow: 0.2rem 0.2rem 0.5rem rgba(51, 51, 51, 0.2);
  animation: fadeIn 0.8s;
  border-radius: 1rem;
}

.form-active {
  z-index: 1000;
  display: block;
}

.form-active-animate {
  animation: fadeIn 1s;
}

.form-inactive {
  /* display: block; */
  display: none;
  animation: fadeOut 1s;
}

.step-active {
  background: #d0643d  /*# e62535 */;
  color: #fff;
  border: 1px solid #d0643d  /*# e62535 */;
}

#btn-1 {
  background: #d0643d  /*# e62535 */;
}

#div-cyclinder,
#div-power,
#div-marque_veh,
#div-vignette,
#div-energy,
#div-contract,
#div-license,
#div-selection-license,
#div-trailer {
  display: none;
}

.switch {
  display: inline-block;
  position: relative;
  width: 70px;
  height: 20px;
  cursor: pointer;
  overflow: hidden;
}

.switch input {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 0;
  height: 0;
}

.switch input+span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #b8b8b8dc;
}

.switch input:checked+span {
  background: #d0643d  /*# e62535 */;
}

.switch input+span:before {
  content: "Non";
  display: inline-block;
  position: absolute;
  font-size: 15px;
  text-align: center;
  line-height: 30px;
  top: 50%;
  left: 4px;
  width: 32px;
  height: 32px;
  background: white;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.switch input:checked+span:before {
  content: "Oui";
  left: 34px;
}

#id_loyer {
  display: none;
}

#loader {
  display: none;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: block;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  /* border-bottom-color: #ff3d00; */
  border-bottom-color: #d0643d;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
/* 
.spinner-container{

  z-index: 9999;
  position: relative;

  display: flex;
  align-items: center;
  /* gap: 10px; 
  font-style: italic;
  color: #d0643d;
  padding: 15px;
  justify-content: center;
  height: 50px; 

} */

/* .loader-tab{
  width: 14px;
  height: 14px;
  /* border: 3px solid #ddd; *
  border: 3px solid #d0643d;
  /* border-top-color: #d0643d; *
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
} */
.spinner-container {
  z-index: 9999;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100%;
  padding: 15px;
}

.loader-tab {
  width: 20px;
  height: 20px;
  border: 3px solid #d0643d;
  border-top-color: transparent; /* 🔥 la clé ! */
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.banner {
  width: 100%;
  height: fit-content;
  background: url("images/banner.png") no-repeat;
  background-size: cover;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  background-position: center center;
  background: linear-gradient(rgba(33, 31, 31, 0.426),
      rgba(105, 105, 105, 0.486)),
    url("images/banner.png") center center;
  text-align: center;
  padding: 5.1rem 1rem;
}

.big-text {
  font-size: 130px;
  font-weight: 800;
  animation-delay: 1s;
}

.banner a {
  display: inline-block;
  background: #fff;
  color: #36465d;
  text-transform: uppercase;
  padding: 15px;
  text-decoration: none;
  font-size: 40px;
  transition: 0.3s;
}

.banner a:hover {
  background: #333;
  color: #fff;
  padding: 15px 20px;
}

/* Small screens (portrait phones) */
@media (max-width: 767px) {
  .banner_logo>.img {
    width: 50%;
  }

  .banner_text {
    font-size: 1.3rem;
  }
}

/* Medium screens (portrait tablets) */
@media (min-width: 768px) and (max-width: 1023px) {
  .banner_logo>.img {
    width: 35%;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .banner_logo>.img {
    width: 20%;
  }
}

.spacer {
  height: 30rem;
  background: transparent;
}

/* Garanties */

/* Changer la couleur des boutons "Choisir ce pack" */
.btn-primary {
  background-color: #d0643d  /*# e62535 */;
  border-color: #d0643d  /*# e62535 */;
}

/* 
.btn-primary:hover {
  background-color: darkred;
  border-color: darkred;
} */

.btn-primary:hover {
  background-color: #fff;
  border-color: #d0643d  /*# e62535 */;
  color: #d0643d  /*# e62535 */;
}


/* Supprimer le style de focus bleu */
.btn-primary:focus {
  background-color: #d0643d  /*# e62535 */;
  /* Garde la couleur rouge */
  border-color: #d0643d  /*# e62535 */;
  /* Garde la bordure rouge */
  /* box-shadow: none; Supprime l'ombre bleue */
}

/* Changer la couleur des boutons d'accordéon */
.accordion-button {
  background-color: #fff;
  color: #d0643d  /*# e62535 */;
}

.btn-disabled {
  /* opacity: 0.6; */
  cursor: not-allowed;
  /* background-color: #e9ecef !important;
  border-color: #dee2e6 !important; */
  border-color: #b8b8b8dc;
  background-color: #b8b8b8dc !important;
  border-color: #0000 !important;
} 

/* .accordion-button:not(.collapsed) {
  background-color: darkred;
  color: #fff;
} */

.accordion-button:not(.collapsed) {
  background-color: #d0643d  /*# e62535 */;
  color: #fff;
}

/* .accordion-button:not(.collapsed) {
  background-color: #fff;
  color: #d0643d  /*# e62535 *;
} */

/* .accordion-button::after,
.accordion-button::not(.collapsed)::after {
  filter: brightness(0) invert(1); 
} */

/* Ombre rouge lorsque l'accordéon est ouvert */
.accordion-button:not(.collapsed) {
  box-shadow: 0 0 0 0.25rem rgba(230, 37, 53, 0.25);
}

/* Ombre rouge lors du clic (focus) */
.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 37, 53, 0.25);
  /* Ombre rouge */
}



/* Flèches blanches en tout temps
.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); /* Transforme la flèche en blanc */
/* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); Flèche blanche */


/* Styles pour les boutons repliés */
.accordion-button {
  background-color: white;
  /* Bouton blanc */
  color: #d0643d  /*# e62535 */;
  /* Texte rouge */
}

.accordion-button::after {
  filter: brightness(0) invert(0.5);
  /* Flèche rouge */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff0000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  /* Flèche rouge */
}


/* Styles pour les boutons dépliés */
.accordion-button:not(.collapsed) {
  background-color: #d0643d  /*# e62535 */;
  /* Bouton rouge */
  color: white;
  /* Texte blanc */
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
  /* Flèche blanche */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  /* Flèche blanche */
}

/* Réduire l'opacité du fond */
/* .modal-backdrop {
  opacity: 0.2 !important; /* Ajustez cette valeur selon vos besoins *
}

/* Assurez-vous que la modale est au-dessus du fond *
.modal {
  z-index: 1075 !important; /* La modale doit avoir un z-index supérieur au backdrop *
}

/* Optionnel : Ajuster l'opacité du backdrop lors de l'affichage de la modale *
.modal.show .modal-backdrop {
  opacity: 0.2 !important;
} */


.modal-active {
  display: block;
}

/* ------------ */

/* Fond sombre (backdrop) */
.modal-backdrop {
  z-index: 0;
  /* Bootstrap default: 1040 */
  background-color: rgba(0, 0, 0, 0.5);
}

/* Conteneur de la modale */
.modal {
  /* z-index: 1050;  */
  /* Bootstrap default: 1050 */
  z-index: 1050;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Classe active quand la modale est ouverte */
.modal-active {
  display: block;
}



/* Gestions des dimensions des div */

.w-33 {
  width: 33%;
}

.w-66 {
  width: 66%;
}




/* Fond sombre (backdrop) */
.modal-backdrop {
  z-index:0;
  /* z-index: 1040; */
  /* Bootstrap default: 1040 */
  background-color: rgba(0, 0, 0, 0.5);
}

