/* ================================
   STYLE GLOBAL DU FORMULAIRE
================================ */
.custom-textfield,
.custom-textarea,
.custom-date,
.custom-number,
.custom-tel,
.custom-file {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin-left: 20px;
}

/* ================================
   CHAMPS TEXTE / EMAIL / TEL / NUMBER / DATE
================================ */
.custom-textfield,
.custom-date,
.custom-number,
.custom-tel {
  background-color: #F7F9F7;
  border: 1px solid #B3BCC7;
  color: #333;
  padding: 12px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

.custom-textfield:focus,
.custom-date:focus,
.custom-number:focus,
.custom-tel:focus {
  border-color: #4E6896;
  box-shadow: 0 0 8px rgba(78, 104, 150, 0.2);
  outline: none;
}

/* ================================
   TEXTAREA
================================ */
.custom-textarea {
  background-color: #F7F9F7;
  border: 1px solid #B3BCC7;
  color: #333;
  padding: 12px;
  width: 100%;
  max-width: 600px;
  min-height: 140px;
  margin-bottom: 25px;
  resize: vertical;
}

.custom-textarea:focus {
  border-color: #4E6896;
  box-shadow: 0 0 8px rgba(78, 104, 150, 0.2);
  outline: none;
}

/* ================================
   RADIOS & CHECKBOX
================================ */
.custom-radios input[type="radio"],
.custom-checkbox input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
}

.custom-radios label,
.custom-checkbox label {
  font-size: 16px;
  color: #333;
  margin-right: 20px;
  cursor: pointer;
}

/* Groupe visuel */
.custom-radios,
.custom-checkbox {
  margin-bottom: 20px;
  margin-left: 20px;
}

/* ================================
   CHAMP FICHIER (PREUVES)
================================ */
.custom-file {
  background-color: #F7F9F7;
  border: 2px dashed #B3BCC7;
  padding: 14px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 25px;
  cursor: pointer;
}

.custom-file:hover {
  border-color: #4E6896;
  background-color: #EEF2F7;
}

.custom-file input[type="file"] {
  width: 100%;
  cursor: pointer;
}

/* Texte aide fichier */
.form-item--description {
  font-size: 14px;
  color: #7B8CA0;
  margin-left: 20px;
  margin-top: -10px;
}

/* ================================
   BOUTON DE SOUMISSION
================================ */
.custom-button {
  background-color: #4E6896;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 20px;
  transition: all 0.3s ease;
}

.custom-button:hover {
  background-color: #557196;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ================================
   ANIMATION D’APPARITION
================================ */
.custom-textfield,
.custom-date,
.custom-number,
.custom-tel,
.custom-textarea,
.custom-file {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================
   RESPONSIVE MOBILE
================================ */
@media (max-width: 768px) {
  .custom-textfield,
  .custom-textarea,
  .custom-date,
  .custom-number,
  .custom-tel,
  .custom-file {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .custom-button {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}
/* Bouton principal Webform */
.webform-button--submit {
  cursor: pointer;
}

/* Classe générique bouton */
.button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  text-align: center;
  transition: all 0.3s ease;
}

/* Bouton principal (primary) */
.button--primary {
  background-color: #4E6896; /* adapte à ta charte */
  color: #ffffff;
}

/* Hover */
.button--primary:hover {
  background-color: #3d547a;
  transform: translateY(-2px);
}

/* Effet focus */
.button--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 104, 150, 0.3);
}

/* Classe Drupal JS (souvent pas stylée mais on peut sécuriser) */
.js-form-submit {
  appearance: none;
}

/* Classe finale submit */
.form-submit {
  width: auto;
}
/* Supprimer toute surbrillance blanche */
.button--primary:focus,
.button--primary:active,
.button--primary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* Supprimer le highlight mobile (Android / iOS) */
.webform-button--submit {
  -webkit-tap-highlight-color: transparent;
}
/* ================================
   SUPPRIMER LE GRAND CONTENEUR DU BOUTON
================================ */

/* Conteneur Drupal du bouton */
.form-actions,
.webform-actions {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  border: none !important;
  display: inline-block !important;
}

/* Empêcher le bouton de prendre toute la ligne */
.form-actions input[type="submit"],
.webform-actions input[type="submit"] {
  width: auto !important;
  display: inline-block !important;
}

