/* ============================================
   VILLA ELYSAE — style-2026.css
   Augmentation "10K€ feeling" LIGHT mode.
   - Custom cursor desktop
   - Scroll progress bar
   - Marquee infinie avis
   - Hero poster fallback img
   - Parallax multi-couches (about-figure)
   - Showreel video frame avec coins terracotta
   - Galerie masonry 8 photos
   - Grid 6 cards espaces
   - Glass review cards (light glass)
   - Gradient mesh animé conic (final-cta)
   - Footer dark enrichi
   ============================================ */

/* ---------- 1. CUSTOM CURSOR (desktop) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  mix-blend-mode: multiply;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: transform 0.06s linear, opacity 0.2s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  transition: transform 0.18s var(--ease-out), width 0.25s var(--ease-out),
              height 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              opacity 0.2s ease, background 0.25s ease;
}
.cursor-ring.hovering {
  width: 60px; height: 60px;
  background: rgba(201, 123, 92, 0.10);
  border-color: var(--color-accent);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, input, textarea, select, [role="button"] { cursor: none; }
}

/* ---------- 2. SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-sea));
  z-index: 9998;
  box-shadow: 0 0 14px var(--color-glow);
  pointer-events: none;
  will-change: width;
  transition: width 0.06s linear;
}

/* ---------- 3. HERO POSTER FALLBACK ---------- */
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.92) saturate(1.05);
}
.hero-video {
  z-index: -2 !important;
}

/* Hero title — Fraunces variable */
.hero-title {
  font-variation-settings: "opsz" 120, "wght" 300, "SOFT" 50;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35);
}
.hero-title em {
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 100;
}

/* ---------- 4. MARQUEE BAND ---------- */
.marquee-band {
  background: var(--color-bg-paper);
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
  overflow: hidden;
  padding: 1.1rem 0;
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-paper), transparent);
}
.marquee-band::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg-paper), transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: marquee-scroll 64s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
  flex-shrink: 0;
}
.marquee-item strong {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.marquee-sep {
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 1.1rem;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 5. PARALLAX FIGURE (about) ---------- */
.about-figure {
  aspect-ratio: 4/5;
  position: relative;
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.about-figure-img,
.about-figure-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.about-figure-img {
  z-index: 1;
  transition: transform 1.6s var(--ease-out);
}
.about-figure-overlay {
  z-index: 2;
  width: 52%;
  height: 44%;
  bottom: 6%;
  left: 6%;
  top: auto;
  right: auto;
  border-radius: var(--radius);
  border: 6px solid var(--color-bg);
  box-shadow: 0 24px 60px -16px rgba(44, 38, 32, 0.4);
  object-position: center;
}
.about-figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 26, 20, 0.25));
  pointer-events: none;
  z-index: 3;
}
.about-figure-stamp {
  position: absolute;
  z-index: 4;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(244, 239, 231, 0.5);
  background: rgba(30, 26, 20, 0.45);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: var(--radius);
  text-align: right;
  display: flex; flex-direction: column;
  gap: 0.1rem;
  color: #FAF6EF;
}
.about-figure-stamp em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent-pale);
  font-weight: 400;
  line-height: 1;
}
.about-figure-stamp small {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.7);
}

@media (hover: hover) {
  .about-figure:hover .about-figure-img { transform: scale(1.04); }
}

/* ---------- 6. SHOWREEL VIDEO FRAME ---------- */
.showreel {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 123, 92, 0.08), transparent 55%),
    var(--color-bg-paper);
  position: relative;
}
.showreel-frame {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  box-shadow:
    0 30px 80px -20px rgba(44, 38, 32, 0.25),
    inset 0 0 0 1px rgba(201, 123, 92, 0.08);
}
.showreel-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.showreel-corner {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 3;
  pointer-events: none;
}
.showreel-corner-tl {
  top: 14px; left: 14px;
  border-top: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-tr {
  top: 14px; right: 14px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}
.showreel-corner-bl {
  bottom: 14px; left: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-br {
  bottom: 14px; right: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}

/* ---------- 7. ESPACES 6-COL GRID ---------- */
.dishes-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}
@media (max-width: 1000px) {
  .dishes-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .dishes-grid-6 { grid-template-columns: 1fr; }
}

.dish-card {
  position: relative;
  isolation: isolate;
}
.dish-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 123, 92, 0), rgba(201, 123, 92, 0.4), rgba(201, 123, 92, 0));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.dish-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .dish-card:hover::before { opacity: 1; }
}

/* ---------- 8. GALLERY MASONRY (8 items) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  margin: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s var(--ease);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30, 26, 20, 0.55));
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
}
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 1rem;
  left: 1.1rem; right: 1.1rem;
  z-index: 2;
  color: #FAF6EF;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  line-height: 1.3;
  opacity: 0.95;
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
  .gallery-item:hover::before { opacity: 1; }
}

.gallery-item-tall { grid-column: span 2; grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; grid-row: span 1; }
.gallery-grid > .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
  grid-column: span 1; grid-row: span 1;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item-tall { grid-column: span 2; grid-row: span 2; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 1; }
  .gallery-grid > .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ---------- 9. GLASS REVIEW CARDS (light glass) ---------- */
