
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: #2a2a2e;
  --line-2: #38383d;
  --text: #f2eee5;
  --muted: #9a958b;
  --gold: #d4a63a;
  --gold-2: #f0cd74;
  --gold-ink: #1a1408;
  --gold-soft: rgba(212, 166, 58, .12);
  --pmu: #3ea86b;
  --pmu-soft: rgba(62, 168, 107, .16);
  /* Bleu marine de la façade du Glasgow, éclairci pour rester lisible sur fond noir */
  --pub: #4a63b5;
  --pub-deep: #303c64;
  --pub-soft: rgba(74, 99, 181, .2);
  --pub-ink: #a8b9f0;
  --ok: #3ea86b;
  --err: #e0574a;
  --warn: #e3a33a;
  --radius: 10px;
  --radius-sm: 6px;
  --cond: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(212, 166, 58, .07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 48px; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 600; }
img { max-width: 100%; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { width: 100%; max-width: none; margin: 0; padding: 0 24px; }
.narrow { max-width: 520px; margin: 0 auto; }

/* ---------- Typo ---------- */
.h1, .h2, .h3, .month { font-family: var(--cond); text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1.05; }
.h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; }
.h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.h3 { font-size: 19px; font-weight: 700; }
.month { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .12em; margin-bottom: 10px; }
.eyebrow { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-size: 14px; margin: 0 0 6px; }
.lead { font-size: 18px; color: #d8d3c8; max-width: 640px; margin: 12px 0 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.note { color: var(--muted); font-size: 14px; margin: 12px 2px; }
.nowrap { white-space: nowrap; }
.muted-i { color: var(--muted); font-style: italic; }
small { font-size: .82em; }

/* ---------- En-tête ---------- */
.top { border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, .86); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gold); position: relative; flex: none; }
.brand-mark::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid var(--gold); }
.brand-mark::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; font-family: var(--cond); text-transform: uppercase; }
.brand-txt b { font-size: 21px; font-weight: 800; letter-spacing: .08em; }
.brand-txt span { font-size: 12px; color: var(--gold); letter-spacing: .22em; margin-top: 2px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 -8px; }
.nav a { color: #cfcabe; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; padding: 8px 10px; border-radius: var(--radius-sm); }
.nav a:hover { text-decoration: none; color: var(--text); background: var(--surface); }
.nav a.on { color: var(--gold-2); }
.nav a.nav-cta { color: var(--gold-ink); background: var(--gold); margin-left: 4px; }
.nav a.nav-cta:hover { background: var(--gold-2); }
.nav a.nav-out { color: var(--muted); }
@media (max-width: 560px) {
  .top-inner { padding-top: 8px; padding-bottom: 8px; }
  .nav { width: 100%; justify-content: space-between; margin: 0; }
  .nav a { padding: 6px 8px; font-size: 14px; }
}

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- Blocs ---------- */
.hero { padding: 36px 0 22px; }
.hero .chips { margin-bottom: 10px; }
.hero .row-btns { margin-top: 16px; }
.block { margin-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.block-head .h2 { margin-bottom: 14px; }
.link { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-flush { overflow: hidden; }
.empty { padding: 22px; color: var(--muted); margin: 0; }
.cards2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .cards2 { grid-template-columns: 1fr 1fr; } }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }

/* ---------- Éléments ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 13px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: #d6d1c5; }
.chip-kind { border-color: var(--gold); color: var(--gold-2); }
.chip-open { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.chip-running { background: var(--err); border-color: var(--err); color: #fff; }
.chip-finished { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 1px 7px; border-radius: 4px; vertical-align: 2px; line-height: 1.5; }
.badge-pmu { background: var(--pmu-soft); color: #7fd6a1; box-shadow: inset 0 0 0 1px rgba(62, 168, 107, .5); }
.badge-pub { background: var(--pub-soft); color: var(--pub-ink); box-shadow: inset 0 0 0 1px rgba(74, 99, 181, .65); }
.badge-sub { font-weight: 600; letter-spacing: .02em; opacity: .9; text-transform: none; font-size: 13px; }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: 1px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-pmu { background: var(--pmu); }
.dot-pub { background: var(--pub); }
.place { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 6px; font-family: var(--cond); font-weight: 700; font-size: 16px; background: var(--surface-2); }
.medal-1 { background: var(--gold); color: var(--gold-ink); }
.medal-2 { background: #c9c6be; color: #17171a; }
.medal-3 { background: #a8703f; color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 14px; vertical-align: 4px; margin-left: 6px; letter-spacing: 0; }
.tag-soft, .tag-ok { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; margin-left: auto; padding-left: 10px; }
.tag-soft { color: var(--muted); }
.tag-ok { color: var(--ok); }

/* ---------- Boutons & formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; border-color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-danger { border-color: rgba(224, 87, 74, .6); color: #f2958b; background: transparent; }
.btn-danger:hover { background: rgba(224, 87, 74, .12); border-color: var(--err); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-xs { padding: 6px 9px; font-size: 13px; }
.btn-lg { padding: 15px 24px; font-size: 18px; }
.btn-block { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline; margin: 0; }

.form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.form .h3 { margin-top: 4px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d6d1c5; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea {
  font: 400 16px/1.3 var(--sans); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 11px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0; }
.grid2, .grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pfield { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.pfield legend { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold); padding: 0 6px; font-size: 14px; }
.known { margin: 0; font-size: 14px; color: var(--muted); }
.bar-q { margin: 0 0 8px; font-size: 14px; }
.bar-q small { display: block; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); transition: all .15s; text-align: center; }
.seg-opt b { font-family: var(--cond); font-size: 22px; letter-spacing: .1em; }
.seg-opt small { color: var(--muted); }
.seg-pmu input:checked + span { border-color: var(--pmu); background: var(--pmu-soft); box-shadow: 0 0 0 1px var(--pmu); }
.seg-pub input:checked + span { border-color: var(--pub); background: var(--pub-soft); box-shadow: 0 0 0 1px var(--pub); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }
.seg-sm { display: inline-flex; gap: 4px; }
.seg-sm button { font: 600 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; background: var(--surface); color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 12px; cursor: pointer; }
.seg-sm button.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }

/* ---------- Messages ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; border: 1px solid; font-size: 15px; }
.flash-ok { border-color: rgba(62, 168, 107, .5); background: rgba(62, 168, 107, .1); color: #9fe0b9; }
.flash-err { border-color: rgba(224, 87, 74, .55); background: rgba(224, 87, 74, .1); color: #f6aaa1; }
.flash-warn { border-color: rgba(227, 163, 58, .55); background: rgba(227, 163, 58, .1); color: #f3cf8c; }

/* ---------- Accueil ---------- */
.live-banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(224, 87, 74, .18), rgba(224, 87, 74, .04)); border: 1px solid rgba(224, 87, 74, .45); color: var(--text); }
.live-banner:hover { text-decoration: none; border-color: var(--err); }
.live-go { margin-left: auto; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #f6aaa1; font-size: 14px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--err); flex: none; box-shadow: 0 0 0 0 rgba(224, 87, 74, .7); animation: pulse 1.6s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 87, 74, .7); } 70% { box-shadow: 0 0 0 10px rgba(224, 87, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 87, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.tcard { display: flex; gap: 16px; padding: 18px; }
.tcard-date, .pick-date, .trow-date { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding-right: 14px; font-family: var(--cond); text-transform: uppercase; }
.tcard-date .d, .pick-date .d, .trow-date .d { font-size: 38px; font-weight: 800; line-height: 1; color: var(--gold-2); }
.tcard-date .m, .pick-date .m, .trow-date .m { font-size: 13px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.tcard-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.tcard-body .h3 a { color: var(--text); }
.tcard-body p { margin: 0; }
.tcard-body .btn { margin-top: 8px; }

.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; overflow: hidden; }
.duel-side { padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.duel-side.lead::after { content: "En tête"; position: absolute; top: 14px; right: 14px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold); padding: 2px 8px; border-radius: 99px; }
.duel-side:last-child.lead::after { right: auto; left: 14px; }
.duel-side:last-child { text-align: right; align-items: flex-end; }
.duel-pmu { background: linear-gradient(135deg, var(--pmu-soft), transparent 70%); }
.duel-pub { background: linear-gradient(225deg, rgba(48, 60, 100, .55), transparent 75%); }
.duel-side > .badge { align-self: flex-start; }
.duel-side:last-child > .badge { align-self: flex-end; }
.duel-name { font-family: var(--cond); text-transform: uppercase; font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.duel-pts { font-family: var(--cond); font-weight: 800; font-size: clamp(44px, 9vw, 72px); line-height: .95; }
.duel-pts small { font-size: 16px; color: var(--muted); margin-left: 4px; font-weight: 600; letter-spacing: .06em; }
.duel-stats { margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.duel-stats div { display: flex; flex-direction: column; }
.duel-side:last-child .duel-stats div { align-items: flex-end; }
.duel-stats dt { color: var(--muted); }
.duel-stats dd { margin: 0; font-weight: 600; font-size: 16px; }
.duel-vs { display: grid; place-items: center; font-family: var(--cond); font-weight: 800; color: var(--gold); font-size: 20px; letter-spacing: .1em; padding: 0 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); writing-mode: vertical-rl; }
.duel-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--surface-2); }
.duel-fill-pmu { background: var(--pmu); }
.duel-fill-pub { background: var(--pub); }
@media (max-width: 560px) {
  .duel-side { padding: 16px 12px; }
  .duel-stats { grid-template-columns: 1fr; }
  .duel-side.lead::after { position: static; align-self: flex-start; }
  .duel-side:last-child.lead::after { align-self: flex-end; }
}

