@import url(communV7.css);

body {
	width: 100%;
	height: 100%;
	background-color: var(--fond);
}

#conteneur {
	display: flex;
	width: 100%;
	height: 100dvh;
}

main {
	height: 100%;
	width: 70%;
	background-color: var(--fond);
	background: no-repeat url("../images/bg-login.jpg");
	background-size: cover;
	position: relative;

}

main div#couche {
	width: 100%;
	height: 100%;

	background-color: #637b8b;
	/* background-color: #808d9e; */
	position: absolute;
	top: 0;
	left: 0;
	opacity: .85;
	z-index: 1;
	/* filter:blur(3px); */
}

main #texteMain {
	color: var(--clair);
	font-style: italic;
	z-index: 2;
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	text-shadow: .2rem .2rem .2rem #474747;
}
main #texteMain h1{
	/* font-size: 6rem; */
	font-size: clamp(1rem, 5vw, 6rem);
}

#electroniq {
	color: var(--vif);
	margin-left: 9ch;
}


aside {
	color: var(--clair);
	height: 100%;
	width: 30%;
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	align-items: center;
	background-color: var(--fond);
	position: relative;
}

aside #logo {
	width: 60%;
	height: 12rem;
	overflow-y: hidden;
	margin-top: 2rem;
}

aside #logo img {
	width: 100%;
}

aside #logo #version {
	font-size: .8rem;
	font-style: italic;
	text-align: right;
	margin: -3rem 1rem 0 0;
}

aside form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	width: 100%;
	align-items: center;
}

aside form div {
	min-width: 50%;
	max-width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;

}

#erreur {
	margin-bottom: 2rem;
	color: var(--alerte);
	display: flex;
	gap: .5rem;
	align-items: center;
}

/*
#erreur:empty::before {
	content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="rgb(252, 104, 104)"><path d="M16 2.899l13.409 26.726h-26.819l13.409-26.726zM16 0c-0.69 0-1.379 0.465-1.903 1.395l-13.659 27.222c-1.046 1.86-0.156 3.383 1.978 3.383h27.166c2.134 0 3.025-1.522 1.978-3.383h0l-13.659-27.222c-0.523-0.93-1.213-1.395-1.903-1.395v0z"></path><path d="M18 26c0 1.105-0.895 2-2 2s-2-0.895-2-2c0-1.105 0.895-2 2-2s2 0.895 2 2z"></path><path d="M16 22c-1.105 0-2-0.895-2-2v-6c0-1.105 0.895-2 2-2s2 0.895 2 2v6c0 1.105-0.895 2-2 2z"></path></svg>');
	width: 2rem;

}*/

aside form h2 {
	text-align: center;
	font-weight: normal;
	font-size: 1.3rem;
	text-transform: uppercase;
}

#selectionSite option {
	padding: .2rem .5rem;
	font-size: 1.2rem;
}

#pcbValider{
	background-color: var(--vif);
	margin-top: 1rem;
}

#pcbValider:hover{
	cursor: pointer;
	background-color: var(--vif-clair);
}

#pcbValider:disabled{
	background-color: var(--moins-clair2);
	cursor: not-allowed;
}

aside #carafr {
	display: block;
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	color: var(--clair);
	text-decoration: none;
	font-style: italic;
}

aside #carafr:hover {
	color: var(--vif);
}

aside #choixSiteRetour {
	display: flex;
	position: absolute;
	bottom: 1rem;
	left: 1rem;
	color: var(--vif);
	text-decoration: none;
}

aside #choixSiteRetour svg {
	width: 1rem;
	margin-right: .2rem;
	fill: var(--vif)
}

form input,
form button {
	display: block;
	margin-top: .5rem;
	padding: 1rem;
	border-radius: .5rem;
	border: none;
	caret-color: var(--fond-clair);
	font-size: 1.2rem;
}

form input:focus-visible {
	/* outline: none; */
	outline: 2px solid var(--vif);
}

/*bannière cookie*/
#miniRGPDclosed:hover{
	color: var(--vif);
}

#miniRGPDclosed{
	position: absolute;
	bottom: 1rem;
	left:1rem;
	padding:0;
	background: none;
	font-style: italic;
	opacity: .6;
	color:var(--clair4);
	z-index: 2;
	cursor: pointer;

}

#rgped {
	position: absolute;
	top:50%;
	left:50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	background-color: #222222ec;
	/* opacity: .92; */
	padding: 3rem;
	width: 90%;
	color:var(--clair);
	border-radius: .5rem;
	box-shadow: 0 0 1.5rem var(--vif);
	/* box-shadow: 0 0 1rem var(--fond-tres-fonce); */
}


#mentionsRgpd p {
	margin-top: 1rem;
}

#mentionsRgpd a {
	color: var(--vif-clair);
}

#btnRgpdOk {
	background: var(--vif);
	color: white;
	border: none;
	padding: 1rem 2rem;
	cursor: pointer;
	float: right;
	font-size: 1.2rem;
	border-radius: .5rem;
	outline: none;
}
#btnRgpdOk:hover{
	background-color: var(--vif-clair);
}


/*choix site*/
#formSites select {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: .5rem;
	outline: 2px solid var(--vif);
	overflow: auto;
}

::-webkit-scrollbar {
	width: .5rem;
}

::-webkit-scrollbar-track {
	background-color: var(--clair);
}

::-webkit-scrollbar-thumb {
	background-color: var(--moins-clair);
}

/*** choix langues ***/
.lang-selector {
	display: flex;
	border: 1px solid var(--fond-clair);
	border-radius: .5rem;
	overflow: hidden;
	margin-top:1rem;
	z-index: 3;
}

.lang-btn {
	padding: 0.5rem 1rem;
	border: none;
	background-color: var(--fond);
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.2s;
	color: var(--fond-fonce);
}

.lang-btn:hover {
	background-color: var(--clair);
}

.lang-btn.active {
	background-color: var(--moins-clair);
	color: var(--clair);
}





/********
MOBILE
********/
@media screen and (max-width: 1024px) {
	main {
		display: none;
	}

	aside {
		width: 100%;
	}

	aside img {
		width: 60%;
		margin-top: 2rem;
	}

	aside #logo #version {
		margin: -2rem 0 0 0;
	}

	aside form {
		width: 80%;
		justify-content: start;
	}

	aside form h2 {
		font-size: 1rem;
	}

	.lang-selector{
		margin: 0;
	}

	#rgped {
		width: 95%;
		padding: .5rem;
		height: 53%;
		overflow-y: auto;
		top:auto;
		bottom:.5rem;
		left:.5rem;
		transform: translate(0,0);
		font-size:.8rem;
		/* margin-top:20%; */
	}
	#btnRgpdOk{
		float: none;
		display: block;
		margin: 1rem auto;
	}

	form div {
		width: 100%;
	}

	#formSites select{
		max-height: 10rem;
	}

}