/* ========================================
   MOBILE PREMIUM - DESIGN PROFESSIONNEL
   ======================================== */

/* ----------------------------------------
   FIX TACTILE UNIVERSEL
   Élimine le délai 300ms + sélection texte
   ---------------------------------------- */
html {
    touch-action: manipulation;
}

a, button, input, select, label,
[role="button"], .ripple,
.mobile-nav-item, .product-card-mobile,
.qty-btn-mobile, .category-pill-mobile {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

/* Bottom Navigation Ultra Moderne */
@media (max-width: 1023px) {
    .mobile-nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(14, 165, 233, 0.1);
    }
    
    .mobile-nav-item {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-nav-item.active {
        transform: translateY(-8px);
    }
    
    .mobile-nav-item.active::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #0EA5E9, #10B981);
        border-radius: 0 0 3px 3px;
    }
    
    .mobile-nav-icon {
        transition: all 0.3s ease;
    }
    
    .mobile-nav-item.active .mobile-nav-icon {
        transform: scale(1.2);
        filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.4));
    }
    
    /* Floating Action Button Style */
    .mobile-nav-home {
        position: relative;
        margin-top: -20px;
    }
    
    .mobile-nav-home .nav-circle {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #0EA5E9, #10B981);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
        border: 4px solid white;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-home .nav-circle:active {
        transform: scale(0.95);
    }
    
    /* Product Cards Mobile */
    .product-card-mobile {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .product-card-mobile:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    
    .product-card-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #0EA5E9, #10B981);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .product-card-mobile:active::before {
        opacity: 1;
    }
    
    /* Image avec effet parallax */
    .product-image-mobile {
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
    }
    
    .product-image-mobile img {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .product-card-mobile:active .product-image-mobile img {
        transform: scale(1.05);
    }
    
    /* Badges Premium Mobile */
    .badge-mobile {
        position: absolute;
        top: 8px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }
    
    .badge-new-mobile {
        left: 8px;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.95));
        color: white;
        animation: pulse-glow-mobile 2s infinite;
    }
    
    .badge-promo-mobile {
        right: 8px;
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
        color: white;
        animation: shake-mobile 3s infinite;
    }
    
    @keyframes pulse-glow-mobile {
        0%, 100% {
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
        }
        50% {
            box-shadow: 0 4px 20px rgba(14, 165, 233, 0.8);
        }
    }
    
    @keyframes shake-mobile {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
        20%, 40%, 60%, 80% { transform: translateX(2px); }
    }
    
    /* Prix avec animation */
    .price-mobile {
        font-size: 13px;
        font-weight: 800;
        background: linear-gradient(135deg, #0EA5E9, #10B981);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
    }
    
    /* Bouton WhatsApp Mobile Premium */
    .whatsapp-btn-mobile {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white;
        border-radius: 16px;
        padding: 16px;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .whatsapp-btn-mobile::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .whatsapp-btn-mobile:active::before {
        width: 300px;
        height: 300px;
    }
    
    .whatsapp-btn-mobile:active {
        transform: scale(0.97);
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.6);
    }
    
    /* Header Mobile avec Glassmorphism */
    .header-mobile {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    }
    
    /* Search Bar Mobile Premium */
    .search-mobile {
        background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
        border: 2px solid transparent;
        border-radius: 24px;
        padding: 12px 20px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .search-mobile:focus {
        border-color: #0EA5E9;
        box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
        background: white;
    }
    
    /* Category Pills Mobile */
    .category-pill-mobile {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 20px;
        padding: 10px 20px;
        font-size: 13px;
        font-weight: 600;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .category-pill-mobile.active {
        background: linear-gradient(135deg, #0EA5E9, #10B981);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
        transform: scale(1.05);
    }
    
    .category-pill-mobile:active {
        transform: scale(0.95);
    }
    
    /* Pull to Refresh Indicator */
    .pull-refresh {
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0EA5E9, #10B981);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .pull-refresh.active {
        opacity: 1;
        top: 20px;
    }
    
    /* Skeleton Loading Mobile */
    .skeleton-mobile {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading-mobile 1.5s infinite;
        border-radius: 12px;
    }
    
    @keyframes skeleton-loading-mobile {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    
    /* Swipe Actions */
    .swipe-action {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .swipe-action-left {
        left: 0;
        background: linear-gradient(90deg, #10B981, #059669);
    }
    
    .swipe-action-right {
        right: 0;
        background: linear-gradient(90deg, #EF4444, #DC2626);
    }
    
    /* Toast Mobile */
    .toast-mobile {
        position: fixed;
        bottom: 80px;
        left: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        color: white;
        padding: 16px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        transform: translateY(120px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
    }
    
    .toast-mobile.show {
        transform: translateY(0);
    }
    
    /* Ripple Effect */
    .ripple {
        position: relative;
        overflow: hidden;
    }
    
    .ripple::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
        pointer-events: none;
    }
    
    .ripple:active::after {
        width: 300px;
        height: 300px;
    }
    
    /* Floating Labels */
    .floating-label {
        position: relative;
    }
    
    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label {
        transform: translateY(-24px) scale(0.85);
        color: #0EA5E9;
    }
    
    .floating-label label {
        position: absolute;
        top: 12px;
        left: 16px;
        transition: all 0.3s ease;
        pointer-events: none;
        background: white;
        padding: 0 4px;
    }
    
    /* Smooth Page Transitions */
    .page-enter {
        animation: page-enter-mobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes page-enter-mobile {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Quantity Selector Premium */
    .qty-selector-mobile {
        background: linear-gradient(135deg, #f0f9ff, #ecfdf5);
        border-radius: 16px;
        padding: 8px;
        display: inline-flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .qty-btn-mobile {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .qty-btn-mobile:active {
        transform: scale(0.9);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }
}

    /* Texte catégories sur 2 lignes */
    .category-text-mobile {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: visible;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
        min-height: 2em;
    }
    
    /* Dark Mode Mobile */
@media (max-width: 1023px) {
    .dark .mobile-nav {
        background: rgba(31, 41, 55, 0.95);
        border-top-color: rgba(14, 165, 233, 0.2);
    }
    
    .dark .product-card-mobile {
        background: #1f2937;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .dark .header-mobile {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .dark .category-pill-mobile {
        background: #374151;
        border-color: #4b5563;
    }
    
    .dark .search-mobile {
        background: #374151;
    }
}

/* ========================================
   NOUVELLES SECTIONS HOMEPAGE
   ======================================== */

/* Stats counter section */
.stats-item {
    transition: transform 0.2s ease;
}
.stats-item:active {
    transform: scale(0.95);
}

/* Testimonials cards */
.testimonial-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.testimonial-card:hover {
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
}
.dark .testimonial-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Payment method cards */
.payment-method-card {
    transition: all 0.2s ease;
    background: white;
}
.payment-method-card:hover {
    border-color: #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dark .payment-method-card {
    background: #1f2937;
}

/* Checkout order button pulse on hover */
button[type="submit"][name="checkout"] {
    position: relative;
    overflow: hidden;
}
button[type="submit"][name="checkout"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
    pointer-events: none;
}

/* WhatsApp CTA section */
.whatsapp-cta-section {
    position: relative;
}

/* Product card enhanced hover */
.product-scroll .item > div:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

/* Section title underline accent */
.section-title-accent {
    position: relative;
    display: inline-block;
}
.section-title-accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0EA5E9, #10B981);
    border-radius: 2px;
}
