/* ==========================================
   MOBILE MENU & HAMBURGER
   ========================================== */

/* Container header */
.header-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo cliquable */
.header-logo-link {
  text-decoration: none;
  color: inherit;
}

/* Hamburger button */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  background: rgba(10, 8, 25, 0.85);
  border: 1px solid rgba(238, 168, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.35s ease;
  box-shadow: 0 0 14px rgba(138, 43, 226, 0.45),
              inset 0 0 8px rgba(138, 43, 226, 0.12);
  backdrop-filter: blur(12px);
}

.hamburger:hover {
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.35),
              inset 0 0 12px rgba(138, 43, 226, 0.2);
  transform: scale(1.06);
}

.hamburger-line {
  width: 20px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.85), rgb(238, 168, 255));
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation hamburger → X */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation desktop (cachée sur mobile) */
.desktop-nav {
  display: flex;
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 30, 0.98),
    rgba(72, 61, 139, 0.98)
  );
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  right: 0;
}

/* Canvas étoiles dans le menu */
#menu-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.mobile-menu-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px 40px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Titre décoratif en haut du menu */
.mobile-menu-branding {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: rgb(238, 168, 255);
  text-align: center;
  text-shadow: 0 0 16px rgba(138, 43, 226, 0.7);
  margin: 0 0 24px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 5px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  background: rgba(138, 43, 226, 0.3);
  transform: translateX(5px);
}

.menu-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* CTA Réserver dans le menu mobile */
.mobile-menu-cta {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 165, 0, 0.2)
  );
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: rgba(255, 215, 0, 1);
  font-weight: bold;
}

.mobile-menu-cta:hover,
.mobile-menu-cta:focus {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.5),
    rgba(255, 165, 0, 0.3)
  );
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

/* Social links dans le menu */
.mobile-menu-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
  background: rgba(138, 43, 226, 0.5);
  transform: scale(1.1);
}

.mobile-menu-social svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-overlay,
  .hamburger {
    display: none !important;
  }
}

/* Prevent scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
