:root {
    --gradient-color-1: #DC2626; /* Couleur principale par défaut */
    --gradient-color-2: #F9FAFB; /* Couleur secondaire par défaut */
}

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-color: var(--gradient-color-1);
    color: #f9fafb;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body fuse-splash-screen img {
    /* width: 120px; */
    max-width: 200px;
}

body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    width: 56px;
    margin: 0 auto;
}

body fuse-splash-screen .spinner > div {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.8) 10%,
        var(--gradient-color-1) 40%,
        var(--gradient-color-2) 80%
    );
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5),
        inset 5px 5px 10px rgba(255, 255, 255, 0.3);

    display: inline-block;
    -webkit-animation: fuse-bouncedelay 1.2s infinite ease-in-out both;
    animation: fuse-bouncedelay 1.2s infinite ease-in-out both;
}

/* Décalage des balles pour un effet de jonglage */
body fuse-splash-screen .spinner .bounce1 {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}
body fuse-splash-screen .spinner .bounce2 {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}
body fuse-splash-screen .spinner .bounce3 {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

/* Animation de jonglage (avec WebKit) */
@-webkit-keyframes fuse-bouncedelay {
    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-40px);
        transform: translateY(-40px);
    }
    80% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fuse-bouncedelay {
    0%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-40px);
        transform: translateY(-40px);
    }
    80% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

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

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