/* ============================================
   MOBILE MENU - DESIGN & ANIMATIONS
   ============================================ */

@keyframes slideInMenu {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutMenu {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOutOverlay {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  animation: fadeInOverlay 0.35s ease forwards;
}

.mobile-menu-overlay.closing {
  animation: fadeOutOverlay 0.35s ease forwards;
}

/* Mobile Menu Sidebar */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--blanc);
  z-index: 999;
  display: none;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  animation: slideInMenu 0.35s ease forwards;
}

.mobile-menu.closing {
  animation: slideOutMenu 0.35s ease forwards;
  display: none;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ivoire);
  min-height: auto;
  gap: 12px;
}

.mobile-menu-logo-header {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-menu-title-header {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--noir);
  margin: 0;
  font-weight: 600;
  flex: 1;
  text-align: center;
  letter-spacing: -0.3px;
}

.mobile-menu-tagline-header {
  font-size: 12px;
  color: var(--gris-douala);
  font-style: italic;
  line-height: 1.3;
  margin: 8px 24px 12px;
  font-weight: 400;
  text-align: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--noir);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--or);
  transform: scale(1.1);
  outline: none;
}

/* Mobile Menu Content */
.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

/* Brand Section */
.mobile-menu-brand {
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--ivoire);
  animation: fadeInUp 0.5s ease 0.1s both;
}

.mobile-menu-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: contain;
}

.mobile-menu-brand h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--noir);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.mobile-menu-tagline {
  font-size: 12px;
  color: var(--gris-douala);
  font-style: italic;
  line-height: 1.3;
  font-weight: 400;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  padding: 24px;
  border-bottom: 1px solid var(--ivoire);
  animation: fadeInUp 0.5s ease 0.2s both;
}

.mobile-menu-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-nav li {
  border-bottom: 1px solid var(--ivoire);
  overflow: hidden;
}

.mobile-menu-nav li:first-child a {
  animation: fadeInUp 0.5s ease 0.05s both;
}

.mobile-menu-nav li:nth-child(2) a {
  animation: fadeInUp 0.5s ease 0.1s both;
}

.mobile-menu-nav li:nth-child(3) a {
  animation: fadeInUp 0.5s ease 0.15s both;
}

.mobile-menu-nav li:nth-child(4) a {
  animation: fadeInUp 0.5s ease 0.2s both;
}

.mobile-menu-nav li:nth-child(5) a {
  animation: fadeInUp 0.5s ease 0.25s both;
}

.mobile-menu-nav li:nth-child(6) a {
  animation: fadeInUp 0.5s ease 0.3s both;
}

.mobile-menu-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--noir);
  transition: all 0.3s ease;
  font-family: var(--font-display);
  position: relative;
  letter-spacing: 0.3px;
}

.mobile-menu-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--or);
  transition: width 0.3s ease;
}

.mobile-menu-nav a:hover::before {
  width: 100%;
}

.mobile-menu-nav a:hover {
  color: var(--or);
  padding-left: 6px;
}

.mobile-menu-nav a.current-menu-item {
  color: var(--or);
}

.mobile-menu-nav a.current-menu-item::before {
  width: 100%;
}

/* Information Section */
.mobile-menu-info {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ivoire);
  animation: fadeInUp 0.5s ease 0.4s both;
}

.mobile-menu-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--noir);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.info-item {
  margin-bottom: 13px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 4px;
  font-weight: 600;
}

.info-item p {
  font-size: 13px;
  color: var(--gris-douala);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}

.info-item a {
  color: var(--or);
  transition: color 0.3s ease;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--gris-douala);
}

/* CTA Button */
.mobile-menu-cta {
  padding: 20px 24px 28px;
  animation: fadeInUp 0.5s ease 0.5s both;
}

.btn-reservation {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
  color: var(--blanc);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(176, 141, 87, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-reservation:hover,
.btn-reservation:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
  outline: none;
}

/* Mobile Social Icons */
.mobile-menu-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px;
  border-bottom: 1px solid var(--ivoire);
  animation: fadeInUp 0.5s ease 0.3s both;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ivoire);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--noir);
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.social-icon.facebook:hover {
  background: #1877F2;
  color: var(--blanc);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--blanc);
}

.social-icon.whatsapp:hover {
  background: #25D366;
  color: var(--blanc);
}

.social-icon.tiktok:hover {
  background: #000;
  color: var(--blanc);
}

/* Hide old menu when mobile menu is active */
.main-nav.hidden-by-mobile-menu {
  display: none !important;
  visibility: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* Hide mobile menu by default on desktop */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    padding: 0 !important;
    transform: none !important;
  }
}

/* Hide main nav by default on mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
    visibility: hidden !important;
  }

  /* CRITICAL: Ensure no horizontal scroll on mobile */
  html {
    overflow-x: hidden !important;
    width: 100vw !important;
  }
  body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Adjust nav-toggle visibility */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

/* Scrollbar styling for mobile menu */
.mobile-menu::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--or);
  border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: var(--gris-douala);
}
