@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Barlow+Condensed:wght@500;700;900&display=swap');

/* ============================================================
   BASE
   ============================================================ */

body.page-evenements {
  background: #09090f;
  color: #e2e8f0;
}

body.page-evenements::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(187,62,253,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,253,233,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO
   ============================================================ */

.ev-hero {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

.ev-hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #25fde9;
  margin-bottom: 1rem;
}

.ev-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  color: #f8fafc;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.ev-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ev-hero-sub {
  font-size: 1rem;
  color: #64748b;
  max-width: 560px;
  line-height: 1.6;
}

.ev-stats-bar {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

.ev-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  display: block;
}

.ev-stat-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #475569;
  margin-top: 2px;
  display: block;
}

/* ============================================================
   NEXT EVENT HERO
   ============================================================ */

.ev-next {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto 0;
  padding: 0 2rem 1.5rem;
  display: none;
}

.ev-next.visible { display: block; }

.ev-next-inner {
  background: linear-gradient(135deg, rgba(187,62,253,0.18), rgba(37,253,233,0.1));
  border: 1px solid rgba(187,62,253,0.3);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ev-next-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #25fde9;
  margin-bottom: 6px;
}

.ev-next-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
}

.ev-next-loc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 4px;
}

.ev-next-badge {
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

/* ============================================================
   FILTRES
   ============================================================ */

.ev-filters {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ev-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.ev-filter-row:last-child { margin-bottom: 0; }

.ev-filter-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-right: 4px;
  white-space: nowrap;
}

.ev-filter-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #64748b;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.ev-filter-btn:hover {
  border-color: #bb3efd;
  color: #bb3efd;
  background: rgba(187,62,253,0.07);
}

.ev-filter-btn.active {
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   GRILLE EVENTS
   ============================================================ */

.ev-main {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

/* ============================================================
   CARD
   ============================================================ */

.ev-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.ev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #bb3efd, #25fde9);
  opacity: 0;
  transition: opacity 0.25s;
}

.ev-card:hover {
  border-color: rgba(187,62,253,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(187,62,253,0.15);
}

.ev-card:hover::before { opacity: 1; }

.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ev-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ev-badge.upcoming {
  background: rgba(0,184,148,0.12);
  color: #00b894;
  border: 1px solid rgba(0,184,148,0.25);
}

.ev-badge.past {
  background: rgba(100,116,139,0.12);
  color: #64748b;
  border: 1px solid rgba(100,116,139,0.2);
}

.ev-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ev-card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: #bb3efd;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.ev-card-loc {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
}

.ev-card-tagline {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.ev-countdown {
  display: inline-block;
  background: transparent;
  color: #25fde9;
  border: 1px solid rgba(37,253,233,0.3);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.ev-countdown.past-countdown {
  color: #64748b;
  border-color: rgba(100,116,139,0.2);
}

.ev-card-btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  color: #bb3efd;
  border: 1px solid rgba(187,62,253,0.4);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.ev-card-btn:hover {
  background: rgba(187,62,253,0.1);
  border-color: #bb3efd;
  transform: translateY(-1px);
}

/* ============================================================
   CTA BAS DE PAGE
   ============================================================ */

.ev-cta {
  background: linear-gradient(135deg, rgba(187,62,253,0.1), rgba(37,253,233,0.05));
  border: 1px solid rgba(187,62,253,0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.ev-cta h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.ev-cta p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.ev-cta-btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: linear-gradient(135deg, #bb3efd, #25fde9);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .ev-hero { padding: 2rem 1.25rem 1.5rem; }
  .ev-main  { padding: 1.5rem 1.25rem; }
  .ev-next  { padding: 0 1.25rem 1.25rem; }
  .ev-filters { padding: 1rem 1.25rem; }
  .ev-grid  { grid-template-columns: 1fr; gap: 16px; }
  .ev-stats-bar { gap: 1.5rem; }
  .ev-next-inner { flex-direction: column; align-items: flex-start; }
}
