/* ============================================
   PAGE "ÉVÉNEMENTS" — LINSY-CITY-RP
   À inclure APRÈS style.css
   ============================================ */

.ev-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  margin: 1.5rem 0 2rem;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.1), rgba(255, 43, 214, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.ev-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.ev-hero h1 { margin-bottom: 0.6rem; }
.ev-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }

/* ── Onglets ── */
.ev-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ev-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: 600 0.9rem 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.ev-tab:hover { border-color: var(--secondary); }
.ev-tab.active {
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.35), rgba(255, 43, 214, 0.3));
  border-color: var(--primary);
}
.ev-tab .count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  text-align: center;
}
.ev-dot-live {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ff3b57;
  box-shadow: 0 0 0 0 rgba(255, 59, 87, 0.7);
  animation: ev-pulse 1.6s infinite;
}
@keyframes ev-pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 87, 0); }
}

/* ── Grille de cartes ── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.ev-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ev-card:hover, .ev-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(155, 92, 255, 0.25);
  outline: none;
}
.ev-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(155, 92, 255, 0.35), rgba(255, 43, 214, 0.25));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.ev-card:hover .ev-cover img { transform: scale(1.05); }
.ev-card.past .ev-cover img { filter: grayscale(0.6) brightness(0.8); }

.ev-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 700 0.72rem 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
}
.ev-badge.live     { background: rgba(255, 59, 87, 0.9); }
.ev-badge.upcoming { background: rgba(155, 92, 255, 0.9); }
.ev-badge.past     { background: rgba(80, 80, 95, 0.9); }

.ev-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.2rem; flex: 1; }
.ev-cat {
  align-self: flex-start;
  font-size: 0.72rem; font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ev-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.ev-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.ev-meta i { width: 16px; color: var(--primary); margin-right: 4px; }
.ev-summary {
  color: var(--text); font-size: 0.9rem; line-height: 1.6; opacity: 0.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-foot {
  margin-top: auto; padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
}
.ev-countdown { font-weight: 700; color: var(--primary); }
.ev-card.past .ev-countdown { color: var(--muted); font-weight: 600; }
.ev-more { color: var(--muted); }
.ev-card:hover .ev-more { color: var(--text); }

.ev-empty { text-align: center; color: var(--muted); padding: 3.5rem 1rem; grid-column: 1 / -1; }
.ev-empty i { display: block; font-size: 2.4rem; margin-bottom: 1rem; color: var(--primary); opacity: 0.6; }

/* ── Fenêtre de détails ── */
.ev-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
  background: rgba(5, 0, 12, 0.82);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.ev-modal.open { display: flex; }
.ev-dialog {
  position: relative;
  width: 100%; max-width: 820px;
  background: #140826;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: ev-in 0.25s ease;
}
@keyframes ev-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ev-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 1.1rem; cursor: pointer;
}
.ev-close:hover { background: var(--primary); }
.ev-dialog .ev-cover { aspect-ratio: 21 / 9; font-size: 3.4rem; }
.ev-dialog-body { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.ev-dialog-body h2 { margin: 0; font-size: 1.7rem; line-height: 1.25; }
.ev-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.ev-info {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.9rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem; line-height: 1.5;
}
.ev-info > i { color: var(--primary); margin-top: 3px; }
.ev-info small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ev-desc { line-height: 1.8; color: var(--text); }
.ev-desc a { color: var(--primary); text-decoration: underline; }
.ev-desc strong { color: #fff; }
.ev-dialog h4 { margin: 0 0 0.7rem; font-size: 1rem; }
.ev-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.ev-gallery button {
  padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  overflow: hidden; background: none; cursor: zoom-in; aspect-ratio: 4 / 3;
}
.ev-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.ev-gallery button:hover img { transform: scale(1.08); }

/* ── Visionneuse ── */
.ev-lightbox {
  position: fixed; inset: 0; z-index: 3100;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.93);
}
.ev-lightbox.open { display: flex; }
.ev-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.ev-lightbox button {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 1.1rem; cursor: pointer;
}
.ev-lightbox button:hover { background: var(--primary); }
.ev-lb-close { top: 16px; right: 16px; }
.ev-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ev-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.ev-lb-count { position: absolute; bottom: 16px; color: var(--muted); font-size: 0.85rem; }

body.ev-lock { overflow: hidden; }

@media (max-width: 600px) {
  .ev-hero { padding: 2rem 1rem; }
  .ev-tab { padding: 9px 14px; font-size: 0.82rem; }
  .ev-grid { grid-template-columns: 1fr; }
  .ev-modal { padding: 0; }
  .ev-dialog { border-radius: 0; min-height: 100vh; }
  .ev-dialog-body { padding: 1.2rem; }
  .ev-dialog-body h2 { font-size: 1.4rem; }
  .ev-lb-prev { left: 6px; } .ev-lb-next { right: 6px; }
}
