/* Energy Valley v2: plain CSS, no build step.
   Brand from the v1 theme: primary #FF5938, dark #1E1835, font Muli (now Mulish). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }

.ev {
  --ev-primary: #FF5938;
  --ev-primary-dark: #E2431F;
  --ev-dark: #1E1835;
  --ev-ink: #1E1835;
  --ev-body: #5C5873;
  --ev-soft: #F6F4F1;
  --ev-line: #E7E4EE;
  --ev-pool: #1FA3D6;
  --ev-open: #3DDC84;
  font: 16px/1.6 "Mulish", "Muli", system-ui, sans-serif;
  color: var(--ev-body);
  background: #fff;
}
.ev a { color: var(--ev-primary); }
.ev h1, .ev h2, .ev h3 { color: var(--ev-ink); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
.ev p { margin: 0 0 1em; }
.ev-wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ---------- buttons ---------- */
.ev-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.ev-btn:hover { transform: translateY(-2px); }
button.ev-btn { border: 0; font-family: inherit; cursor: pointer; }
.ev .ev-btn--primary { background: var(--ev-primary); color: #fff; box-shadow: 0 10px 24px rgba(255, 89, 56, .35); }
.ev .ev-btn--primary:hover { background: var(--ev-primary-dark); }
.ev .ev-btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.ev .ev-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- navbar ---------- */
.ev-nav { position: absolute; inset: 0 0 auto; z-index: 10; }
.ev-nav .ev-wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.ev .ev-logo { color: #fff; font-weight: 900; font-size: 24px; letter-spacing: -.01em; margin-right: auto; text-decoration: none; }
.ev-links { display: flex; align-items: center; gap: 24px; }
.ev .ev-links a { color: rgba(255, 255, 255, .9); font-weight: 700; font-size: 15px; text-decoration: none; }
.ev .ev-links a:hover, .ev .ev-links a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--ev-primary); }
.ev-nav .ev-btn { padding: 9px 18px; font-size: 14px; }
.ev-account { display: flex; align-items: center; gap: 16px; margin-left: 8px; }
.ev .ev-links .ev-account a { font-size: 14px; color: rgba(255, 255, 255, .75); }
.ev .ev-links a.ev-account-main { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; color: #fff; }
.ev .ev-links a.ev-account-main:hover, .ev .ev-links a.ev-account-main[aria-current="page"] { box-shadow: none; background: rgba(255, 255, 255, .14); border-color: #fff; }
.ev-account svg { fill: none; stroke: currentColor; stroke-width: 2; }
.ev-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ev .ev-subnav a { padding: 8px 18px; border: 2px solid var(--ev-line); border-radius: 999px; color: var(--ev-ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.ev .ev-subnav a:hover, .ev .ev-subnav a[aria-current="page"] { border-color: var(--ev-primary); color: var(--ev-primary); }
.ev-btn--block { width: 100%; justify-content: center; }
.ev .ev-btn--small { padding: 7px 14px; font-size: 13px; }
.ev .ev-btn--line { border: 2px solid var(--ev-line); color: var(--ev-ink); }
.ev .ev-btn--line:hover { border-color: var(--ev-ink); }
.ev .ev-btn--danger { border: 2px solid #F3C4BD; color: #A1382A; }
.ev .ev-btn--danger:hover { border-color: #A1382A; }

/* ---------- account pages and forms ---------- */
.ev-auth { padding: 44px 0 72px; background: var(--ev-soft); }
.ev-auth-card { max-width: 460px; margin: 0 auto; padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(30, 24, 53, .06); }
.ev .ev-auth-card > p { margin: 0 0 16px; }
.ev-auth-card .ev-btn--block { margin-top: 8px; }
.ev .ev-auth-links { display: grid; gap: 8px; margin: 22px 0 0; text-align: center; font-size: 15px; }
.ev-auth-links a { font-weight: 700; }
.ev-form > div { margin-bottom: 16px; }
.ev-form > div > div { margin-bottom: 16px; }
.ev-form label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ev-ink); font-size: 15px; }
.ev-form input:not([type="hidden"]) { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--ev-line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--ev-ink); background: #fff; }
.ev-form input:focus { outline: 2px solid var(--ev-primary); outline-offset: 1px; border-color: transparent; }
.ev-form ul { margin: 0 0 6px; padding: 0; list-style: none; color: #A1382A; font-size: 14px; font-weight: 700; }
.ev .ev-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: #FDECEA; color: #A1382A; font-weight: 700; font-size: 15px; }

/* ---------- videos ---------- */
.ev-videos { padding: 44px 0 72px; }
.ev-videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.ev .ev-videos-grid a { display: block; color: var(--ev-ink); font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; }
.ev-videos-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; border-radius: 12px; background: var(--ev-soft); transition: transform .2s ease; }
.ev .ev-videos-grid a:hover { color: var(--ev-primary); }
.ev-videos-grid a:hover img { transform: translateY(-2px); }

/* ---------- admin ---------- */
.ev-admin { padding: 44px 0 72px; }
.ev .ev-admin h2 { font-size: 24px; margin-bottom: 18px; }
.ev-admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ev-admin-table th { padding: 10px 12px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ev-body); border-bottom: 2px solid var(--ev-ink); }
.ev-admin-table td { padding: 12px; border-bottom: 1px solid var(--ev-line); color: var(--ev-ink); vertical-align: middle; }
.ev-admin-table td:last-child { text-align: right; white-space: nowrap; }
.ev-admin-table .ev-status { margin: 0; font-size: 11px; padding: 3px 9px; }
.ev-admin-actions { display: inline-flex; gap: 8px; }
.ev-admin-scroll { overflow-x: auto; }
.ev-burger { display: none; width: 42px; height: 42px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- home hero: crossfading photos with a slow zoom ---------- */
.ev-hero { position: relative; height: min(88vh, 720px); min-height: 560px; background: var(--ev-dark); overflow: hidden; color: #fff; }
/* duration, per-slide delay and the ev-kenburns keyframes depend on the number of photos: see v2/home.html.twig */
.ev-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: ev-kenburns 24s linear infinite both; }
.ev-hero::after, .ev-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 24, 53, .6) 0%, rgba(30, 24, 53, .15) 35%, rgba(30, 24, 53, .85) 100%); }
.ev-hero-content { position: absolute; inset: auto 0 64px; z-index: 2; }
.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ev .ev-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.ev-pill--open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-open); animation: ev-pulse 2s infinite; }
.ev-pill--closed::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B9B4C9; }
@keyframes ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.ev .ev-pill--pool { background: var(--ev-pool); }
.ev-pill--pool::before { content: "☀"; }
.ev-hero h1 { font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; margin-bottom: 14px; }
.ev-sub { font-size: 20px; max-width: 580px; color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.ev-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ev-scroll { position: absolute; z-index: 2; right: 32px; bottom: 28px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.ev-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: ev-wheel 1.6s ease-in-out infinite; }
@keyframes ev-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- inner page hero ---------- */
.ev-page-hero { position: relative; padding: 150px 0 56px; background: var(--ev-dark) center / cover no-repeat; color: #fff; }
.ev-page-hero .ev-wrap { position: relative; z-index: 2; }
.ev-page-hero h1 { color: #fff; font-size: 52px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 8px; }
.ev-page-hero p { font-size: 19px; max-width: 640px; color: rgba(255, 255, 255, .9); margin: 0; }

/* ---------- key facts ---------- */
/* club news, a bar above the nav on every page; each item expires by itself (src/Data/news.yaml) */
.ev-news { background: var(--ev-primary); color: #fff; font-size: 15px; text-align: center; }
.ev-news .ev-wrap { padding-top: 10px; padding-bottom: 10px; }
.ev-news p { margin: 0; }
.ev .ev-news strong { color: #fff; font-weight: 800; }
.ev-page { position: relative; }
.ev-facts { background: var(--ev-dark); color: #fff; }
.ev-facts .ev-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ev-fact { padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ev-fact:first-child { border-left: 0; }
.ev-fact b { display: block; font-size: 30px; font-weight: 900; color: var(--ev-primary); line-height: 1.1; }
.ev-fact span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.ev-fact.is-muted b { color: rgba(255, 255, 255, .55); }

/* ---------- sections ---------- */
.ev-section { padding: 88px 0; }
.ev-section--soft { background: var(--ev-soft); }
.ev-section--tight { padding: 56px 0; }
.ev-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.ev-kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ev-primary); margin-bottom: 8px; }
.ev-head h2 { font-size: 40px; margin: 0; }
.ev-head p { max-width: 420px; margin: 0; }

/* ---------- activities as photo tiles ---------- */
.ev-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ev .ev-tile { position: relative; display: block; height: 300px; border-radius: 18px; overflow: hidden; background: var(--ev-dark); isolation: isolate; color: #fff; text-decoration: none; }
.ev-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.ev-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 24, 53, 0) 40%, rgba(30, 24, 53, .88) 100%); transition: background .4s ease; }
.ev-tile:hover img { transform: scale(1.07); }
.ev-tile:hover::after { background: linear-gradient(180deg, rgba(255, 89, 56, .15) 0%, rgba(30, 24, 53, .92) 100%); }
.ev-tile-text { position: absolute; inset: auto 22px 20px; }
.ev-tile-text h3 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.ev-tile-text p { font-size: 14px; color: rgba(255, 255, 255, .85); margin: 0; }
.ev-tile-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.ev-tile:hover .ev-tile-more, .ev-tile:focus-visible .ev-tile-more { opacity: 1; transform: none; }
.ev .ev-tile--big { grid-row: span 2; height: auto; min-height: 618px; }
.ev .ev-tile--plain { background: repeating-linear-gradient(135deg, #2A2346 0 14px, #251F3F 14px 28px); }
.ev .ev-tile--wide { grid-column: 1 / -1; height: 140px; }
.ev-badge { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #FFD84D; color: var(--ev-dark); }

/* ---------- gallery ---------- */
.ev-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.ev-gallery--even { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 360px; }
.ev-gallery button { all: unset; cursor: zoom-in; position: relative; border-radius: 14px; overflow: hidden; background: #ddd; }
.ev-gallery button:focus-visible { outline: 3px solid var(--ev-primary); outline-offset: 2px; }
.ev-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.ev-gallery button:hover img { transform: scale(1.05); filter: saturate(1.15); }
.ev-gallery .g-wide { grid-column: span 2; }
.ev-gallery .g-tall { grid-row: span 2; }
.ev-gallery .g-big { grid-column: span 2; grid-row: span 2; }

/* ---------- video: the YouTube player only loads on click ---------- */
.ev-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.ev-split h2 { font-size: 36px; }
.ev-split p { font-size: 17px; }
.ev-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; }
.ev-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s ease, transform .6s ease; }
.ev-video:hover img { opacity: 1; transform: scale(1.02); }
.ev-play { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: var(--ev-primary); display: grid; place-items: center; animation: ev-ring 2.2s infinite; }
.ev-play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
@keyframes ev-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 89, 56, .6); } 70% { box-shadow: 0 0 0 22px rgba(255, 89, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 89, 56, 0); } }
.ev-video iframe, .ev-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- final call to action ---------- */
.ev-cta { position: relative; padding: 96px 0; color: #fff; text-align: center; background: var(--ev-dark) center / cover no-repeat fixed; }
.ev-cta::before { content: ""; position: absolute; inset: 0; background: rgba(30, 24, 53, .72); }
.ev-cta .ev-wrap { position: relative; }
.ev-cta h2 { color: #fff; font-size: 40px; }
.ev-cta p { font-size: 18px; margin-bottom: 26px; color: rgba(255, 255, 255, .9); }

/* ---------- inner page content ---------- */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ev-prose { font-size: 17px; }
.ev-prose h2 { font-size: 28px; margin-top: 1.2em; }
.ev-prose h2:first-child { margin-top: 0; }
.ev-prose ul, .ev-prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.ev-prose li { margin-bottom: .3em; }
.ev-card { background: #fff; border: 1px solid var(--ev-line); border-radius: 18px; padding: 24px; box-shadow: 0 10px 30px rgba(30, 24, 53, .06); }
.ev-card + .ev-card { margin-top: 20px; }
.ev-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ev-cards .ev-card + .ev-card { margin-top: 0; }
.ev-card h2, .ev-card h3 { font-size: 20px; }
.ev-card--dark { background: var(--ev-dark); border-color: var(--ev-dark); color: rgba(255, 255, 255, .85); }
.ev-card--dark h2, .ev-card--dark h3 { color: #fff; }
.ev-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.ev-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-status--open { color: #12804A; background: #E3F8EC; }
.ev-status--closed { color: #A1382A; background: #FDECEA; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ev-table th, .ev-table td { padding: 12px 14px; border-bottom: 1px solid var(--ev-line); text-align: left; vertical-align: top; }
.ev-table thead th { color: var(--ev-ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.ev-table tbody th { color: var(--ev-ink); }
.ev-table small { display: block; color: var(--ev-body); font-weight: 400; }
.ev-table .num { text-align: center; white-space: nowrap; }
.ev-table-scroll { overflow-x: auto; border: 1px solid var(--ev-line); border-radius: 18px; }
.ev-table-scroll .ev-table tr:last-child > * { border-bottom: 0; }
.ev-note { background: var(--ev-soft); border-radius: 14px; padding: 16px 20px; margin-top: 20px; font-size: 15px; }
.ev-note ul { margin: 0; padding-left: 1.2em; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { padding: 10px 0; border-bottom: 1px solid var(--ev-line); }
.ev-list li:last-child { border-bottom: 0; }
.ev-list small { display: block; color: var(--ev-body); }
.ev-map { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ev-soft); }

/* ---------- planning: a plain week agenda, Monday to Sunday ---------- */
.ev-wrap--wide { max-width: 1320px; }
.ev-page-hero--compact { padding: 128px 0 36px; }
.ev-page-hero--compact h1 { font-size: 44px; }

.ev-plan-top { background: var(--ev-dark); color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .08); }
.ev-plan-top .ev-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; }
.ev .ev-plan-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-size: 16px; }
.ev-plan-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ev-primary); }
.ev-plan-next strong { font-size: 20px; color: #fff; }
.ev .ev-plan-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.ev .ev-plan-status:hover { color: #fff; }
.ev-plan-status .ev-status { margin: 0; font-size: 12px; padding: 4px 10px; }

.ev-plan { padding: 44px 0 72px; background: #fff; }
.ev-plan-tabs { display: none; }
.ev-visio { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; padding: 22px 28px; border-radius: 18px; background: #FFEDE8; }
.ev .ev-visio h2 { margin: 0 0 4px; font-size: 22px; }
.ev .ev-visio p { margin: 0; font-size: 16px; color: var(--ev-ink); }
.ev-plan-tabs button:focus-visible { outline: 3px solid var(--ev-primary); outline-offset: 2px; }

/* the week as one table: days as columns split by hairlines, periods as alternating
   bands across the whole week (subgrid rows), today tinted over the bands */
.ev-week { --band: var(--ev-soft); --rule: #E7E3DC; display: grid; grid-template-columns: 34px repeat(var(--days, 7), minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: #fff; }
.ev-week-periods, .ev-wday { grid-row: 1 / span 5; display: grid; grid-template-rows: subgrid; }
.ev-wday { border-left: 1px solid var(--rule); }
.ev-week-periods > *:nth-child(odd), .ev-period:nth-child(odd) { background: var(--band); }
.ev-week-periods span + span { display: flex; align-items: center; justify-content: center; padding: 10px 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ev-body); }
.ev-period { padding: 4px 14px 6px; }
/* the period name shows in the first column; kept here for screen readers and phones */
.ev .ev-period h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* calendar-style heading: weekday, big day number, month */
.ev .ev-wday-head { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 14px 8px 12px; border-bottom: 2px solid var(--ev-ink); line-height: 1.15; text-align: center; }
.ev-week-periods > :first-child { border-bottom: 2px solid var(--ev-ink); background: #fff; }
.ev-wday-head span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ev-body); }
.ev-wday-head b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--ev-ink); }
/* drawn above the period bands, which would otherwise cover an inset outline */
.ev-wday.is-today { position: relative; }
.ev-wday.is-today::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ev-primary); pointer-events: none; }
.ev-wday.is-today:last-child::after { border-radius: 0 17px 17px 0; }
.ev-wday.is-today .ev-period { background-image: linear-gradient(rgba(255, 89, 56, .07), rgba(255, 89, 56, .07)); }
.ev-wday.is-today .ev-wday-head { background: var(--ev-primary); border-color: var(--ev-primary); }
.ev-wday.is-today .ev-wday-head b, .ev-wday.is-today .ev-wday-head span { color: #fff; }
.ev-wday ul { list-style: none; margin: 0; padding: 0; }
.ev-wday-off { grid-row: span 4; margin: 0; padding: 16px 14px; font-size: 14px; color: var(--ev-body); }

/* a lesson: "09:45 · 45 min" then its name */
.ev-lesson { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); line-height: 1.3; }
.ev-lesson:last-child { border-bottom: 0; }
.ev-lesson time { font-size: 14px; font-weight: 900; color: var(--ev-ink); font-variant-numeric: tabular-nums; }
.ev-lesson span { font-size: 12px; color: var(--ev-body); }
.ev-lesson span::before { content: "· "; }
.ev-lesson strong { grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: var(--ev-ink); }
.ev-lesson.is-past { opacity: .4; }
.ev-lesson.is-live strong::after { content: "En cours"; display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; vertical-align: 1px; color: #fff; background: var(--ev-primary); }

/* where we are in the day: a bright line between what has started and what is to come */
.ev-now { position: relative; height: 0; margin: 4px 0; border-top: 3px solid var(--ev-primary); z-index: 1; }
.ev-now::before { content: ""; position: absolute; left: -2px; top: -7.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ev-primary); }
.ev-now time { position: absolute; right: 0; top: -11px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #fff; background: var(--ev-primary); font-variant-numeric: tabular-nums; }

.ev-plan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ev-line); }
.ev .ev-plan-foot p { margin: 0; font-size: 17px; font-weight: 700; color: var(--ev-ink); }
.ev-plan-foot a:last-child { font-weight: 700; }

/* ---------- opening hours: a plain list, Monday to Sunday ---------- */
.ev .ev-hours-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 720px; margin: 0 auto; font-size: 22px; color: #fff; }
.ev-hours-status .ev-status { margin: 0; font-size: 12px; padding: 4px 10px; }
.ev-alert { max-width: 720px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 14px; background: #FFF0EA; color: var(--ev-ink); }
.ev-alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.ev-alert span { color: var(--ev-body); }

.ev-openings { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; border: 1px solid #E7E3DC; border-radius: 18px; overflow: hidden; }
.ev-openings li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 18px 24px; border-top: 1px solid #E7E3DC; }
.ev-openings li:first-child { border-top: 0; }
.ev-openings-day { font-size: 18px; font-weight: 800; color: var(--ev-ink); }
.ev-openings-day em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; color: #fff; background: var(--ev-primary); }
.ev-openings-hours { font-size: 18px; font-weight: 700; color: var(--ev-ink); text-align: right; font-variant-numeric: tabular-nums; }
.ev-openings small { grid-column: 1 / -1; margin-top: 2px; font-size: 13px; color: var(--ev-body); }
.ev-openings li.is-today { background: #FFF0EA; }
.ev-openings li.is-closed .ev-openings-hours { color: var(--ev-primary); }
.ev-hours-page .ev-plan-foot { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- prices: one card per membership length ---------- */
.ev-prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.ev-price { position: relative; display: flex; flex-direction: column; padding: 26px 22px 20px; border: 1px solid #E7E3DC; border-radius: 18px; background: #fff; }
.ev .ev-price h3 { margin: 0 0 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ev-body); }
.ev .ev-price-amount { margin: 0; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--ev-ink); }
.ev .ev-price-month { margin: 8px 0 18px; font-size: 14px; }
.ev-price ul { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.ev-price li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid #E7E3DC; font-size: 14px; color: var(--ev-ink); }
.ev-price li small { display: block; font-size: 12px; color: var(--ev-body); }
.ev .ev-price-fee { margin: 0; padding-top: 12px; border-top: 1px dashed #E7E3DC; font-size: 13px; }
.ev-price.is-best { border-color: var(--ev-dark); background: var(--ev-dark); color: rgba(255, 255, 255, .75); box-shadow: 0 18px 40px rgba(30, 24, 53, .22); }
.ev .ev-price.is-best h3 { color: var(--ev-primary); }
.ev .ev-price.is-best .ev-price-amount, .ev-price.is-best li { color: #fff; }
.ev-price.is-best li, .ev-price.is-best .ev-price-fee { border-color: rgba(255, 255, 255, .15); }
.ev-price.is-best li small { color: rgba(255, 255, 255, .6); }
.ev-price-badge { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ev-primary); }
.ev .ev-extras-title { margin: 48px 0 16px; font-size: 22px; }
.ev-extras { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #E7E3DC; border-radius: 18px; overflow: hidden; }
.ev-extra { padding: 18px 20px; border-left: 1px solid #E7E3DC; background: var(--ev-soft); }
.ev-extra:first-child { border-left: 0; }
.ev .ev-extra h3 { margin: 0 0 4px; font-size: 15px; }
.ev .ev-extra-price { margin: 0 0 6px; font-size: 22px; font-weight: 900; color: var(--ev-ink); }
.ev .ev-extra p:last-child { margin: 0; font-size: 13px; }

/* ---------- footer ---------- */
.ev-foot { background: var(--ev-dark); color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: 14px; }
.ev-foot .ev-wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.ev-foot strong { color: #fff; display: block; margin-bottom: 8px; }
.ev-foot ul { list-style: none; margin: 0; padding: 0; }
.ev-foot li { margin-bottom: 4px; }
.ev .ev-foot a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.ev .ev-foot a:hover { color: #fff; }

/* ---------- reveal on scroll (only once JS has run, so content never stays hidden) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
/* visibility (not only opacity) keeps the closed viewer's buttons out of the tab order */
.ev-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 12, 28, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 32px 12px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; touch-action: pan-y; }
.ev-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.ev-lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.ev-lightbox img { max-height: 80vh; max-width: 100%; border-radius: 8px; transform: scale(.96); transition: transform .3s ease; }
.ev-lightbox.is-open img { transform: none; }
.ev-lightbox button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; justify-self: center; }
.ev-lightbox .lb-close { position: absolute; top: 18px; right: 18px; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .ev-videos-grid { grid-template-columns: repeat(3, 1fr); }
  .ev-links { gap: 16px; }
  .ev-layout, .ev-split { grid-template-columns: 1fr; gap: 28px; }
  .ev-foot .ev-wrap { grid-template-columns: 1fr 1fr; }
  .ev-prices, .ev-extras { grid-template-columns: repeat(2, 1fr); }
  .ev-prices { row-gap: 26px; }
  .ev-extra:nth-child(3) { border-left: 0; }
  .ev-extra:nth-child(n + 3) { border-top: 1px solid #E7E3DC; }
  /* tablet: the whole week still fits, a little tighter */
  .ev-week { grid-template-columns: 28px repeat(var(--days, 7), minmax(0, 1fr)); }
  .ev-period { padding: 2px 8px 4px; }
  .ev-wday-head b { font-size: 26px; }
  .ev-wday-head span { font-size: 11px; letter-spacing: .06em; }
  .ev-lesson { padding: 7px 0; }
  .ev-lesson time, .ev-lesson strong { font-size: 13px; }
  .ev-lesson span { font-size: 11px; }
  .ev-lesson.is-live strong::after { display: block; width: max-content; margin: 3px 0 0; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .ev-auth-card { padding: 24px 20px; }
  .ev-videos-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .ev-wrap { padding: 0 18px; }
  .ev-burger { display: block; }
  .ev-nav .ev-btn { display: none; }
  .ev-links { display: none; position: absolute; top: 76px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 14px; background: var(--ev-dark); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
  .ev-nav.is-open .ev-links { display: flex; }
  .ev .ev-links a { padding: 12px 14px; }
  .ev .ev-links a[aria-current="page"] { box-shadow: none; color: var(--ev-primary); }
  .ev-account { margin: 6px 0 0; padding: 12px 14px 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .ev .ev-links .ev-account a { padding: 0; }
  .ev .ev-links a.ev-account-main { padding: 7px 16px; }
  .ev-hero { height: 600px; min-height: 0; }
  .ev-hero-content { bottom: 40px; }
  .ev-hero h1 { font-size: 46px; }
  .ev-sub { font-size: 17px; }
  .ev-scroll { display: none; }
  .ev-page-hero { padding: 120px 0 40px; }
  .ev-page-hero h1 { font-size: 36px; }
  .ev-page-hero p { font-size: 17px; }
  .ev-facts .ev-wrap { grid-template-columns: 1fr 1fr; }
  .ev-fact { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 8px; }
  .ev-fact b { font-size: 24px; }
  .ev-section { padding: 56px 0; }
  .ev-head { display: block; margin-bottom: 24px; }
  .ev-head h2 { font-size: 30px; margin-bottom: 8px; }
  /* tiles and gallery become swipeable rows */
  .ev-tiles, .ev-gallery, .ev-gallery--even { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 0 18px 8px; scrollbar-width: none; }
  .ev .ev-tile, .ev .ev-tile--big, .ev .ev-tile--wide { flex: 0 0 78%; height: 360px; min-height: 0; scroll-snap-align: start; }
  .ev-tile-more { opacity: 1; transform: none; }
  .ev-gallery button { flex: 0 0 82%; height: 300px; scroll-snap-align: center; }
  .ev-split h2, .ev-cta h2 { font-size: 28px; }
  .ev-cta { background-attachment: scroll; padding: 64px 0; }
  .ev-cards { grid-template-columns: 1fr; }
  .ev-page-hero--compact { padding: 104px 0 24px; }
  .ev-page-hero--compact h1 { font-size: 32px; }
  .ev-plan-top .ev-wrap { padding-top: 14px; padding-bottom: 14px; }
  .ev-plan-next strong { font-size: 18px; }
  .ev-plan { padding: 12px 0 48px; }
  .ev-plan.is-ready .ev-plan-tabs { display: grid; grid-template-columns: repeat(var(--days, 7), 1fr); gap: 4px; position: sticky; top: 0; z-index: 5; margin: 0 -18px 8px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--ev-line); }
  .ev-plan-tabs button { display: grid; justify-items: center; padding: 6px 0 7px; border: 0; border-radius: 10px; background: transparent; color: var(--ev-ink); font: inherit; cursor: pointer; }
  .ev-plan-tabs button span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-body); }
  .ev-plan-tabs button b { font-size: 18px; font-weight: 900; line-height: 1.15; }
  .ev-plan-tabs button.is-off { opacity: .45; }
  .ev-plan-tabs button.is-today b { color: var(--ev-primary); }
  .ev-plan-tabs button[aria-selected="true"] { background: var(--ev-ink); opacity: 1; }
  .ev-plan-tabs button[aria-selected="true"] span { color: rgba(255, 255, 255, .7); }
  .ev-plan-tabs button[aria-selected="true"] b { color: #fff; }
  .ev-plan-tabs button.is-today[aria-selected="true"] { background: var(--ev-primary); }
  .ev-week { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 32px; border: 0; border-radius: 0; overflow: visible; }
  .ev-week-periods { display: none; }
  .ev-wday { grid-row: auto; display: block; border-left: 0; }
  .ev-wday.is-today::after { content: none; }
  .ev-period, .ev-period:nth-child(odd), .ev-wday.is-today .ev-period { padding: 0; background: none; }
  .ev-period.is-empty:not(:has(.ev-now)) { display: none; }
  .ev .ev-period h3 { position: static; width: auto; height: auto; margin: 18px 0 2px; overflow: visible; clip: auto; white-space: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ev-primary); }
  .ev-wday-head { border-radius: 12px; }
  .ev-plan.is-ready .ev-wday { display: none; }
  .ev-plan.is-ready .ev-wday.is-active { display: block; animation: ev-day-in .25s ease; }
  .ev-plan.is-ready .ev-wday-head { display: none; }
  .ev-lesson { grid-template-columns: 64px 1fr auto; padding: 14px 0; }
  .ev-lesson time { grid-column: 1; grid-row: 1; }
  .ev-lesson strong { grid-column: 2; grid-row: 1; }
  .ev-lesson span { grid-column: 3; grid-row: 1; text-align: right; }
  .ev-lesson span::before { content: none; }
  .ev-lesson time, .ev-lesson strong { font-size: 16px; }
  .ev-lesson span { font-size: 13px; }
  .ev-lesson.is-live strong::after { display: inline-block; width: auto; margin: 0 0 0 6px; }
  .ev-plan-foot { margin-top: 32px; }
  .ev .ev-hours-status { font-size: 18px; }
  .ev-openings li { padding: 15px 16px; }
  .ev-openings-day, .ev-openings-hours { font-size: 16px; }
  .ev-prices, .ev-extras { grid-template-columns: 1fr; }
  .ev-extra { border-left: 0; border-top: 1px solid #E7E3DC; }
  .ev-extra:first-child { border-top: 0; }
  .ev-foot .ev-wrap { grid-template-columns: 1fr; }
  .ev-lightbox { grid-template-columns: 44px 1fr 44px; padding: 16px 4px; }
}

@keyframes ev-day-in { from { opacity: 0; transform: translateX(var(--from, 12px)); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ev-slide { animation: none; }
  .ev-slide:first-child { opacity: 1; }
  .ev-pill--open::before, .ev-play, .ev-scroll::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ev-tile img, .ev-gallery img { transition: none; }
  .ev-plan.is-ready .ev-wday.is-active { animation: none; }
  .ev-cta { background-attachment: scroll; }
}
