* {
	box-sizing: border-box;
	/*border: 1px solid red;*/
}

html {
	margin: 0;
	padding: 0;
	font-size: 62.5%; 
}

body {
	margin: 0 auto;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-size: 1.4rem;
	color: #1d191a;
	background-color: #F7F7F7;
	line-height: 1.8;
}
 

a, a:hover, a:visited, a:active {
	text-decoration: none;
}

a {
	color: #af042f;
	font-weight: bold;
}

a:hover {
	color: green;
}

img {
	max-width: 100%; 
}

ul {
	list-style: none;
	padding-left: 0;
}

h1 {
	padding: 0;
	text-align: center;
	font-size: 4.5rem;
	font-weight: bold;
	font-family: 'Fredericka the Great', cursive;
}

h2 {
	margin-top: 6rem;
	margin-bottom: 2rem;
	padding: 1rem;
	font-size: 2.8rem;
	font-weight: bold;
	/*color: #af042f;*/
	font-family: 'Fredericka the Great', cursive;
	border-top: dotted;
	border-bottom: dotted;
	line-height: 1;
}

h3 {
	margin-top: 2rem;
	margin-bottom: 2.5rem;
	padding: 1rem;
	font-size: 2rem;
	font-weight: bold;
	color: #af042f;
	font-family: 'Fredericka the Great', cursive;
	line-height: 1;
}

table {
	border-collapse: collapse !important;
	border-top: none !important;
	border-bottom: 3px solid #1d191a !important;
	width: 90% !important;
	margin: 0 auto !important;
}

td, th {
	border-bottom: 1px solid #1d191a !important;
	text-align: left !important;
}

/*thead th {
	top: 0;
	position: sticky;
	z-index: 20;
}*/

.col-sticky {
	left: 0;
	position: sticky;
	z-index: 50;
}

tr:nth-child(even) {
	background: #F7F7F7 !important;
}

tr:hover {
	transition: 0s !important;
	background: #e0d7dd !important;
}

fieldset {
	border-radius: 10px;
	padding: .7rem 2rem;
}

legend {
	padding: 0 1rem;
	margin: 0 1.5rem;
}

input, select, textarea {
	border-radius: 8px;
	padding: .5rem;
}

.menuIntermediaire {
	display: flex;
	justify-content: space-around;
	margin-top: 6rem;
	margin-bottom: 2rem;
	padding: 1rem;
	font-size: 2rem;
	font-weight: bold;
	/*color: #af042f;*/
	/*font-family: 'Fredericka the Great', cursive;*/
	border-top: dotted;
	border-bottom: dotted;
	line-height: 1;
}


.block {
	display: block;
}


/* --------------------- Pavé de connexion ------------------------- */

.pageConnexion {
	background-color: #1d191a;
	color: #ffffff; 
}

.hPageConnexion {
	line-height: 1.4;
	margin-top: 5rem;
}

#paveConnexion {
	margin: 6rem auto;
	max-width: 500px;
	min-height: 300px;
	border: 1px solid #1d191a;
	border-radius: 1rem;
	padding: 0 2rem;
	box-shadow: .8em 1em 4.5em #ffffff;
}

.logoConnexion {
	width: 7rem;
	position: relative;
	top: -3.7rem;
	float: right;
}

#paveConnexion .citation {
	text-align: center;
	font-size: 1.3rem;
}

.formConnexion {
	margin-top: 3rem;
	
}

.formConnexion p {
	width: 75%;
	margin: 2rem auto;
}

.formConnexion input {
	width: 100%;
}

.formConnexion label {
	font-size: 1.3rem;
	margin-left: 1.5rem;
}

.btnFormConnexion {
	width: 250px;
	height: 4.5rem;
	margin-top: 1.8rem;
}



/* -------------------- HEADER -------------------------------------- */

header, footer {
	background-color: #1d191a;
	color: #ffffff;
	margin-top: 0;
	margin-bottom: 0;
}

header {
	padding: 0 0 1rem 0;
	margin-bottom: 1.5rem;
	border-radius: 0 0 1rem 1rem;
	box-shadow: 0 .2em .3em #aaaaaa;
}

.headerFootContent {
	max-width: 1000px;
	margin: 0 auto;
}

#middleHeader, #bottomHeader, #topFooter, #bottomFooter {
	padding: 1rem;
}

header a:hover, footer a:hover {
	color: #ffffff;
}

