.catalogue-hero{
    padding:30px 0 70px;
    background:var(--light);
    text-align:center;
}

.catalogue-hero h1{
    font-size:clamp(2rem, 4vw, 3rem);
    margin-bottom:15px;
    line-height:1.15;
}

.catalogue-hero p{
    max-width:700px;
    margin:auto;
    font-size:clamp(.95rem, 1.5vw, 1.1rem);
}

.catalogue{
    padding:70px 0;
    scroll-margin-top:100px;
}

.catalogue-layout{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:20px;
    align-items:start;
}

.catalogue-content{
    min-width:0;
}

.catalogue-sidebar{
    background:white;
    border-radius:12px;
    padding:15px;
    box-shadow:0 6px 20px rgba(0,0,0,.05);

    position:sticky;
    top:100px;
}

.catalogue-menu-title{
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#64748b;
    margin-bottom:8px;
    font-weight:700;
}

.catalogue-menu{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.catalogue-menu a{
    display:block;
    padding:3px 3px;
    border-radius:8px;
    text-decoration:none;
    color:var(--text);
    font-size:.75rem;
    transition:.2s;
}

.catalogue-category-group summary{
    display:block;
    cursor:pointer;
    padding:3px 3px;

    color:var(--text);
    font-size:.75rem;
    font-weight:500;

    list-style:none;
}

.catalogue-category-group summary::-webkit-details-marker{
    display:none;
}

.catalogue-category-group summary::after{
    content:"+";
    float:right;
    font-weight:700;
}

.catalogue-category-group[open] summary::after{
    content:"−";
}

.catalogue-category-link{
    padding-left: 18px !important;
}

.catalogue-subcategory{
    padding-left:18px !important;
    font-size:.72rem !important;
}

@media (hover: hover) and (pointer: fine){

    .catalogue-menu a:hover{
        background:#f8fafc;
        color:var(--secondary);
    }

}

.catalogue-menu-toggle{
    display:none;
}

.catalogue-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
}

.catalogue-count{
    font-weight:500;
    color:var(--primary);
}

.catalogue-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
    justify-content:start;
}

.product-card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    transition:.3s;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    height:100%;
}

.product-card:hover{
    transform:translateY(-5px);
}

.product-image{
    width:100%;
    overflow:hidden;
    position:relative;
}

.product-badge{
    position:absolute;
    top:12px;
    left:0px;
    background:var(--secondary);
    color:white;
    font-size:.65rem;
    font-weight:700;
    padding:5px 9px;
    border-radius:0px 20px 20px 0;
    z-index:2;
    letter-spacing:.05em;
}

.product-image picture{
    display:block;
    width:100%;
}

.product-image img{
    display:block;
    width:100%;
    height:auto;
}

.product-content{
    padding:14px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-content h2{
    font-size:0.95rem;
    line-height:1.3;
    margin-bottom:10px;
}

.product-content p{
    font-size:.75rem;
    line-height:1.5;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    overflow:hidden;
}

.product-btn{
    padding:6px 10px;
    font-size:.72rem;
    border-radius:6px;
}

.product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:auto;
    padding-top:20px;
}

.product-price{
    display:flex;
    flex-direction:column;
}

.price-label{
    font-size:.65rem;
    color:#64748b;
    font-weight:500;
    line-height:1;
    margin-bottom:4px;
}


.price-value{
    font-size:1.2rem;
    font-weight:700;
    color:var(--secondary);
    line-height:1;
    white-space:nowrap;
}

.product-btn{
    width:auto;
    max-width:none;
    white-space:nowrap;
}

.catalogue-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.catalogue-actions select{
    padding:10px 12px;
    border:1px solid #dbe2ea;
    border-radius:10px;
    font-size:.9rem;
    background:white;
    cursor:pointer;
    white-space:nowrap;
    height:42px;
    box-sizing:border-box;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.pagination{
    margin-top:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
}

.pagination span{
    color:var(--text);
    font-weight:600;
}

.pagination-btn{
    width:42px;
    height:42px;

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

    background:var(--primary);
    color:white;

    border-radius:10px;

    text-decoration:none;

    font-size:1.8rem;
    line-height:1;

    transition:.25s;
}

.pagination-btn:hover{
    background:var(--secondary);
    transform:translateY(-2px);
}

@media(max-width:1100px){

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

}

@media(max-width:900px){

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

    .catalogue-sidebar{
        position:sticky;
        top:80px;
        z-index:30;
        padding:0;
        overflow:hidden;
    }

    .catalogue-count{
        font-size:.85rem;
        white-space:nowrap;
    }

    .catalogue-actions{
        flex-shrink:0;
    }

    .catalogue-actions select{
        height:38px;
        padding:0 10px;
        font-size:.8rem;
    }

    .catalogue-menu-toggle{
        display:flex;

        width:100%;
        height:50px;

        padding:0 16px;

        border:none;
        background:white;

        color:var(--primary);

        font-size:.9rem;
        font-weight:600;

        cursor:pointer;

        align-items:center;
        justify-content:space-between;
    }

    .catalogue-menu{
        display:none;
        flex-direction:column;
        max-height:60vh;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;

        padding:0 15px 15px;
    }

    .catalogue-menu.active{
        display:flex;
    }
    .catalogue-menu-title{
        display:none;
    }
}


@media(max-width:850px){

    .catalogue-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){
    .catalogue-hero{
        padding:80px 0 50px;
    }

    .catalogue{
        scroll-margin-top:80px;
    }
}

@media(max-width:700px){

    .catalogue-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .catalogue-toolbar{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        gap:10px;
    }

    .catalogue-actions{
        flex-direction:row;
        gap:8px;
    }

    .catalogue-actions select{
        padding:10px 12px;
        border:1px solid #dbe2ea;
        border-radius:10px;
        font-size:.9rem;
        background:white;
        cursor:pointer;
        white-space:nowrap;
        height:42px;
        box-sizing:border-box;
    }

    .catalogue-grid{
        grid-template-columns:1fr;
        gap:15px;
    }


    .product-card{
        flex-direction:row;
        height:140px;
        border-radius:14px;
    }


    .product-image{

        width:140px;
        min-width:140px;
        height:140px;

        overflow:hidden;
    }


    .product-image picture{
        width:100%;
        height:100%;
    }


    .product-image img{

        width:100%;
        height:100%;

        object-fit:cover;

    }


    .product-content{

        padding:15px;

        overflow:hidden;

    }


    .product-content h2{

        font-size:.95rem;

        margin-bottom:6px;

        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;

        overflow:hidden;

    }


    .product-content p{
        font-size:.75rem;
        line-height:1.4;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        /* réserve toujours 2 lignes */
        min-height:2.8em;
    }


    .product-footer{

        padding-top:0;

    }


    .price-label{
        font-size:.65rem;
    }

    .price-value{
        font-size:1.2rem;
    }

    .product-btn{
        padding:8px 12px;
        font-size:.75rem;
    }
}

@media(max-width:500px){
    .pagination{
        gap:12px;
        margin-top:35px;
    }

    .pagination-btn{
        width:38px;
        height:38px;
        font-size:1.5rem;
    }

    .pagination span{
        font-size:.9rem;
    }
}

@media(max-width:360px){

    .catalogue-toolbar{
        flex-wrap:wrap;
    }

}