/* Fond global gris clair quand tout est chargé */
body {
    background-color: #f2f2f2;
}

/* Overlay plein écran pendant le chargement (désactivé) */
#loader-overlay {
    position: fixed;
    inset: 0;
    background-color: #1a2238; /* bleu nuit élégant */
    display: none; /* Désactivé pour éviter l’écran noir */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    color: #fff;
}

/* Logo qui tourne */
#loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    animation: spin 1.4s linear infinite;
}

/* Texte principal */
#loader-text {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    opacity: 0.95;
}

/* Phrase secondaire */
#loader-subtext {
    font-size: 14px;
    color: #d0d4e0;
    margin-top: 8px;
    text-align: center;
    opacity: 0.85;
}

/* Animation rotation du logo */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation de sortie douce (pour le fondu final) */
#loader-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}
