/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.12,
* Autoprefixer: v10.4.4
* Browsers: last 4 version
*/

/* CSS toute la page */
*{
    margin: 0px;
    padding: 0px;  
    -webkit-box-sizing: border-box;  
            box-sizing: border-box;
    outline: none; 
    font-family: 'arial';
}
/* logo */
.logo{
    float: left;
    margin-left: 50px;
}
/* CSS de la bannière */
nav{
    width: 100%;
    height:60px;
    background-color: rgb(255, 255, 255);
    z-index: 12;
    text-align: center;
    position: fixed;
    box-shadow: 0 0 0.5em rgb(240, 240, 240);
}

/* CSS de la barre de navigation */

nav>ul{
    width: 54%;
    float: right;
}
nav li{
    list-style-type: none;
    width: 100px;
    text-align: center;
    height: 60px;
}
nav li a{
    width: 100%;
}
nav .menu-accueil:hover{
    background-color: rgb(250, 250, 250);
    cursor: pointer;
}
.sb:hover{
    background-color: rgb(250, 250, 250);
    cursor: pointer;
} 
.menu-contact:hover{
    background-color: rgb(250, 250, 250);
    cursor: pointer;
}

/* sous-menu 1 et 2 */
#sub1{
 display: none;
}
#sub2{
    display: none;
   }
.submenu1{
    background-color: rgb(243, 243, 243);
    width: 125px;
    text-align: center;
    display: none;
    position: absolute;
    top: 100%;
    z-index: 1000;
}
.submenu1 .l1{
    text-align: center;
    float:none;
    width: 100%;
     padding-top: 4px;
    padding-bottom: 10px;
}
.submenu1 .l1:hover{
    background-color: rgb(253, 253, 253);
}
.submenu1>.l1>a{
    color:rgb(0, 131, 218);
    font-size: 12px;
    font-weight: bold;
    font-family: 'Lucida Sans Regular';
    padding-top: 10px;
    width: 100%;
    height: 100%;

    
}

.submenu2{
    background-color: rgb(243, 243, 243);
    width: 125px;
    display: none;
    position: absolute;
    top: 100%;
    z-index: 1000;
}


.submenu2 .l2{
    text-align: center;
    float:none;
    width: 100%;
    padding-top: 4px;
    padding-bottom: 10px;
}
.submenu2 .l2:hover{
    background-color: rgb(253, 253, 253);
    color: rgb(236, 236, 236);
}

.submenu2>.l2>a{
    color:rgb(0, 131, 218);
    font-size: 12px;
    font-weight: bold;
    font-family: 'Lucida Sans Regular';
    padding-top: 10px;
    width: 100%;
    height: 100%;

    
}
nav>ul>li{
    float: left;
	position: relative;
    width: 125px;
}
nav ul::after{
    content: "";
    display: table;
    clear: both;
    }


.submenu{
	display: none;
}
nav input[type=checkbox]{
	display:none; 
}
nav label{
	display: none;
}
nav a{
    display: inline-block;
    text-decoration: none;
}
nav>ul>li>a{
    padding-top:20px;
    padding-bottom: 20px;
    color:rgb(0, 131, 218);
    font-size: 12px;
    font-weight: bold;
    font-family: 'Lucida Sans Regular';
    
}
/* menu connect */
.menu-connect{
    width: 145px;
    height: 60px;   
}
.menu-connect a{
    color:rgb(0, 131, 218);
    font-size: 12px;
    font-weight: bold;
}

.menu-connect:hover{
    cursor: pointer; 
    background-color: rgb(250, 250, 250);
}


/* menu profil et deconnexion */
.menu-profil{
    display: none;

}
.menu-deconnexion{
    display: none;
}




nav input[type="checkbox"]:checked ~ ul{
    display: block;
}
@media all and (max-width:1223px){
    nav>ul{
        width: 60%;
        float: right;
    }
 }


@media all and (max-width:1077px){ 
   
    .menu-mobile{
        display: block;
        background-color: white;
        text-align: center;
        padding-top: 11px;
        cursor: pointer;
        cursor: pointer;  font-weight: bold;
        font-family: 'Lucida Sans Regular';
        height: 65px;
    }
    .menu-mobile i{
        float: right;
        margin-right: 50px;
        font-size: 40px;
        color: #4e4e4e;
    }
    nav{
        width: 100%;
        height: auto;
        background-color: rgb(248, 248, 248);
        z-index: 12;
        text-align: center;
        
    }
    nav>ul{
        margin: 0 auto;
        width: 100%;
    }
    .submenu1{
        /* width: 100%; */
        text-align: center;
        background-color: rgb(243, 243, 243);
        width: 100%;
        text-align: center;
        margin-top:0px;
        position: absolute;
        z-index: 1000;      
    }
    .submenu2{
        /* width: 100%; */
        text-align: center;
        background-color: rgb(243, 243, 243);
        width: 100%;
        text-align: center;
        margin-top:0px;
        position: absolute;
        z-index: 1000;      
    }
    .submenu1 .l1{
        text-align: center;
        float:none;
        padding-top: 10px;
    }
    .submenu1 .l1 a{
        margin-top: 5px;   
    }
    .submenu2 .l2{
        text-align: center;
        float:none;
        padding-top: 10px;
    }
    .submenu2 .l2 a{
        margin-top: 5px;   
    }
    nav>ul>li>a{
        margin-top: 15px;   
    }
/* menu connect hors connexion */
.menu-connect{
    display: block;
}
.menu-connect{
    background-color: rgb(248, 248, 248);
    width: 100%;
    height: 65px;
    padding-top: 0px;
}
.menu-connect a{
    color: rgb(53, 53, 53);
}
.menu-connect:hover{
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
}

/* Menu conecté */
.menu-profil:hover{
    background-color: #2578e4;
    transition: 0.3s;
    cursor: pointer;
}
.menu-profil:hover a{
    color: white;
}

.menu-deconnexion:hover{
    background-color: #2578e4;
    transition: 0.3s;
    cursor: pointer;
}
.menu-deconnexion:hover a{
    color: white;
}
.menu-profil{
    display: block;
}
.menu-deconnexion{
    display: block;
}
    
nav ul{
    display:none
    }
      nav ul li, nav ul li a{
        width: 100%;
        text-align: center;
    }
    nav ul li a, nav ul li:hover a{
        padding: 10px 0px;
    }
    nav li:hover .submenu{
        display: block;
        position: static;
    }
}

nav ul li:hover>ul{
    display: block;
}