/* 🌍 Navbar */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
}

/* 🔥 Icône Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 20;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.burger-menu span {
  position: absolute;
  width: 30px;
  height: 3px;
  background: black;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ✅ Animation en croix parfaitement carrée */
.burger-menu span:nth-child(1) {
  transform: translateY(-10px);
}
.burger-menu span:nth-child(3) {
  transform: translateY(10px);
}

/* 🔄 Quand on active */
.burger-menu.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* 🟢 Menu Mobile */
@media screen and (max-width: 1023px) {
  .burger-menu {
    display: flex;
    margin: 20px;
  }

  .nav-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    z-index: 15;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

    /* 🎭 Accordéon + Masquer complètement */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 1;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out, max-height 0.4s ease-in-out,
      visibility 0.3s ease;
  }

  /* ✅ Quand on ouvre le menu */
  .nav-links.show {
    max-height: 500px;
    visibility: visible;

    transform: translateY(0);
  }
  .text-container {
    margin-left: 70px;
  }
}

@media screen and (max-width: 500px) {
  .navbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 15px 20px;
    background-color: white;
  }
}
