/* Mayfair — vitrine. Thème sombre pro, CSS moderne (layers, oklch, container queries, :has, scroll-driven). */
@layer tokens, base, layout, components, motion;

@layer tokens {
 .club {
  color-scheme: dark;
  --night: oklch(14% .012 300);
  --night-2: oklch(18% .016 300);
  --panel: oklch(21% .018 300 / .72);
  --panel-solid: oklch(21% .018 300);
  --ink: oklch(96% .01 80);
  --muted: oklch(76% .02 300);
  --line: oklch(100% 0 0 / .1);
  --line-strong: oklch(100% 0 0 / .2);
  --gold: oklch(82% .11 80);
  --gold-soft: oklch(82% .11 80 / .14);
  --violet: oklch(62% .2 305);
  --violet-soft: oklch(62% .2 305 / .22);
  --danger: oklch(70% .16 25);
  --radius: 18px;
  --radius-sm: 10px;
  --shell: min(100% - 32px, 1240px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --image-action-bg: oklch(14% .012 300 / .78);
  --image-action-hover: oklch(26% .03 300 / .9);
  --image-action-text: var(--ink);
  --image-action-line: var(--line-strong);
 }
}

@layer base {
 .club {
  background:
   radial-gradient(60rem 40rem at 85% -10%, var(--violet-soft), transparent 70%),
   radial-gradient(50rem 30rem at -10% 30%, var(--gold-soft), transparent 70%),
   var(--night);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
 }
 .club ::selection { background: var(--gold); color: var(--night); }
 .club a:focus-visible, .club button:focus-visible, .club input:focus-visible,
 .club select:focus-visible, .club summary:focus-visible, .club [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
 }
 .club img { max-width: 100%; display: block; }
 .club h1, .club h2, .club h3 { text-wrap: balance; }
 .club p { text-wrap: pretty; }
 .club em { color: var(--gold); }
 .menu-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
 }
 .skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 99px;
  background: var(--gold); color: var(--night); font-weight: 700;
  translate: 0 -200%; transition: translate .2s var(--ease);
 }
 .skip-link:focus { translate: 0 0; }
}

@layer layout {
 /* Header collant, verre dépoli */
 .club header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px max(16px, calc((100vw - 1240px) / 2));
  background: oklch(14% .012 300 / .7);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
 }
 .club .brand { font-size: 26px; letter-spacing: .18em; font-weight: 800; }
 .club .brand span { color: var(--gold); margin-left: 6px; font-size: 16px; }
 .club nav { gap: 6px; }
 .club nav a {
  padding: 8px 14px; border-radius: 99px;
  color: var(--muted); font-weight: 550; letter-spacing: .02em;
  transition: color .2s, background-color .2s;
 }
 .club nav a:hover { color: var(--ink); background: var(--line); text-decoration: none; }
 .club .staff { border: 1px solid var(--line-strong); color: var(--ink); }
 .club .staff:hover { border-color: var(--gold); color: var(--gold); }

 .club main { display: block; }

 .club footer {
  display: grid;
  grid-template-columns: auto 1fr repeat(3, auto);
  gap: 12px 28px;
  margin-top: clamp(48px, 8vw, 120px);
  padding: 32px max(16px, calc((100vw - 1240px) / 2));
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
 }
 .club footer b { color: var(--ink); letter-spacing: .18em; font-size: 18px; }
 .club footer a { text-decoration: none; }
 .club footer a:hover { color: var(--gold); }
}

