@import url("https://use.typekit.net/aow1fqs.css");
html {
	scroll-behavior:smooth;
}

body {
	font-family:'century-gothic';
	line-height:1.5;
	margin:0;
}
 a, a:hover, a:focus, a:active {
      color: inherit;
 }
/* Barre de navigation */
#logo-esquiss{
	margin-left:10px;
	margin-top:5px;
	height:50px;
}
.navbar{
	font-family:'acumin-pro';
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-end;
	list-style-type: none;
	background-color: white;
	margin:0;
	padding:0;
}
.nav1{
	justify-content: flex-end;
	z-index:1;
}
.nav1 li a {
	display: block;
	color: #20356E;
	text-align: center;
	padding: 15px 10px;
	text-transform: uppercase;
	text-decoration: none;
}
.nav1 li a:hover {
  background-color: #EFEFEF;
}
.nav1 li a.active{
	color: #797A7C;
}
#topnav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	box-shadow: 15px 5px 20px #C8CACC;
	z-index:1;
	background-color:white;
}
/* Footer */
#footer {
	background-color:#322D32;
	color:white;
	text-decoration: none;
}
#footer p{
	margin-bottom:0;
	font-size:0.7em;
}
.coord a{
	color:white;
	text-decoration: none;
}
.coord {
	list-style-type: none;
	font-style:normal;
	font-size:0.8em;
}
#adresse {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content:center;
}
#reseaux {
	display:flex;
	flex-direction:row;
	flex-wrap:nowrap;
	justify-content:space-between;
	margin:18px;
	margin-top:50px;
	margin-left:10vw;
	width:15%;
}
#reseaux a{
	width:31px;
}
.socialNet {
	fill:white;
	max-width:35px;
}
.socialNet:hover{
	fill:#797A7C;
}
/* Accueil */
#accueil {
	min-height:100vh;
	position:relative;
	background-image: url('images/image-accueil.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed; 
	background-position:right;
	background-size: cover;
}
#grenade {
	position:relative;
	width:100%;
	margin:auto;
	padding:30vh 0 10vh;
	color:white;
	text-transform: uppercase;
	text-align:center;
}

#grenade div {
	position:absolute;
	top :55%;
	left:29%;
	font-size:5vw;
	z-index:1;
}
#grenade img {
	width:25%;
}
#biographie {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items:center;
	width:80%;
	max-width:900px;
	margin:10% auto;
	text-align: justify;
}
#biographie #texte_bio {
	width:60%;
}
}
#biographie h2 {
	font-weight:60;
	color: #797A7C;
}

#biographie img{
	width:30%;
	max-width:220px;
}
/*Portfolio*/
.nav2{
	justify-content: space-evenly;
	background-color:rgba(255,255,255,0.3);
	position:relative;
}
.nav2 li{
	cursor:pointer;
	width: 20%;
}
.nav2 li a {
	display: block;
	color: #20356E;
	text-align: center;
	padding: 15px 0px;
	text-transform: uppercase;
	text-decoration:none;
}
.trait {
	height:2px;
	background-color:#20356E;
	transition:all 0.5s;
}
.short-txt{
	display:none;
}
li:hover div.trait, li.active div.trait {
	height:5px;
	box-shadow:0px 5px 8px 2px #C8CACC;
}
.content {
  padding: 16px;
}