header ul, footer ul {
	list-style-type: none;
	padding-left: 0;
}

#topHeader {
	display: none;
}

#btnTDL {
	display: none;
}

.logo {
	width: 7rem;
	padding-left: 1rem;
}

.userConnected {
	text-align: right;
}

.userConnected i {
	font-size: 1.8rem;
	padding: 0 1rem;
}

#topnav ul {
	display: flex;
	justify-content: center;
	border-top: 1px dotted #ffffff;
	border-bottom: 1px dotted #ffffff;
}

#topnav li {
	padding: 0.7rem 1.8rem;
	font-size: 1.5rem;
}

#topnav li:hover {
	background: #ffffff;
	color: #af042f;
}


.devise {
	clear: both;
	text-align: center;
	font-size: 5rem;
	font-weight: bold;
	font-family: 'Fredericka the Great', cursive;
	line-height: 1.5;
}

.devise a {
	color: #ffffff;
}








/* ------------------------- MAIN ----------------------------------------------------- */
/* Ce qui concerne le corps du site */


#maincontent {
	background-color: #ffffff;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 1.5rem 2rem 6rem;
	border-radius: 1rem;
	box-shadow: .1em 0 .9em #aaaaaa, -.1em 0 .9em #aaaaaa;
}

aside {
	font-size: 1.1rem;
}

.screenGF {
	display: none;
}

.required:after {
	content: " *";
}

.instruction {
	font-style: italic;
	font-size: 1.2rem;
}

.message {
	border-radius: 1rem;
	padding: 1rem 2rem;
}

.messageNeutre {
	background-color: yellow;
}

.messageOK {
	border: 1px solid green;
	background-color: #59f76b;
}

.messageNotOK {
	border: 1px solid red;
	background-color: #f76c6c;
}

.display {
	display: none;
}

.cache {
	display: none;
}

.btnToggle, .btnToggle1, .btnToggle3 {
	cursor: pointer;
}

.trucQuiToggle {
	display: none;
}

.trucQuiToggleToDoList {
	display: none;
}

.trucQuiToggleShow {
	display: block;
}

.btnEveM {
	transition: .7s;
	background-color: #af042f;
	text-align: center;
	font-weight: bold;
	padding: .5rem 1rem;
	border-radius: 1rem;
	border: 1px solid black;
	border-style: inset;
	cursor: pointer;
	color: #ffffff;
	opacity: .8;
}

.btnEveM:hover {
	/*-webkit-transform: scale(0.95);
	-moz-transform: scale(0.95);
	-o-transform: scale(0.95);
	transform: scale(0.95);*/
	opacity: 1;
}

.formMiddle {
	margin: 0 auto;
	text-align: center; 
}

.formFlex label {
	color: #af042f;
	font-weight: bold;
}

.formFlex input {
	width: 120px;
}


/* Pages matches et joueurs -------------------------------------------------- */

.new {
	text-align: right;
	margin: 5rem 0;
}

.btnNew {
	padding: 1.5rem 3rem;
}

.new i {
	padding-left: 1rem;
	font-size: 2rem;
}

.zoneNew {
	max-width: 750px;
	margin: 0 auto;
}

.ligneNew input, .ligneNew select, .ligneNew textarea {
	width: 100%;
}

.ligneNew label {
	color: #af042f;
	font-weight: bold;
}

.uploadPhoto {
	padding: .5rem 1rem;
	border-radius: 1rem;
	border: 1px solid black;
	border-style: inset;
	cursor: pointer;
}


/* Page ACCUEIL -------------------------------------------------------------------- */


.accueilStats {
	margin-bottom: -3rem;
}

.accueilStats h3 {
	margin-top: 1.5rem;
}

.accueilStats fieldset {
	margin-bottom: 2rem;
}

.accueilStats legend {
	font-weight: bold;
	font-size: 2rem;
	font-family: 'Fredericka the Great', cursive;
	color: #af042f;
}

.accueilStats p {
	text-align: center;
	line-height: 1.2;
	/*font-family: 'Fredericka the Great', cursive;*/
	font-size: 1.8rem;
}

.detailMatches {
	display: flex;
	justify-content: space-between;
}

.detailMatches p {
	width: 33%;
}

.nbreMatchesJoues {
	font-family: 'Fredericka the Great', cursive;
	font-size: 4rem;
}

.nbreDetailMatches {
	font-family: 'Fredericka the Great', cursive;
	font-size: 3rem;
	font-weight: bold;;
}





