@import url("fonts/fonts.css");

:root {
  --blue-900: #17171b;
  --blue-800: #b80d22;
  --blue-700: #d0102a;
  --blue-100: #ece8e9;
  --blue-50: #faf8f8;
  --ink: #121214;
  --muted: #64748b;
  --line: #e3dfe0;
  --shadow: 0 18px 45px rgba(30, 12, 15, 0.13);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(150deg, #f4f3f3 0%, #f4f3f3 58%, #f4f3f3 100%);
}
.portal-page,
.contest-public-page,
.legal-page { display: flex; min-height: 100vh; flex-direction: column; }
.portal-main,
.contest-public-main,
.legal-main { flex: 1; }
button, input { font: inherit; }
a { color: inherit; }

.lookup-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.lookup-card {
  width: min(620px, 100%);
  padding: 26px;
  border: 1px solid rgba(214, 227, 243, .9);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.lookup-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 24px rgba(30, 12, 15, .12);
}
.brand-mark img,
.public-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lookup-brand h1, .lookup-brand p { margin: 0; }
.lookup-brand h1 { margin-top: 2px; font-size: 22px; }
.lookup-brand p { color: var(--muted); font-size: 13px; }
.lookup-brand .contest-name { color: var(--blue-700); font-weight: 800; }
.lookup-form { display: grid; gap: 14px; }
.lookup-form label { display: grid; gap: 7px; }
.rider-search-field { position: relative; }
.lookup-form label span { color: #44546a; font-size: 13px; font-weight: 750; }
.lookup-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.lookup-form input:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(208, 16, 42,.13); }
.lookup-form button {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue-700);
  box-shadow: 0 10px 22px rgba(208, 16, 42,.22);
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.lookup-form button::after {
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left .65s ease;
}
.lookup-form button:hover {
  transform: translateY(-3px);
  background: var(--blue-800);
  box-shadow: 0 14px 28px rgba(208, 16, 42,.3);
}
.lookup-form button:hover::after { left: 130%; }
.lookup-form button:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 5px 12px rgba(208, 16, 42,.2);
}
.lookup-form button:focus-visible {
  outline: 3px solid rgba(208, 16, 42,.2);
  outline-offset: 3px;
}
.rider-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 35px rgba(30, 12, 15,.16);
}
.rider-suggestions[hidden] { display: none; }
.lookup-form .rider-suggestion {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #26374d;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 13px;
  font-weight: 750;
  transition: color .14s ease, background .14s ease;
}
.lookup-form .rider-suggestion > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup-form .rider-suggestion > small {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--blue-800);
  background: var(--blue-50);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.lookup-form .rider-suggestion::after { display: none; }
