/* Page d'attente entre deux jeux — Air Corsica */

:root {
    --home-navy: #04244a;
}

html, body {
    height: 100%;
}

body.home-waiting {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin: 0;
    font-family: "Jost", sans-serif;
    color: #fff;
    background-color: var(--home-navy);
    overflow-x: hidden;
}

/* ---------- Fond photo + dégradé ---------- */
.home-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.home-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    user-select: none;
}

body.home-waiting::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(4, 36, 74, 0) 50%,
        rgba(4, 36, 74, 0.55) 70%,
        rgba(4, 36, 74, 0.92) 88%,
        var(--home-navy) 100%
    );
    pointer-events: none;
}

/* ---------- Contenu ---------- */
.home-content {
    padding-top: 40vh; /* garantit l'affichage de la photo si l'écran est très bas */
}

.home-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 1.2rem + 3.2vw, 4.25rem);
    line-height: 1.15;
    margin: 0 auto 0.75rem;
    text-shadow: 0 2px 16px rgba(4, 36, 74, 0.35);
}

.home-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.45vw, 1.5rem);
    line-height: 1.3;
    margin: 0;
}

/* ---------- Pied de page ---------- */
.home-footer {
    font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 1rem);
    padding-top: 4.5rem;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom));
}

.home-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-footer a:hover,
.home-footer a:focus {
    color: #fff;
    opacity: 0.85;
}

/* ---------- Modal ---------- */
.home-waiting .modal {
    color: #212529;
}

/* ---------- Tablette ---------- */
@media (min-width: 768px) {
    .home-bg img {
        object-position: center center;
    }

    .home-footer {
        padding-top: 3.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Tablette portrait : la photo desktop (16:10) recadrée verticalement */
@media (min-width: 768px) and (orientation: portrait) {
    .home-bg img {
        object-position: 30% center;
    }
}

/* ---------- Desktop ---------- */
@media (min-width: 1200px) {
    .home-subtitle {
        font-size: 1.25rem;
    }
    .home-footer {
        padding-bottom: 2.75rem;
    }
}

@media (min-width: 1920px) {
    .home-title {
        font-size: 5.5rem;
    }
    .home-subtitle {
        font-size: 1.75rem;
    }
    .home-footer {
        font-size: 1.125rem;
        padding-bottom: 4rem;
    }
}
