/* ============================================================
   MAGIK-ART — Feuille de style principale
   Design : Élégance dorée, spectacle vivant, raffinement scénique
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Cinzel:wght@400;500;600&family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #09080a;
  --bg2:         #0d0c0f;
  --surface:     #120f14;
  --surface2:    #1a1620;
  --border:      rgba(200,165,80,0.12);
  --border2:     rgba(200,165,80,0.22);
  --text:        #f0ebe0;
  --text2:       #a09080;
  --muted:       #60504a;

  --gold:        #C8A550;
  --gold-light:  #E8C878;
  --gold-pale:   #F5E5B8;
  --gold-dark:   #8B6E2A;
  --gold-dim:    rgba(200,165,80,0.10);
  --gold-glow:   rgba(200,165,80,0.30);

  --crimson:     #8B1A1A;
  --crimson-dim: rgba(139,26,26,0.15);
  --velvet:      #3D1F3D;
  --ivory:       #F8F0DC;
  --ebony:       #1A1410;

  --font-display:'Cinzel', serif;
  --font-serif:  'Cormorant Garamond', serif;
  --font-body:   'Lato', sans-serif;

  --radius:      6px;
  --radius-lg:   12px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-glow:  0 0 60px rgba(200,165,80,0.12);
  --shadow-card:  0 12px 48px rgba(0,0,0,0.7);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(200,165,80,0.012) 60px, rgba(200,165,80,0.012) 61px);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.12em; line-height: 1.2; font-weight: 400; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after { content: '◆'; font-size: 6px; opacity: 0.6; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--text);
  letter-spacing: 0.1em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.section-title span { color: var(--gold); font-style: italic; font-family: var(--font-serif); font-weight: 300; }

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-sm { padding: 65px 0; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  color: var(--ebony);
  font-weight: 700;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 24px rgba(200,165,80,0.22), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid var(--gold-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(200,165,80,0.38); filter: brightness(1.08); }

.btn-outline {
  border: 1px solid rgba(200,165,80,0.35);
  color: var(--gold-light);
  background: transparent;
  letter-spacing: 0.2em;
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-pale); }

.btn-ghost { color: var(--text2); letter-spacing: 0.15em; }
.btn-ghost:hover { color: var(--gold); }

.btn-lg { padding: 18px 44px; font-size: 13px; letter-spacing: 0.22em; }
.btn-sm { padding: 10px 22px; font-size: 11px; }

/* ── Header / Nav ────────────────────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 24px 0;
  transition: var(--transition);
}
#header.scrolled {
  background: rgba(9,8,10,0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

.nav-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-logo-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--surface2), var(--bg));
  box-shadow: inset 0 1px 0 rgba(200,165,80,0.1), 0 0 20px rgba(200,165,80,0.06);
}

.nav-logo-text { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.22em; color: var(--text); line-height: 1; }
.nav-logo-sub { font-size: 9px; color: var(--gold); letter-spacing: 0.25em; text-transform: uppercase; margin-top: 3px; opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text2); transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 18px; right: 18px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--transition); transform-origin: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 2px;
  background: transparent; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: var(--transition); font-size: 18px;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ebony); font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: none;
  align-items: center; justify-content: center;
}
.cart-count.visible { display: flex; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 2px; background: transparent; border: 1px solid var(--border);
}
.hamburger span { width: 20px; height: 1px; background: var(--text); transition: var(--transition); display: block; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 130px 0 90px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 65% 45%, rgba(200,165,80,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 8% 70%, rgba(139,26,26,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 10%, rgba(61,31,61,0.15) 0%, transparent 50%);
}

.hero-bg-image {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/713149/pexels-photo-713149.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover; background-position: center 30%;
  opacity: 0.1; filter: sepia(70%) contrast(1.2);
}

.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(9,8,10,0.2) 50%, var(--bg) 100%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(200,165,80,0.25); border-radius: 1px;
  padding: 7px 18px; font-size: 10px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease both;
  background: rgba(200,165,80,0.04);
}
.hero-badge::before { content: '◆'; font-size: 7px; opacity: 0.7; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95; letter-spacing: 0.08em;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.1s ease both;
  color: var(--text);
}
.hero-title .line2 {
  display: block;
  font-family: var(--font-serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--gold-light); letter-spacing: 0.04em; margin-top: 8px;
}

.hero-ornament {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0;
  animation: fadeUp 0.9s 0.18s ease both;
}
.hero-ornament::before { content: ''; height: 1px; width: 100px; background: linear-gradient(90deg, transparent, var(--gold)); opacity: 0.35; }
.hero-ornament::after  { content: ''; height: 1px; width: 100px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.35; }
.hero-ornament-diamond { color: var(--gold); font-size: 10px; }

.hero-subtitle {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text2); font-style: italic; line-height: 1.7;
  margin-bottom: 16px; animation: fadeUp 0.9s 0.22s ease both;
}

.hero-desc {
  font-size: 15px; font-weight: 300; color: var(--text2);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.8;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  animation: fadeUp 0.9s 0.4s ease both;
}

.hero-visual {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 42%; height: 75vh;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.hero-stage { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }

.hero-curtain-left, .hero-curtain-right { position: absolute; top: 0; width: 30%; height: 100%; opacity: 0.5; }
.hero-curtain-left  { left: 0;  background: linear-gradient(to right, rgba(80,10,30,0.7), transparent); transform-origin: top left; transform: perspective(400px) rotateY(12deg); }
.hero-curtain-right { right: 0; background: linear-gradient(to left,  rgba(80,10,30,0.7), transparent); transform-origin: top right; transform: perspective(400px) rotateY(-12deg); }

.hero-spotlight-beam {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 115%;
  background: linear-gradient(to bottom, rgba(200,165,80,0.45), transparent);
  filter: blur(5px);
}

.hero-stats {
  display: flex; justify-content: center; gap: 64px;
  margin-top: 60px; padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.9s 0.5s ease both;
}
.hero-stat-num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: var(--gold-light); line-height: 1; letter-spacing: 0.02em; }
.hero-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; margin-top: 6px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Événements (cards) ───────────────────────────────────────── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7), 0 0 40px rgba(200,165,80,0.07);
  border-color: rgba(200,165,80,0.28);
}

.event-card-img { position: relative; height: 230px; overflow: hidden; background: var(--surface2); }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: sepia(20%) contrast(1.05); }
.event-card:hover .event-card-img img { transform: scale(1.06); }
.event-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(9,8,10,0.9) 100%); }

.event-card-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--ebony) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; opacity: 0.3;
}

.event-card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ebony); font-size: 9px; font-weight: 700;
  padding: 5px 12px; border-radius: 1px; letter-spacing: 0.18em; text-transform: uppercase;
}

.event-card-sold-out {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--gold); letter-spacing: 0.2em;
}

.event-card-body { padding: 26px; }
.event-card-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.event-card-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); font-weight: 400; letter-spacing: 0.05em; }
.event-card-lieu { font-size: 11px; color: var(--text2); letter-spacing: 0.05em; }
.event-card-title { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.1em; margin-bottom: 10px; line-height: 1.25; color: var(--text); }
.event-card-desc { font-family: var(--font-serif); font-size: 15px; font-style: italic; color: var(--text2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.event-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.event-card-prix { font-size: 13px; color: var(--text2); }
.event-card-prix strong { font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--gold-light); display: block; letter-spacing: 0.02em; }
.event-card-prix span { font-size: 11px; }
.event-card-places { font-size: 11px; color: var(--text2); text-align: right; letter-spacing: 0.05em; }

.places-bar { width: 80px; height: 2px; background: var(--border); border-radius: 1px; margin-top: 6px; overflow: hidden; }
.places-bar-fill { height: 100%; border-radius: 1px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }

/* ── Galerie preview ───────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--border);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: sepia(15%) contrast(1.05); }
.gallery-item:hover img { transform: scale(1.06); filter: sepia(0%) contrast(1.05); }
.gallery-item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%); opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 20px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; color: var(--gold-pale); }
.gallery-count-badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 1px; padding: 4px 10px; font-size: 11px; color: var(--gold); font-weight: 600; letter-spacing: 0.1em; }

/* ── Section CTA ─────────────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 90px 70px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(200,165,80,0.08); border-radius: 2px; pointer-events: none; }
.cta-section::after  { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(200,165,80,0.04) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 16px; letter-spacing: 0.12em; }
.cta-section p { font-family: var(--font-serif); font-style: italic; color: var(--text2); font-size: 17px; margin-bottom: 40px; }

/* ── Formulaire contact ──────────────────────────────────────── */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info-item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
.contact-info-icon { width: 46px; height: 46px; background: var(--gold-dim); border: 1px solid var(--border2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--gold); }
.contact-info-label { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.2em; }
.contact-info-value { font-weight: 400; margin-top: 3px; font-size: 15px; }

