@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

html,
body {
  overflow-x: visible;
}

.demande {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  width: 100%;
  padding-bottom: 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 100px;
}

.demande .retour {
  width: 100%;
  padding: 18px 70px;
  background: #ffffff;
  box-shadow: 0px 1px 5px 0px #bdbdbd33;
  z-index: 999;
  font-weight: 700;
  font-size: 14px;
  color: #000000;
  letter-spacing: -0.3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  top: 0;
}

.demande .retour img {
  width: 14px;
  height: auto;
}

.demande .retour.fixed {
  position: fixed;
  top: 0;
}

.demande .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 100%;
  max-width: 700px;
  padding: 0 30px;
}

.demande .container .menu {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.demande .container .menu hr {
  height: 1px;
  border-radius: 40px;
  background: #96969bb2;
  width: 83px;
  border: none;
}

.demande .container .menu .item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 17px;
  color: #96969b;
  flex: 0 0 auto;
}

.demande .container .menu .item .step {
  /* Annule tout padding résiduel et impose cercle */
  padding: 0;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: whitesmoke;
  color: inherit; /* héritera #96969b ou #fff si .active */
  flex: 0 0 auto;
}

.demande .container .menu .item.active,
.demande .container .menu .item.visited {
  cursor: pointer;
}

/* Active step styling */
.demande .container .menu .item.active .step {
  background: #007bff;
  color: white;
}

.demande .container .menu .item.visited .step {
  background: #007bff99; /* ou la couleur de ton choix */
  color: white;
}
.demande .container .menu .item.visited:hover .step {
  background: #007bffee;
}

.demande .container #demande {
  width: 100%;
}

.demande .container #demande .form-section.hidden {
  display: none;
}
.demande .container #demande .form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  animation: fadeIn 0.5s;
}

.demande .container #demande #section-2 {
  gap: 60px;
}

.demande .container #demande #section-3 {
  gap: 60px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

hr {
  height: 2px;
  background-color: #0000001a;
  border: none;
  width: 90%;
}

.demande .container #demande .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  width: 100%;
  gap: 10px;
}

.demande .container #demande .form-group.accountType-group {
  gap: 15px;
}

.demande .container #demande .form-group label {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  margin-left: 5px;
}

.demande .container #demande .form-group .accountType-label {
  align-self: center;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.3px;
  padding: 0 15px;
  margin-bottom: 5px;
}

.demande .container #demande .form-group .info {
  font-weight: 400;
  font-size: 15px;
  color: #646464cc;
  letter-spacing: -0.3px;
  text-indent: 5px;
}

.demande .container #demande .form-group .is-bar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

.demande .container #demande .form-group .is-bar div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #9e9e9e1a;
  border: 1px solid #0000001a;
  padding: 10px;
  border-radius: 15px;
  width: 120px;
  height: 80px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.demande .container #demande .form-group .is-bar div img {
  max-width: 30px;
  width: 100%;
  height: 30px;
}

.demande .container #demande .form-group .is-bar div.active {
  border: 2px solid black;
}

.demande .container #demande .form-group .account-type {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.demande .container #demande .form-group .account-type div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #9e9e9e1a;
  border: 1px solid #0000001a;
  padding: 48px;
  border-radius: 25px;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  letter-spacing: 0px;
  text-align: center;
  color: #00000075;
}

.demande .container #demande .form-group .account-type div img {
  max-width: 50px;
  width: 100%;
  height: 50px;
}

.demande .container #demande .form-group .account-type div.active {
  border: 2px solid black;
}

.demande .container #demande .form-group input {
  border: none;
  width: 100%;
  height: 58px;
  padding: 10px;
  padding-left: 20px;
  background: #f0f0f1;
  font-weight: 500;
  font-size: 15px;
  color: #000000;
  border-radius: 10px;
}

.demande .container #demande .form-group input::placeholder {
  font-weight: 500;
  font-size: 14px;
  color: #00000050;
}

.demande .container #demande .form-group .input {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  position: relative;
}

.demande .container #demande .form-group .input img {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}

.demande .container #demande .form-group .input input {
  padding-left: 50px;
}

.demande .container #demande .form-group .input-group {
  flex-direction: column;
  gap: 0px;
  width: 100%;
  text-align: left;
  background: #f0f0f1;
  border-radius: 5px;
  padding: 10px;
}

.demande .container #demande .form-group .input-mdp {
  position: relative;
  width: 100%;
}

.demande .container #demande .form-group .input-mdp img {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.demande .container #demande .form-group .input-mdp #show-mdp {
  display: none;
}

.demande .container #demande .form-group .input-group hr {
  width: 100%;
  height: 1px;
  border: none;
  background: #d9d9d9;
}

.demande .container #demande .form-group .error {
  font-weight: 400;
  font-size: 15px;
  color: red;
  letter-spacing: -0.3px;
  text-indent: 5px;
}

.demande .container #demande .btn-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 30px;
}

.demande .container #demande .btn-group .prev-btn {
  font-weight: 600;
  font-size: 14px;
  color: #005bff;
  background: none;
  border: none;
  cursor: pointer;
}

.demande .container #demande .btn-group .next-btn {
  height: 57px;
  border-radius: 38px;
  padding: 20px 76px;
  background: #005bff;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.demande .container #demande .btn-group .next-btn.inactive {
  background: #ebebeb;
  color: #a4a4a4;
  cursor: default;
}

/* --------------------------------------------------Map--------------------------------------------------- */

#map-container {
  height: 300px;
  width: 100%;
  display: none; /* cachée de base */
  margin-top: 0 !important;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

.leaflet-control-attribution {
  font-size: 8px;
}

#map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1000;
}

#map-loader img {
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.map-blur {
  filter: blur(2px) brightness(0.9);
  transition: filter 0.2s ease;
}

#map-warning {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.5);
  color: #b02a37;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  display: none;
  z-index: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  border-top: 1px solid #e0e0e0;
  border-radius: 15px;
}

/* Style du bloc d'information/erreur de géocodage */
#address-error {
  display: none; /* Masqué par défaut, géré par apiMap.js */
  background-color: #fff9db; /* Jaune très pâle type 'warning' */
  border-left: 4px solid #fcc419; /* Barre latérale pour attirer l'oeil */
  border-radius: 6px;
  padding: 12px 16px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  animation: fadeInSlide 0.3s ease-out;
}

#address-error-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

#address-error-text {
  color: #856404; /* Marron foncé pour la lisibilité sur fond jaune */
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

/* Optionnel : petite animation pour l'apparition */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 700px) {
  .demande .container #demande .form-group .account-type {
    gap: 15px;
  }
  .demande .container #demande .form-group .account-type div {
    padding: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.1px;
  }
  .demande .container #demande .form-group .account-type div img {
    max-width: 45px;
    width: 100%;
    height: 45px;
  }

  #address-error-flex svg {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .demande .retour {
    padding: 18px 30px;
  }
  .demande .container {
    padding: 0 20px;
  }
}

@media screen and (max-width: 515px) {
  .demande .container .menu .item p {
    display: none;
  }

  .demande .container #demande .btn-group {
    flex-direction: column-reverse;
    gap: 30px;
  }
}
