/* NAVBAR / MENU */

.navbar-toggler-title {
    font-size: small
}

.nav-item-header{
    padding: .5rem 1rem;
    color: #0053A1 !important;
    font-size: 1.15rem;
}

.nav-item-link {
    border: none;
    width: 100%;
    margin-bottom: 2px;
}

.nav-item {
    float: left;
    width: 100%;
}

.nav-link{
    margin-bottom: 2px;
}

.nav-item-content {
    position: absolute;
    display: none;
    left: 100%;
    top: 0;
    height: 95%;
    background-color: white;
    width: fit-content;
    box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -webkit-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    border-radius: 0 0 25px 0 !important;
}

.nav-link-no-cursor {
    cursor: default;
}
  
.nav-item:hover .nav-item-content {
    display: block;
    z-index: 10;
}

.nav-item.active .nav-item-content {
    display: block !important;
    z-index: 10 !important;
}

.nav-drill {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1031;
    top: 0;
    left: -370px;
    max-width: 300px;
    height: auto;
    -webkit-overflow-scrolling: touch;
    transition: 0.45s;
	transform: translateX(0);
    background-color: white !important;
    border-radius: 0 0 25px 0 !important;
    color: black;
    box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -webkit-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
}

::-webkit-scrollbar{
    width:6px;
}
::-webkit-scrollbar-thumb{
    background-color:#288BBD;
    border-radius: 3px;
}

.nav-content {
    overflow-y: scroll;
    max-height: 80vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
#NavContentMD.nav-content::-webkit-scrollbar {
    display: none;
}
  
  /* Hide scrollbar for IE, Edge and Firefox */
#NavContentMD.nav-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-is-toggled.nav-drill {
    transform: translateX(370px);
}

.nav-is-toggled.nav-drill::after {
	opacity: 1;
	visibility: visible;
}

.nav-items {
    flex: 0 0 100%;
    padding: 0
}

#navBarContent .nav-link {
    width: max-content;
    display: block;
    background-color: white;
    color: black;
    line-height: 1.5em;
}

.nav-expand-content {
    position: absolute;
    top: 100px;
    left: -100%;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    background-color: white;
    transition: 0.3s;
    visibility: hidden;
}

.nav-expand-content.nav-back-link {
    display: flex;
    align-items: center;
    background-color: white !important;
    color: #b0b0b0 !important;
}

.nav-expand.active > .nav-expand-content {
    transform: translateX(100%);
    visibility: visible;
}

.nav-header {
    z-index: inherit;
    flex: 0 0 100%;
    background-color: white !important;
    box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -webkit-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    -moz-box-shadow: 5px 5px 10px -4px rgba(0,0,0,0.75);
    height: 100px;
}

#navBarContent a.nav-link:hover {
    /*background-color: #036db2;*/
    background: linear-gradient(to left, #288BBD, #14465F);
    color: white !important;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Noir à 50% d'opacité */
    z-index: 1025; /* Juste en dessous du menu qui devrait être à 999 */
    display: none;
    transition: opacity 0.3s ease;
}

/* Classe qui sera ajoutée via JS */
.nav-overlay.active {
    display: block;
    opacity: 1;
}