/* Page d'attente avant l'ouverture : le vigile ECCSEL se tient entre « Accès » et
   « refusé », en lettres de signalétique géantes, et bloque le passage. Tout le
   reste est discret. Page autonome. */

@font-face {
    font-family: "Big Shoulders Display";
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url("../fonts/big-shoulders-display-latin-5HqVsPQ.woff2") format("woff2");
}

:root {
    --attente-encre: #1d3b85;
    --attente-encre-douce: #5b6b8c;
    --attente-fond: #fff;
    --attente-signal: "Big Shoulders Display", "Arial Narrow", sans-serif-condensed, Impact, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

.attente {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--attente-fond);
    color: var(--attente-encre);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

.attente__entete {
    padding: 1.5rem 2rem 0;
}

.attente__entete img {
    display: block;
    width: 140px;
    height: auto;
}

.attente__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    text-align: center;
}

/* Le passage : « Accès » | vigile | « refusé » */
.attente__porte {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    margin: 0;
    font-family: var(--attente-signal);
    font-size: min(12.5vw, 30vh);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.attente__mot {
    position: relative;
    padding-top: 0.12em;
}

.attente__vigile {
    position: relative;
    z-index: 1;
    width: min(34vw, 74vh);
    height: auto;
    margin: 0 -0.32em;
    animation: attente-vigile 0.75s 0.2s cubic-bezier(0.25, 1.4, 0.45, 1) both;
}

/* Le seul mouvement : le vigile s'interpose */
@keyframes attente-vigile {
    from { opacity: 0; transform: translateY(14%) scale(0.9); }
    to { opacity: 1; transform: none; }
}

.attente__rendez-vous {
    margin: 0.7rem 0 0;
    font-family: var(--attente-signal);
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.attente__compteur,
.attente__imminent {
    margin: 0.6rem 0 0;
    font-size: 0.98rem;
    color: var(--attente-encre-douce);
}

.attente__compteur[hidden],
.attente__unite[hidden] {
    display: none;
}

.attente__unite {
    margin-left: 0.15em;
    white-space: nowrap;
}

.attente__unite span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--attente-encre);
}

.attente__unite small {
    font-size: 1em;
}

.attente__pied {
    padding: 1rem 1.5rem 1.4rem;
    font-size: 0.88rem;
    text-align: center;
    color: var(--attente-encre-douce);
}

.attente__pied a {
    color: var(--attente-encre);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.attente__pied a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.attente__pied a:focus-visible {
    outline: 2px solid var(--attente-encre);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Écrans peu hauts (portable 1280 x 600) */
@media (max-height: 720px) and (min-width: 701px) {
    .attente__entete { padding-top: 1rem; }
    .attente__entete img { width: 120px; }
    .attente__pied { padding-bottom: 1rem; }
}

/* Mobile : les mots au-dessus et au-dessous du vigile */
@media (max-width: 700px) {
    .attente__entete { padding: 1.2rem 1.2rem 0; }
    .attente__entete img { width: 120px; }
    .attente__main { padding: 1.5rem 1rem 0; }
    .attente__porte {
        grid-template-columns: auto;
        justify-items: center;
        font-size: 27vw;
    }
    .attente__vigile {
        width: min(82vw, 340px);
        margin: -0.22em 0 -0.12em;
    }
    .attente__rendez-vous { margin-top: 1rem; font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .attente__vigile {
        animation: none;
    }
}
