/* Formulaires : complète site.css */

.formulaire fieldset {
  border: 0;
  border-top: 1px solid var(--trait);
  margin: 0 0 1.5rem;
  padding: 1.25rem 0 0;
}
.formulaire legend {
  font-family: "Abel", "Abel repli", sans-serif;
  font-size: 1.3rem;
  padding: 0 0.75rem 0 0;
}
.formulaire label { display: block; margin-bottom: 0.3rem; }
.formulaire .requis { color: var(--texte-doux); font-size: 0.9rem; }
.formulaire input[type="text"],
.formulaire input[type="email"],
.formulaire input[type="tel"],
.formulaire textarea {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid #8d9199;
  border-radius: 0.25rem;
  padding: 0.6rem 0.75rem;
}
.formulaire textarea { resize: vertical; }
.formulaire input:focus-visible,
.formulaire textarea:focus-visible,
.formulaire button:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 2px;
}
.formulaire [aria-invalid="true"] { border-color: var(--rouge); border-width: 2px; }
.formulaire .case { display: flex; gap: 0.6rem; align-items: baseline; margin: 0 0 0.4rem; }
.formulaire .case label { margin: 0; }
.formulaire .case input { width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--vert); }
.formulaire button { cursor: pointer; font-size: 1.15rem; }

.erreur { color: var(--rouge); font-weight: 400; margin: 0.3rem 0 0; }
.alerte {
  border-left: 4px solid var(--rouge);
  background: #fbefee;
  padding: 0.9rem 1rem;
}

/* Champ piège pour les robots : hors écran, hors tabulation */
.piege {
  position: absolute;
  left: -999rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Commande .be et paiement de facture */
.etroit { max-width: 44rem; }
.formulaire select {
  width: 100%;
  font: inherit;
  color: var(--texte);
  background: var(--fond);
  border: 1px solid #8d9199;
  border-radius: 0.25rem;
  padding: 0.6rem 0.75rem;
}
.paire { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1.25rem; }
.commande .carte { margin-top: 1.25rem; border-top-color: var(--vert); }
.commande .carte h2 { font-size: 1.5rem; }
.commande [hidden] { display: none; }

.etapes {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Abel", "Abel repli", sans-serif;
  color: var(--texte-doux);
}
.etapes li { display: flex; align-items: center; gap: 0.5rem; }
.etapes span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--trait);
}
.etapes .active { color: #000; }
.etapes .active span, .etapes .faite span { background: var(--vert); color: #fff; }

.recherche { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.champ-domaine {
  flex: 1 1 14rem;
  display: flex;
  align-items: center;
  border: 1px solid #8d9199;
  border-radius: 0.25rem;
  padding: 0 0.75rem;
  background: var(--fond);
}
.champ-domaine:focus-within { outline: 3px solid var(--jaune); outline-offset: 2px; }
.champ-domaine input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1.15rem;
  padding: 0.6rem 0;
  background: transparent;
  color: var(--texte);
}
.champ-domaine span { font-family: "Abel", "Abel repli", sans-serif; font-size: 1.15rem; color: var(--texte-doux); }

.badge { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 0.25rem; border-left: 4px solid; }
.badge.ok { background: #e9f4e7; border-color: var(--vert); color: #234a1b; }
.badge.ko { background: #fbefee; border-color: var(--rouge); color: #7c1f1d; }
.badge.info { background: var(--fond-doux); border-color: var(--gris); }
.formulaire .actions { justify-content: space-between; margin: 1.5rem 0 0.75rem; }

/* Page de commande */
.formulaire select.extension { width: auto; flex: 0 0 auto; }
.formulaire optgroup { font-style: normal; }
.formulaire .champ-domaine input[type="text"] { border: 0; padding: 0.6rem 0; background: transparent; }
.formulaire .champ-domaine input[type="text"]:focus-visible { outline: 0; }
.recherche[hidden], .commande[hidden], #reserve[hidden] { display: none; }