/* ── Formulaires ─────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 10px; font-weight: 700; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.25em; text-transform: uppercase; }
.form-control { width: 100%; padding: 14px 18px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 15px; font-weight: 300; transition: var(--transition); outline: none; }
.form-control:focus { border-color: rgba(200,165,80,0.45); box-shadow: 0 0 0 3px rgba(200,165,80,0.06); background: var(--surface); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 150px; font-family: var(--font-serif); font-style: italic; font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ── Billetterie ─────────────────────────────────────────────── */
.ticket-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; }
.ticket-form::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(200,165,80,0.05); border-radius: calc(var(--radius-lg) - 4px); pointer-events: none; }
.ticket-type { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--border); }
.ticket-type:last-of-type { border-bottom: none; }
.ticket-type-info h4 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.12em; }
.ticket-type-info span { font-size: 12px; color: var(--text2); }
.ticket-prix { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; color: var(--gold-light); letter-spacing: 0.02em; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 38px; height: 38px; background: var(--surface2); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); cursor: pointer; border: none; }
.qty-btn:hover { background: var(--gold-dim); color: var(--gold); }
.qty-value { width: 44px; text-align: center; font-size: 15px; font-weight: 400; border: none; background: transparent; color: var(--text); pointer-events: none; }
.ticket-total-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid var(--border2); margin-top: 10px; }
.ticket-total-label { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.12em; color: var(--text2); }
.ticket-total-amount { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 300; color: var(--gold-light); }

