/* =====================================================================
   Handball Hauts-de-France
   Concept : une salle de handball un soir de match. Bleu nuit sous les
   projecteurs, tracé du terrain (zone des 6 m, ligne des 9 m en
   pointillés), jaune des lignes de jeu, scores en grands chiffres
   comme sur un habillage télé.
   ===================================================================== */
:root {
  /* Couleurs */
  --night: #0a1338;          /* salle plongée dans le noir */
  --night-2: #12205a;        /* tribunes */
  --court: #1f46c8;          /* sol de jeu bleu */
  --court-soft: #3b63e0;
  --line: #ffc629;           /* lignes de terrain jaunes */
  --line-ink: #2a2000;
  --bg: #eef1f7;             /* page claire */
  --card: #ffffff;
  --card-2: #f6f8fc;
  --ink: #0d1430;
  --muted: #5b6587;
  --rule: #e0e5f0;
  --soft: #e9edf6;
  --win: #10a067;
  --win-soft: #e2f6ee;
  --miss: #e0414f;
  --miss-soft: #fde8ea;
  --gold: #ffc629;
  --silver: #c3cde0;
  --bronze: #dc9a5c;
  --on-night: #f4f6ff;
  --on-night-muted: rgba(226, 232, 255, 0.68);
  --shadow: 0 1px 2px rgba(13, 20, 48, 0.06), 0 8px 24px -12px rgba(13, 20, 48, 0.18);
  --shadow-lift: 0 2px 4px rgba(13, 20, 48, 0.06), 0 18px 40px -18px rgba(13, 20, 48, 0.35);
  /* Typographie */
  --display: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, sans-serif;
  /* Mesures */
  --radius: 14px;
  --radius-sm: 9px;
  --nav-h: 66px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #070d28; --card: #0f1a45; --card-2: #13204f; --ink: #eef1ff; --muted: #a3acd0; --rule: #1f2c63;
    --soft: #172457; --win: #34c98c; --win-soft: #0f3a30; --miss: #ff6b77; --miss-soft: #3d1626;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 44px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #070d28; --card: #0f1a45; --card-2: #13204f; --ink: #eef1ff; --muted: #a3acd0; --rule: #1f2c63;
  --soft: #172457; --win: #34c98c; --win-soft: #0f3a30; --miss: #ff6b77; --miss-soft: #3d1626;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 20px 44px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--night); z-index: 40; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--line); color: var(--line-ink); padding: 8px 12px; z-index: 60; border-radius: 6px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
::selection { background: var(--line); color: var(--line-ink); }

/* Grain très léger sur les zones sombres, comme une photo de salle */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- en-tête */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--on-night);
}
.top-inner {
  max-width: var(--wrap); margin: 0 auto; padding-block: 12px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark rect { fill: var(--court); }
.brand-mark path { fill: none; stroke: var(--line); stroke-width: 2.4; stroke-linecap: round; }
.brand-mark .dash { stroke: rgba(255, 255, 255, 0.75); stroke-dasharray: 3 3.2; stroke-width: 1.8; }
.brand-text { display: flex; flex-direction: column; line-height: 0.88; }
.brand-main { font: 800 21px/0.9 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.brand-region { font: 700 14px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--line); margin-top: 3px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: color-mix(in srgb, var(--night) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--on-night-muted); font: 600 12.5px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 160ms;
}
.nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nav a[aria-current='page'] { color: #fff; }
.nav a[aria-current='page'] svg { stroke: var(--line); }
.nav a[aria-current='page']::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px;
  background: var(--line); border-radius: 0 0 3px 3px; box-shadow: 0 0 14px rgba(255, 198, 41, 0.7);
}
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,0.14); font: 700 11px/1 var(--label); color: #fff; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav a[aria-current='page'] .nav-avatar { box-shadow: 0 0 0 2px var(--line); }
#nav-me-label { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .top { background: color-mix(in srgb, var(--night) 86%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
  .nav { position: static; display: flex; height: auto; padding: 0; background: none; border: 0; gap: 2px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav a { flex-direction: row; gap: 8px; font-size: 15px; padding: 10px 14px; border-radius: 10px; }
  .nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
  .nav a svg { width: 18px; height: 18px; }
  .nav a[aria-current='page']::before { top: auto; bottom: -13px; }
  #nav-me-label { max-width: 140px; }
  .brand-main { font-size: 24px; }
}

.demo-banner {
  background: var(--line); color: var(--line-ink); font: 600 13.5px/1.35 var(--body); text-align: center;
  padding-block: 7px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}

