/* Responsive Design - Mobile First */

/* Tablets et petits écrans (max 768px) */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo {
        max-width: 120px;
    }

    .menu-nav .container {
        gap: 20px;
        padding: 15px 10px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .ingredient-badge {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .add-to-cart-btn {
        font-size: 0.95rem;
        padding: 10px;
    }

    .phone-button {
        width: 60px;
        height: 60px;
    }

    .phone-button svg {
        width: 30px;
        height: 30px;
    }

    /* Mobile-only carousel styles (activated via JS) */
    .carousel-container.mobile {
        position: relative;
        overflow: hidden;
        padding: 12px 0;
        width: 100%;
    }

    .carousel-wrapper.mobile {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        padding: 8px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-wrapper.mobile .product-card {
        min-width: 260px;
        max-width: 260px;
        scroll-snap-align: start;
    }

    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255,255,255,0.95);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 20;
    }

    .carousel-nav.prev { left: 8px; }
    .carousel-nav.next { right: 8px; }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .logo {
        max-width: 100px;
    }

    .menu-nav .container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 10px;
        text-align: center;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-content {
        padding: 15px;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-ingredients {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .ingredient-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .add-to-cart-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .phone-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .phone-button svg {
        width: 28px;
        height: 28px;
    }

    .phone-tooltip {
        display: none;
    }



    /* cleaned: no carousel-specific rules */
}

/* Très grands écrans (min 1400px) */
@media (min-width: 1400px) {
    /* Do not cap container width beyond 1400px so sections can use full space */
    .container {
        max-width: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .hero-title {
        font-size: 4.5rem;
    }
}