/* Animation stylée d'apparition/disparition du menu horizontal */
@keyframes menuIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}
@keyframes menuOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

/* MENU HORIZONTAL - Style graphique avec onglets en forme de bulles */
.menu-button {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(36,44,66,0.97) 60%, rgba(102,126,234,0.13) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  font-size: 2rem;
  box-shadow: 0 2px 8px 0 #222a, 0 1.5px 8px 0 #667eea22, 0 0 0 2px rgba(255,255,255,0.07) inset, 0 4px 24px #0005;
  border: 1.5px solid rgba(255,255,255,0.13);
  transition: box-shadow 0.35s, background 0.25s, border 0.25s, color 0.25s;
  padding: 0 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
  text-shadow: 0 2px 8px #000b, 0 0 4px #fff5;
  flex-direction: column;
  gap: 6px;
}
.menu-button .bar {
  display: block;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,2,.6,1), opacity 0.25s, background 0.25s;
  margin: 0 auto;
}
.menu-button.open .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg) !important;
  transition: transform 0.35s cubic-bezier(.4,2,.6,1) !important;
}
.menu-button.open .bar:nth-child(2) {
  opacity: 0 !important;
  transition: opacity 0.25s !important;
}
.menu-button.open .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg) !important;
  transition: transform 0.35s cubic-bezier(.4,2,.6,1) !important;
}
.menu-button:hover {
  background: linear-gradient(135deg, rgba(36,44,66,0.97) 60%, rgba(102,126,234,0.13) 100%);
  box-shadow: 0 4px 12px #667eea33, 0 0 8px #fff1, 0 0 4px #667eea11, 0 0 0 2px rgba(255,255,255,0.10) inset, 0 8px 32px #0007;
  border-color: #fff2;
}

/* Menu horizontal */
.horizontal-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 105;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

.horizontal-menu.menu-fadein {
  animation: menuIn 0.45s cubic-bezier(.4,2,.6,1);
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.horizontal-menu.menu-fadeout {
  animation: menuOut 0.45s cubic-bezier(.4,2,.6,1);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.menu-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
}

.menu-tab {
  padding: 16px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(36,44,66,0.97) 60%, rgba(102,126,234,0.13) 100%);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.13);
  box-shadow: 0 2px 8px 0 #222a, 0 1.5px 8px 0 #667eea22, 0 0 0 2px rgba(255,255,255,0.07) inset;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  user-select: none;
  text-shadow: 0 2px 8px #000b, 0 0 4px #fff5;
  cursor: pointer;
  outline: none;
  transition: all 0.35s cubic-bezier(.4,2,.6,1);
  width: 200px;
  text-align: center;
  white-space: nowrap;
}

.menu-tab:hover {
  background: linear-gradient(135deg, rgba(102,126,234,0.18) 0%, rgba(36,44,66,0.98) 100%);
  box-shadow: 0 4px 12px #667eea33, 0 0 8px #fff1, 0 0 4px #667eea11, 0 0 0 2px rgba(255,255,255,0.10) inset;
  border-color: #fff2;
  transform: scale(1.05) translateY(-2px);
}

.menu-tab:active {
  transform: scale(0.98) translateY(0);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
  z-index: 98;
}

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

/* Responsive */
@media (max-width: 768px) {
  .menu-tabs {
    gap: 15px;
  }
  
  .menu-tab {
    width: 200px;
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .menu-tab {
    width: 180px;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  
  .menu-button {
    width: 54px !important;
    height: 54px !important;
    font-size: 2rem !important;
    top: 1.2rem !important;
    right: 1.2rem !important;
  }
  
  .menu-button .bar {
    width: 28px !important;
    height: 4px !important;
  }
}

@media (max-width: 768px) {
  .menu-button {
    width: 54px !important;
    height: 54px !important;
    font-size: 2rem !important;
  }
  
  .menu-button .bar {
    width: 28px !important;
    height: 4px !important;
  }
} 

@media (max-width: 1100px) and (orientation: landscape) {
  .horizontal-menu {
    width: 60vw !important;
    max-width: 320px !important;
  }
  .menu-tabs {
    gap: 10px !important;
  }
  .menu-tab {
    width: 150px !important;
    padding: 10px 12px !important;
    font-size: 0.95em !important;
  }
} 