:root {
    --bg-1: #07111f;
    --bg-2: #0b1730;
    --text: #f5f7ff;
    --muted: rgba(233, 238, 255, 0.72);
    --track: rgba(255, 255, 255, 0.08);
    --fill-a: #4dd0ff;
    --fill-b: #8b5cf6;
    --glow: rgba(99, 102, 241, 0.45);
}

html, body {
    margin: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

body {
    background:
        linear-gradient(rgba(7, 17, 31, 0.22), rgba(11, 23, 48, 0.22)),
        url("assets/background.png") center center / cover no-repeat fixed,
        linear-gradient(160deg, var(--bg-1), var(--bg-2));
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 90%);
    pointer-events: none;
}

.loader {
    width: min(84vw, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.loader h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(117, 187, 255, 0.25);
}

.loader img {
    max-width: min(68vw, 350px);
    height: auto;
    filter: drop-shadow(0 0 28px rgba(91, 124, 255, 0.25));
}

.progress-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 16px;
    padding: 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, #5ab9ff, #6b7bff);
    box-shadow: none;
    transition: width 180ms ease-out;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: shimmer 1.8s linear infinite;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.92rem;
    color: var(--muted);
}

#textstatut {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(244, 247, 255, 0.92);
}

@keyframes shimmer {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

@media (max-width: 520px) {
    .loader {
        gap: 18px;
    }

    .loader img {
        max-width: 72vw;
    }

    .progress-meta {
        font-size: 0.84rem;
    }
}
