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

:root {
  --night: #07070f;
  --surface: #0e0e1c;
  --surface2: #13132a;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --cream: #f2ece0;
  --muted: #6e6e8a;
  --border: rgba(201,168,76,0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

/* ─── CUSTOM CURSOR (desktop only) ─── */
.cursor-on, .cursor-on * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(232,201,110,0.9), 0 0 16px rgba(201,168,76,0.5);
  transition: opacity 0.2s ease;
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.55;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  opacity: 0.85;
  border-color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* ─── CUSTOM SCROLLBAR ─── */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--night);
}
/* WebKit / Blink */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--night);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 6px;
  border: 2px solid var(--night);
  box-shadow: 0 0 6px rgba(201,168,76,0.35);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 0 10px rgba(232,201,110,0.55);
}
::-webkit-scrollbar-corner {
  background: var(--night);
}

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ─── STARS ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}
#bg-canvas.is-active + .stars-layer {
  /* When WebGL is active, fade the CSS stars to avoid double rendering */
  opacity: 0.35;
}
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  animation: twinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% {
    opacity: var(--min-op, 0.2);
    transform: scale(1);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
  }
  50% {
    opacity: var(--max-op, 0.9);
    transform: scale(1.2);
    box-shadow: 0 0 4px rgba(201, 168, 76, 0.6), 0 0 8px rgba(201, 168, 76, 0.3);
  }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  background: linear-gradient(to bottom, rgba(7,7,15,0.9) 0%, transparent 100%);
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(7,7,15,0.96);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-switcher button {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.3rem 0.6rem;
}
.lang-switcher button:hover {
  color: var(--gold);
}
.lang-switcher button.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.hero-title.is-typed { opacity: 1; }
.hero-title:not(.is-typed) {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
}
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  transition: opacity 0.85s ease, transform 1.0s cubic-bezier(.2,.8,.2,1), filter 0.85s ease;
}
.hero-title .char.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero-title .char.gold {
  color: var(--gold);
  font-style: italic;
}
.hero-title .space { display: inline-block; width: 0.25em; }
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-dates-prominent {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}

.hero-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7,7,15,0.55);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}
.hero-countdown.is-festival {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
}
.countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-days {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-light);
  font-feature-settings: "tnum";
}

/* Smooth language switch fade */
.lang-fading [data-i18n] {
  opacity: 0;
  transition: opacity 0.18s ease;
}
[data-i18n] {
  transition: opacity 0.25s ease;
}

/* Honor user's motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .star { animation: none !important; opacity: 0.5; }
  .hero-glow { animation: none !important; }
}

.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.6s;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-item svg { color: var(--gold); flex-shrink: 0; }
.hero-divider {
  width: 1px; height: 1.2rem;
  background: var(--border);
}
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--night);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ─── SECTION BASE ─── */
section { position: relative; z-index: 1; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--gold);
}

/* ─── À PROPOS ─── */
#apropos {
  padding: 8rem 0 7rem;
  border-top: 1px solid var(--border);
}
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.apropos-taglines {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.tagline-item {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--cream);
  opacity: 0.25;
  transition: opacity 0.3s;
}
.tagline-item em { font-style: italic; color: var(--gold); }
.tagline-item.active { opacity: 1; }
.apropos-content {}
.apropos-content p {
  font-size: 1.05rem;
  color: rgba(242,236,224,0.75);
  margin-bottom: 1.6rem;
  line-height: 1.85;
}
.badge-gratuit {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  margin-bottom: 2rem;
}

