/* Bascics */

html, body {
	height: 100%;
	width: 100%;
	padding: 0 !important;
}

section {
	height: 100%;
	width: 100%;
	position: relative;
	overflow: hidden;
}

h1 {
	font-family: "Quando", sans-serif;
}

@media (min-width: 0px) {
	h1 {
		font-size: 20px;
	}
}
@media (min-width: 780px) {
	h1 {
		font-size: 25px;
	}
}
@media (min-width: 980px) {
	h1 {
		font-size: 25px;
	}
}
@media (min-width: 1200px) {
	h1 {
		font-size: 30px;
	}
}

/* Bootstrap Powered */

.dis-table {
	display: table;
	width: 100%;
	height: 100%;
}

.dis-table .dis-table-cell {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}

/* Loading Screen */

.load {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("../mmd/background.png");
	z-index: 9000;
}

@-webkit-keyframes mymove {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
@-moz-keyframes mymove {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
@-ms-keyframes mymove {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
@-o-keyframes mymove {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}
@keyframes mymove {
	from {
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
		-moz-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		-o-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

.load .loading-page {
	-webkit-animation: mymove 5s infinite;
	-moz-animation: mymove 5s infinite;
	-ms-animation: mymove 5s infinite;
	-o-animation: mymove 5s infinite;
	animation: mymove 5s infinite;
}

.load .loading-page img {
	width: 20%;
}

/* Navigation Menu */

nav {
	position: fixed;
	z-index: 500;
	top: 0px;
	left: 0px;
	width: 100%;
	text-align: left;
	background: url("../mmd/background.png");
}

nav ul {
	margin: 0;
	float: left;
	padding-left: 0;
	display: inline-block;
}

nav ul li {
	text-align: left;
	display: inline-block;
}

nav ul li a {
	float: left;
	margin: 10px;
	font-family: "Open Sans", sans-serif;
	-webkit-transition: all 100ms linear;
	-moz-transition: all 100ms linear;
	-ms-transition: all 100ms linear;
	-o-transition: all 100ms linear;
	transition: all 100ms linear;
	text-decoration: none;
	color: white;
}

nav ul li a:hover, nav ul li a:focus {
	text-decoration: none;
	color: #999999;
}


@media (max-width: 350px) {
	nav {
		display: none;
	}
}

/* Page Bottom */

#bottom {
	position: initial;
	background: url("../mmd/background.png");
}

@media (max-width: 960px) {
	#bottom {
		display: none;
	}
}

/* ---------------------------------------------*/
/*				Section 1 - accueil				*/
/* ---------------------------------------------*/

section#accueil {
	background: url("../mmd/background.png");
}

section#accueil #logo, section#accueil #canvas, section#accueil h1 {
	position: fixed;
}

section#accueil #logo {
	text-align: center;
	padding-top: 150px;
	width: 100%;
	top: 0;
}

section#accueil #logo img {
	height: 200px;
}

/*----- Backup logo.svg -----*/
/*
rect {
	animation: drawRect 5s;
	animation-fill-mode: forwards;
	animation-timing-function: linear;
}

@keyframes drawRect {
	0% { stroke-dashoffset: 1000; fill-opacity: 0; }
	40% { stroke-dashoffset: 0; fill-opacity: 0; }
	70% { stroke-dashoffset: 0; fill-opacity: 0; }
	100% { stroke-dashoffset: 0; fill-opacity: 1; }
}

path {
	animation: drawPath 5s;
	animation-fill-mode: forwards;
	animation-timing-function: linear;
}

@keyframes drawPath {
	0% { stroke-dashoffset: -1400; }
	20% { stroke-dashoffset: -1400; }
	100% { stroke-dashoffset: 0; }
}
*/

section#accueil #canvas {
	left: 0;
	top: 0;
}

section#accueil h1 {
	text-align: center;
	color: white;
	bottom: 150px;
	width: 100%;
}

@media (max-width: 960px) {
	section#accueil #logo, section#accueil #canvas, section#accueil h1 {
		position: absolute !important;
	}
	section#accueil #logo {
		padding-top: 100px;
	}
	section#accueil #logo img {
		height: 150px;
	}
	section#accueil h1 {
		bottom: 75px;
		font-size: 20px;
	}
}

@media (max-height: 650px) {
	#canvas {
		display: none;
	}
}

/* ---------------------------------------------*/
/*			Section 2 - presentation			*/
/* ---------------------------------------------*/

section#presentation {
	background: rgba(0, 0, 0, 0.05);
	min-height: 1050px;
}

section#presentation h2 {
	text-align: center;
	max-width: 400px;
	padding: 40px 0;
	margin: 0 auto;
}

section#presentation p:not(#cv) {
	font-family: "Open Sans", sans-serif;
	text-align: justify;
	font-size: 16px;
	max-width: 800px;
	padding-top: 40px;
	padding-left: 16px;
	padding-right: 16px;
	padding-bottom: 15px;
	margin: 0 auto;
}

section#presentation #circle {
	width: 320px;
	margin: 0 auto;
	max-width: 60%;
	position: relative;
}

section#presentation #circle img {
	width: 100%;
	height: 100%;
}

section#presentation #cv {
	background: url("../mmd/background.png");
	box-shadow: 3px 3px 0px 0px #452626;
	margin: 0 auto;
	padding: 0;
	width: 320px;
}

