/* =====================================================================
   KOTE509 — Feuille de style principale
   Direction : sportsbook dense et lisible. Lignes plutôt que cartes,
   angles nets (rayon 4px), chiffres tabulaires, couleur réservée à l'action.
   ===================================================================== */

:root {
  --night: #101C35;
  --night-2: #172646;
  --night-3: #22335A;
  --blue: #1769FF;
  --blue-d: #0F55D6;
  --blue-soft: #E8F0FF;
  --green: #18B76A;
  --green-soft: #E3F6EC;
  --orange: #FF9F1C;
  --orange-soft: #FFF3E0;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --white: #FFFFFF;
  --mist: #F3F5F8;
  --ink: #252B36;
  --muted: #687185;
  --line: #E1E5EC;
  --line-2: #EDF0F4;

  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-num: "Barlow", "Inter", system-ui, sans-serif;

  --r: 4px;
  --header-h: 60px;
  --side-w: 232px;
  --slip-w: 328px;
  --shadow: 0 1px 2px rgba(16, 28, 53, .06), 0 4px 16px rgba(16, 28, 53, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/1.45 var(--f-body);
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }

/* ------------------------------------------------------------------ */
/* Bandeau de conformité (mode démo / sandbox)                         */
/* ------------------------------------------------------------------ */
.demo-strip .short { display: none; }
.demo-strip {
  background: var(--orange);
  color: var(--night);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 5px 12px;
  letter-spacing: .01em;
}

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--night);
  color: var(--white);
  display: flex; align-items: center; gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid #0A1326;
}
.brand { display: flex; align-items: center; gap: 0; color: var(--white); text-decoration: none !important; }
.brand-word {
  font: 800 italic 28px/1 var(--f-display);
  letter-spacing: .02em;
  transform: skewX(-4deg);
}
.brand-tag {
  font: 700 15px/1 var(--f-display);
  background: var(--orange);
  color: var(--night);
  padding: 4px 5px 3px;
  margin-left: 4px;
  transform: skewX(-12deg) translateY(-6px);
  letter-spacing: .04em;
}
.mainnav { display: flex; gap: 2px; height: 100%; }
.mainnav a {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  color: #B9C3D9; font-weight: 600; font-size: 13.5px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.mainnav a:hover { color: var(--white); }
.mainnav a.is-active { color: var(--white); border-bottom-color: var(--orange); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.25); }

