/* ===== Style global du formulaire ===== */
.custom-textfield, 
.custom-textarea, 
.custom-radios input[type="radio"], 
.custom-checkbox input[type="checkbox"], 
.custom-date, 
.custom-number, 
.custom-tel {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease; /* Animation fluide */
  margin-left: 20px; /* Espacement du bord gauche */
  box-sizing: border-box;
}

/* Conteneur pour centrer le formulaire */
.form-container {
  max-width: 800px;  /* Largeur max */
  margin: 0 auto;    /* Centrage horizontal */
  padding: 20px;
}

/* ===== Textfields et textarea ===== */
.custom-textfield, 
.custom-date, 
.custom-number, 
.custom-tel {
  background-color: #F7F9F7;  /* Blanc cassé élégant */
  border: 1px solid #B3BCC7;  /* Gris clair */
  color: #333;
  padding: 12px;
  width: 100%;
  margin-bottom: 20px;
  max-width: 600px;
}

.custom-textfield:focus, 
.custom-date:focus, 
.custom-number:focus, 
.custom-tel:focus, 
.custom-textarea:focus {
  border-color: #4E6896;  /* Bleu clair au focus */
  box-shadow: 0 0 8px rgba(78, 104, 150, 0.2);
  outline: none;
}

/* Textarea spécifique */
.custom-textarea {
  background-color: #F7F9F7;
  border: 1px solid #B3BCC7;
  color: #333;
  padding: 12px;
  width: 100%;
  max-width: 600px;
  min-height: 120px;  /* Hauteur minimale */
  margin-bottom: 20px;
  resize: vertical;   /* Permet de redimensionner verticalement */
}

/* Animations d'apparition pour inputs et textarea */
.custom-textfield, 
.custom-date, 
.custom-number, 
.custom-tel, 
.custom-textarea {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== Bouton d'envoi ===== */
.custom-button {
  background-color: #4E6896; /* Bleu principal */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 20px;
}

.custom-button:hover {
  background-color: #3B507A; /* Bleu plus foncé au survol */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Radios et checkbox ===== */
.custom-radios input[type="radio"], 
.custom-checkbox input[type="checkbox"] {
  margin-right: 10px;
}

/* Labels des radios et checkbox */
.custom-radios label, 
.custom-checkbox label {
  margin-right: 20px;
  font-size: 16px;
  color: #333;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .custom-textfield, 
  .custom-textarea, 
  .custom-date, 
  .custom-number, 
  .custom-tel {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .custom-button {
    width: 100%;
    margin-left: 0;
  }
}

/* Boutons ou éléments de soumission */
input[type="submit"] {
  background-color: #4E6896;  /* Bleu clair */
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 20px; /* Marge à gauche pour l'aligner avec les autres champs */
}

input[type="submit"]:hover {
  background-color: #557196;  /* Bleu foncé au survol */
}

/* Amélioration des bordures et transitions globales */
input[type="submit"], .custom-textfield, .custom-date, .custom-number, .custom-tel, .custom-textarea {
  border: 1px solid #B3BCC7;
  border-radius: 8px;
  transition: all 0.3s ease;
}
