/*
 * Ce fichier est réservé aux éventuelles corrections globales
 * et aux styles qui ne correspondent pas encore à un composant,
 * une mise en page ou une page précise.
 */

/* ==========================================================================
   Page 404
   ========================================================================== */

.ap-404 {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(34rem, 68vh, 48rem);
    padding: clamp(5rem, 10vw, 9rem) 1.5rem;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at 72% 42%, rgba(0, 159, 82, 0.22), transparent 34rem),
        linear-gradient(135deg, #06150f 0%, #073321 100%);
}

.ap-404__container {
    position: relative;
    z-index: 2;
    width: min(100%, 58rem);
    margin-inline: auto;
}

.ap-404__decor {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    color: rgba(255, 255, 255, 0.045);
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(15rem, 36vw, 35rem);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.08em;
    pointer-events: none;
    user-select: none;
}

.ap-404__eyebrow {
    margin: 0 0 1.25rem;
    color: #00b864;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ap-404__title {
    max-width: 54rem;
    margin: 0 auto;
    color: #ffffff;
    font-family: var(--font-heading, sans-serif);
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    font-weight: 700;
    line-height: 0.98;
    text-wrap: balance;
    text-transform: uppercase;
}

.ap-404__text {
    max-width: 42rem;
    margin: 2rem auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    text-wrap: balance;
}

.ap-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.ap-404__button {
    display: inline-flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    font-family: var(--font-heading, sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.ap-404__button:hover,
.ap-404__button:focus-visible {
    transform: translateY(-2px);
}

.ap-404__button--primary {
    color: #ffffff;
    background: #009f52;
    box-shadow: 0 0.8rem 2rem rgba(0, 159, 82, 0.22);
}

.ap-404__button--primary:hover,
.ap-404__button--primary:focus-visible {
    color: #ffffff;
    background: #00b864;
}

.ap-404__button--secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.ap-404__button--secondary:hover,
.ap-404__button--secondary:focus-visible {
    color: #07160f;
    border-color: #ffffff;
    background: #ffffff;
}

@media (max-width: 640px) {
    .ap-404 {
        min-height: 36rem;
        padding-inline: 1.1rem;
    }

    .ap-404__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ap-404__button {
        width: 100%;
    }
}

