html,
body {
  padding: 0;
  margin: 0;
}

header {
  background: url(../img/Header.png);
  height: 700px;
  background-position: center;
  border-bottom-right-radius: 20%;
  border-bottom-left-radius: 20%;
  background-size: cover;
}

.navbar {
  height: 60px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  z-index: 9999999;
  top: 65px;
  width: 20px;
  height: 3px;
  background: white;
  margin: 3px;
  transition: 0.3s;
}

.navbar .menubar {
  display: flex;
  margin: 0;
  justify-content: right;
  list-style: none;
  padding: 20px;
  background-color: rgba(44, 62, 80, 0.5);
  box-shadow: 1px 9px 14px 0px rgba(0, 0, 0, 0.75);
}

.navbar .menubar a:hover {
  background-color: red;
}

.navbar .menubar a {
  font-family: "days one", sans-serif;
  color: white;
  padding: 20px 10px;
  text-decoration: none;
  font-size: 1em;
}

.enterprise {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 20px;
  height: 60px;
  width: 300px;
}

.logo1,
.logo2,
.logo3 {
  padding-left: 10px;
  font-family: "days one", sans-serif;
  font-size: 1.4em;
  height: 50px;
}

.logo2 {
  background-color: white;
}

.logo1,
.logo3 {
  background-color: red;
}

.text2 {
  color: red;
  margin: 0;
  padding-right: 10px;
  margin-top: 12px;
}

.text1,
.text3 {
  color: white;
  margin: 0;
  padding-right: 10px;
  margin-top: 12px;
}

.social_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(44, 62, 80, 0.5);
  width: 50px;
  height: 280px;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
  box-shadow: -6px 9px 14px 0px rgba(0, 0, 0, 0.75);
}

.social_container div {
  padding-top: 10px;
}

.social1 img {
  display: inline-block;
  width: 50px;
  height: 50px;
}

.social1:hover {
  opacity: 0.8; /* Effet de survol */
}

div div .social2 {
  text-decoration: none;
  display: inline-block;
}

.social2 img {
  display: inline-block;
  width: 50px;
  height: 50px;
}

.social2:hover {
  opacity: 0.8; /* Effet de survol */
}

.social3 img {
  display: inline-block;
  width: 50px;
  height: 50px;
}

.social3:hover {
  opacity: 0.8; /* Effet de survol */
}

.social4 img {
  display: inline-block;
  height: 50px;
}

.social4:hover {
  opacity: 0.8; /* Effet de survol */
}


footer {
  grid-column: 1 / -1;
  width: 100%;
  height: 500px;
  background: url(../img/Header.png);
  background-size: cover;
  background-position: center;
  clear: both; /* au cas où */
  position: relative; /* pour le ::before */
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.5);
}

@media (max-width: 1200px) {
  header {
    height: 500px;
  }

  .navbar .menubar a {
    font-size: 0.9em;
    padding: 10px;
  }

  .logo1,
  .logo2,
  .logo3 {
    padding-left: 10px;
    font-size: 1em;
    height: 40px;
  }

  .social_container {
    width: 30px;
    height: 200px;
  }

  .social2 img,
  .social1 img,
  .social3 img,
  .social4 img {
    width: 30px;
    height: 30px;
  }

  footer {
    height: 300px;
  }
  
  footer::before {
    height: 300px;
  }
}

@media (max-width: 940px) {
  .no-scroll {
    overflow: hidden;
    height: 100vh;
  }

  header {
    height: 300px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .menubar.active {
    display: flex;
  }

  .menubar a {
    padding: 15px;
    font-size: 1.2em;
  }

  .enterprise {
    left: auto;
    right: 20px;
  }

  .navbar {
    height: 60px;
    background-color: rgba(44, 62, 80, 0.5);
    box-shadow: 1px 9px 14px 0px rgba(0, 0, 0, 0.75);
  }

  .menu-toggle {
    display: flex;
  }

  /* Active le menu */
  .menubar.active {
    display: flex;
  }

  .menubar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: -100%; /* Cache le menu en dehors de l'écran */
    width: 150px;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    text-align: left;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
  }

  /* Quand le menu est actif, il glisse de gauche à droite */
  .menubar.active {
    left: 0;
  }

  .menubar li {
    margin: 5px 0; /* Ajoute de l'espace entre chaque élément */
  }

  /* État actif : transformation en croix */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Cache la barre du milieu */
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  footer {
    height: 300px;
  }
  
  footer::before {
    height: 300px;
  }
}