/* ─── PROGRAMME ─── */
#programme {
  padding: 7rem 0 8rem;
  background: rgba(14, 14, 28, 0.78);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.programme-intro {
  max-width: 620px;
  margin-bottom: 4rem;
}
.programme-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.programme-intro p {
  color: rgba(242,236,224,0.65);
  font-size: 0.95rem;
  line-height: 1.8;
}
.soirees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.soiree-card {
  background: var(--night);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
}
.soiree-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
}
.soiree-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
  transition: filter 0.4s, transform 0.5s;
}
.soiree-card:hover .soiree-poster img {
  filter: brightness(1) saturate(1);
  transform: scale(1.04);
}
.soiree-number {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.22);
  line-height: 1;
  pointer-events: none;
  select: none;
}
.soiree-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.soiree-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.soiree-meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.soiree-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.soiree-meta-item svg { color: var(--gold); }
/* .soiree-title removed in v2.2 — sub-themes deleted to lighten cards */
.soiree-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  margin-top: 1.1rem;
}
.soiree-films {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.soiree-films li {
  font-size: 0.82rem;
  color: rgba(242,236,224,0.75);
  position: relative;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.soiree-section-label--feature {
  margin-top: 1.2rem;
  color: var(--gold-light);
  font-size: 0.66rem;
}
.long-metrage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.long-metrage .film-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0.005em;
}
.long-metrage .film-year {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-family: var(--sans);
  margin-left: 0.4rem;
  letter-spacing: 0.04em;
}
.long-metrage .film-ctas {
  margin-top: 0.7rem;
  margin-bottom: 0;
}
.film-tba {
  font-style: italic;
  color: var(--muted);
}
.film-link {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 0.1rem;
  transition: color 0.2s ease;
}
.film-link:hover { color: var(--gold-light); }
.film-link:hover .film-name-short { color: var(--gold-light); }
.film-name-short {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.25;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.film-name-short .film-year {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}
.film-director {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.film-director svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.soiree-food {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.soiree-block + .soiree-block {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(201,168,76,0.32);
  position: relative;
}
.soiree-block + .soiree-block::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.soiree-block-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.soiree-block-title::before {
  content: "◆ ";
  font-style: normal;
  font-size: 0.7em;
  vertical-align: 0.15em;
  margin-right: 0.15rem;
  opacity: 0.85;
}
.soiree-block--cinema .soiree-section-label:first-of-type,
.soiree-block--onsite .soiree-section-label:first-of-type {
  margin-top: 0.4rem;
}
.soiree-special {
  margin-top: auto;
  background: rgba(201,168,76,0.06);
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: rgba(201,168,76,0.8);
  line-height: 1.5;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ─── GALLERY ─── */
#gallery {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}
.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.gallery-inner h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 3rem;
}
.carousel {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}
.carousel {
  perspective: 1400px;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}
.carousel-slide {
  min-width: calc((100% - 3rem) / 3);
  width: calc((100% - 3rem) / 3);
  position: relative;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease;
}
.carousel-slide.is-side-left {
  transform: rotateY(10deg) scale(0.92);
  opacity: 0.7;
}
.carousel-slide.is-side-right {
  transform: rotateY(-10deg) scale(0.92);
  opacity: 0.7;
}
.carousel-slide.is-side-far {
  transform: scale(0.86);
  opacity: 0.45;
}
.carousel-slide.is-center {
  transform: none;
  opacity: 1;
}
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.78) contrast(1.05) saturate(0.78) sepia(0.18);
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,15,0.10) 0%, rgba(7,7,15,0.45) 100%);
  pointer-events: none;
  border-radius: 4px;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.carousel-slide:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) contrast(1.05) saturate(0.95) sepia(0.05);
}
.carousel-slide:hover::after {
  opacity: 0.35;
}
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}
.carousel-btn {
  pointer-events: all;
  background: rgba(7,7,15,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.carousel-btn:hover {
  background: rgba(7,7,15,0.95);
  border-color: var(--gold);
  transform: scale(1.1);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-btn svg {
  width: 24px;
  height: 24px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  padding: 0;
}
.carousel-dot:hover {
  transform: scale(1.2);
}
.carousel-dot.active {
  background: var(--gold);
}

/* ─── INFOS PRATIQUES ─── */
#infos {
  padding: 7rem 0 8rem;
}
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}
.infos-grid h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}
.info-block {
  margin-bottom: 2rem;
}
.info-block-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-block p, .info-block address {
  font-size: 0.88rem;
  color: rgba(242,236,224,0.7);
  line-height: 1.75;
  font-style: normal;
}
.map-card {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 4px;
  background: var(--night);
}
.map-leaflet {
  width: 100%;
  height: 420px;
  display: block;
}
/* Tone the tile layer toward the site's gold/night palette */
.map-leaflet .leaflet-tile-pane {
  filter: saturate(0.4) hue-rotate(-15deg) brightness(0.95);
}
.map-leaflet .leaflet-control-attribution {
  background: rgba(7,7,15,0.7);
  color: var(--muted);
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 2px 0 0 0;
}
.map-leaflet .leaflet-control-attribution a {
  color: var(--gold);
}
.map-leaflet .leaflet-control-zoom a {
  background: rgba(7,7,15,0.85);
  color: var(--gold);
  border: 1px solid var(--border);
}
.map-leaflet .leaflet-control-zoom a:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
}
/* Custom golden pulsing marker */
.cineastres-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--night), 0 0 12px rgba(201,168,76,0.7);
  position: relative;
}
.cineastres-marker::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: markerPulse 2.4s ease-out infinite;
}
@keyframes markerPulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cineastres-marker::after { animation: none; }
}
.map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.85) 0%, transparent 35%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 500;
}
.map-overlay .map-cta { pointer-events: auto; }
.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--gold);
  color: var(--night);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.map-cta:hover { background: var(--gold-light); }
