/* Invest Page Styles */

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 4s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.layer-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

/* Amélioration pour les cartes horizontales */
.layer:hover .progress-bar {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
}

/* Responsive pour les cartes */
@media (max-width: 768px) {
    .layer {
        min-height: 200px;
    }
}

@media (min-width: 769px) {
    .layer {
        min-height: 240px;
    }
}

/* Amélioration des effets visuels avec la couleur principale */
.layer:hover {
    box-shadow: 0 25px 50px -12px rgba(253, 209, 0, 0.15);
}

/* Animation pour les images au hover */
.layer img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
