footer {
  background-color: #222;
  color: white;
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

footer form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Conteneur des champs */
.form-group {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

/* Label si tu en ajoutes */
.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Champs input et textarea */
.form-control {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;

  box-sizing: border-box;
  min-width: 200px;

  width: 100%;
  max-width: 100%;
  color: #222;
}

/* Spécifique au textarea */
textarea.form-control {
  min-height: 120px; /* hauteur minimale */
  max-height: 200px; /* hauteur maximale */
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
  min-width: 200px;
}

.form-group.full-width {
  flex: 1 1 100%; /* textarea prend toute la largeur */
}

.textarea-wrapper {
  width: 100%;
}

/* Bouton submit */
.btn-submit {
  background-color: #4caf50;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  flex: 1 1 100%;
  max-width: 200px;
  align-self: flex-end;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #45a049;
}

.error {
  color: red;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.success {
  color: green;
  text-align: center;
}

#responseMessage {
  margin-top: 1rem;
  font-size: 1rem;
  color: #4caf50;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Responsive */
@media (min-width: 600px) {
  .form-group {
    flex: 1 1 48%; /* deux colonnes */
  }

  .form-group.full-width {
    flex: 1 1 100%; /* textarea prend toute la largeur */
  }

  .btn-submit {
    flex: 1 1 auto;
    max-width: none;
    align-self: center;
  }
}

/* Compteur caractères */
#charCount {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.3rem;
  text-align: right;
  font-family: 'Inter', sans-serif;
}
