/* Page contact : intro, formulaire (markup moteur .contact-form) et carte */

.contact-page {
    padding: 100px 0;
}

.contact-intro {
    margin: 0 0 40px;
    padding: 20px 0 0;
    text-align: center;
    font-size: 1.625rem;
    line-height: 36px;
    color: var(--c-body);
}

.contact-intro b {
    font-weight: 600;
}

.contact-intro em {
    font-style: normal;
    font-weight: 600;
    color: var(--c-green);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 830px) minmax(0, 466px);
    justify-content: space-between;
    gap: 48px;
}

/* ---- Formulaire : habillage maquette, cantonné à la page contact ---- */
.contact-page .contact-form {
    max-width: none;
    margin: 0;
    display: block;
}

.contact-page .contact-form .row {
    --bs-gutter-x: 30px;
    row-gap: 28px;
}

.contact-page .contact-form .form-row {
    position: relative;
    display: block;
    margin: 0;
}

.contact-page .contact-form .form-row:not(.form-consent)>label {
    position: absolute;
    left: calc(var(--bs-gutter-x) * .5 + 10px);
    top: -20px;
    z-index: 1;
    padding: 0 10px;
    background: #fff;
    font-size: .9375rem;
    line-height: 40px;
    font-weight: 400;
    color: var(--c-body);
    pointer-events: none;
    transition: color .4s var(--ease-out), background-color .4s var(--ease-out);
}

.contact-page .contact-form .form-row input,
.contact-page .contact-form .form-row textarea {
    display: block;
    width: 100%;
    height: 52px;
    padding: 14px 20px 10px;
    border: 1px solid var(--c-body);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--c-dark);
    transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.contact-page .contact-form .form-row textarea {
    height: 201px;
    padding-top: 24px;
    resize: vertical;
}

.contact-page .contact-form .form-row input:focus,
.contact-page .contact-form .form-row textarea:focus {
    outline: none;
    border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(174, 202, 50, .2);
}

/* .contact-page .contact-form .form-row:not(.form-consent):focus-within>label {
    color: #fff;
    background: var(--c-green);
} */

/* Téléphone plus étroit que l'email (256 / 544) */
@media (min-width: 768px) {
    .contact-page .contact-form .form-row:has(#cf-phone) {
        flex: 0 0 auto;
        width: 32.5%;
    }

    .contact-page .contact-form .form-row:has(#cf-email) {
        flex: 1 0 0;
        width: auto;
    }
}

.contact-page .contact-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: .875rem;
    line-height: 20px;
    color: var(--c-body);
}

.contact-page .contact-form .form-consent input {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: var(--c-green);
}

.contact-page .contact-form .form-consent label {
    font-weight: 400;
    cursor: pointer;
}

.contact-page .contact-form .form-consent a {
    text-decoration: underline;
    color: var(--c-body);
}

.contact-page .contact-form .form-consent a:hover {
    color: var(--c-green);
}

.contact-page .contact-form .form-submit {
    display: flex;
    align-items: center;
    gap: 10px;justify-content: space-between;
}

.contact-page .contact-form .captcha {
    flex: 0 0 auto;
}

.contact-page .contact-form .captcha img {
    display: block;
    width: 160px;
    height: auto;
}

.contact-page .contact-form .btn-contact.btn {
    flex: 1 1 auto;
    justify-content: space-between;
    min-height: 82px;
    padding: 15px 15px 15px 30px;
    font-size: 1.625rem;
    line-height: 37px;
    max-width: 420px;
}

.contact-page .contact-form .btn-contact .btn-ic {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
    background: #fff;
    color: var(--c-green);
}

.contact-page .contact-form .btn-contact .btn-ic .ic {
    width: 20px;
    height: 20px;
}

.contact-page .contact-form .btn-contact:hover .btn-ic,
.contact-page .contact-form .btn-contact:focus-visible .btn-ic {
    color: var(--c-teal);
}

/* ---- Carte ---- */
.contact-map {
    position: relative;
    min-height: 631px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1), 0 18px 18px rgba(0, 0, 0, .05), 0 41px 25px rgba(0, 0, 0, .03);
}

.contact-map img,
.contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}
