@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

body {
	margin: 0;
	padding: 0;
	font-family: Lato;
}

/* LE FORMULAIRE DE COMMANDE */

#commande {
	background-color: #471809;
	width: 100%;
}

#box-commande {
	width: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 10px auto;
	font-family: 'Lato', sans-serif;
}

#box-commande .time-out {
	text-align: center;
	margin: 50px auto;
}

#box-commande .time-out h2, #box-commande .time-out i {
	color: #f1f1f1;
}

#box-commande .time-out i {
	font-size: 30px;
	margin: 50px auto;
}

#box-commande h1 {
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #FFF;
	font-size: 35px;
	text-align: center;
	margin: 70px auto 50px auto;
}

#box-commande h3 {
	display: block;
	text-transform: uppercase;
	letter-spacing: 3px;
	color: #FFF;
	font-size: 20px;
	text-align: left;
	margin-bottom: 20px;	
	text-shadow: 1px 1px 1px #000;
	line-height: 25px;
	padding: 10px 30px;
	border: none;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;	
    border-radius: 25px 4px 25px;
	box-shadow: 1px 2px 5px #ccc;
}

#box-commande p.note {
	font-size: 16px;
	margin: 0 auto;
	padding: 5px 0 10px 0;
	text-align: center;
	color: #FF0000;
	background-color: #E9DFDD;
	width: 40%;
	-moz-border-radius: 15px 5px;
	-webkit-border-radius: 15px 5px;
	border-radius: 15px 5px;
}

span.requis {
	color: #F00;
	font-size: 15px;
	padding-left: 3px;
}

.red {
	background-color:#F00;
}

#formulaire {
	margin: 50px auto;
	width: 900px;
	border: 1px solid #74544E;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;	
	border-radius: 25px 4px 25px;
}

.fieldset_commande {
	width: 80%;
	background-color: #DCCECB;
	color: #74544E;
	display: flex;
	flex-direction: column;
	margin: 30px auto;
	padding: 15px;
	border: 1px solid #FFF;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;	
    border-radius: 10px;
}

.fieldset_commande legend {
	font-family: 'Lato', sans-serif;
	margin: 0 0 0 20px;
	padding: 5px 35px;
	font-size: 20px;
	color: #FFF;	
	background-color: #B89A94;
	border: 1px solid #FFF;
	-webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    border-radius: 8px;
}

.fieldset_commande h4 {
	color: #74544E;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	margin: 20px auto;
}

.fieldset_commande .champ {
	width: 95%;
	height: 90px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-content: center;
	margin: 0px auto;
	padding: 5px;
}

.fieldset_commande .champ label {
	display: block;
	font-size: 14px;
	width: 90%;
	height: 40px;
	color: #74544E;
	margin: 0px;
	padding: 5px;
	border: none;
}

.fieldset_commande .champ input {
	display: block;
	color: #74544E;
	font-size: 14px;
	width: 90%;
	height: 40px;
	margin: 0px;
	padding: 5px;
	background: none;
	border: none;
	border-bottom: 2px dotted #74544E;
	caret-color: #74544E;
	border: 1px solid #74544E;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	border-radius: 5px;
}

input ~ span:after {
	content: attr(title);
	color: red;
	text-align: left;
	margin-left: 10px;
	margin-right: 5px;
	opacity: 0; 
	visibility: hidden;
	transition: 1s 1s opacity linear;
	background: none;
}

input:valid {
	background: none;
	outline: none;
}

input:invalid {
	border: 1px dotted #F00;
	color: #F00;
}

label.error {
	color: #F00;
}

input:invalid ~ span:after {
	visibility: visible;
	opacity: 1;
	font-size: 10px;
	color: #f00;
	text-align: left;
	letter-spacing: normal;
	background: none;
}

.fieldset_commande .champ input::placeholder {
	font-size: 14px;
	font-family: 'Lato', sans-serif;
	padding-left: 8px;
	color: #906760;
}

/* Quand l'utilisateur cliquera dans les champs pour les remplir */
.fieldset_commande .champ input[type="text"]:focus,
.fieldset_commande .champ input[type="email"]:focus {
	background-color: #DBEDFF;
	color: #74544E;
	outline: none; /* focus - Au clic dans le champ, un contour (outline) se dessine par défaut en dehors des bordures. */
}


/* Le formulaire des livres à commander */

.align_check {
	width: 90%;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}


/* ******************** C R E AT I O N   D E S   C H E C K B O X ****************** */

/*On supprime les cases à cocher réglées par les navigateurs.*/
.align_check input[type="checkbox"] {
	display: none;
}

/* On crée une nouvelle case à cocher. 
On sélectionne donc le label qui se trouve juste après la checkbox 
et on va mettre un bloc vide devant le label (checkbox non cochée). */
.align_check input[type="checkbox"] + label:after {
	display: inline-block;
	width: 25px;
	height: 25px;
	margin: 5px;
	background-color: #AD8C85;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	border-radius: 5px;
	border: 1px solid #624741;
	content: ''; /* La checkbox n'est pas cochée : on laisse le contenu vide. */
	vertical-align: middle;
}

/* La checkbox est cochée. */
.align_check input[type="checkbox"]:checked + label:after {
	content: '\2713'; /* On ajoute un contenu à notre checkbox : une coche. */
	color: #F2F2F2;
	font-weight: bold;
	background-color: #471809;
	text-align: center;
}

/* ****************** C R E AT I O N   D E S   C H E C K B O X   F I N ****************** */


/* ****************** Div qui contient les checkbox et les label ****************** */

