/* ========================================
   Casanova Restaurant — Custom Styles
   Palette alignée sur casanovalille.fr
   ======================================== */

:root {
  --gold: #C3AD88;
  --gold-soft: #E8DCC4;
  --base: #0C0A09;
  --elevated: #141110;
  --card: #1C1714;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10001;
  padding: 0.75rem 1.25rem;
  background: #C3AD88;
  color: #000;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #E8DCC4;
  outline-offset: 2px;
}

/* Film grain texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Glass header */
.header-glass {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

#site-header.scrolled .header-glass {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.site-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo {
    height: 64px;
  }
}

.hero-logo {
  width: min(280px, 68vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(195, 173, 136, 0.28));
}

.footer-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #C3AD88 0%, #E8DCC4 100%);
  color: #000000;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 24px rgba(195, 173, 136, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(195, 173, 136, 0.42);
  filter: brightness(1.05);
}

.btn-gold-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold-outline:hover {
  background: var(--gold);
  color: #000000;
  box-shadow: 0 4px 20px rgba(195, 173, 136, 0.32);
}

/* Hero fallback — warm premium charcoal */
.hero-fallback-bg {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(195, 173, 136, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(139, 69, 19, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(80, 40, 10, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, #141110 0%, #0C0A09 45%, #0C0A09 100%);
}

.hero-fallback-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  opacity: 0.5;
}

.hero-content {
  animation: fadeUp 1s ease-out 0.25s forwards;
}

/* Hub d'accueil — style casanovalille.fr */
.mobile-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.mobile-hub-logo {
  width: min(220px, 58vw);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.halal-badge-text {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(0.62rem, 2.8vw, 0.78rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 2.25rem;
  max-width: min(320px, 90vw);
  text-align: center;
}

.mobile-hub-btns {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  width: min(340px, 88vw);
  margin-bottom: 2.75rem;
}

.hub-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, #D4C29E 0%, #C3AD88 45%, #A08B68 100%);
  color: #ffffff;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(0.72rem, 3.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.hub-pill:hover,
.hub-pill:active {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(195, 173, 136, 0.35);
}

.mobile-hub-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1rem;
}

.hub-social {
  color: #ffffff;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hub-social svg,
.hub-social-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hub-social:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.mobile-hub-caption {
  font-family: Cinzel, Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

@media (min-width: 768px) {
  .mobile-hub-logo {
    width: min(260px, 30vw);
  }

  .halal-badge-text {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
  }

  .mobile-hub-btns {
    width: min(420px, 70vw);
    gap: 1.25rem;
  }

  .hub-pill {
    padding: 1.15rem 1.5rem;
    font-size: 1rem;
  }

  .hub-social {
    width: 2.1rem;
    height: 2.1rem;
  }

  .mobile-hub-caption {
    font-size: 0.85rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Experience cards */
.experience-card {
  background: #1C1714;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(195, 173, 136, 0.1);
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px -12px rgba(195, 173, 136, 0.2);
  border-color: rgba(195, 173, 136, 0.28);
}

/* Menu tabs */
.menu-tab {
  flex-shrink: 0;
  padding: 0.7rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A8A29A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.menu-tab:hover {
  color: var(--gold-soft);
  border-color: rgba(195, 173, 136, 0.4);
}

.menu-tab.active {
  color: #000000;
  background: linear-gradient(135deg, #C3AD88, #E8DCC4);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(195, 173, 136, 0.32);
}

.menu-panel {
  animation: panelIn 0.4s ease-out;
}

.menu-panel.hidden {
  display: none;
  animation: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dish cards */
.dish-card {
  background: #1C1714;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(195, 173, 136, 0.1);
  border-radius: 4px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.dish-card:hover {
  border-color: rgba(195, 173, 136, 0.3);
  box-shadow: 0 16px 48px -12px rgba(195, 173, 136, 0.14);
  transform: translateY(-3px);
}

.price-tag {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  font-weight: 600;
}

.badge-best {
  background: rgba(195, 173, 136, 0.15);
  color: var(--gold);
  border: 1px solid rgba(195, 173, 136, 0.35);
}

.badge-chef {
  background: rgba(232, 220, 196, 0.08);
  color: var(--gold-soft);
  border: 1px solid rgba(232, 220, 196, 0.25);
}

.dish-card-selectable {
  cursor: pointer;
}

.dish-card-selectable.selected {
  border-color: rgba(195, 173, 136, 0.55);
  box-shadow: 0 0 0 1px rgba(195, 173, 136, 0.35), 0 16px 48px -12px rgba(195, 173, 136, 0.2);
}

.menu-options-block.highlight {
  animation: optionsPulse 2s ease-out;
}

@keyframes optionsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(195, 173, 136, 0.45);
  }
  30% {
    box-shadow: 0 0 0 6px rgba(195, 173, 136, 0.25);
  }
  100% {
    box-shadow: none;
  }
}

.gallery-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gallery-section-title {
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gold-soft);
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

/* Location */
.info-block {
  padding-bottom: 0.5rem;
}

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(195, 173, 136, 0.12);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.55);
  background: #141110;
}

.delivery-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(195, 173, 136, 0.35);
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.delivery-link:hover {
  background: rgba(195, 173, 136, 0.12);
  color: var(--gold);
  border-color: var(--gold);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

.gallery-item {
  margin: 0;
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(195, 173, 136, 0.1);
  border-radius: 4px;
  overflow: hidden;
  background: #1C1714;
  cursor: zoom-in;
  aspect-ratio: 9 / 14;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-trigger .gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  color: #E8DCC4;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.3;
}

.gallery-trigger:hover {
  border-color: rgba(195, 173, 136, 0.4);
  box-shadow: 0 16px 48px -12px rgba(195, 173, 136, 0.2);
  transform: translateY(-3px);
}

.gallery-trigger:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(480px, 100%);
  max-height: 90vh;
  text-align: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: Cinzel, Georgia, serif;
  color: #E8DCC4;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(195, 173, 136, 0.4);
  background: #000;
  color: #C3AD88;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.lightbox-close:hover {
  background: #C3AD88;
  color: #000;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(195, 173, 136, 0.35);
  background: rgba(0, 0, 0, 0.7);
  color: #C3AD88;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.lightbox-nav:hover {
  background: #C3AD88;
  color: #000;
}

.lightbox-prev { left: -0.25rem; }
.lightbox-next { right: -0.25rem; }

@media (min-width: 640px) {
  .lightbox-prev { left: -3rem; }
  .lightbox-next { right: -3rem; }
}

.carte-intro {
  color: #ffffff !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }

/* Hide scrollbar on tab strip */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content,
  .menu-panel,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-gold-pulse,
  .gallery-trigger img {
    animation: none !important;
    transition: none !important;
  }
}
