/* ============================================
   PAGE DE CHARGEMENT - SPLASH SCREEN
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #050505 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(254, 85, 22, 0.05) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.splash-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(254, 85, 22, 0.5));
}

.splash-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 0.5rem;
    animation: titleGlow 3s ease-in-out infinite;
}

.splash-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff6b35);
    border-radius: 2px;
    animation: progressAnimation 2s ease-in-out infinite;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

.splash-percentage {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    animation: countUp 2s ease-out forwards;
}

.splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 90%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 1.5s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(254, 85, 22, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(254, 85, 22, 0.8));
    }
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(254, 85, 22, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(254, 85, 22, 0.8);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateY(-100px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0);
    }
}

@keyframes countUp {
    0% {
        content: '0%';
    }

    10% {
        content: '10%';
    }

    20% {
        content: '20%';
    }

    30% {
        content: '30%';
    }

    40% {
        content: '40%';
    }

    50% {
        content: '50%';
    }

    60% {
        content: '60%';
    }

    70% {
        content: '70%';
    }

    80% {
        content: '80%';
    }

    90% {
        content: '90%';
    }

    100% {
        content: '100%';
    }
}

/* Animation de sortie */
.splash-screen.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        visibility: hidden;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .splash-logo {
        width: 80px;
        height: 80px;
    }

    .splash-title {
        font-size: 1.8rem;
    }

    .splash-subtitle {
        font-size: 0.9rem;
    }

    .loader-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .splash-title {
        font-size: 1.5rem;
    }

    .splash-subtitle {
        font-size: 0.8rem;
    }

    .loader-bar {
        width: 120px;
    }
}