/* Pages JOUEURS -------------------------------------------------------------------------- */

.zoneRecherche {
	max-width: 750px;
	margin: 0 auto;
}

#rechercheJoueurs input {
	width: 100%;
}

.joueurNom {
	text-transform: uppercase;
}

.joueurPrenom {
	text-transform: capitalize;
}

.iconePF {
	width: 25px;
	position: relative;
	top: .6rem; 
}

.joueurActiforNot {
	float: right;
	font-size: 5rem;
	margin: 0;
	padding: 0;
}

.joueurActiforNot i {
	margin: 0;
	padding: 0;
}

.fa-check {
	color: green;
}

.fa-times {
	color: red;
}

#identite h3 {
	margin-top: 1.8rem;
	margin-bottom: 1.5rem;
}

.tailleMax {
	max-width: 800px;
	margin: 0 auto;
}

.joueurCIlabels {
	font-weight: bold;
	font-size: 1.6rem;
	font-family: 'Fredericka the Great', cursive;
}

.joueurCIphoto {
	max-width: 260px;
	max-height: 260px;
	/*border-radius: 40% 0 40% 40%;*/
}

.tag {
	display: inline-block;
	border: 1px solid #efeded;
    border-radius: 1rem;
    padding: .2rem 1rem;
    margin: .5rem;
}

.tag:hover {
	background: #efeded;
}

.tag i {
	margin-left: 1rem;
	font-size: 1.5rem;
}

.recapMatches {
	margin-top: 4rem;
}


/* Pages MATCH ---------------------------------------------------------------------------------- */

h1.titreMatch {
	font-size: 3.5rem;
}

.sjaoColor {
	color: #af042f;
}

.equipes h3 {
	margin-top: 1.5rem;
}

.equipe1ouB  {
	width: 16rem;
	margin: 1rem auto 2rem;
	padding: 0;
}

.score {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.score p, .score ul {
	padding: 0;
	margin: 0;
}

.zoneScoreCenter {
	margin: 0rem;
	text-align: center;
	font-size: 3.2rem;
	font-weight: bold;
	font-family: 'Fredericka the Great', cursive;
	width: 30%;
	padding: 0;
}

.scoreAvenir {
	font-style: italic;
	font-family: 'Open Sans', sans-serif;
	font-size: 2.2rem;
}

.matchDateType {
	text-align: center;
	font-weight: bold;
	font-size: 1.6rem;
}

.matchDateType:before {
	content: "~ ";
}

.matchDateType:after {
	content: " ~";
}

.matchTermine {
	margin-top: -2rem;
	text-align: center;
	font-style: italic;
}

.matchDirect {
	max-width: 700px;
	margin: 0 auto;
	/*border: 1px solid grey;
	border-radius: 10px;
	padding: 5px 10px;*/
}

.matchDirect > p {
	display: flex;
	justify-content: space-between;
}

.matchDirect > p > button {
	width: 200px;
	padding: 1rem;
	/*opacity: 0.6;*/
}

.matchDirectRecap {
	text-align: center;
	margin-top: 3rem; 
	font-weight: bold;
}


.matchDirectRecap input, .matchDirectRecap select {
	width: 200px;
	padding: .5rem 0;
}

.zoneAjoutFautes {
	margin: 2rem 0;
}

.finMatch {
	margin: 0 auto;	
	text-align: center;
}

.finMatch input, .finMatch select {
	width: 70%;
} 

.feuilleMatch {
	max-width: 900px;
	margin: 0 auto;	
}

.zoneTitulaires {
	max-width: 750px;
	margin: 0 auto;
	background-color: #31931D;
	background-image: url("../img/rugby-field-v3.png");
	background-size: 100%;
	background-repeat: no-repeat;
	padding: 5% 0;
}

.zoneRemplacants {
	max-width: 750px;
	margin: 0 auto;
	background: linear-gradient(45deg, rgba(29,25,26,1), rgba(29,25,26,0));
}

.ligneJoueurs {
	display: flex;
	justify-content: space-around;
}

.ligneJoueursRempl {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	padding: 1rem 0;
}

.unJoueur {
	margin: 0 .2rem;
	padding-bottom: 0;
	width: 23%;
	text-align: center;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 20%, rgba(255,255,255,1));
	border-radius: 10px;
}