.lookup-form .rider-suggestion:hover,
.lookup-form .rider-suggestion.is-active {
  transform: none;
  color: var(--blue-900);
  background: var(--blue-50);
  box-shadow: none;
}
.lookup-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--blue-50);
}
.lookup-result.is-success { color: var(--blue-900); background: #eaf8f0; }
.lookup-result span { display: block; color: var(--muted); font-size: 13px; }
.lookup-result strong { display: block; margin-top: 6px; font-size: 36px; }
.lookup-result.has-structured-results {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.lookup-result-panel {
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 22px rgba(30, 12, 15,.09);
}
.lookup-result-panel > span {
  color: #53657d;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.personal-boxes {
  background: white;
}
.personal-boxes > strong { color: #111827; font-size: 18px; }
.grouping-results {
  display: grid;
  gap: 12px;
}
.grouping-summary { background: white; }
.grouping-summary h3 { margin: 4px 0 10px; color: #111827; font-size: 13px; }
.lookup-result .grouping-boxes {
  margin-top: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}
.grouping-members { background: white; }
.grouping-member-list { display: grid; margin-top: 11px; }
.grouping-member {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #e5ebf3;
}
.grouping-member:last-child { border-bottom: 0; }
.lookup-result .grouping-member strong {
  margin: 0;
  color: #24364d;
  font-size: 13px;
}
.grouping-member small {
  flex: 0 0 auto;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}
.public-info {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--blue-700);
  border-radius: 14px;
  background: #fdfbfb;
}
.public-info h2 { margin: 0 0 8px; color: var(--blue-900); font-size: 15px; }
.public-info div { line-height: 1.55; }
.back-events { display: inline-block; margin-top: 18px; color: var(--blue-800); font-size: 13px; font-weight: 750; text-decoration: none; }

.site-footer {
  width: 100%;
  margin-top: 56px;
  padding: 34px 24px;
  background: white;
}
.site-footer-inner {
  display: grid;
  width: min(1100px, 100%);
  margin: 0 auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-footer-logo {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 26px rgba(30, 12, 15,.16);
}
.site-footer-logo img { width: 42px; height: 42px; object-fit: contain; }
.site-footer-brand strong,
.site-footer-brand small { display: block; }
.site-footer-brand strong { color: #111827; font-size: 15px; }
.site-footer-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.site-footer-links a {
  color: #526178;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.site-footer-links a:hover { transform: translateY(-2px); color: #111827; }
.site-footer-end { display: grid; justify-items: end; gap: 8px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.language-switcher {
  position: relative;
  display: inline-block;
}
.language-current {
  display: inline-flex;
  height: 40px;
  align-items: center;
  padding: 4px 5px;
  border: 0;
  border-radius: 9px;
  color: #526178;
  background: #f1eeee;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.language-current:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(15,23,42,.1); }
.language-current img { width: 32px; height: 26px; border-radius: 5px; object-fit: cover; }
.language-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 150px;
  padding: 6px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
}
.language-menu[hidden] { display: none; }
.language-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.language-menu a:hover,
.language-menu a.is-active { background: #f6eff0; }
.language-menu img { width: 32px; height: 26px; flex: 0 0 32px; border-radius: 5px; object-fit: cover; }
.portal-page .site-footer .language-switcher,
.legal-page .site-footer .language-switcher { display: none; }

.legal-page { color: var(--ink); background: white; }
.legal-main { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 40px; }
.legal-heading { max-width: 720px; }
.legal-heading h1 { margin: 0; font-size: clamp(34px, 5vw, 50px); }
.legal-heading > p:last-child { color: var(--muted); line-height: 1.65; }
.legal-content {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}
.legal-content section {
  padding: 24px;
  border-radius: 9px;
  background: white;
  box-shadow: 0 12px 32px rgba(30, 12, 15,.12);
}
.legal-content h2 { margin: 0 0 10px; font-size: 19px; }
.legal-content p { margin: 8px 0 0; color: #526178; font-size: 14px; line-height: 1.7; }
.contact-main { width: min(940px, calc(100% - 32px)); }
.contact-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  margin-top: 34px;
  padding: 28px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 38px rgba(30, 12, 15,.14);
}
.contact-card-logo {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 28px rgba(30, 12, 15,.14);
}
.contact-card-logo img { width: 132px; height: 132px; object-fit: contain; }
.contact-card-content { min-width: 0; }
.contact-message {
  margin: 0 0 22px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #e6edf6;
}
.contact-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.contact-list dd {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}
.contact-list a { color: var(--blue-800); text-decoration: none; }
.contact-list a:hover { color: var(--blue-900); text-decoration: underline; }
.contact-cta {
  display: inline-flex;
  margin-top: 24px;
  text-decoration: none;
}

.contest-public-page {
  min-height: 100vh;
  background: white;
}
.contest-hero {
  position: relative;
  min-height: 330px;
  padding: 32px max(24px, calc((100vw - 1160px) / 2)) 46px;
  color: #111827;
  background: white;
}
.contest-back {
  display: inline-flex;
  margin-bottom: 42px;
  color: #526178;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.contest-identity {
  display: flex;
  align-items: center;
  gap: 28px;
}
.contest-public-logo {
  display: grid;
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.contest-public-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contest-identity p,
.contest-identity h1,
.contest-identity span { margin: 0; }
.contest-identity p { margin-bottom: 8px; color: #64748b; font-size: 14px; font-weight: 700; }
.contest-identity h1 {
  max-width: 850px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}
.contest-identity span { display: block; margin-top: 13px; color: #64748b; font-weight: 650; }
.contest-identity .contest-event-details {
  margin-top: 9px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}
.contest-cancelled-label {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #b42336 !important;
  background: #ffe8eb;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}
.contest-socials {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 46px;
  display: flex;
  gap: 9px;
}
.contest-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  color: #334155;
  background: white;
  box-shadow: 0 8px 22px rgba(30, 12, 15,.09);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, color .16s ease, box-shadow .16s ease;
}
.contest-socials a:hover {
  transform: translateY(-3px);
  color: #111827;
  box-shadow: 0 13px 28px rgba(30, 12, 15,.16);
}
.contest-socials a:focus-visible {
  outline: 3px solid rgba(208, 16, 42,.2);
  outline-offset: 3px;
}
.social-logo {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 5px;
  color: white;
}
.social-logo svg { width: 12px; height: 12px; fill: currentColor; }
.instagram-logo { background: #d62976; }
.facebook-logo { background: #1877f2; }
.facebook-logo svg { width: 9px; height: 14px; }
.contest-public-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}
.important-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
}
.urgent-banner {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 18px auto 22px;
  padding: 17px 22px 17px 24px;
  overflow: hidden;
  border-radius: 8px;
  color: #8a5400;
  background: #fff7e6;
  box-shadow: 0 10px 24px rgba(146, 94, 8, .08);
  font-size: 14px;
  line-height: 1.45;
}
.urgent-banner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #f2a000;
}
.urgent-banner strong {
  display: block;
  margin-bottom: 5px;
  color: #3c2a00;
  font-size: 14px;
  font-weight: 900;
}
.urgent-banner span { display: block; }
.contest-share-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: flex;
  justify-content: center;
}
.contest-share-footer a {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 18px;
  border-radius: 9px;
  color: white;
  background: #25d366;
  box-shadow: 0 12px 26px rgba(37, 211, 102, .22);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.contest-share-footer a::after {
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left .65s ease;
}
.contest-share-footer a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 211, 102, .28);
  filter: brightness(.98);
}
.contest-share-footer a:hover::after { left: 130%; }
.important-popup[hidden] { display: none; }
.important-popup-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}
.important-popup-card h2 { margin: 0 38px 12px 0; font-size: 25px; }
.important-popup-card div { color: #253247; line-height: 1.7; }
.important-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #40516b;
  background: #f4f2f2;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.important-popup-button {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--blue-700);
  cursor: pointer;
  font-weight: 850;
}
.contest-public-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
}
.public-section {
  min-width: 0;
  padding: 26px;
  border: 0;
  border-radius: 9px;
  background: white;
  box-shadow: 0 12px 32px rgba(30, 12, 15,.15);
}
.public-section h2 { margin: 0; font-size: 24px; }
.public-section-eyebrow { margin: 0 0 7px; color: var(--blue-700); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.public-section-intro { margin: 7px 0 20px; color: var(--muted); font-size: 14px; }
.search-section .lookup-result { margin-bottom: 0; }
.public-info-full div { margin-top: 18px; color: #334155; line-height: 1.7; }
.public-info-full .public-empty-information { color: var(--muted); font-style: italic; }
.public-program { min-width: 0; grid-column: 1 / -1; }
.program-tabs { min-width: 0; margin-top: 22px; }
.program-tablist {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.program-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: #526178;
  background: #f4f2f2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.program-tab:hover { color: #111827; background: #e7edf5; }
.program-tab.is-active {
  color: white;
  background: var(--blue-700);
  box-shadow: 0 7px 16px rgba(208, 16, 42,.2);
}
.program-tab:focus-visible { outline: 3px solid rgba(208, 16, 42,.2); outline-offset: 2px; }
.public-program-days { margin-top: 8px; }
.public-program-day { display: grid; gap: 18px; }
.public-program-day[hidden] { display: none; }
.public-program-arena {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}
.public-program-arena h3 {
  margin: 0;
  padding: 12px 15px;
  color: #111827;
  background: #f1eeee;
  font-size: 14px;
}
.public-program-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0eded; }
.public-program-arena .public-program-row { padding-right: 15px; padding-left: 15px; }
.public-program-row:last-child { border-bottom: 0; }
.public-program-row.is-live-link {
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.public-program-row.is-live-link:hover,
.public-program-row.is-live-link:focus-visible {
  transform: translateY(-1px);
  outline: 0;
  background: white;
  box-shadow: 0 10px 20px rgba(17,24,39,.08);
}
.public-program-row time { color: var(--blue-700); font-size: 17px; font-weight: 850; }
.public-program-row div { min-width: 0; }
.public-program-row strong,
.public-program-row span,
.public-program-row small { display: block; }
.public-program-row strong,
.public-program-row small { overflow-wrap: anywhere; }
.public-program-row span { margin-top: 3px; color: #4d6077; font-size: 13px; font-weight: 700; }
.public-program-row small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.public-program-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.public-program-row .program-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  margin-top: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.program-state.is-finished {
  color: #334155;
  background: #eee9ea;
}
.program-state.is-recognition,
.program-state.is-awards,
.program-state.is-pause {
  color: #334155;
  background: #edf2f7;
}
.program-state.is-live {
  color: #126c3c;
  background: transparent;
}
.public-program-row .program-state.is-live .live-dot,
.live-current-heading .program-state.is-live .live-dot {
  flex-basis: 8px;
  width: 8px;
  height: 8px;
  margin-top: 0;
  box-shadow: 0 0 0 4px rgba(34,167,96,.14);
}
.program-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
}
.program-document-actions a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 104px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #111827;
  background: white;
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.program-document-actions a::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(90,143,214,.26), transparent);
  opacity: 0;
}
.program-document-actions a:hover {
  transform: translateY(-2px);
  background: #f9fbff;
  box-shadow: 0 12px 22px rgba(17,24,39,.12);
}
.program-document-actions a:hover::after {
  opacity: 1;
  animation: button-shine 1.7s ease;
}
@keyframes button-shine {
  from { left: -45%; }
  to { left: 120%; }
}
.public-event-contact {
  grid-column: 1 / -1;
}
.public-event-contact p:not(.public-section-eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.public-event-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.public-event-contact-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #111827;
  background: #f4f2f2;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.public-event-contact-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30, 12, 15,.13);
}
.public-event-contact-grid,
.public-partner-list,
.my-day-list,
.live-next-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.public-event-contact-grid,
.public-partner-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.public-event-contact-grid a,
.public-partner-list a,
.public-partner-list div,
.my-day-item,
.live-next-list article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border-radius: 8px;
  color: #111827;
  background: white;
  box-shadow: 0 10px 26px rgba(17,24,39,.08);
  text-decoration: none;
}
.public-event-contact-grid span,
.public-partner-list span,
.my-day-item time,
.live-next-list time,
.live-next-list small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.public-event-contact-grid strong,
.public-partner-list strong,
.my-day-item strong,
.live-next-list strong { overflow-wrap: anywhere; }
.my-day-item {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
}
.my-day-item span { display: block; margin-top: 3px; color: #64748b; font-size: 12px; font-weight: 700; }
.my-day-item em,
.result-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 22px;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #126c3c;
  background: #e6f8ee;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.live-event-hero {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 28px 0 10px;
}
.live-event-hero h1 {
  max-width: 980px;
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
}
.live-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.live-event-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #334155;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 850;
}
.live-event-main {
  display: grid;
  gap: 18px;
  width: min(100% - 32px, 1160px);
  margin: 18px auto 0;
}
.live-current-card {
  padding: 22px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 18px 42px rgba(17,24,39,.11);
}
.live-current-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.live-current-heading h2 {
  margin: 5px 0 0;
  color: #111827;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1;
}
.live-current-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.live-current-grid div {
  min-width: 0;
  padding: 13px;
  border-radius: 8px;
  background: #faf9f9;
}
.live-current-grid .live-score-box {
  background: white;
  box-shadow: 0 10px 24px rgba(17,24,39,.09);
}
.live-current-grid .live-score-box strong {
  font-size: 24px;
}
.live-current-grid span,
.live-current-grid strong { display: block; }
.live-current-grid span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.live-current-grid strong {
  margin-top: 4px;
  color: #111827;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.live-refresh-status {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}
.live-ranking-section { grid-column: auto; }
.live-next-section { grid-column: auto; }
.live-next-list article {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}
.live-next-list span { display: block; margin-top: 3px; color: #64748b; font-size: 12px; font-weight: 750; }
.live-ranking-search {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.live-ranking-search span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.live-ranking-search input {
  width: min(100%, 440px);
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #111827;
  background: #faf9f9;
  box-shadow: 0 8px 20px rgba(17,24,39,.07);
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.live-ranking-search input:focus {
  box-shadow: 0 0 0 3px rgba(208, 16, 42,.16), 0 8px 20px rgba(17,24,39,.08);
}
.live-ranking-table-wrap {
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.live-ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.live-event-main[data-live-jumpoff="1"] .live-ranking-table {
  min-width: 820px;
}
.live-ranking-table th,
.live-ranking-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0eded;
  color: #111827;
  text-align: left;
  font-size: 13px;
}
.live-ranking-table th {
  color: #64748b;
  background: white;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.live-ranking-table tr:last-child td { border-bottom: 0; }
.live-ranking-table td strong,
.live-ranking-table td small { display: block; }
.live-ranking-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.live-ranking-empty td {
  padding: 22px 14px;
  color: #64748b;
  text-align: center;
  font-weight: 750;
}
.live-table-metric {
  display: inline-flex;
  min-width: 54px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 7px;
  color: #111827;
  background: #faf9f9;
  box-shadow: 0 6px 14px rgba(17,24,39,.06);
  font-weight: 850;
}

.public-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(20px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
}
.public-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.public-brand > span:first-child { width: 44px; height: 44px; overflow: hidden; border-radius: 12px; }
.public-brand strong, .public-brand small { display: block; }
.public-brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.public-header-actions { display: flex; align-items: center; gap: 9px; }
.admin-login-link {
  position: relative;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue-800);
  background: white;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-login-link::after {
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(208, 16, 42,.12), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left .42s ease;
}
.admin-login-link:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 16, 42,.32);
  box-shadow: 0 10px 22px rgba(208, 16, 42,.13);
}
.admin-login-link:hover::after { left: 125%; }
.admin-login-link:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 10px rgba(208, 16, 42,.1);
}
.portal-main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
.portal-intro { max-width: 720px; }
.public-eyebrow { margin: 0 0 8px; color: var(--blue-700); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.portal-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; }
.portal-intro > p:last-of-type { color: var(--muted); line-height: 1.6; }
.event-search { display: flex; gap: 10px; margin-top: 22px; }
.event-search input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; }
.event-search button {
  position: relative;
  overflow: hidden;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--blue-700);
  box-shadow: 0 8px 18px rgba(208, 16, 42,.18);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.event-search button::after {
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left .65s ease;
}
.event-search button:hover {
  transform: translateY(-2px);
  background: var(--blue-800);
  box-shadow: 0 13px 25px rgba(208, 16, 42,.28);
}
.event-search button:hover::after { left: 130%; }
.event-search button:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 5px 12px rgba(208, 16, 42,.2);
}
.event-list { margin-top: 44px; }
.event-month {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 32px 0 12px;
  color: #26374d;
  font-size: 18px;
}
.event-month.is-live { color: #126c3c; }
.live-dot {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22a760;
  box-shadow: 0 0 0 4px rgba(34,167,96,.14);
}
/* Carte concours en forme de billet : talon daté à gauche, ligne perforée
   et encoches en haut / en bas. Le fond est porté par ::before (masqué pour
   creuser les encoches) et l'ombre par un drop-shadow qui suit la découpe. */
.portal-event-card {
  --stub-col: 76px;
  --stub-pad: 20px;
  --card-gap: 18px;
  --stub: calc(var(--stub-pad) + var(--stub-col) + var(--card-gap) / 2);
  --notch: 9px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: var(--stub-col) 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--card-gap);
  margin-bottom: 14px;
  padding: 20px 22px 20px var(--stub-pad);
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(30, 12, 15,.10));
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.portal-event-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--oxer-tint) 0 var(--stub), white var(--stub));
  content: "";
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000),
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000),
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000);
          mask-composite: intersect;
}
.portal-event-card > .ticket { width: 100%; padding-inline: 6px; }
.portal-event-card::after {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -45%;
  width: 28%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(208, 16, 42,.12), transparent);
  content: "";
  transform: skewX(-18deg);
  transition: left .65s ease;
}
.portal-event-card:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 14px 24px rgba(30, 12, 15,.16));
}
.portal-event-card:hover::after { left: 125%; }
.portal-event-card:active {
  transform: translateY(0) scale(.995);
  filter: drop-shadow(0 6px 14px rgba(30, 12, 15,.10));
}
.portal-event-card:focus-visible {
  outline: 3px solid rgba(208, 16, 42,.24);
  outline-offset: 3px;
}
/* Ligne perforée entre le talon et le corps du billet. */
.event-accent {
  position: absolute;
  top: calc(var(--notch) + 5px);
  bottom: calc(var(--notch) + 5px);
  left: calc(var(--stub) - 1px);
  width: 0;
  border-left: 2px dashed rgba(208, 16, 42,.28);
}
.event-card-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.event-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portal-event-card h3, .portal-event-card p { margin: 0; }
.portal-event-card h3 { font-size: 18px; }
.portal-event-card p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.event-card-details { color: #334155; font-weight: 750; }
.event-title-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.event-state {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.event-state.is-live { color: #16834b; }
.event-state.is-live > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a760;
  box-shadow: 0 0 0 3px rgba(34,167,96,.14);
}
.event-state.is-cancelled {
  padding: 4px 7px;
  border-radius: 7px;
  color: #b42336;
  background: #ffe8eb;
  font-weight: 900;
  text-transform: uppercase;
}
.event-open-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.event-open-label span {
  font-size: 17px;
  transition: transform .16s ease;
}
.portal-event-card:hover .event-open-label span {
  transform: translateX(3px);
}
.public-empty { padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: white; }
.past-events {
  margin-top: 42px;
  border: 1px solid rgba(214,227,243,.95);
  border-radius: 14px;
  background: white;
  box-shadow: 0 10px 28px rgba(30, 12, 15,.07);
}
.past-events summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary strong,
.past-events summary small { display: block; }
.past-events summary strong { font-size: 17px; }
.past-events summary small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.past-events-chevron {
  color: var(--blue-800);
  font-size: 25px;
  transition: transform .18s ease;
}
.past-events[open] .past-events-chevron { transform: rotate(180deg); }
.past-events-list {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}
.past-month { margin-top: 24px; color: #64748b; }
.portal-event-card.is-past::before {
  background: linear-gradient(90deg, #f3f1f1 0 var(--stub), #fcfbfb var(--stub));
}

@media (max-width: 860px) {
  .contest-hero {
    min-height: 0;
    padding: 24px 18px 40px;
  }
  .contest-back { margin-bottom: 28px; }
  .contest-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .contest-public-logo {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
    border-radius: 14px;
  }
  .contest-identity h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 52px);
  }
  .contest-socials {
    position: static;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .contest-public-main {
    width: min(100% - 24px, 1160px);
    margin-top: 0;
  }
  .contest-public-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .public-section { padding: 22px; }
  .public-program { grid-column: auto; }
}

@media (max-width: 640px) {
  .lookup-shell { padding: 14px; }
  .lookup-card { padding: 20px; }
  .admin-login-link { padding: 9px 10px; font-size: 11px; }
  .public-header-actions { gap: 6px; }
  .event-search { flex-direction: column; }
  .event-search button { min-height: 46px; }
  .portal-event-card {
    --stub-col: 62px;
    --stub-pad: 12px;
    --card-gap: 14px;
    grid-template-columns: var(--stub-col) 48px minmax(0, 1fr);
    padding: 16px 16px 16px var(--stub-pad);
  }
  .event-card-logo { width: 48px; height: 48px; }
  .event-open-label { grid-column: 2 / -1; justify-content: flex-start; }
  .portal-event-card > .ticket { grid-row: 1 / span 2; }
  .portal-event-card .event-title-line { flex-wrap: wrap; gap: 4px 10px; }
  .portal-event-card h3 { font-size: 16px; }
  .event-title-line { align-items: center; }
  .grouping-member { align-items: flex-start; flex-direction: column; gap: 4px; }
  .grouping-member small { text-align: left; }
  .public-section { padding: 20px; }
  .contest-public-logo { width: 92px; height: 92px; flex-basis: 92px; }
  .contest-identity h1 { font-size: 36px; }
  .contest-socials a { width: 100%; justify-content: center; }
  .program-tablist {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }
  .public-program-row { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
  .program-document-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .program-document-actions a {
    flex: 1 1 140px;
  }
  .live-current-heading { flex-direction: column; }
  .live-current-grid { grid-template-columns: 1fr; }
  .live-ranking-table { min-width: 680px; }
  .public-program-arena .public-program-row { padding-right: 12px; padding-left: 12px; }
  .public-program-row time { font-size: 15px; }
  .site-footer { margin-top: 38px; padding: 28px 18px; }
  .site-footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 20px; text-align: center; }
  .site-footer-brand strong,
  .site-footer-brand small { text-align: left; }
  .site-footer-links { gap: 12px 16px; }
  .site-footer-end { justify-items: center; }
  .site-footer p { text-align: center; }
  .legal-main { padding-top: 42px; }
  .legal-content section { padding: 20px; }
  .contact-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .contact-card-logo { width: 112px; height: 112px; }
  .contact-card-logo img { width: 98px; height: 98px; }
  .contact-list div { grid-template-columns: 1fr; gap: 5px; }
}

/* Page live : sections masquées et liens vers les documents officiels Vola. */
.live-event-page [hidden] { display: none !important; }
.live-event-documents { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.live-event-documents a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px;
  border-radius: 10px; color: #fff; background: #d0102a;
  border: 1px solid #d0102a; font-size: 13px; font-weight: 700; text-decoration: none;
}
.live-event-documents a:hover { background: #2f4e76; }

/* Ordre de la page live : recherche, couple en piste, classement provisoire, à venir. */
.live-search-section { padding-top: 16px; padding-bottom: 16px; }
.live-search-section .live-ranking-search { margin-top: 0; }
.live-search-section .live-ranking-search input { width: 100%; }
.live-search-section .live-refresh-status { margin-top: 10px; }
.live-upcoming-section h2 small { color: #64748b; font-size: .6em; font-weight: 750; }
.live-upcoming-section .live-ranking-table { min-width: 520px; }
.live-event-main[data-live-jumpoff="1"] .live-upcoming-section .live-ranking-table { min-width: 520px; }
.live-search-empty {
  margin: 0; padding: 16px; border-radius: 10px; background: #fff;
  color: #64748b; font-weight: 750; text-align: center;
}

/* ==========================================================================
   Thème « bleu Oxer » : bandeaux d'en-tête bleu nuit, sections à en-tête coloré,
   carte du couple en piste en dégradé et badges de podium.
   ========================================================================== */
:root {
  --oxer-navy: #0b0b0e;
  --oxer-navy-2: #1c1c21;
  --oxer-blue: #d0102a;
  --oxer-sky: #ff8d99;
  --oxer-page: #f4f3f3;
  --oxer-tint: #fbeef0;
  --oxer-gold: #d9a521;
  --oxer-silver: #8e9aab;
  --oxer-bronze: #b8743a;
}

/* Fond de page légèrement bleuté au lieu du blanc. */
.contest-public-page,
.live-event-page { background: var(--oxer-page); }

/* --- Bandeau d'en-tête (page concours + page épreuve) --- */
.contest-hero,
.live-event-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% -20%, rgba(227, 18, 43, .28), transparent 45%),
    linear-gradient(135deg, var(--oxer-navy) 0%, var(--oxer-navy-2) 62%, var(--oxer-blue) 130%);
}
.contest-hero::after,
.live-event-hero::after {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 340px;
  height: 340px;
  border: 46px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.live-event-hero { padding: 26px max(16px, calc((100% - 1160px) / 2)) 34px; }
.contest-hero .contest-back,
.live-event-hero .contest-back { color: var(--oxer-sky); }
.contest-hero .contest-back:hover,
.live-event-hero .contest-back:hover { color: #fff; }
.live-event-hero .public-section-eyebrow { color: var(--oxer-sky); }
.live-event-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); }
.live-event-meta span {
  color: #f3e9ea;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.live-event-documents a {
  color: var(--oxer-navy);
  background: #fff;
  border-color: #fff;
}
.live-event-documents a:hover { color: var(--oxer-navy); background: var(--oxer-tint); }

.contest-identity p,
.contest-identity span { color: var(--oxer-sky); }
.contest-identity h1 { color: #fff; }
.contest-identity .contest-event-details { color: #fff; opacity: .9; }
.contest-public-logo { box-shadow: 0 18px 45px rgba(0, 0, 0, .35); }
.contest-socials a {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: none;
}
.contest-socials a:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.contest-public-main { padding-top: 22px; }

/* --- Sections : en-tête bleu nuit pour les listes de la page live --- */
.live-event-main { margin-top: 22px; }
.live-ranking-section,
.live-upcoming-section {
  padding: 0;
  overflow: hidden;
}
.live-ranking-section > .public-section-eyebrow,
.live-upcoming-section > .public-section-eyebrow {
  margin: 0;
  padding: 16px 20px 0;
  color: var(--oxer-sky);
  background: var(--oxer-navy);
}
.live-ranking-section > h2,
.live-upcoming-section > h2 {
  margin: 0;
  padding: 4px 20px 16px;
  color: #fff;
  background: var(--oxer-navy);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.live-upcoming-section h2 small { color: var(--oxer-sky); }
.live-ranking-section .live-ranking-table-wrap,
.live-upcoming-section .live-ranking-table-wrap { margin-top: 0; }
.live-ranking-table th {
  color: var(--oxer-blue);
  background: var(--oxer-tint);
}
.live-ranking-table th:first-child,
.live-ranking-table td:first-child { padding-left: 20px; }
.live-ranking-table tbody tr { transition: background .15s ease; }
.live-ranking-table tbody tr:hover { background: #faf7f7; }
.live-ranking-table td strong { color: var(--oxer-navy); text-transform: uppercase; font-size: 13px; }
.live-ranking-table td:nth-child(4) { color: var(--oxer-blue); font-weight: 700; }
.live-table-metric {
  color: var(--oxer-navy);
  background: var(--oxer-tint);
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Badge « ticket » réutilisable : rectangle à encoches latérales qui s'élargit
   selon le contenu (rang, horaire, date de concours…).
     <span class="ticket">14:30</span>
     <span class="ticket ticket--gold">1</span>
     <span class="ticket ticket--stack">5-8<small>nov</small></span>
   Variantes de couleur : --blue (défaut), --navy, --gold, --silver, --bronze, --soft.
   -------------------------------------------------------------------------- */
.ticket,
.public-program-row time {
  --ticket-notch: 5px;
  --ticket-bg: var(--oxer-blue);
  --ticket-fg: #fff;
  display: inline-grid;
  min-width: 36px;
  height: 32px;
  width: fit-content;
  place-items: center;
  padding: 0 13px;
  border-radius: 5px;
  color: var(--ticket-fg);
  background: var(--ticket-bg);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  -webkit-mask:
    radial-gradient(circle var(--ticket-notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--ticket-notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--ticket-notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--ticket-notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket--navy { --ticket-bg: var(--oxer-navy); }
.ticket--gold { --ticket-bg: var(--oxer-gold); }
.ticket--silver { --ticket-bg: var(--oxer-silver); }
.ticket--bronze { --ticket-bg: var(--oxer-bronze); }
.ticket--soft { --ticket-bg: var(--oxer-tint); --ticket-fg: var(--oxer-blue); }
.ticket--stack,
.public-program-row time:has(small) {
  --ticket-notch: 6px;
  height: auto;
  min-height: 46px;
  padding: 7px 15px;
  font-size: 16px;
  gap: 3px;
}
.ticket--stack small,
.public-program-row time small {
  margin: 0;
  color: inherit;
  opacity: .85;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Badges de classement en losange : podium or / argent / bronze, puis bleu.
   Le losange est un carré arrondi tourné à 45° en ::before, le chiffre reste droit. */
.live-ranking-section tbody td:first-child span {
  --rank-bg: var(--oxer-blue);
  --rank-fg: #fff;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin: -4px 0;
  place-items: center;
  color: var(--rank-fg);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.live-ranking-section tbody td:first-child span::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border-radius: 6px;
  background: var(--rank-bg);
  content: "";
  transform: rotate(45deg);
}
.live-ranking-section tr[data-rank=""] td:first-child span { --rank-bg: var(--oxer-tint); --rank-fg: var(--oxer-blue); }
.live-ranking-section tr[data-rank="1"] td:first-child span { --rank-bg: var(--oxer-gold); }
.live-ranking-section tr[data-rank="2"] td:first-child span { --rank-bg: var(--oxer-silver); }
.live-ranking-section tr[data-rank="3"] td:first-child span { --rank-bg: var(--oxer-bronze); }

/* Horaires du programme en ticket bleu nuit. */
.public-program-row time { --ticket-bg: var(--oxer-navy); justify-self: start; padding-inline: 11px; font-size: 15px; }
.live-upcoming-section tbody td:first-child span { color: var(--oxer-blue); font-weight: 900; }

/* Ordre provisoire tiré du PDF de Vola + étiquette « Engagé terrain ». */
.live-upcoming-note {
  margin: 0;
  padding: 10px 20px;
  color: var(--oxer-navy);
  background: #fff7e0;
  border-bottom: 1px solid #f1e2b5;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.live-upcoming-note[hidden] { display: none; }
.live-late-entry {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #8a5a00;
  background: #fdf0cc;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* --- Carte du couple en piste --- */
.live-current-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--oxer-navy-2) 0%, var(--oxer-blue) 100%);
  box-shadow: 0 20px 44px rgba(14, 10, 12, .28);
}
.live-current-card .public-section-eyebrow { color: var(--oxer-sky); }
.live-current-heading h2 { color: #fff; text-transform: uppercase; }
.live-current-card .program-state.is-live { color: #fff; background: rgba(255, 255, 255, .14); }
.live-current-grid div {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
}
.live-current-grid span { color: var(--oxer-sky); }
.live-current-grid strong { color: #fff; }
.live-current-grid .live-score-box {
  background: rgba(0, 0, 0, .32);
  box-shadow: none;
}
.live-current-grid .live-score-box strong {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

/* --- Recherche --- */
.live-search-section { border-left: 4px solid var(--oxer-blue); }
.live-search-section .live-ranking-search span { color: var(--oxer-blue); }
.live-search-section .live-ranking-search input { background: var(--oxer-tint); box-shadow: none; }

/* --- Page concours : titres de sections soulignés en bleu, programme --- */
.contest-public-main .public-section { border-top: 4px solid var(--oxer-blue); }
.contest-public-main .public-section h2 { color: var(--oxer-navy); }
.public-program-arena h3 { color: #fff; background: var(--oxer-navy-2); }

@media (max-width: 720px) {
  .live-event-hero { padding: 20px 16px 26px; }
  .contest-socials { position: static; margin-top: 22px; flex-wrap: wrap; }
  .live-current-grid .live-score-box strong { font-size: 24px; }
}

.live-current-card .program-state.is-live .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 0 4px rgba(255, 77, 94, .22);
}
@media (max-width: 720px) {
  .live-current-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .live-current-grid div { padding: 11px; }
  .live-current-heading { gap: 8px; }
  .live-current-card .program-state.is-live { align-self: flex-start; padding: 5px 10px; border-radius: 999px; }
}
/* Page concours : recherche pleine largeur (sauf à côté de « Ma journée »), infos pratiques sous le programme. */
.contest-public-grid .search-section.is-full,
.contest-public-grid .public-info-full,
.contest-public-grid .public-event-contact,
.contest-public-grid .public-partners { grid-column: 1 / -1; }
.contest-public-grid .search-section.is-full .lookup-form { max-width: 720px; }
/* Liste des épreuves : ligne entière cliquable, n° / barème / partants sous le titre. */
.public-program-row { grid-template-columns: 72px minmax(0, 1fr) auto; }
.program-row-link { color: inherit; text-decoration: none; }
.program-row-link:hover,
.program-row-link:focus-visible { color: var(--oxer-blue); }
.public-program-row.is-live-link:hover .program-row-link { color: var(--oxer-blue); }
.public-program-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.public-program-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--oxer-blue);
  background: var(--oxer-tint);
  font-size: 11px;
  font-weight: 800;
}
.public-program-chevron {
  color: var(--oxer-blue);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease;
}
.public-program-row.is-live-link:hover .public-program-chevron { transform: translateX(3px); }
/* ==========================================================================
   Page concours – version « frise chronologique »
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* En-tête : la recherche de box y est intégrée (débordement visible pour les suggestions). */
.contest-hero {
  overflow: visible;
  min-height: 0;
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 96% 120%, transparent 150px, rgba(255, 255, 255, .05) 151px, rgba(255, 255, 255, .05) 200px, transparent 201px),
    radial-gradient(circle at 85% -20%, rgba(227, 18, 43, .28), transparent 45%),
    linear-gradient(135deg, var(--oxer-navy) 0%, var(--oxer-navy-2) 62%, var(--oxer-blue) 130%);
}
.contest-hero::after { display: none; }
.contest-hero-search { position: relative; z-index: 5; max-width: 680px; margin-top: 26px; }
.hero-lookup-form { display: flex; gap: 10px; }
.hero-lookup-form label { flex: 1; }
.hero-lookup-form input {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.hero-lookup-form button {
  min-height: 52px;
  padding: 0 22px;
  color: var(--oxer-navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  white-space: nowrap;
}
.hero-lookup-form button:hover { color: var(--oxer-navy); background: var(--oxer-tint); }
.contest-hero-note { margin: 0; color: var(--oxer-sky); font-weight: 700; }

/* Résultat de recherche : carte en tête de page, uniquement après une recherche. */
.lookup-results-card .lookup-result { margin-top: 14px; }

/* Programme : plus de carte, une frise verticale sur le fond de page. */
.contest-public-main .public-section.public-program {
  padding: 4px 0 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}
.public-program .program-tab { background: #fff; }
.public-program .program-tab.is-active { background: var(--oxer-blue); }
.public-program-arena {
  position: relative;
  overflow: visible;
  padding-left: 34px;
  border-radius: 0;
  background: transparent;
}
.public-program-arena::before {
  position: absolute;
  top: 44px;
  bottom: 18px;
  left: 9px;
  width: 3px;
  border-radius: 3px;
  background: #d9d2d3;
  content: "";
}
.public-program-arena h3 {
  margin: 0 0 10px -34px;
  padding: 0;
  color: var(--oxer-navy);
  background: transparent;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.public-program-arena .public-program-row {
  position: relative;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.public-program-arena .public-program-row:last-child { border-bottom: 1px solid var(--line); }
.public-program-row::before {
  position: absolute;
  top: 50%;
  left: -31px;
  width: 15px;
  height: 15px;
  margin-top: -8px;
  border: 3px solid #d9d2d3;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.public-program-row.is-state-finished { opacity: .72; }
.public-program-row.is-state-finished::before { background: #d9d2d3; }
.public-program-row.is-state-live {
  border: 2px solid var(--oxer-blue);
  box-shadow: 0 14px 30px rgba(208, 16, 42, .18);
}
.public-program-row.is-state-live::before { top: 30px; border-color: #bfe8cd; background: #16a34a; }
.public-program-row time { color: var(--oxer-blue); font-size: 17px; font-weight: 800; }

/* Bandeau « en direct » de l'épreuve en cours. */
.program-livebar {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--oxer-navy);
}
.program-livebar[hidden] { display: none; }
.program-livebar small {
  display: block;
  color: var(--oxer-sky);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.program-livebar span { font-size: 14px; font-weight: 800; }
.program-livebar b { font-size: 18px; font-variant-numeric: tabular-nums; }
.program-livebar-rider { min-width: 0; }
.program-livebar-rider span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Infos pratiques et contacts côte à côte. */
.contest-public-grid .public-info-full.is-half,
.contest-public-grid .public-event-contact.is-half { grid-column: auto; }

@media (max-width: 720px) {
  .hero-lookup-form { flex-direction: column; }
  .contest-hero-search { margin-top: 20px; }
  .public-program-arena { padding-left: 26px; }
  .public-program-arena::before { left: 6px; }
  .public-program-arena h3 { margin-left: -26px; }
  .public-program-row::before { left: -26px; width: 13px; height: 13px; margin-top: -7px; }
  .public-program-arena .public-program-row { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 12px; }
  .program-livebar { grid-template-columns: 1fr 1fr; }
  .program-livebar-rider { grid-column: 1 / -1; }
  .contest-public-grid .public-info-full.is-half,
  .contest-public-grid .public-event-contact.is-half { grid-column: 1 / -1; }
}
/* ==========================================================================
   Page d'accueil – en-tête bleu (version A), cartes de concours inchangées
   ========================================================================== */
.portal-page { background: var(--oxer-page); }
.portal-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 96% 120%, transparent 150px, rgba(255, 255, 255, .05) 151px, rgba(255, 255, 255, .05) 200px, transparent 201px),
    radial-gradient(circle at 85% -20%, rgba(227, 18, 43, .28), transparent 45%),
    linear-gradient(135deg, var(--oxer-navy) 0%, var(--oxer-navy-2) 62%, var(--oxer-blue) 130%);
}
.portal-hero .public-header {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  backdrop-filter: none;
}
.portal-hero .public-brand { color: #fff; }
.portal-hero .public-brand > span:first-child { background: #fff; }
.portal-hero .public-brand small { color: var(--oxer-sky); }
.portal-hero .admin-login-link {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
}
.portal-hero .admin-login-link:hover { border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.portal-hero .language-current { background: rgba(255, 255, 255, .12); }
.portal-hero .portal-intro {
  max-width: none;
  padding: 34px max(20px, calc((100vw - 1100px) / 2)) 46px;
}
.portal-hero .public-eyebrow { color: var(--oxer-sky); letter-spacing: .08em; }
.portal-hero .portal-intro h1 { max-width: 720px; color: #fff; }
.portal-hero .portal-intro > p:last-of-type,
.portal-hero .portal-intro > p:not(.public-eyebrow) { max-width: 620px; color: #e8dcdd; }
.portal-hero .event-search { max-width: 680px; margin-top: 24px; }
.portal-hero .event-search input {
  min-height: 52px;
  border: 0;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}
.portal-hero .event-search button {
  min-height: 52px;
  color: var(--oxer-navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  font-weight: 800;
}
.portal-hero .event-search button:hover { color: var(--oxer-navy); background: var(--oxer-tint); }

.portal-main { padding-top: 30px; }
.event-list { margin-top: 0; }
.event-month,
.portal-section-title {
  margin: 28px 0 14px;
  color: var(--oxer-navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.event-list > .event-month:first-child { margin-top: 0; }
.event-month.is-live { color: var(--oxer-navy); }
.portal-section-title { display: flex; align-items: baseline; gap: 10px; margin-top: 42px; }
.portal-section-title small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.past-events-list { padding: 0; border-top: 0; }
.past-events-list .past-month { margin: 18px 0 10px; color: var(--oxer-blue); font-size: 14px; letter-spacing: 0; text-transform: none; }
/* Le concours en cours est mis en avant, la carte garde son style. */
.portal-event-card.is-ongoing { outline: 2px solid var(--oxer-blue); outline-offset: 0; }

@media (max-width: 720px) {
  .portal-hero .portal-intro { padding: 24px 18px 32px; }
  .portal-hero .event-search { flex-direction: column; }
  .portal-hero .admin-login-link { padding: 8px 10px; font-size: 12px; }
}
/* ==========================================================================
   Typographie « mélange A » :
   - Barlow Condensed (majuscules) : grands titres et chiffres, façon tableau d'affichage
   - Outfit : noms d'épreuves, de cavaliers et de concours
   - Inter : texte courant
   Les textes importants sont agrandis.
   ========================================================================== */
:root {
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-name: Outfit, Inter, sans-serif;
  --font-text: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-family: var(--font-text); font-size: 16px; }

/* Grands titres : Barlow Condensed en majuscules. */
.contest-identity h1,
.portal-intro h1,
.public-section h2,
.live-ranking-section > h2,
.live-upcoming-section > h2,
.event-month,
.portal-section-title,
.legal-heading h1,
.important-popup-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.contest-identity h1 { font-size: clamp(40px, 6.5vw, 72px); line-height: .95; }
.portal-intro h1 { font-size: clamp(38px, 6vw, 64px); line-height: .98; }
.public-section h2 { font-size: 30px; }
.live-ranking-section > h2,
.live-upcoming-section > h2 { font-size: 24px; }
.event-month,
.portal-section-title { font-size: 18px; letter-spacing: .04em; }
.contest-identity span,
.contest-identity p { font-size: 17px; }

/* Noms (épreuves, cavaliers, concours) : Outfit. */
.public-program-row strong,
.live-event-hero h1,
.live-current-heading h2,
.live-ranking-table td strong,
.portal-event-card h3,
.program-livebar span,
.my-day-item strong,
.lookup-result h3,
.grouping-member strong {
  font-family: var(--font-name);
  font-weight: 600;
  letter-spacing: -.01em;
}
.public-program-row strong { font-size: 20px; }
.portal-event-card h3 { font-size: 22px; }
.live-event-hero h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 700; }
.live-current-heading h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; text-transform: none; }
.live-ranking-table td strong { font-size: 16px; text-transform: none; }
.program-livebar span { font-size: 18px; }

/* Chiffres : Barlow Condensed, chiffres alignés. */
.public-program-row time,
.live-table-metric,
.live-current-grid strong,
.program-livebar b,
.live-ranking-section tbody td:first-child span,
.live-upcoming-section tbody td:first-child span,
.ticket,
.lookup-result-panel strong,
.lookup-result .grouping-boxes,
.my-day-item time {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.public-program-row time { font-size: 26px; font-weight: 700; }
.live-table-metric { font-size: 18px; font-weight: 700; }
.live-current-grid strong { font-size: 22px; font-weight: 700; }
.live-current-grid .live-score-box strong { font-size: 40px; line-height: 1; }
.program-livebar b { font-size: 30px; font-weight: 700; }
.live-ranking-section tbody td:first-child span { font-size: 18px; }
.lookup-result-panel.personal-boxes strong { font-size: 28px; line-height: 1.1; }
.lookup-result .grouping-boxes { font-size: 22px; }
.lookup-result-panel .box-build { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* Petites étiquettes : un peu plus lisibles. */
.public-program-meta span { font-size: 12px; }
.live-ranking-table th { font-size: 11px; }
.live-ranking-table td { font-size: 15px; }

@media (max-width: 720px) {
  .public-section h2 { font-size: 26px; }
  .public-program-row strong { font-size: 17px; }
  .public-program-row time { font-size: 21px; }
  .portal-event-card h3 { font-size: 19px; }
  .live-current-grid .live-score-box strong { font-size: 32px; }
  .program-livebar b { font-size: 24px; }
  .lookup-result-panel.personal-boxes strong { font-size: 24px; }
}
/* Le nom du cheval reste en police « nom », pas en chiffres. */
.live-current-grid > div:nth-child(2) strong { font-family: var(--font-name); font-size: 20px; font-weight: 600; }

/* Couple : cavalier en gras, cheval dessous en plus petit et en bleu. */
.live-ranking-table td.live-couple strong { display: block; line-height: 1.2; }
.live-ranking-table td.live-couple .live-horse {
  display: block;
  margin-top: 3px;
  color: var(--oxer-blue);
  font-family: var(--font-name);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
/* Une colonne de moins : le tableau tient mieux sur téléphone. */
.live-ranking-table { min-width: 560px; }
.live-event-main[data-live-jumpoff="1"] .live-ranking-table { min-width: 700px; }
.live-upcoming-section .live-ranking-table { min-width: 0; }
@media (max-width: 720px) {
  .live-ranking-table { min-width: 0; }
  .live-event-main[data-live-jumpoff="1"] .live-ranking-table { min-width: 620px; }
  .live-ranking-table th,
  .live-ranking-table td { padding: 10px 8px; }
  .live-ranking-table th:first-child,
  .live-ranking-table td:first-child { padding-left: 12px; }
  .live-ranking-table td.live-couple strong { font-size: 15px; }
  .live-table-metric { min-width: 0; padding: 4px 7px; font-size: 16px; }
}
@media (max-width: 720px) {
  .live-table-metric { white-space: nowrap; font-size: 14px; padding: 4px 6px; }
  /* Losange plus compact sur téléphone : toujours carré pour rester un losange. */
  .live-ranking-section tbody td:first-child span { width: 34px; height: 34px; min-width: 34px; margin: -3px 0; font-size: 14px; }
  .live-ranking-section tbody td:first-child span::before { inset: 5px; border-radius: 5px; }
  .live-ranking-table th,
  .live-ranking-table td { padding-left: 5px; padding-right: 5px; }
  .live-ranking-table td:nth-child(2) { color: var(--muted); font-size: 13px; }
  .live-ranking-table td.live-couple { width: 100%; }
}
/* Noms trop longs : une seule ligne, coupée avec « … » (le nom complet s'affiche au survol). */
.live-ranking-table td.live-couple {
  width: 100%;
  max-width: 0;
}
.live-ranking-table td.live-couple strong,
.live-ranking-table td.live-couple .live-horse {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Dotation de l'épreuve : pastille dorée. */
.public-program-meta span.is-prize { color: #7a5a00; background: #fbf1d3; }

/* Programme public : la piste de chaque épreuve est mise en avant. */
.public-program-arena h3.program-arena-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px -34px;
  padding: 8px 16px 8px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--oxer-navy);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.public-program-arena h3.program-arena-title small {
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--oxer-navy);
  background: var(--oxer-sky);
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.public-program-arena + .public-program-arena { margin-top: 26px; }
/* Pastille de piste sur chaque épreuve. */
.public-program-meta span.is-arena {
  color: #fff;
  background: var(--oxer-blue);
}
.public-program-meta span.is-arena::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--oxer-sky);
  content: "";
}
@media (max-width: 720px) {
  .public-program-arena h3.program-arena-title { margin-left: -26px; font-size: 19px; }
}
/* Programme public : horaire lisible (texte blanc sur ticket bleu nuit) */
.public-program-row time,
.public-program-row time small {
  color: #fff;
}
/* ==========================================================================
   Pages d'information (contact, mentions, confidentialité, conditions)
   ========================================================================== */
body.legal-page { background: var(--oxer-page); color: var(--oxer-navy); }
.legal-hero .legal-intro {
  padding: 34px max(20px, calc((100vw - 1100px) / 2)) 22px;
}
.legal-hero .legal-intro h1 {
  margin: 6px 0 0;
  max-width: 760px;
  color: #fff;
  font: 700 clamp(36px, 6vw, 56px)/1 var(--font-display);
  text-transform: uppercase;
}
.legal-hero .legal-intro > p:not(.public-eyebrow) {
  max-width: 640px;
  margin: 14px 0 0;
  color: #e8dcdd;
  font-size: 17px;
  line-height: 1.55;
}
.legal-updated {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--oxer-sky);
  font-size: 13px;
  font-weight: 700;
}
.legal-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 max(20px, calc((100vw - 1100px) / 2));
  scrollbar-width: none;
}
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  color: #e8dcdd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.legal-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.legal-tabs a.is-active { color: var(--oxer-navy); background: var(--oxer-page); }

.legal-page .legal-main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 56px;
}
.legal-toc {
  position: sticky;
  top: 20px;
  padding: 18px;
  border: 1px solid #e6e1e2;
  border-radius: 16px;
  background: #fff;
}
.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--oxer-blue);
  font: 700 14px/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #44546b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--oxer-sky); font-weight: 800; }
.legal-toc a:hover { color: var(--oxer-navy); background: var(--oxer-tint); }

.legal-page .legal-content { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.legal-page .legal-content section {
  scroll-margin-top: 20px;
  padding: 24px 26px;
  border: 1px solid #e6e1e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 10, 12, .05);
}
.legal-page .legal-content h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--oxer-navy);
  font: 700 24px/1.1 var(--font-display);
  text-transform: uppercase;
}
.legal-page .legal-content h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border-radius: 8px;
  background: var(--oxer-navy);
  color: var(--oxer-sky);
  font-size: 16px;
}
.legal-page .legal-content p,
.legal-page .legal-content li {
  margin: 10px 0 0;
  color: #44546b;
  font: 400 15px/1.7 var(--font-text);
}
.legal-page .legal-content ul { margin: 6px 0 0; padding-left: 20px; }
.legal-page .legal-content li { margin-top: 6px; }
.legal-page .legal-content li::marker { color: var(--oxer-blue); }
.legal-page .legal-content a { color: var(--oxer-blue); font-weight: 600; overflow-wrap: anywhere; }
.legal-rows { display: grid; gap: 0; margin: 4px 0 6px; border: 1px solid #ebe6e7; border-radius: 12px; overflow: hidden; }
.legal-rows div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; padding: 11px 14px; }
.legal-rows div:nth-child(odd) { background: #faf7f7; }
.legal-rows dt { color: #5d6b80; font-size: 13px; font-weight: 700; }
.legal-rows dd { margin: 0; color: var(--oxer-navy); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* Contact */
.legal-page .contact-main { display: grid; grid-template-columns: 1fr; gap: 18px; }
.legal-page .contact-card {
  grid-template-columns: 150px minmax(0, 1fr);
  border: 1px solid #e6e1e2;
  border-top: 4px solid var(--oxer-blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(14, 10, 12, .06);
}
.legal-page .contact-card h2 { margin: 4px 0 0; color: var(--oxer-navy); font: 700 28px/1.05 var(--font-display); text-transform: uppercase; }
.legal-page .contact-message { margin-top: 10px; color: #44546b; font-size: 16px; line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-page .contact-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--oxer-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.legal-page .contact-cta:hover { background: var(--oxer-blue); }
.legal-page .contact-cta.is-secondary { background: var(--oxer-tint); color: var(--oxer-navy); }
.contact-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-help article {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e6e1e2;
  border-radius: 16px;
  background: #fff;
}
.contact-help-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--oxer-tint);
}
.contact-help-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--oxer-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-help h3 { margin: 14px 0 0; color: var(--oxer-navy); font: 700 18px/1.2 var(--font-name); }
.contact-help p { flex: 1; margin: 8px 0 0; color: #5d6b80; font-size: 14px; line-height: 1.6; }
.contact-help a { margin-top: 14px; color: var(--oxer-blue); font-weight: 700; text-decoration: none; }
.contact-help a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .legal-page .legal-main { grid-template-columns: 1fr; gap: 16px; width: calc(100% - 32px); padding-top: 20px; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; }
  .contact-help { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .legal-hero .legal-intro { padding: 24px 16px 18px; }
  .legal-hero .legal-intro > p:not(.public-eyebrow) { font-size: 15px; }
  .legal-tabs { padding: 0 16px; }
  .legal-tabs a { padding: 10px 12px; font-size: 13px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-page .legal-content section { padding: 18px; }
  .legal-page .legal-content h2 { font-size: 20px; }
  .legal-rows div { grid-template-columns: 1fr; gap: 2px; }
  .legal-page .contact-card { grid-template-columns: 1fr; padding: 20px; }
}@media (max-width: 620px) {
  .legal-page .contact-card .contact-card-logo { width: 64px; height: 64px; border-radius: 16px; }
  .legal-page .contact-card .contact-card-logo img { width: 52px; height: 52px; }
  .legal-page .contact-card h2 { font-size: 24px; }
}

.grouping-tacks { display: block; margin-top: 6px; font-weight: 600; opacity: .8; }

/* Plan des boxes (page publique) */
.contest-public-grid .public-box-plan { grid-column: 1 / -1; }
.public-box-plan {
  color: #fff;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #24242b 0%, #141418 55%, #0b0b0e 100%);
  border-color: transparent;
}
.contest-public-grid .public-box-plan .public-section-eyebrow { color: #ff9aa5; }
.contest-public-grid .public-box-plan h2 { color: #fff; }
.box-plan-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.box-plan-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; color: #ffe7a8; background: rgba(255, 196, 0, .12); font-size: 14px; }
.box-plan-scroll { margin: 16px -4px 0; padding: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.box-plan-svg { display: block; width: 100%; height: auto; }
.box-plan-svg text { font-family: var(--font-text, Inter, sans-serif); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
/* Box et sellerie partagent les couleurs de statut ; la sellerie est hachurée en plus. */
.bp-box .bp-shape,
.bp-tack .bp-shape { fill: #5b5b66; stroke: none; }
.bp-box .bp-label,
.bp-tack .bp-label { fill: rgba(255, 255, 255, .6); font-weight: 700; }
/* Box non attribué : neutre, sans mention « libre ». */
.bp-box.is-neutral .bp-shape,
.bp-tack.is-neutral .bp-shape { fill: rgba(255, 255, 255, .1); }
.bp-box.is-neutral .bp-label,
.bp-tack.is-neutral .bp-label { fill: rgba(255, 255, 255, .45); }
.bp-box.is-mine .bp-shape,
.bp-tack.is-mine .bp-shape { fill: #fff; filter: url(#bpGlow); }
.bp-box.is-mine .bp-label,
.bp-tack.is-mine .bp-label { fill: #0b0b0e; }
.bp-hatch { stroke: none; pointer-events: none; }
.bp-hatch-line { stroke: rgba(255, 255, 255, .35); stroke-width: .07; }
.bp-tack .bp-hatch { opacity: .9; }
/* Box d'entier : rouge pour tout le monde quand il est occupé, rouge lumineux pour son cavalier. */
.bp-stallion.is-occupied .bp-shape { fill: #c62f3f; }
.bp-stallion.is-neutral .bp-shape { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 94, 108, .7); stroke-width: .09; }
.bp-stallion.is-mine .bp-shape { fill: #ff4b5c; filter: url(#bpGlowRed); }
.bp-stallion.is-mine .bp-label { fill: #fff; }
/* Votre sellerie : doré hachuré (votre box reste blanc) pour bien les distinguer. */
.bp-tack.is-mine .bp-shape { fill: #f6c344; }
.bp-tack.is-mine .bp-hatch { opacity: 1; }
.bp-hatch-line-mine { stroke: rgba(11, 11, 14, .35); stroke-width: .09; }
.bp-tack.is-mine .bp-label { fill: #0b0b0e; paint-order: stroke; stroke: #f6c344; stroke-width: .25; }
.bp-zone rect { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .25); stroke-width: .12; stroke-dasharray: .6 .4; }
.bp-zone text { fill: rgba(255, 255, 255, .55); font-weight: 800; }
.bp-aisle rect { fill: rgba(255, 255, 255, .06); }
.bp-aisle .bp-text { fill: rgba(255, 255, 255, .6); font-weight: 800; letter-spacing: .12em; }
.bp-callout line { stroke: #fff; stroke-width: .1; }
.bp-callout-tag { fill: #d0102a; }
.bp-callout-tag-text { fill: #fff; font-weight: 800; }
.bp-callout-body { fill: #fff; }
.box-plan-svg .bp-callout-title,
.box-plan-svg .bp-callout-sub { text-anchor: start; }
.bp-callout-title { fill: #0b0b0e; font-weight: 800; }
.bp-callout-sub { fill: #64748b; font-weight: 500; }
.box-plan-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; padding: 0; color: rgba(255, 255, 255, .85); font-size: 14px; list-style: none; }
.box-plan-legend li { display: inline-flex; align-items: center; gap: 9px; }
.box-plan-legend i { display: inline-block; width: 18px; height: 22px; border-radius: 4px; }
.box-plan-legend .is-mine { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); }
.box-plan-legend .is-mine-tack { background: repeating-linear-gradient(45deg, rgba(11, 11, 14, .35) 0 1px, #f6c344 1px 5px); box-shadow: 0 0 10px rgba(246, 195, 68, .6); }
.box-plan-legend .is-occupied { background: #5b5b66; }
.box-plan-legend .is-mine-stallion { background: #ff4b5c; box-shadow: 0 0 12px rgba(255, 75, 92, .8); }
.personal-stallions { border-left: 4px solid #c62f3f; }
.personal-stallions > span { color: #c62f3f; }
.grouping-stallions { color: #c62f3f; }
/* ==========================================================================
   Page « Solutions organisateurs » (organisateurs.php)
   ========================================================================== */
.org-page { background: var(--oxer-page); color: var(--ink); }
.org-header-link { color: #e8dcdd; font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 6px; }
.org-header-link:hover { color: #fff; }
.org-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  padding: 48px max(20px, calc((100vw - 1100px) / 2)) 72px;
}
.org-intro .public-eyebrow { color: var(--oxer-sky); letter-spacing: .08em; }
.org-intro h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: .96;
  text-transform: uppercase;
}
.org-intro-text > p:not(.public-eyebrow) { max-width: 560px; margin: 18px 0 0; color: #e8dcdd; font-size: 18px; line-height: 1.6; }
.org-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.org-cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--oxer-navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.org-cta:hover { transform: translateY(-1px); background: var(--oxer-tint); }
.org-cta.is-ghost { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.org-cta.is-ghost:hover { background: rgba(255, 255, 255, .16); }

/* Visuel du hero : plan schématique et cartes flottantes. */
.org-visual { position: relative; padding: 26px 18px 34px; }
.org-plan-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #24242b 0%, #141418 55%, #0b0b0e 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.org-plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.org-plan-head strong { font-family: var(--font-display); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; }
.org-plan-head span { color: #ff9aa5; font-size: 13px; font-weight: 700; }
.org-plan-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.org-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  color: #0b0b0e;
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 800;
}
.org-cell.is-o { background: #5b5b66; }
.org-cell.is-g { background: #8a8a96; }
.org-cell.is-s { color: #0b0b0e; background: repeating-linear-gradient(45deg, rgba(11, 11, 14, .3) 0 1px, #f6c344 1px 5px); }
.org-cell.is-me { background: #fff; box-shadow: 0 0 16px rgba(255, 255, 255, .7); }
.org-cell.is-a { aspect-ratio: auto; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.org-plan-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: rgba(255, 255, 255, .8); font-size: 12px; }
.org-plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.org-plan-legend i { width: 12px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.org-plan-legend i.is-o { background: #5b5b66; }
.org-plan-legend i.is-g { background: #8a8a96; }
.org-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.org-float strong, .org-float small { display: block; }
.org-float strong { font-family: var(--font-name); font-size: 15px; }
.org-float small { color: var(--muted); font-size: 12px; }
.org-float-rider { left: -18px; bottom: -14px; }
.org-float-live { right: -10px; top: 0; }
.org-float-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: var(--oxer-blue);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

/* Sections */
.org-main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 80px; }
.org-section + .org-section, .org-split + .org-section { margin-top: 96px; }
.org-section-head { max-width: 680px; margin-bottom: 36px; }
.org-eyebrow { margin: 0 0 8px; color: var(--oxer-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.org-main h2 {
  margin: 0;
  color: var(--oxer-navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.org-section-head > p:not(.org-eyebrow), .org-split-text > p:not(.org-eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.org-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 12, 15, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.org-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--oxer-tint);
}
.org-card-icon svg, .org-checks li::before { fill: none; stroke: var(--oxer-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.org-card-icon svg { width: 26px; height: 26px; }
.org-card h3 { margin: 0; color: var(--oxer-navy); font-family: var(--font-name); font-size: 20px; font-weight: 600; }
.org-card p { margin: 10px 0 0; color: #475569; font-size: 15px; line-height: 1.6; }
.org-card ul { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 18px 0 0; list-style: none; }
.org-card li { padding: 5px 10px; border-radius: 999px; color: var(--oxer-navy-2); background: var(--oxer-tint); font-size: 12px; font-weight: 700; }

/* Côté cavaliers */
.org-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: center;
  margin-top: 96px;
  padding: 48px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.org-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.org-checks li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 600; }
.org-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--oxer-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.org-phone {
  justify-self: center;
  width: 250px;
  padding: 12px;
  border-radius: 36px;
  background: var(--oxer-navy);
  box-shadow: 0 30px 60px rgba(14, 10, 12, .3);
}
.org-phone-screen { display: grid; gap: 10px; padding: 22px 14px 26px; border-radius: 26px; background: var(--oxer-page); }
.org-phone-search { padding: 11px 14px; border-radius: 10px; color: var(--ink); background: #fff; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 2px var(--oxer-blue); }
.org-phone-result { padding: 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--oxer-navy-2), var(--oxer-blue)); }
.org-phone-result small { color: var(--oxer-sky); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.org-phone-result div { display: flex; gap: 6px; margin-top: 8px; }
.org-phone-result b { padding: 6px 10px; border-radius: 8px; color: var(--oxer-navy); background: #fff; font-family: var(--font-display); font-size: 20px; }
.org-phone-result b.is-tack { background: #f6c344; }
.org-phone-row { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; }
.org-phone-row span { color: var(--oxer-blue); font-weight: 800; }

/* Étapes */
.org-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.org-steps li { position: relative; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.org-step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--oxer-navy);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}
.org-steps h3 { margin: 0; color: var(--oxer-navy); font-family: var(--font-name); font-size: 19px; font-weight: 600; }
.org-steps p { margin: 8px 0 0; color: #475569; line-height: 1.6; }

/* Appel final */
.org-final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 96px;
  padding: 44px 48px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% -30%, rgba(227, 18, 43, .3), transparent 50%),
    linear-gradient(135deg, var(--oxer-navy) 0%, var(--oxer-navy-2) 62%, var(--oxer-blue) 130%);
}
.org-main .org-final h2 { color: #fff; }
.org-final p { max-width: 560px; margin: 12px 0 0; color: #e8dcdd; line-height: 1.6; }
.org-final .org-actions { margin-top: 0; }

@media (max-width: 960px) {
  .org-intro { grid-template-columns: 1fr; gap: 28px; }
  .org-visual { max-width: 460px; }
  .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-split { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 720px) {
  .org-header-link { display: none; }
  .org-intro { padding: 28px 16px 48px; }
  .org-intro-text > p:not(.public-eyebrow) { font-size: 16px; }
  .org-visual { padding: 30px 0 40px; }
  .org-float-rider { left: 0; }
  .org-float-live { right: 0; }
  .org-main { width: calc(100% - 32px); padding: 48px 0 56px; }
  .org-grid, .org-steps { grid-template-columns: 1fr; }
  .org-section + .org-section, .org-split + .org-section, .org-split, .org-final { margin-top: 64px; }
  .org-split { padding: 24px; }
  .org-final { padding: 30px 24px; }
  .org-actions { width: 100%; }
  .org-cta { flex: 1 1 auto; justify-content: center; }
}

/* Concours warmup : bandeau d'inscription et de résultats. */
.warmup-public-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; width: min(1160px, calc(100% - 32px)); margin: 18px auto 0; padding: 16px 20px; border: 1px solid #e6e1e2; border-radius: 10px; background: #fff; box-sizing: border-box; }
.warmup-public-band strong { display: block; color: #0b0b0e; font-size: 16px; }
.warmup-public-band span { color: #6b7a90; font-size: 14px; }
.warmup-public-band nav { display: flex; flex-wrap: wrap; gap: 8px; }
.warmup-public-band a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid #dbd5d6; border-radius: 8px; color: #0b0b0e; font-weight: 700; text-decoration: none; }
.warmup-public-band a.is-primary { border-color: #d0102a; color: #fff; background: #d0102a; }

/* Responsive téléphone / tablette : rien ne doit dépasser en largeur. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
fieldset { min-width: 0; }
img, video { max-width: 100%; }
@media (max-width: 860px) {
  /* iPhone zoome automatiquement sur un champ dont le texte fait moins de 16 px,
     ce qui oblige ensuite à se déplacer de côté : on garde 16 px sur mobile. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: 16px !important; }
}
/* ==========================================================================
   Thème « rouge et noir » (version mixte) :
   - en-têtes en verre dépoli sur un fond noir traversé de lueurs rouges ;
   - contenu sur fond clair, lisible en plein soleil ;
   - le rouge est réservé aux actions (boutons, liens) et aux repères,
     l'état « en cours » reste vert pour ne pas ressembler à une alerte.
   ========================================================================== */
:root {
  --rn-black: #07070a;
  --rn-ink: #121214;
  --rn-red: #e3122b;
  --rn-red-dark: #b80d22;
  --rn-red-soft: #ff8d99;
  --rn-glass: rgba(255, 255, 255, .08);
  --rn-glass-line: rgba(255, 255, 255, .18);
  --oxer-tint: #f3f0f0;
  --rn-hero:
    radial-gradient(45% 85% at 92% -15%, rgba(227, 18, 43, .78) 0%, transparent 70%),
    radial-gradient(38% 75% at -2% 75%, rgba(150, 8, 24, .62) 0%, transparent 70%),
    radial-gradient(40% 60% at 62% 125%, rgba(255, 60, 80, .32) 0%, transparent 70%),
    #07070a;
}

.portal-hero,
.contest-hero,
.live-event-hero,
.org-final { background: var(--rn-hero); }
.portal-hero,
.live-event-hero { isolation: isolate; }

/* Bulle de verre décorative de l'en-tête d'accueil. */
.portal-hero::before {
  position: absolute;
  z-index: -1;
  top: 96px;
  right: max(24px, calc((100vw - 1100px) / 2));
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .42) 0, rgba(255, 255, 255, .08) 38%, transparent 62%),
    radial-gradient(circle at 70% 85%, rgba(255, 90, 105, .35), transparent 55%),
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 2px 26px rgba(255, 255, 255, .22), inset 0 -18px 40px rgba(227, 18, 43, .25), 0 24px 70px rgba(227, 18, 43, .35);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  content: "";
  pointer-events: none;
}
.live-event-hero::after { border-color: rgba(255, 255, 255, .06); box-shadow: 0 0 80px rgba(227, 18, 43, .25); }

/* Logo : tuile en verre, logo passé en blanc. */
.portal-hero .public-brand > span:first-child {
  border: 1px solid var(--rn-glass-line);
  background: var(--rn-glass);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.portal-hero .public-brand > span:first-child img { padding: 3px; filter: brightness(0) invert(1); }
.portal-hero .public-brand small { color: var(--rn-red-soft); }
.portal-hero .admin-login-link,
.portal-hero .language-current {
  border: 1px solid var(--rn-glass-line);
  background: var(--rn-glass);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.portal-hero .public-eyebrow,
.org-intro .public-eyebrow,
.contest-hero .contest-back,
.live-event-hero .contest-back,
.live-event-hero .public-section-eyebrow,
.contest-identity p,
.contest-identity span,
.contest-hero-note { color: var(--rn-red-soft); }

/* Champs de recherche en verre + bouton rouge lumineux. */
.portal-hero .event-search input,
.hero-lookup-form input {
  border: 1px solid var(--rn-glass-line);
  color: #fff;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
          backdrop-filter: blur(20px) saturate(150%);
}
.portal-hero .event-search input::placeholder,
.hero-lookup-form input::placeholder { color: rgba(255, 255, 255, .62); }
.portal-hero .event-search input:focus,
.hero-lookup-form input:focus { border-color: rgba(255, 141, 153, .8); box-shadow: 0 0 0 3px rgba(227, 18, 43, .3); }
.portal-hero .event-search button,
.hero-lookup-form button,
.lookup-form button {
  color: #fff;
  background: var(--rn-red);
  box-shadow: 0 0 26px rgba(227, 18, 43, .55);
}
.portal-hero .event-search button:hover,
.hero-lookup-form button:hover,
.lookup-form button:hover { color: #fff; background: var(--rn-red-dark); box-shadow: 0 0 32px rgba(227, 18, 43, .7); }
/* Les suggestions de cavaliers restent des boutons de liste, pas des boutons rouges. */
.lookup-form .rider-suggestion,
.lookup-form .rider-suggestion:hover,
.lookup-form .rider-suggestion.is-active { color: var(--rn-ink); background: transparent; box-shadow: none; }
.lookup-form .rider-suggestion:hover,
.lookup-form .rider-suggestion.is-active { background: #f6eff0; }

/* Liens d'en-tête en verre (réseaux, documents). */
.contest-socials a,
.live-event-meta span {
  border-color: var(--rn-glass-line);
  background: var(--rn-glass);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.org-cta.is-ghost { border-color: var(--rn-glass-line); background: var(--rn-glass); }
.org-cta:not(.is-ghost) { color: #fff; background: var(--rn-red); box-shadow: 0 0 26px rgba(227, 18, 43, .45); }
.org-cta:not(.is-ghost):hover { background: var(--rn-red-dark); }

/* Contenu clair : repères noirs, le rouge reste ponctuel. */
.contest-public-main .public-section { border-top-color: var(--rn-ink); }
.portal-event-card.is-ongoing { outline-color: var(--rn-ink); }
.live-ranking-section tbody td:first-child span { --rank-bg: #1c1c21; }
.live-ranking-section tr[data-rank=""] td:first-child span { --rank-bg: #f1eeee; --rank-fg: #5f5b5d; }
.public-program .program-tab.is-active { background: var(--rn-ink); }
.public-program-meta span.is-arena { background: var(--rn-ink); }
/* Pastilles d'information du programme (barème, partants) : texte neutre, pas rouge « alerte ». */
.public-program-meta span { color: #3a3a40; }
.program-tab:hover { background: #ece8e9; }
/* Classement : en-têtes et noms des chevaux en gris, pour que le rouge ne ressemble pas à « éliminé ». */
.live-ranking-table th { color: #5f5b5d; }
.live-ranking-table td.live-couple .live-horse { color: #6e676a; }
.live-ranking-table td:nth-child(4),
.live-upcoming-section tbody td:first-child span { color: var(--rn-ink); }
/* Points / temps toujours sur une ligne (« Sans-faute », « 18 (10) »). */
.live-table-metric { white-space: nowrap; }
/* Losange de classement : un peu plus grand et chiffres plus petits pour que 49, 50, 100… tiennent. */
@media (min-width: 721px) {
  .live-ranking-section tbody td:first-child span { font-size: 16px; }
  .live-ranking-section tbody td:first-child span::before { inset: 4px; }
}

/* Box trouvé : seul bloc sombre de la partie claire, numéro en rouge. */
.lookup-result-panel.personal-boxes {
  color: #f6f1f1;
  background: var(--rn-ink);
  box-shadow: 0 14px 34px rgba(18, 18, 20, .22);
}
.lookup-result-panel.personal-boxes > span { color: var(--rn-red-soft); }
.lookup-result-panel.personal-boxes strong { color: #fff; }
.lookup-result-panel.personal-boxes .box-build { color: #b9a9ab; }

@media (max-width: 900px) {
  .portal-hero::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .portal-hero .event-search input,
  .hero-lookup-form input,
  .portal-hero .public-brand > span:first-child,
  .portal-hero .admin-login-link { background: #1c1c21; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Logo Oxer Events (logo-oxer-mark.svg) : la tuile rouge fait partie du SVG,
   donc pas de fond, de bordure ni de filtre autour. */
.public-brand > span:first-child,
.portal-hero .public-brand > span:first-child,
.brand-mark,
.site-footer-logo,
.contact-card-logo {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
img[src$="logo-oxer-mark.svg"] { padding: 0 !important; filter: none !important; }
.site-footer-logo img[src$="logo-oxer-mark.svg"],
.contact-card-logo img[src$="logo-oxer-mark.svg"] { width: 100%; height: 100%; }
/* Bandeau d'accueil : premier concours offert aux organisateurs. */
.org-offer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px 16px;
  background: var(--oxer-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.org-offer-band:hover .org-offer-cta,
.org-offer-band:focus-visible .org-offer-cta { background: #fff; color: var(--oxer-blue); }
.org-offer-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.org-offer-cta {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
@media (max-width: 520px) {
  .org-offer-band { font-size: 13px; }
  .org-offer-tag { display: none; }
}