.distance-pills {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.pill {
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ─── SPONSORS ─── */
#sponsors {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.sponsors-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.sponsors-inner h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 2.5rem;
}
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  width: 180px;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 6px;
  flex: 0 0 auto;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.3) contrast(0.85);
  opacity: 0.78;
  transition: filter 0.3s, opacity 0.3s;
}
.sponsor-logo:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.32);
  transform: translateY(-2px);
}
.sponsor-logo:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.footer-nav h4 {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: gap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-assoc {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── MODAL ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7,7,15,0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.active {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem 2.5rem;
  animation: modalSlideIn 0.4s ease;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s;
}
.modal-close:hover {
  transform: scale(1.2);
  color: var(--gold-light);
}
.modal-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 2rem;
}
.modal-content h3 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
.modal-content p {
  font-size: 0.95rem;
  color: rgba(242,236,224,0.8);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.modal-content strong {
  color: var(--cream);
  font-weight: 500;
}

/* ─── FILM MODAL ─── */
.film-modal-content {
  max-width: 760px;
}
.film-modal-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.film-modal-poster {
  width: 160px;
  min-width: 160px;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.film-modal-text {
  flex: 1;
}
.film-modal-meta {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold) !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.4 !important;
}
.film-modal-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.film-modal-synopsis {
  font-size: 0.95rem;
  color: rgba(242,236,224,0.85);
  line-height: 1.85;
}
.film-modal-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.btn-agenda {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.10);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-agenda:hover {
  background: rgba(201,168,76,0.22);
  color: var(--cream);
}
.film-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.55rem;
}
.btn-film-info,
.btn-film-trailer {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.btn-film-info::after,
.btn-film-trailer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.btn-film-info:hover,
.btn-film-trailer:hover {
  color: var(--gold-light);
}
.btn-film-info:hover::after,
.btn-film-trailer:hover::after {
  opacity: 0.85;
}
.btn-film-trailer svg {
  flex-shrink: 0;
}

.trailer-modal-content {
  max-width: 960px;
  padding: 0;
  background: #000;
  overflow: hidden;
  position: relative;
}
.trailer-modal-content .modal-close {
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  color: var(--cream);
}
.trailer-modal-content .modal-close:hover {
  color: var(--gold-light);
  background: rgba(0,0,0,0.85);
}
.trailer-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.trailer-embed video,
.trailer-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
@media (max-width: 600px) {
  .film-modal-inner {
    flex-direction: column;
    align-items: center;
  }
  .film-modal-poster {
    width: 120px;
    min-width: 120px;
  }
}

/* ─── TYPO SHIMMER (h2 titles) ─── */
section h2 {
  background: linear-gradient(110deg,
    var(--cream) 0%,
    var(--cream) 35%,
    var(--gold-light) 50%,
    var(--cream) 65%,
    var(--cream) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleShimmer 9s ease-in-out infinite;
}
@keyframes titleShimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  section h2 {
    background: none;
    -webkit-text-fill-color: var(--cream);
    color: var(--cream);
  }
}

/* ─── PAGE LOADER ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader.is-done .loader-mark {
  transform: translateY(-12px) scale(0.94);
  filter: blur(2px);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.5,0,.2,1), filter 1.0s ease, opacity 0.9s ease;
}
.loader-mark {
  transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
}

/* While the loader fades out, hold the hero hidden so the transition lands cleanly */
body.is-booting #hero { opacity: 0; }
body.is-booting #hero,
body.hero-revealed #hero {
  transition: opacity 0.9s ease;
}
body.hero-revealed #hero { opacity: 1; }
.loader-mark {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--cream);
  position: relative;
}
.loader-mark em {
  font-style: italic;
  color: var(--gold);
}
.loader-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderUnderline 1.8s ease forwards 0.3s;
}
@keyframes loaderUnderline {
  to { transform: scaleX(1); }
}
.loader-mark .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: loaderCharIn 0.8s ease forwards;
}
@keyframes loaderCharIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SHOOTING STAR (easter egg) ─── */
.shooting-star {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(232,201,110,0.9), 0 0 16px rgba(201,168,76,0.6);
  pointer-events: none;
  z-index: 9990;
}
.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,201,110,0.7));
  transform: translateY(-50%);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease, clip-path 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Curtain reveal — opens from center horizontally */