.unJoueur:hover {
	-webkit-transform: scale(1.1, 1);
	-moz-transform: scale(1.1, 1);
	-o-transform: scale(1.1, 1);
	transform: scale(1.1, 1);
	transition: 1s;
}

.numPosteJoueur {
	font-family: 'Fredericka the Great', cursive;
	margin: 0;
	text-align: center;
	color: #1d191a;
	font-size: 1.6rem;
	font-weight: bold;
	text-shadow: 0.1em 0.1em 0.2em black;
}

.delJoueur {
	text-align: center; 
}

.nomJoueur {
	margin: 0 0 .4rem 0; 
	padding: 0 .2rem;
	text-shadow: 0.1em 0.1em 0.2em #333;
	line-height: 1.2;
	font-size: 1.2rem;
	color: #af042f;
}

.nomJoueur span {
	font-variant: small-caps;
	font-size: 1.2rem;
}

.unJoueur select {
	max-width: 100%;
	padding-bottom: 0;
	margin-bottom: 0;
}

.validerFeuilleMatch {
	display: block;
	margin: 2rem auto;
	padding: 1.5rem 3rem;
}

.col10 {
	width: 10%;
}

.col30 {
	width: 30%;
}

.col100 {
	width: 100%;
}

.formMax {
	max-width: 100%;
}

.icone {
	width: 30px;
}


/* STATS */

.zone_btn_export {
	display: flex;
	justify-content: center;
}

.zone_btn_export a {
	margin: 10px 20px 0 20px;
}

/* Correction des couleurs des tableaux bootstrap */

.page-link {
	color: #af042f;
}

.page-link:hover {
	color: green;
}

/*li.page-item:nth-child(2) {
	background-color: purple !important;
}*/

.page-item.active .page-link {
	background-color: #af042f;
	border-color: #af042f;
	color: #ffffff;
}


/* FOOTER --------------------------------------------------------------------- */


footer {
	position: bottom;
	margin-top: 1.5rem;
	text-align: center;
	font-size: 1.1rem;
	padding: 1rem;
	border-radius: 1rem 1rem 0 0;
	box-shadow: .2em -.2em .3em #aaaaaa;
}




