/* ***************************************************************************************************************** */
/* FORMULAIRE DEMANDE DE DEVIS
/* ***************************************************************************************************************** */
#formulaireDemandeDeDevis form{
  display: flex;
  flex-direction: column;
}

@media only screen and (min-width: 600px) {
  #formulaireDemandeDeDevis form{
    display: block;
  }
}

/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE (bloc label + input)
/* ***************************************************************************************************************** */
.formLine{
  position: relative;
  margin-bottom: 30px;
}


/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > LABEL
/* ***************************************************************************************************************** */
.formLine label{
  color: #000000;
  display: inline-block;
  transition: all .2s ease;
  font-size: 14px;
  color: #000000;
}

.formLine:not(.choices) label,
.formLine.date label
.open .formeLine:not(.choices) label{
  left: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.formLine:not(.choices).focus label,
.formLine.date label,
.open .formLine:not(.choices) label{
  transform: translateY(-120%);
  font-size: 11px;
}

.g-recaptcha{
  margin-top: 0!important;
  margin-bottom: 0!important;
}


/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > INPUT
/* ***************************************************************************************************************** */
.formLine input,
.formLine textarea{
  border: 1px solid #000000;
  border-radius: 10px;
  height: 50px;
  padding: 20px 20px 10px 20px;
  width: 100%;
  font-size: 14px;
}

.formLine input:focus,
.formLine textarea:focus{
  outline: none;
}

.formLine input::placeholder,
.formLine textarea::placeholder,
.formLine ::placeholder{
  font-size: 0;
}


/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > INPUT (TEXTAREA)
/* ***************************************************************************************************************** */
.formLine.textarea textarea{
  min-height: 320px;
  border-radius: 10px;
}

.formLine.textarea label{
  top: 25px;
}

.formLine.textarea.focus label,
.open .formLine.textarea label{
  top: 0;
  transform: translateY(-50%);
  background: #FFF;
  padding: 0 10px;
}


/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > INPUT (SUBMIT)
/* ***************************************************************************************************************** */
.formLine.submitting{
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--margin);
}

.formLine.submitting input{
  padding: 20px 40px;
  background: var(--rouge);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  height: auto;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
}

.dark .formLine.submitting input{
  background: #FFFFFF;
  color: #000000;
}

@media only screen and (min-width: 1000px) {
  .formLine.submitting input{
    width: auto;
  }
}

.formLine.submitting input:hover{
  opacity: .8;
}

.formLine.submitting input:disabled{
  opacity: .4;
  cursor: not-allowed;
}

.formLine.submitting input:disabled:hover{
  opacity: .4;
}

/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > INPUT (Checbox)
/* ***************************************************************************************************************** */
.formLine.checkboxes{
  display: flex;
}

.formLine.checkboxes input{
  width: 32px;
  height: 32px;
}

.formLine.checkboxes label{
  position: relative;
  transform: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6em;
  font-weight: 400;
  color: #000000;
}

.dark .formLine.checkboxes label{
  color: #FFFFFF;
}

.formLine.checkboxes label a{
  color: #000000;
}

.formLine.checkboxes label a:hover{
  text-decoration: none;
}



/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > TWO CHOICES
/* ***************************************************************************************************************** */
.twoChoices {
  display: flex;
  border: 2px solid #000;
  border-radius: 320px;
  overflow: hidden;
}

.choice.choiceActive {
  background: #000;
  color: #FFF;
  opacity: 1;
  font-weight: bold;
}

.choice {
  font-size: 14px;
  width: 50%;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  opacity: .3;
}

.formLine a{
  color: inherit;
  text-decoration: underline;
}

/* ***************************************************************************************************************** */
/* LIGNE FORMULAIRE > SUCCESS
/* ***************************************************************************************************************** */
#success{
  text-align: center;
  background: var(--bleu);
  max-width: 620px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

#success svg {
	width: 80px;
	height: auto;
	margin-bottom: 15px;
}

#success svg .toFill{
  fill: #000000;
}

#success a{
  display: inline-block;
  padding: 0;
  margin-top: 15px;
  color: var(--rouge);
  font-weight: 600;
}

#success p{
	font-size: 20px;
	line-height: 1.6em;
}

.errors {
	border: 2px solid red;
	padding: 20px;
	color: red;
	margin-bottom: 50px;
}

#mentions-rgpd{
  background: #fafafa;
  padding: 30px;
  border-radius: 20px;
  line-height: 1.8em;
  font-size: 90%;
}

#mentions-rgpd a{
  color: var(--rouge);
}

#mentions-rgpd a:hover{
color: var(--bleu-sombre);
}

#formulaireAdhesion fieldset + fieldset{
  margin-top: var(--margin);
}

#formulaireAdhesion legend{
  font-size: 1.25rem;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
  font-weight: 900;
  margin-bottom: var(--padding);
}

/* on garde le select dans le dom (validation, submit, extbase), mais invisible */
#formulaireAdhesion select.select-native-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* wrapper */
#formulaireAdhesion .select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* chip */
#formulaireAdhesion .select-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: transform .08s ease, border-color .15s ease, background-color .15s ease;
}

#formulaireAdhesion .select-chip:hover {
  transform: translateY(-1px);
}

#formulaireAdhesion .select-chip:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* actif */
#formulaireAdhesion .select-chip.is-active {
  border-color: rgba(0,0,0,0.55);
  font-weight: 600;
  background: var(--bleu-leger);
  border-color: var(--bleu-sombre);
}

/* état erreur (quand extbase met errorClass sur le select) */
#formulaireAdhesion .select-chips.has-error .select-chip {
  border-color: rgba(200, 0, 0, 0.55);
}

#formulaireAdhesion .select-chips.has-error .select-chip.is-active {
}

/* optionnel : un petit indicateur visuel pour required */
#formulaireAdhesion .select-chips.is-required::after {
  content: "*";
  margin-left: 4px;
  opacity: 0.6;
}
