form {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
}

/* Titre du formulaire */
form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Style pour les labels */
label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

/* Style pour les champs de saisie */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

/* Focus sur les champs de saisie */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

/* Style pour les champs textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Style pour les boutons */
button {
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Effet au survol des boutons */
button:hover {
  background-color: #45a049;
}

/* Style pour les messages d'erreur */
.error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* Espacement entre les éléments */
form div {
  margin-bottom: 20px;
}

/* Pour les petits écrans */
@media (max-width: 600px) {
  form {
    padding: 15px;
  }

  button {
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea {
    font-size: 14px;
  }
}