/* ============================================================
   Événements — index. Aligned on the home charter:
   Playfair Display (titles) · Inter (body) · blanc/gris · brique #B23A34.
   Light CSS parallax (fixed backdrop + scroll-driven reveals), no JS.
   ============================================================ */
.ev {
  --hd: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --brick: #B23A34;
  --ink: #1A1A1A;
  --ink-soft: #4a4a4a;
  --grey-soft: #F2F2F2;
  color: var(--ink);
  font-family: var(--hd);
  position: relative;   /* anchors the absolute over-nav */
}
.ev .wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---- Parallax hero ---- */
.ev-hero { position: relative; min-height: clamp(420px, 66vh, 680px); display: flex; align-items: flex-end; overflow: hidden; }
.ev-hero__bg {
  position: absolute; inset: 0;
  background: var(--img, none) center / cover no-repeat;
  background-attachment: fixed;   /* parallax */
  transform: scale(1.05);
}
.ev-hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.72) 100%); }
.ev-hero__inner { position: relative; width: 100%; padding-bottom: clamp(32px, 5vw, 64px); padding-top: clamp(72px, 8vw, 104px); color: #fff; }
.ev-hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin: 0 0 12px; }
.ev-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 88px); line-height: 1.02;
  letter-spacing: -.01em; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.ev-hero__lede { font-size: clamp(16px, 1.4vw, 20px); color: rgba(255,255,255,.9); margin: 16px 0 0; max-width: 46ch; }

/* ---- List ---- */
/* Top space breathes after the hero; the bottom gap to the (brick) footer is
   tighter since the footer carries its own top padding. */
.ev-list { padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px) clamp(36px, 4.5vw, 56px); }
.ev-empty { text-align: center; color: var(--ink-soft); font-size: 18px; padding: 40px 0; }

.ev-list__head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 clamp(28px, 3.6vw, 44px);
  padding-bottom: 20px; border-bottom: 1px solid #e7e7e7; }
.ev-list__title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 38px); line-height: 1; margin: 0; }
.ev-list__count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 999px; background: var(--brick); color: #fff; font-family: var(--hd); font-size: 14px; font-weight: 700; }

.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 34px); }
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 26px); } }
@media (max-width: 600px) { .ev-grid { grid-template-columns: 1fr; gap: 18px; } }

.ev-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #ececec; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .25s ease; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -40px rgba(0,0,0,.45); }
.ev-card__media { position: relative; aspect-ratio: 4/3; background: var(--img, none) center / cover no-repeat, var(--grey-soft); }
.ev-card__date { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.ev-card__body { padding: clamp(20px, 1.6vw, 26px) clamp(20px, 1.6vw, 26px) clamp(18px, 1.4vw, 22px);
  display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-card__name { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; margin: 0; }
.ev-card__loc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; margin: 0; }
.ev-card__foot { margin-top: auto; padding-top: clamp(16px, 1.4vw, 20px);
  border-top: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-card__price { font-weight: 700; font-size: 18px; }
.ev-card__seats { font-size: 13px; font-weight: 600; color: var(--brick); }
.ev-card__seats.is-full { color: #9a9a9a; }

/* ---- Scroll-driven reveal (progressive enhancement) ---- */
.reveal { opacity: 0; transform: translateY(22px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: ev-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes ev-reveal { to { opacity: 1; transform: none; } }
/* Fallbacks: no view-timeline support, or reduced motion → just show it. */
@supports not (animation-timeline: view()) { .reveal { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* iOS ignores background-attachment: fixed; keep it graceful. */
@supports (-webkit-touch-callout: none) { .ev-hero__bg { background-attachment: scroll; } }

:where(.ev a, .ev button):focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 12px; }
