a:hover {
	text-decoration: none;
	color: inherit;
}

.nav-container {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 93px;
	background-color: white;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.nav-item {
	display: flex;
	align-items: center;
	padding: 8px;
	cursor: pointer;
	height: 100%;
	color: var(--sky-500) !important;
}

a.nav-item {
	color: black !important;
}

.nav-item:hover {
	color: var(--moreno-blue) !important;
	box-shadow: 0px -3px 0 0 inset;
}

.nav-item.active {
	color: var(--moreno-blue) !important;
	font-weight: bold;
}

.nav-list {
	display: flex;
	position: absolute;
	flex-grow: 1;
	left: 0;
	top: 100%;
	flex-direction: column;
	list-style-type: none;
	align-items: center;
	justify-content: space-around;
	height: fit-content;
	background-color: white;
	height: 0;
	overflow: hidden;
	transition: all 300ms ease-out;
	width: 100%;
	gap: 3px;
	order: 2;
}

.nav-block {
	display: flex;
	height: 100%;
	align-items: center;
}

.logo-image {
	width: clamp(200px, 25vw, 250px);
	height: clamp(36px, 45vw, 45px);
}

label[for='main-nav-toggle'] {
	margin: 0;
	padding: 6px;
	justify-self: end;
	order: 4;
}

.language-selection {
	display: flex;
	padding: 8px;
	gap: 8px;
	list-style-type: none;
	background-color: white;
	border-radius: 3px;
	visibility: hidden;
	flex-direction: column;
	position: absolute;
	height: fit-content;
	opacity: 0;
	left: 0;
	bottom: 0;
	transition: all 300ms;
	transform: translate(-4px, calc(100% - 16px));
	grid-template-columns: 1fr 1fr;
	box-shadow: 0 0 6px -1px rgb(0 0 0 / 0.1), 0 0 4px -2px rgb(0 0 0 / 0.1);
	order: 3;
}

#language-menu-container:hover .language-selection {
	transform: translate(-4px, calc(100% + 16px));
	opacity: 1;
	visibility: visible;
}

.language-selection li {
	text-decoration: none;
}

.language-button {
	border-radius: 1000px;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	width: 24px;
}

.language-button>img {
	height: 100%;
	width: 100%;
	place-items: center;
	object-fit: cover;
}

.language-icon {
	display: none;
	height: 24px;
	width: 24px;
	box-sizing: content-box;
	font-size: 1.5em;
	color: var(--moreno-blue);
	cursor: pointer;
}

#language-menu-container {
	position: relative;
	height: fit-content;
	width: fit-content;
	margin: 0;
	margin-right: 5px;
	padding: 4px;
	order: 3;
}

.language-icon {
	display: block;
}

.language-choice {
	color: var(--text-color);
	display: flex;
	align-items: center;
	gap: 8px;
}

.menu-icon {
	content: url("/assets/svg/menu-button.svg");
	min-width: 32px;
	min-height: 32px;
	max-width: 32px;
	max-height: 32px;
	pointer-events: none;
}

#main-nav-toggle:checked~* .menu-icon {
	content: url("/assets/svg/cross.svg");
}

#main-nav-toggle:focus~label[for='main-nav-toggle'] {
	border: solid 1px var(--moreno-blue);
}

.padding-block {
	flex-grow: 1;
	flex-shrink: 1;
	order: 2;
	min-width: clamp(0px, calc(5vw, -16px), 32px);
}

@media screen and (width < 520px) {
	.language-label {
		display: none;
	}

	label[for='main-nav-toggle'] {
		margin-left: 0px;
	}

	.language-selection {
		left: 50%;
		transform: translate(-50%, calc(100% - 16px));
	}

	#language-menu-container:hover .language-selection {
		transform: translate(-50%, calc(100% + 16px));
	}
}

/* Ajouter par défaut et adapter le mode grand écran */
@media screen and (width <=1200px) {

	.nav-block {
		max-width: none;
	}

	.nav-toggle {
		visibility: hidden;
	}

	.nav-toggle:checked~.nav-list {
		max-height: none;
		height: 315px;
		padding-bottom: 16px;
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
		visibility: visible;
	}
}

@media screen and (width > 1200px) {

	.padding-block {
		max-width: 350px;
	}

	.nav-list {
		position: static;
		flex-direction: row;
		height: 100%;
		border-top: none;
		width: inherit;
		max-width: 850px;
		overflow: visible;
	}

	#language-menu-container {
		right: 0;
		top: 0;
	}

	label[for='main-nav-toggle'] {
		display: none;
	}
}

/* Footer */
footer {
	background-color: var(--moreno-gray);
	margin-top: 32px;
	flex-grow: 1;
}

.footer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	color: white;
	gap: 24px 16px;
	padding: 18px 18px 18px 2px;
	margin-top: 32px;
}

.agency-contact {
	padding-left: 16px;
}

.agency-infos {
	display: flex;
	flex-direction: column;
	height: fit-content;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.agency-infos li {
	height: 24px;
	overflow: hidden;
}

.blue-link {
	color: white !important;
	cursor: pointer;
}

.blue-link:hover {
	color: rgb(14 165 233) !important;
}