@layer components {
 /* HERO */
 .menu-hero { position: relative; overflow: clip; }
 .menu-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(48px, 9vw, 128px);
 }
 .menu-kicker, .menu-card-category, .menu-hero-category {
  color: var(--gold);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
 }
 .menu-kicker { display: flex; align-items: center; gap: .8rem; margin: 0; }
 .menu-kicker span { width: 28px; height: 1px; background: currentColor; }
 .menu-hero h1 {
  margin: .25em 0 .35em;
  font-size: clamp(52px, 8.5vw, 128px);
  font-weight: 300; line-height: .92; letter-spacing: -.045em;
 }
 .menu-hero h1 em {
  background: linear-gradient(100deg, var(--gold), oklch(88% .08 60), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
 }
 .menu-hero-lead { max-width: 46ch; margin: 0 0 32px; color: var(--muted); font-size: 1.08rem; }
 .menu-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
 .menu-cta, .menu-cta-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 24px; border-radius: 99px;
  font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
 }
 .menu-cta { background: var(--gold); color: var(--night); box-shadow: 0 10px 40px -10px var(--gold); }
 .menu-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--gold); }
 .menu-cta-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
 .menu-cta-ghost:hover { border-color: var(--ink); }

 .menu-hero-art {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: 0 40px 120px -40px var(--violet), 0 0 0 10px oklch(100% 0 0 / .03);
  display: grid; place-items: center;
 }
 .menu-hero-photo { width: 100%; height: 100%; object-fit: cover; }
 .menu-hero-logo { width: 55%; height: auto; opacity: .9; }
 .menu-hero-art figcaption {
  position: absolute; inset: auto 12px 12px;
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: oklch(14% .012 300 / .7); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-weight: 650;
 }
 .menu-hero-category { display: block; margin-bottom: 2px; }

 /* CATALOGUE */
 .menu-catalog { width: var(--shell); margin-inline: auto; scroll-margin-top: 80px; }
 .menu-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
 }
 .menu-section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
 .menu-section-head p { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }

 /* Filtres : barre collante */
 .menu-filters {
  position: sticky; top: 80px; z-index: 20;
  display: grid; gap: 12px;
  margin-bottom: 28px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: oklch(17% .014 300 / .8); backdrop-filter: blur(14px);
 }
 .menu-filters[hidden] { display: none; }
 .menu-categories {
  display: flex; gap: 8px; margin: 0; padding: 0 0 2px; border: 0;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
 }
 .menu-categories label { flex: none; scroll-snap-align: start; }
 .menu-categories input { position: absolute; opacity: 0; pointer-events: none; }
 .menu-categories span {
  display: block; padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: all .2s;
 }
 .menu-categories label:hover span { color: var(--ink); border-color: var(--line-strong); }
 .menu-categories input:checked + span { background: var(--ink); color: var(--night); border-color: var(--ink); }
 .menu-categories input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

 .menu-filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
 .menu-filters input:not([type=radio], [type=checkbox]), .menu-filters select {
  min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 99px;
  background: var(--night-2); color: var(--ink);
 }
 .menu-search { flex: 1 1 240px; }
 .menu-search input { width: 100%; }
 .menu-check {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px;
  color: var(--muted); font-size: .9rem; cursor: pointer;
 }
 .menu-check:has(input:checked) { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
 .menu-check input { accent-color: var(--gold); margin: 0; }

 .menu-empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
 .menu-empty button { margin-left: 8px; border-radius: 99px; background: transparent; color: var(--gold); border-color: var(--gold); }

 /* Grille de cartes */
 .menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2vw, 24px);
 }
 .menu-card {
  container-type: inline-size;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
 }
 .menu-card[hidden] { display: none; }
 .menu-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px var(--violet); }
 .menu-card-media { position: relative; aspect-ratio: 1; background: var(--night-2); overflow: hidden; }
 .menu-photos {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
 }
 .menu-photos::-webkit-scrollbar { display: none; }
 .menu-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
 .menu-slide img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
 .menu-card:hover .menu-slide img { scale: 1.04; }
 .menu-card-logo { width: 34%; height: auto; margin: auto; position: absolute; inset: 0; opacity: .35; }
 .menu-slide .image-download {
  position: absolute; right: 10px; bottom: 10px;
  opacity: 0; transition: opacity .2s; backdrop-filter: blur(8px);
 }
 .menu-card:hover .image-download, .menu-card:focus-within .image-download { opacity: 1; }
 @media (hover: none) { .menu-slide .image-download { opacity: 1; } }

 .menu-photo-controls {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 99px;
  background: oklch(14% .012 300 / .75); backdrop-filter: blur(8px);
 }
 .menu-photo-controls[hidden] { display: none; }
 .menu-photo-controls button {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 18px; line-height: 1;
 }
 .menu-photo-controls button:hover { background: var(--line-strong); }
 .menu-photo-controls button[aria-disabled=true] { opacity: .35; }
 .menu-photo-count { min-width: 3.5ch; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; }

 .menu-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--gold); color: var(--night);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
 }

 .menu-card-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
 .menu-card-category { margin: 0; }
 .menu-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
 .menu-card-heading h3 { margin: 0; font: italic 400 1.45rem/1.2 Playfair, Georgia, serif; letter-spacing: -.02em; }
 .menu-card-heading strong {
  flex: none; color: var(--gold); font-size: 1.1rem; font-variant-numeric: tabular-nums;
 }
 .menu-unavailable {
  justify-self: start; margin: 0; padding: 3px 10px; border-radius: 99px;
  background: oklch(70% .16 25 / .15); color: var(--danger); font-size: .78rem; font-weight: 700;
 }
 .menu-card:has(.menu-unavailable) .menu-card-media { filter: grayscale(.7) brightness(.7); }
 .menu-card-description { margin: 0; color: var(--muted); font-size: .94rem; }
 .menu-card-details summary {
  list-style: none; color: var(--gold); font-size: .88rem; font-weight: 650;
 }
 .menu-card-details summary::-webkit-details-marker { display: none; }
 .menu-card-details summary::after { content: " +"; }
 .menu-card-details[open] summary::after { content: " −"; }
 .menu-card-details p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

 @container (min-width: 420px) {
  .menu-card-heading h3 { font-size: 1.65rem; }
 }

 /* Pages légales */
 .club .legal {
  width: min(100% - 32px, 760px); margin: clamp(32px, 6vw, 80px) auto 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
 }
 .club .legal h1 { margin-top: 0; font-weight: 300; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
 .club .legal h2 { margin-top: 2em; font-size: 1.1rem; color: var(--gold); }
 .club .legal p { color: var(--muted); }
 .club .legal a { color: var(--gold); }
}

