:root {

	--header-font: "Gilroy", Sans-serif;

	--header-padding-mobile: 1em 1em;
	--header-padding-tablet: 1em 2em;
	--header-padding-laptop: 1em 1.5em;
	--header-padding-desktop: 1.2em 2em;
	--header-padding-sm-laptop: 1em 1.5em;

	--header-row-padding-mobile: 0;
	--header-row-padding-tablet: 0;
	--header-row-padding-laptop: 0;
	--header-row-padding-desktop: 0;
	--header-row-padding-sm-laptop: 0;

}

/*Widget parents rules*/
div.elementor:has(.site-header) > div.elementor-element {
	padding: 0 !important;
}

div.elementor:has(.site-header) > div.elementor-element > div {
	padding: 0 !important;
	max-width: 100% !important;
}

div.elementor-location-header > div.elementor-element,
div.elementor-location-header > div.elementor-element > div {
	padding: 0 !important;
	max-width: 100% !important;
}

/*Widget parents rules*/


body.menu-opened {
	height: 100%;
	overflow: hidden;
	margin: 0 !important;
}

.site-header {
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	display: flex;
	position: fixed;
	align-items: center;
	flex-direction: column;
	background-color: #ffffff;
	justify-content: space-between;
	transition: background-color 0.35s ease-in-out;
	border-bottom: solid 1px rgb(73,96,110);

}

.site-header.scrolled {
	backdrop-filter: blur(10px);
	box-shadow: 0 0 15px rgb(0 0 0 / 10%);
	background-color: rgba(255,255,255,0.8);
}

.site-header::after {
	top: 0;
	left: 0;
	right: 0;
	content: "";
	opacity: 0;
	height: 100vh;
	z-index: -100;
	position: fixed;
	visibility: hidden;
	transform: translateX(-100%);
	background: rgba(56, 75, 99, .3);
	transition: all 0.3s ease-in-out;
}

body.menu-opened .site-header::after {
	opacity: 1;
	z-index: -1;
	visibility: visible;
	transform: translateX(0);
}

