/* Reset de base pour tous les éléments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style global pour le body */
body {
    font-family: 'Helvetica', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #000;  /* Fond noir par défaut */
    animation: changeBackground 30s infinite;  /* Animation du fond avec dégradé et images de chiens */
}

/* Style du message principal */
#message {
    font-family: 'Impact', sans-serif; /* Utilisation de la police IMPACT */
    font-size: 5rem; /* Taille de base du texte */
    font-weight: bold;
    color: white; /* Le texte sera toujours en blanc */
    text-align: center;
    position: absolute;
    opacity: 0;
    transform: translate(0, 0);
    animation: moveText 5s infinite, zoomText 2s infinite, changeSize 2s infinite; /* Animations multiples */
}

/* Animation du texte "WHO LET THE DOGS OUT???" */
@keyframes moveText {
    0% {
        opacity: 0;
        transform: translate(0, 0); /* Position initiale */
    }
    20% {
        opacity: 1;
        transform: translate(200px, 100px); /* Déplacement rapide */
    }
    40% {
        opacity: 1;
        transform: translate(-250px, -150px); /* Autre déplacement rapide */
    }
    60% {
        opacity: 1;
        transform: translate(300px, 250px); /* Autre déplacement */
    }
    80% {
        opacity: 1;
        transform: translate(-350px, -200px); /* Autre déplacement */
    }
    100% {
        opacity: 0; /* Fin de l'animation */
        transform: translate(0, 0); /* Retour à la position initiale */
    }
}

/* Zoom dynamique du texte */
@keyframes zoomText {
    0% {
        transform: scale(1); /* Taille initiale */
    }
    50% {
        transform: scale(2); /* Zoomer */
    }
    100% {
        transform: scale(1); /* Revenir à la taille initiale */
    }
}

/* Changement de taille aléatoire du texte */
@keyframes changeSize {
    0% {
        font-size: 5rem; /* Taille de base */
    }
    25% {
        font-size: 2rem; /* Petit texte */
    }
    50% {
        font-size: 8rem; /* Très grand texte */
    }
    75% {
        font-size: 4rem; /* Taille intermédiaire */
    }
    100% {
        font-size: 5rem; /* Taille de base */
    }
}

/* Animation de fond dynamique : dégradé et images de chiens */
@keyframes changeBackground {
    0% {
        background: url('../dog1.webp') no-repeat center center/cover; /* Image de chien 1 */
    }
    16.67% {
        background: linear-gradient(45deg, #ff6a00, #ee0979); /* Dégradé de couleur */
    }
    33.33% {
        background: url('../dog2.webp') no-repeat center center/cover; /* Image de chien 2 */
    }
    50% {
        background: linear-gradient(45deg, #6a11cb, #2575fc); /* Autre dégradé */
    }
    66.67% {
        background: url('../dog3.webp') no-repeat center center/cover; /* Image de chien 3 */
    }
    83.33% {
        background: linear-gradient(45deg, #ff7e5f, #feb47b); /* Nouveau dégradé doux */
    }
    100% {
        background: url('../dog4.webp') no-repeat center center/cover; /* Image de chien 4 */
    }
    116.67% {
        background: linear-gradient(45deg, #00c6ff, #0072ff); /* Dégradé lumineux */
    }
    133.33% {
        background: url('../dog5.webp') no-repeat center center/cover; /* Image de chien 5 */
    }
    150% {
        background: linear-gradient(45deg, #ffb6c1, #6a5acd); /* Dégradé pastel */
    }
    166.67% {
        background: url('../dog6.webp') no-repeat center center/cover; /* Image de chien 6 */
    }
    183.33% {
        background: linear-gradient(45deg, #ff6a00, #ee0979); /* Retour au dégradé initial */
    }
    200% {
        background: url('../dog1.webp') no-repeat center center/cover; /* Retour à l'image de chien 1 */
    }
}

/* Styles pour les particules (les faces) */
.particle {
    position: absolute;
    pointer-events: none; /* Les particules ne bloquent pas l'interaction */
    opacity: 0; /* Commencent invisibles pour l'animation d'apparition */
    animation: fadeIn 1s ease-in-out, fadeTrail 4s forwards; /* Apparition plus lente et disparition plus longue */
    transition: all 0.5s ease-in-out;
    z-index: 10;
}

/* Animation d'apparition des particules */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation de disparition des particules */
@keyframes fadeTrail {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, -100px);  /* Déplace la particule vers le haut */
    }
}

/* Style des particules (les visages) */
.particle {
    position: absolute;
    border-radius: 50%;
    z-index: 999;
}


.retour { position: fixed; left: 16px; bottom: 14px; z-index: 10; font: 14px Helvetica, Arial, sans-serif; color: inherit; }
