@font-face {
  font-family: "HelveticaNeue";
  src: url("fonts/HelveticaNeueLTCom-Md.woff") format('woff');
  font-weight: Medium;
}

a:link,
a:visited,
a:hover,
a:active {
  color: black;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
/*  font-style: italic;*/
}

body{
  font-family: "HelveticaNeue";
  line-height: 15px;
  margin: 0;
  background-color: white;
}

header {
  z-index: 10;
  top: 0;
  position: sticky;
  background-color: white;
  height: calc(9px + 1.3em);
  display: grid;
  grid-template-rows: 9px 1.3em 5px;
  grid-template-columns: 10px 2fr auto 2fr 10px;
  z-index: 1000;
  font-family: "HelveticaNeue";
  font-weight: 600;
  margin: 0;
  font-size: 1em;
}

.nom {
  grid-row: 2/3;
  grid-column: 2/3;
}

.about {
  margin: 0;
  font-size: 1em;
  grid-row: 2/3;
  grid-column: 3/4;
  text-align: center;
}

.typefaces {
/*  background-color: white;*/
z-index: 1000;
font-weight: 600;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 4/5;
text-align: right;
}






* {box-sizing: border-box}
.mySlides {
  display: none
}

img {
  max-width: 80vw;
  vertical-align: middle;
/*  max-height: calc(100vh - 1em - 15px);*/
}



.projets {
  grid-template-columns: auto calc(20vw - 0.25em);
  grid-column-gap: 0.25em;
/*    padding-right: 0.35em;
    padding-left: 0.35em;*/
    display: grid;
    grid-auto-rows: auto;
    grid-row-gap: 0.25em;
  }

  .contactform {
    font-size: 50px;
    line-height: 52px;
    z-index: 1000000;
    position: sticky;
    top: 31px;
    padding-top: calc(100vh - 190px);
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 13px;
    background-color: transparent;
  }

  .titres {
    line-height: 18px;
    z-index: 1000000;
    position: sticky;
    top: 31px;
    padding-top: 75px;
    grid-column-start: 2;
    grid-column-end: 3;
    padding-right: 13px;
    background-color: white;
  }

  .titressmart {
    display: none;
  }

  .titressmartright {
    display: none;
  }

  .visuels {
    grid-column-start: 1;
    grid-column-end: 2;
  }

  {
    box-sizing: border-box
  }

  .mySlides1,
  .mySlides2,
  .mySlides3 {
    display: none
  }


  video {
    vertical-align: middle;
  }


/* Slideshow container */

.slideshow-container {
  position: relative;
  margin: auto;
}


/* Next & previous buttons */

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
}


/* Position the "next button" to the right */

.next {
  right: 0;
}


/* On hover, add a grey background color */

.prev:hover,
.next:hover {}



/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: .0s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}





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

  header {
    grid-template-columns: 10px 2fr auto 2fr 10px;
  }

  .projets {
    grid-template-columns: calc(50vw - 10px) calc(50vw - 10px);
    padding-left: 10px;
    padding-right: 10px;
    grid-column-start: 1;
    grid-column-end: 3;
/*    padding-right: 0.35em;
    padding-left: 0.35em;*/
    display: grid;
    grid-auto-rows: auto;
    grid-row-gap: 0.25em;
  }

  .titres {
    display: none;
  }

  .titressmart{
    font-size: 0.8em;
    margin-top: -12px;
    display: initial;
    line-height: 14px;
    z-index: 1;
    position: inherit;
    top: 31px;
    padding-top: 0px;
    grid-column-start: 1;
    grid-column-end: 2;
    padding-right: 13px;
    background-color: white;
    padding-bottom: 10px;
  }

  .titressmartright{
    font-size: 0.8em;
    margin-top: -12px;
    display: initial;
    line-height: 14px;
    z-index: 1;
    position: inherit;
    top: 31px;
    padding-top: 0px;
    grid-column-start: 2;
    grid-column-end: 3;
    padding-right: 13px;
    background-color: white;
    padding-bottom: 1 0px;
  }

  .visuels {
    grid-column-start: 1;
    grid-column-end: 3;
  }


  img {
    max-width: calc(100vw - 20px);
  }


  video {
    max-width: calc(100vw - 20px);
  }

}

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

  header {
    grid-template-columns: 10px 2fr auto 2fr 10px;
    font-size: 0.8em;
  }
  }