.error-page {
    width: min(
        850px,
        calc(100% - 40px)
    );

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

    margin: 0 auto;

    padding:
        65px
        0
        90px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* CODE */

.error-code {
    margin-bottom: 14px;

    color: var(--header-green);

    font-family: "Kalam", cursive;
    font-size: clamp(72px, 14vw, 145px);
    font-weight: 700;

    line-height: .8;

    letter-spacing: -5px;
}


/* TITRE */

.error-page h1 {
    max-width: 760px;

    margin:
        0
        0
        28px;

    color: var(--black);

    font-size: clamp(48px, 8vw, 78px);
    line-height: .95;

    letter-spacing: -3.5px;
}


/* TEXTE */

.error-page p {
    max-width: 580px;

    margin:
        0
        0
        38px;

    color: var(--grey);

    font-size: 18px;
    line-height: 1.6;
}


/* ACTIONS */

.error-actions {
    display: flex;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}


/* BOUTON PRINCIPAL */

.error-primary {
    min-height: 54px;

    padding:
        0
        20px;

    display: inline-flex;
    align-items: center;

    gap: 18px;

    background: var(--coral);

    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    text-decoration: none;

    border-radius: 4px;

    transition:
        transform .15s ease,
        filter .15s ease;
}

.error-primary span {
    font-size: 24px;
}

.error-primary:hover {
    transform: translateY(-2px);

    filter: brightness(.96);
}


/* MOBILE */

@media (max-width: 760px) {

    .error-page {
        width: calc(100% - 32px);

        min-height: calc(100dvh - 62px);

        padding:
            45px
            0
            65px;

        justify-content: flex-start;
    }

    .error-code {
        margin-top: 20px;

        font-size: 90px;
    }

    .error-page h1 {
        font-size: 50px;

        letter-spacing: -2.7px;
    }

    .error-page p {
        font-size: 16px;
    }

    .error-actions {
        align-items: stretch;
        flex-direction: column;

        gap: 12px;
    }

    .error-primary {
        width: 100%;

        min-height: 58px;

        justify-content: space-between;
    }

}