:root {
    --color-primary: #5c2e15;
    --color-accent: #883333;
    --color-accent-dark: #6f2424;
    --color-gold: #c49a5a;
    --color-cream: #fff8ef;
    --color-text: #1f1f1f;
    --color-subtext: #555;

    --sidebar-w: 290px;
    --nav-h: 90px;
    --mobile-header-h: 64px;
    --content-pad: 34px;
    --gap: 28px;

    --radius: 18px;
    --shadow: 0 10px 28px rgba(0, 0, 0, .12);
    --shadow-hover: 0 16px 40px rgba(0, 0, 0, .18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background: url("../../img/autres/fond_bois.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--color-text);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 248, 239, .50), rgba(255, 248, 239, .50));
    backdrop-filter: blur(3px);
    z-index: -1;
}

body.filters-open,
body.modal-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

/* PAGE */
.catalogue-page {
    min-height: 100vh;
    padding-bottom: 70px;
}

.catalogue-layout {
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.catalogue-content {
    width: 100%;
    min-width: 0;
    padding: 28px var(--content-pad) 48px calc(var(--sidebar-w) + var(--gap));
}

/* MOBILE FILTER HEADER */
.mobile-header {
    display: none;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-w);
    padding: calc(var(--nav-h) + 18px) 16px 140px;

    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 3;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sidebar-title h2 {
    font-size: 1.3rem;
    color: var(--color-accent);
}

.sidebar-close {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(136, 51, 51, .10);
    color: var(--color-accent);
    cursor: pointer;
    font-size: 26px;
}

.search-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.sidebar input[type="search"] {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(136, 51, 51, .32);
    outline: none;
    background: rgba(255, 255, 255, .96);
}

.sidebar input[type="search"]:focus {
    border-color: rgba(136, 51, 51, .8);
    box-shadow: 0 0 0 3px rgba(136, 51, 51, .14);
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-title {
    font-size: .92rem;
    font-weight: 900;
    color: var(--color-accent);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;
    border-radius: 13px;

    background: linear-gradient(135deg, rgba(136, 51, 51, .08), rgba(196, 154, 90, .10));
    cursor: pointer;

    transition: transform .15s ease, background .2s ease;
}

.filter-chip:hover {
    background: linear-gradient(135deg, rgba(136, 51, 51, .15), rgba(196, 154, 90, .18));
    transform: translateY(-1px);
}

.filter-chip input[type="checkbox"] {
    accent-color: var(--color-accent);
    transform: scale(1.12);
}

.btn-apply {
    margin-top: 4px;
    padding: 13px 16px;
    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #fff;

    cursor: pointer;
    font-weight: 900;
}

/* BLOCS SEO HAUT / BAS */
.seo-catalogue-text,
.categorie-bulle,
.empty-catalogue,
.catalogue-faq {
    max-width: 1180px;
    margin: 0 auto 30px;
    padding: 30px 40px;

    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 239, .94));
    border: 1px solid rgba(196, 154, 90, .25);
    border-left: 6px solid var(--color-gold);

    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .11);
}

.seo-catalogue-text {
    text-align: left;
}

.seo-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;

    border-radius: 999px;
    background: rgba(136, 51, 51, .10);
    color: var(--color-accent);

    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.seo-catalogue-text h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.1;
    color: #201818;
}

.seo-catalogue-text h2 {
    margin: 24px 0 10px;
    font-size: 1.45rem;
    color: var(--color-accent);
}

.seo-catalogue-text p,
.bulle-texte,
.empty-catalogue p,
.catalogue-faq p {
    color: #3d3d3d;
    line-height: 1.7;
}

.bulle-titre,
.empty-catalogue h2,
.catalogue-faq h2 {
    margin-bottom: 12px;
    color: var(--color-accent);
}

/* PRODUITS */
.articles {
    width: 100%;
    display: grid;
    gap: 28px;
    align-content: start;
}

