/* couleurs des modules : boutons de la page des modules et nom du module dans le bandeau (menu.css) */
:root {
	--mt-module-eprev: rgb(223, 3, 24);
	--mt-module-etis: rgb(0, 136, 204);
	--mt-module-eplan: rgb(203, 69, 147);
	--mt-module-econfig: rgb(255, 140, 0);
	--mt-module-estat: rgb(170, 195, 0);
	--mt-module-echeck: rgb(255, 199, 0);
}

/******************************************************************************/
/* module */
/******************************************************************************/
.module {
	/* 	max-width: 450px; */
	
}

.module-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	/* 	grid-row-gap: 5em; */
	/* 	grid-column-gap: 7em; */
}

.module .ui-grid-responsive {
	border: unset;
	background: unset;
}

.module .ui-grid-responsive .ui-panelgrid-cell {
	padding: 20px !important;
}

.module-bouton, .ui-widget .module-bouton {
	font-size: 2em;
	font-weight: 300;
	background: #FFFFFF;
	box-shadow: 0 0 0.3em lightgray;
	padding: unset;
	border-width: 0 0 5px 0;
	border-radius: 0;
	/* 	height: 100px; */
	/* 	width: 230px; */
	flex-grow: 1;
	/* 	min-width: 200px; */
	min-height: 100px;
	max-height: 100px;
	/* 	width: 26%; */
}

.module-bouton:disabled, .ui-widget .module-bouton:disabled {
	box-shadow: none;
	background-color: rgb(245, 245, 245);
	opacity: 100%;
}

.module-bouton>.ui-button-text {
	padding: unset;
}

.module-bouton-eprev {
	border-color: white white var(--mt-module-eprev) white;
	color: var(--mt-module-eprev);
}

.module-bouton-etis {
	border-color: white white var(--mt-module-etis) white;
	color: var(--mt-module-etis);
}

.module-bouton-eplan {
	border-color: white white var(--mt-module-eplan) white;
	color: var(--mt-module-eplan);
}

.module-bouton-econfig {
	border-color: white white var(--mt-module-econfig) white;
	color: var(--mt-module-econfig);
}

.module-bouton-estat {
	border-color: white white var(--mt-module-estat) white;
	color: var(--mt-module-estat);
}

.module-bouton-echeck {
	border-color: white white var(--mt-module-echeck) white;
	color: var(--mt-module-echeck);
}

.module-link, .ui-widget .module-link {
	font-size: 2em;
	font-weight: 300;
	background: #FFFFFF;
	box-shadow: 0 0 0.3em lightgray;
	padding: unset;
	border-width: 0 0 5px 0;
	border-radius: 0;
	/* 	height: 100px; */
	/* 	width: 230px; */
	flex-grow: 1;
	display: flex;
	position: relative;
	text-decoration: none;
	align-content: center;
	justify-content: center;
	align-items: center;
	/* 	min-width: 200px; */
	min-height: 100px;
	max-height: 100px;
	/* 	width: 26%; */
}

.module-link>img {
	max-width: 96px;
	max-height: 96px;
	width: auto;
	height: auto;
	display: grid;
}

.module-partenaire-badge {
	position: absolute;
	z-index: 1;
	top: 8px;
	left: 12px;
	font-size: 0.8rem;
	font-style: italic;
	font-weight: 300;
	color: rgb(180, 180, 180);
	pointer-events: none;
}

@media ( max-width : 64.063em) {
	.module-triangle {
		display: none;
	}
}
/* @media ( max-height : 600px) { */
/* 	.module-triangle { */
/* 		display: none; */
/* 	} */
/* } */
.module-triangle {
	position: fixed;
	max-width: 40%;
	max-height: 60%;
	right: 30px;
	bottom: 30px;
}

/******************************************************************************/
/* dashboard */
/******************************************************************************/
.dashboard {
	
}

.dashboard .dashboard-titre {
	font-size: 1.3em;
	text-align: center;
	padding: 5px;
	text-transform: uppercase;
	border-bottom: 1px solid;
	margin-left: 5%;
	margin-right: 5%;
}

.dashboard .dashboard-indicateur {
	padding-bottom: 30px;
}

.dashboard .dashboard-indicateur, .dashboard .dashboard-actualites {
	padding-top: 20px;
}

.dashboard .dashboard-actualites .ui-widget-content {
	background: unset;
	border: unset;
}

.dashboard .dashboard-indicateur-content, .dashboard .dashboard-actualites-content {
	padding-top: 10px;
	padding-left: 5%;
	padding-right: 5%;
}

.dashboard .actualites {
}

.dashboard .dashboard-sousTitre {
	text-align: left;
	color: black;
	font-weight: bold;
	padding-bottom: 5px;
}