.reveal--curtain {
  clip-path: inset(0 50% 0 50%);
  transform: none;
}
.reveal--curtain.visible {
  clip-path: inset(0 0 0 0);
}

/* Stagger children reveal */
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal--stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger.visible > *:nth-child(2) { transition-delay: 0.18s; }
.reveal--stagger.visible > *:nth-child(3) { transition-delay: 0.31s; }
.reveal--stagger.visible > *:nth-child(4) { transition-delay: 0.44s; }

/* Cinema vignette opening — triggered after the loader hands off */
.cinema-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 30%, rgba(7,7,15,1) 75%);
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
}
.cinema-vignette.is-playing {
  animation: vignetteOpen 1.6s cubic-bezier(.6,.05,.2,1) forwards;
}
@keyframes vignetteOpen {
  0%   { clip-path: circle(0% at 50% 50%); opacity: 1; }
  60%  { opacity: 0.85; }
  100% { clip-path: circle(150% at 50% 50%); opacity: 0; }
}
.cinema-vignette.is-done { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.4rem; }
  .apropos-grid { grid-template-columns: 1fr; gap: 3rem; }
  .soirees-grid { grid-template-columns: 1fr; }
  .infos-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sponsors-grid { gap: 2rem 2.5rem; }

  /* Carousel: 2 images on tablet */
  .carousel-slide {
    min-width: calc((100% - 1.5rem) / 2);
    width: calc((100% - 1.5rem) / 2);
  }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: 3.2rem; }
  /* Sponsors: horizontal swipe slider on mobile */
  .sponsors-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.5rem 0.5rem;
    margin: 0 -1.5rem;
    gap: 2.5rem;
    scrollbar-width: none;
  }
  .sponsors-grid::-webkit-scrollbar { display: none; }
  .sponsor-logo {
    scroll-snap-align: center;
    height: 84px;
    width: 156px;
    padding: 0.75rem 1rem;
  }

  /* Soirée cards become a horizontal swipe slider */
  .soirees-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    background: transparent;
    border: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 1.5rem;
    padding: 0 1.5rem 1rem;
    margin: 0 -1.5rem;
    scrollbar-width: none; /* Firefox */
  }
  .soirees-grid::-webkit-scrollbar { display: none; } /* WebKit */
  .soirees-grid > .soiree-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
  }
  /* Dots: visual hint that the section is swipeable */
  .soirees-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
  }
  .soirees-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .soirees-dots button.is-active {
    background: var(--gold);
    transform: scale(1.4);
  }

  /* Gallery carousel: peek mode on mobile — center slide larger, neighbours bleed in */
  .carousel {
    padding: 0 9vw;
    overflow: visible;
  }
  .carousel-track {
    gap: 0.6rem;
  }
  .carousel-slide {
    min-width: 82vw;
    width: 82vw;
    aspect-ratio: 1 / 1;
  }
  /* Hide arrow buttons on mobile — swipe handles navigation */
  .carousel-btn {
    display: none;
  }
  /* Keep #gallery from horizontally overflowing the page when slides peek */
  #gallery {
    overflow-x: hidden;
  }
}
@media (min-width: 601px) {
  .soirees-dots { display: none; }
}
