/* Animations d'Ondes Concentriques - Effet Caillou dans l'Eau */

/* Container pour les ondes */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Onde individuelle */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(244, 208, 63, 0.6);
    animation: ripple-animation 4s ease-out forwards;
    pointer-events: none;
}

/* Animation de propagation de l'onde */
@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Variantes d'ondes avec différentes couleurs */
.ripple.ripple-green {
    border-color: rgba(22, 124, 81, 0.5);
    box-shadow: 0 0 20px rgba(22, 124, 81, 0.3);
}

.ripple.ripple-gold {
    border-color: rgba(244, 208, 63, 0.6);
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

.ripple.ripple-white {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Animation d'ondes multiples automatiques */
.ripple-auto {
    animation: ripple-auto-animation 6s ease-out infinite;
}

@keyframes ripple-auto-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        transform: translate(-50%, -50%);
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 800px;
        height: 800px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Ondes concentriques multiples (effet plus prononcé) */
.ripple-multiple {
    animation: ripple-multiple-animation 5s ease-out infinite;
}

@keyframes ripple-multiple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 4px;
    }
    25% {
        opacity: 0.7;
        border-width: 3px;
    }
    50% {
        opacity: 0.5;
        border-width: 2px;
    }
    75% {
        opacity: 0.2;
        border-width: 1px;
    }
    100% {
        width: 1000px;
        height: 1000px;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* Ondes pulsantes continues */
.ripple-pulse {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(244, 208, 63, 0.4);
    animation: ripple-pulse-animation 3s ease-in-out infinite;
}

@keyframes ripple-pulse-animation {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
        border-width: 3px;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
        border-width: 1px;
    }
}

/* Cercles concentriques fixes avec animation */
.concentric-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.concentric-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(244, 208, 63, 0.3);
}

.concentric-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    animation: concentric-pulse 4s ease-in-out infinite;
}

.concentric-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    animation: concentric-pulse 4s ease-in-out infinite 0.5s;
}

.concentric-circle:nth-child(3) {
    width: 600px;
    height: 600px;
    animation: concentric-pulse 4s ease-in-out infinite 1s;
}

.concentric-circle:nth-child(4) {
    width: 800px;
    height: 800px;
    animation: concentric-pulse 4s ease-in-out infinite 1.5s;
}

@keyframes concentric-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Effet d'onde au survol */
.ripple-hover-effect {
    position: relative;
    overflow: hidden;
}

.ripple-hover-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.ripple-hover-effect:hover::before {
    width: 500px;
    height: 500px;
}

/* Ondes de particules flottantes */
@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.8;
    }
}

.particle-ripple {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(244, 208, 63, 0.6);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    @keyframes ripple-animation {
        100% {
            width: 400px;
            height: 400px;
        }
    }

    @keyframes ripple-multiple-animation {
        100% {
            width: 600px;
            height: 600px;
        }
    }
}
