/*=============================================
=            Imports            =
=============================================*/
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@200;400;500;700&display=swap');

@import url('https://cdn.imprimetcom.fr/css/loguy/v1/main.css');
@import url('https://cdn.imprimetcom.fr/css/loguy/v1/form.css');
@import url('https://cdn.imprimetcom.fr/css/loguy/v1/buttons.css');


html,
body {
	height: 100%;
	position: relative;
	background: white;
	overflow: hidden;
}

#homeConnectBg {
	width: 100vw;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	transition: 1s;
}
#homeConnectBg > div {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}
#homeConnectBg > div:nth-of-type(1) {
	background: url('../images/indexBackground.jpg') center center no-repeat;
	background-size: cover;
	z-index: 2;
	animation: homeConnectBgAnim 25s ease-in-out infinite;

	/* Ils n'aiment pas mon animation... :) */
	animation: none;
	display: none;
}
#homeConnectBg > div:nth-of-type(2) {
	background: url('../images/indexBackground.jpg') center center no-repeat;
	background-size: cover;
	z-index: 1;
	animation: homeConnectBgAnim2 60s ease-in-out infinite;
}
@keyframes homeConnectBgAnim {
	0%,100% { transform: scale(1.2) translate(0,0); filter: blur(15px) contrast(100%); opacity: .1;}
	33% {transform: scale(1.5) translate(-35%,0); filter: blur(25px) contrast(150%); opacity: .3;}
	66% { transform: scale(1.1) translate(2%,0); filter: blur(20px) contrast(200%); opacity: .2;}
}
@keyframes homeConnectBgAnim2 {
	0%,100% { transform: scale(1);}
	50% { transform: scale(1.2)}
}
#homeConnectBg.wait {
	filter: blur(25px);
}

#connect {
	font-size: 15px; /* override de la taille du body pour éviter le glitch en fin de chargement */
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

#home_connect {
	background: white;
	padding: 2em;
	border-radius: 1em;
	width: 30em;
}
#home_connect.wait {
	display: none;
}
#home_title {
	text-align: center;
	font-size: 2em;
	margin-bottom: 1em;
	font-weight: 200;
	line-height: 1.2em;
}

#home_explanations {
	margin-bottom: 1em;
}

#home_connect .actions {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1em;
	gap: 1em;
}
:is(#passwordBlock,#expiredLinkBlock) .actions {
	margin-top: 3em;
}
#home_connect .field {
	margin-bottom: 1.5em;
}
#home_connect label i {
	margin-right: .75em;
}
#home_connect .field.field-input-checkbox {
	margin-top: 1em;
	margin-bottom: 0;
}

#forgottenPassword {
	font-size: .75em;
}


#copyright {
	font-size: .75em;
	margin-top: 3em;
	text-align: center;
}



#home_connect_status_container {
	min-height: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1em;
	color: var(--color-alert-warning);
}
#home_connect_status {
	display: none;
}
#home_connect_status i {
	margin-right: 0.75em;
}


#home_connect {
	/* display: none; */
}

#home_connect2 {
	display: none;
	width: 100%;
	height: 100%;
	position: relative;
	/* background: rgba(255,255,255,0); */
}
#home_connect2.wait {
	display: block;
	/* animation: homeConnect2 1.5s ease-out 1 forwards; */
}
@keyframes homeConnect2 {
	0% { background: rgba(255,255,255,0);}
	50%,100% { background: rgba(255,255,255,1); }
}
#home_connect2 .loadingBackground {
	display: none;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	/* background: rgba(255,255,255,0); */
	background: url('../images/indexBackground.jpg') center center no-repeat;
	background-size: cover;
}
#home_connect2.wait .loadingBackground {
	display: none;
	animation: homeConnect2LoadingBackground 1.5s ease-out 1 forwards;
	
}
@keyframes homeConnect2LoadingBackground {
	0% { filter: blur(0)}
	50%,100% { filter: blur(25px); }
}

#home_connect2 > div {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}



#loading {
	width: 30em;
	position: relative;
	z-index: 2;
}
#loading_track {
	height: .5em;
	border: 1px solid rgba(0,0,0,.2);;
	border-radius: .5em;
	background-color: white;
	overflow: hidden;
	margin-top: 1em;
}
#loading_thumb {
	background-color:var(--color-primary-40);
	width:0%;
	height: .5em;
}
#loading_aux {
	font-size: 1.5em;
	text-align: center;
	color: rgba(0,0,0,.6);
}



/*=============================================
=            Choix du type de connexion            =
=============================================*/
.subConnectionScreen {
	position: absolute;
	width: 100vw;
	height: 100vh;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	flex-direction: column;
	font-size: 1.5em;
	padding: 1em;
}
.subConnectionScreen.visible {
	display: flex;
}
.subConnectionScreen .overlay {
	background: var(--color-primary-90);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: .9;
}
#connectionTypeChoice .introduction {
	margin-bottom: 1em;
	text-align: center;
}

#connectionTypeChoice ul {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
}
#connectionTypeChoice li {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	border: 2px solid rgba(0,0,0,.1);
	border-radius: .5em;
	min-width: 13em;
	min-height: 13em;
	text-align: center;
	cursor: pointer;
	padding: 3em 1em 2em;
	background: rgba(255,255,255,.8);
	transition: .1s;
	opacity: .9;
}
#connectionTypeChoice li:hover {
	border-color: var(--color-secondary-40);
	opacity: 1;
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(0,0,0,.1);;
}
#connectionTypeChoice li:active {
	transform: scale(1.02);
}
#connectionTypeChoice li i {
	font-size: 3em;
	margin-bottom: 0.25em;
	opacity: .6;
	color: var(--color-secondary-20);
}
#connectionTypeChoice li .connectionReason {
	line-height: 1.1em;
	font-weight: 500;
}
#connectionTypeChoice li .subInfos {
	font-size: .6em;
	margin-top: 0.5em;
}

#siteChoice select {
	width: 20em;
	margin-bottom: 1em;
}

/* SM */
@media (max-width: 767px) {
	.subConnectionScreen {
		font-size: 1.2em;
	}
	#connectionTypeChoice ul {
		gap: 1em;
	}
	#connectionTypeChoice li {
		min-width: 10em;
		min-height: 10em;
		padding: 2em .5em 2em;
	}
	#connectionTypeChoice li i {
		font-size: 2em;
	}
}
/* XS */
@media (max-width: 575px) {
	#connectionTypeChoice ul {
		flex-direction: column;
	}
	#connectionTypeChoice li {
		min-width: 90vw;
		min-height: unset;
		padding: 1em;
		align-items: center;
	}
	#siteChoice :not(.overlay) {
		max-width: 90vw;
	}
}