.button{
  color: #ffffff;
}
.webform-submission-form .form-item label {
    font-size: 14px;
    font-weight: 700;
    color: #005826;
    text-transform: none;
}
/* customize form width /*
/* Limit max width of form */
.webform-submission-form {
  max-width: 650px;   /* Adjust width */
  margin: 0 auto;     /* Center form */
}

/* Make text fields smaller */
.webform-submission-form input[type="text"],
.webform-submission-form input[type="email"],
.webform-submission-form input[type="tel"],
.webform-submission-form select,
.webform-submission-form textarea {
  max-width: 100%;
  width: 100%;      /* keep responsive */
  box-sizing: border-box;
}

/* Empêcher la checkbox de prendre toute la largeur */
.webform-element--title-inline.js-form-type-checkbox {
  display: flex;
  align-items: flex-start;
  width: auto; /* ne pas forcer à 100% */
}

/* Ajuste juste la case */
.webform-element--title-inline.js-form-type-checkbox input[type="checkbox"] {
  width: auto !important;  /* override Gavias/Drupal defaults */
  margin-right: 8px;
  margin-top: 4px;
}

/* Corriger chevauchement du drapeau et du champ */
.iti {
  width: 100%; /* container prend toute la largeur */
}

.iti input[type="tel"] {
  padding-left: 50px !important; /* espace à gauche pour le drapeau */
  box-sizing: border-box;
}

.iti__country[data-country-code="eh"] {
  display: none !important;
}

/* Alignement horizontal checkbox + label */
#edit-a-quelles-journees-participeriez-vous .form-item,
#edit-participation-aux-ateliers-workshops-journee-1 .form-item,
#edit-participation-aux-ateliers-workshops-journee-2 .form-item,
#edit-participation-aux-side-events-journee-2 .form-item {
  display: inline-flex;        /* case + texte sur la même ligne */
  align-items: center;         /* alignement vertical centré */
  gap: 0.4rem;                 /* petit espace entre case et texte */
  width: auto !important;      /* annule le width:100% */
  margin-bottom: 0.5rem;       /* espace entre les options */
}

/* Inputs (checkbox et radio) */
#edit-a-quelles-journees-participeriez-vous input[type="checkbox"],
#edit-participation-aux-ateliers-workshops-journee-1 input[type="radio"],
#edit-participation-aux-ateliers-workshops-journee-2 input[type="radio"],
#edit-participation-aux-side-events-journee-2 input[type="radio"] {
  margin: 0;                   /* enlève les marges inutiles */
  flex-shrink: 0;              /* évite que la case se déforme */
}

/* Labels */
#edit-a-quelles-journees-participeriez-vous label.option,
#edit-participation-aux-ateliers-workshops-journee-1 label.option,
#edit-participation-aux-ateliers-workshops-journee-2 label.option,
#edit-participation-aux-side-events-journee-2 label.option {
  display: inline; 
  width: auto !important;      /* supprime le width:100% */
  margin: 0;
}
/* On annule pour les checkbox et radios */
.webform-submission-form .form-item input[type="checkbox"],
.webform-submission-form .form-item input[type="radio"] {
  width: auto !important;
  display: inline-block;
}

.form-required::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.webform-submission-form .form-item input[type="text"],
.webform-submission-form .form-item input[type="email"],
.webform-submission-form .form-item input[type="tel"],
.webform-submission-form .form-item textarea,
.webform-submission-form .form-item select {
  width: 100%;          /* uniformiser largeur */
  height: 45px;         /* hauteur identique */
  padding: 10px;        /* espacement interne */
  font-size: 16px;      /* taille police identique */
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.webform-submission-form .form-item textarea {
  height: 3.5em; /* environ 2 lignes selon la taille de police */
  resize: vertical; /* pour garder la possibilité de redimensionner uniquement en hauteur */
}


/* CSS Message de confirmation */
/* Style global du dialog */
.ui-dialog {
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  max-width: 600px !important;
  width: 90% !important;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* Barre de titre */
.ui-dialog-titlebar {
  background: #faf0f0 !important;
  color: #fff !important;
  font-size: 20px;
  font-weight: 600;
  border-bottom: none !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  padding: 15px 20px;
}

/* Contenu du modal */
.webform-confirmation-modal--content {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.5;
}

/* Paragraphes avec un peu d’espace */
.webform-confirmation-modal--content p {
  margin-bottom: 15px;
}

/* Bouton de confirmation si besoin */
.ui-dialog-buttonset button {
  background: #0074d9;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-size: 15px;
  border: none !important;
  cursor: pointer;
}
.ui-dialog-buttonset button:hover {
  background: #005bb5 !important;
}

/* Bouton Close en noir */
.ui-dialog-titlebar-close {
  display: block !important;       /* s’assurer qu’il est visible */
  color: #000 !important;          /* icône X en noir */
  background: transparent !important; /* fond transparent */
  border: none !important;
  font-size: 18px;
  width: 30px;
  height: 30px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

/* Hover du X */
.ui-dialog-titlebar-close:hover {
  color: #0074d9 !important;       /* change de couleur au survol */
  background: rgba(0,0,0,0.05) !important;
  border-radius: 50%;
}

.webform-confirmation-modal--content {
  color: #000 !important; /* texte en noir */
  font-size: 16px;         /* taille lisible */
  line-height: 1.5;        /* espacement entre les lignes */
  text-align: justify;     /* texte justifié */
}


/* Titre des fieldsets (legend) */
fieldset legend {
    font-size: 14px;
    font-weight: 700;
    color: #005826;
    text-transform: none;
}

label.option {
    color: #000000 !important; /* noir pour les choix */
    max-width: 100%;
}

.ui-widget-content a {
    color: #00572a;
}