@layer motion {
 @media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .menu-hero-copy { animation: menu-rise .8s var(--ease) both; }
  .menu-hero-art { animation: menu-rise .9s .12s var(--ease) both; }
  @supports (animation-timeline: view()) {
   .menu-card { animation: menu-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
 }
 @keyframes menu-rise { from { opacity: 0; translate: 0 24px; } }
}

@media (max-width: 860px) {
 .menu-hero-inner { grid-template-columns: 1fr; }
 .menu-hero-art { max-width: 420px; width: 100%; justify-self: center; }
 .club footer { grid-template-columns: 1fr 1fr; }
 .club footer span { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 540px) {
 .club .brand { font-size: 20px; letter-spacing: .12em; }
 .club nav a { padding: 6px 10px; font-size: .82rem; }
 .club nav a:not(.staff) { display: none; }
 .menu-filters { top: 72px; }
 .menu-section-head { flex-direction: column; align-items: start; }
 .club footer { grid-template-columns: 1fr; }
}

/* Espace VIP (/vip) et prix VIP sur la carte. */
@layer components {
 .menu-vip-price { display: block; margin-top: 2px; color: var(--violet); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
 .vip-space { width: var(--shell); margin: 0 auto; padding: clamp(40px, 7vw, 88px) 0 72px; display: grid; gap: 20px; }
 .vip-hero { display: grid; gap: 10px; justify-items: start; padding-bottom: 12px; }
 .vip-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
 .vip-hero h1 em { color: var(--gold); }
 .vip-status { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
 .vip-status.is-active { color: var(--ink); }
 .vip-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
 .vip-pill-accepted { background: oklch(70% .14 150 / .18); color: oklch(82% .14 150); }
 .vip-pill-refused { background: oklch(70% .16 25 / .16); color: var(--danger); }
 .vip-pill-pending { background: var(--violet-soft); color: oklch(85% .1 305); }
 .vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
 .vip-card { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); scroll-margin-top: 90px; }
 .vip-card h2 { margin: 0 0 14px; font-size: 1.2rem; }
 .vip-muted { margin: 0; color: var(--muted); }
 .vip-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
 .vip-perks li::before { content: "✦"; margin-right: 10px; color: var(--gold); }
 .vip-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
 .vip-facts dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
 .vip-facts dd { margin: 2px 0 0; font-weight: 600; }
 .vip-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px 16px; align-items: end; margin-bottom: 18px; }
 .vip-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
 .vip-form input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--night-2); color: var(--ink); font: inherit; }
 .vip-form-wide { grid-column: 1 / -1; }
 .vip-button { min-height: 42px; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--gold); color: var(--night); font: inherit; font-weight: 700; cursor: pointer; }
 .vip-button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); min-height: 34px; padding: 4px 14px; }
 .vip-list { margin: 0; padding: 0; list-style: none; display: grid; }
 .vip-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
 .vip-list li > div { flex: 1 1 200px; }
 .vip-list small { color: var(--muted); }
 .vip-list form { margin: 0; }
 .vip-price { color: var(--gold); }
 .vip-list s { color: var(--muted); margin-right: 6px; }
}
