/* Animation de flottement pour les éléments décoratifs */
@keyframes float {
    0% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    50% { transform: translate(-50%, -50%) translateY(-10px) scale(1.02); }
    100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Animation pour le cercle vert derrière le téléphone */
.phone-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px; /* Augmenté de 300px à 400px */
    margin: 0 auto;
}

.phone-circle {
    position: absolute;
    width: 100%;
    padding-bottom: 100%; /* Crée un carré parfait */
    background-color: #58AE2F; /* Couleur verte primaire du site */
    border-radius: 50%;
    z-index: 0;
    transform: scale(0.9);
    opacity: 1; /* Opacité à 100% */
    transition: transform 0.8s ease-out;
}

.phone-img {
    position: relative;
    z-index: 1;
    max-width: 80%; /* Augmenté de 70% à 80% */
    height: auto;
    transform: rotate(-5deg) translateY(0);
    transition: transform 0.5s ease-out;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Styles pour la section des menus */
#features-section .grid > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

#features-section h2,
#features-section p,
#features-section .flex {
    width: 100%;
    max-width: 100%;
    text-align: right;
}

#features-section .flex {
    justify-content: flex-end;
}

/* Animation au survol */
.phone-container:hover .phone-img {
    transform: rotate(-8deg) translateY(-5px);
}

.phone-container:hover .phone-circle {
    transform: scale(1.05);
    opacity: 1; /* Maintien de l'opacité à 100% */
}

/* Animation d'apparition */
.phone-circle[data-aos] {
    transform: scale(0.5);
    opacity: 0;
}

.phone-circle[data-aos].aos-animate {
    transform: scale(1.1);
    opacity: 1; /* Maintien de l'opacité à 100% */
}

.phone-img[data-aos] {
    transform: rotate(-5deg) translateY(20px);
    opacity: 0;
}

.phone-img[data-aos].aos-animate {
    transform: rotate(-5deg) translateY(0);
    opacity: 1;
}