/*
palette :
- principale : #3C578C // #3C578C
- fonce : #0095a7 // 0095a7

*/

:root{
	--couleur-princpale: #3C578C;
	--couleur-secondaire: #A4BEF2;
	--couleur-validation: #468C3C;
		--couleur-validation-hover: #5EBF50;
	--couleur-annulation: #DF2E2E;
		--couleur-annulation-hover: #DE5050;
}

html, body{
	width: 100%;
	height: 100%;
	font-family: "Roboto", sans-serif;
	color: #212121;
	padding: 0;
	margin: 0;
	overflow-y: hidden;	/* pour pouvoir faire la transition entre les deux pages sans afficher d'ascenceur */
}

.erreur{
	font-size: 12px;
}

button, input[type="button"], input[type="submit"]{
	margin-top: 5px;
	margin-right: 5px;	
	background-color: var(--couleur-princpale);
	border: none;
	color: #ffffff;
	cursor: pointer;
	height: 42px;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover{
	background-color: var(--couleur-secondaire);
}

button:disabled, input[type="button"]:disabled, input[type="submit"]:disabled{
	background-color: #8b9cab;
	cursor: unset;
}

input[type="number"]{
	/* pour supprimer les fleches sur firefox */
	-moz-appearance: textfield;
}

/* pour supprimer les flèches sur chrome */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

textarea{
	padding: 1px 2px;
	font-family: "Roboto", sans-serif;
}

textarea, input[type="number"], input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="week"], select, input[type="date"]{
	font-size: 14px;
}

a{
	color: var(--couleur-princpale);
}

a:hover{
	color: var(--couleur-secondaire);
	cursor: pointer;
}


/*----------------------
	page générales
-----------------------*/

.page{
	width: 100%;
	height: 100%;
	background-color: #ecf0f1;
	display: flex;
	flex-direction: column;
}

.page .entete{
	width: 100%;
}

.page .entete .principale{
	background-color: var(--couleur-princpale);
	display: flex;
	min-height: 48px;
}

.page .entete .principale div{
	width: 48px;
	display: flex;
}

.page .entete .principale div img{
	width: 32px; 
	margin: 8px;
}

.page .entete .principale h1{
	flex: 1;
	text-align: center;
	font-size: 18px;
	font-weight: normal;
	color: #ffffff;
}

@media screen and (min-width: 1024px) {
	.page .entete .principale h1{
		font-size: 18px;
	}
}

@media screen and (max-width: 1023px) {
	.page .entete .principale h1{
		font-size: 16px;
	}
}

.page .entete .secondaire{
	background-color: #ffffff;
	display: flex;
	min-height: 48px;
	align-items: center;
	padding: 5px;
}

.page .entete .secondaire.multiLignes{
	flex-direction: column;
	align-items: unset;
}

.page .entete .secondaire.multiLignes .ligne{
	margin-top: 5px;
	display: flex;
	flex-wrap: wrap;
}

.page .entete .secondaire.multiLignes .ligne div {
	margin-right: 5px;
}

