/* =============================================================================
   Design Responsive
   ========================================================================== */

/* =============================================================================
   Filtres de la Collection - Version Desktop
   ========================================================================== */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px 0;
    margin: 0 auto 2.5rem;
    max-width: 1200px;
    justify-content: center;
}

.filter-btn {
    white-space: nowrap;
    text-align: center;
    padding: 12px 22px;
    margin: 0 8px 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #7d6a2b;
    background: linear-gradient(135deg, #f5d76e 0%, #d4af37 50%, #f5d76e 100%);
    border: 1px solid #c9a227;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.3) 100%);
    z-index: 1;
    border-radius: 30px;
}

.filter-btn span {
    position: relative;
    z-index: 2;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #5c4b1f;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #b38f2a 50%, #d4af37 100%);
    color: white;
    border-color: #a67c00;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Cacher la barre de défilement sur WebKit */
.filters::-webkit-scrollbar {
    display: none;
}

/* =============================================================================
   Version Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ajustements pour la section hero */
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    /* Ajustements généraux pour tablettes et mobiles */
    .product-card h3 {
        font-size: 1rem;
        margin: 10px 0 5px;
        line-height: 1.3;
    }
    
    .product-card .price {
        font-size: 1rem;
        margin: 5px 0 8px;
        font-weight: 600;
    }
    
    .product-card .btn,
    .product-card .order-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .product-card .order-btn i {
        font-size: 1rem;
        margin-right: 5px;
    }
    /* Filtres - Version Mobile */
    .filters {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
        padding: 0 15px 10px;
        margin: 0 auto 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }
    
    /* Pour les très petits écrans (moins de 360px) */
    @media (max-width: 360px) {
        /* Styles pour les iPhones 5/SE et appareils similaires (320px) */
        @media (max-width: 320px) {
            .hero h1 {
                font-size: 1.8rem;
                padding: 0 15px;
            }
            
            .hero p {
                font-size: 0.9rem;
                padding: 0 20px;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
                gap: 1.5rem;
            }
            
            .product-card {
                max-width: 100%;
                width: 100%;
            }
            
            .product-card h3 {
                font-size: 0.6rem;
                min-height: auto;
                text-align: center;
                margin: 0 0 1px;
                line-height: 1.2;
            }
            
            .product-card .price {
                font-size: 0.6rem;
                margin: 0 0 1px;
                text-align: center;
            }
            
            .product-card .btn,
            .product-card .order-btn {
                padding: 5px 12px;
                font-size: 0.68rem;
                border-radius: 4px;
                background: #25D366;
                color: white !important;
                text-shadow: 0 1px 1px rgba(0,0,0,0.2);
                box-shadow: 0 1px 2px rgba(0,0,0,0.1);
                transition: all 0.2s ease;
                margin: 2px auto 0;
                width: 100%;
                max-width: 240px;
                display: flex;
                justify-content: center;
                align-items: center;
                font-weight: 600;
                letter-spacing: 0.3px;
                min-height: 32px;
                line-height: 1.25;
                white-space: nowrap;
            }
            
            .product-card .order-btn:hover {
                background: #128C7E !important;
                transform: translateY(-1px);
                box-shadow: 0 3px 6px rgba(0,0,0,0.15);
            }
            
            .product-card .order-btn i {
                font-size: 0.8rem;
                margin-right: 3px;
            }
            
            .filters {
                padding: 0 8px 6px;
                gap: 4px;
            }
            
            .filter-btn {
                padding: 10px 14px;
                font-size: 0.8rem;
                margin: 0 4px 8px;
            }
        }
        .filters {
            grid-template-columns: repeat(2, 1fr);
            gap: 6px;
            padding: 0 10px 8px;
        }
        
        /* Ajustements des tailles pour les petits écrans */
        .product-card {
            padding: 8px;
        }
        
        .product-card h3 {
            font-size: 0.85rem;
            margin: 6px 0 3px;
            min-height: 2.2em;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .product-card .price {
            font-size: 0.9rem;
            margin: 3px 0 6px;
        }
        
        .product-card .btn,
        .product-card .order-btn {
            padding: 8px 6px;
            font-size: 0.75rem;
            min-width: 100%;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .product-card .order-btn i {
            font-size: 0.9rem;
            margin-right: 4px;
        }
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 25px;
        margin: 0 5px 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        min-width: 0;
    }

    /* Masquer le menu hamburger et la navigation de bureau */
    .menu-toggle,
    header .nav-links {
        display: none;
    }

    /* Afficher la barre de navigation mobile */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: white;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--secondary-color);
        font-size: 0.75rem;
        flex-grow: 1;
        padding: 5px 0;
        transition: color 0.3s;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-link i {
        font-size: 1.5rem;
        transition: transform 0.3s ease, color 0.3s ease;
        margin-bottom: 4px;
    }
    
    .mobile-nav-link span {
        display: block;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(212, 175, 55, 0.1);
        transform: scale(0);
        border-radius: 50%;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: -1;
        opacity: 0;
    }
    
    .mobile-nav-link:active::before {
        transform: scale(2);
        opacity: 1;
    }
    
    .mobile-nav-link:active i,
    .mobile-nav-link:active span {
        transform: scale(0.92);
    }
    
    .mobile-nav-link.active {
        color: var(--primary-color);
    }

    /* Empêcher le contenu d'être caché par la barre de navigation */
    body {
        padding-bottom: 60px; /* Hauteur de la barre de navigation */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .collection h2, .about h2, .contact h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Affichage en deux colonnes */
        gap: 1rem; /* Réduire l'espacement pour les petits écrans */
    }
}
