/*
 * Public club calendar — the Performance Center's « Courtside » identity
 * (club black, yellow #FFD24D), copied rather than shared on purpose: this site
 * is read on a phone by the whole club, the Performance Center on a desk by the
 * staff, and the two sheets will drift apart. Same rule as there: the HTML
 * only sets classes, this sheet decides the style.
 */

/* ---- Urbanist variable (100-900), latin + latin-ext subsets ---- */
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Urbanist;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Urbanist;
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/urbanist-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Palette ---- */
:root {
  --yellow: #ffd24d;
  --ink: #121212;
  --bg: #f4f3ef;
  --card: #fff;
  --muted: #6e6e68;
  --rule: #e3e1d9;
  --black-2: #141414;
  --black-rule: #2a2a2a;
  --black-muted: #8d8d86;
  --green: #1d7c32;
  --red: #b3261e;
  /* Dark amber: the family of the club yellow, but legible on white (7:1). */
  --link: #6d5400;
}

* { box-sizing: border-box; margin: 0; }
html {
  color-scheme: light;
  /* iOS inflates text sizes in landscape without this, which pushes widths
     beyond the viewport. */
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: Urbanist, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  /* Safety rail: no residual overflow may create horizontal scrolling of the
     page — the only legitimate X scrolling lives INSIDE the table cards. */
  overflow-x: clip;
}
html { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
/* A link is visible without hovering it: amber colour + discreet underline.
   Hovering only reinforces — no yellow springing out. */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: #000; text-decoration-color: #000; }

/* The `hidden` attribute must win over the `display` of the rows: the script
   filters the calendar with it. */
[hidden] { display: none !important; }

/* ---- Header (black): the brand and two links ---- */
.header { background: #000; color: #fff; }
.header-inner {
  max-width: 64rem; margin: 0 auto; padding: 0.6rem 1.2rem;
  display: flex; align-items: center; gap: 0 1.4rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; font-weight: 800;
  white-space: nowrap; color: #fff; text-decoration: none;
}
.brand:hover { color: #fff; }
.logo { width: 36px; height: 36px; border-radius: 50%; }
.header-nav {
  margin-left: auto; display: flex; gap: 1.1rem;
  font-size: 0.85rem; font-weight: 700;
}
.header-nav a {
  color: #cfcfc8; text-decoration-color: color-mix(in srgb, #cfcfc8 45%, transparent);
  white-space: nowrap;
}
.header-nav a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* ---- Hero (black, slanted yellow rule) ---- */
.hero { background: #000; color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -3rem; top: 0; bottom: 0; width: 11rem;
  background: linear-gradient(115deg, transparent 46%, var(--yellow) 46%, var(--yellow) 54%, transparent 54%);
}
.hero-inner {
  max-width: 64rem; margin: 0 auto; padding: 2.1rem 1.2rem 1.9rem;
  position: relative; z-index: 1;
}
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--yellow);
}
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem); font-weight: 900;
  letter-spacing: -0.015em; text-transform: uppercase; text-wrap: balance;
  margin: 0.2rem 0 0.4rem; max-width: 46rem;
}
.hero .subtitle { color: var(--black-muted); font-size: 0.92rem; max-width: 40rem; }
.hero .subtitle:empty { display: none; }

/* ---- Content (light) ---- */
main { max-width: 64rem; margin: 0 auto; padding: 0 1.2rem 4rem; }
h3 { margin: 1.4rem 0 0.5rem; }
.note { color: var(--muted); font-size: 0.8rem; font-style: italic; }

/* Action button: black pill ringed with yellow — legible on a light background,
   on the black of the hero and on the yellow rule. */
.button {
  display: inline-block; padding: 0.5rem 1.25rem;
  background: #000; color: var(--yellow); font-weight: 800; font-size: 0.88rem;
  border: 2px solid var(--yellow); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--yellow); color: #000; text-decoration: none; }

.dot {
  display: inline-block; width: 0.58em; height: 0.58em; border-radius: 50%;
  margin-right: 0.5em;
}
.dot-v { background: var(--green); }
.dot-d { background: var(--red); }
.dot-n { background: var(--muted); }

/* ---- Notice : un fait que le lecteur doit voir avant les chiffres ----
   Réservé à ce qui change la lecture de toute une page (une saison écartée),
   là où `.warnings` signale une réserve sur un chiffre précis. */
