/*
----------------------------------------
HEADER MENU
----------------------------------------
*/
div#topbar-menu a {
	font-size: 17px;
	font-weight: 500;
}

header#masthead ul.menu {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
}

header#masthead ul.menu li {
	position: relative;
	list-style: none;
	padding: 0;
	margin: 0;
	line-height: normal;
}

header#masthead ul.menu > li > a {
	height: 110px;
	line-height: 110px;
}

header#masthead ul.menu a {
	transition: color .25s, background .25s;
}

/*
----------------------------------------
Sub menu
----------------------------------------
*/
header#masthead ul.sub-menu {
	display: block;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 100%;
	width: 280px;
	max-height: 500px;
	font-size: 14px;
	font-weight: 400;
	background: #ffffff;
	margin-top: -30px;
	margin-left: 0;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	width: 450px;
	box-shadow: 0px 10px 18px rgba(0, 0, 0, 0.15);
	z-index: 1000;

}

header#masthead ul.menu > li:hover > .sub-menu {
	transition: .25s;
	margin-top: 0;
	opacity: 1;
	visibility: visible;
	pointer-events: initial;
	box-sizing: border-box;
}

header#masthead ul.sub-menu a {
	display: block;
	padding: 1px 0;
	font-size: 14px;
	font-weight: 400;
	padding: 5px 0;
	box-sizing: border-box;
}

header#masthead ul.menu ul ul {
	display: block!important;
	position: relative;
	top: auto;
	left: 0;
	width: auto;
}


/*
----------------------------------------
Special sub header : Nos formations
----------------------------------------
*/

header#masthead ul.special.sub-menu a {
	white-space: nowrap;
}

.special-sub-menu-label {
	position: relative;
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 600;
	color: #003583;
	padding-bottom: 15px;
	border-bottom: 1px solid;
	margin-bottom: 10px;
}

header#masthead ul.special.sub-menu li.special-sub-menu-group:not(:last-child) {
	margin-bottom: 36px;
}

ul.special.sub-menu ul {
	padding-left: 25px;
}

header#masthead ul.special.sub-menu li > ul > li{
	margin: 0;
}

@media (min-width: 960px) and (max-width: 1200px){

	div#topbar-menu a {
		font-size: 16px;
	}

	div#topbar-menu a, div#target-menu {
		font-size: 16px;
	}

}

@media (max-width: 960px){


	header#masthead ul.menu {
		display: block;
		text-align: left;
		height: 100%;
		position: fixed;
		left: 0;
		top: 70px;
		width: 100%;
		margin-top: 50px;
		padding-top: 10px;
		overflow: auto;
		padding-bottom: 250px;
		border-top: 1px solid #003583;
	}

	header#masthead ul.menu li {
		width: 100%;
		/* margin-bottom: 20px; */
	}

	header#masthead ul.sub-menu {
		/*display: none;*/
		display: block !important;
		position: relative;
		opacity: 1;
		visibility: visible;
		pointer-events: initial;
		transition: none!important;
		width: 100%;
		max-height: none;
		padding: 0 36px;
		padding-left: 56px;
		margin: 0 0 10px 0;
		top: auto;
		left: auto;
		min-width: unset;
		box-shadow: none;
		/* box-sizing: content-box; */
	}

	header#masthead ul.menu > li > a {
		line-height: normal;
		height: auto;
		font-size: 20px;
		margin-bottom: 10px;
		display: block;
	}

	header#masthead ul.special.sub-menu a {
		white-space: normal;
	}

	.special-sub-menu-label {
		border: none;
	}

	.special-sub-menu-label:after {
		content: '';
		position: absolute;
		left: 0;
		bottom: 0;
		width: 120px;
		height: 1px;
		background: #003583;
	}

	header#masthead ul.menu ul ul {
		padding: 0;
		margin-top: 0;
	}

	header#masthead ul.special.sub-menu li.special-sub-menu-group {
		margin-bottom: 20px!important;
	}

}