.header {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: black;
  padding: 10px 15px;
  width: auto;
  height: 90px;
  border-radius: 0px 0px 20px 0px;
  z-index: 100;
}

a {
  width: auto;
  height: 100%;
}

.header img {
  width: auto;
  height: 100%;
  border-radius: 10px;
}

.social {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: black;
  padding: 20px;
  border-radius: 0 0px 0 20px;
  width: 420px;
  height: 90px;
  z-index: 100;

}

.social ul {
  list-style: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}

.social li,
.social li a {
  width: 50px;
  height: 50px;
  position: relative;
}

.linkedin,
.insta {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.linkedin.nohover,
.insta.nohover,
#linkedin-container:hover .linkedin.hover,
#insta-container:hover .insta.hover {
  opacity: 1;
  transition: 0.2s ease-in;
}

.linkedin.hover,
.insta.hover,
#linkedin-container:hover .linkedin.nohover,
#insta-container:hover .insta.nohover {
  opacity: 0;
  transition: 0.2s ease-in;
}

#contact {
  border: solid 3px #ffffff;
  width: 80%;
  height: 100%;
  border-radius: 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transition: all .4s cubic-bezier(0.9, 0, 0.3, 1);

}

#contact a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  text-decoration: none;
  gap: 5px;
  transition: all .4s cubic-bezier(0.9, 0, 0.3, 1);

}

.fleche {
  height: 100%;
  width: auto;
  padding: 10px;
  border-radius: 50px;
  background-color: #ffffff;
  transition: all .7s cubic-bezier(0.99, -0.05, 0.49, 0.7);
}

.fleche img {
  border-radius: 0px;
  width: auto;
  height: 100%;
}

#contact:hover .fleche {
  transform: translateX(375%);
  transition: all .7s cubic-bezier(0.99, -0.05, 0.49, 0.7);
}

#contact:hover {
  background-color: #ffffff;
  transition: all .4s cubic-bezier(0.9, 0, 0.3, 1);
  transition-delay: 0.3s;
}

#contact:hover a p {
  color: black !important;
  transition: all .4s cubic-bezier(0.9, 0, 0.3, 1);
  transition-delay: 0.3s;
}

#logo-mobile {
  display: none;
}

@media (max-width:1220px) {
  #logo-mobile {
    display: block;
  }

  #logo-desk {
    display: none;
  }
}

@media (max-width:1060px) {

  .social #insta-container,
  .social #linkedin-container {
    display: none;
  }

  .header {
    top: 5px;
    left: 5px;
    padding: 5px 10px 10px 5px;
    height: 70px;
  }

  .social {
    width: auto;
    top: 5px;
    right: 5px;
    padding: 7px;
    height: 70px;
  }

  #contact {
    width: 100%;
    height: 40px;
  }

  #contact a {
    font-size: 12px;
    height: 40px;
    padding-right: 40px;
  }

  .fleche {
    height: 100%;
    padding: 8px;
  }

  #contact:hover .fleche {
    transform: translateX(345%);
  }

}


/***********************************************************NAV*****************************************************************************************/

.nav {
  position: absolute;
  top: 20px;
  left: 30%;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px 0 40px;
  background-color: #6b48be47;
  border-radius: 20px;
  font-size: 18px;
  backdrop-filter: blur(20px);
  height: 60px;
  width: 470px;
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.363),
    inset -2px -2px 3px rgba(90, 90, 90, 0.205),
    0 0 15px rgba(0, 0, 0, 0.769);
  z-index: 150;
}

.nav a {
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: white;
  transition: .5s;
}

.nav #home {
  justify-content: left;
}

.nav #projets {
  justify-content: center;
}

.nav #propos {
  justify-content: right;
}

.hover-bg {
  position: absolute;
  top: 10%;
  /* Position initiale verticale */
  left: 10px;
  /* Démarre à gauche du conteneur */
  height: 80%;
  /* Ajuste la hauteur selon ton design */
  width: 110px;
  /* Ajuste la largeur du fond en fonction des liens */
  background: linear-gradient(to bottom right, white, rgb(217, 217, 217));
  border-radius: 15px;
  transition: all .7s cubic-bezier(0.9, 0, 0.3, 1);
  z-index: 1;
  transform: translateX(0);
  box-shadow:
    inset -1px -1px 3px rgb(255, 255, 255),
    0 0 15px rgba(0, 0, 0, 0.769);
}

.nav li {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.nav li:hover a {
  color: #6b48be;
  transition: .5s;
  transition-delay: .3s;
}

.nav:has(.hover-bg.home) #home,
.nav:has(.hover-bg.projets) #projets,
.nav:has(.hover-bg.propos) #propos {
  color: #6b48be;
}


.hover-bg.home {
  transform: translateX(0);
}

.hover-bg.projets {
  transform: translateX(153%);
}

.hover-bg.propos {
  transform: translateX(290%);
}

@media (max-width:2860px) {
  .nav {
    left: 41%;
  }
}

@media (max-width:2680px) {
  .nav {
    left: 39%;
  }
}

@media (max-width:2370px) {
  .nav {
    left: 36%;
  }
}

@media (max-width:1900px) {
  .nav {
    left: 34%;
  }
}

@media (max-width:1700px) {
  .nav {
    left: 31%;
  }
}

@media (max-width:1400px) {
  .nav {
    left: 29%;
  }
}

@media (max-width:1340px) {
  .nav {
    left: 27%;
  }
}

@media (max-width:1270px) {
  .nav {
    left: 25%;
  }
}

@media (max-width:1230px) {
  .nav {
    left: 20%;
  }
}

@media (max-width:1170px) {
  .nav {
    left: 15%;
  }
}

@media (max-width:1090px) {
  .nav {
    left: 13%;
  }
}

@media (max-width:1060px) {
  .nav {
    left: 20%;
  }
}

@media (max-width:870px) {
  .nav {
    left: 17%;
  }
}

@media (max-width:850px) {
  .nav {
    position: fixed;
    bottom: 40px;
    top: auto;
    width: 450px;
    height: 55px;
    left: 50%;
    /* à 50%/50% du parent référent */
    transform: translateX(-50%);
    /* décalage de 50% de sa propre taille */
  }

  .nav li {
    width: 60px;
  }

  .nav a {
    font-size: 12px !important;
  }

  .hover-bg {
    width: 90px;
  }

  .hover-bg.home {
    transform: translateX(3%);
  }

  .hover-bg.projets {
    transform: translateX(187%);
  }

  .hover-bg.propos {
    transform: translateX(362%);
  }

}

@media (max-width:500px) {
  .nav {
    width: 380px;
  }

  .hover-bg.projets {
    transform: translateX(150%);
  }

  .hover-bg.propos {
    transform: translateX(284%);
  }
}

@media (max-width:410px) {
  .nav {
    width: 330px;
  }

  .hover-bg.projets {
    transform: translateX(120%);
  }

  .hover-bg.propos {
    transform: translateX(228%);
  }
}

@media (max-width:360px) {
  .nav {
    width: 290px;
  }

  .hover-bg.projets {
    transform: translateX(97%);
  }

  .hover-bg.propos {
    transform: translateX(185%);
  }
}