/**
 * NÜBIA — Styles Principaux
 * Thème Luxe : Or royal & Noir profond
 */

:root {
  --bg: #080705;
  --bg-admin: #0b0a08;
  --bg-soft: #0c0a07;
  --bg-card: #130f0a;
  --panel: #16110b;
  --panel-border: rgba(201, 162, 75, 0.22);
  
  --ink: #e9dec7;
  --ink-strong: #f1e6cf;
  --ink-dish: #f6ecdc;
  --muted: #9d9176;
  --muted-2: #aba087;
  --muted-3: #cabfa6;

  --gold: #c9a24b;
  --gold-light: #e4c77e;
  --gold-dark: #a8822f;
  --gold-soft: rgba(201, 162, 75, 0.25);
  --gold-line: rgba(201, 162, 75, 0.16);
  --gold-glow: rgba(201, 162, 75, 0.45);

  --grad-gold: linear-gradient(135deg, #f2db9b 0%, #c9a24b 50%, #9e7724 100%);
  --grad-gold-hover: linear-gradient(135deg, #fae8b4 0%, #d8b25d 50%, #b38b32 100%);
  --grad-text: linear-gradient(135deg, #faebd0 0%, #e5c378 45%, #b58d34 100%);
  --on-gold: #1a1206;

  --danger: #cf6a4a;
  --danger-bg: rgba(207, 106, 74, 0.15);
  --confirm: #6fae7a;
  --confirm-bg: rgba(111, 174, 122, 0.15);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, sans-serif;
  --font-event: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: rgba(201, 162, 75, 0.35);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #080705;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 162, 75, 0.28);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 162, 75, 0.45);
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  color: var(--ink-strong);
}

.font-display { font-family: var(--font-display); }
.font-event { font-family: var(--font-event); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  font-weight: 500;
}

.text-gold { color: var(--gold-light); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.gold-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin: 32px 0 28px;
}
.gold-divider-line {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, #c9a24b);
}
.gold-divider-line.rev {
  background: linear-gradient(90deg, #c9a24b, transparent);
}
.gold-divider-star {
  color: var(--gold-light);
  font-size: 13px;
  animation: nubtwinkle 4s ease-in-out infinite;
}

/* Boutons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-gold);
  font-weight: 600;
  background: var(--grad-gold);
  padding: 14px 34px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(201, 162, 75, 0.65);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(201, 162, 75, 0.85);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 75, 0.45);
  padding: 14px 34px;
  border-radius: 999px;
  background: rgba(12, 10, 7, 0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-ghost:hover {
  background: rgba(201, 162, 75, 0.12);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-gold-sm {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-gold);
  background: var(--grad-gold);
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(201, 162, 75, 0.6);
  transition: filter 0.2s, transform 0.2s;
}
.btn-gold-sm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost-sm {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: transparent;
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost-sm:hover {
  background: rgba(201, 162, 75, 0.12);
  border-color: var(--gold);
}

.btn-danger-sm {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9b82;
  background: rgba(207, 106, 74, 0.15);
  border: 1px solid rgba(207, 106, 74, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger-sm:hover {
  background: rgba(207, 106, 74, 0.3);
}

/* Forms & Inputs */
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ink-strong);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.field:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}
select.field option {
  background: var(--panel);
  color: var(--ink-strong);
}

/* Header & Navigation */
.nub-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 7, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line);
  transition: background 0.3s ease;
}
.nub-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nub-brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.26em;
  color: var(--ink-strong);
}
.nub-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nub-link {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-3);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nub-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-light);
  transition: width 0.25s var(--ease);
}
.nub-link:hover, .nub-link.active {
  color: var(--gold-light);
}
.nub-link.active::after {
  width: 100%;
}

.nub-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  color: var(--gold-light);
  transition: all 0.2s ease;
}
.nub-social-icon:hover {
  background: rgba(201, 162, 75, 0.15);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.nub-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 9px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 9px;
  cursor: pointer;
  z-index: 90;
}
.nub-burger span {
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  display: block;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nub-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nub-burger.open span:nth-child(2) {
  opacity: 0;
}
.nub-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 85;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 18px 40px -6px rgba(37, 211, 102, 0.8);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 5, 0.58) 0%, rgba(8, 7, 5, 0.82) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(58px, 11vw, 128px);
  line-height: 0.92;
  letter-spacing: 0.14em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-left: 0.14em;
}
.hero-tagline {
  margin: 18px 0 0;
  font-size: 14px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted-3);
}
.hero-slogan {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink-strong);
  line-height: 1.2;
}