.topsearch { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.topsearch input {
  width: 100%; height: 36px;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r);
  color: var(--white); padding: 0 12px 0 34px; font-size: 13px;
}
.topsearch input::placeholder { color: #7D8AA8; }
.topsearch input:focus { outline: none; border-color: var(--blue); background: #1B2C52; }
.topsearch .ico { position: absolute; left: 10px; top: 9px; color: #7D8AA8; }

.topactions { display: flex; align-items: center; gap: 10px; }
.balance-chip {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 3px 12px; border-left: 1px solid var(--night-3);
  color: var(--white); text-decoration: none !important;
}
.balance-chip small { color: #8F9BB7; font-size: 11px; }
.balance-chip strong { font: 700 16px/1.1 var(--f-num); font-variant-numeric: tabular-nums; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r);
  color: #C5CEE0; background: transparent; border: 0; cursor: pointer;
}
.icon-btn:hover { background: var(--night-2); color: var(--white); }
.icon-btn .count {
  position: absolute; top: 3px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--orange); color: var(--night); font: 700 10px/16px var(--f-num); text-align: center;
}

/* ------------------------------------------------------------------ */
/* Boutons & formulaires                                               */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 650; font-size: 13.5px; letter-spacing: .005em;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-d); }
.btn-go { background: var(--green); color: var(--white); }
.btn-go:hover { background: #13995A; }
.btn-ghost { background: transparent; color: var(--white); border-color: #3A4B73; }
.btn-ghost:hover { border-color: #7D8AA8; }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #C3CAD6; }
.btn-danger { background: var(--white); color: var(--red); border-color: #F3C0C2; }
.btn-danger:hover { background: var(--red-soft); }
.btn-warn { background: var(--orange); color: var(--night); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

.field { display: block; margin-bottom: 14px; }
.field > span, .field-label { display: block; font-size: 12.5px; font-weight: 600; color: #48506A; margin-bottom: 5px; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--white); border: 1px solid #D3D9E3; border-radius: var(--r);
  font-size: 14px;
}
.field textarea { height: auto; min-height: 90px; padding: 10px 12px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.14);
}
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin-bottom: 12px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--blue); }

/* Messages */
.alert {
  padding: 11px 14px; border-radius: var(--r); margin-bottom: 14px; font-size: 13.5px;
  border-left: 3px solid; background: var(--white);
}
.alert-success { border-color: var(--green); background: var(--green-soft); }
.alert-error, .alert-danger { border-color: var(--red); background: var(--red-soft); }
.alert-info { border-color: var(--blue); background: var(--blue-soft); }
.alert-warning { border-color: var(--orange); background: var(--orange-soft); }

/* Pastilles de statut */
.pill {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
  background: var(--line-2); color: #4B5468;
}
.pill-won, .pill-completed, .pill-paid, .pill-verified, .pill-approved, .pill-active, .pill-open, .pill-settled { background: var(--green-soft); color: #0F7F49; }
.pill-lost, .pill-failed, .pill-rejected, .pill-suspended, .pill-closed, .pill-cancelled { background: var(--red-soft); color: #B4262B; }
.pill-pending, .pill-scheduled, .pill-unverified { background: var(--blue-soft); color: var(--blue-d); }
.pill-running, .pill-live, .pill-self_excluded { background: var(--orange-soft); color: #A35F00; }
.pill-refunded, .pill-void, .pill-expired, .pill-postponed, .pill-finished { background: #ECEEF3; color: #555E73; }
.tag-demo {
  display: inline-block; font: 700 10px/1 var(--f-body); letter-spacing: .06em;
  padding: 3px 5px 2px; border: 1px solid #C9CFDA; color: #7A8296; border-radius: 2px; vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Structure en 3 colonnes                                             */
/* ------------------------------------------------------------------ */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr) var(--slip-w);
  gap: 0;
  max-width: 1480px; margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
}
.shell.no-slip { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.shell.plain { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.content { padding: 20px 22px 60px; min-width: 0; }

/* Barre latérale des sports */
.sidenav {
  background: var(--white); border-right: 1px solid var(--line);
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 14px 0 30px;
}
.sidenav h4 {
  font: 700 11px/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: #8A93A7;
  padding: 14px 18px 8px;
}
.sidenav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 18px; color: var(--ink); font-weight: 550; font-size: 13.5px;
  border-left: 3px solid transparent; text-decoration: none;
}
.sidenav a:hover { background: var(--mist); }
.sidenav a.is-active { border-left-color: var(--blue); background: #F2F6FF; color: var(--blue-d); }
.sidenav a .ico { color: #7B849A; }
.sidenav a.is-active .ico { color: var(--blue); }
.sidenav .cnt { margin-left: auto; font: 600 12px var(--f-num); color: #8A93A7; }
.sidenav .cnt-live { color: var(--red); }

/* ------------------------------------------------------------------ */
/* Titres de section                                                   */
/* ------------------------------------------------------------------ */
.section { margin-top: 26px; }
.section:first-child { margin-top: 0; }
.section-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
}
.section-head h2 {
  font: 700 21px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; color: var(--night);
}
.section-head .more { margin-left: auto; font-size: 13px; font-weight: 600; }
.page-title { font: 700 28px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--night); margin-bottom: 4px; }
.page-sub { color: var(--muted); margin: 0 0 18px; }

/* ------------------------------------------------------------------ */
/* Bannière d'accueil                                                  */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--white);
  border-radius: var(--r);
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 220px;
}
.hero::after { /* lignes de terrain, discrètes */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 78% 50%, transparent 74px, rgba(255,255,255,.07) 75px, rgba(255,255,255,.07) 76px, transparent 77px),
    linear-gradient(90deg, transparent calc(78% - .5px), rgba(255,255,255,.07) calc(78% - .5px), rgba(255,255,255,.07) calc(78% + .5px), transparent calc(78% + .5px));
}
.hero-copy { padding: 30px 32px; position: relative; z-index: 1; }
.hero-kicker { font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hero h1 { font: 800 44px/0.98 var(--f-display); text-transform: uppercase; margin: 12px 0 12px; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: #7FB0FF; }
.hero p { color: #B8C2D8; max-width: 400px; margin: 0 0 20px; }
.hero-match {
  position: relative; z-index: 1;
  margin: 22px 22px 22px 0; padding: 18px;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: var(--r);
  align-self: center;
}
.hero-match .meta { font-size: 12px; color: #8F9BB7; display: flex; justify-content: space-between; }
.hero-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0; text-align: center; }
.hero-teams .t { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.hero-teams .vs { font: 700 18px var(--f-display); color: #5D6D93; }
.hero-match .odds-row { grid-template-columns: repeat(3, 1fr); }
.hero-match .odd { background: #213358; border-color: #2D416B; color: var(--white); }
.hero-match .odd small { color: #8F9BB7; }
.hero-match .odd b { color: var(--white); }
.hero-match .odd.is-selected { background: var(--blue); border-color: var(--blue); }
.hero-match .odd:hover { border-color: var(--blue); }

/* ------------------------------------------------------------------ */
/* Écussons d'équipe                                                   */
/* ------------------------------------------------------------------ */
.crest {
  --c: var(--blue);
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c); color: #fff;
  font: 700 9.5px/1 var(--f-body); letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
  object-fit: cover;
}
.crest-sm { width: 20px; height: 20px; font-size: 8px; }
.crest-lg { width: 52px; height: 52px; font-size: 15px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }

/* ------------------------------------------------------------------ */
/* Liste de matchs (lignes)                                            */
/* ------------------------------------------------------------------ */
.board { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.board-head {
  display: grid; grid-template-columns: 96px minmax(0,1fr) 210px 44px;
  align-items: center; gap: 12px;
  padding: 8px 14px; background: #F8F9FB; border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 650; color: #7A8296; text-transform: uppercase; letter-spacing: .06em;
}
.board-head .league { display: flex; align-items: center; gap: 8px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.board-head .cols { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.board-head.two .cols { grid-template-columns: repeat(2, 1fr); }

.mrow {
  display: grid; grid-template-columns: 96px minmax(0,1fr) 210px 44px;
  align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
}
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: #FAFBFD; }
.mrow-time { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mrow-time strong { display: block; font: 700 15px var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.mrow-time .live { color: var(--red); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mrow-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); text-decoration: none !important; }
.mrow-teams .t { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.mrow-teams .t span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-teams .t .sc { margin-left: auto; font: 700 15px var(--f-num); color: var(--red); min-width: 18px; text-align: right; }
.mrow-teams:hover .n { color: var(--blue); }
.mrow-more {
  display: flex; align-items: center; justify-content: center; height: 44px;
  font: 600 12px var(--f-num); color: var(--muted); border-radius: var(--r); text-decoration: none !important;
}
.mrow-more:hover { background: var(--mist); color: var(--blue); }
.fav-btn { background: none; border: 0; padding: 2px; color: #C2C8D3; cursor: pointer; }
.fav-btn.is-on { color: var(--orange); }
.fav-btn.is-on svg { fill: var(--orange); }

/* Boutons de cote */
.odds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.odds-row.n2 { grid-template-columns: repeat(2, 1fr); }
.odd {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 44px; padding: 0 4px;
  background: var(--white); border: 1px solid #DCE1E9; border-radius: var(--r);
  cursor: pointer; user-select: none;
}
.odd small { font-size: 10.5px; color: #8A93A7; font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd b { font: 700 15px/1.15 var(--f-num); font-variant-numeric: tabular-nums; color: var(--night); }
.odd:hover { border-color: var(--blue); }
.odd.is-selected { background: var(--blue); border-color: var(--blue); }
.odd.is-selected b, .odd.is-selected small { color: var(--white); }
.odd.is-off, .odd:disabled { cursor: not-allowed; background: #F4F5F8; border-color: #E6E9EF; }
.odd.is-off b { color: #A9B0BE; }
.odd.is-off b { text-decoration: line-through; text-decoration-color: #C3CAD6; }
.odd.up b { color: var(--green); }
.odd.down b { color: #D97706; }
.odd.up::before, .odd.down::before { position: absolute; top: 3px; left: 5px; font-size: 8px; }
.odd.up::before { content: "▲"; color: var(--green); }
.odd.down::before { content: "▼"; color: #D97706; }
.odd.is-selected.up b, .odd.is-selected.down b { color: var(--white); }

.empty {
  padding: 40px 20px; text-align: center; color: var(--muted);
  background: var(--white); border: 1px dashed #D3D9E3; border-radius: var(--r);
}
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Filtres (puces) */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  font-size: 13px; font-weight: 600; color: #48506A; text-decoration: none !important; white-space: nowrap;
}
.chip:hover { border-color: #BCC4D2; }
.chip.is-active { background: var(--night); color: var(--white); border-color: var(--night); }
.chip .cnt { font: 600 11.5px var(--f-num); color: #9AA2B4; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters-bar .input { height: 34px; width: auto; font-size: 13px; }

/* Championnats (grille compacte) */
.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.league-tile {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-weight: 600; text-decoration: none !important;
}
.league-tile:hover { border-color: var(--blue); }
.league-tile .ico { color: var(--blue); }
.league-tile .cnt { margin-left: auto; font: 600 12px var(--f-num); color: var(--muted); }

/* Sports (bande) */
.sport-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sport-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none !important;
}
.sport-tile .ico { color: var(--night); }
.sport-tile strong { font: 700 17px var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.sport-tile span { font-size: 12px; color: var(--muted); }
.sport-tile:hover { border-color: var(--night); }

/* Promotions */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.promo {
  position: relative; padding: 18px 18px 16px; border-radius: var(--r); color: var(--white); background: var(--night); overflow: hidden;
  min-height: 132px; display: flex; flex-direction: column;
}
.promo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue); }
.promo-green::before { background: var(--green); }
.promo-orange::before { background: var(--orange); }
.promo-night::before { background: #7FB0FF; }
.promo h3 { font: 700 20px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.promo p { margin: 0; color: #B8C2D8; font-size: 13px; }
.promo code { margin-top: auto; align-self: flex-start; font: 700 12px var(--f-num); background: rgba(255,255,255,.1); padding: 4px 8px; border-radius: 3px; letter-spacing: .08em; }

/* ------------------------------------------------------------------ */
/* Page match                                                          */
/* ------------------------------------------------------------------ */
.match-head {
  background: var(--night); color: var(--white); border-radius: var(--r); padding: 18px 22px 22px;
}
.match-head .crumbs { font-size: 12.5px; color: #8F9BB7; display: flex; gap: 8px; align-items: center; }
.match-head .crumbs a { color: #B8C2D8; }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 18px; }
.scoreline .side { display: flex; align-items: center; gap: 14px; font: 700 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.scoreline .side.away { justify-content: flex-end; text-align: right; }
.scoreline .mid { text-align: center; min-width: 120px; }
.scoreline .score { font: 800 40px/1 var(--f-num); font-variant-numeric: tabular-nums; }
.scoreline .when { font: 600 14px var(--f-num); color: #B8C2D8; }
.market { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-top: 10px; }
.market-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line-2); cursor: pointer; user-select: none;
}
.market-head .pill { margin-left: auto; }
.market-body { padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.market-body.n2 { grid-template-columns: repeat(2, 1fr); }
.market-body.n3 { grid-template-columns: repeat(3, 1fr); }
.market.is-collapsed .market-body { display: none; }

/* ------------------------------------------------------------------ */
/* Coupon de pari                                                      */
/* ------------------------------------------------------------------ */
.betslip {
  background: var(--white); border-left: 1px solid var(--line);
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
}
.slip-head {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 16px; background: var(--night-2); color: var(--white);
}
.slip-head h3 { font: 700 18px var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.slip-head .n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--orange); color: var(--night); font: 700 12px/22px var(--f-num); text-align: center; padding: 0 6px; }
.slip-head .clear { margin-left: auto; background: none; border: 0; color: #9FB0D2; font-size: 12.5px; cursor: pointer; }
.slip-head .clear:hover { color: var(--white); }
.slip-head .close-sheet { display: none; }
.slip-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.slip-tabs button {
  height: 40px; background: var(--white); border: 0; border-bottom: 2px solid transparent;
  font-weight: 650; font-size: 13px; color: var(--muted); cursor: pointer;
}
.slip-tabs button.is-active { color: var(--blue-d); border-bottom-color: var(--blue); }
.slip-list { flex: 1; overflow-y: auto; }
.slip-empty { padding: 36px 24px; text-align: center; color: var(--muted); font-size: 13px; }
.slip-empty .ico { color: #C3CAD6; margin: 0 auto 10px; display: block; }
.sel {
  position: relative; padding: 11px 40px 11px 14px; border-bottom: 1px solid var(--line-2);
}
.sel .pick { font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.sel .pick b { font: 700 15px var(--f-num); color: var(--night); }
.sel .mkt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sel .teams { font-size: 12px; color: #48506A; margin-top: 2px; }
.sel .rm { position: absolute; right: 8px; top: 10px; width: 26px; height: 26px; border: 0; background: none; color: #A3ABBC; cursor: pointer; border-radius: 3px; }
.sel .rm:hover { background: var(--mist); color: var(--red); }
.sel.changed { background: #FFFAF0; }
.sel.changed .pick b { color: #C66A00; }
.sel.locked { background: #F7F8FA; }
.sel.locked .pick { color: #9AA2B4; }
.sel .warn { font-size: 11.5px; color: #B4262B; margin-top: 4px; font-weight: 600; }
.sel .stake-one { margin-top: 8px; }

.slip-foot { border-top: 1px solid var(--line); padding: 14px 16px 16px; background: #FBFCFD; }
.slip-line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: #48506A; }
.slip-line strong { font: 700 15px var(--f-num); color: var(--ink); }
.slip-line.total strong { font-size: 19px; color: var(--green); }
.stake-box { display: flex; gap: 6px; margin: 10px 0; }
.stake-box .input { height: 44px; font: 700 17px var(--f-num); text-align: right; }
.stake-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 12px; }
.stake-quick button {
  height: 30px; border: 1px solid var(--line); background: var(--white); border-radius: 3px;
  font: 600 12.5px var(--f-num); cursor: pointer;
}
.stake-quick button:hover { border-color: var(--blue); color: var(--blue); }
.slip-accept { font-size: 12px; color: #48506A; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.slip-msg { font-size: 12.5px; margin-bottom: 10px; padding: 8px 10px; border-radius: 3px; display: none; }
.slip-msg.show { display: block; }
.slip-msg.err { background: var(--red-soft); color: #9C1F24; }
.slip-msg.ok { background: var(--green-soft); color: #0B6A3C; }
.slip-msg.warn { background: var(--orange-soft); color: #8A4E00; }
.slip-rg { font-size: 11px; color: #8A93A7; margin-top: 10px; text-align: center; }

.slip-bar { display: none; }

/* ------------------------------------------------------------------ */
/* Espace joueur                                                       */
/* ------------------------------------------------------------------ */
.acc-nav a .badge-n { margin-left: auto; background: var(--orange); color: var(--night); font: 700 11px/18px var(--f-num); min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; text-align: center; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { font: 700 16px/1.2 var(--f-body); margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h3 { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--white); padding: 14px 16px; }
.stat small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat strong { display: block; font: 700 24px/1.2 var(--f-num); font-variant-numeric: tabular-nums; margin-top: 4px; color: var(--night); }
.stat strong.pos { color: var(--green); }
.stat strong.neg { color: var(--red); }
.wallet-hero {
  background: var(--night); color: var(--white); border-radius: var(--r); padding: 20px 22px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: center;
}
.wallet-hero small { color: #8F9BB7; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.wallet-hero strong { display: block; font: 700 32px/1.1 var(--f-num); font-variant-numeric: tabular-nums; margin-top: 4px; }
.wallet-hero .reserved strong { font-size: 22px; color: #B8C2D8; }
.wallet-hero .actions { display: flex; gap: 8px; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 650; color: #7A8296; text-transform: uppercase; letter-spacing: .05em; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFC; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .amt { font: 650 13.5px var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.pos { color: #0F7F49; }
.amt.neg { color: var(--ink); }

.ticket { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.ticket-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.ticket-head code { font: 700 13px var(--f-num); letter-spacing: .04em; }
.ticket-head .when { font-size: 12px; color: var(--muted); margin-left: auto; }
.ticket-sel { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 9px 14px; font-size: 13px; border-bottom: 1px dashed var(--line-2); align-items: center; }
.ticket-sel .lbl { font-weight: 650; }
.ticket-sel .mk { color: var(--muted); font-size: 12px; }
.ticket-foot { display: flex; gap: 24px; padding: 10px 14px; background: #FAFBFC; font-size: 12.5px; flex-wrap: wrap; }
.ticket-foot b { font: 700 14px var(--f-num); display: block; color: var(--ink); }
.ticket-foot .win b { color: var(--green); }

.tabs-line { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs-line a { padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs-line a.is-active { color: var(--blue-d); border-bottom-color: var(--blue); }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 16px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method span {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #D3D9E3; border-radius: var(--r); background: var(--white);
}
.pay-method strong { font: 700 18px var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.pay-method em { font-style: normal; font-size: 12px; color: var(--muted); }
.pay-method input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F7FAFF; }
.pay-method input:disabled + span { opacity: .5; cursor: not-allowed; }
.pm-moncash strong { color: #D0021B; }
.pm-natcash strong { color: #F26722; }
.pm-simulated strong { color: var(--night); }

.notif { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.notif.unread { background: #F7FAFF; }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: #C8CED9; }
.notif.unread .dot { background: var(--blue); }
.notif-success .dot { background: var(--green) !important; }
.notif-warning .dot { background: var(--orange) !important; }
.notif h4 { font-size: 13.5px; margin-bottom: 2px; }
.notif p { margin: 0; font-size: 13px; color: #48506A; }
.notif time { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Authentification                                                    */
/* ------------------------------------------------------------------ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-side {
  background: var(--night); color: var(--white); padding: 56px 48px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-side::after {
  content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.02);
}
.auth-side h2 { font: 800 42px/1 var(--f-display); text-transform: uppercase; max-width: 420px; }
.auth-side h2 em { font-style: normal; color: var(--orange); }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #B8C2D8; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .ico { color: var(--green); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--white); }
.auth-form form { width: 100%; max-width: 400px; }
.auth-form h1 { font: 700 30px var(--f-display); text-transform: uppercase; margin-bottom: 6px; color: var(--night); }
.auth-form p.lead { color: var(--muted); margin: 0 0 22px; }
.auth-alt { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.footer { background: var(--night); color: #9FAAC2; padding: 36px 24px 90px; font-size: 13px; }
.footer-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { color: var(--white); font: 700 13px var(--f-body); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.footer a { color: #B8C2D8; display: block; margin-bottom: 7px; }
.footer .legal { max-width: 1180px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--night-3); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.age18 { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font: 800 13px var(--f-num); flex: none; }

/* Navigation mobile inférieure (masquée sur ordinateur) */
.bottomnav { display: none; }

/* Pagination */
.pager { display: flex; gap: 4px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pager a { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--white); border-radius: 3px; font: 600 13px var(--f-num); color: var(--ink); text-decoration: none; }
.pager a.is-current { background: var(--night); color: var(--white); border-color: var(--night); }
.pager-total { margin-left: 10px; color: var(--muted); font-size: 12.5px; }

/* Notifications visuelles (toasts) */
.toasts { position: fixed; z-index: 200; bottom: 20px; left: 16px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast {
  background: var(--night); color: var(--white); padding: 11px 14px; border-radius: var(--r); font-size: 13.5px;
  border-left: 4px solid var(--blue); box-shadow: var(--shadow);
  animation: toast-in .18s ease-out;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--orange); }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } }

/* Indicateur "en direct" */
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pulse, .toast { animation: none; } }

/* Page simulation de paiement */
.sim-box { max-width: 460px; margin: 40px auto; background: var(--white); border: 2px dashed var(--orange); border-radius: var(--r); padding: 24px; }
.sim-box .stamp { display: inline-block; background: var(--orange); color: var(--night); font: 800 12px var(--f-body); letter-spacing: .1em; padding: 4px 8px; border-radius: 3px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 13.5px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