/* --------------------- VERSION TABLETTE ------------------------ */
@media screen and (min-width: 768px) {

	#middleHeader, #bottomHeader, #topFooter, #bottomFooter {
		padding: 1rem 3rem 2rem 3rem;
	}

	header {
		padding-bottom: 0;
	}

	#topHeader {
		display: block;
		background-color: #ffffff;
		padding-right: 1rem;
	}

	#topHeader ul {
		display: flex;
		justify-content: flex-end;
	}

	#topHeader ul li {
		padding: .5rem;
		color: #1d191a;
		font-size: 1.2rem;
	}

	#topHeader ul li a:hover {
		color: #1d191a;
	}

	#topFooter {
		display: flex;
		justify-content: space-between;
		flex-direction: row-reverse;
	}

	.userConnected {
		padding-top: .8rem;
	}

	.logo {
		width: 9rem;
	}

	.devise {
		clear: none;
		line-height: 1.8;
	}

	#topnav {
		display: flex;
		justify-content: space-between;
		flex-direction: row-reverse;
		border-top: 1px dotted #ffffff;
		border-bottom: 1px dotted #ffffff;
		margin-bottom: 1rem;
	}

	#topnav ul {
		border: none;
		margin: 0 0 0 10%;
		padding: 0;
	}

	#topnav li {
		font-size: 1.6rem;
	}

	.screenPF {
		display: none;
	}

	.screenGF {
		display: block;
	}

	.formFlex {
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	.formFlex p {
		margin: 0 1rem;
	}

	/* TABLETTE -- Matches et Joueurs */
	.ligneNew {
		display: flex;
		justify-content: space-between;
	}

	.ligneNew30 p {
		width: 30%;
	}

	.ligneNew45 p {
		width: 45%;
	}

	.ligneNew100 p {
		width: 100%;
	}


	/* TABLETTE ----------------------------------------------------------- Accueil */

	.accueilStats {
		display: flex;
		justify-content: space-between;
	}

	.accueilStats article {
		width: 45%;
	}

	/* TABLETTE ------------------------------------------------------------ Joueurs */
	#rechercheJoueurs {
		display: flex;
		justify-content: space-around;
		flex-flow: row wrap;
		align-items: stretch;
	}

	.tableauxDetails {
		display: flex;
		justify-content: space-around;
	}

	.tableauxDetails > div {
		width: 48%;
	}

	.flex2 {
		flex-grow: 2;
		margin-right: 1rem;
	}

	.flex2 input {
		width: 100%;
	}


	.jPointsReussis:before {
		content: "Réussis ";
	}

	.jPointsLoupes:before {
		content: "Loupés ";
	}



	/* TABLETTE ---------------------------------------------------------- Matches */
	
	#matchEnTete {
		display: flex;
		flex-direction: row-reverse;
		justify-content: flex-start;
		align-items: center;
	}

	.equipe1ouB {
		width: 18%;
	}

	.matchInfosgenerales {
		width: 80%;
	}


	.matchDirectRecap {
		display: flex;
		justify-content: center;
	}


	.matchDirectRecap select {
		margin: 0 2rem;
	}

	#zoneMatchDirect {
		display: flex;
		justify-content: space-between;
	}

	#zoneAjoutPointsDirect {
		width: 68%
	}

	#zoneFinMatch {
		width: 28%;
	}

	.joueursFlex {
		display: flex;
		justify-content: space-around;
	}

	.unJoueur {
		margin: 1.5rem .2rem;
		background: linear-gradient(to bottom, rgba(255,255,255,0) 10%, rgba(255,255,255,1));
		border-radius: 15px;
		padding-bottom: 0.5rem;
	}

	.unJoueur i {
		font-size: 2rem;
		margin: 0 1rem;
		text-shadow: 0.1em 0.1em 0.2em #333;
	}

	.numPosteJoueur {
		margin: 0 auto;
		background-image: url("../img/maillot.png");
		background-size: contain;
		background-repeat: no-repeat;
		width: 50px;
		height: 46px;
		padding: 1rem;
	}

	.nomJoueur {
		margin: 0 0 1rem 0; 
		line-height: 1.3;
		font-size: 1.4rem;
	}


	.nomJoueur span {
		font-variant: small-caps;
		font-size: 1.5rem;
	}

	.remplacant {
		margin-top: -1rem;
		margin-bottom: 0;
		font-style: italic;
		font-size: 1.2rem;
	}
	
	.tpsJeu {
		margin-top: -.3rem;
		margin-bottom: 0;
		font-size: 1.1rem;
	}	

	.inputRemplacement {
		max-width: 70px;
	}

	.remplacePar, .minuteSortie {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.remplacePar label, .minuteSortie label {
		padding-top: 0.5rem;
	}



}


/* --------------------- VERSION DESKTOP ------------------------- */
@media screen and (min-width:1025px) {

	#middleHeader, #bottomHeader, #topFooter, #bottomFooter {
		padding: 1rem 5rem 2rem 5rem;
	}

	#btnTDL {
		transition: 1s;
		display: block;
		font-size: 1.6rem;
		float: right;
		color: #ffffff;
		background-color: #af042f;
		width: 12rem;
		text-align: center;
		margin-top: 2.8rem;
		margin-right: .5rem;
		padding: .6rem;
		border-radius: 1rem;
		border: 1px solid black;
		border-style: inset;
		cursor: pointer;
	}

	#btnTDL:hover {
		-webkit-transform: scale(0.95);
		-moz-transform: scale(0.95);
		-o-transform: scale(0.95);
		transform: scale(0.95);
		opacity: 0.7;
	}

	#btnTDL a:hover {
		color: #ffffff;
	}

	#ampoule {
		width: 5rem;
		transform: rotate(-20deg);
		position: relative;
		top: -1.8rem;
		left: -1.8rem;
		margin-bottom: -2.5rem;
		margin-right: -1.5rem;
	}


	#maincontent {
		display: flex;
		flex-direction: column-reverse;
	}

	

	.linkButton {
		transition: 1s;
		color: #1d191a;
	}


	.map_topFooter {
		width: 75%;
	}

	/* DESKTOP ---------------------------------------------- Joueurs - Matches */
	.equipes, .joueurs {
		display: flex;
		justify-content: space-between;
	}

	.ss_equipes, .ss_joueurs {
		width: 48%;
	}

	/* DESKTOP -------------------------------------------------------- Joueurs */
	




	/* DESKTOP --------------------------------------------------------- Matches */
	.feuilleMatch {
		display: flex;
	}

	.zoneTitulaires {
		width: 730px;
	}

	.zoneRemplacants {
		width: 170px;
	}


	.zoneRemplacants .unJoueur {
		width: 85%;
	}


}

