@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0d1015;
  --surface: rgba(21, 25, 32, 0.86);
  --surface-2: rgba(28, 33, 42, 0.9);
  --surface-3: #262c37;
  --line: #2b313c;
  --text: #eceef2;
  --muted: #98a1b0;
  --jersey: #f1f2f4;
  --ink: #0d1015;
  --red: #e3262f;
  --red-soft: #3a1518;
  --blue: #3157d8;
  --green: #2f9e58;
  --green-deep: #1f6e3d;
  --green-soft: #12291c;
  --amber: #e2a529;
  --amber-soft: #33270f;
  --focus: #7d9bff;
  --radius-s: 6px;
  --radius-m: 10px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.boot { padding: 4rem 1rem; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Liseré tricolore, repris du logo */
.tricolore { height: 4px; background: linear-gradient(90deg, var(--blue) 0 33.33%, var(--jersey) 33.33% 66.66%, var(--red) 66.66%); }

/* ---------- Boutons et champs ---------- */
button, .btn {
  font: 600 0.95rem/1 var(--body);
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  padding: 0.7rem 1rem;
  min-height: 44px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none;
}
button:hover:not(:disabled) { background: var(--surface-3); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--jersey); color: var(--ink); border-color: var(--jersey); }
.btn-primary:hover:not(:disabled) { background: #ffffff; }
.btn-go { background: var(--green); border-color: var(--green); color: #fff; }
.btn-go:hover:not(:disabled) { background: #36b366; }
.btn-danger { color: #ff8c91; border-color: #5a2328; background: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
.btn-small { min-height: 34px; padding: 0.45rem 0.7rem; font-size: 0.85rem; }

label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 0.35rem; }
input, select, textarea {
  font: 400 1rem/1.4 var(--body);
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.65rem 0.75rem;
  min-height: 44px;
}
textarea { min-height: 220px; resize: vertical; font-variant-numeric: tabular-nums; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; }
.field + .field { margin-top: 1rem; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }
.error-text { color: #ff8c91; font-size: 0.9rem; }

/* ---------- Connexion : visuel à gauche, panneau à droite ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(380px, 460px); }
.auth-visual { position: relative; overflow: hidden; background: #0a0d12; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; }
.blob-blue { width: 46vw; height: 46vw; left: -14vw; top: -18vw; background: rgba(49, 87, 216, 0.38); }
.blob-red { width: 40vw; height: 40vw; right: -12vw; bottom: -16vw; background: rgba(227, 38, 47, 0.28); }
.blob-white { width: 22vw; height: 22vw; left: 8vw; bottom: -10vw; background: rgba(241, 242, 244, 0.06); }
.auth-season {
  position: absolute; right: 4%; top: 6%; z-index: -1;
  font: 700 clamp(7rem, 17vw, 15rem)/0.85 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(241, 242, 244, 0.09);
  letter-spacing: -0.01em; user-select: none;
}

.mock {
  position: absolute; left: 50%; top: 52%; width: min(560px, 62%);
  transform: translate(-50%, -50%) perspective(1400px) rotateY(-14deg) rotateX(6deg) rotate(-3deg);
  background: #151a22; border: 1px solid #2a313d; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #232934; background: #12161d; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2f3643; }
.mock-bar span { margin-left: 10px; font-size: 0.78rem; color: #8b94a3; }
.mock-body { display: grid; grid-template-columns: 64px 1fr; min-height: 250px; }
.mock-side { background: linear-gradient(180deg, #1c2a5c, #121a38); padding: 16px 12px; display: grid; align-content: start; gap: 10px; }
.mock-side span { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.mock-side .dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); margin-bottom: 8px; }
.mock-main { padding: 16px; display: grid; gap: 14px; align-content: start; }
.mock-hero { border-radius: 10px; padding: 14px 16px; background: linear-gradient(100deg, #3157d8, #23338c 60%, #6b1e35); display: grid; gap: 2px; }
.mock-hero b { font: 700 1.35rem/1 var(--display); color: #fff; }
.mock-hero span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); }
.mock-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-grid span { height: 18px; border-radius: 3px; background: #222834; border: 1px solid #2b313c; }
.mock-grid span.on { background: repeating-linear-gradient(90deg, var(--green) 0 6px, #2a9050 6px 12px); border-color: var(--green); }
.mock-list { display: grid; gap: 6px; }
.mock-fixture { display: flex; gap: 8px; align-items: center; background: #1c212a; border-radius: 6px; padding: 6px 8px; font-size: 0.75rem; color: #c7ccd5; }
.mock-fixture b { font-family: var(--display); color: var(--green); }

.tile {
  position: absolute; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: #161b23; border: 1px solid #2a313d; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.tile svg { width: 26px; height: 26px; padding: 7px; box-sizing: content-box; border-radius: 50%; }
.tile-1 { left: 15%; top: 24%; color: #8fa8ff; } .tile-1 svg { background: rgba(49, 87, 216, 0.18); }
.tile-2 { right: 14%; top: 18%; color: #f2f3f5; } .tile-2 svg { background: rgba(241, 242, 244, 0.1); }
.tile-3 { left: 22%; bottom: 14%; color: #6fd796; } .tile-3 svg { background: rgba(47, 158, 88, 0.18); }
.tile-4 { right: 18%; bottom: 20%; color: #ff8c91; } .tile-4 svg { background: rgba(227, 38, 47, 0.18); }
.auth-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(22, 27, 35, 0.9); border: 1px solid #2a313d; font-size: 0.85rem; font-weight: 500; color: #dfe3ea;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.auth-chip .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 158, 88, 0.2); }
.chip-a { left: 30%; top: 72%; }
.chip-b { right: 26%; top: 30%; }

.auth-panel { background: #0f1218; border-left: 1px solid var(--line); display: flex; align-items: center; padding: 2.5rem 2.25rem; }
.auth-panel-inner { width: 100%; }
.auth-logo { display: block; width: 150px; margin: 0 0 1.25rem; filter: drop-shadow(0 14px 30px rgba(227, 38, 47, 0.16)); }
.auth-kicker { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.auth-tag { font: 600 0.82rem/1 var(--body); padding: 0.4rem 0.65rem; border-radius: 999px; background: #18213f; color: #a9bcff; border: 1px solid #2a3a78; }
.auth-tag-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.auth-title { font-size: 1.85rem; color: #9fb4ff; margin-bottom: 0.4rem; }
.auth-lead { color: var(--muted); margin-bottom: 1.6rem; max-width: 34ch; }
.auth form .field + .field { margin-top: 1rem; }
.btn-auth {
  width: 100%; margin-top: 1.25rem; border: 0; color: #fff; font-size: 1rem;
  background: linear-gradient(90deg, #3157d8, #2a3fa8 55%, #b4213a);
}
.btn-auth:hover:not(:disabled) { background: linear-gradient(90deg, #3a62ea, #3047bd 55%, #c8263f); }
.auth-help { margin-top: 1.1rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { border-left: 0; justify-content: center; min-height: 100vh; background: radial-gradient(70% 40% at 50% 0%, rgba(49, 87, 216, 0.22), transparent 70%), #0f1218; }
  .auth-panel-inner { max-width: 420px; }
  .auth-logo { margin: 0 auto 1.25rem; width: 170px; }
  .auth-kicker { justify-content: center; }
  .auth-title, .auth-lead, .auth-help { text-align: center; margin-left: auto; margin-right: auto; }
}

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(13, 16, 21, 0.92); backdrop-filter: blur(10px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: rgba(13, 16, 21, 0.92); backdrop-filter: blur(10px); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em; }
.who { text-align: right; line-height: 1.2; }
.who b { display: block; font-family: var(--display); font-size: 1.05rem; }
.who span { font-size: 0.8rem; color: var(--muted); }

main { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 7rem; }

/* ---------- Bandeau de semaine ---------- */
.weekbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1.25rem; }
.weekbar .field { min-width: 220px; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ouverte { color: var(--amber); background: var(--amber-soft); border-color: #5b4517; }
.status-planifiee { color: #9fb4ff; background: #182042; border-color: #2a3a78; }
.status-publiee { color: #6fd796; background: var(--green-soft); border-color: #24502f; }
.status-pret { color: #6fd796; background: var(--green-soft); border-color: #24502f; }
.status-encours { color: var(--amber); background: var(--amber-soft); border-color: #5b4517; }
.status-rien { color: var(--muted); background: var(--surface-2); }
.status-inactif { color: #6b7280; background: transparent; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem; }
.panel-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.notice { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 0.8rem 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.notice-ok { border-left-color: var(--green); background: var(--green-soft); }
.notice-info { border-left-color: var(--blue); background: #141c38; }
.notice-bad { border-left-color: var(--red); background: var(--red-soft); }

/* ---------- Adversaires ---------- */
.opponents { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Grille de disponibilités (le cœur du site) ---------- */
.grid-wrap { overflow-x: auto; }
.avail {
  display: grid;
  grid-template-columns: 4.2rem repeat(4, minmax(64px, 1fr));
  gap: 4px;
  user-select: none;
  -webkit-user-select: none;
  min-width: 320px;
}
.avail .dayhead {
  font-family: var(--display); text-align: center; padding: 0.35rem 0.2rem 0.5rem; line-height: 1.05;
  background: none; border: 0; min-height: 0; flex-direction: column; gap: 0.1rem; color: var(--text); border-radius: var(--radius-s);
}
.avail .dayhead b { font-size: 1.15rem; display: block; }
.avail .dayhead small { font-family: var(--body); color: var(--muted); font-size: 0.78rem; }
.avail button.dayhead:hover:not(:disabled) { background: var(--surface-2); }
.avail .time { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; padding-right: 0.4rem; font-variant-numeric: tabular-nums; }
.cell {
  min-height: 40px; padding: 0; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background-color 90ms ease, border-color 90ms ease;
}
.cell:hover:not(:disabled) { background: var(--surface-3); }
.cell[aria-pressed="true"] {
  border-color: var(--green);
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, #2a9050 12px 24px);
}
.cell[aria-pressed="true"]:hover:not(:disabled) { background: repeating-linear-gradient(90deg, #36b366 0 12px, #2f9e58 12px 24px); }
.cell:disabled { cursor: default; opacity: 1; }
.avail.locked .cell[aria-pressed="false"] { background: transparent; border-style: dashed; }
.avail.locked .cell[aria-pressed="true"] { opacity: 0.85; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: rgba(21, 25, 32, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.actionbar-inner { max-width: 1120px; margin: 0 auto; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.dirty { color: var(--amber); font-size: 0.9rem; font-weight: 500; }

/* ---------- Planning ---------- */
.my-matches { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fixture { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0.8rem 0.9rem; }
.fixture .when { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.fixture .when small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 0.35rem; }
.fixture .vs { margin-top: 0.35rem; font-weight: 500; }
.fixture.unset .when { color: var(--amber); font-size: 1.15rem; }

.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 0.75rem; }
.board-day h3 { padding-bottom: 0.4rem; border-bottom: 2px solid var(--line); margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: baseline; }
.board-day h3 small { font-family: var(--body); color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.board-item { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.5rem; align-items: start; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.board-item .t { font-family: var(--display); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.board-item .m { font-size: 0.92rem; line-height: 1.3; }
.board-item.mine .m { font-weight: 600; color: #fff; }
.board-item.mine .t { color: var(--green); }
.board-item.manual .t::after { content: " •"; color: var(--amber); }
.board-empty { color: var(--muted); font-size: 0.9rem; padding: 0.5rem 0; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.82rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.club { font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.ok-line td:first-child { color: #6fd796; }
.bad-line td { color: #ff8c91; }

/* ---------- Onglets admin ---------- */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; scrollbar-width: none; }
.tabs a { padding: 0.7rem 0.9rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--red); }

.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width 300ms ease; }

.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.5rem; }
.club-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.6rem 0.75rem; display: grid; gap: 0.25rem; }
.club-card .name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.club-card .meta { color: var(--muted); font-size: 0.82rem; }
.club-card.is-ready { border-color: #24502f; }
.club-card.is-off { opacity: 0.5; }

.audit-item { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.audit-item time { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.audit-item .what b { font-weight: 600; }
.audit-item .detail { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; word-break: break-word; }
.audit-item.fail .what b { color: #ff8c91; }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* ---------- Fenêtres ---------- */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem; width: min(440px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.secret { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.06em; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 0.75rem; text-align: center; user-select: all; -webkit-user-select: all; }

#toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 0.5rem; width: min(440px, calc(100vw - 2rem)); pointer-events: none; }
.toast { background: var(--jersey); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius-s); font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); animation: toast-in 160ms ease-out; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .board { grid-template-columns: 1fr; }
  .brand strong { display: none; }
  .avail { grid-template-columns: 3.4rem repeat(4, minmax(56px, 1fr)); gap: 3px; }
  .avail .time { font-size: 0.95rem; }
  .cell { min-height: 38px; }
  .audit-item { grid-template-columns: 1fr; gap: 0.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Écussons des clubs */
.crest { flex: none; border-radius: 50%; object-fit: contain; vertical-align: middle; }
.crest-initials { display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; color: #f1f2f4; border: 1px solid; letter-spacing: 0.02em; line-height: 1; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; }
.fixture .vs { display: flex; align-items: center; gap: 0.45rem; }

/* Rythme vertical du contenu */
main > * + * { margin-top: 1rem; }
main > .weekbar + * { margin-top: 0; }

.topbar button { white-space: nowrap; }
.avail { max-width: 860px; }
@media (max-width: 560px) {
  .topbar-inner { gap: 0.4rem; padding: 0.5rem 0.75rem; }
  .who { display: none; }
  .topbar .btn-small { padding: 0.4rem 0.55rem; font-size: 0.8rem; }
}

/* Logo de la ligue en filigrane, derrière tout le site */
.backdrop {
  position: fixed;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(92vw, 720px);
  aspect-ratio: 1218 / 1292;
  max-height: 86vh;
  background: url("/logo-vft.png") no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
body.is-login .backdrop { display: none; }
#app { position: relative; z-index: 1; }
.brand strong { font-size: 1.35rem; letter-spacing: 0.03em; }
@media (max-width: 560px) {
  .brand strong { display: inline; font-size: 1.05rem; }
  .backdrop { opacity: 0.08; }
}

/* Publication Discord : aperçu fidèle au thème sombre de Discord */
.dc-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.dc-card-head { padding: 0.6rem 0.8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dc-msg { background: #313338; color: #dbdee1; padding: 0.9rem 1rem; font: 400 0.95rem/1.45 "gg sans", "Noto Sans", var(--body); max-height: 420px; overflow: auto; }
.dc-line { min-height: 1.3em; white-space: pre-wrap; word-break: break-word; }
.dc-gap { min-height: 0.6em; }
.dc-h1 { font-size: 1.45rem; font-weight: 700; color: #f2f3f5; margin: 0.15rem 0 0.25rem; }
.dc-h2 { font-size: 1.15rem; font-weight: 700; color: #f2f3f5; margin: 0.5rem 0 0.15rem; }
.dc-sub { font-size: 0.78rem; color: #949ba4; }
.dc-li { padding-left: 0.4rem; }
.dc-msg code { background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; padding: 0.05rem 0.3rem; font-family: Consolas, "Courier New", monospace; font-size: 0.85rem; }
.dc-mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-link { color: #00a8fc; }
@media (max-width: 560px) {
  .actionbar-inner > .spacer { flex-basis: 100%; height: 0; }
  .actionbar-inner > button { flex: 1 1 0; }
}
