/* Mise en page pour grands écrans */
html {
	background: #3d312d;
}

body {
	margin: 0 auto;
	padding: 10px;
	font-size: 95%;
	font-family: "Yu Gothic Medium", "Comic Sans MS", sans-serif;
}

a {
	color: black;
	text-decoration: none; 
}

p {
	padding: 0 10px;
}

li {
	list-style-type: none;
}


header {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	height: 170px;
	margin-bottom: 20px;
	background: #80664f;
}
header img {
	height: 100%;
}
header h1 {
	margin: 0;
	padding: 0 40px;
	color: #ffffff;
	font-weight: 500;
	font-size: 24px;
	flex: 3;
}
header nav {
	text-align: center;
	height: 170px;
	width: 300px;
	line-height: 170px;
	transition: all 0.4s;
	background: #3d312d;
}
header nav:hover {
	box-shadow: inset 0 0 15px 10px #65544f;
	transition: all 0.3s;
}
header nav a {
	display: block;
	color: #ffffff;
	font-size: 18px;
	width: 100%;
	height: 100%;
}


footer {
	position: relative;
	bottom: 20px;
	margin-bottom: 20px;
	right: 0;
	text-align: right;
}
footer a {
	color: white;
	background: #3d312d;
}


.contenu {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-start;
}


/* ASIDE */
aside {
	order: 2;
	width: 300px;
	margin-top: -20px;
	margin-left: 40px;
	text-align: justify;
	background: #ffffff;
}
aside h2 {
	text-align: center;
	font-size: 16px;
	margin: 0;
	margin-top: 0px;
	padding: 20px 10px;
	background: #80664f;
	color: #ffffff;
	font-weight: 500;
}
aside div {
	padding: 10px 5px;
}
aside p {
	padding: 0 20px;
}
aside a {
	color: #b45a00;
	font-weight: 600;
}
aside .dernierA {
	display: block;
	text-align: center;
	margin-top: 5px;
	text-shadow: 1px 6px 5px #f0cdae;
}



article {
	order: 1;
	flex: 2;
	height: 1250px;
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-start;
	align-items: flex-start;
}

section {
	width: 49.5%;
	margin-right: 10px;
	margin-bottom: 10px;
	background: #ffffff;
	color: black;
	box-shadow: 0 0 5px black;
}

section h2 {
	margin: 0;
	padding: 20px 10px;
	color: black; 
	font-size: 18px;
}
section:nth-child(even) h2 {
	background: #97c6a3;
}
section:nth-child(odd) h2 {
	background: #d1f9db;
}
.sections-autres:nth-child(odd):hover {
	background: #97c6a3;
}
.sections-autres:nth-child(even):hover {
	background: #d1f9db;
}



.jeu p {
	margin: 10px 0;
}
.jeu-img {
	display: flex;
	flex-flow: column nowrap;
	float: left;
	margin-right: 10px;
	margin-left: 5px;
}
.jeu-img img {
	width: 200px;
}
.jeu-img figcaption {
	font-style: italic;
	font-size: 80%;
}
.jeu ul {
	text-align: center;
	padding: 0;
}
.jeu li {
	display: inline-block;
}
.jeu li a {
	display: inline-block;
	margin: 4px 0;
	width: 54px;
	height: 27px;
	line-height: 27px;
	list-style-type: none;
	text-align: center;
	border: 1px solid #2e2e2e;
	border-radius: 2px;
	font-weight: 600;
	background: #ffffff;
}
.jeu li a:hover {
	background-color: yellowgreen; 
}



.deaflympics {
	text-align: justify;
	background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
	url("deaflympics.png");
	background-position: bottom;
	background-size: contain;
	background-repeat: no-repeat;
}
.deaflympics a {
	margin-bottom: 5px;
	margin-left: 10px;
	display: block;
	text-align: left; 
	font: caption;
	font-size: 12px;
}



.section-films a:hover {
	background: yellowgreen;
}






@media screen and (min-width: 2000px) {
	body {
		width: 1980px;
	}
}

@media screen and (max-width: 1290px) {
	header nav:hover {
		box-shadow: none;
	}
	article {
		display: flex;
		flex-flow: column nowrap;
	}
	section {
		width: 100%;
	}
	.jeu li a {
		width: 55px;
		height: 35px;
		line-height: 35px;
	}
}

@media screen and (min-width: 801px) and (max-width: 1000px) {
	header {
		margin-bottom: 11px;
	}
	aside {
		margin-left: 10px;
		margin-top: -12px;
	}
	aside h2 {
		font-size: 17px;
	}
	.jeu-img {
		float: none;
		align-items: center;
	}
	.jeu-img figcaption {
		margin-left: -30px;
	}
}

@media only screen and (max-width: 800px) {
	header {
		height: 100%;
		flex-wrap: wrap;
	}
	header img {
		order: 2;
		height: 150px;
	}
	header h1 {
		order: 3;
		padding: 0 30px;
		font-size: 110%;
	}
	header nav {
		order: 1;
		width: 100%;
		height: 100px;
		line-height: 100px;
	}
	header nav a {
		font-size: 90%;
	}
	header nav:hover {
		box-shadow: none;
	}
	footer {
		position: relative;
		bottom: -10px;
		width: 100%;
	}
	.contenu {
		display: flex;
		flex-flow: column nowrap;
		justify-content: center;
		align-items: center;
	}
	aside {
		width: 100%;
		margin: 0;
		margin-top: 10px;
	}
	aside h2 {
		font-size: 17px;
	}
	article {
		display: flex;
		flex-flow: column nowrap;
		justify-content: center;
		align-items: center;
	}
	section {
		margin: 5px auto;	
	}
	.jeu-img {
		float: none;
		align-items: center;
	}
	.jeu-img figcaption {
		margin-left: -30px;
	}
	.jeu li a {
		width: 70px;
		height: 50px;
		line-height: 50px;
	}
}

@media only screen and (max-width: 400px) {
	header {
		background: none;
		flex-direction: column;
		flex-wrap: nowrap;
	}
	header img {
		order: 3;
		height: auto;
		width: 60%;
	}
	header h1 {
		order: 2;
		padding: 10px;
		text-align: center;
		background: #80664f;
	}
}