:root{
    --headerHeight: 5rem;
    --menu-width : min(80vw, 320px);
    --menu-shadow :var(--shadow-subMenu); /*inset -8px -8px 8px -5px #888;*/
}

header{
    height: var(--headerHeight);
    margin-top:-2px;
}

/*   LOGO   */
header .logo{
    padding-left:20px;
    padding-top:5px;
    max-width: 220px;

}
/*
header .logo img{
    height: 34px;
    min-width: 200px;
    margin-top: 1.2rem;
    margin-left: 2rem;
    margin-bottom: -8px;
}
*/
header .logo span{
    padding: 2px 1px;
    /*margin-left: 2rem;
    margin-top: -2px;*/
    /*width: 220px;*/
    display: inline-block;
    letter-spacing: 0.5px;
    font-size: 0.5rem;
    text-align: center;

    white-space: nowrap;


}




/* MENU */
/* Le nav devient un panneau fixe à gauche */
header > #ctn_nav {
    position: fixed;
    top: var(--headerHeight); left: 0;
    bottom: 10px;
    width: var(--menu-width);
    padding: 1rem;
    border-right: 1px solid rgba(0,0,0,.08);
    transform: translateX(-100%);
    transition: transform .25s ease;
    border-radius: 0 0 10px 0px;
    z-index: 1001;
    overflow-x: hidden;
    max-height: 82vh;    

    background:var(--bg-color);
    box-shadow: var(--menu-shadow);

}



header >.ctn_nav > nav.menu{
    flex:auto;
    z-index: 0;
    background: var(--bg-color);
    overflow-y: auto;
    margin-bottom: 50px;
}

header >.ctn_nav > .menu > ul >li{
    padding: 0 5px;
}

#ctn_nav  > .menu a {
    display: block; padding: 0.8rem .25rem;
    text-decoration: none; color: var(--text-color, #111);
}


/* SOUS MENU */

header >.ctn_nav > .menu > ul  ul{
    display: block;
    visibility: visible;
    opacity: 1;
    position:inherit;
    max-height: inherit!important;
    box-shadow: none;
    border-left: 1px solid #999;
    border-radius: 0;
    padding:8px 5px!important;
    padding-bottom:0;
    top:0 !important;
    margin-bottom: 15px;
}

header >.ctn_nav > .menu > ul  ul>li{
    padding: 3px;
}
header >.ctn_nav > .menu > ul  ul>li a {
    padding: 0.5rem .2rem !important;
}

header >.ctn_nav > .menu > ul >li:hover ul::after, 
header >.ctn_nav > .menu > ul >li:active ul::after, 
header >.ctn_nav > .menu > ul >li:focus-within ul::after, 
header >.ctn_nav > .menu > ul >li:focus ul::after, 
header >.ctn_nav > .menu > ul ul:hover::after{display:none;}





/**   TOP BAR */
header >.ctn_nav > .top-bar{
    margin-top : 20px;
    margin-bottom: 10px;
}








/* ===== Mobile : le même nav devient off-canvas ===== */
.hamburger { display: block;}


body.menu-open #ctn_nav { transform: translateX(0); }

header >.ctn_nav > .menu > .lc_slider_select li{
    border-bottom: 1px solid #ccc; /* en plus : bordure haute */
}

header >.ctn_nav > .menu > .lc_slider_select li:first-child {
    border-top: 1px solid #ccc; /* en plus : bordure haute */
}



/* La liste */
header >.ctn_nav > .menu > .lc_slider_select{
    display: flex;
    flex-direction: column;
    margin-left: 0;
    padding-left: 0;
}

/* Le curseur de position de la page sélectionné */
header >.ctn_nav > .menu > .lc_slider_select.undernav > div::before{
        right: -35px;
        left: auto;
        top: 5px;
        width: 8px;
        bottom: 5px;
        border-radius: 10px;
        height: auto;
}






/***********************************************************************
                            LOGIN
************************************************************************/

    #ctn_login,
    #ctn_login .login-trigger {
        position: inherit;
        display: contents;
        z-index: 10;
    }

    #ctn_login .ptr {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        text-align: center;
        font-size: 1.2rem;
        letter-spacing: 2px;
        
        padding: 20px 0 ;
        border: solid #CCC;
        border-width: 1px 0px 1px 0px;

        color : var(--title-color);
        background: var(--button-color);
        box-shadow: var(--menu-shadow);
    }

    #ctn_login .login-trigger #login_wrapper{
        top: 0;
        bottom: 0;
        height: auto;
        left: 0;
        right: 0;
        width: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: var(--menu-shadow)
    }









/*****************************************************************
                        CHOIX DU THEME
******************************************************************/


    header #ctn_theme{
        position: absolute;
        top: 0;
        right: 0px;
        margin:-1px;
    }
    header .lc_slider_select.row::before{
        border-radius: 0 0 0 10px;
    }



/* Accessibilité / UX */
@media (prefers-reduced-motion: reduce) {
  #ctn_nav { transition: none !important; }
  .menu-backdrop { transition: none !important; }
}
