/* =========================================
   1. FOND DE PAGE ET CONTENEUR PRINCIPAL
   ========================================= */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden; /* Empêche de scroller pendant le chargement */
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000; 
    z-index: 9999; 
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* =========================================
   2. LE LOGO ET SA LUEUR DOUCE EN ARRIÈRE-PLAN
   ========================================= */
.logo-container {
    position: relative; /* Indispensable pour centrer la lumière derrière */
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* La boule de lumière floutée DERRIÈRE le logo */
.logo-container::before {
    content: '';
    position: absolute;
    width: 70px; 
    height: 70px;
    background-color: #38bdf8; /* Bleu néon */
    border-radius: 50%;
    filter: blur(50px); /* Rend la lumière très diffuse */
    opacity: 0.3; /* Intensité douce et statique */
    z-index: 0; /* Reste au fond */
}

.logo {
    width: 100px; 
    height: auto;
    position: relative; 
    z-index: 1; /* Reste au premier plan, au-dessus de la lumière */
    border-bottom: 0px;
}

/* =========================================
   3. LA BARRE DE PROGRESSION NÉON (BLEU UNI)
   ========================================= */
.progress-bar-container {
    width: 300px; 
    height: 4px; 
    position: relative;
    border-radius: 2px;
}

.progress-bar-bg {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-bar-active {
    width: 0%; 
    height: 100%;
    background-color: #38bdf8; /* Bleu uni */
    border-radius: inherit;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.2s ease-out; 

    /* Lueur néon de la barre */
    box-shadow: 
        0 0 5px #38bdf8,
        0 0 12px rgba(56, 189, 248, 0.4),
        0 0 25px rgba(56, 189, 248, 0.4); 
}

/* =========================================
   4. CACHER L'ÉCRAN À LA FIN
   ========================================= */
.loading-hidden {
    opacity: 0;
    visibility: hidden;
}