/* Conteneur principal */
.grid-container {
    display: flex;
}

/* Style de la sidebar */
.sidebar-wrapper {
    min-height: 191vh;
    position: absolute;
    left: 0;
    top: 0;
    background: rgb(252, 249, 248);
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.thread-wrapper pre p img {
    max-width: 100%;
}

@media (max-width: 992px) {
    nav > ol {
        margin-top: 10% !important;
    }
}

@media (min-width: 769px) and (max-width: 1499px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 50%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }

    .sidebar-wrapper.open {
        transform: translateX(0);
    }

    .sidebar {
        width: 100%;
    }

    .product-grid {
        width: 100vw;
        margin-left: 0;
        padding-left: 0;
    }
}

/* Sur mobile, elle est cachée */
@media (max-width: 768px) {
    .sidebar-wrapper {
        transform: translateX(-100%);
    }

    .sidebar-wrapper.open {
        transform: translateX(0);
        width: 100%;
    }

    .menu-button {
        position: fixed;
        top: 10px;
        left: 10px;
        background: #333;
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 5px;
        z-index: 1000;
    }

    .product-grid {
        width: 100vw;
        margin-left: 0;
        padding-left: 0;
    }

    nav > ol {
        margin-left: 12% !important;
    }

    .sidebar {
        width: 100%;
    }

    /*.main-content.container {
        margin: 0 !important;
        padding: 0 !important;
    }*/

    .product-grid-container {
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (min-width: 1500px) and (max-width: 1649px){
    nav > ol {
        margin-left: 15% !important;
    }

    .grid-container {
        margin-left: 9% !important;
    }
}

@media (min-width: 1650px) and (max-width: 1799px){
    nav > ol {
        margin-left: 12% !important;
    }
    .grid-container {
        margin-left: 5% !important;
    }
}

@media (min-width: 1800px) {
    nav > ol {
        margin-left: 12% !important;
    }
}

