/* Compléments du formulaire de contact (Brevo) : le style d'origine reste celui de _contact.scss */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Champ piège anti-spam */
.contact-section .form-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Message d'erreur sous un champ */
.contact-section .field-error {
    font-size: 14px;
    line-height: 20px;
    color: #E62139 !important;
    margin: -24px 0 24px;
}

.contact-section label + .field-error {
    margin: 6px 0 0;
}

.contact-section .field-error:empty {
    display: none;
}

.contact-section #errorMessages a {
    color: inherit;
    text-decoration: underline;
}

.contact-section button[type="submit"]:disabled {
    opacity: .7;
    cursor: wait;
}

/* Bouton « Afficher l'e-mail » : petite pastille dans l'esprit des boutons du site */
.contact-section .contact-email {
    margin: 8px 0 18px;
    line-height: 35px;
    font-size: 18px;
}

.contact-section .btn-show-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 18px 4px 4px;
    border: 1px solid #274796;
    border-radius: 999px;
    background: transparent;
    color: #274796;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}

.contact-section .btn-show-email .oeil {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #274796;
    transition: background-color .3s ease;
}

.contact-section .btn-show-email .oeil::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E") center/16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='black'/%3E%3C/svg%3E") center/16px no-repeat;
}

.contact-section .btn-show-email:hover,
.contact-section .btn-show-email:focus-visible {
    background: #274796;
    color: #fff;
}

.contact-section .btn-show-email:hover .oeil,
.contact-section .btn-show-email:focus-visible .oeil {
    background: #E62139;
}

.contact-section .contact-email a {
    color: #274796;
    font-family: "Outfit", sans-serif;
    font-size: 18px !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(39, 71, 150, .35);
    text-underline-offset: 4px;
    transition: text-decoration-color .3s ease;
}

.contact-section .contact-email a:hover {
    text-decoration-color: #E62139;
}

/* Case de consentement : toute la ligne est cliquable, case agrandie */
.contact-section label.consentement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 4px 0 0;
    padding: 16px 18px;
    border: 1px solid #e2dccb;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-section label.consentement:hover {
    border-color: #274796;
}

.contact-section label.consentement input[type=checkbox] {
    position: absolute;
    opacity: 0;
    width: 1px !important;
    height: 1px;
    margin: 0;
}

.contact-section .consentement-case {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border: 2px solid #274796;
    border-radius: 8px;
    background: #fff;
    transition: background-color .2s ease, border-color .2s ease;
}

.contact-section .consentement-case::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s ease;
}

.contact-section label.consentement input:checked + .consentement-case {
    background: #274796;
}

.contact-section label.consentement input:checked + .consentement-case::after {
    transform: rotate(45deg) scale(1);
}

.contact-section label.consentement:has(input:checked) {
    border-color: #274796;
}

.contact-section label.consentement input:focus-visible + .consentement-case {
    outline: 2px solid #274796;
    outline-offset: 3px;
}

.contact-section label.consentement:has(input[aria-invalid="true"]) {
    border-color: #E62139;
}

.contact-section label.consentement input[aria-invalid="true"] + .consentement-case {
    border-color: #E62139;
}

/* Champs du formulaire : fond blanc arrondi, texte foncé, même encadré que la case de consentement */
.contact-section .subimit-form-wrap input:not([type=checkbox]):not([type=hidden]),
.contact-section .subimit-form-wrap textarea {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 15px 18px;
    border: 1px solid #e2dccb;
    border-radius: 14px;
    background: #fff;
    color: #1d1e21;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 6px 18px -14px rgba(39, 71, 150, .35);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-section .subimit-form-wrap textarea {
    height: 180px;
    resize: vertical;
}

.contact-section .subimit-form-wrap input::placeholder,
.contact-section .subimit-form-wrap textarea::placeholder {
    color: #6e6a62;
    opacity: 1;
}

.contact-section .subimit-form-wrap input:not([type=checkbox]):hover,
.contact-section .subimit-form-wrap textarea:hover {
    border-color: #b9c3dc;
}

.contact-section .subimit-form-wrap input:not([type=checkbox]):focus,
.contact-section .subimit-form-wrap textarea:focus {
    outline: none;
    border-color: #274796;
    box-shadow: 0 0 0 3px rgba(39, 71, 150, .15);
}

.contact-section .subimit-form-wrap input:not([type=checkbox])[aria-invalid="true"],
.contact-section .subimit-form-wrap textarea[aria-invalid="true"],
.contact-section .subimit-form-wrap input:not([type=checkbox])[aria-invalid="true"]:focus,
.contact-section .subimit-form-wrap textarea[aria-invalid="true"]:focus {
    border-color: #E62139;
}

