/* Styles CSS pour navigation mobile - À inclure dans toutes les pages */

/* Animations et améliorations pour mobile */
@media (max-width: 640px) {
    .hover\:scale-102:hover {
        transform: scale(1.02);
    }
    .active\:scale-98:active {
        transform: scale(0.98);
    }
    
    /* Animation de pulsation pour les packs critiques */
    .pulse-red {
        animation: pulse-red 2s infinite;
    }
    
    @keyframes pulse-red {
        0%, 100% { 
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        }
        50% { 
            box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        }
    }
    
    /* Amélioration du feedback tactile */
    .mobile-card {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-card:active {
        transform: scale(0.98);
        filter: brightness(0.95);
    }
}

/* Navigation Mobile */
.mobile-menu-open {
    transform: translateX(0) !important;
}

.mobile-overlay-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Menu mobile responsive */
@media (max-width: 640px) {
    #mobile-menu {
        width: 85vw !important;
        max-width: 320px;
    }
}

@media (max-width: 400px) {
    #mobile-menu {
        width: 90vw !important;
    }
}

/* Animation des icônes du menu hamburger */
.hamburger-rotate {
    transform: rotate(90deg);
}

.close-rotate {
    transform: rotate(0deg);
}

/* Scroll lock pour le menu mobile */
.scroll-lock {
    overflow: hidden;
    height: 100vh;
}

/* Animation de chargement douce */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Amélioration des boutons tactiles */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-item:active {
        background-color: rgba(59, 130, 246, 0.1);
        transform: scale(0.98);
    }
}

/* Styles spécifiques pour différents types de cartes */
.pack-card {
    transition: all 0.3s ease;
}

.pack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-friendly-button {
        min-height: 44px;
        min-width: 44px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}
