@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: 100px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.logo-maj img{
  width: 13rem;
  height: 3.5rem;
  object-fit: contain;
}

.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 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  margin: 0 5px;
  text-decoration: none !important;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-bar ul li a:hover {
  color: #357abd;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* @media */

@media screen and (max-width: 1320px) {
  .header {
    padding: 0 50px;
  }
  .nav-bar ul li a {
    font-size: 13px;
    padding:10px 15px;
    letter-spacing: 0.3px;
}
}
@media screen and (max-width: 1100px) {
  .header {
    padding: 0 30px;
  }
  .nav-bar ul li a {
    font-size: 14px;
    padding: 8px 12px;
    letter-spacing: 0.2px;
  }
}

@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: 100px;
    left: 0;
    right: 0;
    width: 100vw;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.95), rgba(53, 122, 189, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

  }
    /* 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;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);

  }
  .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 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 200px;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
  }
  .nav-bar ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  

@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;
}
}
}