/* ═══ Événements — page vitrine des créations custom ══════════════════════
   Même recette que /banque et /nwoe : fond fixe assombri, voiles alternés,
   Rajdhani scopé, cartes et tableaux bordés or. La bannière /images/events.jpg
   est optionnelle : sans elle, les dégradés et la couleur de fond suffisent.
   Les classes .bk-fig* sont reprises telles quelles : le partial shot.ejs les
   utilise, et il est partagé avec la page Banque. */

html { background: var(--bg); }
body.page-events { background: transparent; }
.page-bg-fixed {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh; z-index: -1;
  background-image: url('/images/events.jpg');
  background-size: cover; background-position: center 30%;
  filter: blur(1px) saturate(1.06) contrast(1.02) brightness(0.58);
  pointer-events: none;
}

.ev-page {
  padding-top: 64px;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  --ink: #eef1f7; --sub: #b3bccb; --faint: #8a94a6;
  --ok: #6fbf73; --mid: #d8a13a; --bad: #d4574e;
}
.ev-page p { line-height: 1.6; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.ev-hero {
  position: relative;
  padding: 120px 0 74px;
  background:
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(4,6,12,0.96) 100%),
    linear-gradient(90deg, rgba(4,6,12,0.90) 0%, rgba(4,6,12,0.70) 32%, rgba(4,6,12,0.30) 62%, rgba(4,6,12,0.08) 88%),
    radial-gradient(120% 80% at 82% 12%, rgba(201,147,58,0.18), transparent 55%),
    url('/images/events.jpg') center 30% / cover no-repeat,
    #0a0d14;
  overflow: hidden; text-align: left;
  border-bottom: 1px solid var(--border);
}
.ev-hero .container { position: relative; z-index: 1; }
.ev-kicker {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; color: rgba(201,147,58,0.85);
}
.ev-title {
  font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; color: #fff;
  margin-top: 8px; letter-spacing: 0.01em; line-height: 1.03;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55);
}
.ev-sub {
  font-size: 18px; color: var(--sub); font-weight: 500;
  margin-top: 16px; max-width: 680px; line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Sections — voiles alternés ─────────────────────────────────────── */
.ev-section { position: relative; padding: 62px 0; }
.ev-section--dark {
  background: linear-gradient(180deg, rgba(4,6,12,0.93) 0%, rgba(4,6,12,0.90) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ev-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: rgba(201,147,58,0.8); margin-bottom: 6px;
}
.ev-h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: #fff;
  letter-spacing: 0.01em;
}
.ev-h2 svg { width: 30px; height: 30px; color: rgba(201,147,58,0.9); flex: none; }
.ev-h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ev-lead { font-size: 16.5px; color: var(--sub); margin-top: 12px; max-width: 760px; }
.ev-note { font-size: 13.5px; color: var(--faint); margin-top: 10px; font-style: italic; }

/* ── Cartes de sommaire ─────────────────────────────────────────────── */
.ev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ev-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: 14px; text-decoration: none;
  border: 1px solid rgba(201,147,58,0.22);
  background: linear-gradient(160deg, rgba(24,28,38,0.75), rgba(14,17,24,0.75));
  transition: border-color .18s ease, transform .18s ease;
}
a.ev-card:hover { border-color: rgba(201,147,58,0.55); transform: translateY(-2px); }
.ev-card--soon { opacity: 0.62; border-style: dashed; }
.ev-card-ico { flex: none; }
.ev-card-ico svg { width: 30px; height: 30px; color: rgba(201,147,58,0.9); }
.ev-card-body { display: flex; flex-direction: column; gap: 5px; }
.ev-card-name { font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.ev-card-desc { font-size: 14.5px; color: var(--sub); line-height: 1.5; }
.ev-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 3px 8px; border-radius: 999px;
}
.ev-tag--live { color: #7fd18a; background: rgba(111,191,115,0.14); border: 1px solid rgba(111,191,115,0.35); }

/* ── Bloc règle ─────────────────────────────────────────────────────── */
.ev-rule {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 28px; padding: 22px; border-radius: 14px;
  border: 1px solid rgba(212,87,78,0.3);
  background: linear-gradient(160deg, rgba(40,20,20,0.5), rgba(14,17,24,0.7));
}
.ev-rule-ico { flex: none; }
.ev-rule-ico svg { width: 34px; height: 34px; color: rgba(212,87,78,0.85); }
.ev-rule p { color: var(--sub); margin-top: 6px; }
.ev-warn { color: #e08a83; font-weight: 600; }

/* ── Tableaux ───────────────────────────────────────────────────────── */
.ev-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.ev-table th {
  text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--faint);
  padding: 8px 12px; border-bottom: 1px solid var(--border);
}
.ev-table td {
  padding: 9px 12px; font-size: 15.5px; color: var(--sub);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ev-strong { color: var(--ink); font-weight: 700; }
.ev-row-gold td { color: #f0c874; font-weight: 700; background: rgba(201,147,58,0.08); }
.ev-c-ok { color: var(--ok); }
.ev-c-mid { color: var(--mid); }
.ev-c-bad { color: var(--bad); }

/* ── Mise en page à deux colonnes ───────────────────────────────────── */
.ev-split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.ev-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }

/* ── Illustrations (classes partagées avec shot.ejs) ────────────────── */
.bk-fig { margin: 24px 0 0; }
.bk-fig img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  border: 1px solid rgba(201,147,58,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.bk-fig-cap {
  font-size: 13.5px; font-weight: 500; color: var(--faint);
  margin-top: 9px; text-align: center; font-style: italic;
}
.bk-fig-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; border-radius: 14px;
  border: 1px dashed rgba(201,147,58,0.30);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 12px, transparent 12px 24px), rgba(17,20,28,0.45);
}
.bk-fig-ph-txt {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: rgba(201,147,58,0.75);
}
.bk-fig-ph-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--faint);
  background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ev-split, .ev-figs { grid-template-columns: 1fr; }
  .ev-hero { padding: 96px 0 56px; }
  .ev-section { padding: 46px 0; }
}