.page .entete{
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.page>.contenu{
	flex: 1;
	display: flex;
	overflow-y: auto;
}

.page.avecSousEntete .contenu .sousEntete{
	background-color: #ffffff;
	padding: 5px;
}	

@media screen and (min-width: 1024px) {
	.page.avecSousEntete .contenu{
		flex-direction: column;
	}
	
	.page.avecSousEntete .entete{
		box-shadow: unset;
	}
	
	.page.avecSousEntete .contenu .sousEntete{
		box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
		z-index: 1;
	}	
	
	.page.avecSousEntete .contenu .corps{
		flex: 1;
		overflow-y: auto;
	}
}

@media screen and (max-width: 1023px) {
	.page.avecSousEntete .contenu{
		display: unset;
	}
	
	.page.avecSousEntete .contenu .sousEntete{
		box-shadow: unset;
	}
}

.page.pageFiche .entete .secondaire, .page.pageSaisie .entete .secondaire{
	justify-content: center;
}

/* >contenu pour eviter de prendre les autres contenu de la page (dialogue, ...) et se limiter au premier de la page*/
.page.pageFiche>.contenu, .page.pageSaisie>.contenu{
	display: unset;
}

.pageSaisie .formulaire{
	margin : 15px auto 15px auto;
	padding: 10px;
	background-color: #ffffff;	
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

@media screen and (min-width: 1024px) {
	.pageSaisie .formulaire{
		width: 500px;
	}
	
	.pageSaisie > .contenu > .formulaire > .ligne > label{
		min-width: 120px;
	}
}

@media screen and (max-width: 1023px) {
	.pageSaisie .formulaire{
		width: calc(100% - 30px);
	}
	
	.pageSaisie > .contenu > .formulaire > .ligne > label{
		min-width: 100px;
	}
}

.pageMosaique .contenu{
	display: unset;
}


.formulaire .ligne{
	width: 100%;
	margin-top: 5px;
	display: flex;
}

.formulaire .ligne label{
	min-width: 100px;
	font-size: 14px;
}

.formulaire .ligne>div:first-of-type{
	flex: 1;
	display: flex;
	flex-direction: column;
}

.formulaire .pied{
	display: flex;
	justify-content: flex-end;
}

.formulaire .pied button:last-child{
	margin-right: 0px;
}

.formulaire .ligne .interrupteur{
	flex-direction: row;
}

.formulaire .ligne .interrupteur input[type=checkbox]{
	margin-left: 0px;
}

.formulaire .separateur{
	margin-top: 20px;
	text-align: center;
	font-weight: bold;
}

.page > .pied{
	margin-top: 10px;
	display: flex;
	justify-content: center;
	font-size: 12px;
	height: 25px;
}

/*----------------------
	dialogues
-----------------------*/

/* CSS des dialogues à revoir complètement */
.dialogue{
	display: flex;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(51, 51, 51, 0.5);
	align-items: center;
	justify-content: center;
	z-index: 9998;
	
}

.dialogue .conteneur{		
	background-color: #ffffff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.dialogue .entete{
	width: unset;
	padding: 20px;
	margin:0px;
	box-shadow: unset;
}


.dialogue .entete{
	padding: 20px;
	margin:0px;
}

/* En mode smartphone */
@media only screen and (max-width:1023px) {	
	.dialogue .conteneur{
		width: 80%;
	}
	
	.dialogue .entete{
		/*min-width: 250px;*/
	}
	
	.dialogue .contenu input{
		/* je force la largeur car les inputs number ne s'agrandissent pas automatiquement sous FF */ 
		width: 250px;
	}
}

/* En mode tablette/PC */
@media only screen and (min-width:1024px) {
	.dialogue .conteneur{
		max-width: 500px;
	}
	
	.dialogue .entete{
		/*min-width: 350px;*/
	}
	
	.dialogue .contenu input{
		/* je force la largeur car les inputs number ne s'agrandissent pas automatiquement sous FF */ 
		width: 350px;
	}
}

.dialogue .contenu{
    font-size: 12px;
    font-weight: normal;
	overflow-y: auto;
	padding: 0px 20px 0px 20px;
}

.dialogue .contenu .progression{
	display:flex;
	overflow:hidden;
}

.dialogue .contenu .progression .cercleIndefini{
	border: 8px solid #666666;
    border-top: 8px solid #0000FF; 
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 2s linear infinite;
	margin-left: auto;
	margin-right: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dialogue .contenu .progression .description{
	flex: 1;
	padding: 14px 0px 0px 14px;
}

/* En mode smartphone */
@media only screen and (max-height:600px) {
	.dialogue .contenu{
		max-height: 375px;	/* j'utilise un nombre non multiple de 32 pour voir le scroll sur mobile (dernier input coupé) */ 
	}
}


/* En mode PC avec petit ecran */ 
@media only screen and (min-height:601px) and (max-height:799px) {
	.dialogue .contenu{
		max-height: 450px;
	}
}

/* En mode PC avec grand ecran */ 
@media only screen and (min-height:800px){
	.dialogue .contenu{
		max-height: 750px;
	}
}

.dialogue .pied{
	display:flex;
	padding: 20px;
}

.dialogue .pied button{
	margin-bottom: 0px;
	flex:1;
}

.dialogue .pied input:first-child, .dialogue .pied button:first-child{
	margin-right: 3px;
}


/*----------------------
	Dialogue chargement
-----------------------*/

/* demande de Rémi pour supprimer clignotement */

#dialogueChargement{
	background-color: transparent;
	cursor: wait;
}

#dialogueChargement .conteneur{
	display: none;	
}

/*----------------------
	Conteneur volant utilisateur
-----------------------*/

.entete .conteneurVolantUtilisateur{
	right: 5px;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.entete .conteneurVolantUtilisateur .utilisateur{
	text-align: center;
	font-weight: bold;
}

.entete .conteneurVolantUtilisateur .infoUtilisateur{
	text-align: center;
	margin-top: 5px;
	font-size: 14px;
}

.entete .conteneurVolantUtilisateur .actions{
	margin-top: 10px;
	border-top: solid 2px #e4e4e4;
	display: flex;
	flex-direction: column;
}

.entete .conteneurVolantUtilisateur .actions a{
	margin-top: 15px;
	color: #212121;
}

.entete .conteneurVolantUtilisateur .actions a:hover{
	margin-top: 15px;
	color: var(--couleur-princpale);
}

/*----------------------
	Conteneur plusieurs boutons
-----------------------*/

.actions{
	display: flex;	/* pour éviter le soucis des espaces automatiques */
	flex-wrap: wrap;
}

/*----------------------
	libelle guide dans liste
-----------------------*/
.liste .element .libelleGuide{
	color: #a02727;
	font-size: 15px;
}

.etiquetteEtat{
	border-radius: 5px;
	padding: 3px;
	font-size: 14px;
}


.listeReservations{
	width: 100%;
}

.listeReservations .element{
	display: flex;
}

.listeReservations .element .conteneurStatut{
	width: 70px;
	margin-right: 5px;
	text-align: center;
}

.listeReservations .element .conteneurStatut img{
	width: 30px;
	margin: 5px auto 0px auto;
}

.listeReservations .element .conteneurTexte{
	flex: 1;
}

.listeReservations .element .conteneurTexte .titre{
	display: flex;
	flex-wrap: wrap;
	align-items: end;
}

.listeReservations .element .conteneurTexte .titre .nom{
	font-weight: bold;
	margin-right: 5px;
}

.listeReservations .element .conteneurTexte .titre .coordonnees{
	font-size: 15px;
	color: #595959;
}

.listeReservations .element .conteneurTexte .reservation{
	display: flex;
	flex-wrap: wrap;
}

.listeReservations .element .conteneurTexte .reservation .details{
	margin-right: 5px;
	margin-top: 5px;
	font-weight: bold;
	font-size: 15px;
}

.listeReservations .element .conteneurTexte .reservation .commentaire{
	font-size: 15px;
	margin-top: 5px;
	color: #595959;
}

.mosaique .element{
	width: 280px;
}