/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b111a; /* Bleu très sombre de la vidéo */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    position: relative;
}

/* --- Arrière-plan : Grille et Repères --- */
.background-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Création de la fine grille visible dans la vidéo */
    background-image:
        linear-gradient(rgba(78, 210, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 210, 200, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    z-index: 1;
}

.crosshairs .line-h, .crosshairs .line-v {
    position: absolute;
    background-color: rgba(78, 210, 200, 0.1);
    z-index: 2;
}
.crosshairs .line-h { width: 100%; height: 1px; top: 50%; left: 0; }
.crosshairs .line-v { width: 1px; height: 100%; top: 0; left: 50%; }

/* --- Conteneur Principal --- */
.loader-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* --- Zone du Logo et de l'Orbite --- */
.logo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Halo central qui respire */
.glow-bg {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(78, 210, 200, 0.25) 0%, rgba(78, 210, 200, 0) 70%);
    border-radius: 50%;
    animation: pulseBg 2s infinite alternate ease-in-out;
}

/* Le Logo SVG */
.ganelight-logo {
    width: 100px;
    position: relative;
    z-index: 5;
    /* On ajoute le glow directement sur ton image */
    filter: drop-shadow(0 0 8px rgba(78, 210, 200, 0.5));
    animation: pulseLogo 2s infinite alternate ease-in-out;
}

/* L'anneau */
.orbit-track {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1.5px solid rgba(78, 210, 200, 0.2);
    border-radius: 50%;
}

/* Le conteneur qui tourne */
.orbit-container {
    position: absolute;
    width: 180px;
    height: 180px;
    animation: spin 3s linear infinite; /* Rotation continue */
}

/* Le point lumineux (la comète) */
.orbiter {
    position: absolute;
    top: -4px;
    left: 50%;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    background-color: #6ee7de; /* Cyan éclatant */
    border-radius: 50%;
    /* Éclat lumineux intense */
    box-shadow: 0 0 10px 2px #6ee7de, 0 0 20px 5px rgba(110, 231, 222, 0.5);
}

/* --- Zone du Texte --- */
.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-text {
    color: #6ee7de;
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.85;
}

/* Barre de progression avec effet "scanner" (KITT style) */
.progress-track {
    width: 180px;
    height: 2px;
    background: rgba(78, 210, 200, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-sweeper {
    position: absolute;
    width: 40px;
    height: 100%;
    background: #6ee7de;
    box-shadow: 0 0 10px 2px #6ee7de;
    animation: sweep 1.5s infinite ease-in-out;
}

/* --- Animations (Keyframes) --- */

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0% { transform: scale(0.98); filter: drop-shadow(0 0 5px rgba(78, 210, 200, 0.3)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 0 15px rgba(78, 210, 200, 0.8)); }
}

@keyframes pulseBg {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 1; }
}

@keyframes sweep {
    0% { left: -40px; }
    100% { left: 180px; }
}
