/* =========================================
   OL CREATIVE STUDIO
   CONTACT
   ========================================= */


/* ========================================================= */
/*                       CONTACT HERO                        */
/* ========================================================= */

.contact-hero {
    position: relative;

    min-height: calc(100vh - 80px);

    padding: 130px 0 34px;

    overflow: hidden;

    background: var(--color-background);
}

.contact-hero__container {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, .65fr);

    gap: clamp(70px, 8vw, 140px);

    align-items: end;
}


/* ========================================================= */
/*                         MAIN                              */
/* ========================================================= */

.contact-hero__main {
    max-width: 980px;
}

.contact-hero__eyebrow,
.contact-project__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 30px;

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--color-primary);
}

.contact-hero__eyebrow::before,
.contact-project__eyebrow::before {
    content: "";

    width: 34px;
    height: 1px;

    background: currentColor;
}

.contact-hero__title {
    margin: 0;

    font-family: var(--font-body);
    font-size: clamp(64px, 7vw, 112px);
    font-weight: var(--font-weight-medium);
    line-height: .88;
    letter-spacing: -.06em;

    color: var(--color-text);
}

.contact-hero__title em {
    display: block;

    font-family: var(--font-display);
    font-weight: var(--font-weight-medium);
    letter-spacing: -.035em;

    color: var(--color-primary);
}


/* ========================================================= */
/*                       HERO SIDE                           */
/* ========================================================= */

.contact-hero__side {
    max-width: 440px;

    padding-bottom: 8px;
}

.contact-hero__intro {
    margin: 0 0 42px;

    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.8;

    color: var(--color-text-muted);
}

.contact-hero__availability {
    padding-top: 28px;

    border-top: 1px solid var(--color-border);
}

.contact-hero__availability-status {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 15px;

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .04em;

    color: var(--color-text);
}

.contact-hero__availability-status > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--color-success);

    box-shadow:
        0 0 0 5px rgba(49, 180, 108, .12);
}

.contact-hero__availability p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;

    color: var(--color-text-muted);
}


/* ========================================================= */
/*                       HERO FOOTER                         */
/* ========================================================= */

.contact-hero__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 110px;
    padding-top: 22px;

    border-top: 1px solid var(--color-border);

    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--color-text-muted);
}

.contact-hero__footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: inherit;

    transition:
        color var(--duration-fast) var(--ease-standard);
}

.contact-hero__footer a:hover {
    color: var(--color-primary);
}


/* ========================================================= */
/*                      CONTACT PROJECT                      */
/* ========================================================= */

.contact-project {
    padding: 140px 0;

    background: var(--color-background-alt);
}

.contact-project__layout {
    display: grid;
    grid-template-columns:
        minmax(300px, .75fr)
        minmax(0, 1.25fr);

    gap: clamp(70px, 9vw, 150px);

    align-items: start;
}


/* ========================================================= */
/*                          ASIDE                            */
/* ========================================================= */

.contact-project__aside {
    position: sticky;

    top: 130px;
}

.contact-project__title {
    margin: 0;

    font-family: var(--font-body);
    font-size: clamp(48px, 5vw, 76px);
    font-weight: var(--font-weight-medium);
    line-height: .94;
    letter-spacing: -.05em;

    color: var(--color-text);
}

.contact-project__title em {
    display: block;

    font-family: var(--font-display);
    font-weight: var(--font-weight-medium);
    letter-spacing: -.03em;

    color: var(--color-primary);
}

.contact-project__intro {
    max-width: 480px;

    margin: 32px 0 0;

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;

    color: var(--color-text-muted);
}


/* ========================================================= */
/*                       CONTACT DETAILS                     */
/* ========================================================= */

.contact-project__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0;

    margin-top: 70px;

    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.contact-detail {
    min-width: 0;

    padding: 22px;

    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.contact-detail__label {
    display: block;

    margin-bottom: 9px;

    font-family: var(--font-body);
    font-size: 9px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .12em;
    text-transform: uppercase;

    color: var(--color-primary);
}

.contact-detail a,
.contact-detail p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.6;

    color: var(--color-text);
}

.contact-detail a {
    transition:
        color var(--duration-fast) var(--ease-standard);
}

.contact-detail a:hover {
    color: var(--color-primary);
}


/* ========================================================= */
/*                           FORM                            */
/* ========================================================= */

