/* Animation de croissance d'engagement avec des emojis */
.engagement-growth-animation {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-color: var(--bg-color-light);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(124, 137, 255, 0.12);
}

.emoji-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Génération des emojis */
.emoji {
    position: absolute;
    bottom: 5%;
    font-size: 1.8rem; /* Plus petit qu'avant */
    opacity: 0;
    animation: floatUp 6s ease-out infinite;
    z-index: 2;
}

/* Animation de flottement simple - mouvement vertical de bas en haut */
@keyframes floatUp {
    0% {
        bottom: 5%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 95%;
        opacity: 0;
    }
}

/* Style pour les métriques marketing */
.metric {
    position: absolute;
    bottom: 5%;
    font-size: 0.85rem; /* Plus petit qu'avant */
    font-weight: bold;
    font-family: var(--heading-font);
    color: var(--primary-color); /* Couleur principale du site (violet) */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 4px 10px; /* Padding réduit */
    box-shadow: 0 2px 10px rgba(124, 137, 255, 0.2);
    opacity: 0;
    animation: floatUp 6s ease-out infinite;
    z-index: 3;
    white-space: nowrap;
}

.metric.positive {
    color: var(--primary-color); /* Violet foncé pour tous */
}

.metric.negative {
    color: var(--primary-color); /* Violet foncé pour tous */
}

/* Règles globales pour .cta-card-illustration */
.cta-card-illustration {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

/* Sur desktop, style normal */
@media screen and (min-width: 769px) {
    .engagement-growth-animation {
        height: 100%;
        width: 100%;
    }
    
    .emoji-container {
        height: 100%;
    }
}

/* Sur mobile, ajustements spécifiques */
@media screen and (max-width: 768px) {
    /* Structure de base de la section CTA */
    .cta-card-section {
        padding: 0;
        overflow: hidden;
    }
    
    .cta-card-section .cta-card {
        flex-direction: column;
        padding-bottom: 0;
        overflow: hidden;
    }
    
    .cta-card-content {
        width: 100%;
        max-width: 100%;
        padding-bottom: 10px;
    }
    
    /* Réinitialisation des styles pour la section CTA */
    /* Structure complète de la section CTA pour mobile */
    .container {
        padding: 0;
        overflow: hidden;
        width: 100%;
    }
    
    .cta-card-section {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
        width: 100%;
    }
    
    .cta-card {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 16px;
        width: 100%;
    }
    
    /* Illustration container - parent de l'animation */
    .cta-card-illustration {
        width: 100%;
        padding: 0;
        margin: 0;
        height: 200px; /* Hauteur réduite à 200px */
        display: block;
        position: relative;
        overflow: hidden;
        background: var(--bg-color-light);
        border-radius: 0 0 16px 16px;
    }
    
    /* Animation container */
    .engagement-growth-animation {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100% !important;
        width: 100% !important;
        min-height: 200px;
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
    }
    
    /* Container pour les emojis et métriques */
    .emoji-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
        overflow: visible;
        background-color: var(--bg-color-light); /* Assurer la couleur de fond correcte */
    }
    
    /* Emojis et métriques légèrement plus petits */
    .emoji {
        font-size: 1.5rem;
    }
    
    .metric {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}
