/* ===========================
   Formulaire de contact
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.7;
}

/* --- Carte principale --- */
.form-wrap {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

/* --- Titre --- */
.form-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

/* --- Champ générique --- */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-bottom: 6px;
}

/* --- Inputs texte, email, tel --- */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  outline: none;
  transition: box-shadow 0.15s;
}

.field input[type="text"]:hover,
.field input[type="email"]:hover,
.field input[type="tel"]:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="tel"]:focus {
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.4);
  border-color: transparent;
}

.field input::placeholder {
  color: #aaaaaa;
}

/* --- Select --- */
.field select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.field select:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.field select:focus {
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.4);
  border-color: transparent;
}

/* --- Textarea --- */
.field textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  transition: box-shadow 0.15s;
}

.field textarea:hover {
  border-color: rgba(0, 0, 0, 0.4);
}

.field textarea:focus {
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.4);
  border-color: transparent;
}

.field textarea::placeholder {
  color: #aaaaaa;
}

/* --- Bouton Envoyer --- */
.btn-send {
  width: 100%;
  margin-top: 1.25rem;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-send:hover {
  background: #f0f0f0;
}

.btn-send:active {
  transform: scale(0.98);
}

/* --- Message de succès --- */
.success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.success .success-icon {
  font-size: 32px;
  color: #1a7a4a;
}

.success p {
  margin-top: 0.5rem;
  font-size: 15px;
  color: #666666;
}