/* ---------------------------------------------------------------- bandeau "salle" */
.hero-slot:empty { display: none; }
.arena {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(60% 90% at 18% -10%, rgba(80, 120, 255, 0.45), transparent 60%),
    radial-gradient(50% 80% at 85% -20%, rgba(255, 198, 41, 0.16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.arena-court { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arena-court .c { fill: none; stroke: rgba(170, 195, 255, 0.24); stroke-width: 3; }
.arena-court .c-strong { stroke: rgba(255, 198, 41, 0.55); }
.arena-court .c-dash { stroke-dasharray: 9 9; }
.arena-court .floor { fill: rgba(31, 70, 200, 0.18); }
.arena-court .draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.2s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.arena-court .draw.c-dash { stroke-dasharray: 9 9; stroke-dashoffset: 0; animation: fadein 1.4s 1.2s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.arena-inner {
  position: relative; max-width: var(--wrap); margin: 0 auto;
  padding-block: 34px 30px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.arena .kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--line); margin: 0 0 12px; }
.arena .kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.arena h1 {
  font: 900 clamp(46px, 12vw, 96px)/0.86 var(--display); text-transform: uppercase; letter-spacing: 0.005em;
  max-width: 12ch; margin: 0; text-shadow: 0 10px 40px rgba(5, 10, 40, 0.6);
}
.arena .arena-lede { color: var(--on-night-muted); max-width: 52ch; margin: 16px 0 0; font-size: 17px; }

.hero-grid { display: grid; gap: 26px; align-items: end; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; } .arena-inner { padding-block: 56px 48px; } }

.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.hero-stats span { font: 600 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }

/* Match à la une : un écran de tableau d'affichage */
.feature {
  position: relative; display: block; text-decoration: none; color: var(--on-night);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 18px 18px 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 220ms ease, border-color 220ms;
}
.feature:hover { transform: translateY(-2px); border-color: rgba(255, 198, 41, 0.5); }
.feature-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.feature-tag { color: var(--line-ink); background: var(--line); padding: 5px 9px; border-radius: 6px; font-weight: 700; }
.feature-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 18px 0 14px; }
.feature-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; }
.feature-team .crest { width: 64px; height: 72px; }
.feature-team b { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.feature-team small { font: 600 13px/1 var(--label); letter-spacing: 0.06em; color: var(--line); text-transform: uppercase; }
.feature-vs { font: 900 34px/1 var(--display); color: rgba(255, 255, 255, 0.35); }
.countdown { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.countdown div { min-width: 58px; text-align: center; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 6px 6px; }
.countdown b { display: block; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.countdown span { font: 600 11px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.feature-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--on-night-muted); }
.feature-cta { font: 700 15px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--line); white-space: nowrap; }

/* Bandeau de fiche de match */
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 18px; }
.sb-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; text-decoration: none; }
.sb-team .crest { width: 72px; height: 82px; }
.sb-team b { font: 800 clamp(15px, 4.2vw, 34px)/0.95 var(--display); text-transform: uppercase; overflow-wrap: break-word; hyphens: manual; max-width: 100%; }
.sb-team small { font: 600 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.sb-mid { text-align: center; }
.sb-score { font: 900 clamp(54px, 13vw, 104px)/0.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.sb-score .l { color: rgba(255, 255, 255, 0.42); }
.sb-sep { color: var(--line); margin: 0 0.08em; }
.sb-time { font: 900 clamp(40px, 10vw, 72px)/0.9 var(--display); font-variant-numeric: tabular-nums; }
.sb-label { display: block; font: 600 13px/1.2 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-night-muted); margin-top: 8px; }
.arena .crumbs { font: 600 13px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.arena .crumbs a { color: var(--on-night-muted); text-decoration: none; }
.arena .crumbs a:hover { color: #fff; }
.arena .meta-line { margin: 10px 0 0; text-align: center; color: var(--on-night-muted); font-size: 15px; }
.arena .meta-line a { color: var(--line); text-decoration: none; font-weight: 600; }

/* ---------------------------------------------------------------- mise en page */
.main {
  max-width: var(--wrap); margin: 0 auto; outline: none;
  padding-block: 26px 44px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
h1 { font: 900 clamp(38px, 8vw, 56px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
h3 { font: 800 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
h4 { font: 700 13px/1.2 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--muted); margin: 10px 0 0; max-width: 60ch; font-size: 17px; }
.lede a { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 12px; }
.grid-2 { display: grid; gap: 22px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.grid-even { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }

.home-section { margin-top: 38px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { position: relative; padding-bottom: 10px; }
/* Ligne des 9 m sous les titres de section */
.section-head h2::after, .rule-9m {
  content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 9px, transparent 9px 15px);
}
.section-head a { font: 700 14px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--court); }
.section-head a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .section-head a { color: var(--line); } }
:root[data-theme='dark'] .section-head a { color: var(--line); }

/* ---------------------------------------------------------------- boutons, champs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid var(--rule);
  background: var(--card); font: 700 15px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: transform 120ms, box-shadow 160ms, background-color 160ms;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--court-soft), var(--court)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(31, 70, 200, 0.8); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(31, 70, 200, 0.9); }
.btn-line { background: var(--line); border-color: var(--line); color: var(--line-ink); box-shadow: 0 8px 22px -10px rgba(255, 198, 41, 0.8); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 0 10px; box-shadow: none; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; }

label { display: block; font: 700 14px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field + .field { margin-top: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type='text'], input[type='email'], input[type='password'], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: 11px; background: var(--card-2);
  transition: border-color 160ms, box-shadow 160ms;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 4px color-mix(in srgb, var(--court) 18%, transparent); }
.error { color: var(--miss); font-size: 14px; margin-top: 10px; }

/* ---------------------------------------------------------------- filtres */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--rule);
  background: var(--card); font: 700 14px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; color: var(--muted);
  transition: background-color 160ms, color 160ms;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--night); color: #fff; border-color: var(--night); box-shadow: inset 0 -2px 0 var(--line); }
.select-inline { width: auto; min-height: 40px; padding: 6px 12px; font-size: 15px; }

.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 13px; margin-bottom: 18px; }
.tab {
  flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; border-radius: 10px; padding: 4px 6px; line-height: 1.1 !important; text-wrap: balance;
  font: 700 14px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; color: var(--muted);
}
.tab[aria-selected='true'], a.tab[aria-current='page'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
a.tab { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------------------------------------------------------------- compteur de pronos */
.board {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 22px;
  color: var(--on-night); border-radius: var(--radius);
  background: radial-gradient(80% 140% at 0% 0%, rgba(80, 120, 255, 0.5), transparent 60%), linear-gradient(135deg, var(--night-2), var(--night));
  box-shadow: var(--shadow-lift);
}
.board-count { font: 900 52px/0.85 var(--display); color: var(--line); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255, 198, 41, 0.35); }
.board-text { font-size: 15px; line-height: 1.35; color: var(--on-night-muted); }
.board-text strong { display: block; font: 800 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; margin-bottom: 3px; }
.board .btn { margin-left: auto; }
.board-text { min-width: 0; }
@media (max-width: 480px) { .board { flex-wrap: wrap; } .board .btn { width: 100%; margin-left: 0; } }

/* ---------------------------------------------------------------- cartes de match */
.day { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.day::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.day:first-of-type { margin-top: 4px; }
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .matches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.matches-single { grid-template-columns: minmax(0, 1fr) !important; max-width: 560px; margin-inline: auto; }
.match {
  position: relative; min-width: 0; padding: 14px 16px 14px; overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.match::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rule); }
.match:hover { box-shadow: var(--shadow-lift); }
.match:has(.goal:not(:placeholder-shown))::before { background: var(--line); }
.match-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; font: 600 13px/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.match-meta > * { min-width: 0; }
.match-meta > span:last-child { text-align: right; }
.match-time { font: 800 18px/1 var(--display); color: var(--ink); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.journee-link { font-weight: 700; color: var(--ink); text-decoration: none; background: var(--soft); padding: 2px 6px; border-radius: 5px; transition: background-color 160ms; }
.journee-link:hover { background: var(--line); color: var(--line-ink); }
.match-link { display: block; text-decoration: none; border-radius: 10px; margin: -4px; padding: 4px; }
.match-link:hover .team-name { color: var(--court); }

.badge { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: 14px; color: var(--muted); }
.badge b {
  display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 6px; background: var(--night); color: var(--line); white-space: nowrap;
}
.badge b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line); box-shadow: 0 0 8px var(--line); }

.teams { display: grid; gap: 9px; }
.team { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-weight: 600; line-height: 1.2; }
.team-name { overflow-wrap: break-word; hyphens: auto; font-size: 16.5px; text-decoration: none; transition: color 160ms; }
a.team-name:hover { color: var(--court); }
.team-rank { font: 700 12px/1 var(--label); letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; background: var(--soft); padding: 3px 5px 2px; border-radius: 4px; vertical-align: 2px; }
.team .pts { font: 900 34px/0.9 var(--display); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.team.is-lost .team-name, .team.is-lost .pts { color: var(--muted); font-weight: 500; }
.team.is-lost .pts { font-weight: 700; }

/* Écussons : forme de blason, couleur stable par club */
.crest { display: block; width: 38px; height: 43px; flex: none; filter: drop-shadow(0 3px 6px rgba(13, 20, 48, 0.22)); }
.crest .cr-bg { fill: hsl(var(--h) 62% 34%); }
.crest .cr-band { fill: hsl(calc(var(--h) + 24) 70% 50%); }
.crest .cr-rim { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; }
.crest text { font: 800 15px/1 var(--display); fill: #fff; letter-spacing: 0.04em; }

/* Saisie du score exact */
.stepper { display: inline-flex; align-items: center; gap: 3px; }
.step {
  width: 32px; height: 40px; border: 1px solid var(--rule); background: var(--card-2); color: var(--ink);
  font: 700 20px/1 var(--display); cursor: pointer; border-radius: 9px; padding: 0; transition: background-color 120ms, transform 100ms;
}
.step:hover { background: var(--soft); }
.step:active { transform: scale(0.92); }
input.goal {
  width: 50px; min-height: 0; height: 46px; padding: 0; text-align: center; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--card-2);
  font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink);
}
input.goal::placeholder { color: var(--muted); opacity: 0.45; }
input.goal:focus { border-color: var(--court); box-shadow: 0 0 0 4px color-mix(in srgb, var(--court) 18%, transparent); }
input.goal:not(:placeholder-shown) { background: var(--night); color: var(--line); border-color: var(--night); box-shadow: inset 0 0 0 1px rgba(255, 198, 41, 0.4), 0 6px 14px -8px rgba(10, 19, 56, 0.9); }
input.goal.bump { animation: bump 220ms ease-out; }
@keyframes bump { 0% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
.entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: 14px; color: var(--muted); }
.entry-status { min-width: 0; }
.entry-status.saved { color: var(--win); font-weight: 600; }
.entry-status.saved::before { content: '✓ '; }

.split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 12px; background: var(--soft); gap: 2px; }
.split span { display: block; height: 100%; border-radius: 2px; }
.split .s1 { background: var(--court); }
.split .sn { background: var(--muted); opacity: 0.5; }
.split .s2 { background: var(--line); }
.split-legend { display: flex; justify-content: space-between; font: 600 12px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 7px; font-variant-numeric: tabular-nums; }
.split-avg { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.verdict { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px 5px; border-radius: 6px; }
.verdict.top { background: var(--line); color: var(--line-ink); }
.verdict.ok { background: var(--win-soft); color: var(--win); }
.verdict.ko { background: var(--miss-soft); color: var(--miss); }
.verdict.none { background: var(--soft); color: var(--muted); }
.result-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule); font-size: 14px; color: var(--muted); }
.prono-score { font: 800 19px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- classement des pronostiqueurs */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; margin: 6px 0 16px; }
.podium-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; min-width: 0; }
.podium-step .avatar { width: 62px; height: 62px; font-size: 22px; box-shadow: 0 0 0 3px var(--medal), 0 10px 22px -10px rgba(0, 0, 0, 0.5); }
.podium-step:nth-child(2) .avatar { width: 78px; height: 78px; }
.podium-step b { margin-top: 10px; font: 800 17px/1 var(--display); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-step .pp { font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.podium-step .pp small { font: 600 12px/1 var(--label); letter-spacing: 0.08em; color: var(--muted); margin-left: 3px; }
.podium-block {
  width: 100%; margin-top: 10px; border-radius: 12px 12px 4px 4px; display: grid; place-items: center;
  font: 900 34px/1 var(--display); color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, var(--night-2), var(--night)); box-shadow: inset 0 3px 0 var(--medal);
}
.podium-step:nth-child(1) .podium-block { height: 64px; }
.podium-step:nth-child(2) .podium-block { height: 92px; color: var(--line); }
.podium-step:nth-child(3) .podium-block { height: 48px; }

.ranking { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.rank-row { display: grid; grid-template-columns: 40px 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--rule); text-decoration: none; transition: background-color 140ms; }
.ranking li:first-child .rank-row { border-top: 0; }
.rank-row:hover { background: var(--card-2); }
.rank-row.is-me { background: color-mix(in srgb, var(--line) 16%, var(--card)); }
.rank-pos { font: 900 26px/1 var(--display); text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-who { min-width: 0; }
.rank-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-who span { font-size: 13px; color: var(--muted); }
.rank-pts { text-align: right; font: 900 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.rank-pts small { display: block; font: 600 11px/1.3 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(140deg, var(--court-soft), var(--night)); display: grid; place-items: center; font: 800 16px/1 var(--display); color: #fff; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xl { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--line); }

.bareme { margin-bottom: 22px; }
.bareme h2 { font-size: 22px; margin-bottom: 14px; }
.bareme dl { display: grid; gap: 8px; margin: 0 0 12px; }
.bareme dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.bareme dt { font: 900 24px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; }
.bareme dd { margin: 0; font-weight: 500; }
.bareme dl > div:first-child { background: var(--night); color: #fff; }
.bareme dl > div:first-child dt { color: var(--line); }
@media (min-width: 720px) { .bareme dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- classement d'une poule */
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.standings th { text-align: left; font: 700 12px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--rule); background: var(--card-2); }
.standings td { padding: 10px; border-top: 1px solid var(--rule); }
.standings tr:first-child td { border-top: 0; }
.standings .num { text-align: right; }
.standings th:nth-child(n+3) { text-align: right; }
.standings th:last-child { text-align: left; }
.standings td:first-child { font: 800 18px/1 var(--display); color: var(--muted); }
.standings tbody tr:first-child td:first-child { color: var(--line-ink); }
.standings tbody tr:first-child td:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 6px; vertical-align: 2px; }
.standings .strong { font: 900 20px/1 var(--display); }
.standings .team-cell { min-width: 150px; font-weight: 600; }
.standings tr.is-hl td { background: color-mix(in srgb, var(--line) 16%, transparent); }
@media (max-width: 560px) { .standings .wide { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .standings tbody tr:first-child td:first-child { color: var(--line); } }
:root[data-theme='dark'] .standings tbody tr:first-child td:first-child { color: var(--line); }

.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form-dot { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 5px; font: 800 12px/1 var(--display); color: #fff; flex: none; }
.form-dot.fv { background: var(--win); }
.form-dot.fn { background: #8790ad; }
.form-dot.fd { background: var(--miss); }

.journee-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 18px; }
.journee-nav select { width: 100%; }

/* ---------------------------------------------------------------- fiche de match */
.team-panel-head { display: flex; gap: 14px; align-items: center; }
.team-panel-head .crest { width: 48px; height: 54px; }
.team-panel h4 { margin: 16px 0 6px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.history-list li:first-child a { border-top: 0; }
.history-list a:hover .hl-opp { color: var(--court); }
.hl-opp { font-weight: 600; line-height: 1.25; overflow-wrap: break-word; transition: color 140ms; }
.hl-opp small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.hl-score { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- forum */
.topic-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 15px 18px; border-top: 1px solid var(--rule); text-decoration: none; transition: background-color 140ms; }
.topic-row:first-child { border-top: 0; }
.topic-row:hover { background: var(--card-2); }
.topic-title { font-weight: 600; line-height: 1.3; font-size: 16.5px; }
.topic-meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.topic-count { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: center; font: 900 26px/1 var(--display); min-width: 44px; }
.topic-count small { display: block; font: 600 10.5px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; font: 700 12px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px 3px; border-radius: 5px; background: var(--soft); color: var(--muted); margin-right: 6px; vertical-align: 1px; }
.tag-pin { background: var(--night); color: var(--line); }
.post { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; border-top: 1px solid var(--rule); }
.post:first-child { border-top: 0; }
.post-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.post-head a { font-weight: 700; text-decoration: none; }
.post-body { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply { margin-top: 18px; }

/* ---------------------------------------------------------------- profil */
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.profile-head h1 { font-size: clamp(34px, 7vw, 52px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font: 900 38px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font: 600 12px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat:first-child { background: linear-gradient(140deg, var(--night-2), var(--night)); border-color: transparent; color: #fff; }
.stat:first-child b { color: var(--line); }
.stat:first-child span { color: var(--on-night-muted); }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.history li:first-child { border-top: 0; }
.history li a { text-decoration: none; font-weight: 500; }
.history li a:hover { color: var(--court); }
.history li a small { white-space: nowrap; }

/* ---------------------------------------------------------------- connexion, états vides */
.auth { max-width: 440px; margin: 10px auto; }
.auth .card { padding: 24px 22px; }
.empty { text-align: center; padding: 38px 22px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 10px; font-size: 22px; }
.empty .btn { margin-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 500;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6), inset 0 -2px 0 var(--line);
  opacity: 0; pointer-events: none; transition: opacity 180ms, transform 180ms; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

.skeleton { height: 132px; border-radius: var(--radius); background: linear-gradient(90deg, var(--soft), var(--card), var(--soft)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.foot { margin-top: 34px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: inherit; }

.site-foot { background: var(--night); color: var(--on-night-muted); font-size: 13.5px; }
.site-foot-inner {
  max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 6px;
  padding-block: 26px; padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.site-foot-brand { font: 800 20px/1 var(--display); text-transform: uppercase; color: #fff; letter-spacing: 0.03em; }
.site-foot-brand span { color: var(--line); }
.site-foot a { color: var(--on-night); }

/* Apparition orchestrée de l'accueil, une seule fois */
.rise { animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 120ms; }
.rise-3 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0.35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arena-court .draw { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

.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; }

/* Logos officiels des clubs : posés sur une pastille blanche pour rester lisibles partout */
.crest.crest-logo-box {
  display: block; height: auto !important; aspect-ratio: 1 / 1; padding: 4px; overflow: hidden;
  background: #fff; border-radius: 22%; filter: none;
  box-shadow: 0 0 0 1px rgba(13, 20, 48, 0.08), 0 4px 10px -4px rgba(13, 20, 48, 0.35);
}
.crest-logo-box img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.sb-team .crest.crest-logo-box { width: 96px; padding: 12px; border-radius: 24px; }
.feature-team .crest.crest-logo-box { width: 72px; padding: 9px; border-radius: 18px; }
.team-panel-head .crest.crest-logo-box { padding: 6px; }
.arena .crest.crest-logo-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.team-cell-in { display: inline-flex; align-items: center; gap: 10px; }
.team-cell-in .crest { width: 24px; height: 27px; filter: none; }
.team-cell-in .crest.crest-logo-box { width: 26px; padding: 2px; border-radius: 6px; }

/* =====================================================================
   Mon compte
   ===================================================================== */
.acc-hero .arena-inner { padding-block: 30px 26px; }
.acc-id { display: flex; align-items: center; gap: 20px; }
.acc-avatar { position: relative; flex: none; cursor: pointer; margin: 0; }
.avatar.avatar-hero {
  width: 104px; height: 104px; font-size: 40px;
  box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--line), 0 18px 40px -16px rgba(0, 0, 0, 0.9);
}
.acc-avatar-btn {
  position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--line); color: var(--line-ink);
  box-shadow: 0 0 0 3px var(--night); transition: transform 160ms;
}
.acc-avatar-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.acc-avatar:hover .acc-avatar-btn { transform: scale(1.08); }
.acc-avatar:focus-within .avatar-hero { outline: 3px solid var(--line); outline-offset: 4px; }
.acc-id-txt { min-width: 0; }
.acc-id-txt .kicker { margin-bottom: 8px; }
.acc-id-txt h1 { font-size: clamp(32px, 8.5vw, 64px); max-width: none; overflow-wrap: break-word; }
.acc-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; color: var(--on-night-muted); font-size: 15px; }
.acc-sub a { color: var(--line); font-weight: 600; text-decoration: none; }
.acc-sub span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; margin-right: 14px; vertical-align: 3px; }
.acc-stats { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.acc-stats li:first-child b { color: var(--line); }
@media (max-width: 420px) {
  .acc-stats b { font-size: 28px; }
  .acc-stats span { font-size: 10.5px; letter-spacing: 0.04em; }
  .avatar.avatar-hero { width: 88px; height: 88px; font-size: 34px; }
  .acc-id { gap: 16px; }
}
@media (max-width: 899px) { .hide-sm { display: none; } }
@media (max-width: 480px) { .acc-sub { flex-direction: column; gap: 2px; } .acc-sub span + span::before { display: none; } }

.acc-tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 10; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acc-tabs .tab { gap: 6px; padding: 0 4px; }
@media (max-width: 420px) { .acc-tabs .tab { font-size: 12.5px; letter-spacing: 0.04em; } .tab-count { display: none; } }
.tab-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--miss); color: #fff; font: 700 12px/1 var(--label); letter-spacing: 0;
}
.tab-count { font: 700 12px/1 var(--label); color: var(--muted); background: var(--soft); border-radius: 8px; padding: 3px 6px; }
.tab[aria-current='page'] .tab-count { background: var(--card-2); }

.acc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.acc-kpis div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.acc-kpis b { display: block; font: 900 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.acc-kpis span { font: 600 11.5px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.acc-kpis div:first-child { background: linear-gradient(140deg, var(--night-2), var(--night)); border-color: transparent; color: #fff; }
.acc-kpis div:first-child b { color: var(--line); }
.acc-kpis div:first-child span { color: var(--on-night-muted); }
@media (max-width: 480px) { .acc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section-head h3 { display: flex; align-items: center; gap: 10px; }
.count { font: 700 13px/1 var(--label); letter-spacing: 0.04em; background: var(--soft); color: var(--muted); border-radius: 8px; padding: 4px 8px; }
.count.is-hot { background: var(--miss); color: #fff; }

.acc-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.acc-list > li + li { border-top: 1px solid var(--rule); }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.acc-row-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 260px; text-decoration: none; }
.acc-row-main:hover b { color: var(--court); }
.acc-teams { display: flex; flex: none; }
.acc-teams .crest { width: 30px; height: 34px; }
.acc-teams .crest + .crest { margin-left: -8px; }
.acc-teams .crest.crest-logo-box { width: 32px; padding: 3px; border-radius: 8px; }
.acc-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-txt b { font-weight: 600; line-height: 1.25; transition: color 140ms; }
.acc-txt small, .acc-msg small, .acc-alert small { font-size: 12.5px; color: var(--muted); }
.acc-side { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.acc-score { display: flex; flex-direction: column; align-items: center; }
.acc-score small { font: 600 10.5px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.acc-score b { font: 900 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.acc-score:first-child b { color: var(--court); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .acc-score:first-child b { color: var(--line); } }
:root[data-theme='dark'] .acc-score:first-child b { color: var(--line); }

.acc-msg a, .acc-alert a { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; text-decoration: none; transition: background-color 140ms; }
.acc-msg a:hover, .acc-alert a:hover { background: var(--card-2); }
.acc-msg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-msg-top b { font-weight: 600; }
.acc-msg-body { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill-new { flex: none; font: 700 11.5px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 6px; background: var(--night); color: var(--line); }

.acc-alert a { flex-direction: row; align-items: flex-start; gap: 12px; position: relative; }
.acc-alert .avatar { width: 38px; height: 38px; font-size: 14px; }
.acc-alert-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.acc-alert-txt b { font-weight: 600; }
.acc-alert.is-unread { background: color-mix(in srgb, var(--line) 10%, var(--card)); }
.dot-new { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--miss); margin-top: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--miss) 25%, transparent); }

.acc-alert-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-alert-state { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-alert-state b { display: block; font: 800 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.acc-alert-state small { color: var(--muted); font-size: 14px; }
.bell { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--line); }
.bell.is-off { background: var(--soft); color: var(--muted); }
.bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Interrupteur */
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track { width: 54px; height: 32px; border-radius: 16px; background: var(--rule); position: relative; transition: background-color 180ms; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(13, 20, 48, 0.3); transition: transform 200ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.switch input:checked + .switch-track { background: var(--court); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--line); outline-offset: 2px; }

.acc-settings { display: grid; gap: 16px; }
@media (min-width: 860px) { .acc-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .acc-settings form { grid-row: span 2; } }
.acc-settings h3 { margin-bottom: 14px; }
.acc-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acc-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.acc-photo-actions label.btn { margin: 0; color: #fff; }
.acc-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.acc-toggle-row b { font-weight: 600; }
.acc-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.acc-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hint.is-good { color: var(--win); font-weight: 600; }
.hint.is-bad { color: var(--miss); font-weight: 600; }

/* Pastille d'alertes sur « Mon compte » */
.nav-me { position: relative; }
.nav-badge {
  position: absolute; top: 8px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; background: var(--miss); color: #fff; font: 700 11px/1 var(--label); letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--night); animation: pop 300ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes pop { from { transform: scale(0.3); } to { transform: scale(1); } }
@media (min-width: 900px) { .nav-badge { top: 2px; left: 30px; } }

/* Filtre Masculin / Féminin */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.filters .chips { margin-bottom: 0; }
.seg { display: inline-flex; align-self: flex-start; gap: 3px; padding: 3px; border-radius: 12px; background: var(--soft); }
.seg-btn {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 700 14px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.seg-btn[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (min-width: 760px) { .filters { flex-direction: row; align-items: center; } .filters .chips { flex: 1; margin: 0; padding: 2px 0 6px; } }

/* =====================================================================
   Accueil : titre et section « Quoi de neuf ? »
   ===================================================================== */
.arena h1.hero-title { font-size: clamp(44px, 10vw, 92px); max-width: none; }
.hero-title span { display: block; }
@media (min-width: 960px) { .arena h1.hero-title { font-size: clamp(56px, 5.8vw, 86px); } }
.arena .arena-lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; max-width: 46ch; margin-top: 18px; }
.section-links { display: flex; gap: 18px; }

.news-chips { margin-bottom: 14px; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) {
  .news-grid { grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(0, auto); }
  .news-grid .news-card.is-lead { grid-row: span 4; }
}
.news-card > a {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; height: 100%;
  padding: 10px; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease;
}
.news-card > a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.news-card > a:hover .news-title { color: var(--court); }
.news-card.is-lead > a { grid-template-columns: 1fr; align-items: stretch; padding: 0; overflow: hidden; }
.news-visual {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--night);
}
.news-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.news-card > a:hover .news-visual img { transform: scale(1.04); }
.news-card.is-lead .news-visual { aspect-ratio: 16 / 9; border-radius: 0; }
.news-visual-date, .news-visual-text { display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--night-2), var(--night)); }
.news-visual-date .arena-court, .news-visual-text .arena-court { opacity: 0.6; }
.news-bigdate { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 0.85; }
.news-bigdate b { font: 900 52px/0.85 var(--display); color: var(--line); }
.news-bigdate span { font: 700 15px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.news-visual-date.is-lead .news-bigdate b { font-size: clamp(90px, 16vw, 150px); }
.news-visual-date.is-lead .news-bigdate span { font-size: 22px; }
.news-quote { position: relative; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--line); }
.news-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 19, 56, 0.72); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.news-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.news-card.is-lead .news-play { width: 76px; height: 76px; }
.news-card.is-lead .news-play svg { width: 34px; height: 34px; }
.news-count { position: absolute; right: 8px; bottom: 8px; font: 700 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(10, 19, 56, 0.75); padding: 5px 7px; border-radius: 6px; }
.news-date-chip { position: absolute; left: 8px; top: 8px; display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 6px 6px 5px; border-radius: 9px; background: var(--line); color: var(--line-ink); font: 700 11px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.news-date-chip b { font: 900 22px/0.9 var(--display); letter-spacing: 0; }
.news-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-card.is-lead .news-txt { padding: 16px 18px 18px; gap: 8px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 12.5px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.news-tag { padding: 5px 8px 4px; border-radius: 6px; background: var(--soft); color: var(--ink); font-weight: 700; }
.news-tag.is-upcoming { background: var(--line); color: var(--line-ink); }
.news-tag.news-retour { background: var(--night); color: #fff; }
.news-tag.news-photos, .news-tag.news-video { background: color-mix(in srgb, var(--court) 14%, var(--card)); color: var(--court); }
.news-until { color: var(--miss); font-weight: 700; }
.news-title { font: 800 19px/1.08 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); transition: color 160ms; overflow-wrap: break-word; }
.news-card.is-lead .news-title { font-size: clamp(24px, 3.4vw, 32px); }
.news-where { font-size: 14px; color: var(--muted); }
.news-excerpt { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 420px) { .news-card > a { grid-template-columns: 96px minmax(0, 1fr); } .news-title { font-size: 17px; } }

/* Page d'une actu */
.news-hero .arena-inner { padding-block: 34px 34px; }
.news-hero.has-cover { min-height: 340px; display: flex; align-items: flex-end; }
.news-hero.has-cover .arena-inner { width: 100%; }
.news-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.news-hero.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 19, 56, 0.2) 0%, rgba(10, 19, 56, 0.92) 85%); z-index: 0; }
.news-hero.has-cover .arena-inner { z-index: 1; }
.arena h1.news-h1 { font-size: clamp(34px, 7vw, 64px); max-width: 18ch; }
.news-when { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; color: var(--on-night); font: 600 16px/1.3 var(--body); }
.news-when span { color: var(--line); }
.news-hero .countdown { justify-content: flex-start; }
.news-article { max-width: 760px; margin: 0 auto; }
.news-admin { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px; }
.news-body p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; max-width: 68ch; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lift); margin-bottom: 24px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; }
.video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.video-placeholder p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-size: 14px; }
.video-placeholder a { color: var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 10px; }
.gallery.is-odd .gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-item { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--soft); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 9, 28, 0.94); padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font: 400 32px/1 var(--body); cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(12px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(12px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.7); font: 600 13px/1 var(--label); letter-spacing: 0.1em; }

/* Formulaire de publication */
.news-form { max-width: 760px; }
.kinds { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kinds legend { font: 700 14px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.kind-opt { position: relative; margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.kind-opt input { position: absolute; opacity: 0; }
.kind-opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card-2); transition: border-color 160ms, background-color 160ms; }
.kind-opt b { font: 800 16px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.kind-opt small { font: 400 13px/1.3 var(--body); color: var(--muted); }
.kind-opt input:checked + span { border-color: var(--court); background: color-mix(in srgb, var(--court) 8%, var(--card)); box-shadow: inset 0 0 0 1px var(--court); }
.kind-opt input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 2px; }
.field-row { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field + .field { margin-top: 0; }
.news-form .field + .field, .news-form .field-row + .field, .news-form .field + .field-row { margin-top: 16px; }
.news-form[data-kind='video'] .only-dated, .news-form[data-kind='photos'] .only-event,
.news-form[data-kind='retour'] .only-event, .news-form:not([data-kind='video']) .only-video { display: none; }
.label-like { display: block; font: 700 14px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 96px; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(10, 19, 56, 0.8); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 500 15px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--court); }

.news-icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 198, 41, 0.14); color: var(--line); }
.news-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

/* ---------------------------------------------------------------- vidéos (Rematch) */
body.no-scroll { overflow: hidden; }
.vlayout { display: grid; gap: 18px; }
@media (min-width: 900px) { .vlayout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; } }
.vfilters { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 900px) { .vfilters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; } }
.vf-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: none; color: var(--ink); font: 700 16px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.vf-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vf-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform 200ms; }
.vfilters.is-open .vf-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
.vf-toggle-sum { margin-left: auto; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: none; font-size: 15px; }
.vf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--line); color: var(--line-ink); font-size: 12px; letter-spacing: 0; }
.vf-body { display: none; padding: 4px 12px 14px; border-top: 1px solid var(--rule); }
.vfilters.is-open .vf-body { display: block; }
@media (min-width: 900px) {
  .vf-toggle { pointer-events: none; padding: 18px 18px 12px; }
  .vf-toggle::after { display: none; }
  .vf-body { display: block; border-top: 0; padding-top: 0; }
}
.vf-group { padding: 12px 0 6px; border-bottom: 1px solid var(--rule); }
.vf-group:last-of-type { border-bottom: 0; }
.vf-title { font: 700 12.5px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 6px 8px; }
.vf-sub { font: 700 13px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--court); margin: 12px 6px 4px; }
.vf-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 500 15px/1.2 var(--body); text-align: left; cursor: pointer; transition: background 140ms; }
.vf-opt:hover { background: var(--soft); }
.vf-opt[aria-pressed='true'] { background: var(--night); color: #fff; box-shadow: inset 3px 0 0 var(--line); font-weight: 600; }
.vf-n { flex: none; min-width: 26px; text-align: center; font: 700 13px/1 var(--label); padding: 4px 6px; border-radius: 7px; background: var(--soft); color: var(--muted); }
.vf-n.is-zero { opacity: 0.55; }
.vf-opt[aria-pressed='true'] .vf-n { background: var(--line); color: var(--line-ink); opacity: 1; }
.vf-reset { margin: 10px 0 0 4px; }
.vsummary { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.vsummary b { color: var(--ink); font: 800 20px/1 var(--display); }
.vweek .day { margin-top: 26px; }
.vweek:first-of-type .day { margin-top: 4px; }
.day-count { font: 700 13px/1 var(--label); color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 7px; letter-spacing: 0; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.vcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 200ms, box-shadow 200ms; }
.vcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: radial-gradient(120% 100% at 50% 0%, var(--court-soft), var(--court) 45%, var(--night) 100%); color: #fff; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.vthumb:hover img { transform: scale(1.04); }
.vshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 28, 0) 45%, rgba(5, 9, 28, 0.55) 100%); }
.vplay { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: var(--line); box-shadow: 0 0 0 6px rgba(255, 198, 41, 0.25), 0 10px 30px -6px rgba(0, 0, 0, 0.6); transition: transform 200ms, box-shadow 200ms; }
.vplay svg { width: 24px; height: 24px; fill: var(--line-ink); margin-left: 3px; }
.vthumb:hover .vplay { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255, 198, 41, 0.22), 0 10px 30px -6px rgba(0, 0, 0, 0.6); }
.vplay-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vplay-big svg { width: 32px; height: 32px; }
.vtag { position: absolute; left: 10px; bottom: 9px; font: 700 11.5px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(5, 9, 28, 0.6); padding: 5px 7px; border-radius: 6px; }
.vposter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 14px 0; background: repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, 0.04) 48px 49px); }
.vposter .crest { width: 50px; height: 57px; }
.vposter .crest.crest-logo-box { width: 60px; height: auto; padding: 8px; border-radius: 15px; }
.vposter b { font: 900 30px/1 var(--display); letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.vthumb-big .vposter .crest { width: 80px; height: 92px; }
.vthumb-big .vposter .crest.crest-logo-box { width: 100px; height: auto; padding: 13px; border-radius: 24px; }
.vthumb-big .vposter { gap: 28px; }
.vthumb-big .vposter b { font-size: 54px; }
.vposter { padding-bottom: 6px; }
.vthumb img ~ .vplay { top: 50%; left: 50%; bottom: auto; right: auto; width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.vthumb img ~ .vplay-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vposter ~ .vplay { top: auto; bottom: 14px; right: 14px; left: auto; margin: 0; width: 40px; height: 40px; }
.vposter ~ .vplay svg { width: 18px; height: 18px; }
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vmeta { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; font: 600 13px/1.2 var(--label); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.vmeta a { color: var(--court); text-decoration: none; }
.vmeta span { margin-left: auto; }
.vteam { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-weight: 600; }
.vteam .crest { width: 24px; height: 28px; }
.vteam .crest.crest-logo-box { width: 26px; height: auto; padding: 2px; border-radius: 7px; }
.vteam span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vteam b { font: 800 20px/1 var(--display); }
.vteam.is-lost { color: var(--muted); font-weight: 500; }
.vlink { margin-top: auto; padding-top: 8px; font: 700 13px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--court); }
.vbadge { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 10px; padding: 7px 12px 7px 8px; border: 0; border-radius: 999px; background: var(--night); color: #fff; font: 700 13px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 -2px 0 var(--line); }
.vbadge svg { width: 18px; height: 18px; padding: 3px 2px 3px 4px; border-radius: 50%; background: var(--line); fill: var(--line-ink); }
.vbadge:hover { background: var(--night-2); }
.vmatch { margin-bottom: 8px; }
.vinline { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); max-width: 880px; margin: 0 auto 12px; background: #000; }
.vinline .vthumb { border-radius: 0; }
.vcredit { text-align: center; margin: 0; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 9, 28, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: max(16px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); animation: fade 200ms ease-out; }
@keyframes fade { from { opacity: 0; } }
.player-box { position: relative; width: min(1040px, 100%); background: var(--night); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.player-off { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, var(--court-soft), var(--court) 45%, var(--night) 100%); }
.player-off .vposter b { font-size: 54px; }
.player-off .vposter .crest { width: 80px; height: 92px; }
.player-off .vthumb, .player-off > .vposter { position: absolute; inset: 0; }
.player-off p { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.player-off .vplay { opacity: 0.5; }
.player-off .vtag { display: none; }
.player-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px 18px; color: var(--on-night); }
.player-comp { margin: 0 0 6px; font: 600 13px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--line); }
.player-title { margin: 0; font: 800 clamp(20px, 3.4vw, 28px)/1.05 var(--display); text-transform: uppercase; }
.player-title b { color: var(--line); margin: 0 0.25em; white-space: nowrap; }
.player-credit { margin: 6px 0 0; color: var(--on-night-muted); font-size: 13.5px; }
.player-actions { display: flex; align-items: center; gap: 12px; }
.player-nav { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--label); color: var(--on-night-muted); }
.player-nav .btn { background: rgba(255,255,255,0.1); border-color: transparent; color: #fff; font-size: 18px; }
.player-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(5, 9, 28, 0.7); color: #fff; font: 400 28px/1 var(--body); cursor: pointer; }
.player-close:hover { background: rgba(5, 9, 28, 0.95); }

.vposter b { white-space: nowrap; }
.sb-video { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px; background: var(--line); color: var(--line-ink); font: 700 14px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 6px rgba(255, 198, 41, 0.18), 0 10px 26px -8px rgba(255, 198, 41, 0.7); white-space: nowrap; animation: pulse-ring 2.4s ease-out infinite; }
.sb-video svg { width: 22px; height: 22px; padding: 5px 4px 5px 6px; border-radius: 50%; background: var(--night); fill: var(--line); }
.sb-video:hover { transform: translateY(-1px); }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 198, 41, 0.18), 0 10px 26px -8px rgba(255, 198, 41, 0.7); } 50% { box-shadow: 0 0 0 9px rgba(255, 198, 41, 0.08), 0 10px 26px -8px rgba(255, 198, 41, 0.7); } }
@media (prefers-reduced-motion: reduce) { .sb-video { animation: none; } }
@media (max-width: 520px) { .sb-video span { display: none; } .sb-video { padding: 8px; } .sb-video::after { content: 'Vidéo'; } }
.hl-video { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--line); vertical-align: -4px; }
.hl-video svg { width: 11px; height: 11px; fill: var(--line-ink); margin-left: 1px; }