.dashboard .dashboard-sousTitre-sep {
	border-top: 1px solid;
	margin-top: 15px;
	padding-bottom: 10px;
	padding-left: 5%;
	padding-right: 5%;
	margin-left: 30%;
	margin-right: 30%;
}

.dashboard .indicateur {
	font-style: italic;
	font-size: 1.2em;
	padding-right: 10px;
	font-weight: bold;
}

.dashboard .dashboard-bouton {
	text-decoration: none;
	padding-left: 2px;
}

/******************************************************************************/
/**/
/******************************************************************************/
.fond {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 50%;
	background-color: #fff;
	position: unset;
	z-index: 1;
}

.bandeau .bandeauBouton {
	color: #FFFFFF;
	font-weight: bold;
	font-size: 110%;
	background: unset;
	border: unset;
	margin: unset;
}

.bandeau .bandeauBouton.ui-button-text-only .ui-button-text {
	padding: unset;
}

.bandeau .logoMaintotel {
	display: flex;
	align-items: center;
	padding: 1em;
}

.bandeau .hotline {
	text-decoration: none;
	font-size: 90% !important;
	color: inherit;
	align-self: end;
	white-space: nowrap;
}

.bandeauLogo {
	width: 75%;
	border: 1px solid white;
}

/* pas de marge a droite : avec width 100 %, elle faisait deborder l'image de son cadre (4 px de defilement horizontal) */
.logo {
	margin: auto;
	padding: 0.3em 0;
	width: 100%;
}

@media ( max-width :40em) {
	.bandeauLogoSep {
		display: none;
	}
	.bandeauLogo {
		width: 100%;
	}
}

@media ( max-width :40em) {
	.bandeau .logoMaintotel {
		padding: unset;
	}
}

/******************************************************************************/
/* bandeau de la page des modules (includes/infosModules.xhtml) : une ligne, puis la bande d'usurpation */
/******************************************************************************/

/* la ligne : identite a gauche, preferences et utilisateur a droite, logo de la marque tout a droite */
.bandeau-modules-ligne {
	display: flex;
	align-items: stretch;
}

/* logo Maintotel et contact */
.bandeau-modules-identite {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 10px 20px;
}

.bandeau-modules-logo {
	height: 46px;
	display: block;
}

.bandeau-modules-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* mention du mode developpement : pastille sous le contact */
.bandeau-modules-stage {
	width: fit-content;
	font-size: 11px;
	padding: 1px 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .2);
}

/* marque, langue, fuseau, utilisateur et Deconnexion : a droite, a la ligne si la fenetre est etroite */
.bandeau-modules-droite {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	flex-direction: row-reverse;
	justify-content: flex-start;
	gap: 14px;
	padding: 0 24px;
}

.bandeau-modules-marque {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	letter-spacing: .03em;
}

/* icone et liste (ou valeur) cote a cote */
.bandeau-modules-champ {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.bandeau-modules-champ > .pi {
	font-size: 16px;
	opacity: .85;
}

/* largeurs des listes (autoWidth="false") : PrimeFaces impose un min-width, le .ui-g qui le neutralisait n'est plus la */
.bandeau-modules .bandeau-modules-liste.ui-selectonemenu {
	min-width: 0 !important;
}

/* Langue : le p:selectOneMenu reste le vrai composant (ajax, liste, clavier). On ne change que son aspect : cadre translucide
   comme Deconnexion, libelle rendu transparent (il reste dans le DOM et recoit le clic), fleche native masquee. Le globe, le code
   de la langue et un chevron sont dessines par-dessus par un span frere, sans evenements souris : le clic arrive au composant. */
.bandeau-modules-langue-champ {
	position: relative;
}

.bandeau-modules .bandeau-modules-langue.ui-selectonemenu {
	box-sizing: border-box;
	width: 78px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 4px;
	box-shadow: none;
}

.bandeau-modules .bandeau-modules-langue.ui-selectonemenu.ui-state-hover, .bandeau-modules .bandeau-modules-langue.ui-selectonemenu.ui-state-focus {
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .6);
	box-shadow: none;
}

.bandeau-modules .bandeau-modules-langue .ui-selectonemenu-label {
	height: 100%;
	padding: 0;
	background: transparent;
	color: transparent;
}

.bandeau-modules .bandeau-modules-langue .ui-selectonemenu-trigger {
	display: none;
}

.bandeau-modules-langue-code {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}

.bandeau-modules-langue-code .pi-globe {
	font-size: 16px;
	opacity: .85;
}

.bandeau-modules-langue-code .pi-chevron-down {
	font-size: 10px;
	opacity: .85;
}

/* liste ouverte (panelStyleClass : le panneau est rattache au body, hors du bandeau) : toutes les langues sans ascenseur
   (PrimeFaces fixe height:200px des 11 elements), initiale en majuscule (java.util.Locale donne "francais" en francais) */