.contact-section .subimit-form-wrap input:not([type=checkbox])[aria-invalid="true"]:focus,
.contact-section .subimit-form-wrap textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(230, 33, 57, .15);
}

.contact-section .form-field .field-error {
    margin: -8px 0 16px 18px;
}

/* Libellés visibles et champs obligatoires */
.contact-section .champs-obligatoires {
    margin: 0 0 22px;
    font-size: 14px;
    color: #555;
}

.contact-section .form-field label {
    display: block;
    margin: 0 0 6px 4px;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1d1e21;
}

.contact-section .obligatoire {
    color: #E62139;
    font-weight: 600;
}

.contact-section .facultatif {
    font-weight: 400;
    color: #6e6a62;
    font-size: 14px;
}

/* Suggestion de correction de l'adresse e-mail */
.contact-section .email-suggestion {
    margin: -8px 0 16px 18px;
    font-size: 14px;
    line-height: 20px;
    color: #274796;
}

.contact-section .email-suggestion[hidden] {
    display: none;
}

.contact-section .email-suggestion button {
    padding: 0;
    border: 0;
    background: none;
    color: #274796;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #E62139;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Mise en page : formulaire à gauche, carte « Coordonnées » à droite bien séparée */
.contact-section .contact-blocs{row-gap:50px}
.contact-section .subimit-form-wrap .section-title h2,.coordonnees h2{font-size:28px;line-height:36px;color:#274796;margin:0 0 10px}
.contact-section .subimit-form-wrap form{margin-top:24px}

.coordonnees{position:sticky;top:120px;padding:38px 34px;background:#fff;border:1px solid rgba(39,71,150,.12);border-top:4px solid #274796;border-radius:16px;box-shadow:0 22px 46px -30px rgba(39,71,150,.55)}
.coordonnees h2{margin-bottom:22px}
.coordonnees-liste{list-style:none;padding:0;margin:0}
.coordonnee{display:flex;gap:18px;padding:22px 0;border-top:1px solid rgba(39,71,150,.1)}
.coordonnee:first-child{border-top:0;padding-top:4px}
.coordonnee:last-child{padding-bottom:0}
.coordonnee-icone{position:relative;flex:0 0 auto;width:46px;height:46px;border-radius:50%;background:rgba(66,129,183,.12)}
.coordonnee-icone::after{content:"";position:absolute;inset:0;background:#274796}
.coordonnee-mail::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center/20px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") center/20px no-repeat}
.coordonnee-tel::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center/20px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center/20px no-repeat}
.coordonnee-adresse::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center/20px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center/20px no-repeat}
.coordonnee-reseaux::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='m8.2 10.9 7.6-3.8M8.2 13.1l7.6 3.8'/%3E%3C/svg%3E") center/20px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='m8.2 10.9 7.6-3.8M8.2 13.1l7.6 3.8'/%3E%3C/svg%3E") center/20px no-repeat}
.contact-section .coordonnee-label{margin:2px 0 6px!important;font-family:"Outfit",sans-serif;font-size:13px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;color:#4281B7}
.contact-section .coordonnee-valeur{display:block;margin:0!important;font-family:"Outfit",sans-serif;font-size:20px;line-height:28px;font-weight:500;color:#1d1e21;text-decoration:none}
.contact-section a.coordonnee-valeur:hover{color:#274796}
.contact-section .coordonnee-lien{display:inline-block;margin-top:8px;font-family:"Outfit",sans-serif;font-size:15px;color:#274796;text-decoration:underline;text-decoration-color:rgba(39,71,150,.35);text-underline-offset:4px;transition:text-decoration-color .3s ease}
.contact-section .coordonnee-lien:hover{text-decoration-color:#E62139}
.coordonnees .contact-email{margin:2px 0 0}
.coordonnees .reseaux{margin-top:4px}
@media (max-width:991px){
  .coordonnees{position:static;padding:30px 24px}
}
.contact-section .btn-show-email{white-space:nowrap}
@media (max-width:420px){
  .coordonnee{gap:14px}
  .coordonnee-icone{width:40px;height:40px}
  .contact-section .btn-show-email{font-size:15px;padding-right:14px}
}

/* Téléphone et adresse : même style que l'adresse e-mail affichée */
.contact-section .coordonnee-valeur{font-size:18px;line-height:28px;font-weight:500;color:#274796}
.contact-section a.coordonnee-valeur{text-decoration:underline;text-decoration-color:rgba(39,71,150,.35);text-underline-offset:4px;transition:text-decoration-color .3s ease}
.contact-section a.coordonnee-valeur:hover{color:#274796;text-decoration-color:#E62139}
