/********************************/
/*								*/
/*		Menu automatique		*/
/*		© William Russeil		*/
/*			  2017				*/
/*								*/
/********************************/

#horizontal-menu {
	position: absolute;
	display: none;
	clear: both;
	width: 100%;
	background-color: #653f69;
	padding: 1em 0 2em 0;
	z-index: 20000;
}

/********************************/
/*			NIVEAU 1			*/
/********************************/

ul.dropdown {
	position: relative;
	width: 100%;
	max-width: 1032px;
	font-family: 'Source Sans Pro', sans-serif;
	color: white;
	text-align: left;
	list-style-type: none;
	margin: 2rem auto;
	padding-left: 1%;
	z-index: 10000;
}

.menu-title {
	font-weight: bold;
}

.menu-category {
	font-size: 1.1rem;
	font-size: 1.6vw;
	font-weight: 400;
}

ul.dropdown > li {
	z-index: 1000;
	font-size: 1rem;
	font-size: 1.6vw;
	font-weight: 300;
	display: inline-block;
	margin: 0;
	padding: 0;
	color: white;
	vertical-align: top;
	/*width: 21vw;
	max-width: 254px;*/
	width: 28%;
	width: 28vw;
}

ul.dropdown > li:nth-child(4) {
	width: 15%;
	width: 9vw;
}

/*ul.dropdown li:last-child {
	border-right: none;
}*/

/*span.top-no-link {
	padding-right: 0;
}

span.top-no-link a {
	color: white;
}*/

/*ul.dropdown li:hover {

}

ul.dropdown li:hover > ul {
	display: block;
}

li.right-arrow {

}*/

ul.dropdown a {
	color: white;
	text-decoration: none;
}

/*ul.dropdown li img {
	max-width: 100px;
	margin: 0 auto;
}*/

/********************************/
/*			NIVEAU 2			*/
/********************************/

ul.dropdown ul {
	width: 100%;
	text-align: left;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul.dropdown ul li {
	display: block;
	width: 100%;
	font-weight: normal;
	text-align: left;
	background-image: none;
	padding-top: 0.2rem;
}

ul.dropdown ul li:last-child { /* ajoute un effet d'ombre*/
	padding-bottom: 0.5rem;
}

/********************************/
/*			LEVEL THREE			*/
/********************************/

ul.dropdown ul ul {
	width: 100%;
}

ul.dropdown ul ul li {
	padding: 0.2rem 0;
	background-image: none;
}

/********************************/
/*		STYLE DES LIENS			*/
/********************************/

/*.category-link, .article-link, .top-link, .menu-add-on a, .menu-accueil a {
	color: #ffffec;
}*/

.category-link {
	width: 100%;
	height: 100%;
	background-image: none;
}

.category-link:hover {
	text-decoration: none;
}

.article-link {
	display: inline-block;
	text-align: left;
	font-weight: normal;
	width: 100%;
	height: 100%;
}

.article-link:hover {
	text-decoration: none;
}

.top-link .category-link {

}

.top-link .category-link:hover {
	text-decoration: none;
}

.down-arrow {
	padding-right: 0;
}

/********************************/
/*			ADD-ONS				*/
/********************************/

#menu-map {
	width: 50%;
	margin-top: 1rem;
}

.menu-add-on, .menu-accueil {
	z-index: 10001;
	color: white;
	font-weight: normal;
	float: left;
	padding: 0.2rem 0 0.3rem 0;
	background-image: none;
}

.menu-accueil {

}

.menu-add-on a:hover, .menu-accueil a:hover {
	font-style: italic;
	text-decoration: underline;
}

.networks-menu-icons {
	width: 100%;
	margin-top: 2em;
	list-style-type: none;
}
.networks-menu-icons li {
	padding-right: 5%;
}
.networks-menu-icons li a {
	display: inline-block;
	width: 27%;
	padding-right: 5%;
}
.networks-menu-icons li img {
	margin-top: 1em;
	/*margin-right: 5%;*/
}

@media only screen and (min-width: 1032px) {
	ul.dropdown {
		padding-left: 0;
	}
	ul.dropdown > li {
		font-size: 1rem;
		width: 300px;
	}
	ul.dropdown > li:nth-child(4) {
		width: 120px;
	}
	.menu-category {
		font-size: 1rem;
	}
}

/* iPAD */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
	ul.dropdown li {
		font-size: 1rem;
	}
	.menu-category {
		font-size: 1rem;
	}
}

/* iPad mini in portrait */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)
and (-webkit-min-device-pixel-ratio: 1)  {
	ul.dropdown li ul li {
		padding-top: 1rem;
	}
}

/* iPhone 6/7 in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
	#menu-icon {
		margin-top: -2rem;
	}
	ul.dropdown > li, ul.dropdown > li:nth-child(4) {
		width: 100%;
	}
	ul.dropdown li, .menu-category {
		font-size: 24px;
	}
	#menu-map {
		display: none;
	}
	/*#facebook-menu-icon {
		margin-left: 46%;
	}*/
}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
	#horizontal-menu {
		margin-top: 1rem;
	}
	ul.dropdown li {
		width: 100%;
		padding: 0.6rem 0;
		text-align: center;
		background-image: none;
	}
	ul.dropdown ul {
		margin-top: 0;
	}
	ul.dropdown ul li {
		text-align: center;
		padding-top: 0.3rem;
	}
	ul.dropdown ul li:last-child {
		padding-bottom: 0.2rem;
		border-bottom: 1px dotted #095245;
	}
	.article-link {
		display: block;
		text-align: center;
	}
}



