/* Borne ITG – Scores : couleurs du site (bleu nuit #0d1326, orange #e88d3f, crème #f4f0cd) */
.borne-scores {
	--bs-nuit: #0d1326; --bs-nuit2: #1b2342; --bs-orange: #e88d3f; --bs-orange-f: #b85024; --bs-creme: #f4f0cd;
	--bs-texte: #0d1326; --bs-doux: #5b6473; --bs-bord: #e0e0e0; --bs-fond: #fff;
	max-width: 1000px; margin: 0 auto; color: var(--bs-texte); font-size: 16px; line-height: 1.4;
}
.borne-scores * { box-sizing: border-box; }
.borne-scores ul, .borne-scores ol { list-style: none; margin: 0; padding: 0; }

.bs-hero {
	margin-bottom: 0;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 24px; border-radius: 14px; color: #fff;
	background: radial-gradient(circle at 90% 0, rgba(232,141,63,.35), transparent 55%), var(--bs-nuit);
}
.bs-hero h2 { margin: 0; color: #fff; font-size: 1.9em; letter-spacing: .02em; }
.bs-hero p { margin: 4px 0 0; color: var(--bs-creme); opacity: .85; }
.bs-etat { padding: 6px 14px; border-radius: 99px; font-size: .85em; background: rgba(255,255,255,.12); }
.bs-en-ligne { background: rgba(232,141,63,.2); color: #ffd7ae; }
.bs-en-ligne::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--bs-orange); box-shadow: 0 0 8px var(--bs-orange); }

.borne-scores .bs-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 6px; }
.bs-chiffres li { padding: 14px; border: 1px solid var(--bs-bord); border-radius: 12px; background: var(--bs-creme); text-align: center; }
.bs-chiffres b { display: block; font-size: 1.9em; line-height: 1.1; color: var(--bs-orange-f); }
.bs-chiffres span { font-size: .85em; color: var(--bs-doux); }

.bs-section { margin-top: 28px; }
.bs-section h3 { margin: 0 0 12px; font-size: 1.35em; padding-left: 12px; border-left: 4px solid var(--bs-orange); }

.bs-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 6px; border-radius: 50%; background: var(--bs-nuit); color: var(--bs-orange); font-weight: 700; font-size: .95em; vertical-align: middle; flex: none; }
.bs-usb { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--bs-nuit); color: var(--bs-creme); font-size: .68em; font-weight: 700; letter-spacing: .06em; vertical-align: middle; }