.articles.grid-3 {
    max-width: 1240px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.article-card {
    height: 100%;
    min-height: 560px;
    padding: 24px 20px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: var(--shadow);

    transition: transform .22s ease, box-shadow .22s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-title {
    min-height: 52px;
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.12rem;
    line-height: 1.25;
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

.article-title a:hover {
    color: var(--color-accent);
}

.article-image-link {
    width: 100%;
    display: block;
}

.article-img {
    width: 100%;
    height: 395px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 18px;
}

.article-actions {
    margin-top: auto;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.view-button {
    min-width: 118px;
    height: 46px;
    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: none;

    background: var(--color-accent);
    color: #fff;
    text-decoration: none;

    font-size: .92rem;
    font-weight: 900;
    cursor: pointer;

    transition: transform .15s ease, background .2s ease;
}

.view-button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
}

.view-button.secondary {
    background: #f2f2f2;
    color: #111;
}

.coeur {
    width: 46px;
    height: 46px;

    border-radius: 50%;
    border: none;

    background: #8b2222;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform .15s ease, background .2s ease;
}

.coeur:hover {
    transform: scale(1.08);
    background: #222;
}

.coeur img {
    width: 20px;
    height: 20px;
}

/* FAQ */
.catalogue-faq details {
    padding: 15px 0;
    border-top: 1px solid rgba(136, 51, 51, .13);
}

.catalogue-faq details:first-of-type {
    border-top: none;
}

.catalogue-faq summary {
    cursor: pointer;
    font-weight: 900;
}

.catalogue-faq summary:hover {
    color: var(--color-accent);
}

/* PAGINATION */
.pagination-wrap {
    margin: 34px 0 28px;
    display: flex;
    justify-content: center;
}

.pagination {
    max-width: 820px;
    padding: 14px 20px;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    overflow-x: auto;
    border-radius: 999px;

    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.pagination a {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(136, 51, 51, .95);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

.pagination a:hover {
    transform: translateY(-2px);
}

.pagination a.active {
    background: #111;
}

/* OVERLAYS / MODAL */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    z-index: 190;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: none;
    z-index: 9998;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: min(92vw, 430px);
    padding: 22px;

    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);

    display: none;
    z-index: 9999;
}

.modal.active {
    display: block;
}

.modal h2 {
    margin-bottom: 8px;
}

.modal p {
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.catalogue-blocked .catalogue-layout,
.catalogue-blocked .mobile-header {
    filter: blur(6px);
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.catalogue-blocked .modal,
.catalogue-blocked .modal-overlay {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}
/* RESPONSIVE TABLETTE */
@media (max-width: 1180px) {
    .articles.grid-3 {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

/* RESPONSIVE MOBILE / TABLETTE */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 60;

        padding: 10px 12px;

        align-items: center;

        background: rgba(255, 255, 255, .76);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 9px 12px;

        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, .16);

        background: rgba(255, 255, 255, .88);
        cursor: pointer;
    }

    .menu-toggle img.filtre {
        width: 23px;
        height: 23px;
    }

    .catalogue-content {
        padding: 18px 14px 42px;
    }

    .sidebar {
        top: 0;
        width: min(92vw, 360px);
        height: 100dvh;

        padding: calc(var(--mobile-header-h) + 18px) 18px 120px;

        z-index: 210;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay {
        display: block;
    }

    .seo-catalogue-text,
    .categorie-bulle,
    .empty-catalogue,
    .catalogue-faq {
        padding: 22px 18px;
        margin-bottom: 22px;
        border-radius: 16px;
        border-left-width: 4px;
    }

    .seo-catalogue-text h1 {
        font-size: 1.75rem;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .seo-catalogue-text h2 {
        font-size: 1.25rem;
    }

    .articles.grid-3 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .article-card {
        min-height: auto;
    }

    .article-img {
        height: 340px;
    }

    .pagination {
        gap: 8px;
        padding: 12px 14px;
    }

    .pagination a {
        width: 40px;
        height: 40px;
        font-size: .9rem;
    }
}

/* PETIT MOBILE */
@media (max-width: 420px) {
    .catalogue-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .seo-catalogue-text,
    .categorie-bulle,
    .empty-catalogue,
    .catalogue-faq {
        padding: 20px 16px;
    }

    .article-img {
        height: 300px;
    }

    .view-button {
        min-width: 108px;
        font-size: .85rem;
    }

    .coeur {
        width: 42px;
        height: 42px;
    }
}