/* Style du formulaire */
form {
  background-color: var(--c-xlight);
  padding: var(--fs-xxxxl);
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  border-radius: var(--fs-s);
}

/* Champs de formulaire : texte, email, téléphone, sélection, date, textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  font-family: 'Roboto', sans-serif;
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f9f9fb;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 1em;
}

/* Unifie le style des champs de type select */
select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><polyline points="1 1 5 5 9 1" style="fill:none;stroke:%23999;stroke-width:2"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
  background-size: 12px;
  appearance: none;
  color: var(--c-neutral-600);

}

/* Placeholder style */
input::placeholder,
textarea::placeholder {
 color: var(--c-neutral-600);
}

/* Style du focus sur les champs */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--c-main-400);
  outline: none;
  box-shadow: 0 0 5px rgba(2, 111, 0, 0.5);
}

/* Textarea spécifique */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Bouton d'envoi */
button {
  width: 100%;
  padding: 15px;
  background-color: var(--c-reg);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-ms);
  font-family: 'Roboto', sans-serif; /* Uniformise avec les autres champs */
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

button:hover {
  background-color: var(--c-med);
}

/* Groupe de case à cocher avec label */
.checkbox-group {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-group label {
  margin: 0;

}

.checkbox-group a {
  color: var(--c-main-400);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}


/* Champ de date pour uniformité */
input[type="date"] {
  font-family: 'Roboto', sans-serif;
}

/* Responsivité pour les écrans plus petits */
@media screen and (max-width: 768px) {
  form {
	padding: 30px;
  }

  button {
	font-size: 16px;
  }
}
