* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  font-size: 20px;
  font-family: Coolvetica;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fffbf1;
  gap: 2rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

p {
  font-family: Arial;
}

.figure {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 70vw;
}
.figure img {
  height: 100%;
}
#menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 2rem;
  padding: 1rem 2rem;
  margin-top: 1rem;
  background-color: #7cf0c4;
  border-radius: 20px;
}
#menu img {
  height: 2vw;
  min-height: 1.2rem;
}
#menu a {
  text-decoration: none;
  color: #1f372e;
  font-size: 1.3rem;
  transition: all 0.2s;
}
#menu a:hover {
  color: white;
}
#heroBanner {
  height: fit-content;
  width: 35vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
#heroBanner img {
  height: 15svh;
}

.wave-top {
  background-image: url("./../medias/images/wave-top.webp");
}

.wave-bottom {
  background-image: url("./../medias/images/wave-bottom.webp");
}

.wave-top,
.wave-bottom {
  background-repeat: repeat-x;
  background-size: auto 12rem;
  height: 12rem;
  width: 100vw;
}

.wave {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wave .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  background-color: #7cf0c4;
}
h1,
h2,
a {
  text-align: center;
}
.content h2 {
  color: white;
  font-size: 4rem;
  margin-bottom: 2rem;
}
button {
  border: none;
  background-color: #7cf0c4;
  color: #fffbf1;
  padding: 1rem 2rem;
  margin-top: 3rem;
  border-radius: 20px;
  font-size: 1.2rem;
  border: solid 1px white;
  transition: all 0.2s;
}
button:hover {
  background-color: white;
  color: #7cf0c4;
  border: solid 1px #7cf0c4;
}
button a {
  text-decoration: none;
  color: white;
}
button:hover a {
  color: #7cf0c4;
}
#objectifs {
  width: 100%;
  margin-top: 3rem;
}
#objectifs h2 {
  text-align: center;
  margin: 3rem 0;
}
.images {
  height: 50svh;
  width: 90%;
  margin: 2rem 0;
  background-color: #7cf0c4;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.images:nth-child(2) {
  background: url(./../medias/images/Phillippe2.webp);
  background-position: center;
  background-size: cover;
}
.images:nth-child(5) {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
  margin-left: 10%;
  background: url(./../medias/images/equipe.webp);
  background-position: center;
  background-size: cover;
}
.images:nth-child(7) {
  background: url(./../medias/images/recyclage.webp);
  background-position: center;
  background-size: cover;
}
.infosImages {
  width: 70vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 50%;
  transform: translateX(-50%);
}
.infosImages p {
  text-align: center;
}
#entreprises {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.entreprise {
  height: 20svh;
  margin-top: 3rem;
}
#carrousel {
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

#remonterHaut {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 500;
  background-color: #7cf0c4;
  border-radius: 50%;
  padding: 0.5rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.3rem;
  width: 2rem;
}
#remonterHaut a {
  text-decoration: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
#remonterHaut a img {
  width: 1rem;
}
footer .content h2 {
  margin-bottom: 0rem;
}
.presAuteurs {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.presAuteurs h3 {
  text-align: center;
}
@media screen and (max-width: 840px) {
  #menu a {
    font-size: 0.8rem;
  }
}
@media screen and (max-width: 630px) {
  #menu a:nth-child(1),
  #menu a:nth-child(2),
  #menu a:nth-child(4),
  #menu a:nth-child(5) {
    display: none;
  }
  .wave {
    justify-content: space-between;
  }
  .wave h2 {
    font-size: 2.8rem;
    padding: 0 1rem;
  }
  .wave .figure {
    flex-direction: column;
  }
  p {
    width: 80vw !important;
    margin-top: 2rem;
    text-align: center;
  }
  button {
    width: 80vw;
  }
  #carrousel {
    flex-direction: column;
  }
  .entreprise {
    height: 7svh;
    margin-top: 0.5rem;
  }
  .wave:last-child {
    background-repeat: repeat-y;
  }
  footer .content h2 {
    margin-bottom: 0rem;
    font-size: 2rem;
  }
  footer .content p {
    margin-top: 0rem;
  }
  footer .content p:last-child {
    margin-bottom: 6rem;
  }
  .wave:first-child {
    background-repeat: repeat-y;
  }
  #presentation {
    height: fit-content;
  }
  #basDePage {
    position: absolute;
    height: 75svh;
    width: 100vw;
    background-color: #7cf0c4;
    bottom: -15rem;
  }
  #contact {
    position: relative;
    height: 70svh;
  }
  #contact .content {
    position: absolute;
    z-index: 50;
    top: 20%;
  }
  #heroBanner {
    margin-bottom: 20vw;
  }
  #imgCagnin {
    display: none;
  }
  #videoCagnin {
    width: 90vw !important;
  }
  .presVid {
    display: flex !important;
    align-items: center !important;
    height: 60svh !important;
  }
}
