/* ============================================================
   Événements étudiants (/evenements-etudiants). Loaded AFTER css/beyond.css, which supplies the tokens (--bh-*), the cards (.bh-item),
   the filters, the search, the dialog and the buttons. Only what is specific to this page is defined here, under .ev-*.
   ============================================================ */
/* ---------- A. hero (warm editorial: text left, four independent photos right) ---------- */
.ev-page { --ev-ink: #111B32; --ev-cream: #FFF5E5; --ev-green: #059669; --ev-green-text: #047857; --ev-navy: #0f172a; --ev-navy-2: #0b3b2e; }
.ev-hero { position: relative; background: var(--ev-cream); color: var(--ev-ink); padding: 40px 20px 48px; overflow-x: clip; }
.ev-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ev-hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.ev-eyebrow { margin: 0 0 14px; font: 800 clamp(0.95rem, 1.7vw, 1.35rem)/1.1 var(--bh-font-h); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ev-green-text); }
.ev-hero h1 { font: 800 clamp(2.5rem, 6.4vw, 4.9rem)/1.04 var(--bh-font-h); letter-spacing: -0.025em; margin: 0 0 20px; color: var(--ev-ink); text-wrap: balance; } /* the design system colours every h1 navy; kept explicit */
.ev-hero h1 .ev-accent { display: block; color: var(--ev-green); }
.ev-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.6; color: rgba(17, 27, 50, 0.8); margin: 0 0 28px; max-width: 560px; }
.ev-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-cta-row--center { justify-content: center; }
.ev-page .ev-hero .bh-btn--ghost { background: transparent; color: var(--ev-ink); border: 1.5px solid var(--ev-ink); }
.ev-page .ev-hero .bh-btn--ghost:hover { background: rgba(17, 27, 50, 0.07); color: var(--ev-ink); }
.ev-page .ev-partner .bh-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.ev-page .ev-partner .bh-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.ev-page .ev-partner .bh-btn:focus-visible { outline-color: #fff; }
.ev-page .ev-hero .bh-btn:focus-visible { outline-color: var(--ev-ink); }

/* collage: positions in % of the box so it scales as one piece; four independent <img>, slightly overlapping, tiny rotations */
.ev-collage { position: relative; width: 100%; max-width: 660px; margin: 0 auto; aspect-ratio: 1 / 0.92; container-type: inline-size; }
.ev-ph { position: absolute; margin: 0; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 18px 36px rgba(17, 27, 50, 0.2), 0 3px 8px rgba(17, 27, 50, 0.08); }
.ev-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-ph--desert { left: 0; top: 4%; width: 49%; aspect-ratio: 1.258; transform: rotate(-2deg); z-index: 1; }
.ev-ph--gala { right: 0; top: 0; width: 47%; aspect-ratio: 1.154; transform: rotate(2deg); z-index: 2; }
.ev-ph--volunteer { left: 2%; bottom: 1%; width: 49%; aspect-ratio: 1.23; transform: rotate(-1.5deg); z-index: 1; }
.ev-ph--evening { right: 0; bottom: 0; width: 47%; aspect-ratio: 1.205; transform: rotate(1.5deg); z-index: 2; }
.ev-note { position: absolute; left: 33%; top: 39%; width: 37%; z-index: 3; margin: 0; padding: 3.2cqw 3cqw 3cqw; box-sizing: border-box; background: #fff; border-radius: 20px; transform: rotate(-4deg); box-shadow: 0 14px 30px rgba(17, 27, 50, 0.16); text-align: center; font: 700 clamp(1.1rem, 5.4cqw, 2.1rem)/1.1 Caveat, 'Segoe Script', 'Bradley Hand', cursive; color: var(--ev-green); }
.ev-note::after { content: ""; display: block; width: 72%; height: 4px; margin: 0.9cqw auto 0; border-radius: 4px; background: var(--ev-green); transform: rotate(-2deg); }
.ev-leaf { position: absolute; z-index: 4; width: 8%; height: auto; aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(17, 27, 50, 0.18)); }
.ev-leaf--1 { top: -5%; left: 43%; color: #E1741B; transform: rotate(18deg); }
.ev-leaf--2 { top: 38%; right: -3%; color: #F0A21C; transform: rotate(-35deg); width: 7%; }
.ev-leaf--3 { bottom: -4%; left: -3%; color: #D9631A; transform: rotate(48deg); width: 9%; }
.ev-leaf--4 { top: 45%; left: -4%; color: #E98A1D; transform: rotate(-62deg); width: 6%; }
@media (min-width: 900px) {
  .ev-hero { padding: 56px 24px 64px; }
  .ev-hero-inner { grid-template-columns: 1fr 1.08fr; gap: 40px; }
  .ev-collage { margin: 0 0 0 auto; }
}
@media (max-width: 640px) {
  .ev-hero { padding: 28px 16px 40px; }
  .ev-cta-row .bh-btn { width: 100%; }
  .ev-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; aspect-ratio: auto; container-type: normal; max-width: 460px; }
  .ev-ph { position: static; width: auto; border-radius: 18px; aspect-ratio: 1.22; box-shadow: 0 8px 20px rgba(17, 27, 50, 0.16); }
  .ev-ph--desert { transform: rotate(-1.2deg); } .ev-ph--gala { transform: rotate(1.2deg); } .ev-ph--volunteer { transform: rotate(1deg); } .ev-ph--evening { transform: rotate(-1deg); }
  .ev-note { position: static; grid-column: 1 / -1; width: auto; margin: -2px 14px 0; padding: 14px 16px 12px; font-size: 1.6rem; transform: rotate(-2deg); }
  .ev-note::after { margin-top: 6px; }
  .ev-leaf--2, .ev-leaf--4 { display: none; }
  .ev-leaf--1 { top: -8px; left: auto; right: 10%; width: 36px; }
  .ev-leaf--3 { bottom: -10px; left: -4px; width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ev-hero * { transition: none !important; animation: none !important; } }

/* ---------- B. list ---------- */
.ev-section { padding-top: 48px; scroll-margin-top: 72px; }
.ev-head { text-align: center; max-width: 680px; margin: 0 auto 22px; }
.ev-head h2 { font: 800 clamp(1.45rem, 3vw, 2rem)/1.2 var(--bh-font-h); margin: 0 0 8px; color: var(--bh-text); }
.ev-head p { margin: 0; color: var(--bh-muted); line-height: 1.55; }

/* ---------- C. clubs ---------- */
.ev-clubs { padding: 8px 20px 56px; scroll-margin-top: 72px; }
.ev-clubs[hidden] { display: none; }
.ev-clubs-inner { max-width: 1200px; margin: 0 auto; }
.ev-club-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ev-club-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ev-club-grid { grid-template-columns: repeat(3, 1fr); } }
.ev-club { background: var(--bh-surface); border: 1px solid var(--bh-border); border-radius: var(--bh-r-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05); }
.ev-club-top { display: flex; align-items: center; gap: 12px; }
.ev-club .bh-logo { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; }
.ev-club h3 { font: 700 1.02rem/1.3 var(--bh-font-h); margin: 0; color: var(--bh-text); overflow-wrap: anywhere; }
.ev-club-type { font-size: 0.82rem; color: var(--bh-muted); }
.ev-club-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 0.88rem; color: var(--bh-text); }
.ev-club-meta li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.ev-club-meta i { color: var(--bh-green-dark); width: 16px; text-align: center; margin-top: 2px; flex-shrink: 0; }
.ev-club .bh-btn { margin-top: auto; align-self: flex-start; }

/* ---------- D. partnership ---------- */
.ev-partner { padding: 0 20px 72px; }
.ev-partner-card { max-width: 1000px; margin: 0 auto; text-align: center; color: #fff; padding: 44px 24px; border-radius: 28px; background: linear-gradient(135deg, var(--ev-navy) 0%, var(--ev-navy-2) 100%); box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22); }
.ev-partner h2 { font: 800 clamp(1.4rem, 3.4vw, 2.1rem)/1.2 var(--bh-font-h); margin: 0 auto 12px; max-width: 700px; text-wrap: balance; color: #fff; }
.ev-partner p { margin: 0 auto 10px; max-width: 620px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.ev-partner .ev-partner-note { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 24px; }
@media (max-width: 480px) { .ev-partner-card { padding: 34px 18px; border-radius: 22px; } .ev-partner .ev-cta-row .bh-btn { width: 100%; } }

/* the link to "skip to content" targets must not hide under the fixed header */
.ev-page [id] { scroll-margin-top: 72px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- the five student-life categories: one colour family each, always paired with a pictogram and a text label (never colour alone) ----------
   --ev-a / --ev-b: gradient of the cover when an event has no image; --ev-ink: text colour on white or on --ev-tint (all >= 4.5:1). */
.bh-cat-gala        { --ev-a: #0f172a; --ev-b: #a8801f; --ev-ink: #854d0e; --ev-tint: #fef3c7; }
.bh-cat-party       { --ev-a: #0f172a; --ev-b: #d9482b; --ev-ink: #b42318; --ev-tint: #fee2e2; }
.bh-cat-excursion   { --ev-a: #0b3b2e; --ev-b: #0f9fa8; --ev-ink: #115e59; --ev-tint: #ccfbf1; }
.bh-cat-activity    { --ev-a: #0f172a; --ev-b: #0b78b8; --ev-ink: #075985; --ev-tint: #e0f2fe; }
.bh-cat-volunteering{ --ev-a: #064e3b; --ev-b: #10b981; --ev-ink: #065f46; --ev-tint: #d1fae5; }
.ev-page .bh-cover[class*="bh-cat-"] { background: linear-gradient(135deg, var(--ev-a), var(--ev-b)); }
.ev-page .bh-cover[class*="bh-cat-"] > i { font-size: 2.6rem; }
.ev-page .bh-cover[class*="bh-cat-"] .bh-tag { color: var(--ev-ink); }
.ev-page .bh-chip--cat { display: inline-flex; align-items: center; gap: 8px; }
.ev-page .bh-chip--cat::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ev-b); border: 1px solid rgba(15, 23, 42, 0.18); flex-shrink: 0; }
.ev-page .bh-chip--cat[aria-pressed="true"]::before { border-color: rgba(15, 23, 42, 0.55); }
.ev-club-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ev-tint); color: var(--ev-ink); font: 700 0.74rem var(--bh-font-b); }
