/* Style du formulaire */
form {
  width: 100%;
  display: grid;
  grid-template-columns: repeat( 3, 1fr);
  gap: var(--x);
}

.side-link form {grid-template-columns: 1fr; }
.side-link form input, .side-link form select, .side-link form textarea { width: 100%; }
/* 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;
  max-width: 100%;
  
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-weight: 400;
  background-color: white;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  color: black;
}

.form-full {grid-column: 1 / -1;}


/* 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: #999;

}

/* Placeholder style */
input::placeholder,
textarea::placeholder {
 color: #999;
}

/* Style du focus sur les champs */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--c-500);
  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: 150px;
  padding: 8px 30px;
  background-color: var(--c-400);
  color: black;
  border: none;
  border-radius: 8px;
  font-size: var(--fs-ms);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  background-color: white;
  border-radius: 50px;
}

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

/* Groupe de case à cocher avec label */
.checkbox-group {
  display: flex;
  flex-direction: row !important; 
  align-items: center;
  gap: 20px;
  padding-block: var(--125x);
}


.side-link form .checkbox-group input { width: auto;}
  
  
.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.checkbox-group label {
 width: auto; line-height: 120%;
}

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

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


.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.alert.success {
  background: #d4edda;
  color: #155724;
}

.alert.error {
  background: #f8d7da;
  color: #721c24;
}


.hp-field{
    position:absolute;
    left:-10000px;
}


/* Responsivité pour les écrans plus petits */
@media screen and (max-width: 1000px) {
  form {
    padding: 30px;
    grid-template-columns: 1fr;
  }

  button {
    font-size: 16px;
  }
}
