/* ============================================
   MENU DRAWER
   Slides in from the right (300ms ease-out).
   375×833 overlay inside the phone frame.
   ============================================ */

.menu-drawer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--frame-radius);
}

.menu-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--frame-radius);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* Sous la croix : même offset que le bouton + 22px d’air (évite le double espacement avec .menu-featured) */
  padding: calc(max(21px, env(safe-area-inset-top, 0px)) + 24px + 22px) var(--side-padding) 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-drawer.open {
  pointer-events: auto;
}

.menu-drawer.open .menu-drawer-inner {
  transform: translateX(0);
}


/* ============================================
   CLOSE BUTTON — aligné sur le hamburger (home)
   ============================================ */

.menu-close {
  position: absolute;
  top: max(21px, env(safe-area-inset-top, 0px));
  right: var(--side-padding);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


/* ============================================
   FEATURED CARDS
   Two cards side by side, y:119, gap:20
   Each ~146×212, translucent glass card,
   padding 19/17/20/19, itemSpacing 14
   ============================================ */

.menu-featured {
  display: flex;
  gap: 15px;
  margin-top: 0;
}

.menu-featured-card {
  position: relative;
  flex: 1;
  min-height: 212px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.65);
  border-left-color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  padding: 17px 16px 22px 17px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.25s ease,
              box-shadow 0.25s ease;
}

.menu-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0) 65%
  );
  opacity: 0.35;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.menu-featured-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.menu-featured-card:hover::before {
  opacity: 1;
}

.menu-featured-card:active {
  transform: translateY(-1px) scale(0.98);
}

.menu-featured-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #F4F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-featured-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.menu-featured-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}

.menu-featured-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.2px;
}

.menu-featured-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 16px;
  color: #909090;
}


/* ============================================
   NAV LIST
   y:354, w:325, itemSpacing:17
   Each item: icon (25×24) + text block
   Title: Inter Bold 15px
   Desc: Inter regular 13px, lh 17, #808080
   ============================================ */

.menu-nav {
  margin-top: 23px;
  display: flex;
  flex-direction: column;
}

.menu-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 17px 8px;
  margin: 0 -8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.menu-nav-item:first-child {
  padding-top: 8px;
}

.menu-nav-item:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.menu-nav-icon {
  width: 25px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 1px;
}

.menu-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.menu-nav-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.menu-nav-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
  color: #808080;
}

.menu-nav-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}
