/* ////////////////////////////////////////////////// GÉNÉRAL ////////////////////////////////////////////////// */

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
strong,
em,
a {
	margin-top: 0;
	color: #21154d;
}

ul {
	padding-left: 20px;
}

sup {
	font-size: 0.5em;
}

body {
	max-width: 670px;
	margin: 3vw 3vw;
	font-family: 'ubuntu', "Trebuchert MS", sans-serif;
	font-size: 18px;
	background-color: #e1e4ed;
	background-image: url("images/motif.png");
	background-position: center;
	background-size: 80px;
	background-attachment: fixed;
}

@media all and (min-width: 360px) {
	#form-ajout-msg {
		padding: 30px;
		padding-bottom: 32.5px;
	}

	#messages {
		padding: 40px 15px;
	}
}

@media all and (min-width: 720px) {
	body {
		margin: 5vw auto;
	}

	#form-ajout-msg {
		padding: 40px;
	}

	#messages {
		padding: 50px 40px;
	}
}

@media all and (min-width: 1080px) {
	body {
		max-width: 800px;
		margin: 5vw auto;
	}
}

.bouton {
	position: relative;
	top: -3px;
	border: 0;
	font-size: 9vw;
	border-radius: 100%;
	background: white;
	box-shadow: 0 5px 0 #aca7c1;
	transition: 0.3s;
}

@media all and (min-width: 360px) {
	.bouton {
		font-size: 25px;
	}
}

.bouton:hover {
	cursor: pointer;
	top: -1px;
	box-shadow: 0 3px 0 #aca7c1;
	transition: 0.15s;
}

.bouton-rectangle {
	padding: 4px 10px 5px;
	margin-bottom: 3px;
	border: 0;
	border-radius: 15px;
	font-size: 16px;
	color: #21154d;
	background-color: #00f2b8;
	box-shadow: 0 3px 0 rgba(0, 141, 127, 0.66);
	transition: margin-bottom 0.3s, box-shadow 0.3s;
}

.bouton-rectangle:hover {
	margin-bottom: 1px;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(0, 141, 127, 0.66);
	transition: margin-bottom 0.15s, box-shadow 0.15s;
}

section:not(#billets-blog),
.billet-blog {
	background-color: white;
	border-radius: 30px;
	box-shadow: 1.5px 1.5px 0 #d2cee0;
	margin-bottom: 30px;
}


/* ////////////////////////////////////////////////// HEADER ////////////////////////////////////////////////// */

header {
	text-align: center;
}

header a {
	text-decoration: none;
}

header h1 {
	font-size: 28vw;
	line-height: 28vw;
	margin: 11vw 0 8vw;
	color: #21154d;
}

@media all and (min-width: 360px) {
	header h1 {
		font-size: 85px;
		line-height: 85px;
		margin: 40px 0 30px;
	}
}

@media all and (min-width: 720px) {
	header h1 {
		font-size: 100px;
		margin: 90px 0 50px;
	}
}

header span {
	display: inline-block;
	-webkit-transform: rotate(2.5deg);
	transform: rotate(2.5deg);
	margin: 0 3px 0 -3px;
}

header span:first-child {
	color: #00F2B8;
	text-shadow: 4px 4px 0 #008d7f, -1.5px -1.5px 0 white;
}

header span:nth-child(2) {
	color: #ff3e44;
	text-shadow: 4px 4px 0 #9a181b, -1.5px -1.5px 0 white;
}

header span:last-child {
	margin: 0 10px;
	-webkit-transform: rotate(-2.5deg);
	transform: rotate(-2.5deg);
	color: #21154d;
}




/* ////////////////////////////////////////////////// BILLETS ////////////////////////////////////////////////// */

.titre-billet-blog {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 34px;
	padding: 12px 30px 8px;
	border-radius: 30px 30px 0 0;
	background-color: #534685;
}

.titre-billet-blog h2 {
	display: inline-block;
	line-height: 1.15em;
	margin: 0;
	font-size: 26px;
	color: white;
}

/* date et heure */
.titre-billet-blog em {
	position: relative;
	top: 2.5px;
	margin-left: 7.5px;
	font-size: 14px;
	color: white;
	opacity: 0.66;
}


.texte-billet-blog {
	position: relative;
	padding: 20px 30px 40px;
	border-radius: 30px 30px 0 0;
}

.voir-commentaires {
	position: absolute;
	right: 30px;
	bottom: 15px;
}


/* Bouton Retour au blog */
#retour-blog {
	position: relative;
	display: block;
	margin: auto;
	top: 1px;
	margin-bottom: 30px;
	padding: 5px 15px 7px;
	font-size: 18px;
	text-decoration: none;
	transition: top 0.3s, box-shadow 0.3s;
}

#retour-blog:hover {
	top: 3px;
	cursor: pointer;
	box-shadow: 0 1px 0 #008d7f;
	transition: top 0.15s, box-shadow 0.15s;
}


/* ////////////////////////////////////////////////// COMMENTAIRES ////////////////////////////////////////////////// */

#commentaires-blog,
#form-ajout-com {
	padding: 30px;
	margin-left: 70px;
	margin-right: 70px;
}

