.contact-page {
    background: var(--background, #211724);
    color: #ffffff;
}

.contact-page .site-header {
    position: absolute;
    top: 0;
    z-index: 20;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* PHOTO ET FONDU D’OUVERTURE */

.contact-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 165px 24px 120px;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(
            rgba(33, 23, 36, 0.65),
            rgba(33, 23, 36, 0.75)
        ),
        url("../images/accueil.jpg") center 40% / cover no-repeat;
}

.contact-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 220px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--background, #211724)
    );
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 850px);
}

.contact-eyebrow {
    margin: 0 0 20px;
    color: var(--lilac, #e6c7fa);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.8;
    text-transform: uppercase;
}

.contact-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 85px);
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.contact-hero h1 span,
.contact-information h2 span {
    color: var(--lilac, #e6c7fa);
}

.contact-hero-content > p:last-child {
    max-width: 550px;
    margin: 25px auto 0;
    color: #ddd2e5;
    font-size: 14px;
    line-height: 1.9;
}

/* STRUCTURE */

.contact-section {
    position: relative;
    isolation: isolate;
    padding: 25px 24px 80px;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        ellipse at 70% 40%,
        rgba(139, 80, 185, 0.14),
        transparent 65%
    );
    pointer-events: none;
}

.contact-container {
    width: min(100%, 1200px);
    margin-inline: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(30px, 5vw, 70px);
}

.contact-information {
    padding-top: 20px;
}

.contact-information h2 {
    margin: 0 0 22px;
    font-size: clamp(29px, 3.5vw, 44px);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.contact-intro {
    margin: 0 0 35px;
    color: #cfc3d6;
    font-size: 14px;
    line-height: 1.9;
}

/* COORDONNÉES */

.contact-coordinate {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-coordinate > div:last-child {
    min-width: 0;
}

.contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(230, 199, 250, 0.22);
    border-radius: 14px;
    background: rgba(230, 199, 250, 0.07);
    color: var(--lilac, #e6c7fa);
}

.contact-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.contact-coordinate h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.contact-coordinate address,
.contact-coordinate a,
.contact-reference {
    color: #cfc3d6;
    font-size: 13px;
    font-style: normal;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.contact-reference {
    margin: 8px 0 0;
}

.contact-coordinate .contact-text-link {
    display: block;
    width: fit-content;
    margin-top: 10px;
    color: var(--lilac, #e6c7fa);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* FORMULAIRE EN VERRE */

.contact-glass {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid rgba(230, 199, 250, 0.23);
    border-radius: 25px;
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.1),
        rgba(230, 199, 250, 0.025)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-glass h2 {
    margin: 0 0 18px;
    font-size: 30px;
    font-style: italic;
    font-weight: 800;
}

.contact-form-intro {
    margin: 0 0 25px;
    color: #cfc3d6;
    font-size: 13px;
    line-height: 1.9;
}

#contact-form {
    display: grid;
    gap: 20px;
}

#contact-form[hidden] {
    display: none;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#contact-form label {
    display: grid;
    gap: 9px;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(230, 199, 250, 0.25);
    border-radius: 12px;
    background: rgba(20, 12, 26, 0.5);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    color-scheme: dark;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form input:focus-visible,
#contact-form select:focus-visible,
#contact-form textarea:focus-visible {
    outline: 2px solid var(--lilac, #e6c7fa);
    outline-offset: 3px;
}

.contact-form-note {
    margin: 0;
    color: #bcaac8;
    font-size: 11px;
    line-height: 1.8;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--lilac, #e6c7fa);
    color: #211724;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    cursor: pointer;
}

.contact-button:hover {
    background: #f0ddff;
}

/* RAPPEL DES PROGRAMMES */

.contact-programmes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 65px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(230, 199, 250, 0.045);
}

.contact-programmes h2 {
    margin: 0;
    font-size: 24px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.4;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 440px;
        padding: 145px 20px 100px;
    }

    .contact-section {
        padding: 20px 20px 60px;
    }

    .contact-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-programmes {
        padding: 25px;
        margin-top: 45px;
    }
}