.reduc-input-row { display: flex; gap: 10px; margin-bottom: 22px; }
.reduc-input-row .form-control { flex: 1; }
.reduc-success { display: flex; align-items: center; gap: 8px; color: #7dcf9a; font-size: 13px; margin-bottom: 10px; }

/* ── Panier sidebar ───────────────────────────────────────────── */
.cart-sidebar { position: fixed; top: 0; right: -440px; width: 440px; height: 100vh; background: var(--surface); border-left: 1px solid var(--border); z-index: 2000; transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -20px 0 80px rgba(0,0,0,0.6); }
.cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar-header { padding: 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-close { width: 34px; height: 34px; border-radius: var(--radius); background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text2); cursor: pointer; transition: var(--transition); }
.cart-close:hover { color: var(--gold); border-color: var(--border2); }
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 26px; }
.cart-sidebar-footer { padding: 26px; border-top: 1px solid var(--border); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text2); }
.cart-empty-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.3; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0 36px; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 52px; }
.footer-brand .footer-logo-text { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.18em; }
.footer-brand p { font-family: var(--font-serif); font-style: italic; color: var(--text2); font-size: 15px; line-height: 1.7; margin-top: 14px; max-width: 270px; }
.footer-social { display: flex; gap: 10px; margin-top: 26px; }
.social-link { width: 38px; height: 38px; border-radius: 2px; background: transparent; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text2); transition: var(--transition); font-size: 15px; }
.social-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.footer-col h5 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 22px; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text2); font-size: 14px; font-weight: 300; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p { color: var(--muted); font-size: 12px; letter-spacing: 0.05em; }
.footer-bottom a { color: var(--text2); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 400px; box-shadow: var(--shadow-card); animation: slideIn 0.35s ease; border-left: 2px solid var(--gold); }
.toast.success { border-left-color: #7dcf9a; }
.toast.error   { border-left-color: #d97878; }
.toast.warning { border-left-color: var(--gold); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Loader ───────────────────────────────────────────────────── */
.page-loader { position: fixed; inset: 0; background: var(--bg); z-index: 99999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; transition: opacity 0.6s ease, visibility 0.6s ease; }
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--font-display); font-size: 2.8rem; letter-spacing: 0.35em; color: var(--text); animation: loaderFade 2s ease infinite; }
.loader-logo span { color: var(--gold); }
.loader-line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: loaderExpand 2s ease infinite; }
@keyframes loaderFade { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes loaderExpand { 0%, 100% { width: 40px; opacity: 0.4; } 50% { width: 80px; opacity: 1; } }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.97); z-index: 5000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--border); }
.lightbox-close { position: absolute; top: 24px; right: 24px; width: 46px; height: 46px; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; font-size: 18px; transition: var(--transition); }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; font-size: 20px; transition: var(--transition); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold); color: var(--gold); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 4px 10px; border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.badge-success { background: rgba(125,207,154,0.12); color: #7dcf9a; }
.badge-danger  { background: rgba(217,120,120,0.12); color: #d97878; }
.badge-warning { background: var(--gold-dim); color: var(--gold-light); }
.badge-primary { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border); }
.badge-violet  { background: rgba(61,31,61,0.3); color: #b78ec0; }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); margin-bottom: 26px; letter-spacing: 0.08em; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--muted); font-size: 10px; }

/* ── Page hero (sous-pages) ──────────────────────────────────── */
.page-hero { padding: 150px 0 90px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(200,165,80,0.04) 0%, transparent 60%); }
.page-hero-content { position: relative; z-index: 1; }

/* ── Responsive ───────────────────────────────────────────────── */

/* ── Tablette paysage / petit bureau ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > *:last-child { grid-column: 1 / -1; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .event-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  /* Sous-page : grille 2 colonnes → 1 */
  .page-hero [style*="grid-template-columns:1fr 420px"] { grid-template-columns: 1fr !important; }
}