/* Background patterns & Cards */
.bg-pattern {
  background-image: radial-gradient(circle, rgba(184, 144, 47, 0.16) 1px, transparent 1.4px),
                    radial-gradient(circle, rgba(184, 144, 47, 0.1) 1px, transparent 1.4px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 45px 70px;
}
.card-pillar {
  border: 1px solid rgba(184, 144, 47, 0.28);
  border-radius: 18px;
  padding: 34px 28px;
  background: #fbf7ee;
  color: #2a2018;
  text-align: left;
  box-shadow: 0 8px 24px -16px rgba(120, 90, 30, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -14px rgba(120, 90, 30, 0.5);
}

/* Event Cards */
.event-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(184, 144, 47, 0.28);
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(120, 90, 30, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(120, 90, 30, 0.55);
}
.event-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.event-card-body {
  padding: 22px 24px;
  background: #fbf7ee;
  color: #2a2018;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-featured {
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.6), rgba(10, 8, 6, 0.3));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.event-dark-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(22, 16, 10, 0.5), rgba(11, 10, 8, 0.25));
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.event-dark-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.4);
}

.badge-pill {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
  border: 1px solid rgba(201, 162, 75, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-block;
}

/* Tabs & Menu Page */
.menu-tab-btn {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.menu-tab-btn.active {
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(201, 162, 75, 0.5);
}

.garnitures-box {
  border: 1.5px solid rgba(201, 162, 75, 0.45);
  border-radius: 16px;
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(22, 18, 12, 0.5), rgba(12, 10, 7, 0.2));
  margin-bottom: 44px;
}

/* Step-by-Step Reservation UI */
.res-step-card {
  background: #16110b;
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8);
}
.covers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0 24px;
}
.cover-btn {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.cover-btn:hover {
  border-color: var(--gold-light);
  background: rgba(201, 162, 75, 0.1);
}
.cover-btn.active {
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(201, 162, 75, 0.6);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}
.cal-day-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 0;
  font-weight: 600;
}
.cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.cal-day:hover:not(.disabled) {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.15);
}
.cal-day.active {
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: 0 4px 14px -4px rgba(201, 162, 75, 0.6);
}
.cal-day.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.time-slot-chip {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s var(--ease);
}
.time-slot-chip:hover {
  border-color: var(--gold-light);
  background: rgba(201, 162, 75, 0.12);
}
.time-slot-chip.active {
  background: var(--grad-gold);
  color: var(--on-gold);
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 16px -4px rgba(201, 162, 75, 0.6);
}

.alert-box {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-warning {
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.35);
  color: #faebd0;
}
.alert-success {
  background: var(--confirm-bg);
  border: 1px solid rgba(111, 174, 122, 0.4);
  color: #bbf7d0;
}
.alert-danger {
  background: var(--danger-bg);
  border: 1px solid rgba(207, 106, 74, 0.4);
  color: #fecaca;
}

/* Footer */
.nub-footer {
  border-top: 1px solid var(--gold-line);
  background: #060504;
  padding: clamp(48px, 7vw, 80px) 24px 40px;
  margin-top: auto;
}
.nub-footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

/* Animations */
@keyframes nubrise {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes nubpop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nubtwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(201, 162, 75, 0.8)); }
}

.rise {
  animation: nubrise 0.7s var(--ease) both;
}

/* Responsive Media Queries */
@media (max-width: 860px) {
  .nub-burger {
    display: flex;
  }
  .nub-links {
    display: none;
  }
  .nub-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #08070a;
    z-index: 85;
    padding: 90px 24px 40px;
    overflow-y: auto;
  }
  .nub-links.open .nub-link {
    font-size: 16px;
    padding: 14px 0;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-bottom: 1px solid rgba(201, 162, 75, 0.1);
  }
  .covers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .covers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ====================================================================
   ANIMATIONS AVANCÉES & LOGO SIGNATURE DORÉ ANIMÉ
   ==================================================================== */

/* Conteneur Logo avec Halo & Flottement */
.nub-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.nub-logo-aura {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 199, 126, 0.35) 0%, rgba(201, 162, 75, 0.15) 50%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: logoAuraPulse 5s ease-in-out infinite alternate;
}

