@import url(nav.css);
@import url(reset.css); 
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}
.header {
  width: 100vw;
  height: 80px;
  background: rgb(121, 145, 143);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}
.logo-maj img{
  width: 13rem;
}

.hamburger {
  display: none;
}

.nav-bar ul {
  display: flex;
  text-decoration: none !important;
}
.nav-bar ul li a {
  color: #fff;
  display: block;
  font-size: 15px;
  padding:10px;
  border-radius: 50px;
  transition: 0.2s;
  margin: 0 5px;
  text-decoration: none !important;
}
.nav-bar ul li a:hover {
  color: black;
  background: white;
  text-decoration: none !important;
}

/* @media */

@media screen and (max-width: 1320px) {
  .header {
    padding: 0 50px;
  }
  .nav-bar ul li a {
    font-size: 13px;
    padding:10px;
}
}
@media screen and (max-width: 1100px) {
  .header {
    padding: 0 30px;
  }
}

@media screen and (max-width: 900px) {

  
  /* burger menu */

label {
  display: flex;
  flex-direction: column;
  width: 70px;
  cursor: pointer;
}

label span {
  display: block;
  background: #fff;
  border-radius: 10px;
  height: 7px;
  margin: 7px 0;
  transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

span:nth-of-type(1) {
  width: 50%;
}

span:nth-of-type(2) {
  width: 100%;
}

span:nth-of-type(3) {
  width: 75%;
}

input.cross {
  display: none;
}

label.cross span:nth-of-type(1) {
  transform-origin: bottom;
  transform: rotate(45deg) translate(3px, -5px);
}

label.cross span:nth-of-type(2) {
  transform-origin: top;
  transform: rotate(-45deg);
}

label.cross span:nth-of-type(3) {
  transform-origin: bottom;
  width: 50%;
  transform: translate(29px, -5px) rotate(45deg);
}


/*  */
  .hamburger {
    display: block;
    cursor: pointer;
  }
  
  .nav-bar {
    height: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgb(121, 145, 143);
    transition: 0.3 ease;
    overflow: hidden;
    text-decoration: none !important;


  }
    /* nav-bar-active */
    .nav-bar.active{
      height: 100vh;
      overflow: visible;
      z-index: 9999;


    }
  .nav-bar ul {
    display: block;
    width: fit-content;
    margin: 80px auto 0 auto;
    text-align: center;
    transition: 0.5s;
    opacity: 0;
    text-decoration: none !important;
    padding: 100px 0;
    
  }
  .nav-bar.active ul{
    opacity: 1;
    text-decoration: none !important;
  }
  .nav-bar ul li a {
    margin-bottom: 12px;
    text-decoration: none !important;
    font-size: 16px;
  padding:12px;
  }
  
  

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* Légère translation */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-bar ul li {
  opacity: 0; /* Les éléments sont invisibles au début */
  animation: fadeIn 0.5s ease forwards; 
  /* Animation qui fait apparaître */
  text-decoration: none !important;
}

.nav-bar.active ul li {
  /* Quand la barre est active, les <li> apparaissent avec un décalage */


.nav-bar.active ul li:nth-child(1) {
  animation-delay: 0s;
}
.nav-bar.active ul li:nth-child(2) {
  animation-delay: 0.2s;
}
.nav-bar.active ul li:nth-child(3) {
  animation-delay: 0.4s;
}
.nav-bar.active ul li:nth-child(4) {
  animation-delay: 0.6s;
}
.nav-bar.active ul li:nth-child(5) {
  animation-delay: 0.8s;
}
.nav-bar.active ul li:nth-child(6) {
  animation-delay: 1s;
}
.nav-bar.active ul li:nth-child(7) {
  animation-delay: 1.2s;
}
}
}