
/*------------------------------------------------------------------*/
/*                        SIDEBAR                                   */
/*------------------------------------------------------------------*/
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background-color: #111;
    padding: 25px;
    box-shadow: 2px 0 4px 2px rgba(0, 0, 0, 0.1);
    overflow-y: scroll;
    scrollbar-color: #fff #111;
}

.sidebar .logo {
    user-select: none;
}

/*------------------------------------------------------------------*/
/*                         MAIN MENU                                */
/*------------------------------------------------------------------*/

.menu {
    display: none;
    width: 100%;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.menu li {
    width: 100%;
}

.menu li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
    border-radius: 2px;
}

.menu li a:hover {
    background-color: #888;
}

.toggle-icon {
    position: absolute;
    font-weight: normal;
    top: 0;
    right: 5px;
    text-align: right;
}

.level-1 {
    display: block !important;
}

.level-1 li {
    border-bottom: 1px solid #DDD;
    min-height: 40px;
    line-height: 40px;
}

.level-1 li a {
    font-size: 16pt;
    line-height: 41px;
    font-variant: small-caps;
    font-weight: bold;
    padding: 0 0 0 5px;
}

.level-1 .toggle-icon {
    height: 41px;
    width: 40px;
    line-height: 40px;
    font-size: 11pt;
}

.level-2 {
    display: none;
    padding-left: 5px;
}

.level-2 li {
    border: none;
    min-height: 30px;
    line-height: 30px;
}

.level-2 li a {
    font-size: 13pt;
    line-height: 31px;
    font-variant: small-caps;
    font-weight: bold;
}

.level-2 .toggle-icon {
    height: 31px;
    width: 30px;
    line-height: 30px;
    font-size: 9pt;
}

.level-3, .level-4, .level-5, .level-6 {
    display: none;
    padding-left: 8px;
}

.level-3 li {
    border: none;
    min-height: 30px;
    line-height: 30px;
}

.level-3 li a {
    font-size: 10pt;
    line-height: 27px;
    font-variant: normal;
    font-weight: normal;
    padding: 0 0 0 3px;
}

.level-3 .toggle-icon {
    height: 28px;
    width: 27px;
    line-height: 27px;
    font-size: 7pt;
}

.menu button {
    background: none;
    border: none;
    color: #fff;
    text-align: right;
    cursor: pointer;
}

.inline {
    margin-left: 0;
    text-align: justify;
    padding-left: 3px;
    width: 100%;
    margin: 0;
}

.inline li {
    display: inline-block;
    min-width: 35px;
    width: auto;   
    min-height: 20px;
    line-height: 20px;
}

.inline li a {
    display: inline;
    font-size: 9pt !important;
    padding: 3px;
    line-height: 20px;
}


.open {
    display: block;
}

/*------------------------------------------------------------------*/
/*                     BARRE DE RECHERCHE                            */
/*------------------------------------------------------------------*/

/* Présentée comme une ligne de menu de niveau 1 : même hauteur,
   même bordure basse, libellé small-caps, loupe à droite comme les toggles. */
.menu-search {
    display: flex;
    align-items: center;
    min-height: 41px;
    border-bottom: 1px solid #DDD;
    margin: 0 0 30px 0;
}

.menu-search input[type="search"] {
    flex: 1;
    min-width: 0;
    background-color: #1e1e1e;
    border: none;
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    color: #fff;
    margin: 5px 0;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 13pt;
    font-variant: small-caps;
    font-weight: bold;
}

.menu-search input[type="search"]::placeholder {
    color: #999;
    opacity: 1;
    font-weight: normal;
}

.menu-search input[type="search"]:focus {
    outline: none;
    background-color: #262626;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 0 1px #666;
}

.menu-search button {
    background: none;
    border: none;
    border-radius: 2px;
    color: #fff;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.menu-search button:hover {
    background-color: #888;
}