#header{
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 70px;
  background-color: var(--boxBgColor);
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto;
}

#header #logo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 260px;
  height: 70px;
  text-align: center;
  border-right: 1px solid var(--mainBorder);
  background-color: var(--boxBgColor);
  vertical-align: top;
  align-items: center;
  justify-items: center;
}

.tgl {
  display: none;
}
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn {
  box-sizing: border-box;
}
.tgl::-moz-selection, .tgl:after::-moz-selection, .tgl:before::-moz-selection, .tgl *::-moz-selection, .tgl *:after::-moz-selection, .tgl *:before::-moz-selection, .tgl + .tgl-btn::-moz-selection {
  background: none;
}
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection {
  background: none;
}
.tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 4em;
  height: 2em;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}
.tgl + .tgl-btn:after {
  left: 0;
}
.tgl + .tgl-btn:before {
  display: none;
}
.tgl:checked + .tgl-btn:after {
  left: 50%;
}
.tgl-ios + .tgl-btn {
  background: #557fba;
  border-radius: 2em;
  padding: 2px;
  transition: all .4s ease;
  border: 1px solid #e8eae9;
  top: 0px!important;
}
.tgl-ios + .tgl-btn:after {
  border-radius: 2em;
  background: #fbfbfb;
  transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
}
.tgl-ios + .tgl-btn:hover:after {
  will-change: padding;
}
.tgl-ios + .tgl-btn:active {
  box-shadow: inset 0 0 0 2em #e8eae9;
}
.tgl-ios + .tgl-btn:active:after {
  padding-right: .8em;
}
.tgl-ios:checked + .tgl-btn {
  background: #74c2ea;
}
.tgl-ios:checked + .tgl-btn:active {
  box-shadow: none;
}
.tgl-ios:checked + .tgl-btn:active:after {
  margin-left: -.8em;
}
@media screen and (max-width: 1000px) {
  #header #logo{
    width: auto;
  }
  #header #logo img{
    height: 50px !important;
  }
}
#header #logo img{
  max-height: 60px;
  margin: 10px;
  max-width: 250px;
}

/*La barre de navigation en haut*/
#header .navbar{
  display: inline-block;
  /* width: calc(100% - 260px); */
  height: 70px;
  text-align: right;
  vertical-align: top;
  /* position: absolute; */
  right: 0;
}
@media screen and (max-width: 1000px) {
  #header .navbar{
    width: auto;
  }
}
.nbrNewElement{
  background-color: var(--btnBgColor);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  line-height: 25px;
  position: absolute;
  right: 10px;
  top: 10px;
  display: none;
}
/*Icone message*/
#header .navbar .userMessage{
  height: 70px;
  width: 70px;
  line-height: 70px;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  transition: 0.2s ease all;
  cursor: pointer;
  position: relative;
}
#header .navbar .userMessage:hover{
  background-color: var(--boxBgColorHighligth);
}
#header .navbar .userMessage i{
  margin-top: 25px;
}

/*Icone notification*/
#header .navbar .userNotification{
  height: 70px;
  width: 70px;
  line-height: 70px;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  transition: 0.2s ease all;
  cursor: pointer;
  position: relative;
}
#header .navbar .userNotification:hover{
  background-color: var(--boxBgColorHighligth);
}

#userNameAvatarBtn{
  display: inline-block;
  cursor: pointer;
  background-color: var(--boxBgColor);
  transition: 0.2s ease all;
  padding: 0 20px;
  width: 300px;
}
@media screen and (max-width: 1000px) {
  #userNameAvatarBtn{
    width: auto;
    padding: 0;
  }
}
#userNameAvatarBtn:hover{
  background-color: var(--boxBgColorHighligth);
}
#header .navbar .userNotification i{
  margin-top: 25px;
}
/*Le nom de l'utilisateur*/
#header .navbar .user{
  line-height: 70px;
  display: inline-block;
  vertical-align: top;
}
@media screen and (max-width: 1000px) {
  #header .navbar .user{
    display: none;
  }
}
/*L'avatar de l'utilisateur*/
#header .navbar .avatar{
  display: inline-block;
  width: 50px;
  height: 50px;
  margin: 10px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: top;
}
#header .navbar .avatar img{
  width: 100%;
}
/*Après l'avatar de l'utilisateur*/
#header .navbar .afterAvatar{
  display: inline-block;
  height: 70px;
  line-height: 70px;
  transition: transform 220ms ease-in-out;
}
@media screen and (max-width: 1000px) {
  #header .navbar .avatar{
    margin: 10px 0;
  }
}
#header .navbar .afterAvatar i{
  margin-top: 25px;
}
/*Drop Down menu*/
#dropDownUserMenu{
  width: 250px;
  height: 250px;
  padding: 25px;
  position: absolute;
  background-color: var(--boxBgColorSec);
  right: 20px;
  z-index: 5;
  top: -300px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
  opacity: 0;
  text-align: left;
  border-radius: 10px;
}
/*Element blanc dans le menu utilisateur*/
.dropDownMenuItem{
  cursor: pointer;
  text-align: left;
}
.dropDownMenuItem i{
  margin: 0 20px;
  vertical-align: middle;
}
/*Element rouge dans le menu utilisateur*/
.dropDownMenuRed{
  color: var(--redError);
  cursor: pointer;
  text-align: left;
}
.dropDownMenuRed i{
  margin: 0 20px;
  vertical-align: middle;
}
#dropDownUserMenu p{
  width: 100%;
  margin: 0;
  height: 55px;
  line-height: 55px;
  border-bottom: 1px solid var(--boxBgColorHighligth);
  transition: 0.2s ease all;
}
/*Surligne les elements du menu user*/
#dropDownUserMenu p:hover{
  background-color: var(--boxBgColorHighligth);
}