/* ---------------------------------------------------------------- catégories et classements */
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg-cat .seg-btn { min-width: 52px; }
@media (max-width: 520px) { .filters-row .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .filters-row .seg::-webkit-scrollbar { display: none; } }
.score-note { display: inline-block; font: 700 13px/1 var(--label); letter-spacing: 0.06em; padding: 4px 6px; border-radius: 6px; background: var(--miss-soft); color: var(--miss); vertical-align: middle; }
.cl-head { margin: 0 0 14px; }
.cl-kicker { margin: 0 0 6px; font: 700 13px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--court); }
.cl-title { font: 900 clamp(30px, 5vw, 42px)/0.95 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.cl-poule { margin-bottom: 22px; }
.cl-poule-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.cl-poule-head h3 { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.cl-link { font: 700 13.5px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--court); }
.cl-link::after { content: ' ›'; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tabs .tab { flex: 1 0 auto; white-space: nowrap; padding-inline: 14px; }
@media (min-width: 900px) { .vfilters-cl .vf-toggle-sum { display: none; } }

/* ---------------------------------------------------------------- rubriques du forum */
.forum-generale { --fc: #1f46c8; } .forum-matchs { --fc: #0e9f6e; } .forum-tournois { --fc: #d98b00; }
.forum-evenements { --fc: #c2410c; } .forum-arbitrage { --fc: #111827; } .forum-anciens { --fc: #7c3aed; } .forum-jeunes { --fc: #0891b2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .forum-arbitrage { --fc: #9aa4c7; } }
:root[data-theme="dark"] .forum-arbitrage { --fc: #9aa4c7; }
.forum-sections { display: grid; gap: 12px; }
@media (min-width: 860px) { .forum-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.forum-section { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 18px 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform 180ms, box-shadow 180ms; }
.forum-section::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fc); }
.forum-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.fs-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--fc) 13%, transparent); color: var(--fc); flex: none; }
.fs-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fs-icon-lg { width: 58px; height: 58px; border-radius: 16px; }
.fs-icon-lg svg { width: 30px; height: 30px; }
.fs-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fs-title { font: 800 21px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.fs-desc { color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.fs-last { margin-top: 4px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-last span { color: var(--ink); font-weight: 600; }
.fs-stats { display: grid; grid-template-columns: auto auto; gap: 2px 6px; align-items: baseline; text-align: right; }
.fs-stats b { font: 900 22px/1 var(--display); }
.fs-stats small { font: 600 11px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: left; }
@media (max-width: 560px) { .forum-section { grid-template-columns: auto minmax(0, 1fr); } .fs-stats { grid-column: 2; display: flex; gap: 6px; justify-content: flex-start; } .fs-stats small { margin-right: 8px; } }
.forum-head { align-items: center; justify-content: flex-start; gap: 16px; }
.forum-head > div { flex: 1; min-width: 220px; }
.crumbs-light { margin: 0 0 10px; font: 700 13px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs-light a { color: var(--court); text-decoration: none; }
.tag-section { background: var(--night); color: #fff; }
.forum-guest { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; margin: 0 0 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--line) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.forum-guest p { flex: 1; min-width: 220px; margin: 0; font-size: 14.5px; }
.forum-guest-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--line); color: var(--line-ink); }
.forum-guest-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.reply + .forum-guest, .card + .forum-guest { margin-top: 14px; }
.section-pick { border: 0; padding: 0; margin: 0 0 14px; }
.section-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.section-pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.section-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border: 1.5px solid var(--rule); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1.2; transition: border-color 140ms, background 140ms; }
.section-opt input { position: absolute; opacity: 0; pointer-events: none; }
.section-opt .fs-icon { width: 34px; height: 34px; border-radius: 10px; }
.section-opt .fs-icon svg { width: 19px; height: 19px; }
.section-opt:has(input:checked) { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 8%, var(--card)); box-shadow: inset 0 0 0 1px var(--fc); }
.section-opt:has(input:focus-visible) { outline: 3px solid var(--line); outline-offset: 2px; }
.section-pick .section-opt { text-transform: none; letter-spacing: 0; font: 600 14.5px/1.2 var(--body); color: var(--ink); margin: 0; }

/* ---------------------------------------------------------------- statistiques des joueurs */
.sheet-team { overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.sheet-head .crest { width: 30px; height: 34px; }
.sheet-head .crest.crest-logo-box { width: 34px; height: auto; padding: 3px; border-radius: 9px; }
.sheet-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.sheet-score { font: 900 26px/1 var(--display); }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sheet-table th { font: 700 11.5px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--rule); }
.sheet-table td { padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.sheet-table tr:last-child td { border-bottom: 0; }
.sheet-table .num { text-align: center; width: 1%; white-space: nowrap; }
.sheet-table tr.is-top td { background: color-mix(in srgb, var(--line) 16%, transparent); }
.sheet-table tr.is-top .strong::after { content: ' ★'; color: #c68a00; font-size: 12px; }
.sheet-name { font-weight: 600; }
.cap { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--night); color: var(--line); font: 700 10px/1 var(--label); vertical-align: 1px; }
.pcards { display: inline-flex; gap: 4px; align-items: center; }
.pcard { display: inline-grid; place-items: center; min-width: 13px; height: 17px; padding: 0 3px; border-radius: 3px; font: 700 10.5px/1 var(--label); }
.card-y { background: #f5c518; color: #3a2c00; }
.card-2 { background: var(--soft); color: var(--ink); border: 1px solid var(--rule); min-width: 26px; }
.card-r { background: #d7263d; }
.sheet-foot { margin: 10px 0 0; }
.btn-link { border: 0; background: none; padding: 0 0 0 8px; color: var(--muted); font: 600 12px/1 var(--body); text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--miss); }
.sj-table .is-main { color: var(--ink); }
.sj-table th.is-main { color: var(--court); }
.sj-who { display: flex; flex-direction: column; min-width: 0; }
.sj-who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-table tr.is-hidden td { opacity: 0.45; }
.stats-off-note { border-color: color-mix(in srgb, var(--miss) 45%, transparent); margin: 0 0 16px; }
@media (max-width: 560px) {
  .sheet-table .wide { display: none; }
  .sheet-table td, .sheet-table th { padding-inline: 5px; }
  .sheet-table { font-size: 14px; }
}
@media (min-width: 760px) { .filters .chips { flex-wrap: wrap; overflow: visible; } }

/* ---------------------------------------------------------------- section pronostics */
.pr-actions { display: grid; gap: 14px; margin-top: 18px; }
.pr-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; position: relative; overflow: hidden; }
.pr-action::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--court); }
.pr-play::before { background: var(--line); }
.pr-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--court) 12%, transparent); color: var(--court); }
.pr-play .pr-icon { background: var(--night); color: var(--line); }
.pr-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-body h2 { margin: 0 0 4px; font-size: 22px; }
.pr-body p { margin: 0; color: var(--muted); font-size: 15px; }
.pr-body .pr-extra { margin-top: 6px; color: var(--ink); font-size: 14px; }
.pr-btn { white-space: nowrap; min-height: 46px; padding-inline: 20px; font-size: 15px; }
@media (max-width: 680px) { .pr-action { grid-template-columns: auto minmax(0, 1fr); } .pr-btn { grid-column: 1 / -1; width: 100%; } }

