/* Déclaration des polices (from https://www.fontsquirrel.com/) */

@font-face {
	font-family: "aquiline2";
	src:url("fonts/aquilinetwo/aquiline2.ttf") format("TrueType"),
		url("fonts/aquilinetwo/aquiline2.woff") format("woff");
}

@font-face {
	font-family: "deutsch";
	src:url("fonts/deutschgothic/deutsch.ttf") format("TrueType"),
		url("fonts/deutschgothic/deutsch.woff") format("woff");
}

@font-face {
	font-family: "hominis";
	src:url("fonts/hominis/hominis.ttf") format("TrueType"),
		url("fonts/hominis/hominis.woff") format("woff");
}

@font-face {
	font-family: "kingthings";
	src:url("fonts/kingthings/kingthings.ttf") format("TrueType"),
		url("fonts/kingthings/kingthings.woff") format("woff");
}

@font-face {
	font-family: "rothenbg";
	src:url("fonts/rothenburg/rothenbg.ttf") format("TrueType"),
		url("fonts/rothenburg/rothenbg.woff") format("woff");
}

@font-face {
	font-family: "truecrimes";
	src:url("fonts/truecrimes/true-crimes.ttf") format("TrueType"),
		url("fonts/truecrimes/true-crimes.woff") format("woff");
}



body
{
	color: #181818;
	font-family: Verdana, sans-serif;
	background-color: white;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	text-align: justify; /* Ne pas cibler les <p> car trop précis */
}

#main_wrapper
{
	width: 990px;
	margin: auto;
}

section
{
	margin: 50px 0;
}

section p
{
	text-indent: 30px;
}

/* <header> */

header
{
	text-align: center;
	color: #FFFFFF;
	background-color: #333333;
	box-shadow: 0px 4px 4px black;
	margin: -24px -8px 0 -8px;
	padding: 15px 20px 5px 20px;
	
	position: sticky;
	top: -133px;
	z-index: 1000;
}

header h1 a
{
	color: unset;
	text-decoration: none;
}

header h1 a:hover
{
	color: unset;
}

header nav
{
	margin-top: 40px;
}

header nav ul
{
	list-style-type: none;
	padding: 0;
	display: flex;
	justify-content: space-around;
}

header nav ul a
{
	color: white;
	text-decoration: none;
	padding: 10px;
	font-size: 1.2em;
	border-radius: 5px;
	transition: 300ms;
}

