/* /mathovore/styles.css */

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes slide-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* NOUVELLES animations pour les badges explosifs */
@keyframes bounce-in {
    0% { 
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes float-away {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(100px, -300px) scale(0) rotate(720deg);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Classes d'animation */
.animate-float { 
    animation: float 3s ease-in-out infinite; 
}

.animate-pulse-slow { 
    animation: pulse-slow 2s ease-in-out infinite; 
}

.animate-slide-in { 
    animation: slide-in 0.5s ease-out; 
}

.animate-shake { 
    animation: shake 0.5s ease-in-out; 
}

.animate-bounce-in {
    animation: bounce-in 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-float-away {
    animation: float-away 3s ease-out forwards;
}

/* Effets visuels */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scrollbar personnalisée */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Classes de difficulté */
.difficulty-facile {
    background: linear-gradient(to right, #10b981, #059669);
}

.difficulty-moyen {
    background: linear-gradient(to right, #f59e0b, #ea580c);
}

.difficulty-difficile {
    background: linear-gradient(to right, #ef4444, #ec4899);
}

.difficulty-expert {
    background: linear-gradient(to right, #8b5cf6, #6366f1);
}

/* Style spécial pour l'explosion du badge */
.badge-explosion {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}