.checkbox {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 10px;
	border: 1px solid #B89A94;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	-ms-border-radius: 5px;
	border-radius: 5px;
}

/* Le détail des livres (label) */
.livre {
	width: 130px;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	font-size: 16px;
	box-sizing: border-box;
	cursor: pointer;
	justify-content: center;
	align-items: center;
	margin-bottom: 8px;
	transition: 1s;
}

.livre:hover {
	color: #471809;
	font-weight: bold;
}

.vignette {
	width: 120px;
	height: 190px;
	padding: 0px;
	margin: 0px auto;
}

/* Le bouton submit */
#formulaire .bouton_commande {
	width: 50%;
	height: 45px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 30px auto;
	background-color: #AD8C85;
	color: #FFF;
	border-color: transparent;
	outline: none; /* focus */
	font-size: 15px;
	font-weight: bold;
	-webkit-border-radius: 20px;
    -moz-border-radius: 20px;
	-ms-border-radius: 20px;
	border-radius: 20px;
	box-shadow: 5px 5px 10px #404040;
	cursor: pointer;
	transition: 0.5s;
}

#formulaire .bouton_commande:hover {
	background-color: #800000;
	transform: translate(5px, 5px); /* Le carré va se déplacer de 5px sur l'axe des X (il va venir combler l'ombre à droite) et de 5px sur l'axe des Y (et va venir combler l'ombre en bas). Cela crée un effet d'appui sur le bouton. */
	box-shadow: 0 0 0;
	transition: 0.5s;
}

#conteneur_contact {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#conteneur_contact #contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 100px auto;
	padding: 0px 50px;
}

#conteneur_contact #contact h2 {
	margin-top: 0px;
	font-size: 35px;
	color: #333;
	text-transform: uppercase;
}

#conteneur_contact #contact i {
	font-size: 55px;
	color: #CC0000;
	margin: 0px auto 40px auto;
}

#conteneur_contact #contact a {
	text-decoration: none;
	padding: 20px;
	border-radius: 10px;
	font-size: 20px;
	background-color: rgba(117, 0, 0, 0.5);
	color: #FFE0E0;	
}

#conteneur_contact #contact a:hover {
	color: #f2f2f2;
	background-color: #800000;
}

#conteneur_contact #contact .msg {
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 45%;
	left: 50%;
	width: 300px;
	height: 35px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;
	border-radius: 20px;
	margin: auto;
	padding: 0 20px;
	/*color: #fff;*/
	font-size: 20px;
	transform: translate(-50%, -50%);
}

#conteneur_contact #contact .msg2 {
	width: 500px;
	height: 300px;
	margin: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}

#conteneur_contact #contact .felicitation {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0px auto;
	text-transform: uppercase;
}

#conteneur_contact #contact .felicitation h1 {
	margin: 0px auto 30px auto;
	font-size: 40px;
	color: #333;
}

#conteneur_contact #contact .felicitation h2 {
	font-size: 30px;
	color: #333;
}

#conteneur_contact #contact .felicitation i {
	font-size: 55px;
	color: #00A1D6;
	margin: 0px auto 40px auto;
}

.box-result-commande1 {
	width: 50%;
	border: none;
	margin: 0px auto 30px auto;
	padding: 10px;
}

p.result_commande-bonjour {
	font-size: 25px;
	color: #C7F1FF;
	margin: 0px auto;
	padding-top: 10px;
	text-align: center;
	border: none;
}

.box-result-commande2 {
	width: 50%;
	border: 1px solid #C7F1FF;
	margin: 0px auto 30px auto;
	padding: 10px 20px;
}

.result_commande {
	font-size: 20px;
	color: #f1f1f1;
}

.livres-choisis {
	font-size: 15px;
	color: #f1f1f1;
	line-height: 25px;
}

.result_commande a {
	font-size: 20px;
	color: #f1f1f1;
	text-decoration: none;
	border-bottom: 2px dotted #00A1D6;
}

.result_commande a:hover {
	font-size: 20px;
	color: #00A1D6;
	text-decoration: none;
	border-top: 2px dotted #f1f1f1;
	border-bottom: 2px dotted #f1f1f1;
}

.centrer {
	text-align: center;
}

.box-result-commande2 h2 {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #C7F1FF;
	margin: 0 auto;
	padding: 0;
	font-weight: bold;
	text-align: center; 
}



/* MEDIA QUERIES POUR LES ECRANS INFERIEURS A 1024PX */

@media screen and (max-width: 1024px) {
	#box-commande {
		width: 90%;
		margin: 10px auto;
	}
	
	#box-commande h1 {
		letter-spacing: 1px;
		font-size: 30px;
		margin: 50px auto 30px auto;
	}
	
	p.note {
		font-size: 13px;
		padding: 8px;
		width: 43%;
	}
	
	#box-commande h3 {
		letter-spacing: 2px;
		font-size: 16px;
		margin-bottom: 15px;
		line-height: 20px;
	}
	
	#formulaire {
		width: 100%;
	}
	
	.fieldset_commande {
		width: 90%;
		padding: 10px 5px 10px 5px;
	}
	
	.fieldset_commande h4 {
		font-size: 15px;
	}

	.fieldset_commande legend {
		margin: 0 0 0 20px;
		padding: 5px 20px;
		font-size: 16px;
	}

	.fieldset_commande .champ input::placeholder {
		font-size: 14px;
	}
	
	.align_check input[type="checkbox"] + label:after {
		width: 20px;
		height: 20px;
	}
	
	.paypal {
		display: none;
	}
	
	.msg {
		top: 55%;
		font-size: 17px;
	}
	
	.msg2 {
	width: 100%;
	}
	
}

