/* partie positionnement et déco */
#mod_sombre-menu
{
  height: auto;
width: 100%;
padding: 0;
margin: 0;
text-align: center;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
#label-mod-sombre-menu
{
  height: 20px;
display: block;
text-align: center;
}
.menu-mobile
{
	display: none;
}

  .show-menu-btn,.hide-menu-btn{
    display: none;
  }

	.show-menu-btn2,.hide-menu-btn2{
		display: none;
	}

  #chk:before, #chk
  {
  	display: none;
  }

  #menu > li .chevron-down
  {
    padding: 0;
    padding-left: 2px;
  }

	.chevron-down
	{
		/*right: 0;*/
		text-align: center;
		padding: 1px;
		/*width: 5px;
		height: 3px;*/
		/*vertical-align: middle;*/
		position: absolute;
	}

#scales input[type=checkbox]
{
	display: block;
}

input[type=checkbox]:checked ~ #menu
{
	display: block;
	max-height: 500px;
}

.middle{
  position: fixed;
  vertical-align: top;
  width: 16%;
  height: 100%;
  display: inline-block;
  background: #333;
  min-height: 100%;
}

.r_accueil
{
    width: 439px;
}

.menu{
    width: 100%;
    overflow: hidden;
    border-top: 1px solid #ffffff;
}
.menu2
{
    position: relative;
    top: 40.5vh;
    height: auto;
}

.item1_profil{
  border-bottom: 1px solid #fff;
  overflow: hidden;
	cursor: pointer;
}
.item2_profil{
  border-bottom: 1px solid #fff;
  overflow: hidden;
	cursor: pointer;
}
.item3_profil{
  border-bottom: 1px solid #fff;
  overflow: hidden;
	cursor: pointer;
}
.item4_profil{
  border-bottom: 1px solid #fff;
  overflow: hidden;
	cursor: pointer;
}
.item{
  border-bottom: 1px solid #fff;
  overflow: hidden;
}
.item1
{
    border-top: 1px solid #ffffff;
    width: 100%;
    position: relative;
}
.item2
{
    border-top: 1px solid #ffffff;
    width: 100%;
    position: relative;
}

.item3
{
    border-top: 1px solid #ffffff;
    width: 100%;
    position: relative;
}

.item3 .btn
{
    color: #F44336;
}

.item1 a:before, .item2 a:before, .item3 a:before
{
    display: none;
}
.btn{
  display: block;
  padding: 10% 10%;
  background: transparent;
  color: white;
  position: relative;
}
.btn:before{
    content: "";
    position: absolute;
    right: 8px;
    transform: rotate(-180deg);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    top: 41.83%;
    transition: transform .3s;
}
.btn i{
  margin-right: 10px;
}
  .btn_suppr {
    display: block;
    padding: 10px;
    background: #f44336;
    color: white;
    position: absolute;
    top: 240px;
    right: 0;
    border-radius: 10px;
}
.btn_suppr .fa-times
{
  margin-right: 5px;
}
.smenu1{
  background: #333;
  overflow: hidden;
    opacity: 0;
  transition: max-height .5s, opacity .5s;
     -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  max-height: 0;
}
.smenu1 a{
  display: block;
  padding: 16px 26px;
  color: white;
  font-size: 14px;
  margin: 4px 0;
  position: relative;
  transition: left .3s;
  left: 0;
}
.smenu1 a:before{
  content: "";
  position: absolute;
  width: 6px;
  max-height: 0;
  background: #3498db;
  left: 0;
  top: 0;
  transition: width .25s cubic-bezier(.25,.1,.25,1);
      -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  opacity: 0;
}

.smenu1 a:hover{
   left: 10px;
    background: #414141;
    border-radius: 50px 0 0 50px;
}

.smenu1 a:hover:before{
  opacity: 1;
  max-height: 48px;
}

/* 2eme element li smenu */
.smenu2{
  background: #333;
  overflow: hidden;
    opacity: 0;
  transition: max-height .5s, opacity .5s;
     -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  max-height: 0;
}
.smenu2 a{
  display: block;
  padding: 16px 26px;
  color: white;
  font-size: 14px;
  margin: 4px 0;
  position: relative;
  transition: left .3s;
  left: 0;
}
.smenu2 a:before{
  content: "";
  position: absolute;
  width: 6px;
  max-height: 0;
  background: #3498db;
  left: 0;
  top: 0;
  transition: width .25s cubic-bezier(.25,.1,.25,1);
      -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  opacity: 0;
}

.smenu2 a:hover{
   left: 10px;
    background: #414141;
    border-radius: 50px 0 0 50px;
}

.smenu2 a:hover:before{
  opacity: 1;
  max-height: 48px;
}
/*fin*/
/*3eme element li smenu*/
.smenu3{
  background: #333;
  overflow: hidden;
    opacity: 0;
  transition: max-height .5s, opacity .5s;
     -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  max-height: 0;
}
.smenu3 a{
  display: block;
  padding: 16px 26px;
  color: white;
  font-size: 14px;
  margin: 4px 0;
  position: relative;
  transition: left .3s;
  left: 0;
}
.smenu3 a:before{
  content: "";
  position: absolute;
  width: 6px;
  max-height: 0;
  background: #3498db;
  left: 0;
  top: 0;
  transition: width .25s cubic-bezier(.25,.1,.25,1);
      -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  opacity: 0;
}

.smenu3 a:hover{
   left: 10px;
    background: #414141;
    border-radius: 50px 0 0 50px;
}

.smenu3 a:hover:before{
  opacity: 1;
  max-height: 48px;
}
/**/
/*4eme element li smenu*/
.smenu4{
  background: #333;
  overflow: hidden;
    opacity: 0;
  transition: max-height .5s, opacity .5s;
     -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  max-height: 0;
}
.smenu4 a{
  display: block;
  padding: 16px 26px;
  color: white;
  font-size: 14px;
  margin: 4px 0;
  position: relative;
  transition: left .3s;
  left: 0;
}
.smenu4 a:before{
  content: "";
  position: absolute;
  width: 6px;
  max-height: 0;
  background: #3498db;
  left: 0;
  top: 0;
  transition: width .25s cubic-bezier(.25,.1,.25,1);
      -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
  opacity: 0;
}

.smenu4 a:hover{
   left: 10px;
    background: #414141;
    border-radius: 50px 0 0 50px;
}

.smenu4 a:hover:before{
  opacity: 1;
  max-height: 48px;
}
/**/
.item:target .smenu{
    opacity: 1;
  max-height: 20em;
}
.item:target .btn:before
{
    transform: rotate(0deg);
}



#menu
{
	width: 70%;
	padding: 0;
	height: 100px;
	position: fixed;
  top: 120px;
  left: 50%;
  border-radius: 20px;
	display: inline-block;
	/*border-bottom: 2px solid #00bcd4;*/
	box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.3);;
  background-color: var(--menu-primary);
	transition-property: top, bottom, transform;
    transition-duration: .25s;
	-webkit-transition-property: top, bottom, transform;
    -webkit-transition-duration: .25s;
    	-moz-transition-property: top, bottom, transform;
    -moz-transition-duration: .25s;
    	-ms-transition-property: top, bottom, transform;
    -ms-transition-duration: .25s;
    	-o-transition-property: top, bottom, transform;
    -o-transition-duration: .25s;
        -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    /*overflow: hidden;*/
    z-index: 999;
    backdrop-filter: blur(5px) brightness(100%);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fixed
{
	top: 0;
	transition: top 2s;
	    -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
}

#menu a {
	display:inline-block;
	color: var(--menu-text);
	text-decoration:none;
	font-weight: 3vw;
	max-width: 100%;
	max-height: 100%;
	line-height: 98px;
	/*vertical-align: top;*/
}