.bs-diff { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75em; font-weight: 700; color: #fff; background: #777; vertical-align: middle; }
.bs-d-beginner { background: #3fa7c4; } .bs-d-easy { background: #4a9d58; } .bs-d-medium { background: #d4a017; }
.bs-d-hard { background: #d9582b; } .bs-d-expert { background: #b02a56; }

.bs-recents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bs-recents li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--bs-bord); border-radius: 12px; background: var(--bs-fond); }
.bs-recents .bs-avatar { width: 40px; height: 40px; margin: 0; }
.bs-r-corps { flex: 1; min-width: 0; }
.bs-r-chanson { display: block; font-size: .9em; color: var(--bs-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-r-score { text-align: right; white-space: nowrap; }
.bs-r-score b { display: block; font-size: 1.15em; color: var(--bs-orange-f); }
.bs-r-score span { font-size: .78em; color: var(--bs-doux); }

.bs-chansons { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.bs-carte { display: flex; flex-direction: column; border: 1px solid var(--bs-bord); border-radius: 14px; background: var(--bs-fond); overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.04); }
.bs-carte header { padding: 12px 14px; background: var(--bs-nuit); color: #fff; }
.bs-carte h4 { margin: 0; color: #fff; font-size: 1.1em; }
.bs-carte header p { margin: 2px 0 0; font-size: .82em; color: var(--bs-creme); opacity: .85; }
.bs-carte ol { padding: 6px 0; flex: 1; }
.bs-carte li { display: grid; grid-template-columns: 28px 1fr auto 56px; align-items: center; gap: 8px; padding: 6px 14px; }
.bs-carte li + li { border-top: 1px solid #f0f0f0; }
.bs-rang { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #eee; font-weight: 700; font-size: .8em; }
.bs-rang-1 .bs-rang { background: #f5c542; } .bs-rang-2 .bs-rang { background: #c9ced6; } .bs-rang-3 .bs-rang { background: #d99a6c; }
.bs-rang-1 { background: linear-gradient(90deg, rgba(245,197,66,.14), transparent); }
.bs-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bs-pts { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bs-orange-f); }
.bs-grade { text-align: right; white-space: nowrap; font-size: .85em; color: var(--bs-doux); }
.bs-carte footer { padding: 8px 14px; border-top: 1px solid var(--bs-bord); background: var(--bs-creme); font-size: .8em; color: var(--bs-doux); }

.bs-table-wrap { overflow-x: auto; border: 1px solid var(--bs-bord); border-radius: 14px; }
.bs-table { width: 100%; margin: 0; border-collapse: collapse; background: #fff; }
.bs-table th { padding: 10px 12px; text-align: left; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; background: var(--bs-nuit); color: var(--bs-creme); border: 0; }
.bs-table td { padding: 8px 12px; border: 0; border-top: 1px solid #f0f0f0; font-variant-numeric: tabular-nums; }
.bs-table tbody tr:nth-child(-n+3) td:first-child { font-weight: 800; color: var(--bs-orange-f); }

.bs-vide { padding: 24px; text-align: center; border: 2px dashed var(--bs-bord); border-radius: 14px; color: var(--bs-doux); }
.bs-pied { margin-top: 24px; font-size: .82em; color: var(--bs-doux); }

@media (max-width: 720px) {
	.bs-chiffres { grid-template-columns: repeat(2, 1fr); }
	.bs-recents { grid-template-columns: 1fr; }
	.bs-hero { padding: 18px; }
}

/* Sous-onglets, musiques, fiches joueurs (1.3.0) */
.bs-sous { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.bs-sous button { cursor: pointer; padding: 8px 16px; border: 1px solid var(--bs-bord); border-radius: 999px; background: var(--bs-fond); color: inherit; font: inherit; font-weight: 600; }
.bs-sous button[aria-selected="true"] { background: var(--bs-nuit); color: #fff; border-color: var(--bs-nuit); }
.bs-sous small { opacity: .7; margin-left: 4px; }
[data-bs-sous-panneau][hidden], .bs-carte[hidden] { display: none; }
.bs-suite { margin: 12px 0 0; text-align: right; font-weight: 600; }
.bs-recherche { width: 100%; max-width: 420px; padding: 9px 14px; border: 1px solid var(--bs-bord); border-radius: 999px; font: inherit; }
.bs-anon .bs-nom { font-style: italic; font-weight: 400; color: var(--bs-doux); }
.bs-joueurs { display: grid; gap: 10px; }
.bs-fiche { border: 1px solid var(--bs-bord); border-radius: 14px; background: var(--bs-fond); overflow: hidden; }
.bs-fiche summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; cursor: pointer; }
.bs-fiche summary .bs-avatar { margin: 0; }
.bs-f-rang { font-weight: 800; color: var(--bs-orange-f); min-width: 2.2em; }
.bs-f-nom { font-weight: 700; }
.bs-f-res { margin-left: auto; font-size: .85em; color: var(--bs-doux); }
.bs-f-corps { padding: 4px 14px 14px; border-top: 1px solid var(--bs-bord); }
.bs-f-corps h5 { margin: 14px 0 6px; font-size: .85em; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-doux); }
.bs-f-chiffres { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.bs-f-chiffres li { padding: 8px 10px; border-radius: 10px; background: var(--bs-creme); }
.bs-f-chiffres b { display: block; font-size: 1.15em; color: var(--bs-orange-f); }
.bs-f-chiffres span { font-size: .78em; color: var(--bs-doux); }
.bs-barres li { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 8px; padding: 2px 0; font-size: .9em; }
.bs-barres i { display: block; height: 10px; min-width: 2px; border-radius: 5px; background: #8a8a8a; }
.bs-barres em { text-align: right; font-style: normal; font-variant-numeric: tabular-nums; }
.bs-b-w1 { background: #3aa7e0 !important; } .bs-b-w2 { background: #e5b81f !important; } .bs-b-w3 { background: #4caf50 !important; }
.bs-b-w4 { background: #9b59b6 !important; } .bs-b-w5 { background: #e08a3a !important; } .bs-b-miss { background: #d9534f !important; }
.bs-hist li { display: grid; grid-template-columns: 1fr auto 3.5em; gap: 8px; padding: 4px 0; border-top: 1px solid #f0f0f0; font-size: .9em; }
.bs-hist em { font-style: normal; text-align: right; color: var(--bs-doux); }
@media (max-width: 720px) { .bs-f-res { margin-left: 0; width: 100%; } }

/* Détail par partie (1.4.0) */
.bs-carte li { display: block; padding: 0; }
.bs-carte li .bs-ligne, .bs-parties .bs-ligne { cursor: default; }
.bs-carte li summary.bs-ligne, .bs-parties summary.bs-ligne { cursor: pointer; }
.bs-carte .bs-ligne { display: grid; grid-template-columns: 28px 1fr auto 56px; align-items: center; gap: 8px; padding: 6px 14px; list-style: none; }
.bs-ligne::-webkit-details-marker { display: none; }
.bs-parties .bs-ligne { display: grid; grid-template-columns: 1fr auto 3.5em; gap: 8px; padding: 6px 0; list-style: none; align-items: center; }
.bs-parties li { border-top: 1px solid #f0f0f0; }
.bs-parties small { color: var(--bs-doux); }
.bs-parties em { font-style: normal; text-align: right; color: var(--bs-doux); }
.bs-detail { padding: 4px 14px 10px; }
.bs-parties .bs-detail { padding: 2px 0 10px; }
.bs-detail-bits { margin: 6px 0 0; font-size: .85em; color: var(--bs-doux); }
.bs-mod { display: inline-block; margin: 0 4px 4px 0; padding: 2px 9px; border: 1px solid var(--bs-bord); border-radius: 99px; font-size: .88em; background: var(--bs-creme); }
.bs-mod small { opacity: .7; }

/* Badges, records, rivaux (1.5.0) */
.bs-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.bs-badge { display: inline-block; padding: 4px 12px; border: 1px solid var(--bs-bord); border-radius: 99px; font-weight: 700; font-size: .9em; background: #fff; }
.bs-badge-bronze { background: #e0a878; } .bs-badge-argent { background: #d9dde3; } .bs-badge-or { background: #f5c542; } .bs-badge-platine { background: #bfeaf2; }
.bs-badge-serie { background: #ffd9b8; } .bs-badge-complete { background: #d9f2d0; } .bs-badge-couronne { background: #fff3b0; }
.bs-objectif { margin: 4px 0 0; font-size: .9em; color: var(--bs-doux); }
.bs-hist small { color: var(--bs-doux); }
.bs-records { margin-bottom: 4px; }

/* Succès (1.6.0) */
.bs-succes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }
.bs-succes li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--bs-bord); border-radius: 10px; background: #fff; }
.bs-s-ico { grid-row: span 2; font-size: 1.6em; text-align: center; }
.bs-succes small { grid-column: 2; font-size: .78em; color: var(--bs-doux); line-height: 1.25; }
.bs-succes .bs-ferme { opacity: .55; filter: grayscale(1); }

/* Filtre par soirée (1.7.0) */
.bs-filtres { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 6px; }
.bs-filtres .bs-recherche { flex: 1 1 240px; }
.bs-soiree { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bs-soiree select { padding: 8px 12px; border: 1px solid var(--bs-bord); font: inherit; background: #fff; color: inherit; }
.bs-aide { margin: 0 0 14px; font-size: .85em; color: var(--bs-doux); }
.bs-carte li[hidden] { display: none; }

/* Accueil par soirée (1.8.0) */
.bs-chiffres-3 { grid-template-columns: repeat(3, 1fr); }
[data-bs-accueil-global][hidden], .bs-soiree-bloc[hidden] { display: none; }

/* Téléphone : les listes de scores ne doivent pas dépasser (1.8.1) */
.bs-recents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bs-recents li { min-width: 0; }
@media (max-width: 720px) {
	.bs-recents { grid-template-columns: minmax(0, 1fr); }
	.bs-recents li { gap: 8px; padding: 8px 10px; }
	.bs-r-chanson { white-space: normal; overflow: visible; }
	.bs-r-score { flex: none; max-width: 40%; white-space: normal; }
	.bs-r-score span { display: block; }
	.borne-scores { overflow-x: clip; }
}

/* Courbes de progression (1.9.0) */
.bs-courbe { display: block; width: 100%; height: auto; max-height: 230px; margin: 4px 0 10px; background: #fff; border: 1px solid var(--bs-bord); border-radius: 10px; }
.bs-c-grille { stroke: #ddd; stroke-width: 1; stroke-dasharray: 3 4; }
.bs-c-axe { font-size: 11px; fill: var(--bs-doux); font-family: inherit; }
.bs-c-ligne { fill: none; stroke: var(--bs-orange); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.bs-c-point { fill: #fff; stroke: var(--bs-orange-f); stroke-width: 2; }
.bs-c-top { fill: #f5c542; }
.bs-c-titre { margin: 12px 0 0; font-weight: 700; font-size: .9em; }
.bs-c-musiques { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bs-courbe-mini { max-height: 110px; margin: 4px 0; }
.bs-c-mus { min-width: 0; }
.bs-c-mus-t { font-size: .92em; }
.bs-c-mus-d { font-size: .85em; font-weight: 700; }
.bs-c-haut { color: #1c7c3a; } .bs-c-bas { color: #b3261e; }

/* Courbes par difficulté (1.10.0) */
.bs-c-note { margin: 0 0 6px; font-size: .85em; color: var(--bs-doux); }
.bs-c-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.bs-c-filtres button { cursor: pointer; padding: 4px 12px; border: 1px solid var(--bs-bord); border-radius: 99px; background: #fff; color: inherit; font: inherit; font-size: .88em; font-weight: 700; }
.bs-c-filtres button[aria-pressed="true"] { background: var(--bs-nuit); color: #fff; }
[data-bs-c-pane][hidden] { display: none; }
.bs-c-d-beginner { fill: #3fa7c4 !important; } .bs-c-d-easy { fill: #4a9d58 !important; } .bs-c-d-medium { fill: #d4a017 !important; }
.bs-c-d-hard { fill: #d9582b !important; } .bs-c-d-expert { fill: #b02a56 !important; }
.bs-maj { margin-top: 12px; }
.bs-maj button { cursor: pointer; padding: 8px 14px; font: inherit; font-weight: 600; border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 6px; }
.bs-maj button:disabled { opacity: .6; cursor: wait; }

.bs-packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.bs-pack { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 4px 12px; cursor: pointer; font: inherit; opacity: .75; }
.bs-pack[aria-pressed="true"] { opacity: 1; font-weight: 700; }
.bs-moment-item[hidden] { display: none; }

.bs-resume { margin: 8px 0 12px; font-weight: 600; }
.bs-outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.bs-outils .bs-recherche { flex: 1 1 220px; }
.bs-mini-top { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 4px; }
.bs-medaille { font-size: 1.3em; }
.bs-podium { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bs-podium li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--bs-bord); border-radius: 14px; background: var(--bs-fond); }
.bs-podium-1 { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.bs-podium b { font-size: 1.4em; }
.bs-suite-classement summary { cursor: pointer; font-weight: 600; margin: 6px 0; }

.bs-comparer { padding: 8px 12px 10px; border-top: 1px solid var(--bs-bord); }
.bs-comparer summary { cursor: pointer; font-weight: 700; }
.bs-table-cmp { font-size: .85em; }
.bs-table-cmp th, .bs-table-cmp td { padding: 4px 6px; text-align: right; white-space: nowrap; }
.bs-table-cmp th:first-child, .bs-table-cmp td:first-child { text-align: left; }
.bs-table-cmp .bs-cmp-top { font-weight: 800; text-decoration: underline; }
.bs-comparer .bs-table-wrap { overflow-x: auto; }

.bs-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 8px 0; padding: 0; font-size: .8em; }
.bs-legende i, .bs-cmp-nb i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; vertical-align: baseline; }
.bs-cmp-joueur { margin: 10px 0 12px; }
.bs-cmp-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.bs-cmp-barre { display: flex; height: 16px; overflow: hidden; border-radius: 8px; background: #ddd; }
.bs-cmp-barre i { display: block; height: 100%; }
.bs-cmp-nb { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 4px 0 0; font-size: .8em; font-variant-numeric: tabular-nums; }
.bs-cmp-combo { margin-left: auto; opacity: .8; }

.bs-cmp-titre { margin: 14px 0 4px; font-size: .95em; }
.bs-cmp-delta { margin: 4px 0 6px; font-weight: 700; font-size: .9em; }
.bs-cmp-delta.bs-haut { color: #0b6b2a; } .bs-cmp-delta.bs-bas { color: #a3160e; }

/* Fiche joueur : de l'air entre les succès (ou les listes qui précèdent) et les 7 cases de statistiques */
.bs-f-corps .bs-f-chiffres { margin-top: 26px; }
