*{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial,Helvetica,sans-serif;
}

footer{
  background-color: #303030;
  display: flex;
}

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

a:hover{
  text-decoration: underline;
}

p{
  text-align: center;
  color: white;

}

input[type="text"], input[type="email"], input[type="submit"], select, textarea{
  all: unset;

  width: 80%;

  border-bottom: 1px solid white;
  margin: 5px;
  padding-bottom: 3px;

  resize: vertical;
}

#contactBtn{
  width: 40%;
  margin-left: 22.5%;
  align-items: center;
  text-align: center;
  border-radius: 3px;
  border: 1px;
  border-style: solid;


  font-size: 25px;
}

input[type="checkbox"], input[type="radio"]{
  vertical-align: top;
  position: relative;
  top: -10px;
  height: 20px;
  width: 20px;
  margin: 10px 3px 10px 20px;
  line-height: 2;
}

.field{
  margin-left: 10%;
  margin-top: 20px;
}

.center{
  width: 240px;
  margin:auto;
  margin-top: 20px;
}

label{
  margin-left:4%;
}

h2{
  text-align: center;
  margin-bottom: 50px;
}

#hero-bg{
  height: 100vh;
  text-align: center;

  background: rgb(48,48,48);
  background: linear-gradient(45deg, rgba(48,48,48,1) 0%, rgba(48,48,48,1) 22%, rgba(80,80,48,1) 25%, rgba(48,48,48,1) 27%, rgba(48,48,48,1) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1000% 100%;

  animation: animateBg 10s linear infinite;
}

#hero{
  height: 100%;
  width: 100;
  background: url(assets/background2.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#intro{
  height: 100%;
  width: 100%;
  display:table;

  color:white;

  font-size: 2.8vw;

  animation:  fade_in 1s ease,
              fade_out 2s ease 3s,
              disapear 0s ease 5s;
  animation-fill-mode: forwards;
}

#intro h1{
  padding-left: 20%;
  padding-right: 20%;
  vertical-align:middle;
  display:table-cell;
}

#hero-main{
  height: 0;
  animation:  apear 0s ease 5s;
  animation-fill-mode: forwards;
}

#logo{
  width: 50%;
  margin-top: 5%;
  opacity: 0;

  animation:  fade_in 2s ease 5s;
  animation-fill-mode: forwards;
}

#description{
  margin-top: -5%;
  color: white;

  font-size: 2vw;

  opacity: 0;

  animation:  fade_in 2s ease 5.5s;
  animation-fill-mode: forwards;
}

#contact{
  color: white;
  font-size: 18px;
  width: 100%;
  display: flex;

  padding-top: 50px;
  padding-bottom: 50px;

  background-color: #505055;
  text-align: left;
}


#buttonThree {
  margin: 2%;
  background-color: #40b14f;
  border: 1px solid #40b14f;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  outline: 0;
  padding: 10px 25px;
  text-align: center;
  transform: translateY(0);
  transition: transform 300ms, box-shadow 300ms,background-color 300ms, border 300ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  opacity: 0;

  animation:  fade_in 2s ease 6s,
              wriggle 5s linear infinite alternate;
  animation-fill-mode: forwards;
}

#buttonThree:hover {
  box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
  transform: translateY(-2px);
  background-color: #fec301;
  border: 1px solid #fec301;
}

#buttonContact {
  margin: 2%;
  background-color: #00000022;
  border: 1px solid #fec301;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  outline: 0;
  padding: 10px 25px;
  text-align: center;
  transform: translateY(0);
  transition: transform 300ms, box-shadow 300ms,background-color 300ms, border 300ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;

  opacity: 0;

  animation:  fade_in 2s ease 6.2s;
  animation-fill-mode: forwards;
}

#buttonContact:hover {
  box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
  transform: translateY(-2px);
  background-color: #fec301;
  border: 1px solid #fec301;
}

#three{
  overflow: hidden;
  position: relative;
  height: 100vh;
  width: 100%;
}

#threeCanvas{
  height: 100%;
  width: 100%;
}

#exploreBtn{
  position: absolute;
  bottom: 10%;
  left: calc(50% - 180px / 2);

  padding: 10px 25px;
  border-radius: 30px;
  border-style: solid;


  font-size: 25px;

  transition: background-color 300ms, opacity 300ms, visibility 300ms;
}

#closeBtn{
  height : 48px;
  visibility: hidden;
  font-size: 48px;
  overflow: hidden;

  position: absolute;
  border-radius: 30px;
  top: 10%;
  left: 5%;

  transition: background-color 500ms, opacity 300ms, visibility 300ms;
}

#closeBtn:hover{
  background-color: red;
}

#prevBtn{
  visibility: hidden;
  position: absolute;
  top:50%;
  right: 5%;
}

