nav {
    height: 65px;              /* hauteur réduite */
    line-height: 65px;
    /*z-index: 1001;  Updated z-index to ensure navbar is above content */
}

#mobile-menu {
    z-index: 1001;
}
.nav-wrapper {
    height: 65px;
    padding-right: 15%;
}

/* liens desktop */
nav ul li a {
    font-size: 1rem;
    padding: 0 12px;
    height: 65px;
    line-height: 65px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* logo */
.brand-logo {
    max-height: 65px;
    overflow: hidden;
    margin-left: 15%;
}

.brand-logo img {
    height: 60px;
    margin: 20px 0;
    vertical-align: middle;
}

.brand-logo a {
    display: inline-block;
    line-height: 65px;
}

/* Nom d'utilisateur */
.brand-logo .btn-flat {
    height: 65px;
    line-height: 65px;
    font-size: 0.9rem;
}

/* Burger menu */
.sidenav-trigger {
    height: 65px;
    line-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0 15px;
}

.sidenav-trigger i {
    font-size: 2rem;
    height: auto;
    line-height: normal;
}

/* Menu mobile */
.sidenav {
    width: 250px;
}

.sidenav li {
    border-bottom: 1px solid #eee;
}

.sidenav a {
    padding: 15px 20px;
    line-height: normal;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    nav ul li a {
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .brand-logo img {
        height: 40px;
        margin: 12.5px 0;
    }

    .brand-logo .btn-flat {
        margin-left: 5px;
        font-size: 0.8rem;
        padding: 0 5px;
    }
}

/* Override de hauteur Materialize */
.navbar-fixed {
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: #80cbc4 !important;
    z-index: 1000; /* Updated z-index to ensure navbar is above content */
}

nav, .nav-wrapper {
    min-height: 65px !important;
}