/* 🎭 ANIMATIONS & MICRO-INTERACTIONS - SESSION 7 */
/* Animations fluides pour une UX premium */

/* ===========================
   ANIMATIONS DE BASE
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ===========================
   CLASSES D'ANIMATION
   =========================== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

.animate-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.animate-pulse:hover {
    animation: pulse 0.4s ease-in-out;
}/* ===========================
   TRANSITIONS AVANCÉES
   =========================== */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fast-transition {
    transition: all 0.2s ease-out;
}

.slow-transition {
    transition: all 0.5s ease-in-out;
}

/* ===========================
   HOVER EFFECTS
   =========================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(30, 60, 114, 0.3);
}/* ===========================
   LOADING STATES
   =========================== */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.loading-pulse {
    animation: pulse 1.5s infinite;
    opacity: 0.7;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.4s infinite both;
}

@keyframes loading-dots {
    0%, 80%, 100% { content: ''; }
    20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
}

/* ===========================
   MICRO-INTERACTIONS
   =========================== */
.button-press {
    transition: transform 0.1s ease;
}

.button-press:active {
    transform: scale(0.98);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.icon-spin:hover {
    animation: spin 1s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}