/* === Premium Header GreenWay === */
.header-greenway {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #1f4037, #2c7744);
  color: white;
  padding: 15px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-family: 'Segoe UI', sans-serif;
}

.header-greenway-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-greenway-logo img {
  width: 50px;
  height: 50px;
}

/* Navigation principale */
.header-greenway-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.header-greenway-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.header-greenway-menu a:hover {
  color: #ffe;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1101;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation croix */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-greenway-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-greenway-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 240px;
    background: #1f4037;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 24px 24px;
    gap: 20px;
    display: flex;
    transition: right 0.3s ease;
    z-index: 1100;
  }

  .header-greenway-menu.active {
    right: 0;
  }

  .header-greenway-menu li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
  }

  .header-greenway-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .header-greenway-menu.active li:nth-child(1) { transition-delay: 0.1s; }
  .header-greenway-menu.active li:nth-child(2) { transition-delay: 0.2s; }
  .header-greenway-menu.active li:nth-child(3) { transition-delay: 0.3s; }
  .header-greenway-menu.active li:nth-child(4) { transition-delay: 0.4s; }
}

/* Padding pour compenser le header fixe */
body::before {
  content: "";
  display: block;
  height: 80px;
}
