/****** typographie ******/

@font-face {
    font-family: "regular";
    src: url("../typo/CaniculeDisplayv0.1-Light.otf") format("truetype");
}

@font-face {
    font-family: "light";
    src: url("../typo/Raleway-Regular.ttf") format("truetype");
}

/***** generalities of website  *****/

* {
  box-sizing: border-box;
}

body {
	background-color: #fff8ee;
	padding: 0;
}

header {
	margin-top: 2vh;
	margin-bottom: 2vh;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
	margin : 0;
	padding: 0;
}

h1 {
	margin : 0; 
	padding: 0;
	color :#4941ef;
}

h2{
	font-family: "regular";
	color :#4941ef;
	font-size: 1.7em; 
	margin: 0;
	padding: 0;
}

p {
	line-height: 25px;
	margin : 0;
	padding: 0;
	color :#4941ef;
}
a, a:visited, a:active {
  text-decoration: none;
  display:inline-block;
  position: relative;
  overflow: hidden;
  transition: color .3s cubic-bezier(0.1, 0.2, 0, 1);
  color:#4941ef;
}

a:hover{
  color:#4941ef;
}

a:after {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  content: "";
  border-bottom: 2px solid;
  transform: translate3d(-101%,0,0);
  transition: transform .3s cubic-bezier(0.1, 0.2, 0, 1);
}

a:hover:after {
  transform: translate3d(0,0,0);
}


br {
	margin-bottom : 10px;
	line-height: 20px;
}

/***** menu layout *****/

.grid-menu {
	display: grid;
    grid-template-columns: 20px repeat(6, 1fr 20px);
}

#name {
	font-family: "regular";
	grid-column: 1/span 2;
	font-size: 1.7em;
	text-align: left;
}

#field {
	  font-family: "regular";
	  grid-column: 4/span 6;
	  font-size: 1.7em;
	  text-align: center;
}

#informations {
	font-family: "regular";
  grid-column: 11/span 3;
  font-size: 1.7em;
  text-align: right;
}

/***** home layout *****/

.container-home-grid {
  margin: 0 auto;
  width: 100%;
  column-count: 3;
  column-gap: 0;
}
   
.home-grid {
  padding: 5px;
  page-break-inside: avoid;
  break-inside: avoid;
  padding-bottom: 0;
}


.home-grid:hover{
  opacity: 0.2;
  filter: alpha(opacity=50);
}

.home-grid:hover img{
  background-color:#4941ef;
}

.home-grid a, a:visited, a :active, a :hover a :after{
  transition: none;
 color: transparent;
}


.home-grid img {
width: 100%;
  vertical-align: bottom;
}

/***** informations layout *****/
#grid-informations {
	grid-template-rows: 20px repeat(2, 1fr 20px);
	display: grid;
    grid-template-columns: 20px repeat(6, 1fr 20px);

}


#informations-text {
	grid-column: 6/span 7;
	grid-row: 1/ span 4;
	font-family: "light";
	font-size: 1.2em;
	margin-bottom: 10%;
}


#contact {
	grid-column: 1/span 3;
	grid-row: 1/ span 3;
	font-family: "regular";
	font-size: 1.2em;
	-webkit-hyphens: auto; /* pour Safari */
    hyphens: auto;
}

#links {
	grid-column: 6/span 8;
	grid-row: 5/ span 1;
	font-size: 1em;
}


#links li {
	display: inline-block;
	font-family: "regular";
	font-size: 1.2em;

}

#mentions {
	grid-column: 1/span 4;
	grid-row: 4/ span 2;
	font-family: "regular";
	line-height: 20px;
	font-size: 1em;
	align-self: flex-end;
}

#mentions br{
	margin: 0;
}

/***** project layout *****/

.project-left {
	grid-column: 1/span 4;
}

.project-left p{
	font-family: "regular";
	font-size: 1.2em;
	}

.project-right {
	grid-column: 6/span 7;
	margin-bottom: 1%;
}

.project-right p{
	font-family: "light";
	font-size: 1.2em;
	}



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

	h2 {
		font-size: 1.4em;
	}
	
	p{
		line-height: 20px;
	}



	.project-right p {
		font-size: 1em;
}

.project-left p {
   font-size: 1em;
}

	#count {
		font-size: 1.4em;
	}
	#name {
	font-size: 1.4em;
	}

	#informations {
	font-size: 1.4em;
	grid-column: 10/span 5;
	}

	#field {
	font-size: 1.4em;
	grid-column: 4/span 6;
	}

	.container-home-grid {
  	column-count: 2;
  	}

  	#informations-text {
  		font-size: 1em;
  	}

  	#contact {
  		font-size: 1em;
  	}

  	#mentions {
  		font-size: 0.8em;
  	}



}

@media screen and (max-width: 450px) {
	#field {
	display: none;
	}

	#name {
	grid-column: 1/span 6;
	}

	.grid-project {
  margin-left: 2%;
  margin-right: 2%;
}

	.project-left {
  grid-column: 1/span 13;
  margin-bottom: 5vh;
}

.project-right {
  grid-column: 1/span 13;
}

	#informations {
	grid-column: 8/span 6;
	}

	.container-home-grid {
  	column-count: 1;
  	}



  	.grid-menu {
  display: grid;
  grid-template-columns: 20px repeat(6, 1fr 20px);
}

#grid-informations {
  grid-template-rows: 100%;
  display: grid;
  grid-template-columns: 20px repeat(6, 1fr 20px);
}


  	#contact {
  		grid-column: 1/span 13;
  		grid-row: initial;
  		margin-bottom: 20%;

  	}

  	#informations-text {
  grid-column: 1/span 13;
  line-height: 17px;
 grid-row: initial;
}

  


	#mentions {
		grid-column: 1/span 13;
		grid-row-end: auto;
		font-size: 0.8em;
line-height: 10px;
	}

	#links {
		grid-column: 1/span 13;
		grid-row: initial;
		margin-bottom: 40%;
	}





}