/*
  DropDown pour les nouveau messages
*/
#dropDownNewMessage{
  width: 350px;
  height: 270px;
  position: absolute;
  background-color: var(--boxBgColorSec);
  right: 420px;
  z-index: 5;
  top: -300px;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
  opacity: 0;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
}
@media screen and (max-width: 1000px) {
  #dropDownNewMessage{
    left: 0;
    right: 0;
    width: 90%;
    margin: auto;
  }
}
/*Arrondi les bord du premier pour le survol*/
#dropDownNewMessage .item:first-child{
  border-radius: 10px 10px 0 0;
}
#dropDownNewMessage .item{
  border-bottom: 1px solid var(--mainBorder);
  height: 80px;
  width: 100%;
  cursor: pointer;
  transition: 0.2s ease all;
}
#dropDownNewMessage .item:hover{
  background-color: var(--boxBgColorHighligth);
}
#dropDownNewMessage .item .avatar{
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 10px;
  top: 50%;
  transform: translate(0,-50%);
}
#dropDownNewMessage .item .avatar img{
  width: 40px;
}
#dropDownNewMessage .item .texte{
  position: relative;
  display: inline-block;
  height: 40px;
  top: 50%;
  transform: translate(0,-50%);
}
/*Ne sert que pour ajouter un nouveau message*/
#dropDownNewMessage .item .icone{
  position: relative;
  text-align: center;
  top: 50%;
  transform: translate(0,-50%);
}
#dropDownNewMessage .item .texte p{
  margin: 5px;
  text-align: left;
}
#dropDownNewMessage .item .texte .senderName{
  font-weight: 700;
}
#dropDownNewMessage .item .texte .titre{
  font-weight: 300;
  font-size: 14px;
}
#dropDownNewMessage .item .dateDebut{
  position: absolute;
  right: 0;
  font-size: 14px;
  color: var(--texteBleu);
  padding: 10px;
}

/*Dernier element avec la fleche pour grandir la drop down message*/
#dropDownNewMessage #messageDropDownExtend{
  text-align: center;
  border-radius: 0 0 10px 10px;
  height: 26px;
  cursor: pointer;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: var(--boxBgColorSec);
  transition: 0.2s ease all;
}
#dropDownNewMessage #messageDropDownExtend:hover{
  background-color: var(--boxBgColorSecHighlith);
}


#verticalMenu{
  position: fixed;
  top: 70px;
  padding-top: 0px;
  left: 0;
  width: 260px;
  height: calc(100vh - 70px);
  background-color: var(--boxBgColor);
  z-index: 20;
  overflow-y: auto;
}
@media screen and (max-width: 1000px) {
  #header {
    grid-template-columns: auto auto auto;
}

  #verticalMenu{
    width: 275px;
    left: -420px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    border-right: 1px solid var(--mainBorder);
    box-shadow: 15px 0px 20px 0px #000000;
  }

  #verticalMenu::-webkit-scrollbar
  {
    width: 0 !important
  }
}
.menu{
  width: 100%;
  border-top: 1px solid var(--mainBorder);
}
@media screen and (max-width: 640px) {
  .menu {
    margin-bottom: 50px;
  }
}


#verticalMenu .item{
  border-bottom: 1px solid var(--mainBorder);
  transition: 0.2s ease all;
  cursor: default;
}
#verticalMenu .item:hover{
  background-color: var(--mainBgColor) !important;
}
#verticalMenu .item .icone{
  display: inline-block;
  width: 50px;
  text-align: center;
  vertical-align: middle;
}
#verticalMenu .item .icone i{
  line-height: 50px;
  vertical-align: middle;
}
#verticalMenu .item .icone .imgExt{
  max-height: 50px;
  max-width: 24px;
}
#verticalMenu .item .texte{
  display: inline-block;
  line-height: 50px;
  width: 145px;
}
#verticalMenu .item .arrow{
  display: inline-block;
  width: 50px;
  transition: transform 220ms ease-in-out;
  text-align: center;
}
#verticalMenu .item .arrow i{
  line-height: 50px;
  vertical-align: middle;
}
#verticalMenu .item .subMenu{
  height: 0;
  overflow: hidden;
  background-color: var(--mainBgColor);
  margin-top: -1px;
}
#verticalMenu .item .subMenu .item{
  border-bottom: 1px solid var(--boxBgColor);
  margin-left: 50px;
  line-height: 50px;
  border: 0;
}
#verticalMenu .item .subMenu .item:hover{
  color: var(--highlightText);
}
#verticalMenu .item .subMenu .item i{
  vertical-align: middle;
  width: 50px;
}
.itemSelect{
  color: var(--highlightText);
}
#contenu{
  position: relative;
  width: calc(100% - 255px);
  height: calc(100vh - 70px);
}

@media screen and (max-width: 500px) {
#header{
  grid-template-columns: auto auto;
}

  #header #logo{
    display: none
  }
}
