header,
#logo,
nav > ul,
nav > ul > li {
	display: flex;
}

#logo,
nav > ul > li {
	justify-content: center;
	align-items: center;
}

header {
	height: 140px;
	width: 100%;
	flex-direction: column;
	align-items: center;
}

header div:first-child {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 40px;
	width: 100%;
}

header div:first-child a:not(#logo a),
header div:first-child select {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	margin-right: 10px;
	border: none;
	border-radius: 5px;
	color: black;
	font-family: Helvetica, sans-serif;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	padding: 5px 0;
}

header div:first-child a {
	text-decoration: none;
}

header div:first-child select option {
	color: black;
	font-family: Helvetica, sans-serif;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}

header > div:last-child {
	height: 100px;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

header input {
	display: none;
}

#logo,
#logo a,
#logo img {
	min-width: 187px;
	max-width: 138px;
}

#logo {
	height: 100%;
	width: 16vw;
	margin: auto 2vw;
}

#logo a {
	display: flex;
	justify-content: center;
	align-content: center;
	height: 100%;
}

#logo img {
	height: 100%;
	width: 100%;
	aspect-ratio: 100/90;
}

nav:not(#sommaire) {
	max-height: 45px;
}

nav ul {
	height: 100%;
	width: 100%;
	list-style: none;
	justify-content: flex-start;
}

nav > ul > li {
	height: 45px;
	width: 14vw;
}

nav > ul:not(.subnav) > li {
	flex-direction: column;
	justify-content: flex-start;
	text-align: center;
	white-space: nowrap;
	padding-top: 10px;
	z-index: 20;
}

nav > ul:not(.subnav) a::after {
	display: block;
	position: relative;
	height: 2px;
	width: 0;
	top: 0;
	left: 0;
	content: '';
	transition: 0.2s;
}

nav > ul a::after {
	background-color: #E52322;
}

nav > ul li a:hover::after {
	left: 0;
	width: 100%;
	transition: 0.6s;
}

nav a {
	text-decoration: none;
	color: black;
}

nav ul li a {
	display: inline-block;
	text-decoration: none;
	padding: 5px 0;
}

nav li p {
	font-family: Helvetica, sans-serif;
	font-weight: bold;
	color: black;
}

nav li a > p {
	font-family: Helvetica, sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 auto;
}

.subnav {
	display: flex;
	visibility: hidden;
	position: relative;
	flex-direction: column;
	background-color: #E52322;
	height: fit-content;
	width: fit-content;
	left: 0;
}

.subnav > li {
	padding: 0 10px;
}

nav > ul > li:hover .subnav {
	visibility: visible;
}

.subnav li a::after {
	background-color: #100C08;
}

.subnav > li p {
	color: #FFFFFF;
	margin: 0 auto;
}

.subnav-title {
	font-weight: 700;
	background-color: #100C08;
	color: #FFFFFF;
	padding-top: 5px;
	margin-bottom: 8px;
	border: 2px solid #100C08;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	user-select: none;
	cursor: default;
}

.subnav-title p {
	padding: 6px 0;
	margin: 0;
}

.thirdnav {
	position: absolute;
	display: inline-flex;
	flex-direction: column;
	visibility: hidden;
	background-color: #808080;
	height: fit-content;
	width: calc(100% + 20px);
	top: 140px;
	left: 262px;
}

.subnav > li:hover .thirdnav {
	visibility: visible;
}

.thirdnav li a::after {
	background-color: #100C08;
}

.thirdnav > li p {
	color: #FFFFFF;
}

@media screen and (min-width: 1025px) and (max-width: 1350px) {
	nav li p {
		font-size: 16px;
	}

	nav > ul:not(.subnav) > li {
		width: 14vw;
	}

	#logo {
		width: 14vw;
	}
}

