body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #8a2be2, #ff69b4, #8a2be2);
    background-size: 600% 600%;
    animation: gradientBackground 10s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Empêche le défilement */
    position: relative;
    z-index: 0; /* Assurez-vous que le body a un z-index de base */
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/caca.png');
    background-size: 100px 100px;
    /* Assurez-vous que l'image de caca est exactement de 100x100 pixels */
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
    animation: moveCacas 5s linear infinite; /* Ajoute l'animation */
}

@keyframes moveCacas {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px; /* Ajuste pour créer un mouvement */
    }
}

.chat-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* Assure que l'image est au-dessus du motif */
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}
