/* body {
    overflow-x: hidden;
} */


a{
    text-decoration: none;
}

header.fixed-top,
header.header-main  {
    margin-left: 250px; /* même largeur que ta sidebar */
    width: calc(100% - 250px); /* pour qu’il n’aille pas jusqu’au bord gauche */
    z-index: 1030; /* au-dessus du contenu */
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* .header-main {
    margin-left: 250px;
    width: calc(100% - 250px);
} */

.sidebar.collapsed {
    width: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    /* transition: width 0.3s ease; */
}

.sidebar {
    box-sizing: border-box;
    transition: width 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: #0d6efd; /* bleu bootstrap primaire */
    z-index: 1040;
    overflow: visible;
    padding: 1rem;
}

.sidebar .ferme {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1050;
    display: none; /* par défaut, affiché via JS */
}

.main, .ld-breadcrumb {
    transition: margin-left 0.3s ease;
}

header.header-main {
    transition: margin-left 0.3s ease, width 0.3s ease;
}


/* Ajoute un overlay pour l’effet offcanvas */
body.offcanvas-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035; /* moins que la sidebar mais plus que le reste */
    cursor: pointer;
}


.content {
    transition: margin-left 0.3s ease;
}

/* label{
    font-weight: bold;
} */

select {
    font-family: monospace;
}

@media (max-width: 768px) {
    header.fixed-top,
    header.header-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sidebar {
      border-radius: 0 50px 0 0;
    }
}

