/*
palette :
- principale : #e42c27
- survol : #e24643
- desactive : #de7a7b

*/

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 */
	font-size: 14px;
}

.erreur{
	font-size: 12px;
}

button, input[type="button"], input[type="submit"]{
	margin-top: 5px;
	margin-right: 5px;	
	background-color: #939393;
	border: none;
	border-radius: 5px;
	color: #ffffff;
	cursor: pointer;
	user-select: none;
	height: 42px;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover{
	background-color: #c4c4c4;
}

button:disabled, input[type="button"]:disabled, input[type="submit"]:disabled{
	background-color: #d0d0d0;
	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{
	height: 48px;
	padding: 1px 2px;
	font-family: "Roboto", sans-serif;
}

textarea, input[type="number"], input[type="text"], input[type="email"], textarea, input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="week"], select, input[type="date"]{
	font-size: 14px;
	min-height: 24px;
	border-radius: 6px;
	border: 1px solid gray;
	outline: none;
    appearance: none;
	color: #555555;
}

textarea:focus, input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="week"]:focus, select:focus, input[type="date"]:focus, input[type="password"]:focus{
	box-shadow: 0 0 5px #25247b;
	border: 1px solid #25247b;
}

input[type="number"] {	/* pour désactiver flêche haut/bas sous firefox */
	-moz-appearance: textfield;
}

a{
	color: #939393;
}

a:hover{
	color: #c4c4c4;
	cursor: pointer;
}


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

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

.page.chargement{
	cursor: wait;
}

.page > .entete{
	width: 100%;
	position: relative;	/* pour forcer shadow par dessus, je n'utilise pas un zindex pour éviter le soucis avec dialogue chargement */
}

.page > .entete .principale{
	background: linear-gradient(to right, #FF0000, #800000);
	display: flex;
	min-height: 48px;
	align-items: center;
}

.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;
	flex-wrap: wrap;
}

.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: #e42c27;
}


.dateExpirationDepassee{
	color: red;
}