@font-face {
  font-family: "SuisseIntl";
  src: url(SuisseIntl-SemiBold.otf);
}
@font-face {
  font-family: "SuisseIntlMono";
  src: url(SuisseIntlMono-Regular.otf);
}
/*GÉNÉRAL*/
html {
  scroll-behavior: smooth;
}

body{
  background-color: #f2f2f2;
  margin: 0;
}
h1{
  margin: 0;
  font-weight: normal;
}
h3{
  font-family: "SuisseIntlMono";
  font-size: 25px;
  font-weight: normal;
  margin: 0;
}
p{
  font-family: "SuisseIntlMono";
  font-size: 16px;
  margin: 0;
}
a{
  color: black;
  text-decoration:none;
}
a:hover{
  text-decoration: underline;
}

::selection {
  color: #fff;
  background: #000000;
  }

/*INTRO*/
#intro{
  display: flex;
  flex-direction: column;
  height: calc(60vh - 30px);
  width: calc(100vw - 30px);
  justify-content: space-between;
  padding: 15px;
  position: fixed;
}

/*Top;Bottom*/
#description-top p, #description-bottom p {
 text-align: center;
 font-size: 30px;
}

@keyframes music {
  from{
    transform: translate(0);
  }
  to{
    transform: translateY(-5px);
  }
}

#description-top p:hover span{
  display: inline-block;
  animation: 0.3s ease-out 0s infinite alternate music;
}

/*CV*/
#titre-cv{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 15px;
}

#titre-cv h3:last-child{
  grid-column: 3;
}

#contenu-cv{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 15px;
}

#experiences{
  grid-column: 3 / 5;
}
.ligne {
  display: flex;
  justify-content: space-between;
}

/*HEADER*/
#header {
  position: fixed;
  height:31%;
  width: 100%;
  bottom:-5px;
  padding-bottom: 32px;
  z-index: -1;
  background-color: #f2f2f2;
}

/*NOM*/
#nom {
  left:-8px;
  margin-bottom: -15px;
  padding: 15px;
  position: absolute;
  bottom: 0;
}

#header h1 {
  font-family: "SuisseIntl";
  font-size: 14.2vw;
  font-weight: normal;
}

/*MENU*/
.menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 15px;
  position: fixed;
  bottom: 15px;
  width: calc(100vw - -40px);
  padding-left: 15px;
  z-index: -1;
}

.menu p {
  font-size: 18px;
}

/*PROJET*/
#projets{
  position: absolute;
  top:100vh;
  backdrop-filter: blur(10px);
  /*webkit-backdrop-filter: blur(10px);*/
}

.projet{
  position: relative;
  min-height: 100vh;
  margin-bottom: 15px;
}

/*Photos*/
.photos img {
  height: 220px;
}

.lettrage img {
  width: 100vw;
}


/*Titre projet*/
.titre {
  /*left:17px;*/
  bottom:0px;
  font-family: "SuisseIntl";
  font-weight: normal;
  display: block;
  width: 98%;
  margin-bottom: -15px;
  z-index: 1;
}

.titre h1 {
  bottom: 0;
  display: flex;
  height: 100%;
  align-items: flex-end;
  font-size: 8.70vw;
  justify-content: space-between;
}
.photos {
  padding: 4px 15px 0 15px;
}

.description{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 15px;
  margin-right: 15px;
  z-index: 1;
  padding-bottom: 37px;
}

.projet-texte {
  background: linear-gradient(0deg, rgba(242,242,242,0) 0%, rgba(242,242,242,1) 8%, rgba(242,242,242,1) 92%, rgba(242,242,242,0) 100%);
  padding: 0 15px;
}

#credits-titre {
  justify-content: space-between;
  padding-top: 20px;
}

#credits-description {
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 15px;
  margin-right: 15px;
  z-index: 1;
  padding-bottom: 15px;
}

#credits {
  margin-top: 500px;
  padding: 15px;
}

#mobile {
  display: none;
}

@media (max-width:1080px) {
  .titre h1 {
    font-size: 8.60vw;
  }
}



@media (max-width:700px) {
#mobile {
  display: block;
  background-color: #f2f2f2;
}

/*GÉNÉRAL*/
h2 {
  font-family: "SuisseIntlMono";
  text-align: center;
  font-size: 17px;
  font-weight: normal;
  margin: 0;
}

h3 {
  font-family: "SuisseIntlMono";
  font-size: 17px;
  font-weight: normal;
  margin: 0;
}
p {
  font-family: "SuisseIntlMono";
  font-size: 12px;
  margin: 0;
}

a{
  color: black;
  text-decoration:none;
}

a:hover{
  text-decoration: underline;
}
/*INTRO*/
#intro-mobile{
  display: grid;
  flex-direction: column;
  height: calc(75vh - 30px);
  width: calc(100vw - 30px);
  padding: 15px;
  position: fixed;
  z-index: -1;
}

/*CV*/
#CV-mobile {
  display: grid;
}
#description-top-mobile {
  margin-bottom: -100px;
}
#formation-contenu-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 20px;
}
#formation-mobile, #experience-contenu-mobile {
  text-align-last: justify;
}
/*HEADER*/
#header h1 {
  font-family: "SuisseIntl";
  font-size: 12vw;
  font-weight: normal;
}

#nom {
  left: 0;
}

/*PROJETS*/
.photos img, img, video{
  width: auto;
  height: calc(24vh - 30px);
}

.titre h1 {
    font-size: 7vw;
}
.titre {
  margin-bottom: 0;
}
.description{
  display: block;
}

#credits-description{
  display: block;
  padding-bottom: 0;
}

#credits {
  background: linear-gradient(0deg, rgba(242,242,242,0) 0%, rgba(242,242,242,1) 0%, rgba(242,242,242,1) 80%, rgba(242,242,242,0) 100%);

}
.photos{
  padding: 0 15px;
}

.projet-texte {
  background: linear-gradient(0deg, rgba(242,242,242,0) 0%, rgba(242,242,242,1) 11%, rgba(242,242,242,1) 94%, rgba(242,242,242,0) 100%);
padding: 0 15px;
}

 #intro, #menu-header, #intro, .menu {
  display: none;
  }
}
