/**
 * NÜBIA — Animations Avancées & Effets Spectaculaires « WOW »
 * Thème Haute Joaillerie & Ambiance Feutrée
 */

/* ====================================================================
   1. CURSEUR LUMINEUX & AURA DORÉE INTERACTIVE
   ==================================================================== */
.gold-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.12) 0%, rgba(201, 162, 75, 0.04) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9990;
  transition: opacity 0.3s ease, transform 0.1s cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: screen;
}

.gold-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(228, 199, 126, 0.9), 0 0 24px rgba(201, 162, 75, 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}

body.cursor-hover .gold-cursor-dot {
  width: 18px;
  height: 18px;
  background: rgba(255, 245, 218, 0.9);
  box-shadow: 0 0 20px rgba(228, 199, 126, 1), 0 0 35px rgba(201, 162, 75, 0.8);
}

@media (max-width: 900px), (pointer: coarse) {
  .gold-cursor-aura, .gold-cursor-dot {
    display: none !important;
  }
}

/* ====================================================================
   2. RAYONS DE LUMIÈRE HERO (VOLUMETRIC GOD RAYS)
   ==================================================================== */
.hero-god-rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.god-ray {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 140px;
  height: 160%;
  background: linear-gradient(180deg, rgba(228, 199, 126, 0.4) 0%, rgba(201, 162, 75, 0.08) 60%, transparent 100%);
  transform-origin: top center;
  filter: blur(25px);
  animation: swayRay 12s ease-in-out infinite alternate;
}
.god-ray.ray-1 { transform: rotate(-25deg); animation-delay: 0s; width: 180px; }
.god-ray.ray-2 { transform: rotate(10deg); animation-delay: -3s; width: 120px; }
.god-ray.ray-3 { transform: rotate(-8deg); animation-delay: -6s; width: 160px; }
.god-ray.ray-4 { transform: rotate(28deg); animation-delay: -9s; width: 140px; }

@keyframes swayRay {
  0% { transform: rotate(-22deg) scaleX(0.9); opacity: 0.25; }
  50% { transform: rotate(0deg) scaleX(1.15); opacity: 0.45; }
  100% { transform: rotate(22deg) scaleX(0.9); opacity: 0.25; }
}

/* ====================================================================
   3. ANIMATIONS SPECTACULAIRES SUR LES MENUS
   ==================================================================== */

/* Carte de Plat Interactive avec Spotlight Curseur */
.dish-card-wow {
  position: relative;
  border-radius: 16px;
  padding: 16px 20px;
  background: rgba(22, 18, 12, 0.4);
  border: 1px solid rgba(201, 162, 75, 0.14);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: default;
}

.dish-card-wow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(228, 199, 126, 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dish-card-wow:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(201, 162, 75, 0.5);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(201, 162, 75, 0.25);
}

.dish-card-wow:hover::before {
  opacity: 1;
}

/* Ligne Pointillée Dorée Guidante (Leader Line) */
.dish-header-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dish-name-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-dish);
  transition: color 0.25s ease, transform 0.25s ease;
}
.dish-card-wow:hover .dish-name-title {
  color: #fff;
  transform: translateX(4px);
}

.dish-leader-line {
  flex: 1;
  height: 1px;
  border-bottom: 1px dashed rgba(201, 162, 75, 0.25);
  margin: 0 6px;
  transition: border-color 0.3s ease;
}
.dish-card-wow:hover .dish-leader-line {
  border-bottom-color: rgba(228, 199, 126, 0.7);
}

/* Badge Prix Éclatant */
.dish-price-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold-light);
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid rgba(201, 162, 75, 0.2);
  transition: all 0.3s var(--ease);
}
.dish-card-wow:hover .dish-price-badge {
  color: var(--on-gold);
  background: var(--grad-gold);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(228, 199, 126, 0.8);
  transform: scale(1.06);
}

/* Badge Signature / Coup de Cœur */
.badge-signature {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-gold);
  background: var(--grad-gold);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(201, 162, 75, 0.5);
  animation: pulseGold 3s ease-in-out infinite;
}

/* Badge Halal Chic - Masqué sur la page normale, affiché uniquement lorsque le filtre Halal est actif */
.badge-halal {
  display: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7eedaf;
  background: rgba(111, 224, 155, 0.12);
  border: 1px solid rgba(111, 224, 155, 0.35);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(111, 224, 155, 0.15);
  transition: all 0.25s ease;
}
.filter-halal-active .badge-halal {
  display: inline-flex;
  animation: badgeFadeIn 0.25s ease;
}
@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
.dish-card-wow:hover .badge-halal {
  background: rgba(111, 224, 155, 0.22);
  border-color: rgba(111, 224, 155, 0.6);
  box-shadow: 0 0 14px rgba(111, 224, 155, 0.35);
  transform: translateY(-1px);
}

