body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e88e5 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: #FFFFFF;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

/* Logo container avec animation */
body fuse-splash-screen .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    animation: logoFadeIn 1.5s ease-out;
}

/* Conteneur du spinner amélioré */
body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

/* Spinner circulaire moderne */
body fuse-splash-screen .spinner .loading-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Points de chargement en bas */
body fuse-splash-screen .loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

body fuse-splash-screen .loading-dots > div {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    border-radius: 50%;
    display: inline-block;
    animation: dotBounce 1.4s infinite ease-in-out both;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body fuse-splash-screen .loading-dots .bounce1 {
    animation-delay: -0.32s;
}

body fuse-splash-screen .loading-dots .bounce2 {
    animation-delay: -0.16s;
}

body fuse-splash-screen .loading-dots .bounce3 {
    animation-delay: 0s;
}

/* Logo principal avec taille adaptée */
body fuse-splash-screen .main-logo {
    width: 400px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body fuse-splash-screen .main-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Animation du dégradé de fond */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animation de flottement du logo */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animation de brillance du texte */
@keyframes textShimmer {
    0% { background-position: -200% 0%; }
    100% { background-position: 200% 0%; }
}

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

/* Animation des points de chargement */
@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Animation d'apparition du logo */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

/* Animation d'apparition du sous-titre */
@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0px);
    }
}

/* Animations responsives pour mobile et desktop */
@media (max-width: 768px) {
    body fuse-splash-screen .main-logo {
        width: 320px;
        height: 160px;
        padding: 15px;
    }
    
    body fuse-splash-screen .spinner .loading-circle {
        width: 50px;
        height: 50px;
    }
    
    body fuse-splash-screen .loading-dots > div {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    body fuse-splash-screen .main-logo {
        width: 280px;
        height: 140px;
        padding: 10px;
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