.bandeau-modules-langue-panneau .ui-selectonemenu-items-wrapper {
	height: auto !important;
}

.bandeau-modules-langue-panneau .ui-selectonemenu-item::first-letter {
	text-transform: uppercase;
}

/* utilisateur simple : sans marque, langue ni fuseau, le separateur n'a plus rien a separer (il serait le premier element du bloc) */
.bandeau-modules-droite > .bandeau-separateur:first-child {
	display: none;
}

.bandeau-modules .bandeau-modules-fuseau.ui-selectonemenu {
	width: 160px;
}

.bandeau-modules .bandeau-modules-large.ui-selectonemenu {
	width: 340px;
}

/* la police de la page est a 130 % : le nom de l'utilisateur la suit (menu.css le fixe a 14 px) */
.bandeau-modules .bandeau-nom {
	font-size: 1em;
}

/* Deconnexion : meme style que dans le menu des modules (menu.css), police de la page */
.bandeau-modules .bandeau-bouton.ui-button {
	font-size: 1em;
}

/* logo de la marque : le triangle de separation garde la hauteur de la ligne */
.bandeau-modules-logo-marque {
	width: 16.66%;
	display: flex;
	flex: none;
}

/* bande d'usurpation : site et utilisateur, un ton plus foncee que le bandeau */
.bandeau-modules-usurpation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 7px 20px;
	background: rgba(0, 0, 0, .08);
}

.bandeau-modules-usurpation-titre {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: .9em;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .9;
}

/******************************************************************************/
/* Bandeau de la page des modules : login en petit au-dessus du nom (balise <b> de displayRichName), comme le bandeau
   des 5 modules. L'ordre visuel est celui du DOM a toute largeur. Si le bloc de droite ne tient pas, il se replie avec
   Deconnexion et l'utilisateur en premier (bloc en row-reverse, order = priorite de repli), preferences dessous.
   Bande d'usurpation : a la ligne, listes a largeur bornee. Paliers, du plus discret au plus sacrificiel :
   1400 px identite compacte ; 1250 px separateur et avatar (decoratif) masques ; 900 px Deconnexion reduit a son icone.
   Avatar et icone ne disparaissent que s'il y a des preferences avant l'utilisateur (separateur non premier enfant). */
/******************************************************************************/
.bandeau-modules .bandeau-nom b {
	display: block;
	font-size: .72em;
	font-weight: 600;
	opacity: .8;
}

/* les deux listes (site, intervenant) : de 190 a 363 px, l'espace se partage */
.bandeau-modules .bandeau-modules-usurpation > .bandeau-modules-champ:nth-last-child(-n+2) {
	flex: 1 1 190px;
	min-width: 0;
	max-width: 363px;
}

.bandeau-modules .bandeau-modules-usurpation .bandeau-modules-large.ui-selectonemenu {
	flex: 1 1 0;
	width: auto;
}

/* priorite de repli (bloc .bandeau-modules-droite en row-reverse) : Deconnexion, utilisateur, separateur, puis fuseau, langue, marque */
.bandeau-modules-droite > .bandeau-bouton {
	order: 1;
}

.bandeau-modules-droite > .bandeau-utilisateur {
	order: 2;
}

.bandeau-modules-droite > .bandeau-separateur {
	order: 3;
}

.bandeau-modules-droite > .bandeau-modules-champ:not(.bandeau-modules-langue-champ) {
	order: 4;
}

.bandeau-modules-droite > .bandeau-modules-langue-champ {
	order: 5;
}

.bandeau-modules-droite > .bandeau-modules-marque {
	order: 6;
}

@media (max-width: 1400px) {
	.bandeau-modules .bandeau-modules-identite {
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 3px;
		padding: 8px 16px;
	}

	.bandeau-modules .bandeau-modules-logo {
		height: 38px;
	}

	.bandeau-modules .bandeau-modules-droite {
		padding: 6px 14px;
		gap: 8px 12px;
		align-content: center;
	}
}

@media (max-width: 1250px) {
	.bandeau-modules-droite > .bandeau-separateur {
		display: none;
	}

	.bandeau-modules-droite > .bandeau-separateur:not(:first-child) ~ .bandeau-utilisateur .bandeau-avatar {
		display: none;
	}
}

/* Deconnexion reduit a son icone : le libelle reste en infobulle (title du p:commandButton de infosModules.xhtml), comme menuDroit.xhtml */
@media (max-width: 900px) {
	.bandeau-modules-droite > .bandeau-separateur:not(:first-child) ~ .bandeau-bouton.ui-button {
		padding: 0 10px;
	}

	.bandeau-modules-droite > .bandeau-separateur:not(:first-child) ~ .bandeau-bouton.ui-button .ui-button-text {
		display: none;
	}
}

