/* Commission sportive Billard à poches — LBCVL
   Charte graphique : bleu #1864af, rouge #e10a19, Roboto (voir charte-graphique-lbcvl.css) */
:root {
  --blue: #1864af; --blue-dark: #124a82; --blue-darker: #0e3863; --blue-light: #2d92cb;
  --red: #e10a19; --red-dark: #8b0a12;
  --felt: #0f7a3d; --felt-dark: #0a5a2c;
  --yellow: #f4b400; --snooker: #1b8a4a; --us: #2d6fd6;
  --ink: #111; --text: #333; --muted: #6f6f6f; --soft: #909090;
  --sep: #efefef; --border: #e5e5e5; --bg: #f4f6f9; --card: #fff;
  --radius: 12px; --shadow: 0 2px 10px rgba(14,56,99,.08); --shadow-lg: 0 10px 30px rgba(14,56,99,.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Roboto', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-light); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- En-tête ---------- */
.top { background: #fff; border-bottom: 4px solid var(--red); }
.top .wrap { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.top .logo { height: 64px; width: auto; }
.top .titles { flex: 1; min-width: 0; }
.top .kicker { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.top h1 { font-size: 1.55rem; font-weight: 900; margin: 2px 0 0; }
.top h1 span { color: var(--red); }
.disc-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.pill.bb { background: var(--red); } .pill.us { background: var(--us); } .pill.sn { background: var(--snooker); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block; }
.season { text-align: right; font-weight: 700; color: var(--blue-darker); white-space: nowrap; }
.season small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Onglets ---------- */
nav.tabs { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-darker) 100%); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
nav.tabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.tabs .wrap::-webkit-scrollbar { display: none; }
nav.tabs button { flex: none; background: none; border: 0; color: rgba(255,255,255,.82); font: inherit; font-weight: 500; padding: 14px 18px; cursor: pointer; border-bottom: 4px solid transparent; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
nav.tabs button:hover { color: #fff; background: rgba(255,255,255,.08); }
nav.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--red); background: rgba(255,255,255,.12); font-weight: 700; }
nav.tabs svg { width: 18px; height: 18px; }

main { padding: 0 0 48px; }
section.tab { display: none; animation: fade .25s ease; }
section.tab.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeaux photo ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-darker); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,56,99,.95) 0%, rgba(24,100,175,.7) 55%, rgba(225,10,25,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 42px; padding-bottom: 42px; }
.hero h2 { color: #fff; font-size: 2rem; margin-bottom: .3em; }
.hero p { max-width: 720px; font-size: 1.06rem; opacity: .95; margin: 0; }
.hero .eyebrow { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 12px; }
.hero.green::after { background: linear-gradient(100deg, rgba(10,90,44,.95) 0%, rgba(15,122,61,.72) 60%, rgba(14,56,99,.5) 100%); }
.hero.red::after { background: linear-gradient(100deg, rgba(139,10,18,.95) 0%, rgba(225,10,25,.7) 60%, rgba(14,56,99,.5) 100%); }

.block { margin-top: 32px; }
.block > h2 { display: flex; align-items: center; gap: 10px; }
.block > h2::before { content: ""; width: 6px; height: 1.1em; background: var(--red); border-radius: 3px; }
.lead { color: var(--muted); margin: -4px 0 18px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Disciplines ---------- */
.disc { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-top: 5px solid var(--red); transition: transform .2s, box-shadow .2s; }
.disc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.disc.us { border-top-color: var(--us); } .disc.sn { border-top-color: var(--snooker); }
.disc .ph { height: 180px; object-fit: cover; width: 100%; }
.disc .body { padding: 18px 20px 20px; flex: 1; }
.disc h3 { display: flex; align-items: center; gap: 8px; }
.disc h3 small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.facts li { display: flex; gap: 8px; font-size: .92rem; }
.facts li b { color: var(--blue-darker); min-width: 72px; }
.ball { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 900; color: #000; flex: none; box-shadow: inset -3px -3px 5px rgba(0,0,0,.25); }
.ball.k { background: #111; color: #fff; } .ball.k::after { content: "8"; background: #fff; color: #000; width: 11px; height: 11px; border-radius: 50%; display: grid; place-items: center; font-size: .55rem; }
.ball.r { background: var(--red); } .ball.y { background: var(--yellow); } .ball.g { background: var(--snooker); }

/* ---------- Organigramme ---------- */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 16px 0; }
.org .row { display: flex; justify-content: center; gap: 56px; position: relative; flex-wrap: wrap; }
.org .link { width: 4px; height: 40px; background: var(--blue); }
.org .branch { position: relative; height: 40px; width: min(540px, 70%); }
.org .branch::before { content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 20px; background: var(--blue); transform: translateX(-50%); }
.org .branch::after { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 20px; border: 4px solid var(--blue); border-bottom: 0; border-radius: 10px 10px 0 0; }
.person { width: 480px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 20px 22px 20px 26px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--blue); }
.person.pres::before { background: var(--red); } .person.bb::before { background: var(--red); } .person.ussn::before { background: linear-gradient(var(--us), var(--snooker)); }
.person img { width: 116px; height: 138px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--sep); flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.person > div { min-width: 0; }
.person b { display: block; color: var(--ink); font-size: 1.3rem; font-weight: 900; }
.person span { display: block; font-size: .95rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.person .tag { display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700; font-style: normal; color: #fff; padding: 3px 10px; border-radius: 999px; background: var(--blue); }
.person.pres .tag, .person.bb .tag { background: var(--red); } .person.ussn .tag { background: var(--snooker); }
.person .contact { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--sep); display: grid; gap: 5px; font-size: .88rem; }
.person .contact li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.person .contact svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.person .contact a { color: var(--blue-darker); text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.person .contact a:hover { color: var(--red); text-decoration: underline; }
.org-caption { text-align: center; font-weight: 700; color: var(--blue-darker); background: #eaf2fb; border: 2px dashed var(--blue); border-radius: 999px; padding: 8px 22px; font-size: 1rem; }

/* ---------- Fiches clubs ---------- */
.club-detail { background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; min-height: 92px; }
.club-detail.empty { border-left-color: var(--soft); color: var(--muted); display: grid; place-items: center; text-align: center; font-size: .92rem; }
.club-detail h3 { margin: 0 0 2px; font-size: 1.05rem; }
.club-detail .town { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.club-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cc { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--blue); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s, transform .2s; scroll-margin-top: 70px; }
.cc.hl { box-shadow: 0 0 0 3px var(--red), var(--shadow-lg); transform: translateY(-2px); }
.cc .town { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.cc h3 { margin: 0; font-size: .98rem; }
.cc-lines { display: grid; gap: 5px; font-size: .88rem; margin-top: 4px; }
.cc-lines div { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.cc-lines svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--blue); }
.cc-lines a { color: var(--blue-darker); text-decoration: none; overflow-wrap: anywhere; }
.cc-lines a:hover { color: var(--red); text-decoration: underline; }
.tables { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tables span { font-size: .72rem; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 999px; }
.tables .bb { background: var(--red); } .tables .sn { background: var(--snooker); } .tables .us { background: var(--us); }
.cc .ffb { font-size: .78rem; margin-top: 4px; }

/* ---------- Boutons documents officiels ---------- */
.docs-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.doc-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; color: #fff; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, filter .15s; background: linear-gradient(120deg, var(--blue), var(--blue-darker)); }
.doc-btn.red { background: linear-gradient(120deg, var(--red), var(--red-dark)); }
.doc-btn.dark { background: linear-gradient(120deg, #111, #3a3a3a); }
.doc-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: brightness(1.08); }
.doc-btn svg { width: 30px; height: 30px; flex: none; opacity: .95; }
.doc-btn b { display: block; font-size: 1rem; line-height: 1.2; }
.doc-btn small { display: block; font-size: .78rem; opacity: .85; margin-top: 2px; }
@media (max-width: 760px) { .docs-bar { grid-template-columns: 1fr; } }

/* ---------- Intégration iframe (Joomla) ---------- */
body.is-embed .top, body.is-embed .banner-strip, body.is-embed footer { display: none; }
body.is-embed { background: transparent; }
body.is-embed nav.tabs { position: static; }

/* ---------- Carte ---------- */
.mapbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-wrap { position: relative; background: linear-gradient(180deg, #eef5fc 0%, #fff 100%); border-radius: var(--radius); border: 1px solid var(--border); padding: 10px; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-wrap .dep { stroke: #fff; stroke-width: 2; transition: filter .15s; }
.map-wrap .dep-label { font-size: 15px; font-weight: 900; fill: rgba(14,56,99,.22); text-anchor: middle; pointer-events: none; }
.map-wrap .city { cursor: pointer; }
.map-wrap .city circle.dot { stroke: #fff; stroke-width: 2.2; }
.map-wrap .city text { font-size: 11.5px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.map-wrap .city:hover circle.dot, .map-wrap .city.hl circle.dot { r: 9; }
.map-wrap .city .num { fill: #fff; font-size: 11px; font-weight: 900; stroke: none; text-anchor: middle; dominant-baseline: central; }
.tip { position: absolute; pointer-events: none; background: var(--blue-darker); color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 5; }
.tip.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

.club-list { display: grid; gap: 10px; }
.dep-group h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.dep-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dep-group li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .86rem; cursor: default; transition: all .15s; }
.dep-group li:hover, .dep-group li.hl { background: var(--red); color: #fff; border-color: var(--red); }

.tr-list { display: grid; gap: 10px; }
.tr { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-left: 6px solid var(--blue); border-radius: 0 10px 10px 0; padding: 10px 14px; box-shadow: var(--shadow); cursor: default; transition: transform .15s; }
.tr:hover, .tr.hl { transform: translateX(4px); }
.tr.alt { border-left-color: var(--red); }
.tr.tbd { border-left-color: var(--soft); border-left-style: solid; opacity: .85; }
.tr .n { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 900; line-height: 1; text-align: center; font-size: 1rem; }
.tr .n small { display: block; font-size: .55rem; font-weight: 500; letter-spacing: .05em; }
.tr.alt .n { background: var(--red); } .tr.tbd .n { background: var(--soft); }
.tr b { display: block; color: var(--ink); text-transform: uppercase; }
.tr .d { font-size: .88rem; color: var(--blue); font-weight: 500; }
.tr.alt .d { color: var(--red); }
.tr .x { display: inline-block; margin-top: 3px; font-size: .72rem; font-weight: 700; color: #fff; background: var(--blue-darker); padding: 1px 8px; border-radius: 999px; }
.tr.past { opacity: .55; }
.tr.now { box-shadow: 0 0 0 3px var(--yellow), var(--shadow); }

/* ---------- Accordéon ---------- */
.acc { display: grid; gap: 12px; }
.acc details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .t-num { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 900; font-size: 1.15rem; }
.acc details:nth-child(even) summary .t-num { background: var(--red); }
.acc summary h3 { margin: 0; }
.acc summary p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.acc summary .chev { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: transform .2s; flex: none; }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc details[open] summary { border-bottom: 1px solid var(--sep); background: #fafcff; }
.acc .content { padding: 18px 20px 22px; }
.acc .content h4 { color: var(--blue-darker); margin: 16px 0 8px; font-size: 1rem; }
.acc .content h4:first-child { margin-top: 0; }
.acc .content ul { margin: 0; padding-left: 20px; }
.acc .content li { margin: 4px 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.kv div { background: var(--bg); border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--blue); }
.kv div:nth-child(even) { border-left-color: var(--red); }
.kv b { display: block; font-size: 1.05rem; color: var(--ink); }
.kv span { font-size: .82rem; color: var(--muted); }
.note { background: #fff8e1; border: 1px solid #f3dc8f; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-top: 12px; }
.note.blue { background: #eaf2fb; border-color: #bcd5ef; }
.note.red { background: #fdecee; border-color: #f4b8be; }

table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; background: var(--blue); color: #fff; padding: 8px 10px; font-weight: 700; }
table.t th:first-child { border-radius: 8px 0 0 0; } table.t th:last-child { border-radius: 0 8px 0 0; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--sep); }
table.t tr:nth-child(even) td { background: #fafbfd; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tfoot td { font-weight: 900; color: var(--ink); background: #eaf2fb !important; border-bottom: 0; }

/* ---------- Finances ---------- */
.stat { text-align: center; padding: 18px 12px; border-top: 4px solid var(--blue); }
.stat:nth-child(even) { border-top-color: var(--red); }
.stat b { display: block; font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fee { border-radius: 10px; padding: 12px; background: var(--bg); text-align: center; border: 1px solid var(--border); }
.fee b { display: block; font-size: 1.5rem; font-weight: 900; color: var(--blue); }
.fee.free b { color: var(--snooker); }
.fee span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--text); }
.segment { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.segment button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--text); }
.segment button.on { background: var(--blue); color: #fff; font-weight: 700; box-shadow: var(--shadow); }
.range-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.range-row input[type=range] { flex: 1; min-width: 200px; accent-color: var(--red); }
.range-row output { font-weight: 900; font-size: 1.3rem; color: var(--red); min-width: 120px; }
.bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.transfer { font-family: ui-monospace, Consolas, monospace; background: var(--blue-darker); color: #fff; padding: 10px 14px; border-radius: 8px; display: inline-block; letter-spacing: .04em; }

/* ---------- Tournois CueScore ---------- */
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.weekbar .lbl { font-weight: 700; color: var(--blue-darker); font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--blue); color: #fff; transition: background .15s; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.red { background: var(--red); } .btn.red:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--bg); color: var(--blue-dark); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ev { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.ev .head { padding: 14px 16px 10px; background: linear-gradient(120deg, var(--blue) 0%, var(--blue-darker) 100%); color: #fff; position: relative; }
.ev.bb .head { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); }
.ev.sn .head { background: linear-gradient(120deg, var(--snooker) 0%, var(--felt-dark) 100%); }
.ev .head .disc-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; font-weight: 700; }
.ev .head h3 { color: #fff; font-size: 1.02rem; margin: 4px 0 0; }
.ev .status { position: absolute; right: 12px; top: 12px; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); }
.ev .status.live { background: var(--yellow); color: #000; }
.ev .body { padding: 12px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.ev .row { display: flex; gap: 8px; align-items: flex-start; }
.ev .row svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue); }
.ev .cta { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.state { padding: 30px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--border); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--sep); border-top-color: var(--red); animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated { font-size: .8rem; color: var(--muted); }

/* ---------- Classements ---------- */
.rank-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.rank-tools input[type=search] { flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 8px; border: 1px solid #ddd; font: inherit; }
.rank-tools input[type=search]:focus { outline: 2px solid var(--blue-light); border-color: transparent; }
.rank-group { margin-top: 22px; }
.rank-group > h3 { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--sep); }
.rankings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 12px; }
.rk { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.rk .hd { padding: 12px 16px; background: var(--blue-darker); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rk.bb .hd { background: linear-gradient(120deg, var(--red-dark), var(--red)); }
.rk.sn .hd { background: linear-gradient(120deg, var(--felt-dark), var(--snooker)); }
.rk.us .hd { background: linear-gradient(120deg, var(--blue-darker), var(--us)); }
.rk .hd b { font-size: .98rem; }
.rk .hd span { font-size: .75rem; opacity: .85; white-space: nowrap; }
.rk table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rk td { padding: 7px 12px; border-bottom: 1px solid var(--sep); }
.rk td.pos { width: 54px; white-space: nowrap; text-align: center; font-weight: 900; color: var(--muted); }
.rk tr.p1 td.pos { color: #c99700; } .rk tr.p2 td.pos { color: #8d9aa6; } .rk tr.p3 td.pos { color: #b0663a; }
.rk tr.p1 td.pos::before { content: "🏆 "; font-size: .8rem; }
.rk td.pts { text-align: right; font-weight: 700; color: var(--blue-darker); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk td.tc { text-align: right; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.rk td a { color: var(--ink); text-decoration: none; }
.rk td a:hover { color: var(--blue); text-decoration: underline; }
.rk tr.match td { background: #fff4c2; }
.rk .ft { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; margin-top: auto; background: #fafbfd; }
.rk .empty { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- CueScore ---------- */
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #eaf2fb; color: var(--blue); }
.feature:nth-child(3n+2) .ic { background: #fdecee; color: var(--red); }
.feature:nth-child(3n) .ic { background: #e6f4ec; color: var(--snooker); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: .9rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 58px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; display: grid; place-items: center; }
.steps li b { color: var(--ink); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.video { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; }
.video .thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s; }
.video:hover .thumb img { opacity: 1; }
.video .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; transform: translate(-50%,-50%); border-radius: 10px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/22px no-repeat; }
.video .thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .cap { padding: 10px 12px; font-size: .86rem; font-weight: 500; }
.video .cap small { display: block; color: var(--red); font-weight: 700; font-size: .72rem; letter-spacing: .08em; }
.videos .video.playing .thumb::after { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%; max-height: 360px; object-fit: cover; }

/* ---------- Pied ---------- */
footer { background: var(--blue); color: #fff; padding: 24px 0; font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; }
footer .m { color: rgba(255,255,255,.7); font-size: .78rem; }
.banner-strip { background: #fff; border-top: 1px solid var(--border); padding: 10px 0; }
.banner-strip img { margin: 0 auto; max-height: 70px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .mapbox, .split { grid-template-columns: 1fr; }
  .org .branch { display: none; }
  .org .row { gap: 18px; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .top .logo { height: 48px; }
  .top h1 { font-size: 1.15rem; }
  .season { display: none; }
  .hero h2 { font-size: 1.5rem; }
  .hero .wrap { padding-top: 28px; padding-bottom: 28px; }
  nav.tabs button { padding: 12px 12px; }
  .org .row { gap: 14px; }
  .person { width: 100%; max-width: 440px; padding: 16px 16px 16px 20px; gap: 14px; }
  .person img { width: 84px; height: 100px; }
  .person b { font-size: 1.12rem; }
  .org .branch { display: none; }
  .acc summary { padding: 14px; gap: 12px; }
  .acc summary .t-num { width: 42px; height: 42px; font-size: 1rem; }
  .rankings, .events { grid-template-columns: 1fr; }
}
@media print {
  nav.tabs, .top .season, .banner-strip { display: none; }
  section.tab { display: block !important; page-break-after: always; }
}
