/* ==========================================
   KBT SPORT - ÉCRAN D'ACCUEIL ANIMÉ
   ========================================== */

#splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0A0A0A 0%, #000000 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    position: relative;
}

/* Logo avec cercle rotatif */
.splash-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.splash-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid #FFCC00;
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.4), 0 0 80px rgba(255, 204, 0, 0.2);
    background: #1A1A1A;
    animation: logoPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(255, 204, 0, 0.4), 0 0 80px rgba(255, 204, 0, 0.2); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(255, 204, 0, 0.7), 0 0 120px rgba(255, 204, 0, 0.4); }
}

/* Cercle qui tourne autour */
.splash-ring {
    position: absolute;
    inset: -15px;
    border: 3px solid transparent;
    border-top-color: #FFCC00;
    border-right-color: #FFCC00;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite;
    z-index: 1;
}

.splash-ring-2 {
    position: absolute;
    inset: -25px;
    border: 2px solid transparent;
    border-bottom-color: rgba(255, 204, 0, 0.5);
    border-left-color: rgba(255, 204, 0, 0.5);
    border-radius: 50%;
    animation: ringRotate 2.5s linear infinite reverse;
    z-index: 0;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

/* Titre KBT SPORT */
.splash-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFCC00;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.5);
    animation: titleFadeIn 0.8s ease-out 0.3s backwards;
}

.splash-subtitle {
    font-size: 1rem;
    color: #A0AEC0;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: titleFadeIn 0.8s ease-out 0.5s backwards;
}

@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Barre de chargement */
.splash-bar {
    width: 240px;
    height: 4px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    animation: titleFadeIn 0.8s ease-out 0.7s backwards;
}

.splash-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFCC00, #E6B800);
    width: 0%;
    border-radius: 10px;
    animation: loadingBar 2.5s ease-out forwards;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
}

@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Texte de chargement */
.splash-loading-text {
    color: #A0AEC0;
    font-size: 0.85rem;
    margin-top: 20px;
    letter-spacing: 1px;
    animation: titleFadeIn 0.8s ease-out 0.9s backwards;
}

.splash-loading-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Barre jaune en bas */
.splash-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, #FFCC00, #E6B800, #FFCC00, transparent);
    animation: bottomBarSlide 2.5s ease-out forwards;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

@keyframes bottomBarSlide {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Responsive mobile */
@media (max-width: 480px) {
    .splash-logo {
        width: 110px;
        height: 110px;
    }
    .splash-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    .splash-subtitle {
        font-size: 0.85rem;
    }
    .splash-bar {
        width: 200px;
    }
}