/* ── Tablette portrait / mobile landscape ── */
@media (max-width: 768px) {
  /* Qui sommes-nous */
  .about-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .valeurs-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Billetterie : grille détail+formulaire → 1 colonne */
  .event-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .event-layout > div:last-child { position: static !important; }

  /* Panier */
  .panier-layout { grid-template-columns: 1fr !important; gap: 24px !important; }
  .panier-layout > div:last-child { position: static !important; }

  /* Panier : grille contenu+sidebar → 1 colonne */
  [style*="grid-template-columns:1fr 400px"] { grid-template-columns: 1fr !important; }

  /* Qui sommes nous */
  .contact-wrapper { grid-template-columns: 1fr !important; gap: 40px; }

  /* Nav */
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  /* Hero — déjà centré par défaut, on ajuste juste le padding */
  .hero { padding: 100px 0 60px; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
  .hero-stats {
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 32px;
    margin-top: 40px;
  }
  .hero-stat-num { font-size: 2rem; }
  .hero-visual { display: none; }

  /* Section titre */
  .section-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .section-eyebrow { justify-content: center; }

  /* Événements */
  .event-grid { grid-template-columns: 1fr; gap: 20px; }
  .event-card-footer { flex-wrap: wrap; gap: 12px; }

  /* Galerie */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Qui sommes-nous : 2 colonnes → 1 */
  [style*="grid-template-columns:1fr 1fr"][style*="align-items:center"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* CTA */
  .cta-section { padding: 48px 20px; text-align: center; }
  .cta-section h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  footer { padding: 56px 0 28px; }

  /* Formulaires */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Panier */
  .cart-sidebar { width: 100%; right: -100%; }

  /* Billetterie sous-page */
  .ticket-type { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ticket-type > div:last-child { width: 100%; justify-content: space-between; }

  /* Breadcrumb */
  .breadcrumb { flex-wrap: wrap; }

  /* Page hero sous-pages */
  .page-hero { padding: 110px 0 50px; }
}

/* ── Mobile portrait ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); letter-spacing: 0.06em; }
  .hero-title .line2 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .hero-badge { font-size: 9px; padding: 6px 14px; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.8rem; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }

  /* Nav */
  .nav-logo-text { font-size: 18px; }

  /* Valeurs */
  .valeurs-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* Galerie */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Events */
  .event-grid { grid-template-columns: 1fr; }
  .event-card-body { padding: 18px; }
  .event-card-title { font-size: 1.2rem; }

  /* Boutons */
  .btn { padding: 12px 22px; font-size: 11px; }
  .btn-lg { padding: 14px 28px; font-size: 12px; }

  /* Ticket form */
  .ticket-form { padding: 20px; }
  .quantity-control { margin-left: auto; }
  .qty-btn { width: 36px; height: 36px; }
  .qty-value { width: 40px; }

  /* Panier */
  .panier-layout { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-social { justify-content: center; }
  .footer-brand p { text-align: center; }
  .footer-brand .footer-logo-text { text-align: center; display: block; }
  .footer-links { display: flex; flex-direction: column; align-items: center; text-align: center; }

  /* CTA */
  .cta-section { padding: 36px 16px; }
  .cta-section > div { flex-direction: column; gap: 10px; }
  .cta-section > div .btn { width: 100%; max-width: 280px; }

  /* Lightbox */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  /* Toast */
  .toast { min-width: unset; width: calc(100vw - 32px); }
}

/* ── Très petit mobile (320px) ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 2rem; }
  .nav-logo-sub { display: none; }
}

/* ── Navigation mobile ────────────────────────────────────────── */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 999; display: flex; flex-direction: column; padding: 100px 28px 44px; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .nav-links { display: flex; flex-direction: column; gap: 0; }
.mobile-menu .nav-links a { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.15em; padding: 16px 0; color: var(--text2); border-bottom: 1px solid var(--border); }
.mobile-menu .nav-links a:hover { color: var(--gold); background: transparent; }

/* ── Animations au scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); 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.3s; }
