/* Champs de formulaire et barres de filtres */

.champ {
  display: grid;
  gap: 5px;
}

.champ label {
  font-size: 13px;
  font-weight: 600;
  color: var(--texte-doux);
}

.champ label .obligatoire {
  color: var(--rouge-alerte);
}

input[type='text'],
input[type='search'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='number'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-petit);
  background: var(--blanc);
  color: var(--texte);
  font-family: inherit;
  font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bleu-vif);
  outline: 2px solid var(--bleu-pale);
  outline-offset: 0;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.champ__aide {
  font-size: 12px;
  color: var(--texte-faible);
}

.champ__erreur {
  font-size: 12.5px;
  color: var(--rouge-alerte);
  font-weight: 600;
}

/* ------------------------------------------------------- Barre de filtres */
.filtres {
  display: flex;
  gap: var(--espace-s);
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: var(--espace-m);
  margin-bottom: var(--espace-m);
}

.recherche {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}

.recherche svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--texte-faible);
  pointer-events: none;
}

.recherche input {
  padding-left: 40px;
}

.filtre {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon-petit);
  padding: 4px 10px;
  background: var(--blanc);
}

.filtre label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--texte-doux);
  white-space: nowrap;
}

.filtre select {
  border: 0;
  padding: 5px 2px;
  font-weight: 600;
  color: var(--bleu-nuit);
  background: transparent;
  width: auto;
  min-width: 92px;
}

.filtre select:focus {
  outline: none;
}

/* ------------------------------------------------------------- Cases à cocher */
.case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.case input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--bleu-nuit);
}

.radios {
  display: flex;
  gap: var(--espace-l);
  flex-wrap: wrap;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio input {
  width: 17px;
  height: 17px;
  accent-color: var(--bleu-nuit);
}

/* ------------------------------------------------------------- Sections de formulaire */
.section-formulaire {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: var(--espace-l);
  margin-bottom: var(--espace-m);
}

.section-formulaire h3 {
  font-size: 17px;
  margin-bottom: var(--espace-m);
  padding-bottom: var(--espace-s);
  border-bottom: 2px solid var(--or);
}

.grille-champs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--espace-m);
}