.site-header__row {
	gap: 2em;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.header-row__column {
	display: flex;
	align-items: center;
	/*border: solid 1px green;*/

}

.header-row__column--rows {
	justify-content: center;
	flex-direction: column;
	align-items: flex-start;
	/*border: 1px solid red;*/
}

.header-row__column-row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-row__column.column-logo img {
	height: auto;
	max-width: 100%;
}


/*	burger */
.header-burger {
	height: 24px;
	width: 36px;
	cursor: pointer;
	position: relative;
	transform: scale(0.7);
}


.header-burger__line {
	width: 100%;
	height: 5px;
	border-radius: 10px;
	animation: none;
	position: absolute;
	transform: rotate(0deg);
	animation-duration: 0.65s;
	background-color: #373640;
	animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

.header-burger__line:nth-child(1) {
	top: 0;
	animation-name: topreverse;
	animation-fill-mode: forwards;
}

.header-burger__line:nth-child(2) {
	bottom: 10px;
	animation-name: bottomreverse;
}

.header-burger__line:nth-child(3) {
	bottom: 0;
	animation-name: bottomreverse;
}

.header-burger.is-active > .header-burger__line {
	animation-duration: 0.65s;
	animation-fill-mode: forwards;
	animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

.header-burger.is-active .header-burger__line:nth-child(1) {
	top: 45.8333333333%;
	animation-name: top;
}

.header-burger.is-active .header-burger__line:nth-child(2) {
	visibility: hidden;
}

.header-burger.is-active .header-burger__line:nth-child(3) {
	bottom: 45.8333333333%;
	animation-name: bottom;
}


@keyframes top {
	0% {
		top: 0;
	}
	60% {
		top: 45.8333333333%;
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(45deg);
	}
}

@keyframes bottom {
	0% {
		bottom: 0;
	}
	60% {
		bottom: 45.8333333333%;
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(-45deg);
	}
}

@keyframes topreverse {
	0% {
		transform: rotate(45deg);
		top: 45.8333333333%;
	}
	60% {
		transform: rotate(0deg);
		top: 45.8333333333%;
	}
	100% {
		top: 0;
	}
}

@keyframes bottomreverse {
	0% {
		transform: rotate(-45deg);
		bottom: 45.8333333333%;
	}
	60% {
		transform: rotate(0deg);
		bottom: 45.8333333333%;
	}
	100% {
		bottom: 0;
	}
}

/*	burger */


/* menu cta */

.header-menu-cta {
	gap: 1em;
	margin: 0;
	padding: 0;
	display: flex;
	list-style: none;
	align-items: center;
	justify-content: center;
}

.header-menu-cta li a {
	display: flex;
	color: #ffffff;
	width: 10.625rem;
	height: 3.175rem;
	font-weight: 500;
	border-radius: 10px;
	align-items: center;
	font-size: 0.875rem;
	line-height: 0.875rem;
	justify-content: center;
	background-color: #631E54;
	font-family: var(--header-font);
}

.header-menu-cta li:last-child a {
	color: #ffffff;
	font-weight: 500;
	background-color: #00478D;
}



/*
--------------------------------------
Bandeau temporaire (congés)
--------------------------------------
*/

.site-header:has(.site-header__info-banner) {
	padding: 0;
}

.site-header:has(.site-header__info-banner) .site-header__row {
	padding: 1.2em 2em;

}

.site-header__info-banner {
	width: 100%;
	background-color: #00478D;
	color: #ffffff;
	font-family: var(--header-font);
	font-size: 0.875rem;
	line-height: 1.5rem;
	text-align: center;
	padding: 0.5em 0;
}

/*
------------------------------------------------------------------------------------------
Responsive
------------------------------------------------------------------------------------------
*/


@media (max-width: 767px) {

	.hide-mobile {
		display: none !important;
	}

	.site-header {
		padding: var(--header-padding-mobile);
	}

	.site-header__row {
		padding: var(--header-row-padding-mobile);
	}

	.header-row__column.column-menu {
		width: 100vw;
	}


}

@media (min-width: 768px) and (max-width: 1024px) {

	.hide-tablet {
		display: none !important;
	}

	.site-header {
		padding: var(--header-padding-tablet);
	}

	.site-header__row {
		padding: var(--header-row-padding-tablet);
	}

	.header-row__column.column-menu {
		width: 70vw;
	}

	.header-menu-cta li a {
		width: 8rem;
		height: 3rem;
		font-size: 0.65rem;
		line-height: 0.65rem;
	}


}

@media (min-width: 1024px) and (max-width: 1025px) {

	.site-header__row {
		position: relative;
	}

	.header-row__column.column-menu {
		width: 65vw;
	}

	.header-row__column.column-logo {
		justify-content: flex-end;
	}

	.header-row__column.column-burger {
		justify-content: flex-start;
	}

}

@media (max-width: 1024px) {

	.site-header::before {
		z-index: 9999;
	}

	.lg-container {
		justify-content: flex-end;
	}

	body.menu-opened .site-header__row::before {
		top: 0;
		bottom: 0;
		left: -100%;
		content: "";
		right: -100%;
		z-index: 999;
		position: absolute;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	.header-row__column {
		flex: 1 1 0;
	}

	.header-row__column.column-cta,
	.header-row__column.column-logo,
	.header-row__column.column-burger {
		z-index: 999;
	}

	.header-row__column--rows {
		justify-content: flex-start;
	}

	.header-row__column.column-logo {
		justify-content: center;
		display: contents;
	}

	.header-row__column.column-cta {
		justify-content: flex-end;
	}

	.header-row__column.column-menu {
		top: 0;
		left: 0;
		gap: 1em;
		opacity: 0;
		z-index: -1;
		height: 100vh;
		display: flex;
		transition: .5s;
		position: fixed;
		visibility: hidden;
		flex-direction: column;
		align-items: flex-start;
		align-content: flex-start;
		background-color: #ffffff;
		backdrop-filter: blur(10px);
		transform: translateX(-100%);

	}

	.header-row__column.column-menu .column-menu_content > * {
		width: fit-content;
	}

	.header-row__column.column-menu.is-opened {
		opacity: 1;
		z-index: 100;
		visibility: visible;
		transform: translateX(0);
	}

	.header-row__column.column-menu > .column-menu_content {
		margin-left: auto;
		margin-right: auto;
		position: relative;
	}

	.column-logo img {
		height: auto;
		max-width: 100%;
	}

	.header-row__column-row:first-child {
		order: 2;
	}

	.header-row__column-row {
		gap: 1em;
		align-items: flex-start;
		flex-direction: column;
	}


}

@media (min-width: 1025px) {

	.hide-desktop {
		display: none !important;
	}

	.site-header {
		padding: var(--header-padding-desktop);
	}

	.site-header__row {
		padding: var(--header-row-padding-desktop);
	}

	.header-row__column {
		flex: 1 0 0;
	}

	.column-logo {
		width: fit-content;
	}

	.header-row__column-row {
		gap: 4em;
		padding-left: 2%;
		padding-right: 2%;
		flex-direction: row;
	}

	.header-row__column.column-logo {
		flex-grow: 0;
		flex-basis: auto;
		justify-content: center;
	}

	.header-row__column.column-cta {
		flex-grow: 0;
		flex-basis: auto;
		justify-content: flex-end;
	}




}

@media (min-width: 1024px) and (max-width: 1439px) {

	.site-header {
		padding: var(--header-padding-sm-laptop);
	}

	.site-header__row {
		padding: var(--header-row-padding-sm-laptop);
	}

	.header-menu-cta li a {
		width: 10rem;
		height: 3rem;
		font-size: 0.75rem;
		line-height: 0.75rem;
	}


}

@media (min-width: 1440px) and (max-width: 1700px) {

	.site-header {
		padding: var(--header-padding-laptop);
	}

	.site-header__row {
		padding: var(--header-row-padding-laptop);
	}


}
