/* CSS Document */

:root {
	--dark-grey : #49454F;
	--violet : #7060F0;
	--light-turquoise : #66BCC8;
	--light-pink : #F0F1F7;
	--light-grey : #D9D9D9;
}

* {
    box-sizing: border-box;
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
}

body {
	min-height: 100vh;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: var(--dark-grey);
	background: url(/assets/img/mountains.png), linear-gradient(var(--light-turquoise), var(--violet));
	background-size: cover;
	background-repeat: no-repeat;
	overflow: auto;
	font-family: Roboto;
	font-size: 14px;
	padding: 40px 0;
}

.main-card {
	display: flex;
	gap: 80px;
	border-radius: 40px;
	background: #FFF;
	box-shadow: 0px 9px 4px 1px rgba(0, 0, 0, 0.25);
	max-width: 1200px;
	overflow: hidden;
	animation: slide 1s forwards;
}

@keyframes slide {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}

nav {
	display: table;
	padding: 20px;
	flex-direction: column;
	align-items: flex-start;
	background: var(--light-pink, #F0F1F7);
	position: relative;
	overflow: hidden;
	z-index: 1;
	padding-bottom: 10vh;
}

nav h1 {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 20px;
}

nav .sous-titre {
	font-size: 16px;
	margin-bottom: 20px;
}

.nav-entities {
	display: flex;
	flex-direction: column;
	grid-gap: 5px;
	white-space: nowrap;
}

.nav-entities a {
	display: flex;
	align-items: center;
	grid-gap: 15px;
	padding: 15px;
	border-radius: 100px;
	transition: 0.2s;
}

.nav-entities a:hover {
	background-color: rgb(102, 188, 200, 0.5);
}

.nav-entities a.actual {
	background-color: var(--light-turquoise);
	color: #fff;
}

.bullet {
	font-size: 40px;
	line-height: 0;
    font-style: unset;
}

.nav-img {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 40%;
	filter: grayscale(1);
	z-index: -1;
	opacity: 0.3;
	width: 100%;
	object-fit: cover;
}


/*************************/

.form-container {
	padding: 40px 0;
	padding-right: 80px;
	overflow: auto;
	margin: auto;
}

.form-container h3 {
	color: var(--light-turquoise);
}

.form-grid {
	display: grid;
	flex-wrap: wrap;
	grid-gap: 20px;
	grid-template-columns: 1fr 1fr 1fr;
}

.form-grid > *{
	flex: 1 0 180px;
}


input, select {
	padding: 15px 10px;
	border: solid 1px var(--violet);
	border-radius: 5px;
}

input[type="submit"] {
	padding: 15px 60px;
	background-color: var(--violet);
	color: #fff;
	transition: 0.2s;
	cursor: pointer;
}

input[type="submit"]:hover {
	background-color: var(--light-turquoise);
	color: #fff;
}




/*************************/

#loading {
	position: fixed;
	height: 100vh;
	width: 100vw;
	left: 0;
	top: 0;
	background: rgba(0,0,0,0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10;
	flex-direction: column;
	font-size: 20px;
	text-align: center;
	color: var(--violet);
}

.animate-spin {
	border: 16px solid var(--violet);
	border-top: 16px solid transparent;
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

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

.loading-visible {
	display: flex !important;
}


/*************************/

.apercu {
	display: block;
	margin: auto;
	max-width: 100%;
}


/*************************/

/* Alerts */

.alerts-container {
	position: fixed;
	padding: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: none;
	animation: disappear 5s forwards;
	animation-delay: 5s;
}

@keyframes disappear {
	0% { opacity: 1;}
	10% { opacity: 0;}
	100% { opacity: 0; display: none;}
}

.success {
	padding: 40px 80px;
	background-color: var(--light-turquoise);
	color: #ffffff;
}

.error {
	padding: 40px 80px;
	background-color: var(--dark-grey);
	color: #ffffff;
}

.alerte {
	padding: 20px 50px;
	background-color: var(--light-turquoise);
	text-align: center;
	color: #fff;
	display: table;
	margin: auto;
	border-radius: 5px;
	font-weight: bold;
	font-size: 20px;
	position: relative;
	overflow: hidden;
}

.alerte i:nth-of-type(1) {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(to bottom, transparent, #fff);
	animation: animate1 2s linear infinite;
}

@keyframes animate1 {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.alerte i:nth-of-type(2) {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 3px;
	background: linear-gradient(to bottom, transparent, #fff);
	animation: animate2 2s linear infinite;
	animation-delay: 1s;
}
@keyframes animate2 {
	0% {
		transform: translateY(-100%);
	}
	100% {
		transform: translateY(100%);
	}
}

.alerte i:nth-of-type(3) {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(to bottom, transparent, #fff);
	animation: animate3 2s linear infinite;
}

@keyframes animate3 {
	0% {
		transform: translateX(100%);
	}
	100% {
		transform: translateX(-100%);
	}
}

.alerte i:nth-of-type(4) {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 3px;
	background: linear-gradient(to bottom, transparent, #fff);
	animation: animate4 2s linear infinite;
	animation-delay: 1s;
}

@keyframes animate4 {
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateY(-100%);
	}
}