/* ── Les cases de la roulette ───────────────────────────────────────── */
.ev-h3--spaced { margin-top: 40px; }
.ev-note--lead { margin-bottom: 18px; font-style: normal; color: var(--sub); font-size: 15px; }
.ev-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ev-case-col {
  border-radius: 14px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(160deg, rgba(24,28,38,0.6), rgba(14,17,24,0.6));
}
.ev-case-col--ok  { border-color: rgba(111,191,115,0.28); }
.ev-case-col--mid { border-color: rgba(216,161,58,0.28); }
.ev-case-col--bad { border-color: rgba(212,87,78,0.30); }
.ev-case-head {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ev-case-list { list-style: none; margin: 0; padding: 0; }
.ev-case-list li {
  font-size: 15px; color: var(--sub); padding: 5px 0 5px 16px; position: relative;
}
.ev-case-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45;
}

/* ── Formule de prix ────────────────────────────────────────────────── */
.ev-formule {
  display: inline-block; margin-top: 16px; padding: 10px 16px;
  border-radius: 10px; border: 1px solid rgba(201,147,58,0.3);
  background: rgba(201,147,58,0.08);
  font-size: 16px; font-weight: 600; color: #f0c874;
}

@media (max-width: 900px) {
  .ev-cases { grid-template-columns: 1fr; }
}

/* ── Classement du Battle Square ────────────────────────────────────── */
.ev-podium {
  /* flex plutot que grid : avec un ou deux classes seulement, le podium reste
     centre au lieu de se coller a gauche dans une grille a trois colonnes. */
  display: flex; justify-content: center; align-items: flex-end;
  gap: 16px; margin-top: 26px; flex-wrap: wrap;
}
.ev-pod { flex: 1 1 220px; max-width: 340px; }
.ev-pod {
  position: relative; text-align: center;
  padding: 26px 16px 20px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(170deg, rgba(26,30,41,0.85), rgba(13,16,23,0.9));
}
/* Podium réel sur écran large : le vainqueur au milieu et surélevé. */
.ev-pod--gold   { order: 2; border-color: rgba(240,200,116,0.45); padding-top: 34px; padding-bottom: 28px; }
.ev-pod--silver { order: 1; border-color: rgba(207,214,224,0.30); }
.ev-pod--bronze { order: 3; border-color: rgba(201,143,90,0.32); }
.ev-pod--gold::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(240,200,116,0.16), transparent 62%);
}
.ev-pod-rank {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; line-height: 28px; border-radius: 50%;
  font-size: 15px; font-weight: 700; color: #0b0e15;
  border: 1px solid rgba(0,0,0,0.3);
}
.ev-pod--gold   .ev-pod-rank { background: linear-gradient(160deg, #f6d98a, #d9a441); }
.ev-pod--silver .ev-pod-rank { background: linear-gradient(160deg, #e8edf4, #b3bcca); }
.ev-pod--bronze .ev-pod-rank { background: linear-gradient(160deg, #e0a877, #b57641); }
.ev-pod-head { height: 56px; display: flex; align-items: flex-end; justify-content: center; }
.ev-pod-head img { image-rendering: pixelated; transform: scale(1.35); transform-origin: bottom center; }
.ev-pod--gold .ev-pod-head { height: 66px; }
.ev-pod--gold .ev-pod-head img { transform: scale(1.7); }
.ev-pod-name { margin-top: 14px; font-size: 18px; font-weight: 700; color: var(--ink); }
.ev-pod--gold .ev-pod-name { font-size: 21px; color: #f6d98a; }
.ev-pod-job { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.ev-pod-wave { margin-top: 12px; font-size: 14px; color: var(--sub); text-transform: uppercase; letter-spacing: 0.08em; }
.ev-pod-wave strong { font-size: 26px; color: #fff; margin-left: 6px; }
.ev-pod--gold .ev-pod-wave strong { font-size: 32px; color: #f6d98a; }
.ev-pod-times { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

.ev-table--rank { margin-top: 26px; }
.ev-rank-num { color: var(--faint); font-weight: 700; width: 44px; }
.ev-rank-who { display: flex; align-items: center; gap: 12px; }
.ev-rank-head { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; flex: none; }
.ev-rank-who small { display: block; font-size: 12px; color: var(--faint); }

.ev-empty {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  padding: 22px; border-radius: 14px;
  border: 1px dashed rgba(201,147,58,0.28); background: rgba(17,20,28,0.45);
}
.ev-empty-ico svg { width: 30px; height: 30px; color: rgba(201,147,58,0.7); }
.ev-empty p { color: var(--sub); }

@media (max-width: 900px) {
  .ev-podium { flex-direction: column; }
  .ev-pod { max-width: none; }
  .ev-pod--gold, .ev-pod--silver, .ev-pod--bronze { order: 0; }
}
