/******************* Constants *******************/
:root {
	--font-color: #050505;
	--font-color_rgb: 5, 5, 5;
	--background-color: #F9F3F1;
	--color01: #A63845;

	--image-margin-side: 2.5em;

	--content-width: 900px;
}

/******************* Page *******************/
* {
	box-sizing: border-box;
}
html {
	background-color: var(--background-color);
	font-family: Lato, Helvetica, sans-serif;
	font-size: medium;
	color: var(--font-color);
}
@media only screen and (min-width: 768px) {
	html {
		font-size: large;
	}
}
body {
	margin: 0;
}
p, ul, ol {
	line-height: 1.6em;
}
article {
	position: relative;
}

@media print {
	html {
		size: A4 portrait;
		color: black;
		background-color: white;
		margin: 0;
	}
}

/******************* Links *******************/
a:not(.anchor) {
	text-decoration: none;
	color: var(--font-color);
	border-bottom: 1px dotted;
	transition: box-shadow 0.2s ease, outline-offset 0.2s ease, transform 0.2s ease, background 0.4s ease;
}
a:not(.anchor):visited {
	color: var(--font-color);
}
a:not(.anchor):hover {
	outline: 1px solid;
	outline-offset: .3em;
	border-bottom: 1px dashed;
}
a:not(.anchor):active {
	border-bottom: 1px solid;
}
a.not(.anchor):focus {
	outline-offset: .3em;
	outline: 1px solid;
}

/******************* Navbar *******************/
#navigation {
	height: 4em;
	width: 100%;
	line-height: 4em;
	margin-bottom: 2em;
}
@media print {
	#navigation {
		display: none;
	}
}

#navigation a {
	padding: 1em;
	padding-bottom: 0.75em; /* Pour éviter d'avoir un espace trop grand en bas*/
	border: none;
	border-radius: 0.5em;
}
#navigation a:hover {
	background-color: var(--font-color);
	text-decoration: none;
	color: var(--background-color);
	outline: none;
}
#navigation a:active {
	color: var(--font-color);
	border: none;
}
#navigation a:focus {
	outline: none;
}
#navigation .navigation-container {
	margin: 0 auto;
	max-width: 90vw;
}
@media only screen and (max-width: 320px) {
	#navigation .navigation-container {
		max-width: 100vw;
	}
}
@media only screen and (min-width: 1000px) {
	#navigation .navigation-container {
		max-width: var(--content-width);
	}
}
#navigation-title {
	display: inline-block;
	padding-left: 0 !important;
}
#navigation-title:hover {
	filter: grayscale(100%) brightness(0.4);
	background-color: transparent !important;
}
#navigation-title img {
	height: 4em;
}

/******************* Navbar Menu *******************/
#menu-toggle {
	display: none;
}
#navigation .menu-button {
	float: right;
	position: relative;
	display: none;
	width: 4em;
	height: 4em;
	top: 1em;
}
#navigation .menu-button-inner {
	width: 4em;
	height: 4em;
	position:relative;
	left: 0.5em;
	text-align:center
}
#navigation .menu-button .menu-button-image {
	display: inline-block;
	position: relative;
	height: 4em;
	width: 4em;
	background-image: url(../images/svg/bars.svg);
	background-size: contain;
	background-repeat: no-repeat;
	margin: auto;
	vertical-align: top;
}
#menu-toggle:checked + .menu-button .menu-button-inner {
	background-color: var(--link-hover-background);
	border-radius: 0.5em;
	transition: background .5s, max-height .35s linear;
}
#menu-toggle:checked + .menu-button .menu-button-image {
	opacity: 40%;
}
#navigation-list {
	position: absolute;
	top: 6rem;
	right: 0;
	visibility: hidden;
	z-index: 1;
	opacity: 0;
	max-height: 0;
	width: 100%;
	font-size: 1.5em;
	background-color: var(--background-color);
	border-top: solid 2px var(--font-color);
	border-bottom: solid 2px var(--font-color);
	transition: opacity .5s, max-height .35s linear;
	padding: 0;
}
#navigation-list .navigation-item {
	float: none !important;
	text-align: center;
	margin: 0;
	display: block;
}
#navigation-list .navigation-item,
#navigation-list .navigation-item span {
	line-height: 5rem;
}
#menu-toggle:checked + label + ul {
	visibility: visible;
	opacity: 1;
	max-height: 100rem;
}
#navigation .menu-button {
	display: block;
	cursor: pointer;
}
@media only screen and (min-width: 768px) {
	#navigation-list {
		position: relative;
		float: right;
		top: 1rem;
		max-height: none;
		visibility: visible;
		opacity: 100;
		width: auto;
		border: none;
		list-style: none;
		font-size: 1em;
		margin-top: 0;
	}
	#navigation-list .navigation-item {
		display: inline-block;
		font-weight: bold;
		line-height: 4rem;
	}
	#navigation-list .navigation-item a,
	#navigation-list .navigation-item span {
		line-height: 1rem;
	}
	#menu-toggle:checked + label + ul {
		visibility: visible;
		opacity: 1;
		max-height: 100rem;
	}
	#navigation .menu-button {
		display: none;
	}
}

/******************* Simple Page *******************/
.container {
	max-width: 90vw;
	margin: 0 auto;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em;
}
.content {
	flex-grow: 2;
}
.half {
	flex-grow: 1;
	width: 45%;
	min-width: 300px;
}
@media only screen and (min-width: 1000px) {
	.container {
		max-width: var(--content-width);
	}
}

@media only screen and (min-width: 768px) {
	main>section:last-of-type {
		margin-bottom: 2em;
	}
}

/******************* Discipline *******************/

.discipline img {
	max-width: min(100%, 400px);
}

/******************* Map *******************/

#map {
	width: 425px;
	height: 350px;
	max-width: 100%;
}

