@font-face {
  font-family: "Lato";
  src: url(font/Lato-Regular.woff) format(woff), url(font/Lato-Regular.woff2) format(woff2);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url(font/Lato-ThinItalic.woff) format(woff), url(font/Lato-ThinItalic.woff2) format(woff2);
  font-weight: normal;
  font-style: italic;
}

body {
  color: white;
  font-family: "Lato";
  font-weight: normal;
  overflow-X: hidden;
}

section {
  height: 100vh;
  width: 100%;
  position: relative;
  background-image: linear-gradient(to right, black, #152032, black);
}

/*----landingpage----*/

#landingpage {
  background-image: url('homepage-images/landing.png');
  background-size: auto 100%;
  background-position: 60% 0%;
  background-attachment: fixed;
}

div, article {
  border-radius: 2px;
}

#slider {
  position: absolute;
  z-index: 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

figure {
  position: relative;
  width: 500%;
  margin: 0;
  padding: 0;
  font-size: 0;
  text-align: left;
  animation: 15s slide infinite;
}

figure img {
  width: 20%;
  height: auto;
  float: left;
}

h1 {
  position: absolute;
  top: 15%;
  margin: 0% 5%;
  line-height: 150%;
  z-index: 2;
  font-size: 140%;
  font-style: italic;
  text-align: center;
}

#landingpage h3 {
  position: absolute;
  top: 80%;
  width: 100%;
  z-index: 2;
  text-align: center;
}

h4 {
  text-transform: uppercase;
  font-size: 80%;
  font-style: italic;
}

#landingpage h4 {
  position: absolute;
  top: 76%;
  width: 100%;
  z-index: 2;
  text-align: center;
}

#down-button {
  position: absolute;
  width: 100%;
  bottom: 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 130%;
}

#down-button:hover {
  cursor: pointer;
}

#down-button:hover > img, #down-button:active {
  animation-name: hang-sink, hang-down;
  animation-duration: 0.3s, 1.5s;
  animation-delay: 0s, .3s;
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards;
  animation-direction: normal, alternate;
}

#down-button p {
  font-family: "Lato";
  font-weight: bold;
  font-style: normal;
}

#down-button img {
  margin-top: 1%;
  height: 1em;
  width: 1em;
}

/*-----products-----*/

.product-image {
  width: 100%;
  height: 50%;
  position: absolute;
  top: 10%;
  background-color: grey;
  background-size: auto 100%;
  background-position: center;
  box-shadow: 1px 10px 20px 1px rgba(0, 0, 0, 0.22);
}

.product:nth-child(1) .product-image {
  z-index: 3;
  background-image: url('homepage-images/ekick.png');
}

.product:nth-child(2) .product-image {
  z-index: 2;
  background-image: url('homepage-images/em03.png');
}

.product:nth-child(3) .product-image {
  z-index: 1;
  background-image: url('homepage-images/elegend.png');
  
}

.anchor1 article, .anchor3 article {
  filter: blur(5px);
  transform: translateX(200vw);
  transition: filter 0.8s ease-out, transform 0.7s ease-out;
}

.anchor2 article {
  filter: blur(5px);
  transform: translateX(-200vw);
  transition: filter 0.8s ease-out, transform 0.7s ease-out;
}

.is-reached article {
  filter: blur(0px);
  transform: none;
}

article {
  padding: 2em 2.5em;
  position: absolute;
  z-index: 4;
  left: 10%;
  right: 10%;
  bottom: 2%;
  text-align: center;
  background-color: #152946;
  box-shadow: 1px 10px 20px 1px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h2 {
  font-size: 200%;
  letter-spacing: 5px;
  margin: 0.5em 0em;
  text-align: center;
}

article img {
  height: 2em;
  width: auto;
}

article .divider {
  height: 15px;
  width: 40%;
  color: white;
}

article p {
  height: auto;
  font-size: 100%;
  line-height: 140%;
}

.see-more {
  background-color: none;
  border: 2px solid white;
  padding: 0.2em 0em;
  margin: 10% 20%;
  transition: all 0.6s;
  box-shadow: none;
}

.see-more p {
  color: white;
}

.see-more:hover {
  background-color: white;
  transform: scale(1.1);
  box-shadow: 1px 10px 20px 1px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.see-more p:hover {
  color: #152032;
}

/*-----histoire-----*/

#square {
  position: absolute;
  z-index: 0;
  top: 30%;
  height: 40%;
  width: 80%;
  background-color: #152946;
  background-image: url('homepage-images/history.jpg');
  background-size: auto 100%;
  background-position: center;
  opacity: 0.2;
}

#paragraphe {
  position: absolute;
  z-index: 1;
  margin-top: 10%;
}

