/* Chargement du site */
#loading {
	align-items: center;
	background: #f44336;
	bottom: 0;
	display: flex;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 10;
}

	#loading svg {
		display: block;
		height: auto;
		margin: 0 auto;
		padding-top: 20px;
		width: 100px;
	}


/* Slider avec les éléments */
section#elements {
	left: 0px;
	position: fixed;
	right: 0px;
	top: 50%;
	transform: translateY(-50%);
}

	section#elements .element {
		height: 300px;
		margin: 0 80px;
		text-align: center;
		width: calc(100%/3);
	}

		section#elements .element .content {
			height: 100%;
			position: relative;
			transform: scale(0.5);
			transition: all 0.5s ease;
		}

		section#elements .element .content:after {
			background: rgba(255,255,255,0.1);
			bottom: 0;
			content: '';
			left: 0;
			position: absolute;
			right: 0;
			top: 0;
		}

		section#elements .element.is-selected .content {
			transform: scale(1);
		}

			section#elements .element.is-selected .content a {
				bottom: 0;
				left: 0;
				position: absolute;
				right: 0;
				top: 0;
				z-index: 10;
			}

			section#elements .element .content p:first-of-type {
				display: block;
				font-size: 170px;
				left: 0;
				position: absolute;
				right: 0;
				top: 50%;
				transform: translateY(-50%);
				transition: top 0.5s ease;
			}

			section#elements .element.is-selected .content p:first-of-type {
				top: 35%;
			}

			section#elements .element .content p:last-of-type {
				bottom: 0;
				font-size: 25px;
				left: 0;
				opacity: 0;
				position: absolute;
				right: 0;
				transition: all 0.5s ease;
			}

			section#elements .element.is-selected .content p:last-of-type {
				bottom: 15%;
				opacity: 1;
			}


/* Éléments en grille */
section#elements.grid {
	padding: 30px;
	position: static;
	transform: translateY(0);
}

	section#elements.grid .element {
		display: inline-block;
		height: 250px;
		margin: 30px;
		width: calc(100%/5 - 60px);
	}

		section#elements.grid .element .content {
			transform: scale(1);
		}

			section#elements.grid .element .content a {
				bottom: 0;
				left: 0;
				position: absolute;
				right: 0;
				top: 0;
				z-index: 10;
			}

			section#elements.grid .element .content p:first-of-type {
				font-size: 110px;
				top: 45%;
			}

			section#elements.grid .element .content p:last-of-type {
				bottom: 15%;
				opacity: 1;
			}