:root {
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-blue: #3b82f6;
}

/* Ancienne barre du bas — désactivée */
.mobile-bottom-bar,
#mobileBottomBar {
  display: none !important;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}
.nav-menu-btn svg {
  display: block;
}
.nav-menu-btn:hover,
.nav-menu-btn:active,
.nav-menu-btn[aria-expanded="true"] {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.45);
}

.mobile-nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.mobile-nav-sheet.open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-nav-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(82vh, 620px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(22, 22, 34, 0.98) 0%, rgba(10, 10, 16, 0.99) 100%);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  padding: 10px 14px calc(18px + var(--mobile-safe-bottom));
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
}
.mobile-nav-sheet.open .mobile-nav-sheet-panel {
  transform: translateY(0);
}
.mobile-nav-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.mobile-nav-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-nav-sheet-head h3 {
  margin: 0;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.mobile-nav-sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-label {
  margin: 0.55rem 0.35rem 0.35rem;
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.mobile-nav-label:first-child {
  margin-top: 0.15rem;
}
.mobile-nav-sep {
  height: 1px;
  margin: 0.7rem 0.2rem;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Outfit', var(--font), sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-tile svg,
.mobile-nav-tile .mobile-nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: 0.9;
}
.mobile-nav-tile .mobile-nav-ico--fill {
  fill: currentColor;
  stroke: none;
}
.mobile-nav-tile span {
  flex: 1;
  min-width: 0;
}
.mobile-nav-tile:hover,
.mobile-nav-tile:active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.mobile-nav-tile--action {
  color: rgba(255, 255, 255, 0.92);
}
.mobile-nav-tile--vip {
  color: #ffd56a;
}
.mobile-nav-tile--vip:hover,
.mobile-nav-tile--vip:active {
  color: #ffe39a;
  background: rgba(255, 213, 106, 0.08);
}
.mobile-nav-tile--muted {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 0.88rem;
}

.nav-tv-badge {
  display: none;
}

@media (max-width: 900px) {
  .nav-menu-btn {
    display: inline-flex;
  }
  .header .search {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-menu-btn {
    display: none !important;
  }
  .mobile-bottom-bar,
  #mobileBottomBar {
    display: none !important;
  }
}