/* Tableau d'affichage de saisie du score */
.sbp-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 1100px) { .sbp-list:not(.sbp-solo) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sbp-solo { max-width: 760px; margin: 0 auto 8px; }
.sbp { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.sbp-board {
  --amber: #ffb21e; --red: #ff3a2e;
  position: relative; border-radius: 13px; padding: 12px 14px 14px; color: #f2f2f2;
  background: radial-gradient(120% 90% at 50% 0%, #1d1f25 0%, #0b0c0f 60%, #050506 100%);
  box-shadow: inset 0 0 0 2px #2a2c33, inset 0 0 0 5px #0d0e11, inset 0 1px 18px rgba(0, 0, 0, 0.8);
}
.seg7 { display: block; height: 100%; width: auto; overflow: visible; }
.seg7 .off { fill: rgba(255, 255, 255, 0.045); }
.seg7.led-amber .on, .seg7.led-amber circle { fill: var(--amber); filter: drop-shadow(0 0 4px rgba(255, 170, 20, 0.75)); }
.seg7.led-red .on { fill: var(--red); filter: drop-shadow(0 0 5px rgba(255, 50, 40, 0.8)); }
.sbp-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.sbp-clock { height: 34px; }
.sbp-meta { font: 600 11.5px/1.25 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); overflow: hidden; }
.sbp-meta-r { text-align: right; }
.sbp-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; margin-top: 10px; }
.sbp-side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.sbp-tag { font: 600 22px/1 var(--body); letter-spacing: 0.02em; color: #f4f4f4; }
.sbp-team { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; min-width: 0; max-width: 100%; }
.sbp-team .crest { width: 34px; height: 39px; }
.sbp-team .crest.crest-logo-box { width: 40px; height: auto; padding: 4px; border-radius: 10px; }
.sbp-team b { font: 700 14px/1.15 var(--label); letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sbp-team small { font: 600 11.5px/1 var(--label); color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; }
.sbp-team:hover b { text-decoration: underline; }
.sbp-period { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 50px; padding-top: 6px; }
.sbp-period .seg7 { height: 30px; }
.sbp-period small { font: 600 9.5px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.sbp-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; }
.sbp-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sbp-digits { position: relative; display: block; height: 66px; padding: 4px 6px; border-radius: 8px; cursor: text; }
.sbp-digits:focus-within { box-shadow: 0 0 0 2px var(--amber); background: rgba(255, 178, 30, 0.06); }
.sbp-led { display: block; height: 100%; }
.sbp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; cursor: text; }
.sbp-step { width: 74px; height: 28px; border: 0; border-radius: 8px; background: #1e2027; color: #fff; font: 700 20px/1 var(--body); cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5); transition: background 120ms; }
.sbp-step:hover { background: #2b2e37; }
.sbp-step:active { transform: translateY(1px); }
.sbp-score.is-locked .sbp-led { height: 66px; padding: 4px 6px; }
.sbp-brand { font: 900 15px/1 var(--display); letter-spacing: 0.06em; color: #111; background: var(--line); padding: 5px 9px 4px; border-radius: 4px; box-shadow: 0 0 0 2px #111, 0 0 0 3px #3a3a3a; transform: rotate(-2deg); }
.sbp .entry-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 6px 2px; }
.sbp .entry-status { flex: 1; min-width: 160px; font-size: 14px; color: var(--muted); }
.sbp .entry-status.saved { color: var(--win); font-weight: 600; }
.sbp-duel { font: 700 13px/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--court); }
.sbp-duel::after { content: ' ›'; }
.sbp .split-slot:empty { display: none; }
.sbp .split-slot { padding: 4px 6px 2px; }
.sbp-big .sbp-board { padding: 18px 22px 22px; }
.sbp-big .sbp-clock { height: 46px; }
.sbp-big .sbp-digits, .sbp-big .sbp-score.is-locked .sbp-led { height: 96px; }
.sbp-big .sbp-tag { font-size: 28px; }
.sbp-big .sbp-team .crest { width: 48px; height: 55px; }
.sbp-big .sbp-team .crest.crest-logo-box { width: 58px; }
.sbp-big .sbp-team b { font-size: 17px; }
.sbp-big .sbp-step { width: 100px; height: 34px; }
.sbp-big .sbp-brand { font-size: 20px; }
@media (max-width: 420px) {
  .sbp-board { padding: 10px 8px 12px; }
  .sbp-tag { font-size: 18px; }
  .sbp-digits, .sbp-score.is-locked .sbp-led { height: 56px; }
  .sbp-step { width: 62px; }
  .sbp-clock { height: 28px; }
}
.pj-board { margin-bottom: 6px; }
.st-title { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 0 0 14px; }

/* Face-à-face */
.cmp { padding: 16px 18px 18px; }
.cmp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.cmp-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; min-width: 0; }
.cmp-team .crest { width: 44px; height: 50px; }
.cmp-team .crest.crest-logo-box { width: 54px; height: auto; padding: 6px; border-radius: 13px; }
.cmp-team b { font: 800 18px/1.05 var(--display); text-transform: uppercase; }
.cmp-team small { color: var(--muted); font: 600 12.5px/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.cmp-vs { font: 900 22px/1 var(--display); color: var(--line); background: var(--night); padding: 8px 10px; border-radius: 10px; }
.cmp-forms { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cmp-forms > div { display: flex; justify-content: center; }
.cmp-forms > span, .cmp-label { font: 700 12px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cmp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(110px, 160px) minmax(0, 1fr) 64px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cmp-row:last-of-type { border-bottom: 0; }
.cmp-label small { display: block; font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-family: var(--body); font-size: 11.5px; margin-top: 2px; }
.cmp-val { font: 800 20px/1 var(--display); text-align: center; color: var(--muted); }
.cmp-val.is-win { color: var(--ink); }
.cmp-bar { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; display: flex; }
.cmp-bar i { display: block; height: 100%; background: var(--court); border-radius: 5px; }
.cmp-bar-l { justify-content: flex-end; }
.cmp-bar-l i { background: var(--line); }
.cmp-text { grid-template-columns: minmax(0, 1fr) minmax(140px, 1.2fr) minmax(0, 1fr); }
.cmp-text .cmp-val { font: 700 15px/1.2 var(--body); color: var(--ink); }
@media (max-width: 560px) {
  .cmp-row { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 6px; }
  .cmp-row .cmp-bar { display: none; }
  .cmp-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .cmp-val { font-size: 17px; }
}
.cmp-h3 { margin: 0 0 10px; font: 800 17px/1.1 var(--display); text-transform: uppercase; }
.cmp-last { list-style: none; margin: 0; padding: 0; }
.cmp-last li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-size: 14.5px; }
.cmp-last li:last-child a { border-bottom: 0; }
.cmp-last b { font: 800 17px/1 var(--display); }

/* Tableaux de statistiques */
.ts-table small.per { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.rec { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.rec b { color: var(--win); }
.stats-help { margin-top: 14px; font-size: 14.5px; }
.stats-help summary { cursor: pointer; font-weight: 700; }
.stats-help ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.stats-help li { margin: 6px 0; }
.stats-help b { color: var(--ink); }
@media (min-width: 760px) { .vmain > .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.ts-table { font-size: 14px; }
.ts-table td.num, .ts-table th.num { white-space: nowrap; }
.ts-table small.per { display: block; line-height: 1.1; }
.ts-table .form-dot { width: 16px; height: 16px; font-size: 9.5px; }
.ts-table .sj-who b { font-size: 14px; }
.ts-table td, .ts-table th { padding-inline: 7px; }
.ts-table .sj-who { max-width: 200px; }
.ts-table .sj-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-table .form { gap: 2px; }
.recs { display: flex; flex-direction: column; gap: 2px; }
.recs > span { display: flex; gap: 6px; align-items: baseline; }
.recs i { font-style: normal; font: 700 10.5px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 28px; }
.ts-table .sj-who { max-width: 170px; }
.ts-table td, .ts-table th { padding-inline: 6px; }
.sj-table th { white-space: nowrap; }
.sj-table td, .sj-table th { padding-inline: 7px; }
.sj-table .sj-who { max-width: 210px; }
.sj-table .sj-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-table .sj-who { max-width: 158px; }
