/* ==========================================================================
   Restaurant L'Indochine Perpignan - Design System & Layout
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f3ede4;
  --ink: #1f1b18;
  --ink-muted: #5c534a;
  --brand: #9f1d20;
  --brand-dark: #7a1417;
  --accent: #ef8b17;
  --accent-hover: #d97706;
  --border: #e7dfd5;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(31, 27, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(31, 27, 24, 0.1);
  --font-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--brand-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.65rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav-link:hover {
  background-color: var(--surface-alt);
  color: var(--brand);
}

.nav-link[aria-current="page"] {
  color: var(--brand);
  background-color: rgba(159, 29, 32, 0.08);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* GloriaFood Button & Custom Buttons
   -------------------------------------------------------------------------- */
.glf-ordering-location > span {
  display: none;
}

.glf-button-default.glf-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.glf-button-default.glf-button {
  background-color: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(239, 139, 23, 0.32);
}

.glf-button-default.glf-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-primary {
  background-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-alt);
  color: var(--brand);
}

/* Hero Sections
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #261b18;
}

.hero--compact {
  min-height: 290px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(25, 16, 14, 0.86) 0%,
    rgba(25, 16, 14, 0.68) 55%,
    rgba(25, 16, 14, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 720px;
}

.hero--compact .hero-content {
  padding-block: 3rem;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(239, 139, 23, 0.2);
  border: 1px solid rgba(239, 139, 23, 0.55);
  color: #ffd399;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  margin-top: 0;
  color: var(--ink);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}

.hero-badges li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* Sections & Cards
   -------------------------------------------------------------------------- */
.section {
  padding-block: 4rem;
}

.section--alt {
  background-color: var(--surface-alt);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.2rem;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--ink-muted);
  margin: 0;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.highlight-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.highlight-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background-color: var(--brand);
  flex-shrink: 0;
}

/* Dish Trio
   -------------------------------------------------------------------------- */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.dish-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dish-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dish-card-caption {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
}

/* Spaces Gallery (Terrasse, Salle 1, Salle 2, Salle 3)
   -------------------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.filter-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-tab.is-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Video Showcase
   -------------------------------------------------------------------------- */
.video-frame {
  max-width: 820px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #151210;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.video-frame video {
  width: 100%;
  max-height: 480px;
}

/* Reviews / Social Links
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.review-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.review-platform {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
}

.review-desc {
  color: var(--ink-muted);
  margin: 0;
}

.review-cta {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand);
}

/* Location & Hours
   -------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  background-color: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.hours-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.hours-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.info-row {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.info-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* Carte & Menu Page
   -------------------------------------------------------------------------- */
.menu-hero-card {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem 2rem;
}

.menu-hero-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.menu-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.contact-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

/* Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(18, 14, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-figure img {
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: #ffffff;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #1f1b18;
  color: rgba(255, 255, 255, 0.82);
  padding-block: 2.75rem 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-title {
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .prose-grid,
  .location-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dishes-grid,
  .gallery-grid,
  .reviews-grid,
  .menu-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-logo {
    height: 36px;
  }

  .dishes-grid,
  .gallery-grid,
  .reviews-grid,
  .menu-features {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 440px;
  }
}

/* ==========================================================================
   Seasonal Theme: December 2026 (auto-disabled from January 2027)
   ========================================================================== */
.festive-ribbon {
  display: none;
}

html.theme-christmas {
  --bg: #faf6ef;
  --surface-alt: #f1ece2;
  --brand: #9b1b22;
  --brand-dark: #741117;
  --border: #e4d8c3;
  --festive-pine: #154234;
  --festive-gold: #c8963e;
  --festive-gold-soft: #f5dfb0;
}

html.theme-christmas .festive-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #11352a 0%, #194c3c 50%, #11352a 100%);
  border-bottom: 2px solid var(--festive-gold);
  color: #fffaf0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

html.theme-christmas .festive-star {
  color: var(--festive-gold-soft);
  flex-shrink: 0;
}

html.theme-christmas .site-header {
  border-bottom-color: rgba(200, 150, 62, 0.45);
}

html.theme-christmas .hero-overlay {
  background: linear-gradient(
    115deg,
    rgba(17, 53, 42, 0.88) 0%,
    rgba(88, 20, 24, 0.72) 55%,
    rgba(25, 16, 14, 0.48) 100%
  );
}

html.theme-christmas .hero-eyebrow {
  background-color: rgba(200, 150, 62, 0.24);
  border-color: rgba(245, 223, 176, 0.65);
  color: var(--festive-gold-soft);
}

html.theme-christmas .card,
html.theme-christmas .dish-card,
html.theme-christmas .gallery-item,
html.theme-christmas .review-card {
  border-color: rgba(200, 150, 62, 0.35);
}

html.theme-christmas .section-kicker,
html.theme-christmas .info-label {
  color: var(--festive-pine);
}

html.theme-christmas .site-footer {
  background-color: #11352a;
  border-top: 3px solid var(--festive-gold);
}

/* Subtle Snowfall Layer */
.snow-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -1.5rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 4px rgba(17, 53, 42, 0.35);
  user-select: none;
  will-change: transform;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, -5vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.75;
  }
  100% {
    transform: translate3d(var(--drift, 24px), 108vh, 0) rotate(360deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snow-layer {
    display: none;
  }
}
