@media (max-width: 1199px) {
    .site-page {
        margin: 0;
        border-radius: 0;
    }

    .nav-container,
    .home-container {
        width: min(100% - 48px, var(--inner-width));
    }

    .header-inner {
        grid-template-columns: 190px 1fr auto;
    }

    .brand img {
        width: 180px;
    }

    .main-nav {
        gap: 26px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        min-height: 325px;
    }

    .product-image {
        height: 180px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 24px;
    }

    .collection-layout {
        grid-template-columns: 170px 1fr;
    }

    .collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-layout {
        grid-template-columns: 1fr 1fr;
    }

    .order-card {
        grid-column: 1 / -1;
    }

    .help-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .nav-container,
    .home-container {
        width: calc(100% - 28px);
    }

    .top-bar-inner {
        min-height: 42px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
        font-size: 10px;
    }

    .top-bar p {
        flex-wrap: wrap;
        gap: 5px;
    }

    /* Sur mobile, ne garder que "Livraison rapide partout au Cameroun" */
    .top-bar-extra,
    .top-bar-inner a {
        display: none;
    }

    .site-header,
    .header-inner {
        height: 66px;
    }

    .header-inner {
        grid-template-columns: auto auto auto;
        gap: 12px;
    }

    .brand img {
        width: 150px;
    }

    .menu-toggle {
        order: 3;
        justify-self: end;
        display: inline-flex;
        width: 36px;
        height: 36px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: var(--blue-dark);
    }

    .main-nav {
        position: absolute;
        top: 140px;
        left: 14px;
        right: 14px;
        z-index: 30;
        display: none;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid #e0e2e8;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(5, 20, 60, .12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        height: auto;
        padding: 14px 18px;
        border-bottom: 1px solid #eef0f4;
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .main-nav a.is-active::after {
        left: 18px;
        bottom: 7px;
        transform: none;
    }

    .header-actions {
        order: 2;
        gap: 15px;
    }

    .header-actions button:first-child {
        display: none;
    }

    .hero-slider {
        height: 460px;
    }

    .hero-image {
        object-position: center center;
    }

    .hero-content {
        top: 47%;
        width: calc(100% - 32px);
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .hero-control {
        width: 42px;
        height: 42px;
    }

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .category-section {
        padding-top: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 172px;
    }

    .category-visual {
        height: 172px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        min-height: 302px;
    }

    .product-image {
        height: 150px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .collection-heading {
        flex-direction: column;
        gap: 12px;
    }

    .collection-layout {
        grid-template-columns: 1fr;
    }

    .collection-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
        padding: 14px;
        border: 1px solid #dfe2e8;
        border-radius: 8px;
    }

    .filter-block {
        margin-bottom: 0;
    }

    .filter-button {
        width: 100%;
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .collection-card {
        min-height: 315px;
    }

    .collection-image {
        height: 170px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 18px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-gallery {
        min-height: 320px;
    }

    .article-details,
    .order-card,
    .article-content,
    .legal-section {
        padding: 18px;
    }

    .article-details h1,
    .legal-heading h1 {
        font-size: 32px;
    }

    .order-card {
        grid-column: auto;
    }

    .help-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-whatsapp {
        right: 18px;
        bottom: 72px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 420px) {
    .brand img {
        width: 132px;
    }

    .header-actions {
        gap: 10px;
    }

    .hero-slider {
        height: 430px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-cta {
        width: 220px;
    }

    .category-card {
        grid-template-columns: 44% 56%;
    }

    .category-copy {
        padding-right: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .collection-sidebar {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 340px) {
    .products-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .product-card,
    .collection-card {
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
    }
}
