/* Sponso'ring : page Événements et fiche d'un événement */

/* ---------- Liste des événements ---------- */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.ev-chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-soft);
  font: 600 16px var(--font-narrow);
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}
.ev-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.events > li { display: flex; }
.events > li[hidden] { display: none; }

.ev-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s;
}
a.ev-card:hover { color: var(--text); border-color: var(--red); transform: translateY(-4px); }
.ev-card__media { height: 200px; position: relative; background: #000; }
.ev-card__date {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 14px;
  min-width: 60px;
  padding: 8px 10px 6px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  text-align: center;
  line-height: 1;
}
.ev-card__day { display: block; font-size: 36px; }
.ev-card__month { display: block; font-size: 15px; margin-top: 2px; }
.ev-card__tag { position: absolute; z-index: 1; right: 14px; top: 14px; }
.ev-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-card__title { font-size: 30px; }
.ev-card__meta { font-size: 16px; color: var(--text-2); }
.ev-card__who { font-size: 16px; color: var(--text-soft); }
.ev-card__who b { color: var(--red); }
.ev-card__money { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-soft); }
.ev-card__money b { color: var(--text); }

.ev-card--empty { border-style: dashed; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px 24px; min-height: 360px; }
.ev-card__plus {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 40px;
  line-height: 1;
}
.ev-card--empty p { color: var(--text-2); font-size: 16px; max-width: 280px; }

.ev-empty-filter { color: var(--text-2); font-size: 16px; padding: 24px 0; }
.ev-empty-filter[hidden] { display: none; }

.ev-how { margin-top: 56px; }
.ev-how .section-title { margin-bottom: 20px; }

/* ---------- Fiche d'un événement ---------- */
.ev-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.ev-hero .cover { opacity: .55; transform: scale(1.06); animation: ev-zoom 8s var(--ease-out) forwards; }
@keyframes ev-zoom { to { transform: scale(1); } }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgba(11, 11, 12, .2) 60%, rgba(11, 11, 12, .45)); }
.ev-hero__in { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 24px; }
.ev-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ev-hero__title { font-size: clamp(56px, 11vw, 120px); line-height: .86; }
.ev-hero__when { font-size: 20px; color: var(--text-soft); margin-top: 14px; }
.ev-hero__when b { color: var(--text); }

.countdown { display: flex; gap: 8px; }
.countdown > div { min-width: 72px; padding: 10px 8px 8px; text-align: center; border-radius: 10px; border: 1px solid var(--border); background: rgba(11, 11, 12, .75); }
.countdown b { display: block; font-size: 40px; line-height: 1; }
.countdown span { font-size: 14px; color: var(--text-2); }

.ev-layout { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 72px; }
.ev-block { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.ev-block > .d { font-size: 30px; margin-bottom: 16px; }
.ev-block > p { color: var(--text-body); font-size: 16px; line-height: 1.55; margin-bottom: 14px; }

/* Affiche du combat */
.bout { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.bout__photo { width: 104px; height: 104px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; position: relative; border: 3px solid var(--red); background: #1A1A1F; }
.bout__corner--blue .bout__photo { border-color: #2F6FEB; display: grid; place-items: center; font-size: 48px; color: var(--text-2); }
.bout__name { font-size: 26px; }
.bout__nick { font-size: 15px; color: var(--red); margin-top: 4px; }
.bout__corner--blue .bout__nick { color: var(--text-2); }
.bout__vs { font-size: 40px; font-style: italic; position: relative; padding: 0 4px; }
.bout__vs::before, .bout__vs::after { content: ""; position: absolute; top: 50%; width: 28px; height: 3px; background: var(--red); right: 100%; }
.bout__vs::after { left: 100%; right: auto; background: #2F6FEB; }
.bout__rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.bout__rules li { padding: 5px 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 16px; color: var(--text-soft); }

.uses li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text-body); }
.uses li:last-child { border-bottom: 0; }
.uses b { color: var(--text); font-size: 20px; white-space: nowrap; }

.packs { display: grid; gap: 10px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; transition: border-color .25s; }
.pack:hover { border-color: var(--gold); }
.pack__name { font-size: 22px; }
.pack__what { font-size: 16px; color: var(--text-2); margin-top: 4px; }
.pack__price { font-size: 28px; color: var(--gold); white-space: nowrap; }

.ev-support .ev-support__amount { font-size: 56px; color: var(--text); margin: 0; }
.ev-support .ev-support__of { color: var(--text-2); font-size: 16px; margin: 6px 0 14px; }
.ev-support .progress { height: 12px; border-radius: 6px; margin-bottom: 10px; }
.ev-support .ev-support__stats { display: flex; justify-content: space-between; font-size: 16px; color: var(--text-2); margin-bottom: 20px; }
.ev-support__stats b { color: var(--text); }
.ev-support__ctas { display: grid; gap: 10px; }
.ev-support__ctas .btn { width: 100%; height: 52px; }
.ev-support .ev-support__note { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.5; }

@media (min-width: 768px) {
  .ev-hero__in { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 40px; }
  .bout__photo { width: 128px; height: 128px; }
  .bout__name { font-size: 30px; }
  .bout__vs { font-size: 48px; padding: 0 10px; }
  .bout__vs::before, .bout__vs::after { width: 40px; }
}

@media (min-width: 1024px) {
  .ev-layout { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; gap: 24px; }
  .ev-layout__main { display: grid; gap: 20px; }
  .ev-support { position: sticky; top: 24px; }
}

@media (max-width: 1023.98px) {
  .ev-layout__main { display: grid; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-hero .cover { animation: none; transform: none; }
  a.ev-card:hover { transform: none; }
}
