/* Animation Glitch pour le SVG */
#Calque_1 {
    overflow: visible;
}

/* Par défaut, éléments visibles */
#Calque_1 > g,
#Calque_1 > path {
    opacity: 1;
}

/* Animation active quand la classe .animate est ajoutée */
#Calque_1.animate > g,
#Calque_1.animate > path {
    opacity: 0;
    animation: glitchReveal 0.15s ease-out forwards;
}

/* Délais progressifs pour chaque groupe */
#Calque_1 > *:nth-child(1) { animation-delay: 0.1s; }
#Calque_1 > *:nth-child(2) { animation-delay: 0.3s; }
#Calque_1 > *:nth-child(3) { animation-delay: 0.5s; }
#Calque_1 > *:nth-child(4) { animation-delay: 0.2s; }
#Calque_1 > *:nth-child(5) { animation-delay: 0.7s; }
#Calque_1 > *:nth-child(6) { animation-delay: 0.4s; }
#Calque_1 > *:nth-child(7) { animation-delay: 0.9s; }
#Calque_1 > *:nth-child(8) { animation-delay: 0.6s; }
#Calque_1 > *:nth-child(9) { animation-delay: 1.1s; }
#Calque_1 > *:nth-child(10) { animation-delay: 0.8s; }
#Calque_1 > *:nth-child(11) { animation-delay: 1.3s; }
#Calque_1 > *:nth-child(12) { animation-delay: 1.0s; }
#Calque_1 > *:nth-child(13) { animation-delay: 1.5s; }
#Calque_1 > *:nth-child(14) { animation-delay: 1.2s; }
#Calque_1 > *:nth-child(15) { animation-delay: 1.7s; }
#Calque_1 > *:nth-child(16) { animation-delay: 1.4s; }
#Calque_1 > *:nth-child(17) { animation-delay: 1.9s; }
#Calque_1 > *:nth-child(18) { animation-delay: 1.6s; }
#Calque_1 > *:nth-child(19) { animation-delay: 2.1s; }
#Calque_1 > *:nth-child(20) { animation-delay: 1.8s; }
#Calque_1 > *:nth-child(21) { animation-delay: 2.3s; }
#Calque_1 > *:nth-child(22) { animation-delay: 2.0s; }
#Calque_1 > *:nth-child(23) { animation-delay: 2.5s; }
#Calque_1 > *:nth-child(24) { animation-delay: 2.2s; }
#Calque_1 > *:nth-child(25) { animation-delay: 2.7s; }
#Calque_1 > *:nth-child(26) { animation-delay: 2.4s; }
#Calque_1 > *:nth-child(27) { animation-delay: 2.9s; }
#Calque_1 > *:nth-child(28) { animation-delay: 2.6s; }
#Calque_1 > *:nth-child(29) { animation-delay: 3.1s; }
#Calque_1 > *:nth-child(30) { animation-delay: 2.8s; }

@keyframes glitchReveal {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 0.3;
        transform: translate(-5px, 2px);
    }
    20% {
        opacity: 0.1;
        transform: translate(5px, -3px);
    }
    30% {
        opacity: 0.5;
        transform: translate(-3px, 0);
    }
    40% {
        opacity: 0.2;
        transform: translate(0, 3px);
    }
    50% {
        opacity: 0.8;
        transform: translate(3px, -2px);
    }
    60% {
        opacity: 0.4;
        transform: translate(-2px, 1px);
    }
    70% {
        opacity: 0.9;
        transform: translate(1px, -1px);
    }
    80% {
        opacity: 0.6;
        transform: translate(-1px, 2px);
    }
    90% {
        opacity: 0.95;
        transform: translate(2px, 0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes svgGlitchContinuous {
    0%, 85%, 100% {
        filter: none;
        transform: translate(0, 0);
    }
    86% {
        filter: hue-rotate(45deg) blur(1px);
        transform: translate(-3px, 1px) skewX(0.5deg);
    }
    87% {
        filter: hue-rotate(90deg) saturate(1.3);
        transform: translate(2px, -2px) skewX(-0.3deg);
    }
    88% {
        filter: hue-rotate(135deg) blur(0.5px);
        transform: translate(-2px, 2px) skewY(0.3deg);
    }
    89% {
        filter: hue-rotate(20deg) contrast(1.2);
        transform: translate(2px, -1px) skewX(0.5deg);
    }
    90% {
        filter: hue-rotate(60deg) blur(1px);
        transform: translate(-2px, 0) skewY(-0.5deg);
    }
    91% {
        filter: hue-rotate(100deg) saturate(0.8);
        transform: translate(1px, -2px);
    }
    92% {
        filter: hue-rotate(150deg) blur(0.5px);
        transform: translate(-1px, 1px) skewX(-0.5deg);
    }
    93% {
        filter: hue-rotate(30deg) contrast(1.1);
        transform: translate(3px, 0);
    }
    94% {
        filter: hue-rotate(60deg) blur(0.8px);
        transform: translate(-2px, 1px) skewY(0.3deg);
    }
    95% {
        filter: hue-rotate(90deg) saturate(1.2);
        transform: translate(1px, -1px);
    }
}