.nub-animated-logo {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.hero-clean-brand.is-revealed .nub-animated-logo {
  animation: logoFloat 6s ease-in-out infinite;
}
.nub-logo-wrapper:hover .nub-animated-logo {
  transform: scale(1.08) translateY(-4px) rotateX(6deg);
  filter: drop-shadow(0 14px 28px rgba(201, 162, 75, 0.65)) !important;
}

/* Tracés SVG Animés */
.nub-logo-svg .nub-arch-outer {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawStroke 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nub-logo-svg .nub-arch-inner {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawStroke 2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.nub-logo-svg .nub-monogram {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: drawStroke 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.nub-logo-svg .nub-diamond {
  opacity: 0;
  transform-origin: 44px 13px;
  animation: diamondPop 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards, diamondPulse 4s ease-in-out infinite 2.4s;
}

/* Titre Hero à Reflet d'Or Liquide */
.hero-title.shimmer {
  background: linear-gradient(
    120deg,
    #e5c378 0%,
    #faebd0 25%,
    #b58d34 50%,
    #faebd0 75%,
    #e5c378 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldTextFlow 8s linear infinite;
}

/* Balayage Lumineux sur les Boutons Dorés */
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
}
.btn-gold:hover::before {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* Animations d'Apparition au Défilement (Scroll Reveal) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.22s; }
.stagger-3 { transition-delay: 0.34s; }

/* Keyframes */
@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes diamondPop {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  70% { opacity: 1; transform: scale(1.3) rotate(10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes diamondPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(228, 199, 126, 0.6));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 245, 218, 0.9));
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes logoAuraPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.55;
  }
}

@keyframes goldTextFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== PLAN DE SALLE / FLOOR PLAN ==================== */
.nubia-floor-plan-svg {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  background: #120e09;
}

.nubia-floor-plan-svg .table-node {
  cursor: default;
  transition: all 0.22s var(--ease);
}

.nubia-floor-plan-svg .table-node.is-free {
  cursor: pointer;
}

.nubia-floor-plan-svg .table-node.is-free:hover rect {
  stroke-width: 2.2px;
}

.nubia-floor-plan-svg .table-node.is-free:hover {
  filter: drop-shadow(0 0 9px rgba(111, 174, 122, 0.5));
}

.nubia-floor-plan-svg .table-node.is-selected {
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(228, 199, 126, 0.8));
}

.nubia-floor-plan-svg .table-node.is-occupied {
  cursor: not-allowed;
  opacity: 0.88;
}

.nubia-floor-plan-svg .table-node.capacity-too-small {
  cursor: not-allowed;
  opacity: 0.42;
}

.table-badge-assigned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.45);
  color: var(--gold-light);
}

.table-badge-unassigned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: var(--muted-2);
}

/* ====================================================================
   NÜBIA — Galerie Photos « L'Ambiance / Un Écrin Doré » & Lightbox
   ==================================================================== */
.nub-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 16px;
}

.nub-gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-color: #1a1510;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 75, 0.18);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.nub-gallery-item.wide {
  grid-column: span 2;
}

.nub-gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(201, 162, 75, 0.35), 0 0 20px rgba(201, 162, 75, 0.15);
  border-color: rgba(201, 162, 75, 0.55);
}

.nub-gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nub-gallery-item:hover .nub-gallery-img {
  transform: scale(1.06);
}

.nub-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 8, 6, 0.65) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nub-gallery-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 7, 5, 0.8);
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: #faebd0;
  font-size: 18px;
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.nub-gallery-item:hover .nub-gallery-overlay {
  opacity: 1;
}

.nub-gallery-item:hover .nub-gallery-overlay span {
  transform: scale(1);
}

/* Lightbox plein écran */
.nub-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 5, 4, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
  padding: 24px;
  box-sizing: border-box;
}

.nub-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.nub-lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(201, 162, 75, 0.2);
  border: 1px solid rgba(201, 162, 75, 0.35);
}

.nub-lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.nub-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(18, 14, 10, 0.7);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: #faebd0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 10;
}

.nub-lightbox-close:hover {
  background: rgba(201, 162, 75, 0.25);
  transform: scale(1.08);
}

.nub-lightbox-prev,
.nub-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 14, 10, 0.7);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: #faebd0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 10;
}

.nub-lightbox-prev {
  left: 24px;
}

.nub-lightbox-next {
  right: 24px;
}

.nub-lightbox-prev:hover,
.nub-lightbox-next:hover {
  background: rgba(201, 162, 75, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.nub-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #e4c77e;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(18, 14, 10, 0.7);
  border: 1px solid rgba(201, 162, 75, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .nub-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 12px;
  }
  .nub-gallery-item.wide {
    grid-column: span 1 !important;
  }
  .nub-lightbox-prev {
    left: 10px;
  }
  .nub-lightbox-next {
    right: 10px;
  }
  .nub-lightbox-close {
    top: 14px;
    right: 14px;
  }
}