#nextBtn{
  visibility: hidden;
  position: absolute;
  top:50%;
  left: 5%;
}

.third{
  width: 33.3333%;
}

#lightBulb{
  transition: filter 2000ms;
}

.lighted{
  filter: invert(80%) sepia(15%) saturate(5705%) hue-rotate(2deg) brightness(98%) contrast(109%);
}
#lightBtn{
    position: relative;
}

#lightBtn img{
  position: absolute;
  top: 35%;
  width: 30%;
}

.navBtn{
  height : 70px;
  font-size: 70px;
  overflow: hidden;

  transition: background-color 300ms, opacity 2500ms, visibility 2500ms;
}

.button{
  cursor: pointer;
  display: inline-block;

  text-align: center;
}

.small-logo{
  margin-top: -20px;
  margin-bottom: -20px;
  width: 50%;
}

.footer-part{
  padding: 20px;
  color: white;
  width: 33%;
  margin: auto;
  text-align: center;
}

.footer-part h3{

  font-size: 18px;
  text-decoration: underline;
}

.point{
  position: absolute;
  top: 50%;
  left: 50%;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  background: #10101050;
  cursor: pointer;

  color: white;
  text-align: center;
  line-height: 40px;
  font-weight: 100;
  font-size: 14px;
}

.points{
  opacity: 0;
  visibility: hidden;

  transition: visibility 1000ms, opacity 1000ms;
}

.popup{
  position: fixed;

  bottom: 20px;
  right: 20px;

  padding: 10px;

  text-align: center;
  max-width: 25vw;

  border-radius: 3px;

  color: white;
}

.popup-animation{
  animation:  fade_in 1s ease,
              fade_out 2s ease 3s,
              disapear 0s ease 5s;
  animation-fill-mode: forwards;
}

.success{
  background-color: #40b14f;
}

.danger{
  background-color: red;
}

.inline{
  display: flex;
}

.invisible{
  opacity: 0;
  display: none;
}

.window{
  overflow: auto;
  position: fixed;
  top: 5vh;
  left: 5vw;
  height: 90vh;
  width: 90vw;

  opacity: 0;
  visibility: hidden;

  background-color: #303030F5;
  border-radius: 20px;

  transition: visibility 300ms, opacity 300ms;
}

.window-title{
  margin: 20px;
  margin-right: 80px;

  font-size: 20px;
  text-align: center;
  color: white;
}

.closeWindow{
  height: 40px;
  width: 40px;
  position: absolute;
  top: 20px;
  right: 20px;

  color: white;
  font-size: 30px;
}

.window-body{
  text-align: center;
  color: white;
  padding: 20px;
  line-height: 30px;
}

.window-body img{
  margin-right: 20px;
  height: auto;
  width: auto;
  max-height: 50vh;
  max-width: 95%;
}

.window-body video{
  margin-right: 20px;
  height: auto;
  width: auto;
  max-height: 50vh;
  max-width: 95%;
}

.window-body h3{
  margin: auto;
  margin-top: 30px;
}

.window-body .logo{
  height: 20px;
}

.window-body .logoxl{
  height: 50px;
}

@media screen and (max-width: 1080px) {
  #three{
    height:75vw;
    max-height: 100vh;
  }

  #intro h1{
    padding-left: 10%;
    padding-right: 10%;
  }

  #logo{
    width: 80%;
    height: 40%;
  }

  #description{
    padding-left: 2%;
    padding-right: 2%;
    font-size: 4vw;
  }

  #buttons{
    margin-top: 5%;
  }
}

@media screen and (max-width: 600px) {
  footer{
    display: block;
  }
  #logo{
    padding-top: 30%;
  }

  #intro h1{
    font-size: 10vw;
  }

  .footer-part{
    display: block;
    width: 50%;
  }

  .facultatif{
    display: none;
  }

  .third{
    width: 100%;
  }
}

@keyframes fade_in {
  from{
    opacity: 0%;
  }
  to{
    opacity: 100%;
  }
}

@keyframes fade_out {
  from{
    opacity: 100%;
  }
  to{
    opacity: 0%;
  }
}

@keyframes disapear {
  to{
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    position: absolute;
  }
}

@keyframes colorShift {
  to{
    filter: invert(80%) sepia(15%) saturate(5705%) hue-rotate(2deg) brightness(0%) contrast(109%);
  }
}

@keyframes apear {
  to{
    height: 100%;
  }
}

@keyframes wriggle {
  0%{
    transform: rotate(-5deg);
  }
  2%{
    transform: rotate(0deg);
  }
  3%{
    transform: rotate(2deg);
  }
  4%{
    transform: rotate(0deg);
  }
}

@keyframes animateBg {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 0%; }
  100% { background-position: 100% 50%; }
}