/* Tarifs Vins & Champagnes (Verre / Bouteille) */
.dish-wine-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dish-price-badge.wine-badge {
  font-size: 14.5px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.dish-price-badge.wine-badge small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  opacity: 0.85;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Barre de Filtre Halal & Sélection */
.menu-filter-bar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 34px;
}
.menu-subfilter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(18, 14, 10, 0.75);
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}
.halal-filter-btn {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.halal-filter-btn:hover {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.05);
}
.halal-filter-btn.active {
  background: rgba(201, 162, 75, 0.16);
  border-color: rgba(201, 162, 75, 0.45);
  color: var(--gold-light);
  font-weight: 600;
}
.halal-filter-btn[data-filter="halal"].active {
  background: rgba(92, 214, 133, 0.16);
  border-color: rgba(92, 214, 133, 0.45);
  color: #7eedaf;
  box-shadow: 0 0 16px rgba(92, 214, 133, 0.22);
}

/* Allergènes sur les cartes de plats */
.dish-allergens-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dish-allergens-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  font-weight: 600;
}

.dish-allergen-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: #d8cbb8;
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid rgba(201, 162, 75, 0.2);
  padding: 1px 8px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.dish-card-wow:hover .dish-allergen-tag {
  border-color: rgba(201, 162, 75, 0.45);
  background: rgba(201, 162, 75, 0.14);
  color: #fff;
}


/* Grille des Cartes : Centrée & 2 Colonnes Équilibrées */
.menu-tab-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .menu-tab-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Animation d'apparition échelonnée des plats lors du changement d'onglet */
.menu-tab-content.rise .dish-card-wow {
  animation: dishFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.menu-tab-content.rise .dish-card-wow:nth-child(1) { animation-delay: 0.05s; }
.menu-tab-content.rise .dish-card-wow:nth-child(2) { animation-delay: 0.1s; }
.menu-tab-content.rise .dish-card-wow:nth-child(3) { animation-delay: 0.15s; }
.menu-tab-content.rise .dish-card-wow:nth-child(4) { animation-delay: 0.2s; }
.menu-tab-content.rise .dish-card-wow:nth-child(5) { animation-delay: 0.25s; }
.menu-tab-content.rise .dish-card-wow:nth-child(6) { animation-delay: 0.3s; }
.menu-tab-content.rise .dish-card-wow:nth-child(7) { animation-delay: 0.35s; }
.menu-tab-content.rise .dish-card-wow:nth-child(8) { animation-delay: 0.4s; }

@keyframes dishFadeUp {
  0% { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(201, 162, 75, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 16px rgba(228, 199, 126, 0.8); }
}

/* ====================================================================
   4. EFFETS MAGNÉTIQUES & 3D TILT SUR LES CARTES
   ==================================================================== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(20px);
}

/* ====================================================================
   5. ÉCLAT ÉTINCELLES CLIC (SPARKLE BURST)
   ==================================================================== */
.click-sparkle-burst {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 0;
  height: 0;
}
.sparkle-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(255, 245, 218, 1);
  animation: burstParticle 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes burstParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ====================================================================
   6. BORDURE NÉON DORÉE ANIMÉE (ÉVÉNEMENT À LA UNE)
   ==================================================================== */
.neon-gold-border {
  position: relative;
  border: 1px solid rgba(201, 162, 75, 0.4);
  box-shadow: 0 0 30px -10px rgba(201, 162, 75, 0.3);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.neon-gold-border:hover {
  border-color: var(--gold-light);
  box-shadow: 0 0 45px -5px rgba(201, 162, 75, 0.55), inset 0 0 20px rgba(201, 162, 75, 0.15);
}

/* ====================================================================
   7. BARRE DE DÉFILEMENT DE LUXE EN HAUT D'ÉCRAN
   ==================================================================== */
.gold-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #c9a24b, #faebd0, #c9a24b);
  z-index: 99999;
  width: 0%;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(228, 199, 126, 0.8);
}

/* ====================================================================
   8. EFFETS DE PARALLAXE DE LUXE (SECTIONS & MENUS)
   ==================================================================== */
.parallax-wrap {
  position: relative;
  overflow: hidden;
}

.parallax-img-container {
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}

.parallax-img {
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: center;
  margin-top: -12%;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-elem {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-bg-pattern {
  will-change: background-position;
}

/* Décorations dorées flottantes à profondeur parallaxe */
.parallax-star-float {
  position: absolute;
  color: var(--gold-light);
  font-size: 16px;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(201, 162, 75, 0.6));
  animation: nubtwinkle 4s ease-in-out infinite;
  will-change: transform;
}

/* Arrière-plan de menu avec ambiance dorée en parallaxe */
.menu-parallax-ambient {
  position: absolute;
  top: -100px;
  right: -80px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.12) 0%, rgba(201, 162, 75, 0.03) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

