.form-intro {
  display: none;
}

.form-intro.active {
  display: block;
}

span.blue {
  color: #383ff5;
}

p ul li {
  list-style: disc
}

p ul {
  margin-top: 0;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  display: block;
  height: fit-content;
  padding: 0.5rem 1rem;
  background-color: #34353d;
  color: #FFF;
  border-radius: 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tooltip:hover {
  background-color: #383ff5;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  width: 80%;
  background-color: #373df5f2;
  border: dashed 1px #FFF;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  left: calc(10% - 10px);
  top: 50px;
}

/* Show the tooltip text on hover */
.tooltip:hover + .tooltiptext {
  visibility: visible;
}

.tooltiptext h6 {
  font-size: 1rem;
  margin-bottom: 0;
  margin-top: 0;
  text-transform: uppercase;
}

.tooltiptext p:nth-last-child {
  margin-bottom: 0px;
}

.form-step .titre {
  display: flex;
  justify-content: space-between;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  display: flex;
  color: #383ff5;
  cursor: pointer;
  padding: 0.8rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  border-bottom: solid 2px #383ff5;
  transition: 0.4s;
  font-weight: 800;
  justify-content: space-between;
  font-size: 1.1rem;
}
.accordion:after {
  content: ">";
}

.accordion.active:after {
  transform: rotate(90deg);
  
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.accordion.active {
  background-color: #383ff5;
  color: #FFF;
  padding-left: 3rem;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0rem;
  background-color: #FFF;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.panel > .statut-legal {
  padding: 1rem 3rem;
}

/* Base */
body {
  color: #34353d;
  font-family: "Fira Sans",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    font-size: 1rem;
  
}
body, select, input, textarea, button {
  color: #34353d;
  font-family: "Fira Sans",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}


#iframeHint {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.choix {
  display: flex;
  gap: 10px;  
  flex-wrap: wrap;
}

.choix > div {
  position: relative;
  display: flex;
  width: calc(50% - 7px);
  flex-direction: column;
  gap: 10px;
}

.choix div.btn-choix {
  position: relative; 
}


.choix input {
  width: 100%;
  height: 70px;
  opacity: 0;
  cursor: pointer;
}

.choix div.btn-choix label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  height: 70px;
  border: solid 1px #383ff5;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.5rem;
}




.choix input:checked + label {
  background: #383ff5;
  font-weight: 500;
  color: #fff;
}


.choix select.select-ville {
  width: 100%;
  margin-bottom: 15px;
  background-color: #383ff5;
  border: none;
  color: #FFF;
  padding: 0.5em 1em;
  cursor: pointer;
  border-radius: 0.5rem;
  background-image: url("../images/arrow-bottom-white.svg");
}

.choix div.details-choix {
  display: none;
}

.choix div.details-choix cite p {
  font-size: 0.8rem;
  color: #34353d;
}

.choix div.details-choix cite p a {
  color: #383ff5;
  font-weight: 500;
}

.choix .btn-choix.selected + .details-choix {
  display: block;
  width: 200%;
}

.choix > div:nth-child(even) .details-choix {
  margin-left: calc(-100% - 10px);
}


.container {max-width: 1200px;margin: auto;}

.form-main {
  background-color: rgba(208,209,220,0.2);
-webkit-box-shadow: 5px 5px 5px -3px rgba(0,0,0,0.1);
box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.1);
border-radius: 5rem;
}

h2 {
  margin-top:0;
  text-transform: uppercase;
  color: #383ff5;
}

h3 {
  margin-top:0;
  font-size: 25px;
  margin-bottom: 1rem;
}

h4 {
  margin-top:0;
  text-transform: uppercase;
  color: #383ff5;
  font-size: 1.2rem;
}

h5 {
  margin-top:0;
  text-transform: uppercase;
  color: #383ff5;
  font-size: 1rem;
  margin-bottom: 0;
}

cite {
  border-left: solid 4px #383ff5;
  display: block;
  padding-left: 1rem;
  color: #383ff5;
  font-style: normal;
}


/* Erreurs */

.textFormFieldBlock {display: none;}

input.error {
  border: 2px solid red;
}
input.valid {
  border: 2px solid green;
}