section#presentation #cv a {
	-webkit-transition: all 100ms linear;
	-moz-transition: all 100ms linear;
	-ms-transition: all 100ms linear;
	-o-transition: all 100ms linear;
	transition: all 100ms linear;
	color: white;
}

section#presentation #cv a:hover {
	text-decoration: none;
	color: #999999;
}

section#presentation #cv a button {
	background: transparent;
	border: 0;
}

/* ---------------------------------------------*/
/*			Section 3 - portfolio				*/
/* ---------------------------------------------*/

section#portfolio {
	height: auto;
	clear: both;
}

section#portfolio .works {
	width: 100%;
	clear: both;
	float: left;
}

section#portfolio .works .work {
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-ms-background-size: cover;
	-o-background-size: cover;
	background-size: cover; 
	-webkit-filter: saturate(10%);
	-moz-filter: saturate(10%);
	-ms-filter: saturate(10%);
	-o-filter: saturate(10%);
	filter: saturate(10%);
	border: 0px solid white;
	overflow: hidden;
	cursor: pointer;
	height: 50vh;
	padding: 0;
}

section#portfolio .works .work:hover {
	-webkit-transition: all 500ms linear;
	-moz-transition: all 500ms linear;
	-ms-transition: all 500ms linear;
	-o-transition: all 500ms linear;
	transition: all 500ms linear;
	-webkit-filter: saturate(100%);
	-moz-filter: saturate(100%);
	-ms-filter: saturate(100%);
	-o-filter: saturate(100%);
	filter: saturate(100%);
}

section#portfolio .works .work .dis-table {
	height: calc(100% + 10px);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	opacity: 0;

	-webkit-filter: saturate(100%);
	-moz-filter: saturate(100%);
	-ms-filter: saturate(100%);
	-o-filter: saturate(100%);
	filter: saturate(100%);

	-webkit-transition: all 1000ms linear;
	-moz-transition: all 1000ms linear;
	-ms-transition: all 1000ms linear;
	-o-transition: all 1000ms linear;
	transition: all 1000ms linear;

	-webkit-transition-timing-function: linear;
	-moz-transition-timing-function: linear;
	-ms-transition-timing-function: linear;
	-o-transition-timing-function: linear;
	transition-timing-function: linear;
}

section#portfolio .works .work:hover .dis-table {
	background: #A65656;
	color: white;
	opacity: 1;
}

section#portfolio .works .work h2 {
	text-shadow: 1px 1px 1px #000000 !important;
}

a:hover {
	text-decoration: none;
}

.modal.fade .modal-dialog {
	-webkit-transform: scale(0.1);
	-moz-transform: scale(0.1);
	-ms-transform: scale(0.1);
	-o-transform: scale(0.1);
	transform: scale(0.1);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 0;
}

.modal.fade.in .modal-dialog {
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 1;
}

.modal-dialog {
	width: auto;
	margin: auto;
	max-width: 80%;
	margin-top: 55px;
}

.modal-header {
	background: url("../mmd/background.png");
	border-radius: 0;
	margin: 0 auto;
	border: none;
	color: white;
	margin:0;
}

.modal-body {
	overflow-y: auto;
	max-height: 725px;
}

.modal-body img {
	margin: auto;
	max-width: 400px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.modal-body p {
	padding-left: 50px;
	padding-right: 50px;
	text-align: justify;
}

.modal-body::-webkit-scrollbar
{
	background-color: #F5F5F5;
	width: 12px;
}

.modal-body::-webkit-scrollbar-track
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #F5F5F5;
	border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb
{
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	background-color: #E5E5E5;
	border-radius: 10px;
}

.modal-footer {
	border: none;
}

.modal-footer button {
	background: url("../mmd/background.png");
	box-shadow: 3px 3px 0px 0px #452626;
	padding: 15px 35px 15px 35px;
	border-radius: 0;
	margin: 0 auto;
	border: none;
	color: white;
}

.modal-footer button:hover {
	color: white;
}

.modal-header .close {
	color: white;
	opacity: 1;
}

/* ---------------------------------------------*/
/*				Section 4 - contact				*/
/* ---------------------------------------------*/

section#contact {
	font-family: "Segoe UI Light", sans-serif;
	background: #A65656;
	min-height: 750px;
}

section#contact .dis-table {
	width: 80%;
	margin: 0 auto;
	max-width: 800px;
}

section#contact .dis-table .dis-table-cell .title {
	font-size: 5em;
	padding: 40px 0;
	color: white;
}

section#contact .dis-table .dis-table-cell div {
	border: none;
}

section#contact .dis-table .dis-table-cell input {
	background: white;
	border-radius: 0;
	padding: 20px;
	height: 50px;
	border: none;
}

section#contact .dis-table .dis-table-cell textarea {
	background: white;
	border-radius: 0;
	padding: 20px;
	height: 150px;
	width: 100%;
	border: none;
}

section#contact .dis-table .dis-table-cell button {
	background: url("../mmd/background.png");
	box-shadow: 3px 3px 0px 0px #452626;
	width: 95%;
	border-radius: 0;
	margin: 0 auto;
	padding: 20px;
	border: none;
	color: white;
}

.input-text {
	margin: .5em 0;
	border-width: 1px;
	border-style: solid;
}

.input-text input{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
	background: transparent none;
	border-radius: inherit;
	line-height: 1.4em;
	text-align: left;
	display: block;
	padding: .4em;
	width: 100%;
	outline: 0;
	margin: 0;
	border: 0;
}