@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Glassmorphism subtil */
.backdrop-blur-xl {
    backdrop-filter: blur(16px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.4);
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive optimizations */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Focus states amÃ©liorÃ©s */
input:focus, textarea:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* AmÃ©lioration des transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Micro-interactions */
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Optimisation du rendu */
.card-container {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Logos clients - style Ã©purÃ© */
.client-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px) scale(1.03);
}

.dark .client-logo {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.dark .client-logo:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px) scale(1.05);
}

/* Conteneurs logos Ã©purÃ©s */
.client-logo-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    background: transparent;
}

.client-logo-container:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dark .client-logo-container {
    background: transparent;
}

.dark .client-logo-container:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* AmÃ©lioration de la grille en mode sombre */
.dark .client-grid {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Optimisations responsive */
@media (max-width: 768px) {
    .client-grid .grid {
        gap: 1rem;
    }
    
    .client-logo {
        height: 2.5rem; /* h-10 */
    }
    
    .client-logo-container {
        padding: 0.5rem;
    }
}

/* Ã‰tats de focus pour l'accessibilitÃ© */
.client-logo-container:focus-within {
    outline: 2px solid rgba(79, 70, 229, 0.6);
    outline-offset: 2px;
}

/* Optimisation des performances */
.client-logo {
    will-change: transform, filter;
    transform: translateZ(0);
}

/* RÃ©duction de mouvement pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    .client-logo,
    .client-logo-container {
        transition: none;
    }
}

/* Bouton de thÃ¨me optimisÃ© */
#theme-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#theme-toggle:hover i {
    transform: rotate(180deg);
}

#theme-toggle:active {
    transform: scale(0.95);
} 