.contact-form {
    position: relative;

    padding: 0;

    background: transparent;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.contact-field {
    margin-bottom: 34px;
}

.contact-field label {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 10px;

    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: .06em;
    text-transform: uppercase;

    color: var(--color-text);
}

.contact-field label span {
    font-size: 9px;
    font-weight: var(--font-weight-regular);

    color: var(--color-text-muted);
}


/* ========================================================= */
/*                     FORM CONTROLS                         */
/* ========================================================= */

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;

    padding: 14px 0 16px;

    background: transparent;

    font-family: var(--font-body);
    font-size: 16px;

    color: var(--color-text);

    outline: none;

    transition:
        border-color var(--duration-fast) var(--ease-standard);
}

.contact-field textarea {
    min-height: 170px;

    resize: vertical;

    line-height: 1.7;
}

.contact-field select {
    cursor: pointer;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--color-primary);
}

.contact-field textarea::placeholder {
    color: var(--color-gray-300);
}


/* ========================================================= */
/*                         CONSENT                           */
/* ========================================================= */

.contact-consent {
    display: grid;
    grid-template-columns: auto 1fr;

    gap: 12px;
    align-items: start;

    margin-top: 8px;
}

.contact-consent input {
    width: 16px;
    height: 16px;

    margin-top: 3px;

    accent-color: var(--color-primary);
}

.contact-consent label {
    max-width: 650px;

    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.65;

    color: var(--color-text-muted);
}

.contact-consent a {
    text-decoration: underline;
    text-underline-offset: 3px;

    color: var(--color-text);
}


/* ========================================================= */
/*                       FORM FOOTER                         */
/* ========================================================= */

.contact-form__footer {
    display: flex;
    align-items: center;

    gap: 24px;

    margin-top: 42px;
}

.contact-form__footer p {
    margin: 0;

    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.5;

    color: var(--color-text-muted);
}


/* ========================================================= */
/*                         HONEYPOT                          */
/* ========================================================= */

.contact-form__honeypot {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
}


/* ========================================================= */
/*                          ALERTS                           */
/* ========================================================= */

.contact-alert {
    position: relative;
    z-index: 1;

    padding: 15px 0;

    font-family: var(--font-body);
    font-size: 13px;
}

.contact-alert p {
    margin: 0;
}

.contact-alert--success {
    background: rgba(49, 180, 108, .1);

    color: var(--color-success);
}

.contact-alert--error {
    background: rgba(214, 69, 69, .1);

    color: var(--color-error);
}

/*
|--------------------------------------------------------------------------
| Décalage sous le header fixe
|--------------------------------------------------------------------------
*/

.page-content > .contact-alert:first-child {
    margin-top: clamp(5.5rem, 7vw, 7rem);
}


/* ========================================================= */
/*                          TABLET                           */
/* ========================================================= */

@media (max-width: 1050px) {

    .contact-hero {
        min-height: auto;
    }

    .contact-hero__container {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .contact-hero__side {
        max-width: 620px;
    }

    .contact-hero__footer {
        margin-top: 80px;
    }

    .contact-project__layout {
        grid-template-columns: 1fr;

        gap: 80px;
    }

    .contact-project__aside {
        position: static;
    }

    .contact-project__details {
        max-width: 700px;
    }

}


/* ========================================================= */
/*                          MOBILE                           */
/* ========================================================= */

@media (max-width: 768px) {

    .contact-hero {
        padding: 90px 0 28px;
    }

    .contact-hero__container {
        gap: 40px;
    }

    .contact-hero__eyebrow {
        margin-bottom: 22px;
    }

    .contact-hero__title {
        font-size: clamp(48px, 14vw, 68px);
        line-height: .94;
    }

    .contact-hero__intro {
        margin-bottom: 30px;

        font-size: 15px;
    }

    .contact-hero__footer {
        margin-top: 60px;

        gap: 20px;

        font-size: 9px;
    }


    /* PROJECT */

    .contact-project {
        padding: 90px 0;
    }

    .contact-project__layout {
        gap: 65px;
    }

    .contact-project__title {
        font-size: clamp(44px, 13vw, 62px);
    }

    .contact-project__details {
        grid-template-columns: 1fr;

        margin-top: 50px;
    }


    /* FORM */

    .contact-form__row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .contact-field {
        margin-bottom: 28px;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 16px;
    }

    .contact-form__footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 16px;
    }

}

/* ========================================================= */
/*                       SUBMIT STATE                        */
/* ========================================================= */

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

.contact-form button[type="submit"].is-loading {
    pointer-events: none;
}