#phoneError,
#emailError {color:red; font-size:14px;padding-top: 0.3rem;}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* Base volontairement simple : à adapter dans styles.css */
.form-layout main {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.form-main {
  flex: 1;
  padding: 3rem;
}

.form-recap {
  width: 20%;
  position: sticky;
 
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.form-navigation {
  margin-top: 25px;
}

.form-navigation button,
cite a.btn,
button#startForm {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  border: 1px solid transparent;
  border-radius: 10rem;
  background-color: transparent;
  color: #34353d;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: none;
  border-color: #383ff5;
  background-color: #383ff5;
  color: white;
  cursor: pointer;
}

.form-navigation button#prevStep {
  float: left;
}

.form-navigation button#nextStep {
  float: right;
}

.form-navigation button:hover, 
.form-navigation button:active, 
.form-navigation button:focus, 
.form-navigation button.focused, 
.form-navigation button.is-active,
cite a.btn:hover,
cite a.btn:active,
cite a.btn:focus,
cite a.btn.focused,
cite a.btn.is-active {
  background-color: #1820f8;
}

.step-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.step-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #383ff5;
  background: #fff;
}

.step-dot.active {
  background:#383ff5;;
}

.step-dot.done {
  background: #9aa4ff
;
}

.recap-item {
  padding: 0.5rem 0;
}

.recap-item.checked:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(images/check.svg);
  background-size: contain;
  float: left;
  margin-right: 10px;
}

.recap-item.current {
  background: #F2F2F2;
  padding-left: 1rem;
  border-left: solid 3px #383ff5;
  background: #F2F2F2;
  background: linear-gradient(90deg,rgb(242, 242, 242) 0%, rgba(242, 242, 242, 0) 100%);
}

.recap-label {
  font-weight: bold;
}

.recap-value {
  display: flex;
  flex-direction: column;
}

.recap-value.checked {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-color: red;
}

.error {
  border-color: red;
  color: red;
}

.valid {
  border-color: green;
}

#phoneError,
#emailError {
  color: red;
  font-size: 14px;
}


/* Formulaire */

.saisie {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.saisie input {
  max-width: 100%;
  padding: 0.5rem 0.5rem;
  border: 1px solid rgba(56,63,245,0.3);
  border-radius: 2px;
  background-color: white;
  color: #34353d;
  font-size: 1rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.saisie label {
  margin-bottom: 0;
  color: #34353d;
  font-weight: 400;
  display: inline-block;
  font-size: 1rem;
}

.saisie > div {
  display: flex;
  flex-direction: column;
  width: calc(50% - 10px);
}

.saisie > div.civilite {
  width: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.saisie .civilite > div {
  display: flex;
  gap: 10px;
}

.saisie .civilite > div > div {
  display: flex;
  align-items: center;
  gap: 3px;
}

.saisie input[type="radio"] {
  margin: 0;
}





.resultat-statut {
  width: 80%;
  margin: auto;
  position: relative;
  align-items: center;
  height: 50px;
}

.resultat-statut .barre {
  height:10px;
  background-color: #383ff5;
  display: block;
  position: absolute;
  width: 100%;
  border-radius: 5rem;
}

.resultat-statut .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #FFF;
  border: solid 1px #383ff5;
  display: block;
  position: absolute;
  top: -5px;
}

.resultat-statut .text {
  top: 20px;
  position: absolute;
  text-transform: uppercase;
  font-size: 0.9rem;
}

#emergence .resultat-statut .dot,
#emergence .resultat-statut .text {
  left: 5%;
}

#clarifier .resultat-statut .dot,
#clarifier .resultat-statut .text {
  left: 20%;
}

#reflexion .resultat-statut .dot,
#reflexion .resultat-statut .text {
  left: 35%;
}

#construction .resultat-statut .dot,
#construction .resultat-statut .text {
  left: 60%;
}

#avance .resultat-statut .dot,
#avance .resultat-statut .text {
  left: 90%;
}

#statuts .statut {
  display: none;
}

#statuts.ei .statut.ei,
#statuts.sarlu .statut.sarlu,
#statuts.sasu .statut.sasu,
#statuts.sarl .statut.sarl,
#statuts.sas .statut.sas {
  display: block;
}



/* Responsive */

@media screen and (max-width: 1500px){
  .form-recap {
    width: 30%;
  }
}

@media screen and (max-width: 1024px){
  .form-recap {
    font-size: 0.9rem;;
  }
}

@media screen and (max-width: 978px){
  
  
  .choix div {
    width: 100%;
  }
}


@media screen and (max-width: 768px){
  .form-layout main {
    flex-direction: column;
  }
  
  .form-recap {
    width: 100%;
  }
}