header nav ul a:hover
{
	color: white;
	background-image: linear-gradient(0deg, #6D071A, transparent 30%);
}

h2
{
	color: #920F29;
}


/* <a> */

a
{
	color: #0000CD;
}

a:hover
{
	color: #6D071A;
}

h2 a, h3 a, h4 a, h5 a, h6 a
{
	color: unset;
	text-decoration: none;
}



/* Tableaux */


table
{
	border-collapse: collapse;
	margin: auto;
	background-color: #FFF7F7;
	width: 100%;
}

td, th
{
	border: 1px solid black;
	padding: 5px 7px;
}

th
{
	text-align: center;
	color: white;
	background-color: #6D071A;
}

caption /* L'élément <caption> devrait être le premier élément enfant de l'élément parent <table>. */
{
	padding: 10px;
	caption-side: bottom; /* Afficher en dessous tu tableau */
}

.table_contain
{
	overflow: auto;
}

.tab_annales 
{
	font-size: .9em;
}

.tab_annales tr:hover
{
	background-color: tomato;
}

.tab_annales td, .tab_annales th
{
	border: 2px solid black;
}

.tab_annales .tab_link_s, .tab_annales .tab_link_c
{
	padding: 0;
}

.tab_annales .tab_link_s
{
	border-right-width: 1px;
}

.tab_annales .tab_link_c
{
	border-left-width: 1px;
}

.tab_link_s a, .tab_link_c a
{
	color: unset;
	text-decoration: none;
	display: flex;
	padding: 5px 9px;
	background-color: #FFF7F7;
}

.tab_link_s a:hover, .tab_link_c a:hover
{
	background-color: darkred;
	color: white;
}



/* <footer> */

footer
{
	background-color: silver;
	margin: 40px -8px -8px -8px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 -3px 3px silver;
}

.byebye
{
	text-align: center;
	margin: 30px 0 50px 0;
}

.byebye a
{
	text-decoration: none;
	color: red;
	padding: 5px;
	border: 1px solid red;
	border-radius: 7px;
	transition: 200ms;
}

.byebye a:hover
{
	color: white;
	background-color: red;
	text-decoration: none;
}

/* exam.php */


.tab_calendrier
{
	font-size: 0.9em;
}



.box_rebours
{
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.box_jour, .box_heure, .box_minute, .box_seconde
{
	padding: 3px;
}

.num_date
{
	background: black;
	padding: 2px 4px;
	color: white;
	font-weight: bold;
}

.label_date
{
	font-size: .8em;
}


.tab_dcg_axe
{
	color: white;
	background-color: darkred;
	text-align: center;
}



/* entrainement.php */


#nav_qcm_ue ul
{
	list-style-type: none;
	padding: 0;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

#nav_qcm_ue ul li
{
	margin: 20px;
	width: 280px;
	/*border: 1px solid black;*/
}

#nav_qcm_ue a
{
	display: inline-block;
	width: 90%; /* mettre une bordure ai <li> parent pour comprendre */
	text-decoration: none;
	background-color: darkred;
	color: white;
	padding: 10px;
	transition: 400ms;
	border-radius: 10px;
	border: 1px solid black;
}

#nav_qcm_ue a:hover
{
	background-color: tomato;
	color: black;
}


.liste_correctiion li
{
	margin: 20px 0;
}




/* simulateur.php */

.alert6
{
	font-size: .7em;
}

#dcg_avance_ou_pas, #dscg_avance_ou_pas, #dec_avance_ou_pas
{
	font-size: .8em;
	font-weight: normal;
}


/* commentaires.php */

form p
{
	text-indent: 0;
}

fieldset
{
	border: 2px solid black;
	background-color: peachpuff;
}

legend
{
	font-weight: bold;
}

form textarea
{
	width: 100%;
	box-sizing: border-box; /* Sinon mal centré */
	max-width: 938px; /* Sécurité CSS (champ redimensionnable) */
}

#submit_comm
{
	text-align: right;
}

#contain_comments
{
	margin-top: 40px;
}

.message_total
{
	background-color: palegreen;
	padding: 5px 15px;
	margin: 15px 0;
	position: relative;
}

.msg_admin
{
	background-color: lightskyblue;
}

.message_total p
{
	text-indent: 0;
	word-break: break-word;
}

.ping, .ping_admin
{
	border-radius: 3px;
}

.ping
{
	color: maroon;
}

.ping:hover
{
	color: white;
	background-color: maroon;
}

.ping_admin
{
	color: red;
}

.ping_admin:hover
{
	color: white;
	background-color: red;
}

.etiquettes
{
	text-align: right;
	margin: 5px 0;
}

.like
{
	cursor: help;
	color: red; /* Vieux navigateurs */
}

.protect
{
	cursor: help;
}

/* Vue Admin */
.suppr_msg, .like_msg, .protect_msg
{
	display: none;
	position: absolute;
	top: 5px;
	width: 20px;
}

.suppr_msg
{
	right: 5px;
}
.suppr_msg a
{
	text-decoration: none;
	color: red;
	font-size: 1.2em;
	display: flex;
    justify-content: center;
}
.suppr_msg a:hover
{
	color: white;
	background-color: red;
}

.like_msg
{
	right: 35px;
}
.like_msg a
{
	text-decoration: none;
	color: black;
	display: flex;
    justify-content: center;
}
.like_msg a:hover
{
	background-color: white;
}

.protect_msg
{
	right: 65px;
}
.protect_msg a
{
	text-decoration: none;
	display: flex;
    justify-content: center;
}
.protect_msg a:hover
{
	background-color: white;
}

.ip_msg
{
	display: none;
	position: absolute;
	top: 9px;
	right: 95px;
	background-color: orange;
}

.message_total:hover .suppr_msg, .message_total:hover .like_msg, .message_total:hover .protect_msg, .message_total:hover .ip_msg
{
	display: block;
}










@media all and (max-width: 1024px)
{
	#main_wrapper
	{
		width: auto;
	}
	
	header
	{
		position: static;
	}
	
	header nav ul
	{
		display: block; /* Reste à comprendre pourquoi "flex-direction: column;" bug... */
	}
	
	header nav ul li
	{
		margin: 10px 0;
	}

	header nav ul a
	{
		padding: 0;
	}
}


@media all and (min-width: 1024px)
{
	/* exam.php */
	.tab_calendrier
	{
		min-width: 952px;
	}
}