#histoire p {
  margin-top: 10%;
  padding: 1em 1em;
  font-size: 100%;
  line-height: 140%;
  height: auto;
}

.space {
  display: none;
}

/*-----articles-----*/

.fiche-article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-image {
  height: 70%;
  width: 85%;
  background-color: grey;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#artimg1   {
  background-image: url('homepage-images/article1.jpg');
  background-size: auto 100%;
  background-position: center;
}

#artimg2 {
  background-image: url('article2-images/titre.jpg');
  background-size: auto 100%;
  background-position: center;
}

.introduction {
  height: auto;
  margin: 0 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  background-color: white;
}

h3 {
  font-size: 100%;
  font-style: italic;
}

.read {
  width: auto;
  background-color: none;
  border: 2px solid #152032;
  padding: 0.2em 0.5em;
  margin-top: 5%;
  transition: all 0.6s;
  box-shadow: none;
}

.read p {
  color: #152032;
}

.read:hover {
  background-color: #152032;
  transform: scale(1.1);
  box-shadow: 1px 10px 20px 1px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.read p:hover {
  color: white;
}

#line {
  margin: 1em 0em;
  background-color: black;
  height: 2px;
  width: 40%;
}

footer {
  height: auto;
  width: 100vw;
  background-color: rgb(10, 10, 10);
  padding: 5% 2%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
}

footer p {
  font-size: 8px;
  margin: 1% 3%;
  color: grey;
  text-transform: uppercase;
}

.social-medias img {
  height: 1em;
  width: auto;
}

.conditions {
  display: flex;
  flex-direction: row;
}

/*-----medias-----*/


@media (min-width: 750px) {
  h1 {
    font-size: 170%;
  }

  .product {
    height: 55vh;
  }

  .product-image {
    width: 70%;
    height: 80%;
  }

  .product:nth-child(1) .product-image {
    bottom: 0;
  }

  .product:nth-child(2) .product-image {
    top: -15%;
    right: 0;
  }

  .product:nth-child(3) .product-image {
    top: -40%;
  }

  article {
    left: 50%;
    right: 0%;
    bottom: 20%;
  }
  article h2{
    font-size: 300%;
  }

  #art2 {
    left: 0%;
    right: 50%;
    bottom: 40%;
  }

  #art3 {
    bottom: 65%;
  }

  article p {
    font-size: 100%;
  }

  #histoire h2 {
    margin-top: 0%;
    font-size: 350%;
  }

  #histoire p {
    font-size: 180%;
    line-height: 140%;
    padding: 1em 4em;
  }

  .introduction h2 {
    font-size: 50px;
  }

  h3 {
    font-size: 25px;;
  }
}

@media (min-width: 1030px) {
  #down-button img {
    margin-top: 0%;
  }
  
  .product {
    height: 100vh;
  }

  .product-image {
    width: 60%;
    height: 95%;
    top: 10%;
  }

  .product:nth-child(1) .product-image {

  }

  .product:nth-child(2) .product-image {
    top: 0;
    right: 0;
  }

  .product:nth-child(3) .product-image {
    top: -10%;
  }

  article {
    height: 60%;
    left: 55%;
    right: 5%;
    bottom: 10%;
  }

  article p {
    font-size: 20px;
  }

  #art2 {
    left: 5%;
    right: 55%;
    bottom: 20%;
  }

  #art3 {
    bottom: 30%;
  }

  #square {
    bottom: 40%;
    left: 10%;
    width: 30%;
    height: auto;
  }

  #paragraphe {
    top: 0%;
    padding: 0% 15%;
  }

  #histoire {
    height: 150vh;
    width: 100vw;
  }

  #histoire p {
    font-size: 18px;
    padding: 1em 15em;
  }

  #disposition {
    display: flex;
    flex-direction: row;
    background-image: linear-gradient(to right, black, #152032, black);
  }

  .fiche-article {
    background-image: none;
  }

  footer p {
    font-size: 11px;
    margin: 1% 0%;
  }
}

@media (min-width: 1140px) {
  #landingpage {
    background-size: 100% auto;
    background-position: cover;
    background-repeat: no-repeat;
  }
}

@media (max-width: 1450px) {
  #slider {
    display: none;
  }
}