/* Animations pour les éléments interactifs */

/* Utilitaires de base */
.overflow-hidden {
    overflow: hidden !important;
}

.animated-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Styles utilitaires */
.logo-height {
    height: 40px;
}

.ml-auto {
    margin-left: auto;
}

.hr-spacing {
    margin: var(--space-md) 0;
    border-color: var(--light-gray);
}

.mb-60 {
    margin-bottom: 60px;
}

.error-text {
    font-size: 0.85rem;
    margin-top: 1rem;
    color: var(--gray);
}

.error-list {
    text-align: left;
    margin-top: 0.5rem;
    list-style-position: inside;
    color: var(--gray);
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.text-gray {
    font-size: 0.9rem;
    margin: 1rem 0;
    color: var(--gray);
}

/* Animation d'apparition progressive */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Animations burger menu */
.burger-open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger-open span:nth-child(2) {
    opacity: 0;
}

.burger-open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Animation du compteur panier */
.cart-pulse {
    animation: cartPulse 0.3s ease;
}

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

/* Feedback tactile */
.touch-feedback {
    opacity: 0.7;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
}

.notification-removing {
    animation: slideOutRight 0.3s ease;
}

/* Animations des notifications */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Classes utilitaires pour les animations */
.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.slide-out-right {
    animation: slideOutRight 0.3s ease;
}