.review-card-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)),
    rgba(250, 246, 239, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(201, 123, 92, 0.20);
  box-shadow: 0 24px 60px -28px rgba(44, 38, 32, 0.25);
  transition: all 0.5s var(--ease);
}
@media (hover: hover) {
  .review-card-glass:hover {
    border-color: rgba(201, 123, 92, 0.42);
    transform: translateY(-4px);
    box-shadow: 0 32px 80px -24px rgba(44, 38, 32, 0.32);
  }
}

/* ---------- 10. CONTACT MAP — Google iframe ---------- */
.contact-map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px -28px rgba(44, 38, 32, 0.2);
  filter: grayscale(0.15) contrast(1.02);
  background: var(--color-bg-soft);
}
.contact-map-frame iframe {
  width: 100%; height: 100%;
  display: block;
}

/* ---------- 11. GRADIENT MESH ANIMÉ (final-cta) ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final-cta-mesh {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(201, 123, 92, 0.22) 0deg,
      rgba(30, 26, 20, 0.0) 90deg,
      rgba(59, 95, 107, 0.20) 180deg,
      rgba(30, 26, 20, 0.0) 270deg,
      rgba(201, 123, 92, 0.22) 360deg
    );
  filter: blur(70px) saturate(140%);
  animation: mesh-rotate 60s linear infinite;
  will-change: transform;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(201, 123, 92, 0.12), transparent 70%),
    var(--color-bg-darker);
}
@keyframes mesh-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .final-cta-mesh { animation: none; }
}

/* ---------- 12. FOOTER ENRICHI ---------- */
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: #FAF6EF;
  margin-bottom: 1rem;
  line-height: 1;
}
.footer-brand-em {
  font-style: italic;
  color: var(--color-accent-pale);
  font-weight: 400;
}
.footer-tagline {
  font-size: 0.92rem;
  color: rgba(244, 239, 231, 0.6);
  line-height: 1.55;
  max-width: 28ch;
}
.footer-signature {
  color: var(--color-accent-pale);
  font-style: italic;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .footer-signature:hover { border-bottom-color: var(--color-accent-pale); }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 13. NAV REFINEMENTS ---------- */
.nav.scrolled {
  background: rgba(244, 239, 231, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ---------- 14. BUTTON SHIMMER ---------- */
.btn-primary {
  background:
    linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: left 0.7s var(--ease);
}
@media (hover: hover) {
  .btn-primary:hover::before { left: 100%; }
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-soft) 0%, var(--color-accent) 100%);
  }
}

/* ---------- 15. COUNTER ---------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.018em;
}

/* ---------- 16. SECTION DIVIDERS ---------- */
.quiet::before,
.showreel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

/* ---------- 17. HOVER LIFT cards ---------- */
@media (hover: hover) {
  .dish-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 32px 70px -28px rgba(44, 38, 32, 0.25),
      inset 0 0 0 1px rgba(201, 123, 92, 0.20);
  }
}

/* ---------- 18. RÉPÈRE — terracotta glow ---------- */
.repere-stat {
  text-shadow: 0 0 30px rgba(201, 123, 92, 0.15);
}
.repere-stat em {
  font-style: italic;
  color: var(--color-accent-pale);
  font-size: 0.7em;
  margin-left: 0.15em;
}

/* ---------- 19. CONTACT GRID ---------- */
.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 20. STICKY MOBILE CTA refinement ---------- */
.sticky-cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
}

/* ---------- 21. CHAMBRES HERO BG IMAGE ---------- */
.menu-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 12vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
  color: #FAF6EF;
}
.menu-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.62) saturate(1.1);
}
.menu-hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(30, 26, 20, 0.45) 0%, rgba(30, 26, 20, 0.78) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 123, 92, 0.14) 0%, transparent 55%);
}
.menu-hero > .container { position: relative; z-index: 2; }
.menu-hero .subpage-title { color: #FAF6EF; }
.menu-hero .subpage-title em { color: var(--color-accent-pale); }
.menu-hero .subpage-sub { color: rgba(244, 239, 231, 0.78); }
.menu-hero .subpage-back { color: rgba(244, 239, 231, 0.65); }
.menu-hero .eyebrow { color: var(--color-accent-pale); }
.menu-hero .eyebrow::before { background: var(--color-accent-pale); }

/* ---------- 22. RESERVATION HERO BG light ---------- */
.booking-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 123, 92, 0.10), transparent 60%);
  z-index: 0;
}
.booking-hero > .container { position: relative; z-index: 1; }

/* ---------- 23. SCROLLBAR (subtle terracotta) ---------- */
@media (pointer: fine) {
  body::-webkit-scrollbar { width: 10px; }
  body::-webkit-scrollbar-track { background: var(--color-bg-soft); }
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-accent-pale), var(--color-accent));
    border-radius: 5px;
    border: 2px solid var(--color-bg-soft);
  }
}