.notice {
  border-left: 3px solid var(--yellow);
  background: var(--card);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.notice-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.notice p { margin: 0.25rem 0; }

/* ---- Calendar (team « Calendrier » tab, club calendar) ----
   Rows and not a table: read on a phone, looking for the gym. Three zones —
   when, who and where, then the score or the tip-off — and the venue wraps
   under the opponent instead of widening the page. */
.fixtures {
  list-style: none; padding: 0; margin: 0 0 0.8rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden;
}
.fixture {
  display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto;
  gap: 0.15rem 0.9rem; align-items: center;
  padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.fixture:last-child { border-bottom: none; }
/* Grouped by day, the first zone only holds the tip-off time. */
.fixtures-by-day .fixture { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
.fixture-when { font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.fixture-round { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.fixture-main { min-width: 0; }
.fixture-teams { display: block; font-weight: 700; }
.fixture-past .fixture-teams { font-weight: 600; }
.fixture-venue { display: block; font-size: 0.78rem; color: var(--muted); }
a.fixture-venue { color: var(--link); }
.fixture-result { text-align: right; font-weight: 800; white-space: nowrap; }
.fixture-upcoming .fixture-result { font-size: 1.02rem; }
/* « Today » of the build, between what is played and what is to come. */
.fixtures-divider {
  padding: 0.3rem 0.9rem; background: #000; color: var(--yellow);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.fixture-sep { color: var(--muted); font-weight: 400; margin: 0 0.15em; }
.side {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-right: 0.4em;
}
h3.day::first-letter, .next-when::first-letter { text-transform: uppercase; }
h3.day { color: var(--ink); text-transform: none; font-size: 0.95rem; }

.next-match {
  margin: 1.6rem 0 0; padding: 1rem 1.1rem;
  background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--yellow);
  border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.next-match p { margin: 0 0 0.3rem; }
.next-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.next-when { font-size: 1.25rem; font-weight: 900; }
.next-venue { color: var(--muted); font-size: 0.9rem; }
.next-match .button { margin-top: 0.4rem; white-space: normal; }

/* Three ways to subscribe, each under the name of whom it is for: the audience
   comes first, it is what the reader looks for. */
.subscribe { margin: 1.4rem 0 0; }
.subscribe-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.subscribe-options { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.subscribe-options li { margin: 0 0 0.7rem; }
.subscribe-for { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.subscribe-options a:not(.button) { font-weight: 700; font-size: 0.88rem; }
.subscribe .button { white-space: normal; }

/* ---- Team picker (home page) ----
   Big targets: it is ticked with a thumb. One row per team, the label first
   (what the club says), the competition after (what the FFBB says). */
.picker { margin-top: 1.6rem; max-width: 40rem; }
.picker-group {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--card);
  padding: 0.3rem 0.9rem 0.5rem; margin: 0 0 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.picker-group legend {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0 0.4rem;
}
.picker-team {
  display: grid; grid-template-columns: auto 3.6rem minmax(0, 1fr); align-items: center;
  gap: 0 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.picker-team:last-child { border-bottom: none; }
.picker-label { font-weight: 900; font-size: 1.05rem; }
.picker-competition { color: var(--muted); font-size: 0.85rem; }
.picker input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: #000; }
.picker-option {
  display: flex; align-items: center; gap: 0.7rem; font-weight: 700;
  margin: 0.4rem 0 1.2rem; cursor: pointer;
}
.picker-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.picker-actions .button { font: inherit; font-weight: 800; font-size: 0.95rem; cursor: pointer; }
.picker-all { font-weight: 800; }

/* ---- Calendar page ---- */
.selection-actions { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 1.4rem 0 0; font-weight: 700; font-size: 0.9rem; }
/* Anti-flicker: the whole season would show for an instant before the script
   keeps the selection. The veil lifts by itself after a second and a half,
   should the script never run. */
.js .calendar:not(.filtered) { visibility: hidden; animation: reveal 0s 1.5s forwards; }
@keyframes reveal { to { visibility: visible; } }
.fixtures-split {
  margin: 1.8rem 0 0; padding: 0.3rem 0.9rem; display: inline-block;
  background: #000; color: var(--yellow); border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}

.footer {
  max-width: 64rem; margin: 0 auto; padding: 1rem 1.2rem 2.5rem;
  font-size: 0.76rem; color: var(--muted);
}

/* ---- Narrow screens ---- */
@media (max-width: 40rem) {
  .hero::after { display: none; }
  .hero-inner { padding: 1.4rem 0.9rem 1.3rem; }
  .header-inner { padding: 0.5rem 0.9rem; gap: 0 1rem; }
  /* The logo and the two links only fit side by side once the site's name
     goes — it stays for screen readers. */
  .brand-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .header-nav { gap: 1rem; font-size: 0.8rem; }
  main { padding: 0 0.9rem 3rem; }
  .footer { padding: 1rem 0.9rem 2rem; }

  .fixture { grid-template-columns: 4.7rem minmax(0, 1fr) auto; gap: 0.1rem 0.6rem; padding: 0.5rem 0.65rem; }
  .fixtures-by-day .fixture { grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .fixture-when { font-size: 0.8rem; }
  .fixtures-divider { padding: 0.3rem 0.65rem; }
  .next-when { font-size: 1.1rem; }
  .picker-team { grid-template-columns: auto 3.2rem minmax(0, 1fr); }
}