@media screen and (min-width: 100px) and (max-width: 1024px) {
	header {
		background-image: linear-gradient(to top right, white 50%, #ebebeb 50%);
		min-height: 100px;
		height: 100px;
		border-left: 50vw solid white;
		border-right: 20vw solid #ebebeb;
		overflow-x: hidden;
	}

	header div:first-child {
		display: none;
	}

	header input {
		display: block;
	}

	#logo {
		position: absolute;
		max-height: 100px;
		left: 0;
		top: 0;
	}

	header > div:last-child > input + div,
	header > div:last-child > input + div + div,
	header > div:last-child > input + div + div + div {
		position: absolute;
		height: 7px;
		width: 50px;
		right: 20px;
	}

	header > div:last-child > input + div {
		background-color: #000;
		top: 33px;
	}

	header > div:last-child > input + div + div {
		background-color: #000;
		top: 47px;
	}

	header > div:last-child > input + div + div + div {
		background-color: #000;
		top: 61px;
	}

	input {
		display: block;
	}

	input[type="checkbox"]:not(#cookies input[type="checkbox"]) {
		position: absolute;
		right: 15px;
		height: 60px;
		width: 60px;
		opacity: 0;
		z-index: 3;
		cursor: pointer;
	}

	input[type="checkbox"] ~ nav,
	input[type="checkbox"]:checked ~ nav {
		transition: all 0.5s ease-in-out;
	}

	input[type="checkbox"] ~ nav {
		transform: translate(300px);
	}

	input[type="checkbox"]:checked ~ nav {
		transform: translate(-300px);
	}

	input[type="checkbox"] ~ div,
	input[type="checkbox"] ~ div ~ div,
	input[type="checkbox"] ~ div ~ div ~ div,
	input[type="checkbox"]:checked ~ div,
	input[type="checkbox"]:checked ~ div ~ div,
	input[type="checkbox"]:checked ~ div ~ div ~ div {
		animation-duration: 0.5s;
		animation-fill-mode: forwards;
	}

	input[type="checkbox"] ~ div {
		animation-name: firstLineBack;
	}

	input[type="checkbox"] ~ div ~ div {
		animation-name: secondLineBack;
	}

	input[type="checkbox"] ~ div ~ div ~ div {
		animation-name: thirdLineBack;
	}

	input[type="checkbox"]:checked ~ div {
		animation-name: firstLine;
	}

	input[type="checkbox"]:checked ~ div ~ div {
		animation-name: secondLine;
	}

	input[type="checkbox"]:checked ~ div ~ div ~ div {
		animation-name: thirdLine;
	}

	nav {
		position: fixed;
		z-index: 6;
		top: 100px;
		right: 0;
		transition: all ease-in-out 0.5s;
	}

	nav ul {
		position: absolute;
		flex-direction: column;
		height: 200px;
		width: 300px;
	}

	nav ul a:not(:last-child) {
		border-right: none;
	}

	nav ul li {
		padding: 0;
	}

	nav > ul:not(.subnav) > li {
		display: flex;
		justify-content: flex-start;
		height: 45px;
		width: 100%;
		text-align: center;
		white-space: nowrap;
		background-color: #ebebeb;
	}

	nav > ul > li:hover {
		visibility: visible;
		height: auto;
	}

	.subnav {
		width: 100%;
		padding: 0;
	}

	.subnav > li {
		padding: 0;
	}

	@keyframes firstLine {
		50% {
		}
		100% {
			transform: rotate(-47deg);
			top: 47px;
			right: 20px;
			background-color: #000;
		}
	}

	@keyframes secondLine {
		50% {
		}
		100% {
			opacity: 0;
		}
	}

	@keyframes thirdLine {
		50% {
		}
		100% {
			background-color: #000;
			transform: rotate(47deg);
			top: 47px;
			right: 20px;
		}
	}

	@keyframes firstLineBack {
		0% {
			transform: rotate(-50deg);
			top: 47px;
			right: 20px;
		}
		100% {
		}
	}

	@keyframes secondLineBack {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	}

	@keyframes thirdLineBack {
		0% {
			background-color: #000;
			transform: rotate(50deg);
			top: 47px;
			right: 20px;
		}
		100% {
			background-color: #000;
		}
	}
}