/* Contact : adresse et lien e-mail dans l’axe bleu de l’identité du site. */
html:has(body .contact-main) { color-scheme: light; background: #fff; }
body:has(.contact-main) {
    --contact-blue: #0091ff;
    --contact-ink: #111;
    position: relative;
    isolation: isolate;
    background: #fff;
    color: var(--contact-ink);
}
body:has(.contact-main)::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: var(--contact-blue);
    pointer-events: none;
}
body:has(.contact-main) > :is(.site-header, .contact-main, .site-footer) { position: relative; z-index: 1; }
.contact-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 6vw, 64px);
    width: min(100% - 40px, 900px);
    margin: 18px auto 76px;
    overflow-wrap: anywhere;
}
.contact-main > * { min-width: 0; }
.contact-heading { display: flex; flex-direction: column; align-items: center; width: min(100%, 680px); background: #fff; }
.contact-main h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 14px 20px;
    background: #fff;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 500;
    letter-spacing: .1em;
    line-height: 1.35;
    text-align: center;
}
.contact-introduction { width: 100%; padding: 12px 20px; background: #fff; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.75; text-align: center; }
.contact-introduction > :first-child { margin-top: 0; }
.contact-introduction > :last-child { margin-bottom: 0; }
.contact-introduction:empty { display: none; }
.contact-details { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 100%; padding: 12px 20px; background: #fff; text-align: center; }
.contact-address { max-width: 100%; margin: 0; font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.6; overflow-wrap: anywhere; user-select: text; }
.contact-send { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; min-height: 48px; padding: 12px 28px; border: 1px solid #005baa; border-radius: 4px; background: #005baa; color: #fff; font-weight: 600; letter-spacing: .1em; line-height: 1.5; text-decoration: none; }
.contact-send:hover { background: #004681; color: #fff; }
.contact-send:focus-visible { outline: 2px solid var(--contact-blue); outline-offset: 4px; }
@media (max-width: 40rem) {
    .contact-main { width: min(100% - 36px, 680px); margin-top: 12px; margin-bottom: 56px; gap: 40px; }
    .contact-main h1 { padding: 12px; font-size: clamp(1.3rem, 5vw, 1.65rem); }
    .contact-introduction,
    .contact-details { padding: 10px 12px; }
}
