/* badinages.fr */

@font-face {
	font-family: KG;
	src: url("font/KGDefyingGravityBounce.ttf");
}

@font-face {
	font-family: Gabriola;
	src: url("font/Gabriola.ttf");
}

/* Mise en page pour grands écrans d'abord */
html {
	background-color: #141414;
}

body {
	margin: 0 auto;
	font-family: "sans-serif"; 
	font-size: 14px;
	width: 100%;
}

a {
	cursor: pointer;
	text-decoration: none; 
	color: #171717;
}

li {
	list-style-type: none;
}

header {
	font-family: KG;
}
nav {
	font-family: Gabriola;
}



/* HEADER */
header {
	padding: 110px 5px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background: rgb(255, 187, 0);  
}

h1 {
	margin: 0;
	text-align: center;
	font-size: 60px;
	color: #141414;
	font-weight: 600; /*à changer ?*/
}
.sous-titre {
	font-size: 38px;
}



/* FOOTER */
footer {
	display: block;
	padding: 30px 15px;
	padding-top: 40px;
	line-height: 25px;
	font-size: 13px;
	background: rgb(255, 187, 0); 
}
footer, footer a {
	color: #141414;
}
footer a:hover {
	font-weight: 600;
}
.ecartement {
	padding: 0 5px;
}
footer div:nth-child(3) {
	margin-top: 20px;
}
footer div:last-child {
	margin-top: 25px;
	font-family: KG;
	font-size: 30px;
}




/* MAIN PAGE */
.main {
	margin: 110px auto;
}




/* NAV*/
nav {
	position: -webkit-sticky;
	position: sticky;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 10px;
	margin-top: 200px;
	float: left;
}
nav ul {
	margin: 0;
	padding: 0;
	text-align: center;
}
nav ul li {
	margin: 50px 0;
	margin-left: 10px;
	cursor: pointer;
	display: block;
	width: 105px;
	height: 100px;
	line-height: 100px;
	color: whitesmoke;
	box-shadow: inset 0 0 10px 1px #0c0c0c, 0px -1px 6px 2px #323232, 1px 7px 3px 6px black;
	background: #141414;
	text-decoration: none;
	font-size: 22px;
	border-radius: 50%;
}

/* AU CLIC */
.li-litterature:active,
.li-jeux:active {
	box-shadow: inset 0 0 4px 1px #323232, inset 0px 0px 10px 5px #0c0c0c, 0 2px 10px black;
}




/* ARTICLES */
article {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	margin-left: 150px;
}

section {
	width: 300px;
	height: 380px;
	margin: 20px;
	padding: 5px;
	padding-bottom: 0;
	border: 3px solid rgb(193, 142, 0);
	border-radius: 2px;
	background-color: black;
	box-shadow: none;
	transition: all 0.3s ease;
}
section:hover {
	box-shadow: 12px 12px 6px 1px black;
	width: 320px;
	height: 400px;
}

section h2, section p {
	padding: 0 5px;
}
section div {
	height: 180px;
	overflow: hidden;
}
section img {
	width: 100%;
	min-height: 100%;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 2px;
}
section h2 {
	margin-top: 10px;
	margin-bottom: 12px;
	font-family: Gabriola;
	font-size: 25px;
	font-weight: 500; 
	color: rgb(193, 142, 0);
}
section p {
	text-align: justify;
	color: #bdae99;
	line-height: 21px;
}
.center {
	text-align: center;
}







/* PARTIE LITTERATURE */
.article-histoires {
	flex-flow: column wrap;
	justify-content: flex-start;
	align-items: center;
	height: 2000px;
	margin-left: 0;
}
.section-histoires {
	width: 530px;
	height: auto;
}
.section-histoires div {
	height: 300px;
}
.section-histoires:nth-child(3) h2,
.section-histoires:nth-child(3) p {
	text-align: center;
}

/* Pour faciliter la lecture */
.section-histoires:hover {
	box-shadow: none;
	width: 530px;
	height: auto;
	background-color: aliceblue;
}
.section-histoires:hover p {
	color: black;
}
.section-histoires:hover h2 {
	font-weight: 600;
}

/* AU CLIC SUR SECTION */
.remplacement-bg {
	background-color: aliceblue;
}
.remplacement-p {
	color: black;
}
.remplacement-h {
	font-weight: 600;
}








@media only screen and (max-height: 450px) {
	nav {
		margin-top: 150px;
	}
	nav ul li {
		width: 90px;
		height: 80px;
		line-height: 80px;
		font-size: 21px;
	}
	body {
		font-size: 15px;
	}
	section h2 {
		font-size: 26px;
	}
}


@media only screen and (max-width: 1200px) {
	.section-histoires {
		margin: 10px;
		width: 45%;
	}
	.section-histoires:hover {
		width: 45%;
	}
}
@media only screen and (max-width: 1000px) {
	.article-histoires {
		flex-flow: column nowrap;
		height: 100%;
	}
	.section-histoires {
		width: 65%;
		margin: 30px auto;
	}
	.section-histoires:hover {
		width: 65%;
	}
}


@media only screen and (max-width: 900px) {
	section {
		margin: 10px;
	}
}


@media only screen and (max-width: 850px) {
	.section-histoires {
		width: 80%;
	}
	.section-histoires:hover {
		width: 80%;
	}
}
@media only screen and (max-width: 550px) {
	.section-histoires {
		width: 95%;
	}
	.section-histoires div {
		height: 200px;
	}
	.section-histoires:hover {
		width: 95%;
	}
}


@media only screen and (max-width: 500px) {
	body {
		font-size: 15px;
	}
	nav {
		float: none;
		position: relative;
		top: 0;
		transform: none;
		display: flex;
		justify-content: center;
		margin: 0;
		margin-bottom: 40px;
	}
	nav ul {
		display: inline-block;
	}
	nav ul li {
		display: inline-block;
		margin: 0 20px;
		width: 100px;
		height: 90px;
		line-height: 90px;
		font-size: 23px;
	}
	nav ul li a {
		display: inline-block;
	}
	
	.main {
		margin-top: 40px;
	}
	
	article {
		margin-left: 0;
	}
	section {
		width: 90%;
		height: 100%;
	}
	section h2 {
		font-size: 26px;
	}
}


@media only screen and (max-width: 200px) {
	* {
		overflow-wrap: break-word;
		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		-ms-hyphens: auto;
		-o-hyphens: auto;
		hyphens: auto;
	}
}