formulaire · contact

Formulaire de contact

Formulaire nom / email / message. Attention : uniquement le visuel, à connecter à un service d'envoi (Formspree, PHP mail, etc.) pour fonctionner vraiment.

Voir le code source
<style>
.form-contact {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  font-family: sans-serif;

  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-contact__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-contact__row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.form-contact__row input,
.form-contact__row textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form-contact__row input:focus,
.form-contact__row textarea:focus {
  outline: none;
  border-color: #111;
}

.form-contact__submit {
  padding: 0.8rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-contact__submit:hover {
  background: #333;
}

</style>

<form class="form-contact">
  <div class="form-contact__row">
    <label for="fc-name">Nom</label>
    <input type="text" id="fc-name" name="name" required />
  </div>
  <div class="form-contact__row">
    <label for="fc-email">Email</label>
    <input type="email" id="fc-email" name="email" required />
  </div>
  <div class="form-contact__row">
    <label for="fc-message">Message</label>
    <textarea id="fc-message" name="message" rows="5" required></textarea>
  </div>
  <button type="submit" class="form-contact__submit">Envoyer</button>
</form>