.toplist { list-style: none; margin: 0; padding: 6px 0; }
.toplist li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: 0; }
.tl-name { color: var(--text); font-weight: 600; }
.tl-pts { margin-left: auto; font-family: var(--cond); font-weight: 700; font-size: 22px; }
.tl-pts small { color: var(--muted); font-size: 13px; }

.results { display: grid; gap: 8px; }
.result { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; color: var(--text); }
.result:hover { text-decoration: none; border-color: var(--line-2); }
.result-date { font-family: var(--cond); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.result-win { color: var(--gold-2); font-weight: 600; text-align: right; }
.result-win::before { content: "★ "; color: var(--gold); }

/* ---------- Listes de tournois ---------- */
.pick, .tlist { display: grid; gap: 10px; }
.pick-item, .trow { display: flex; align-items: center; gap: 16px; padding: 14px 16px; color: var(--text); transition: border-color .15s; }
.pick-item:hover, .trow:hover { text-decoration: none; border-color: var(--gold); }
.pick-body, .trow-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pick-go { margin-left: auto; color: var(--gold); font-size: 22px; }
.trow.dim { opacity: .5; }

/* ---------- Inscription ---------- */
.reg-form { max-width: 620px; }
.confirm { padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 620px; }
.confirm p { margin: 0; }
.confirm-entry { font-size: 20px; padding: 12px 0; }
.entry-list { list-style: none; margin: 0; padding: 4px 0; }
.entry-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.entry-list li:last-child { border-bottom: 0; }
.ename { font-weight: 600; color: var(--text); }
.eplayers { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: 14px; margin-left: 10px; }
.eplayers a { color: #d6d1c5; }
.sep { color: var(--line-2); }

/* ---------- Classement ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tab { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 18px; color: var(--muted); padding: 10px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.subtabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.subtabs a { font: 600 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-radius: 99px; color: var(--muted); border: 1px solid var(--line-2); }
.subtabs a:hover { text-decoration: none; color: var(--text); }
.subtabs a.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.filter-bar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar input { flex: 1; min-width: 180px; }
.season-pick { margin-top: 14px; max-width: 260px; }
.bareme { margin-top: 30px; padding: 0; }
.bareme summary { cursor: pointer; padding: 14px 16px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bareme .tbl, .bareme p { margin: 0 16px 14px; width: calc(100% - 32px); }

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 13px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .l { text-align: left; }
.tbl td.l a { color: var(--text); font-weight: 600; }
.tbl-rank tbody tr:hover, .tbl-final tbody tr:hover { background: var(--surface-2); }
.tbl-rank .pts { font-family: var(--cond); font-size: 20px; font-weight: 700; color: var(--gold-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 14px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 14px; }
@media (max-width: 560px) { .hide-sm { display: none; } .tbl { font-size: 14px; } }

/* ---------- Profil ---------- */
.profile { display: flex; align-items: center; gap: 18px; padding: 22px; margin-top: 30px; }
.profile-badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--cond); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.profile-pmu { background: var(--pmu-soft); color: #7fd6a1; box-shadow: inset 0 0 0 2px var(--pmu); }
.profile-pub { background: var(--pub-soft); color: var(--pub-ink); box-shadow: inset 0 0 0 2px var(--pub); }
.profile-main p { margin: 6px 0 0; }
.profile .h1 { font-size: clamp(30px, 6vw, 46px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-v { font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1; color: var(--gold-2); }
.stat-l { color: var(--muted); font-size: 13px; }

/* ---------- Tableau de tournoi ---------- */
.bracket { display: flex; gap: 28px; min-width: max-content; padding: 4px 2px; }
.round { display: flex; flex-direction: column; width: 230px; }
.round-title { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 13px; color: var(--gold); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.mw { position: relative; }
.bracket-wb .round:not(:last-child) .mw::after,
.bracket-lb .round:not(:last-child) .mw::after { content: ""; position: absolute; right: -15px; top: 50%; width: 14px; border-top: 1px solid var(--line-2); }
.bracket .round:not(:first-child) .mw::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; border-top: 1px solid var(--line-2); }

.match { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; color: var(--text); position: relative; }
a.match:hover { text-decoration: none; border-color: var(--gold); }
.match.is-bye { opacity: .38; }
.match.is-live { border-color: var(--err); box-shadow: 0 0 0 1px var(--err), 0 0 20px rgba(224, 87, 74, .25); }
.side { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; min-height: 36px; font-size: 14px; }
.side + .side { border-top: 1px solid var(--line); }
.side .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .ename { font-weight: 500; }
.side .sc { font-family: var(--cond); font-weight: 700; font-size: 18px; min-width: 18px; text-align: right; color: var(--muted); }
.side.win { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.side.win .ename { font-weight: 600; color: var(--gold-2); }
.side.win .sc { color: var(--gold-2); }
.side.lose .ename { color: var(--muted); }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 11px; color: #fff; background: var(--err); padding: 2px 8px; }
.match .live-tag { display: block; padding: 2px 10px; }

.groups { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tv .groups { grid-template-columns: repeat(3, 1fr); } }
.group { padding: 0 0 12px; overflow: hidden; }
.group-title { padding: 14px 16px 8px; color: var(--gold-2); }
.tbl-group td .ename { font-weight: 500; }
.tbl-group tr.qualified td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.group-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 12px 14px 0; }

.now { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .now { grid-template-columns: 1fr 1fr; } }
.now-title { display: flex; align-items: center; gap: 10px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 16px; margin: 0 0 10px; color: var(--gold); }
.now-item { margin-bottom: 10px; }
.now-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; }

#live.flash-update { animation: flashup .8s ease-out; }
@keyframes flashup { from { opacity: .6; } to { opacity: 1; } }

/* ---------- Mode écran (projection au bar) ---------- */
.tv { background: #070708; font-size: 18px; }
.tv main { padding-top: 10px; }
.hero-tv { padding: 18px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.hero-tv .h1 { font-size: 46px; }
.hero-tv .lead { margin: 0; }
.tv .round { width: 270px; }
.tv .side { font-size: 17px; min-height: 42px; }
.tv .side .sc { font-size: 22px; }
.tv .now-item .match { font-size: 18px; }

/* ---------- Admin ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: 60px; z-index: 10; background: rgba(11, 11, 12, .92); backdrop-filter: blur(8px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.subnav a { font: 600 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: #d6d1c5; }
.subnav a:hover { text-decoration: none; border-color: var(--gold); }
@media (max-width: 560px) { .subnav { position: static; } [id] { scroll-margin-top: 110px; } }
[id] { scroll-margin-top: 130px; }

.score-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .score-list { grid-template-columns: 1fr 1fr; } }
.score-card { padding: 12px 14px 14px; }
.score-card.is-live { border-color: var(--err); }
.score-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.live-form { display: inline-flex !important; gap: 6px; align-items: center; }
.board-in { width: 74px; padding: 6px 8px; font-size: 14px; }
.score-form { display: flex; flex-direction: column; gap: 8px; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score-row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.score-in { width: 72px; text-align: center; font-family: var(--cond); font-size: 22px; font-weight: 700; padding: 8px; flex: none; }
.score-in.sm { width: 58px; font-size: 17px; padding: 6px; }
.admin-board { margin-top: 18px; }
.admin-board .block { margin-top: 18px; }
.played { margin-top: 18px; padding: 0; }
.played summary { cursor: pointer; padding: 14px 16px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.played-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.played-title { font-size: 13px; width: 100%; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.played-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.played-form .who { font-size: 14px; }

.cash { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.cash-item { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cash-item + .cash-item { border-left: 1px solid var(--line); }
.cash-amount { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; }
.list-title { margin: 22px 0 10px; color: #d6d1c5; }
.entries { display: grid; gap: 8px; }
.entry { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.entry-pending { border-left: 3px solid var(--gold); }
.entry-refused { opacity: .6; }
.entry-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.entry-meta { font-size: 13px; }
.entry-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rename { display: flex; gap: 6px; max-width: 360px; }
.rename-in { padding: 6px 10px; font-weight: 600; }
.pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pay { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 14px/1.2 var(--sans); cursor: pointer; }
.pay-state { white-space: nowrap; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 12px; }
.pay-ok { border-color: rgba(62, 168, 107, .55); }
.pay-ok .pay-state { color: var(--ok); }
.pay-due .pay-state { color: var(--gold-2); }
.pay:hover { border-color: var(--gold); }

.formats { display: grid; gap: 8px; }
.format-opt { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-2); }
.format-opt:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.format-opt input { margin-top: 4px; }
.format-opt span { display: flex; flex-direction: column; gap: 3px; }
.format-opt b { font-size: 16px; color: var(--text); }
.format-opt small { color: var(--muted); font-weight: 400; }
.reco { font-style: normal; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; background: var(--gold); color: var(--gold-ink); padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.months { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.months legend { font-size: 14px; color: #d6d1c5; margin-bottom: 6px; }

.danger-zone { margin-top: 18px; padding: 14px 16px; border: 1px dashed rgba(224, 87, 74, .45); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.danger-zone p { margin: 0; flex-basis: 100%; color: var(--muted); font-size: 14px; }
.danger-zone p b { color: #f2958b; }
.danger-zone input { max-width: 160px; padding: 7px 10px; }

.player-edit { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; align-items: center; }
@media (min-width: 760px) { .player-edit { grid-template-columns: 1.4fr 1fr 1fr auto auto; } }
.player-edit input, .player-edit select { padding: 8px 10px; font-size: 15px; }
.season-row { margin-bottom: 10px; }

/* ---------- Format des matchs ---------- */
.rules { display: grid; gap: 10px; }
.rules-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.rules-row .rules-title { grid-column: 1 / -1; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold); font-size: 14px; }
@media (min-width: 640px) { .rules-row { grid-template-columns: 1fr 1fr 1fr; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.qbtn { font: 700 18px/1 var(--cond); min-width: 52px; padding: 11px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; }
.qbtn:hover, .qbtn:focus-visible { border-color: var(--gold); background: var(--gold); color: var(--gold-ink); outline: none; }
.qbtn:active { transform: scale(.96); }
.quick-hint { font-size: 13px; margin: 2px 0 0; }
.quick::before { content: "Gagne"; align-self: center; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin-right: 2px; }
.score-row { padding: 4px 0; }
.score-row + .score-row { border-top: 1px solid var(--line); padding-top: 10px; }
.qual-table tr.in td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.qual-table tr:not(.in) { opacity: .45; }
.round-rule { color: var(--muted); font-weight: 600; margin-left: 6px; letter-spacing: .06em; }
.rules-line { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 15px; color: #d8d3c8; }
.rules-line b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; margin-right: 4px; }
.qbtn-draw { width: 100%; margin-top: 4px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.qbtn-draw small { font: 500 13px var(--sans); color: var(--muted); }
.qbtn-draw:hover small { color: var(--gold-ink); }
.qual-mode { display: flex; flex-wrap: wrap; gap: 6px; }
.qual-mode a { font: 600 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.qual-mode a:hover { text-decoration: none; color: var(--text); }
.qual-mode a.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.dot-unknown { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.raw-name { font-style: italic; color: #cfc9bd; }
.consent { align-items: flex-start; font-weight: 400; color: var(--muted); }
.consent input { margin-top: 3px; flex: none; }
.foot-links { display: flex; gap: 16px; }

/* ---------- Écran soirée ---------- */
.soiree main { max-width: 760px; }
.soiree-head { padding: 22px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.soiree-head p { margin: 0; }
.soiree-title { margin: 4px 0 0; }
.soiree-switch select { padding: 8px 10px; font-size: 14px; max-width: 100%; }
.kpis { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 15px; color: var(--muted); }
.kpis b { font-family: var(--cond); font-size: 22px; color: var(--text); margin-right: 3px; }
.kpi-warn b, .kpi-warn { color: var(--gold-2); }
.soiree-tabs { position: sticky; top: 60px; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 0; background: rgba(11, 11, 12, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.soiree-tabs a { text-align: center; font: 700 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 11px 4px; border-radius: var(--radius-sm); color: var(--muted); border: 1px solid var(--line-2); }
.soiree-tabs a:hover { text-decoration: none; color: var(--text); }
.soiree-tabs a.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
@media (max-width: 560px) { .soiree-tabs { top: 96px; } }
.add-wrap { margin-bottom: 12px; }
.add-wrap > summary { list-style: none; cursor: pointer; }
.add-wrap > summary::-webkit-details-marker { display: none; }
.add-wrap[open] > summary { margin-bottom: 10px; }
.add-opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.add-opts .btn { margin-left: auto; }
.add-help { margin: 0; font-size: 13px; }
.entry-search { margin: 6px 0 4px; }
.entry-group > summary { cursor: pointer; list-style: none; }
.entry-group > summary::-webkit-details-marker { display: none; }
.center { text-align: center; }
.launch { padding: 18px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; border-color: var(--gold); }
.launch p { margin: 0; }
.launch-plan { font-size: 17px; }
.pin { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; margin-top: 18px; }
.pin-code { font-family: var(--cond); font-size: 24px; letter-spacing: .18em; color: var(--gold-2); }
.forfeit-form { padding: 0 16px 12px; }
.played-item { border-top: 1px solid var(--line); padding: 10px 16px; }
.played-item > summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.played-item > summary::-webkit-details-marker { display: none; }
.played-item[open] .score-card { margin: 10px 0 8px; }
.played-line b { font-family: var(--cond); font-size: 18px; color: var(--gold-2); margin: 0 6px; }

/* ---------- Carte d'inscription ---------- */
.entry { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; align-items: stretch; }
.entry.unresolved { border-left: 3px solid var(--gold); }
.entry.forfeited { opacity: .6; }
.entry.just-updated { box-shadow: 0 0 0 2px var(--gold); }
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.entry-status { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); margin-left: auto; white-space: nowrap; }
.st-confirmed { color: var(--ok); border-color: rgba(62, 168, 107, .55); }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); padding: 8px 10px; }
.slot.ok { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot.todo { border-color: rgba(212, 166, 58, .55); background: rgba(212, 166, 58, .06); }
.slot-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-name { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slot-raw { color: var(--muted); font-weight: 400; font-style: italic; font-size: 13px; }
.slot-actions { display: inline-flex; gap: 6px; align-items: center; }
.todo-tag { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--gold-2); font-weight: 700; }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sug { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--gold); background: var(--surface); color: var(--text); font: 600 15px/1 var(--sans); cursor: pointer; }
.sug:hover { background: var(--gold-soft); }
.slot-more { margin-top: 8px; }
.slot-more summary { cursor: pointer; font-size: 14px; color: var(--gold-2); }
.slot-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.slot-form input, .slot-form select { flex: 1; min-width: 150px; padding: 8px 10px; font-size: 15px; }
.seg-mini { display: inline-flex; gap: 6px; }
.bar-pmu { border-color: var(--pmu); color: #7fd6a1; }
.bar-pub { border-color: var(--pub); color: var(--pub-ink); }
.slot-help { font-size: 12px; margin: 6px 0 0; }
.pay-chip { font: 700 12px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 7px 9px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; white-space: nowrap; }
.pay-chip.pay-ok { color: var(--ok); border-color: rgba(62, 168, 107, .55); }
.pay-chip.pay-due { color: var(--gold-2); border-color: rgba(212, 166, 58, .55); }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.entry-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.entry-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-disabled { opacity: .4; cursor: not-allowed; }
.log-table td { font-size: 14px; }
.prose { padding: 20px; }
.prose p, .prose ul { color: #d8d3c8; margin: 6px 0 16px; }
.prose li { margin-bottom: 4px; }
.sug-hint { font: 600 11px var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-2); }