/* Pas encore de billet */
#commentaires-blog>em {
	display: block;
	text-align: center;
	opacity: 0.5;
}

.commentaire-blog {
	background-color: #f0edf7;
	margin-bottom: 15px;
	padding: 15px;
	border-radius: 15px;
}

.commentaire-blog:last-child {
	margin-bottom: 0;
}

#commentaires-blog h2 {
	text-align: center;
	font-size: 22px;
	margin: -10px 0 10px;
}

/* date et heure */
.commentaire-blog em {
	margin-left: 2.5px;
	font-size: 14px;
	opacity: 0.5;
}

.texte-commentaire-blog p:last-child {
	margin-bottom: 0;
}




/* ////////////////////////////////////////////////// SECTION FORMULAIRE AJOUT DE COMMENTAIRE ////////////////////////////////////////////////// */

#form-ajout-com {
	color: white;
	background-color: #534685 !important;
}

#form-ajout-com form {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	height: 325px;
}

@media all and (min-width: 720px) {
	#form-ajout-com form {
		flex-direction: row;
		justify-content: space-around;
		height: 150px;
	}
}

#form-ajout-com form>div {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 100%;
}

#ajout-com-message {
	margin-top: 10px;
	margin-right: 15px;
}

@media all and (min-width: 720px) {
	#ajout-com-message {
		margin-top: 0;
	}
}

#ajout-com-pseudo-et-envoi {
	margin-top: 40px;
}

@media all and (min-width: 720px) {
	#ajout-com-pseudo-et-envoi {
		margin-top: 0;
		width: 400px !important;
		margin-left: 15px;
		align-items: flex-end !important;
	}
}

#ajout-com-pseudo {
	text-align: center;
	width: 100%;
}

#ajout-com-envoi {
	width: 66.66%;
}

#form-ajout-com form label {
	display: block;
	margin: -15px 0 10px;
}

#form-ajout-com textarea,
#form-ajout-com input {
	width: 100%;
	height: 100%;
	padding: 15px 20px;
	border: none;
	font-size: 18px;
	color: #21154d;
	border-radius: 15px;
	box-sizing: border-box;
	resize: none;
	transition: 0.3s;
}

#form-ajout-com input {
	padding: 12.5px 20px;
}

#form-ajout-com textarea:focus,
#form-ajout-com input:focus {
	outline: 0;
	background: #fefac3;
	transition: 0.15s;
}

#ajout-com-envoi input:focus {
	background: #a7f7bf;
}

#ajout-com-pseudo input {
	text-align: center;
}

#ajout-com-envoi input {
	position: relative;
	top: -3px;
	background: #00f2b8;
	font-weight: bold;
	box-shadow: 0 6px 0 #008d7f;
	transition: 0.3s;
}

#ajout-com-envoi input:hover {
	top: -1px;
	background: #00f2b8;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 0 #008d7f;
	transition: 0.15s;
}



/* ////////////////////////////////////////////////// NAV ////////////////////////////////////////////////// */

nav {
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: relative;
	margin: 20px 0;
	text-align: center;
}

@media all and (min-width: 360px) {
	nav {
		justify-content: center;
	}
}

@media all and (min-width: 720px) {
	nav {
		margin: 30px 0;
	}
}

@media all and (min-width: 1080px) {
	nav {
		margin: 40px 0;
	}
}

nav button,
nav p,
#actualiser {
	width: 15vw;
	height: 15vw;
	font-weight: bold;
}

.nav-reduit {
	width: 12vw;
	height: 12vw;
	font-size: 4vw;
}

nav button:disabled {
	top: -1px;
	color: #c4cadc;
	background: #f2f1f7;
	box-shadow: 0 1.5px 0 #d2cee0;
}

nav button:disabled:hover {
	cursor: initial;
	box-shadow: 0 1.5px 0 #d2cee0;
}

nav button:focus {
	outline: none;
}

@media all and (min-width: 360px) {

	nav button,
	nav p,
	#actualiser {
		width: 50px;
		height: 50px;
		margin: 0 7.5px;
		font-weight: bold;
	}

	.nav-reduit {
		width: 40px;
		height: 40px;
		font-size: 12px;
	}
}

nav button:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: 66%;
	background-repeat: no-repeat;
	background-position: center;
}

nav form:nth-of-type(1) button:before {
	background-image: url("images/fleche-double.svg");
	transform: scaleX(-1);
}

nav form:nth-of-type(2) button:before {
	background-image: url("images/fleche.svg");
	transform: scaleX(-1);
}

nav form:nth-of-type(3) button:before {
	background-image: url("images/fleche.svg");
}

nav form:nth-of-type(4) button:before {
	background-image: url("images/fleche-double.svg");
}

nav button:disabled:before {
	opacity: 0.2;
}

nav p {
	position: relative;
	margin: auto 0;
	width: 18vw;
	font-size: 7vw;
	line-height: 8vw;
}

@media all and (min-width: 360px) {
	nav p {
		width: 100px;
		font-size: 20px;
		line-height: 50px;
		vertical-align: center;
	}
}