/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15pt;
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.75em;
	color: #fff;
	background: #fff;
	overflow: hidden;
}

/* Wrapper */
#wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Background */
#bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 6750px;
	height: 100%;
	background: #012f8d bottom left;
	background-repeat: repeat-x;
	background-size: 2250px auto;
	animation: bgScroll 60s linear infinite;
	transform: translate3d(0, 0, 0);
	transition: background-color 0.5s ease;
}

@keyframes bgScroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-2250px, 0, 0); }
}

/* Overlay */
#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='p' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23fff' opacity='0.05'/%3E%3C/pattern%3E%3Crect fill='url(%23p)' width='100%25' height='100%25'/%3E%3C/svg%3E"),
	linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
	background-position: top left, center center;
	background-repeat: repeat, no-repeat;
	background-size: auto, cover;
	animation: fadeIn 1.5s 1.5s forwards;
	opacity: 0;
}

/* Main */
#main {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
}

#main:before {
	content: '';
	display: inline-block;
	height: 100%;
	margin-right: 0;
	vertical-align: middle;
	width: 1px;
}

/* Header */
#header {
	display: inline-block;
	text-align: center;
	width: 90%;
	animation: slideUp 1s 2.25s forwards;
	opacity: 0;
	transform: translate3d(0, 1em, 0);
	vertical-align: middle;
	position: relative;
	top: -1em;
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

#header h1 {
	font-size: 4.35em;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1em;
}

#header p {
	font-size: 1.25em;
	margin: 0.75em 0 0.25em 0;
	opacity: 0.75;
}

/* Navigation */
#header nav {
	margin: 1.5em 0 0 0;
}

#header nav ul {
	list-style: none;
}

#header nav li {
	display: inline-block;
	height: 5.35em;
	line-height: 5.35em;
	width: 5.35em;
	animation: iconFadeIn 0.5s ease-in-out forwards;
	opacity: 0;
	transform: translate3d(0, 1em, 0);
	vertical-align: top;
	position: relative;
}

@keyframes iconFadeIn {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

#header nav li:nth-child(1) { animation-delay: 2.5s; }
#header nav li:nth-child(2) { animation-delay: 2.75s; }
#header nav li:nth-child(3) { animation-delay: 3s; }
#header nav li:nth-child(4) { animation-delay: 3.25s; }
#header nav li:nth-child(5) { animation-delay: 3.5s; }
#header nav li:nth-child(6) { animation-delay: 3.75s; }
#header nav li:nth-child(7) { animation-delay: 4s; }

#header nav a {
	border: 0;
	display: inline-block;
	text-decoration: none;
	color: inherit;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#header nav a:before {
	display: block;
	font-size: 1.75em;
	height: 2.5em;
	line-height: 2.5em;
	width: 2.5em;
	border-radius: 100%;
	border: solid 1px #fff;
	text-align: center;
	transition: all 0.2s ease-in-out;
	margin: 0 auto;
	position: relative;
	top: 0;
}

#header nav a:hover:before {
	background-color: rgba(255, 255, 255, 0.175);
}

#header nav a:active:before {
	background-color: rgba(255, 255, 255, 0.35);
}

#header nav a .label {
	display: none;
}

#header nav li p {
	display: block;
	font-size: 0.85em;
	font-weight: 300;
	letter-spacing: 0.05em;
	line-height: 1.2em;
	margin-top: 0.75em;
	text-decoration: overline;
	text-decoration-style: double;
	white-space: nowrap;
}

/* Footer */
#footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 6em;
	line-height: 8em;
	text-align: center;
	background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
	cursor: default;
}

#footer .copyright {
	color: #777;
}

#footer .copyright a {
	color: #777;
	text-decoration: none;
	border-bottom: dotted 1px;
	transition: border-color 0.2s ease-in-out;
}

#footer .copyright a:hover {
	border-color: transparent;
}

/* Responsive - Wide */
@media screen and (max-width: 1680px) {
	body { font-size: 13pt; }
	#bg {
		width: 4500px;
		background-size: 1500px auto;
	}
	@keyframes bgScroll {
		to { transform: translate3d(-1500px, 0, 0); }
	}
}

/* Responsive - Normal */
@media screen and (max-width: 1280px) {
	body { font-size: 12pt; }
	#bg {
		width: 2250px;
		background-size: 750px auto;
	}
	@keyframes bgScroll {
		to { transform: translate3d(-750px, 0, 0); }
	}
}

/* Responsive - Mobile */
@media screen and (max-width: 736px) {
	body { font-size: 11pt; min-width: 320px; }
	#header h1 { font-size: 2.5em; }
	#header p { font-size: 1em; }
	#header nav {
		margin: 1em 0 0 0;
	}
	#header nav li {
		width: 4.8em;
		height: 6em;
		line-height: 4.8em;
		margin: 0 0.15em 0.5em 0.15em;
	}
	#header nav a:before {
		font-size: 1.5em;
		height: 2.2em;
		line-height: 2.2em;
		width: 2.2em;
	}
	#header nav li p {
		font-size: 0.75em;
		margin-top: 0.3em;
		line-height: 1em;
	}
	#header nav a:hover { font-size: 1em; }
	#header nav a:active { font-size: 1em; }
	#bg {
		width: 900px;
		background-size: 300px auto;
	}
	@keyframes bgScroll {
		to { transform: translate3d(-300px, 0, 0); }
	}
}

/* Responsive - Mobile Portrait */
@media screen and (max-width: 480px) {
	#header nav li {
		width: 4.5em;
		height: 5.5em;
		line-height: 4.5em;
		margin: 0 0.1em 0.8em 0.1em;
	}
	#header nav a:before {
		font-size: 1.3em;
		height: 2em;
		line-height: 2em;
		width: 2em;
	}
	#header nav li p {
		font-size: 0.65em;
		margin-top: 0.25em;
	}
	#bg {
		width: 1237.5px;
		background-size: 412.5px auto;
	}
	@keyframes bgScroll {
		to { transform: translate3d(-412.5px, 0, 0); }
	}
	#header nav { padding: 0 0.5em; }
}

/* Responsive - Très petit écran */
@media screen and (max-width: 360px) {
	#header nav li {
		width: 4em;
		height: 5.2em;
		line-height: 4em;
		margin: 0 0.05em 1em 0.05em;
	}
	#header nav a:before {
		font-size: 1.2em;
		height: 1.9em;
		line-height: 1.9em;
		width: 1.9em;
	}
	#header nav li p {
		font-size: 0.6em;
		margin-top: 0.2em;
	}
}
