/*
 header.css
 ======================================================
 
 Code CSS de la partie Header (Menu) du site
 
 ======================================================
*/

#Header_wrapper, #Intro {
	background-color: transparent;
}

.header-classic #Action_bar,
.header-fixed #Action_bar,
.header-plain #Action_bar,
.header-split #Action_bar,
.header-stack #Action_bar {
	background: transparent;
}

body:not(.template-slider):not(.header-simple) #Header {
	min-height: auto;
}

/* BT29 : Wrapper relative + gap 12px + z-index Content. Recaler comme prod BT21. */
#Wrapper {
	position: static;
}

body:not(.template-slider) #Header_wrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	background: transparent;
	width: 100%;
}

#Action_bar {
	--mfn-column-gap-left: 20px;
	--mfn-column-gap-right: 20px;
}

#Action_bar .logo img,
#Side_slide .logo img {
	display: none;
}

#Action_bar .logo {
	padding-top: 30px;
	padding-left: 30px;
}

#Action_bar .logo img.logo-main,
#Side_slide .logo img.logo-main {
	display: block;
}

#Action_bar .column.one {
	width: 100%;
	display: flex;
}

#Action_bar .action_right {
	width: 100%;
	display: flex;
	align-content: center;
	align-items: center;
	flex-direction: row-reverse;
	height: 120px;
}

#Action_bar > div {
	padding-right: 20px;
	padding-left: 20px;
}

body #Action_bar:not(.creative) .social-menu a {
	color: #007BC5;
	font-size: 24px;
	background: #ffffff;
	border-radius: 10px;
	padding: 5px 10px;
	font-family: 'Miso Bold', sans-serif;
	transition: 0.3s ease-out;
	overflow: hidden;
	z-index: 1;
	position: relative;
	display: inline-block;
}

body #Action_bar:not(.creative) .social-menu a:hover {
	color: #ffffff;
	transition: 0.3s ease-in;
	text-decoration: none;
}

body #Action_bar:not(.creative) .social-menu a::before {
	background-color: #007BC5;
	height: 0;
	width: 100%;
	position: absolute;
	content: '';
	transition: all 0.3s ease-out;
	z-index: -1;
	left: 0;
	top: 0;
}

body #Action_bar:not(.creative) .social-menu a:hover::before {
	height: 100%;
	transition: all 0.3s ease-in;
}

#Action_bar .social-menu li {
	border: none;
	vertical-align: middle;
}

#Action_bar .social {
	float: right;
	margin-left: 15px;
	padding: 12px 0;
}

/* BT29 margin 1px/4px → gaps prod 6px */
#Action_bar .social li {
	display: inline-block;
	opacity: 0.9;
	margin: 0 6px 0 0;
}

#Action_bar .social li:last-child {
	margin-right: 0;
}

#Action_bar .social li a {
	margin: 0;
	display: inline-block;
	line-height: 0;
}

#Action_bar .social li a img {
	display: block;
	max-width: 42px;
	width: 42px;
	height: auto;
}

#Action_bar .social li:hover {
	opacity: 1;
}

#Action_bar.sticky {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
	background-color: #1aa3ace6 !important;
}

#Action_bar.sticky .logo {
	padding-top: 5px;
	padding-left: 0;
	max-width: 252px;
}

#Action_bar.sticky .action_right {
	height: 90px;
}

#Action_bar.sticky .logo_ubs {
	width: 60px;
	height: 60px;
	background-size: cover;
}

.logo_ubs {
	background-image: url('../img/small_ubs_logo.png');
	background-repeat: no-repeat;
	width: 93px;
	height: 93px;
	position: relative;
}

.logo_ubs a {
	opacity: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/* BT29 be.css retire margin .2em sur icon:before → croix / MENU trop étroits vs BT21 */
[class^="icon-"]:before,
[class*=" icon-"]:before {
	margin-left: 0.2em;
	margin-right: 0.2em;
}

/* Trigger MENU : caler prod (span 24/lh30 + icône 30px, pas le 22px parent Top_bar) */
.responsive-menu-toggle {
	display: none;
	position: absolute !important;
	top: 50% !important;
	right: 20px !important;
	left: auto !important;
	margin-top: 0 !important;
	transform: translateY(-50%);
	width: auto;
	height: auto;
	color: #fff;
	z-index: 200;
	font-size: 30px;
	line-height: 30px;
}

.responsive-menu-toggle:hover {
	color: #ffffff;
}

.responsive-menu-toggle span {
	font-size: 24px;
	display: block;
	float: none;
	padding: 0;
	line-height: 30px;
}

.responsive-menu-toggle i {
	font-size: 30px;
	line-height: 30px;
}

#Side_slide {
	background: rgba(0, 123, 197, 0.9);
}