#menu a span{
  display: none;
}

#menu > li,
#menu > li li {
	position: relative;
	display:inline-block;
	width: 10%;
	height: 97%;
	font-size: 0.93vw;
	text-align: center;
	/*overflow: hidden;*/
	line-height: 100px;
	background-color: transparent;
}
#menu > li li { 	background-color: var(--secondary);
	color: #00bcd4;
	border-bottom: 3px solid;
	border-bottom-color: transparent;
}
#menu > li li a { color: var(--text); width: 100%;}
#menu > li li:hover {  color: var(--primary-color); transition: border-bottom-color 0.8s; -webkit-transform: translate3d(0 0 0); -moz-transform: translate3d(0 0 0); -ms-transform: translate3d(0 0 0); -o-transform: translate3d(0 0 0); border-bottom-color: var(--primary-color);  }
#menu > li li:hover a { color: var(--primary-color);  }
#menu > li:first-child {
	height: 100%;
	background: var(--primary-color);
	border-radius: 20px;
	transform: scale(1.1);
  z-index: 2;
}

#menu > li:nth-child(2),
#menu > li:nth-child(3),
#menu > li:nth-child(5){
  width: calc(10% + 15px);
padding-right: calc(15px / 2);
}

#menu > li:nth-child(6){
  width: calc(10% + 14px);
  padding-right: 7px;
}