#nav.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  z-index:1;
}
.categorie {
	display:none;
	/* transform:translateY(-100%); */
	/* opacity:0; */
	/* visibility:hidden; */
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items:center;
	animation: fade-in 1s;
	/* transition:opacity 0.3s; */
}
.categorie img {
	margin:25px 5px;
	width:24vw;
	height:18vw;
	max-height:288px;
	max-width:384px;
	overflow:hidden;
}
.categorie>img{
	border-radius:5px;
	cursor: pointer;
	transition: 0.7s;
}
.categorie>img:hover{
	opacity:0.7;
}
.categorie.active{
	/* transform:translateY(0);
	opacity:1;
	visibility:visible;
	transition:opacity 0.3s; */
	display:flex;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
/* The Modal (background) */
.modal {
	visibility:hidden; /* Hidden by default */
	opacity:0;
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	background-color: rgba(200,200,200,0); /* Fallback color */
	transition: opacity 0.5s, background-color 1s;	
}

.modal.active {
	visibility:visible;
	opacity:1;
	background-color: rgba(0,0,0,0.9);
	transition: opacity 0.5s, background-color 1s;
}
/* Modal Content (image) */
.modal-content {
	position:absolute;
	left:40vw;
	max-height:80%;
	max-width:50%;
	padding:10vh 0;
}
/* Modal infos */
.info {
	visibility:hidden;
	width:350px;
	height:100%;
	position:absolute;
	top: 0;
	left: 0;
	z-index: 1;
	background-color:white;
	opacity:0;
	transform:translateX(-100%);
	color:White;
	transition: visibility 0.3s, opacity 0.5s, transform 0.2s ease-out;
	overflow-y:auto;
}
.info.active {
	opacity:1;
	transform:translateX(0);
	visibility:visible;
	transition: visibility 0.3s, opacity 0.3s, transform 0.2s ease-out;
}
/* Caption of Modal Image */
#client {
  margin: auto;
  display: block;
  width: 70%;
  max-width: 700px;
  text-align: center;
  color: #20356E;
  font-weight:bold;
  margin-bottom:15px;
  font-size:110%;
}
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: rgba(73,72,72);
  padding: 10px 0;
  height: 20px;
  font-size:100%;
}
#date{
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: rgba(122,114,114);
  padding: 5px 0;
  margin-bottom:10px;
  height: 20px;
  font-size:90%;
}
/* Caption of Modal Image */
#det {
  height:10%;
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: justify;
  color:rgba(73,72,72);
  font-size:80%;
}
/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/*Clients*/
#reconnaissance {
	align-items:center;
	width:80%;
	max-width:900px;
	margin:10% auto;
	text-align: justify;
}
.client {
	display:flex;
	/* transform:translateY(-100%); */
	/* opacity:0; */
	/* visibility:hidden; */
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-items:center;
	/* transition:opacity 0.3s; */
}
.client img{
	margin:25px 5px;
	width:12vw;
	height:9vw;
	max-height:180px;
	max-width:240px;
	min-width:120px;
	min-height:90px;
	overflow:hidden;
}
.client img{
	cursor: pointer;
	transition: 0.7s;
}
.client img:hover{
	opacity:0.5;
}

/*Media Queries*/
@media screen and (max-width:1000px) {
	.info {
	width:45%;
	}
	.modal-content {
	left:50vw;
	max-height:80%;
	max-width:40%;
	}
	.categorie img{
		width:31.2vw;
		height:23.4vw;
	}
	
}

@media screen and (max-width:800px) {
	.nav1{
	flex-direction: column;
	justify-content: center;
	}
	#topnav{
		flex-direction: column;
		justify-content: center;
	}
	#logo-esquiss{
		display:block;
		position:static;
		margin-left:auto;
		margin-right:auto;
		width:50%;
	}
	#accueil {
	min-height:50vh;
	}
	#grenade div {
	top :63%;
	left:20%;
	font-size:6vw;
	}
	#grenade img {
	width:35%;
	}
	.modal{
		max-height:100vh;
		padding:0px;
		overflow-y:auto;
	}
	.modal-content {
		display:block;
		position:static;
		left:auto;
		margin:auto;
		max-height:70vh;
		max-width:70%;
		padding:70px 0px 0px;
	}
	#det {
		height:auto;
		margin: auto;
		display: block;
		width: 80%;
		max-height:none;
		max-width: 700px;
		text-align: justify;
		color:rgba(73,72,72);
		font-size:80%;
		padding-bottom:20px;
		overflow-y:auto;
	}
	.info {
		width:100%;
		height:auto;
		position:relative;
		top:auto;
		bottom:-10vh;
		transform:translateY(+200%);
		overflow-y:visible;
	}
	.info.active {
		opacity:1;
		transform:translateY(0);
		visibility:visible;
		transition: visibility 0.3s, opacity 0.3s, transform 0.2s ease-out;
	}
	#reseaux {
	justify-content:space-between;
	margin:50px;
	width:20%;
}
	#biographie p{
		font-size:0.8em;
	}
	#footer p{
		font-size:0.5em;
	}
	.coord {
		font-size:0.7em;
	}
}
@media screen and (max-width:600px) {
	.short-txt{
		display:inline-block;
	}
	.full-txt{
		display:none;
	}
	.categorie img {
	width:36vw;
	height:27vw;
	min-width:160px;
	min-height:120px;
	}
		.coord {
		padding:0;
	}
	#coordonnees{
		display:flex;
		flex-direction:column;
		flex-wrap:nowrap;
		justify-content:space-between;
		width:40%;
	}
	#adresse {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content:center;
	}
	#reseaux {
	flex-direction:column;
	justify-content:space-between;
	width:8%;
	margin-bottom:10px;
	margin-top:10px;
	margin-right:10px;
	width:31px;
	}
}
@media screen and (max-width:400px) {
	#grenade div {
	top :65%;
	left:12%;
	font-size:8vw;
	}
	#grenade img {
	width:50%;
	}
	#biographie {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items:center;
	width:100%;
}
#biographie #texte_bio {
	width:70%;
}
#biographie h2 {
	text-align:center;
}
}
