 input,
 select,
 textarea {
     margin-bottom: 10px;
     display: block;
     width: 100%;
     box-sizing: border-box;
 }

 textarea {
     text-align: left;
     /* ce qui est supporté */
     line-height: 1.5;
     letter-spacing: 0.2px;
 }


 input[type="text"],
 select,
 textarea {
     padding: 6px 8px;
     font-size: 11pt;
     border: 1px solid silver;
     border-radius: 4pt;
     resize: none;
 }



 form {
     display: flex;
     flex-direction: column;
     align-items: stretch;
     margin: 0 auto;
     border-radius: 8pt;
 }

 fieldset {
     padding: 10px;
     border-radius: 4pt;
     margin: 0;
 }

 fieldset legend {
     font-weight: bold;
     padding: 0 6px;
 }

 .checkbox-wrap {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     margin: 8px 0;
 }

 .checkbox-wrap input[type="checkbox"],
 .checkbox-wrap input[type="radio"] {
     width: 16px;
     height: 16px;
     margin: 0;
     align-items: center;
 }

 input[type="checkbox"] {
     margin-right: 6px;
     width: 16px;
     height: 16px;
     display: inline-block;
 }

 input[type="checkbox"]+label {
     display: inline-block;
 }

 button {
     padding: 6px 12px;
     font-size: 11pt;
     cursor: pointer;
     display: block;
     margin: 10px auto;
 }

 button[data-default] {
     border: 1px solid black;
     background-color: black;
     color: white;
     border-radius: 4pt;
 }

 button[type=reset] {
     border: 1px solid black;
     background-color: white;
     border-radius: 4pt;
 }

/* --- Envoi en cours --------------------------------------------------------
   sendForm() désactive le bouton et remplace son libellé le temps de la
   requête. Le bouton doit se voir inerte, sinon l'internaute reclique.
-------------------------------------------------------------------------- */
button[data-default][disabled] {
    opacity: 0.55;
    cursor: progress;
}

/* --- Case de consentement -------------------------------------------------
   Sans conteneur, la regle generique "input { width:100% }" ci-dessus
   etirait la case sur toute la largeur du formulaire.
   La coche est tracee en CSS (bordure pivotee) : aucune image, aucune police.
-------------------------------------------------------------------------- */
.consent-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 6px 0 18px;
}

.consent-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #c9bfa8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.consent-wrap input[type="checkbox"]:hover {
    border-color: var(--bs-tertiary-color);
}

.consent-wrap input[type="checkbox"]:checked {
    background: var(--bs-tertiary-color);
    border-color: var(--bs-tertiary-color);
}

.consent-wrap input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-wrap input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--bs-tertiary-color);
    outline-offset: 2px;
}

.consent-wrap label {
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}