#menu > li:first-child a {
	height: 100%;
	width: 100%;
	color: #fff;
}
#menu > li:last-child{
	border-right: 0;
	height: 100px;
	width: 5%;
	line-height: 0;
	display: inline-block;
	vertical-align: middle;
}

#showsearch
{
	display: block;
	background: transparent;
	width: 100%;
	height: 100%;
	z-index: 3;
	position: absolute;
}

#menu > li:nth-child(7) {

	width: 10%;
}

#menu > li:nth-child(3) p:after {

	/*content: "\u2192";*/
}

#menu > li p
{
	margin: 0;
}

#menu > li
{
	/*border-bottom: 3px solid;
	border-bottom-color: transparent;*/
	height: 100%;
	display: inline-block;
	/*line-height: 0;*/
	vertical-align: middle;
	transition: color 0.5s;
	    -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
}

#menu > li:after
{
	content: "";
	position: absolute;
	line-height: 0;
	left: 0;
	height: 5px;
	background: var(--primary-color);
	transform: scaleX(0);
  transform-origin: bottom right;
	width: 100%;
	transition: transform .25s ease-out;
	    -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
	bottom: 0;
  border-radius: 20px;
}

#menu > li.select::after
{
  transform: scaleX(1);
  transform-origin: bottom left;
}

#menu > li a {
	height: 100%;
}

/*#menu > li:hover {
		transform: scale(1.2);
		color: #12CBC4;
		transition: color 0.5s;
}*/

#menu > li:hover .lien_menu {
		color: var(--primary-color);
		transition: color 0.5s;
		    -webkit-transform: translate3d(0 0 0);
    -moz-transform: translate3d(0 0 0);
    -ms-transform: translate3d(0 0 0);
    -o-transform: translate3d(0 0 0);
}

#fa-id 
{
font-size: 1em;
padding-right: 10px;
}
/*#menu > li:hover .fa-home {
		transform: scale(1.2);
		color: #12CBC4;
		transition: color 0.5s;
}*/

#menu > li:hover:after
{
	/*border-bottom: 3px solid;
	border-bottom-color: #00bcd4;
	transition: border-bottom-color 0.8s;*/
  transform: scaleX(1);
  transform-origin: bottom left;
}

#menu > li:first-child:after
{
	width: 0;
}
#menu > #rechercheid:after
{
  width: 0;
}
#menu > li:hover .fa-chevron-down
{
	transform: rotatex(180deg);
}

#menu > li:hover li a{
	transform: scale(1);
}

#menu > li ul li
{
	width: 150px;
}
/* (presque) fin de la partie positionnement/déco */
/* dans cette déclaration, on fixe le max-height */
#menu ul {
	position: absolute;
	left: 0;
	width: 150px;
	margin: 0; padding: 0;
	top: 98px;
	background-color: transparent;
	overflow: visible;
	border-radius: 0 0 8px 8px;
	z-index: 999;
	transition: transform .25s, opacity .15s;
	-webkit-transition: transform .25s, opacity .15s;
	-moz-transition: transform .25s, opacity .15s;
	-ms-transition: transform .25s, opacity .15s;
	-o-transition: transform .25s, opacity .15s;
	/* Enable hardware acceleration to fix laggy transitions */
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
    padding-top: 10px;
    opacity: 0;
}

#menu ul div
{
  border-radius: 15px;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background-color: var(--secondary); 
}

/* ici on change la valeur de max-height au :hover */
#menu > li:hover ul {
	/* à adapter, le minimum est le meilleur mais voyez large 😉 */
	transform: scale(1);
  opacity: 1;
	transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}
