/* =========================================================
   SAS D'ACCÈS — SITE EN CONSTRUCTION
   ========================================================= */

.construction-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: grid;
    place-items: center;

    color: #f5f3f4;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.025), transparent 28%),
        #000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 420ms ease,
        visibility 0s;
}

.construction-gate.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 420ms ease,
        visibility 0s linear 420ms;
}

.construction-gate-inner {
    width: min(calc(100% - 38px), 560px);
    min-height: 340px;

    display: grid;
    align-content: center;
    justify-items: center;

    text-align: center;
}

.construction-title {
    padding: 0;

    border: 0;

    color: #f4f1ee;
    background: transparent;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 6vw, 5.5rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.02;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 180ms ease,
        text-shadow 180ms ease,
        transform 180ms ease;
}

.construction-title:hover,
.construction-title:focus-visible {
    color: #ffffff;
    text-shadow:
        0 0 28px rgba(255, 255, 255, 0.17),
        0 0 70px rgba(255, 255, 255, 0.06);

    transform: scale(1.015);
    outline: none;
}

.construction-hint {
    margin: 19px 0 0;

    color: rgba(255, 255, 255, 0.32);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.construction-access {
    width: min(100%, 390px);
    max-height: 0;
    margin-top: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-8px);

    transition:
        max-height 280ms ease,
        margin-top 280ms ease,
        opacity 220ms ease,
        transform 280ms ease;
}

.construction-access.is-open {
    max-height: 220px;
    margin-top: 34px;

    opacity: 1;
    transform: translateY(0);
}

.construction-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.construction-input {
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;

    color: white;
    background: rgba(255, 255, 255, 0.035);

    font: inherit;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    outline: none;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.construction-input:focus {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.05);
}

.construction-submit {
    min-height: 50px;
    padding: 0 19px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;

    color: #000;
    background: #f4f1ee;

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.construction-submit:hover {
    transform: translateY(-2px);
    background: #fff;
}

.construction-error {
    min-height: 18px;
    margin: 12px 0 0;

    color: #ff6575;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.construction-access.is-wrong {
    animation: construction-shake 320ms ease;
}

body.construction-locked {
    overflow: hidden;
}

@keyframes construction-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@media (max-width: 520px) {
    .construction-form {
        grid-template-columns: 1fr;
    }

    .construction-submit {
        width: 100%;
    }
}
