/* Splash screen in index.html ("Tierce — refonte UI/UX" design canvas, "Écran de chargement").
   It shows before Blazor and app.css's tokens matter, so its colors are written out here. */

.tierce-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #17201B;
    color: #F3F1EC;
    font-family: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.tierce-splash-contours {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: #2A3630;
}

.tierce-splash-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    animation: tierce-splash-in 0.4s ease-out both;
}

.tierce-splash-mark {
    width: 96px;
    height: 96px;
}

.tierce-splash-name {
    margin: 22px 0 0;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 88px;
    line-height: 0.9;
    letter-spacing: 0.08em;
}

.tierce-splash-tagline {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F0A27A;
}

.tierce-splash-bar {
    width: 320px;
    max-width: 70vw;
    height: 6px;
    margin-top: 40px;
    border-radius: 999px;
    background: #34403A;
    overflow: hidden;
}

.tierce-splash-fill {
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: 999px;
    background: #C2410C;
    transition: width 0.2s ease-out;
}

.tierce-splash-status {
    margin: 22px 0 0;
    font-size: 15px;
    color: #D7D3C8;
}

.tierce-splash-status::after {
    content: " " var(--blazor-load-percentage-text, "");
}

@keyframes tierce-splash-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .tierce-splash-mark {
        width: 72px;
        height: 72px;
    }

    .tierce-splash-name {
        margin-top: 18px;
        font-size: 64px;
    }

    .tierce-splash-tagline {
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .tierce-splash-bar {
        width: 240px;
        margin-top: 32px;
    }
}

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

    .tierce-splash-fill {
        transition: none;
    }
}
