	/* Mise en page générale */

body{
	background-image: url("../img/square_dark.jpg");
	background-attachment: fixed;
	font-family: Calibri, "Lucida Sans", sans-serif;
	background-repeat: repeat;
	margin:0px;
}

p{
	color:#ffffff;
	text-align:justify;
}

h1{
	text-align: center;
}

h2{
	text-align: left;
}

h1, h2{
	color:#34B1BF;
}

.italic {
	font-style: italic;
}

a, a:visited{
	color: #ffffff
}

a:hover{
	text-shadow: 1px 1px 5px #ffffff;
}


	/* Organisation des pages */

.page{
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100vh;
}

.principal{
	flex:1;
}


	/* En tête de chaque page */

header{
	display: flex;
	flex-direction: row;
	align-items: center;
}

.LI, .FB{
	padding: 5px;
}

.begin{
	flex:1;
}

.LI_png{
	max-width: 30px;
}

.FB_png{
	max-width: 30px;
}


	/* Changement de style */
 
.style_bouton{
	text-align: center;
	border-radius: 5px;
	background-color: #34B1BF;
	padding: 10px;
	padding-left:20px;
	padding-right:20px;
	position: relative;
	left: 5px;
	top: 2px;
	font-weight: bold;
	color: #ffffff;
	cursor: pointer;
	border:none;
}

.style_bouton:hover{
	text-shadow: 3px 3px 5px #efefef;
}

.style{
	display: inline-block;
	max-height:35px;
	z-index:100;
}

.style_liste{
	display: none;
	background-color: #5a5a5a;
	padding-bottom: 1px;
	padding-top: 1px;
}

.style:hover .style_liste{
	display: block;
}

.style_choix{
	display: block;
	text-decoration:none;
	background-color: #34B1BF;
	padding: 6px;
	margin: 6px;
	text-align:center;
	color: #ffffff
}

@keyframes shake{
	0% {transform: rotate(0deg);}
	25% {transform: rotate(3deg);}
	50% {transform: rotate(0deg);}
	75% {transform: rotate(-3deg);}
	100% {transform: rotate(0deg);}
}

.style_choix:hover{
	animation-name: shake;
	animation-duration: 0.2s;
	animation-iteration-count: 2;
	animation-timing-function: ease-in-out;
}


	/* Menu de navigation */

.menu {
	display:-webkit-flexbox;
	display:-webkit-flex;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	font-size: 30px;
	z-index: 3;
}

.tab{
	flex: 1 0 auto;
}

.tab_ghost {
	flex: 6%;
}

a.tab#home {
	background: url('../img/home.svg');
}

a.tab#cv {
	background: url('../img/cv.svg');
}

a.tab#projects {
	background: url('../img/projects.svg');
}

a.tab#links {
	background: url('../img/link.svg');
}

a.tab#contact {
	background: url('../img/contact.svg');
}

@keyframes grossissement{
	from {background-size: auto 35%;}
	to {background-size: auto 50%;}
}

@keyframes ungrossissement{
	from {background-size: auto 50%;}
	to {background-size: auto 35%;}
}

a.tab#home, a.tab#cv, a.tab#projects, a.tab#links, a.tab#contact, div.tab_ghost {
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	padding: 15px;
	padding-left: 0px;
	padding-right: 0px;
	background-color: #1F6A73;
	background-origin: padding-box;
	background-repeat: no-repeat;
	background-position: 50% 15%;
	animation-name: ungrossissement;
	animation-timing-function:ease-out;
	animation-duration: 0.5s;
	animation-fill-mode: forwards;
	background-size: auto 35%;
}

a:hover.tab#home, a:hover.tab#cv, a:hover.tab#projects, a:hover.tab#links, a:hover.tab#contact{
	color:#d3d3d3;
	animation-name: grossissement;
	animation-timing-function:ease-out;
	animation-duration: 0.5s;
	animation-fill-mode: forwards;
}

a:active.tab{
	text-shadow: 3px 3px 5px #000000;
}

.tab_text {
	padding-top: 70px;
	line-height: 18px;
	margin-bottom: 0;
}


	/* Mise en page du corps de page */

.corps{
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}

.cote{
	flex: 20%;
}

.main{
	margin: 40px;
	padding: 20px;
	flex: 60%;
	text-align: justify;
	background-color: #5a5a5a;
}
	
.parcours {
	display: flex;
	justify-content: center;
	flex-direction: column;
}

.bloc_photo {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.photo_txt {
	flex: auto;
	padding: 20px;
}

.photo {
	flex: auto;
}


	/* Mise en page spécifique CV */

.cv{
	position: relative;
	padding-top: 110%;
}

.cv_pdf{
	position: absolute;
	top: 0;
	left: 10%;
	width: 80%;
	height: 100%;
	border: 0;
}


	/* Mise en page pied de page */

.pied {
	display: flex;
	flex-direction:column-reverse;
	font-size: 10px;
	text-align: center;
}

.credits, .contacts, .legals {
	background-color: #1F6A73;
	color: #ffffff;
	padding: 5px 15px 0px 15px;
	border-style: none;
}


	/* Mise en page du formulaire */

.form{
	background-color: #1F6A73;
	padding: 10px;
	text-align: center;
	line-height: 50px;
	border-style: none;
}

.case{
	background-color: #5a5a5a;
	color: #000000;
	border: solid 2px #000000;
	border-radius: 5px;
}

.case#avis{
	width:33%;
	height:80px;
}

.bouton_form{
	background-color: #5a5a5a;
}

.case:valid{
	border: solid 2px #038052;
}

.case:focus:valid{
	box-shadow: 0 0 5px 1px #038052;
	outline-style: none;
}

.case:focus:invalid{
	box-shadow: 0 0 5px 1px #8b0000;
	outline-style: none;
}


/* Reponsive : ecran de taille moyenne */

@media all and (max-width: 1000px) {

	.corps {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.cote {
		flex: 0%;
	}

	.main{
		margin: 20px;
		padding: 10px;
		flex: 100%;
	}

}


/* Reponsive : mobile */

@media all and (max-width: 600px) {
	.menu {
		flex-direction: column;
		margin:20px;
	}
	
	div.tab_ghost{
		padding: 5px;
	}
	
	.tab_text {
		bottom: 0%
	}
	
	a.tab#home, a.tab#cv, a.tab#projects, a.tab#links, a.tab#contact {
		padding: 15px;
		background-size: auto 70%;
		background-position: 10% 50%;
	}
	
	.cote {
		flex: 0%;
	}

	.main{
		margin: 20px;
		padding: 10px;
		flex: 100%;
	}

	.tab_text {
		padding-top: 0;
	}
	
	.tab_ghost {
		flex: 1%;
	}

	.bloc_photo {
		flex-direction: column;
	}

}
