body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: "Jersey 10", sans-serif;
    font-size: 100px;
    
}


  

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#scene {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.glitch {
    font-size: 100px; /* Taille initiale du texte */
    color: white;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #b19cd9; /* Couleur futuriste */
}

.glitch::before {
    left: -2px;
    text-shadow: -1px 0 red, 2px 2px blue, -2px -2px green;
    animation: glitch-anim 0.75s infinite linear alternate-reverse;
}

.glitch::after {
    left: 2px;
    text-shadow: 1px 0 blue, -2px -2px red, 2px 2px green;
    animation: glitch-anim2 0.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%, 100% {
        clip: rect(88px, 9999px, 94px, 0);
        transform: skew(-0.5deg);
    }
    10% {
        clip: rect(85px, 9999px, 90px, 0);
        transform: skew(0.5deg);
    }
    20% {
        clip: rect(80px, 9999px, 85px, 0);
        transform: skew(-0.5deg);
    }
    30% {
        clip: rect(40px, 9999px, 44px, 0);
        transform: skew(0.5deg);
    }
    40%, 90% {
        clip: rect(60px, 9999px, 66px, 0);
        transform: skew(-1deg);
    }
}

@keyframes glitch-anim2 {
    0%, 100% {
        clip: rect(20px, 9999px, 25px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(10px, 9999px, 15px, 0);
        transform: skew(-0.5deg);
    }
    20% {
        clip: rect(30px, 9999px, 34px, 0);
        transform: skew(0.5deg);
    }
    30% {
        clip: rect(70px, 9999px, 75px, 0);
        transform: skew(-0.5deg);
    }
    40%, 90% {
        clip: rect(50px, 9999px, 56px, 0);
        transform: skew(1deg);
    }
}
