/* Pages Evenements (liste des courses + fiche) — s'appuie sur results-center.css */
:root {
    --ev-youth: #d6336c;
    --ev-adult: #19954e;
    --ev-special: #6b4fd8;
    --ev-todo: #b45309;
    --ev-todo-bg: #fff3d6;
}

.top-link.is-current { color: var(--white); background: rgba(255,255,255,.08); }
.top-link--cta { color: #fff; background: var(--orange); }
.top-link--cta:hover { background: #e98a19; }

/* Étiquettes */
.ev-tag { display: inline-block; margin: 0 4px 4px 0; padding: 3px 9px; border-radius: 99px; color: #fff; background: var(--ev-adult); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ev-tag.is-youth { background: var(--ev-youth); }
.ev-tag.is-special { background: var(--ev-special); }
.ev-tag.is-open { background: var(--teal); }
.ev-tag.is-done { background: #7c8b96; }
.ev-tag.is-new { background: #f58220; }
.ev-news a { color: #25d4b6; font-weight: 700; }
.ev-news { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid #f58220; background: rgba(255,255,255,.08); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.5; }
.todo { display: inline-block; padding: 1px 8px; border: 1px dashed var(--ev-todo); border-radius: 6px; color: var(--ev-todo); background: var(--ev-todo-bg); font-size: .78em; font-weight: 800; }

/* Liste */
.ev-notfound { padding-top: 28px; color: #9d5420; }
.ev-list { position: relative; z-index: 2; margin-top: -31px; padding-bottom: 70px; }
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding: 13px; border-radius: 16px; background: var(--navy-2); box-shadow: var(--shadow); }
.ev-filters button { padding: 9px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: #dce9ed; background: rgba(255,255,255,.04); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ev-filters button:hover { border-color: var(--teal); }
.ev-filters button[aria-pressed="true"] { color: var(--navy); background: var(--teal-light); border-color: var(--teal-light); }
.ev-month { margin-bottom: 18px; padding: 18px; border-radius: 18px; color: #fff; background: var(--navy-2); box-shadow: var(--shadow); }
.ev-month[hidden] { display: none; }
.ev-month h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .16em; }
.ev-month__events { display: grid; gap: 10px; }
.ev-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: #fff; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ev-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.ev-card[hidden] { display: none; }
.ev-card.is-past { opacity: .72; }
.ev-card__date { display: grid; place-content: center; min-height: 66px; border-radius: 10px; color: #fff; background: var(--ev-adult); text-align: center; line-height: 1; }
.ev-card__date.is-youth { background: var(--ev-youth); }
.ev-card__date.is-special { background: var(--ev-special); }
.ev-card__date span { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ev-card__date strong { margin-top: 4px; font-size: 26px; }
.ev-card__body { min-width: 0; }
.ev-card__body h3 { margin: 2px 0; color: var(--navy); font-size: 17px; }
.ev-card__body p { margin: 0; color: #738593; font-size: 13px; }
.ev-card__place { color: var(--ink) !important; font-weight: 700; }
.ev-card__arrow { color: #a9b8c5; font-size: 26px; }
.ev-empty { padding: 24px; color: #738593; text-align: center; }

/* Fiche */
.hero--event::before { background: radial-gradient(circle at 85% 15%, rgba(242,154,46,.22), transparent 36%), radial-gradient(circle at 10% 90%, rgba(0,162,136,.2), transparent 36%); }
.hero__inner--event { align-items: stretch; gap: 32px; padding-block: 36px 58px; }
.hero__text { min-width: 0; flex: 1 1 auto; }
.hero__poster { flex: 0 0 240px; align-self: center; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.35); }
.hero__poster img { display: block; width: 100%; height: auto; }
.ev-back { display: inline-block; margin-bottom: 14px; color: #c8d4dc; font-size: 13px; font-weight: 700; text-decoration: none; }
.ev-back:hover { color: #fff; }
.ev-poster__tags { margin-bottom: 10px; }
.hero--event h1 { font-size: clamp(34px, 5vw, 60px); }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
.ev-fact { min-width: 0; padding: 10px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); }
.ev-fact span { display: block; color: var(--teal-light); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ev-fact strong { display: block; margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }
.ev-fact__link { display: inline-block; margin-top: 4px; color: var(--teal-light); font-size: 12px; font-weight: 800; text-decoration: none; }
.ev-fact__link:hover { text-decoration: underline; }

.ev-detail { position: relative; z-index: 2; margin-top: -31px; padding-bottom: 70px; }
.ev-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.ev-main { min-width: 0; }
.ev-block { margin-bottom: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 30px rgba(7,23,38,.06); min-width: 0; }
.ev-block h2 { margin: 0 0 12px; color: var(--navy); font-size: 21px; }
.ev-block p { margin: 0 0 10px; line-height: 1.6; }
.ev-muted { color: #738593; font-size: 14px; }
.ev-map { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: #eef4f5; }
.ev-access { margin-top: 12px; display: grid; gap: 10px; }
.ev-access__alert { margin: 0; padding: 12px 14px; border-left: 4px solid var(--orange); border-radius: 8px; background: #fff6e8; color: #7a4b10; font-weight: 700; line-height: 1.5; }
.ev-access__steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.5; }
.ev-access__steps li::marker { color: var(--teal); font-weight: 900; }
.ev-points { display: grid; gap: 8px; }
.ev-point { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px solid var(--line, #dce5e9); color: inherit; text-decoration: none; }
.ev-point:hover { border-color: var(--teal); text-decoration: none; }
.ev-point i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--navy, #071726); color: #fff; font-style: normal; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.ev-point span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-point b { color: var(--navy, #071726); }
.ev-point small { font-size: 12px; color: #6b7c88; }
.ev-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.ev-video { margin: 0; min-width: 0; }
.ev-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #0b2033; }
.ev-video.is-vertical { max-width: 320px; justify-self: start; }
.ev-video.is-vertical .ev-video__frame { aspect-ratio: 9 / 16; }
.ev-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-video figcaption { margin-top: 6px; color: #738593; font-size: 13px; font-weight: 700; }
.ev-video figcaption a { color: var(--teal); }
.ev-tablewrap { overflow-x: auto; }
.ev-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
.ev-table thead { color: inherit; background: transparent; }
.ev-table tbody tr:hover { background: #f7fafb; }
.ev-table th, .ev-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; color: var(--ink); font-size: 15px; }
.ev-table th { color: #738593 !important; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ev-table td.num { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.ev-route { display: block; overflow: hidden; border-radius: 12px; }
.ev-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ev-route-fig { margin: 0; min-width: 0; }
.ev-route-fig figcaption { margin-top: 6px; color: #738593; font-size: 13px; font-weight: 700; text-align: center; }
.ev-route img { display: block; width: 100%; height: auto; }
.ev-route--empty { display: grid; place-items: center; aspect-ratio: 16 / 8; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: #738593; background: repeating-linear-gradient(45deg, #eef4f5 0 12px, #fff 12px 24px); font-weight: 700; text-align: center; }
.ev-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ev-steps li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ev-steps b { color: var(--teal); font-variant-numeric: tabular-nums; }
.ev-inc { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ev-inc li { padding: 10px 12px; border-radius: 10px; background: #eef4f5; font-size: 14px; font-weight: 600; }
.ev-inc--list { grid-template-columns: minmax(0, 1fr); }
.ev-inc--list li { font-weight: 500; line-height: 1.5; }
.ev-inc li .ev-tag { vertical-align: 1px; }
.ev-rules { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.ev-rules li { line-height: 1.5; }
.ev-rules li::marker { color: var(--teal); font-weight: 900; }
.ev-block details { padding: 10px 0; border-top: 1px solid var(--line); }
.ev-block summary { cursor: pointer; font-weight: 800; }
.ev-block details p { margin: 6px 0 0; }

.ev-aside { position: sticky; top: 90px; }
.ev-price { padding: 20px; border-radius: 16px; color: #fff; background: var(--navy-2); box-shadow: var(--shadow); }
.ev-price__big { font-size: 34px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.ev-price__until { margin-top: 4px; color: #c8d4dc; font-size: 13px; }
.ev-price ul { margin: 14px 0; padding: 0; list-style: none; }
.ev-price li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.ev-price li b { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ev-price li span { min-width: 0; }
.ev-price__note { margin: 0 0 12px; color: #c8d4dc; font-size: 12px; line-height: 1.5; }
.ev-pay { margin-top: 10px; color: #c8d4dc; font-size: 12px; text-align: center; }
.ev-pay b { color: var(--orange); }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 99px; color: #fff; background: var(--orange); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.ev-btn:hover { background: #e98a19; }
.ev-btn--lg { width: 100%; padding: 16px 24px; font-size: 16px; }
.ev-btn--ghost { color: var(--ink); background: #fff; border: 2px solid var(--line); }
.ev-btn--ghost:hover { background: #fff; border-color: var(--teal); }
.ev-share { display: grid; gap: 8px; margin-top: 12px; }
.ev-share .ev-btn { width: 100%; }
.ev-contact { margin-top: 14px; color: #738593; font-size: 13px; }
.ev-contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ev-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; color: #fff; background: var(--navy); font-weight: 700; box-shadow: var(--shadow); }

.ev-btn:focus-visible, .ev-filters button:focus-visible, .ev-card:focus-visible, .top-link:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

@media (max-width: 900px) {
    .ev-cols { grid-template-columns: minmax(0, 1fr); }
    .ev-main, .ev-aside { min-width: 0; }
    .ev-aside { position: static; }
    .hero__inner--event { flex-direction: column; }
    .hero__poster { flex-basis: auto; width: min(100%, 320px); }
}
@media (max-width: 560px) {
    .site-header__inner { gap: 10px; }
    .brand__copy { display: none; }
    .top-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .top-link { padding: 8px 10px; font-size: 12px; }
    .top-link:first-child { display: inline-block; }
    .ev-map { grid-template-columns: 1fr; }
    .ev-card { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
    .ev-block { padding: 18px; }
    .hero-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ev-card, .ev-btn { transition: none; } }
