* {
	box-sizing: border-box;
}

html,body{
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px;
	font-size: 100%;
scroll-behavior: smooth;
}

div#overlay {
	position: absolute;
	display: none;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-gap: .5vh;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	padding: 10px;
	background-color: rgba(0,0,0,.75);
	z-index: 100;
	animation-name: show;
	animation-duration: .4s;
	transition-timing-function: ease-out;
  	overflow-y: hidden;
  	overflow-x:hidden;
	padding: 13% 0% 7% 0%;
}

@keyframes show {
	0% {top: 700px}
	100% {top: 0px}
}

div#overlay a {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Oswald', sans-serif;
	font-size: 1.1rem;
	color: white;
	border: solid 1px rgba(255,255,255,.4);
	text-decoration: none;
	margin: 0px 10px 5px 0px;
}

div#overlay a:hover {
	background-color: rgba(0,0,0,.4);
	border-color: rgba(255,255,255,1);
}

body{ 
	margin: 0px;
	padding: 0px
	font-size: 100%;
	background-color: #f9f9f9;
	color: black;

	background-image: url("images/bg.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 55%;

}

body p{ 
	position: absolute;
	bottom: 0px;
}

header {
	position: fixed;
	height: 100px;
	top: 0px;				
	width: 100%;
	background-color: black;
	font-family: 'Oswald', sans-serif;
	font-size: 2rem;
	color: white;
	padding: 10px;
	z-index: 50;
}

header main {
	width: 100%;
	max-width: 960px;
	height: 100%;
	margin: auto;
}

header main div.title {
	position: absolute;
	bottom: 20px;
}

header main nav {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	height: 80%;
	padding-bottom: 0px;
	font-size: .9rem;
}

header main nav a {
	text-decoration: none;
	color: gray;
	font-family: arial, helvetica, sans-serif;
	margin-left: 15px;
}

header main nav a:hover {
	color: red;
}

div#mobile {
	display: none;
	position: absolute;
	right: 20px;
}

main.main {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-width: 960px;
	margin: auto;
}


&main &nav {
	position: relative;
	width: 100%;	
	min-width: 230px;
	margin-right: 30px;
	height: calc(auto + 100px);
	padding: 15px 0;

}


p#projet {
	margin-top: -30px;

}

section {
	margin-top: 40px;
	margin-bottom: 80px;
	background-color: #f9f9f9;
	padding: 20px;
}

section article {
	display: block;
	position: relative;
	top: 10px;
	width: 100%;
	max-width: 960px;
	margin: auto;
	padding: 15px;
	padding-top: 15px;
	border: solid 1px rgba(0,0,0,.2);
	margin-bottom: 30px;
	margin-top: 30px;
	font-size: .95rem;
	line-height: 1.25rem;
}

section article p {
	display: block;
	position: relative;
	font-family: arial;
	width: 100%;
	max-width: 600px;
}

section article:hover {
	border-color: rgba(0,0,0,.4);
	box-shadow: 5px 5px 10px rgba(0,0,0,.2);
	transition: all .25s;
}


section h1 {
	padding: 0;
	margin:0;
	margin-bottom: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 21px;
}

section h2 {
	padding: 0;
	margin:0;
	margin-bottom: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
}

section h3 {
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
}

section article img {
	width: 100%;
}

li {
	font-family: arial;
	font-size: .95rem;
	line-height: 1.25rem;
}


section footer {
	padding-top: 30px;
	padding-bottom: 60px;
	width: 100%;
	max-width: 960px;
	margin: auto;
}

section footer a {
	display: block;
	margin-top: -10px;
	text-decoration: none;
	color: gray;
	font-family: arial, helvetica, sans-serif;
	line-height: .8rem;
}

section footer a:hover {
	color: red;
}

section img {
	display: block;
	margin-bottom: 10px;
}

section img.cac {
	position: relative;
	left: -5px;
	height: 55px;
}

section img.cal  {
	height: 35px;
}


@media screen and (max-width: 768px) {

	div#overlay {
		padding: 105px 20px 20px 20px;
		height: 100%;
	grid-template-rows: repeat(5,1fr);
	grid-gap: 10px;

	}

	div#overlay a {

		height: 100%;
	}

	div#mobile {
		display: block;
	}

	img.menu {
		width: 50px;
	}

	nav#desktop {
		display: none;
	}

	header {
		font-size: 1.7rem;
	}

	header main {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		padding-bottom:0px;
	}

	main {
		display: block;
		position: relative;
		top: -10px;
		padding: 10px;	
		height: auto;
	}

	main nav {
		background-image: none;
		border: solid 0px rgba(0,0,0,.4);
	
	}

	section {
		display: block;
		clear: both;
		padding: 20px;
}


}
