body {
    background-color: black;
    color: white;
}

#downloadCount {
    font-size: 3em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.85);
    /* Couleur blanche légèrement transparente */
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transform: perspective(500px) translateZ(20px);
    animation: glassEffect 3s ease-in-out infinite alternate;
}

@keyframes glassEffect {
    0% {
        transform: perspective(500px) translateZ(20px) rotateX(0deg) rotateY(0deg);
        filter: brightness(1);
    }

    50% {
        transform: perspective(500px) translateZ(25px) rotateX(5deg) rotateY(5deg);
        filter: brightness(1.2);
    }

    100% {
        transform: perspective(500px) translateZ(20px) rotateX(0deg) rotateY(0deg);
        filter: brightness(1);
    }
}

/* Appliquer l'animation uniquement aux images dans les colonnes sans "text-center" */
.highlight-blocks .col-md-4:not(.text-center) img {
    transition: transform 0.3s ease;
    animation: verticalSlide 5s infinite alternate;
}

/* Définition de l'animation de translation verticale */
@keyframes verticalSlide {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
        /* Ajustez la valeur selon vos préférences */
    }
}

/* Styles communs pour les images */
.highlight-blocks img {
    border-radius: 10px;
    /* Arrondit légèrement les angles des images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Ajoute une ombre subtile */
}

/* Pour le Bloc 1 : inclinaison vers la gauche + translation verticale */
.highlight-blocks .col-md-4:first-child img {
    animation: verticalSlideLeft 5s infinite alternate;
    transition: transform 0.3s ease;
}

@keyframes verticalSlideLeft {
    0% {
        transform: rotate(-5deg) translateY(0);
    }

    100% {
        transform: rotate(-5deg) translateY(10px);
    }
}

/* Pour le Bloc 3 : inclinaison vers la droite + translation verticale inversée */
.highlight-blocks .col-md-4:last-child img {
    animation: verticalSlideRight 5s infinite alternate;
    transition: transform 0.3s ease;
}

@keyframes verticalSlideRight {
    0% {
        transform: rotate(5deg) translateY(10px);
    }

    100% {
        transform: rotate(5deg) translateY(0);
    }
}

#mainTitle {
    position: relative;
    /* Pour positionner le pseudo-élément par rapport au titre */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: #fff;
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 30s ease infinite;
    margin-bottom: 1rem;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#title {
    position: relative;
    /* Vous pouvez ajouter d'autres styles (par exemple, font-size, font-family, etc.) si nécessaire */
}

#title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Utiliser la même couleur que le texte, ici hérité de .text-success */
    color: inherit;
    z-index: -1;
    filter: blur(20px) brightness(1.5);
    transform: scale(1.2);
    opacity: 1;
}

.apk-link img {
    border: 1px solid whitesmoke;
    /* Bordure blanche */
    border-radius: 12px;
    /* Coins arrondis, ajustez la valeur selon vos préférences */
}

@media (max-width: 768px) {
    #mainTitle {
        font-size: 2.5rem;
        /* Réduction de la taille du titre pour les petits écrans */
        margin: 0 1rem;
        /* Ajout de marges latérales pour éviter le débordement */
    }

    /* Si vous utilisez également le pseudo-élément pour l'effet halo, vérifiez qu'il reste aligné */
    #mainTitle::after {
        transform: scale(1.1);
        /* Réduction de la mise à l'échelle si nécessaire */
    }

    /* Désactive l'animation et remet le transform sur les images dans les colonnes non text-center */
    .highlight-blocks .col-md-4:not(.text-center) img,
    .highlight-blocks .col-md-4:first-child img,
    .highlight-blocks .col-md-4:last-child img {
        animation: none !important;
        transform: none !important;
    }
}