#Side_slide .logo {
	margin-top: 30px;
	margin-bottom: 30px;
}

#Side_slide .logo img {
	max-width: 200px;
	margin: auto;
}

#Side_slide a:not(.action_button):not(.close) {
	color: #ffffff;
	font-size: 24px;
	padding: 5px 10px;
	font-family: 'Miso Bold', sans-serif;
	transition: 0.2s ease-out;
	position: relative;
}

/* Croix : boîte parent BT21/29 + padding child (comme prod) */
#Side_slide .close-wrapper a.close {
	display: block;
	float: right;
	padding: 5px 10px;
	width: 34px;
	height: 34px;
	margin: 13px 13px 0 0;
	font-size: 24px;
	line-height: 30px;
	color: #fff;
	box-sizing: content-box;
}

#Side_slide .close-wrapper a.close i {
	font-size: 22px;
	line-height: 34px;
}

#Side_slide .social-menu li {
	border: none;
	display: block;
	margin-bottom: 15px;
	padding-right: 0;
	margin-right: 0;
}

#Side_slide .social-menu li:not(.logo_ubs) {
	max-height: 35px;
}

#Side_slide .social-menu li.logo_ubs a {
	position: absolute;
	width: 100%;
	height: 100%;
}

#Side_slide .social-menu li:not(.logo_ubs) a:not(.action_button)::after {
	content: "";
	display: block;
	width: 0;
	margin: 0 auto;
	height: 2px;
	bottom: -5px;
	position: relative;
	background-color: #DA0052;
}

#Side_slide .social-menu li:not(.logo_ubs) a:not(.action_button):hover::after {
	transition: 0.2s ease-in;
	width: 50%;
}

#Side_slide .social-menu li:last-child {
	margin: auto;
	margin-bottom: 20px;
	margin-top: 40px;
}

#Side_slide .social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#Side_slide .social li {
	width: 50%;
	margin: 15px 0 0;
}

/* Spécificité > a:not(.close) sinon padding 5px 10px gagne (prod = 3px 5px) */
#Side_slide ul.social li a:not(.action_button) {
	display: block;
	padding: 3px 5px;
	margin: 0;
	text-align: center;
}

#Side_slide .social li a img {
	display: inline-block;
	width: 42px;
	height: 42px;
	max-width: 42px;
	transition: 0.2s ease-out;
	border-radius: 100%;
	border: none;
}

#Side_slide .social li a img:hover {
	background: #DA0052;
	transition: 0.2s ease-in;
}

body.home .ens,
body.home .etu_amb,
body.home .action_lyc,
body.home .logo_ubs,
body.page-id-1161 .ens,
body.page-id-1161 .etu_amb,
body.page-id-1161 .action_lyc,
body.page-id-1161 .logo_ubs {
	display: none !important;
}

/*   R E S P O N S I V E   */

@media screen and (max-width: 1500px) {
	#Action_bar .logo {
		max-width: 250px;
		padding-left: 0;
		padding-top: 10px;
	}
	body #Action_bar:not(.creative) .social-menu a {
		font-size: 21px;
	}
	#Action_bar .social li a img {
		max-width: 38px;
		width: 38px;
	}
}

@media screen and (max-width: 1080px) {
	.responsive-menu-toggle {
		display: block !important;
		position: absolute !important;
		top: 50% !important;
		right: 20px !important;
		left: auto !important;
		margin-top: 0 !important;
		transform: translateY(-50%);
		font-size: 30px;
		line-height: 30px;
	}
	.responsive-menu-toggle span {
		font-size: 24px;
		line-height: 30px;
		padding: 0;
		float: none;
	}
	.responsive-menu-toggle i {
		font-size: 30px;
		line-height: 30px;
	}
	#Action_bar .action_right {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	#Action_bar {
		--mfn-column-gap-left: 15px;
		--mfn-column-gap-right: 10px;
	}
	#Action_bar > div {
		padding-left: 15px;
		padding-right: 10px;
	}
	.mobile-header-mini #Action_bar {
		display: block;
	}
}

@media screen and (max-width: 575px) {
	#Action_bar .logo,
	#Action_bar.sticky .logo {
		max-width: 200px;
	}
}
