
/* CSS Document */
.menu {
  width: 100vw;
}

.bouton_connexion {
  position: absolute;
  right: 20px;
  display: block;
  padding: 0;
  color: #FFF;
  font-size: 1.35rem;
}

.toggle,
[id^=drop] {
	display: none;
	text-transform: uppercase;
}

/* Giving a background-color to the nav container. */
nav {
	margin:0;
	padding: 0;
	background-color: rgb(190,10,37);
	text-align:left;
}


/* Since we'll have the "ul li" "float:left"
 * we need to add a clear after the container. */

nav:after {
	content:"";
	display:table;
	clear:both;
}

/* Removing padding, margin and "list-style" from the "ul",
 * and adding "position:relative" */
nav ul {
	float: left;
	padding:0;
	margin:0;
	list-style: none;
	position: relative;
}

/* Positioning the navigation items inline */
nav ul li {
	margin: 0px;
	display:inline-block;
	float: left;
	background-color: rgba(190,10,37,1);
}

/* Styling the links */
nav a {
	display:block;
	padding:8px 8px;
	color:#FFF;
	font-size:1.35rem;
	text-decoration:none;

}


nav ul li ul li:hover { background: rgb(152,8,30) }

/* Background color change on Hover */
nav a:hover {
	background-color: rgb(152,8,30);
}


/* Hide Dropdowns by Default
 * and giving it a position of absolute */
nav ul ul {
	display: none;
	position: absolute;
	/* has to be the same number as the "line-height" of "nav a" */
	top: auto;
}

/* Display Dropdowns on Hover */
nav ul li:hover > ul {
	display:inherit;
}

/* Fisrt Tier Dropdown */
nav ul ul li {
	width:170px;
	float:none;
	display:list-item;
	position: relative;
}

/* Second, Third and more Tiers
 * We move the 2nd and 3rd etc tier dropdowns to the left
 * by the amount of the width of the first tier.
*/
nav ul ul ul li {
	position: relative;
	top:-60px;
	/* has to be the same number as the "width" of "nav ul ul li" */
	left:170px;
}


/* Change ' +' in order to change the Dropdown symbol */
li > a:after { content:  ' '; }
li > a:only-child:after { content: ''; }


/* Media Queries
--------------------------------------------- */

@media all and (max-width : 1224px) {

	main {
		padding-top:5px;
	}

	#logo {
		display: block;
		padding: 0;
		width: 100%;
		text-align: center;
		float: none;
	}

	nav {
		margin: 0;
	}

	/* cache le menu de navigation par défaut */
	.toggle + a,
	.menu {
		display: none;
		text-transform: uppercase;
		letter-spacing: 1px;
	}

	/* style des items du menu */
	.toggle {
		display: block;
		background-color: rgb(190,10,37);
		padding:14px 20px;
		color:#FFF;
		font-size:17px;
		text-decoration:none;
		border:none;
	}

	.toggle:hover {
		background-color: rgb(152,8,30);
	}

	/* affiche les sous menus au click sur l'item parent */
	[id^=drop]:checked + ul {
		display: block;
	}

	/* lageur des items a 100% du viewport */
	nav ul li {
		display: block;
		width: 100%;
	}

	nav ul ul .toggle,
	nav ul ul a {
		padding: 0 40px;
	}

	nav ul ul ul a {
		padding: 0 80px;
	}

	nav a:hover,
 	nav ul ul ul a {
		background-color: rgb(152,8,30);
	}

	nav ul li ul li .toggle,
	nav ul ul a,
  nav ul ul ul a{
		padding:14px 20px;
		color:#FFF;
		font-size:17px;
	}


	nav ul li ul li .toggle,
	nav ul ul a {
		background-color: rgb(152,8,30);
	}

	/* Hide Dropdowns by Default */
	nav ul ul {
		float: none;
		position:static;
		color: #ffffff;
		/* has to be the same number as the "line-height" of "nav a" */
	}

	/* Hide menus on hover */
	nav ul ul li:hover > ul,
	nav ul li:hover > ul {
		display: none;
	}

	/* Fisrt Tier Dropdown */
	nav ul ul li {
		display: block;
		width: 100%;
	}

	nav ul ul ul li {
		position: static;
		/* has to be the same number as the "width" of "nav ul ul li" */

	}

	.bouton_connexion {
		position: initial;
		display: block;
		right: 0;
		padding: 0;
		color: #FFF;
		font-size: 1.35rem;
	}

  .connexion {
    position: initial;
    display: block;
    right: 0;
    padding: 0;
    color: #FFF;
    font-size: 1.35rem;
  }
}

@media all and (max-width : 330px) {

	nav ul li {
		display:block;
		width: 94%;
	}


}
