/* Animations pour la section Call to Action - Zoom vers la gauche */

/* Animation de zoom vers la gauche pour la section CTA */
.cta-section {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0) scale(1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 20px;
    margin: 20px 0;
}

.cta-section:hover {
    transform: translateX(-20px) scale(1.02);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

/* Animation du titre principal */
.cta-section h2 {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.cta-section:hover h2 {
    transform: translateX(-15px) scale(1.05);
    color: #fff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animation de l'icône du titre */
.cta-section h2 .fas.fa-hand-holding-heart {
    transition: all 0.4s ease;
    display: inline-block;
}

.cta-section:hover h2 .fas.fa-hand-holding-heart {
    transform: rotate(-15deg) scale(1.3) translateY(-5px);
    color: #ffc107;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(-15deg) scale(1.3) translateY(-5px); }
    25% { transform: rotate(-15deg) scale(1.4) translateY(-5px); }
    50% { transform: rotate(-15deg) scale(1.3) translateY(-5px); }
    75% { transform: rotate(-15deg) scale(1.35) translateY(-5px); }
}

/* Animation du paragraphe */
.cta-section .lead {
    transition: all 0.4s ease;
    transform: translateX(0);
    position: relative;
    z-index: 2;
    opacity: 0.95;
}

.cta-section:hover .lead {
    transform: translateX(-10px);
    opacity: 1;
    color: #f8f9fa;
}

/* Animation du conteneur de boutons */
.cta-section .d-flex {
    transition: all 0.4s ease;
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.cta-section:hover .d-flex {
    transform: translateX(-12px);
}

/* Animation du bouton principal (S'abonner) */
.cta-section .btn-light {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0) scale(1);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
}

.cta-section:hover .btn-light {
    transform: translateX(-25px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff;
    border: 2px solid #ffc107;
}

/* Animation du bouton secondaire (Nous contacter) */
.cta-section .btn-outline-light {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0) scale(1);
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
}

.cta-section:hover .btn-outline-light {
    transform: translateX(-20px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
}

/* Effet de vague sur les boutons */
.cta-section .btn-light::before,
.cta-section .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
    z-index: 0;
}

.cta-section:hover .btn-light::before,
.cta-section:hover .btn-outline-light::before {
    width: 400px;
    height: 400px;
}

/* Animation des icônes des boutons */
.cta-section .btn-light .fas,
.cta-section .btn-outline-light .fas {
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.cta-section:hover .btn-light .fas.fa-bell {
    transform: rotate(15deg) scale(1.3) translateY(-2px);
    animation: ring 2s ease-in-out infinite;
}

.cta-section:hover .btn-outline-light .fas.fa-comments {
    transform: rotate(-10deg) scale(1.3) translateY(-2px);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(15deg) scale(1.3) translateY(-2px); }
    25% { transform: rotate(25deg) scale(1.3) translateY(-2px); }
    50% { transform: rotate(15deg) scale(1.3) translateY(-2px); }
    75% { transform: rotate(5deg) scale(1.3) translateY(-2px); }
}

@keyframes bounce {
    0%, 100% { transform: rotate(-10deg) scale(1.3) translateY(-2px); }
    50% { transform: rotate(-10deg) scale(1.4) translateY(-5px); }
}

/* Effet de brillance animé */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    transform: skewX(-15deg);
}

.cta-section:hover::before {
    right: 100%;
}

/* Animation d'entrée progressive */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-section {
    animation: slideInLeft 1s ease-out;
    animation-fill-mode: both;
}

/* Animation des particules flottantes */
.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.cta-section:hover::after {
    opacity: 1;
    animation: floatParticles 6s ease-in-out infinite;
}

@keyframes floatParticles {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-15px) rotate(270deg); }
}

/* Animation du container */
.cta-section .container {
    transition: all 0.4s ease;
    transform: translateX(0);
    position: relative;
    z-index: 2;
}

.cta-section:hover .container {
    transform: translateX(-8px);
}

/* Effet de texte amélioré */
.cta-section h2, .cta-section .lead, .cta-section .btn {
    position: relative;
    z-index: 3;
}

/* Animation de fond dynamique */
.cta-section {
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: all 0.5s ease;
}

.cta-section:hover {
    background-position: 100% 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-section:hover {
        transform: translateX(-15px) scale(1.01);
    }
    
    .cta-section:hover h2 {
        transform: translateX(-10px) scale(1.03);
    }
    
    .cta-section:hover .btn-light {
        transform: translateX(-20px) scale(1.05);
        padding: 12px 25px;
    }
    
    .cta-section:hover .btn-outline-light {
        transform: translateX(-15px) scale(1.03);
        padding: 12px 25px;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .cta-section:hover {
        transform: translateX(-10px) scale(1);
    }
    
    .cta-section:hover h2 {
        transform: translateX(-5px) scale(1.02);
    }
    
    .cta-section:hover .btn-light {
        transform: translateX(-15px) scale(1.02);
        padding: 10px 20px;
    }
    
    .cta-section:hover .btn-outline-light {
        transform: translateX(-10px) scale(1.01);
        padding: 10px 20px;
    }
}

/* Effet de focus pour accessibilité */
.cta-section .btn:focus,
.cta-section .btn:focus-visible {
    outline: 3px solid #ffc107;
    outline-offset: 2px;
}

/* Animation de chargement */
.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.cta-section:hover::before {
    transform: translateX(100%);
}
