/* =============================================
   ORCHESTRE — Custom CSS
   Variables, animations, utilities non-Tailwind
   ============================================= */

/* ─── Variables ─────────────────────────────── */
:root {
  --color-bg:        #0F0F0F;
  --color-surface:   #1A1A1A;
  --color-border:    #2A2A2A;
  --color-accent-1:  #7C3AED; /* violet */
  --color-accent-2:  #A855F7; /* purple neon */
  --color-accent-3:  #EC4899; /* rose */
  --color-text:      #FFFFFF;
  --color-text-muted:#9CA3AF;
  --radius-card:     12px;
  --transition-base: 250ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar        { width: 6px; }
::-webkit-scrollbar-track  { background: var(--color-bg); }
::-webkit-scrollbar-thumb  { background: var(--color-accent-1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-2); }

/* ─── Focus visible ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

/* ─── Animations ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

@keyframes pulseNeon {
  0%, 100% { box-shadow: 0 0 0px var(--color-accent-1); }
  50%       { box-shadow: 0 0 18px var(--color-accent-2), 0 0 36px var(--color-accent-3); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.animate-neon {
  animation: pulseNeon 2.5s ease-in-out infinite;
}

/* ─── Skeleton Loaders ──────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    #2a2a2a 50%,
    var(--color-surface) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-card);
}

.skeleton-card {
  height: 380px;
  border-radius: var(--radius-card);
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.full   { width: 100%; }

/* ─── Concert Card ──────────────────────────── */
.concert-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.concert-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25);
}

.concert-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.concert-card:hover .concert-card-img {
  transform: scale(1.05);
}

/* ─── Hero ──────────────────────────────────── */
.hero-section {
  position: relative;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.3) 0%,
    rgba(15, 15, 15, 0.6) 60%,
    rgba(15, 15, 15, 0.95) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 50%, #0a0005 100%);
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* ─── Gradient Text ─────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Buttons ───────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3));
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--color-accent-2);
}

/* ─── Badge catégorie ───────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.2);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ─── Filters bar ───────────────────────────── */
.filters-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.filter-select,
.filter-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: border-color var(--transition-base);
  width: 100%;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--color-accent-2);
}

.filter-select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* ─── Scroll reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Header ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

/* ─── Mobile menu ───────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

/* ─── Artist card ───────────────────────────── */
.artist-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
}

.artist-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.artist-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(168, 85, 247, 0.3);
}

/* ─── Venue card ────────────────────────────── */
.venue-card {
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

/* ─── Map placeholder ───────────────────────── */
.map-placeholder {
  width: 100%;
  height: 220px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(168, 85, 247, 0.05) 40px,
      rgba(168, 85, 247, 0.05) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(168, 85, 247, 0.05) 40px,
      rgba(168, 85, 247, 0.05) 41px
    ),
    var(--color-surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
}

/* ─── Divider ───────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 0;
}

/* ─── Logo ──────────────────────────────────── */
.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Reservation CTA ───────────────────────── */
.reservation-cta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 16px;
  padding: 2rem;
}

/* ─── No results ────────────────────────────── */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

.no-results svg {
  margin: 0 auto 1rem;
  opacity: 0.4;
}

/* ─── Utilities ─────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose-dark p   { color: var(--color-text-muted); line-height: 1.75; margin-bottom: 1rem; }
.prose-dark h2  { font-size: 1.375rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.prose-dark h3  { font-size: 1.125rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
