/* Suivi : périodes explicites, comparaison des membres et recul historique. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#171919; --surface:#222525; --surface-2:#2b2e2e;
  --ink:#f2f3ed; --ink-2:#d0d3ca; --muted:#a2aaa3;
  --line:#353a37; --line-strong:#515a51;
  --accent:#e4ee88; --accent-soft:#343b26; --live:#b5c9e2;
  --ok:#9bd8b0; --ok-soft:#263b30; --bad:#efa498; --bad-soft:#3e2b29;
  --warn:#efce8c; --warn-soft:#3c3525; --unk:#a2aaa3; --unk-soft:#2e3330;
  --flex:#c1d994; --flex-soft:#343c27; --gold:#e4ee88; --radius:18px; --shadow:none;
}
.page,.topbar-inner { max-width:1480px; padding-inline:36px; }
.page { padding-top:30px; }
.topbar { background:var(--bg); border-color:var(--line); }
.topbar-inner { min-height:82px; gap:20px; }
.titles { flex:1; min-width:100px; }
.titles h1 { font-size:18px; letter-spacing:-.03em; }
.crest { background:var(--surface-2); border-radius:12px; width:38px; height:38px; }
.topbar .segmented { gap:5px; }
.segmented button { border-radius:999px; }
.topbar .segmented button { padding:10px 15px; }
.topbar .segmented button[aria-current="page"] { background:var(--accent); color:#20251a; }
.topbar .icon-btn { color:var(--muted); }
.data-info > summary { font-size:11px; }
.data-panel { border-radius:16px; }
[hidden] { display:none !important; }
.follow-title { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:26px; }
.follow-title h2 { font-size:30px; font-weight:500; letter-spacing:-.035em; margin:5px 0; }
.follow-title p { color:var(--muted); font-size:13px; }
.follow-title .eyebrow { font-size:10px; letter-spacing:.14em; }
.follow-rules { position:relative; font-size:12px; color:var(--muted); flex-shrink:0; }
.follow-rules summary { cursor:pointer; padding:10px 15px; border:1px solid var(--line); border-radius:10px; }
.follow-rules p { position:absolute; right:0; width:270px; z-index:3; background:var(--surface); padding:18px; border:1px solid var(--line); border-radius:12px; line-height:1.9; }
.follow-periods { display:flex; gap:5px; padding:5px; border-radius:14px; background:var(--surface); border:1px solid var(--line); width:fit-content; margin-bottom:22px; }
.follow-periods button { cursor:pointer; background:none; border:0; border-radius:9px; padding:11px 20px; font-size:13px; color:var(--muted); }
.follow-periods button[aria-pressed="true"] { background:var(--accent); color:#20251a; font-weight:600; }
.follow-periods button:hover:not([aria-pressed="true"]) { color:var(--ink); background:var(--surface-2); }
.period-brief { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; }
.period-brief h3 { font-size:17px; font-weight:500; margin-bottom:5px; }
.period-brief p { font-size:12px; color:var(--muted); max-width:790px; }
#reviewRange { flex-shrink:0; max-width:260px; }
.follow-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.review-filters { display:flex; flex-wrap:wrap; gap:7px; }
.review-filters button { display:flex; align-items:center; gap:8px; cursor:pointer; padding:7px 11px; background:none; border:1px solid transparent; border-radius:8px; font-size:12px; color:var(--muted); }
.review-filters b { font-size:11px; font-weight:500; color:var(--tone); background:var(--surface-2); border-radius:5px; padding:1px 5px; }
.review-filters button[aria-pressed="true"] { border-color:var(--line-strong); color:var(--ink); background:var(--surface); }
.follow-tools { display:flex; gap:8px; }
.follow-tools input,.follow-tools select,#reviewRange { background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:12px; }
.follow-tools input { width:185px; }
.follow-tools select { width:155px; }
.follow-results { color:var(--muted); font-size:11px; margin-bottom:12px; }
.follow-table { border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--surface); }
.follow-head,.follow-row { display:grid; grid-template-columns:minmax(170px,1.05fr) minmax(150px,1fr) minmax(135px,.85fr) minmax(165px,1fr) minmax(180px,1.15fr); gap:20px; padding:17px 22px; }
.follow-head { color:var(--muted); font-size:12px; background:#1e2120; }
.follow-row { border-top:1px solid var(--line); align-items:center; min-height:108px; }
.follow-row:hover { background:#262b28; }
.follow-head.season,.follow-row.season { grid-template-columns:minmax(190px,1fr) minmax(160px,1fr) minmax(180px,1fr) minmax(180px,1.2fr); }
.follow-person { display:flex; align-items:center; gap:12px; min-width:0; }
.follow-person .avatar { width:34px; height:34px; flex:0 0 34px; border-radius:10px; }
.follow-person > div { min-width:0; }
.player-name { padding:0; border:0; background:none; color:var(--ink); cursor:pointer; text-align:left; overflow-wrap:anywhere; font-weight:600; font-size:14px; }
.player-name > span { color:var(--muted); font-size:11px; }
.player-name:hover { color:var(--accent); }
.follow-person small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.follow-cell { min-width:0; font-size:12px; }
.mobile-column { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.review-metric { display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.review-metric strong { font-size:14px; font-weight:500; }
.review-metric small { font-size:11px; color:var(--muted); }
.review-state { color:var(--tone); background:var(--tone-soft); display:inline-flex; padding:2px 7px; border-radius:5px; font-size:11px; font-weight:500; white-space:nowrap; }
.record-cell { font-size:12px; }
.record-cell strong { font-weight:500; font-size:12px; color:var(--tone,var(--ink)); }
.record-cell small,.profile-brief small { display:block; color:var(--muted); font-size:11px; margin-top:5px; }
.record-strip { display:flex; gap:5px; margin:8px 0; flex-wrap:wrap; }
.record-strip > span { display:grid; place-items:center; min-width:24px; height:22px; border-radius:5px; background:var(--tone-soft); color:var(--tone); font-size:12px; }
.profile-brief strong { font-weight:500; font-size:13px; }
.partial-stay { grid-column:1/-1; color:var(--muted); font-size:10px; margin-top:-6px; }
.follow-footnote { font-size:11px; color:var(--muted); margin:16px 0; }
.sheet { width:min(1120px,calc(100% - 48px)); border-radius:20px; }
.sheet::backdrop { background:#080b09b0; }
.sheet-head { align-items:center; }
.player-performance { color:var(--muted); font-size:10px; margin-top:6px; }
.player-performance summary { cursor:pointer; }
.sheet .segmented { display:flex; gap:5px; width:fit-content; padding:4px; background:var(--surface-2); border:0; border-radius:10px; }
.sheet .segmented button { padding:10px 16px; border-radius:7px; }
.sheet .segmented button[aria-selected="true"] { background:var(--accent); color:#20251a; }
.player-now { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:10px 0 20px; }
.player-now > section { border:1px solid var(--line); border-radius:13px; padding:18px; background:#262b28; }
.sheet .player-now h3 { text-transform:none; font-size:13px; letter-spacing:0; margin:0 0 12px; }
.player-now .review-metric strong { font-size:23px; letter-spacing:-.025em; }
.player-now .review-metric small { font-size:11px; }
.player-now p { font-size:11px; color:var(--muted); margin-top:10px; }
.player-now p[data-tone="bad"] { color:var(--bad); }
.player-now h3 .review-state { margin-left:6px; }
.player-insights,.journey-comparison { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:0 0 18px; }
.insight-panel { min-width:0; border:1px solid var(--line); border-radius:14px; padding:20px; }
.insight-panel header { margin-bottom:16px; }
.sheet .insight-panel h3 { text-transform:none; letter-spacing:0; font-size:16px; font-weight:500; }
.insight-panel p,.insight-panel .meta { font-size:11px; color:var(--muted); margin-top:5px; }
.insight-panel .history-verdict { font-size:19px; color:var(--ink); font-weight:500; margin:15px 0 10px; }
.record-facts { margin-top:12px; }
.record-facts > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:10px 0; border-top:1px solid var(--line); font-size:12px; }
.record-facts dt { color:var(--muted); }
.record-facts dt small { display:block; font-size:10px; }
.record-facts dd { font-weight:500; text-align:right; flex-shrink:0; max-width:55%; }
.profile-categories { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.profile-categories > span { display:flex; gap:12px; padding:7px 10px; font-size:11px; background:var(--surface-2); border-radius:7px; }
.profile-categories b { font-weight:500; color:var(--accent); }
.profile-next { display:flex; flex-wrap:wrap; gap:10px; }
.profile-next .btn { font-size:12px; background:var(--surface-2); border-color:var(--line); }
.before-style { display:flex; flex-wrap:wrap; gap:12px; padding:12px 0; font-size:12px; }
.before-style strong { font-weight:500; }
.before-style small { color:var(--muted); }
.btn.primary,.auth-gate form button { color:#232a18; }
.objective-table tr[data-current="true"] { background:var(--accent-soft); }
.rank-row:hover { background:var(--surface-2); }
.chip[aria-pressed="true"] { color:#232a18; box-shadow:none; }
.account-bar { color:var(--muted); margin-top:24px; }
.recruit-comparison { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:16px; }
.recruit-comparison section { padding:14px; border-radius:10px; background:var(--surface-2); }
.recruit-comparison h3 { font-size:12px; font-weight:600; margin-bottom:10px; }
.recruit-comparison .chip-status { font-size:10px; white-space:normal; }
.recruit-comparison p { font-size:11px; margin:6px 0; color:var(--muted); }
.recruit-comparison strong { display:block; font-size:14px; font-weight:500; color:var(--ink); }
@media(max-width:1150px) {
 .page,.topbar-inner { padding-inline:24px; }
 .topbar-inner { gap:12px; flex-wrap:wrap; }
 .follow-head,.follow-row { gap:14px; padding-inline:16px; grid-template-columns:minmax(140px,1fr) minmax(125px,1fr) minmax(110px,.8fr) minmax(130px,1fr) minmax(155px,1fr); }
}
@media(max-width:950px) {
 .follow-head { display:none; }
 .follow-table { background:none; border:0; overflow:visible; }
 .follow-rows { display:grid; gap:14px; }
 .follow-row,.follow-row.season { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px; }
 .follow-person { grid-column:1/-1; }
 .follow-row.season { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .mobile-column { display:block; position:static; width:auto; height:auto; overflow:visible; clip-path:none; color:var(--muted); font-size:11px; margin-bottom:9px; }
 .follow-cell { border-top:1px solid var(--line); padding-top:10px; }
 .follow-title h2 { font-size:27px; }
 .player-insights { grid-template-columns:1fr; }
}
@media(max-width:760px) {
 .page,.topbar-inner { padding-inline:16px; }
 .page { padding-top:24px; padding-bottom:100px; }
 .topbar-inner { min-height:70px; }
 .topbar .desktop-only { display:none !important; }
 .titles h1 { font-size:16px; }
 .data-info { order:initial; }
 .data-panel { left:auto; right:0; }
 .follow-title { align-items:flex-start; gap:10px; margin-bottom:20px; }
 .follow-title h2 { font-size:26px; }
 .follow-title > div > p:not(.eyebrow) { font-size:12px; }
 .follow-rules summary { font-size:10px; padding:7px; }
 .follow-periods { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:5px; margin-bottom:18px; }
 .follow-periods button { padding:11px 8px; font-size:12px; }
 .period-brief { display:block; margin-bottom:16px; }
 .period-brief p { font-size:11px; }
 #reviewRange { margin-top:12px; width:100%; max-width:none; }
 .follow-toolbar { display:block; }
 .review-filters { gap:3px; margin-bottom:12px; }
 .review-filters button { padding:7px 6px; font-size:10px; gap:4px; }
 .review-filters b { font-size:10px; }
 .follow-tools input { flex:1; width:0; min-width:0; }
 .follow-tools select { width:145px; }
 .follow-row,.follow-row.season { grid-template-columns:1fr 1fr; padding:18px; gap:16px; }
 .follow-row.season .follow-cell:last-child { grid-column:1/-1; }
 .follow-person .avatar { width:38px; height:38px; }
 .follow-person small { font-size:11px; }
 .follow-footnote { font-size:10px; }
 .sheet { width:100%; border-radius:0; padding:16px; }
 .sheet .segmented { width:100%; display:grid; grid-template-columns:1fr 1fr; }
 .sheet .segmented button { padding:9px 7px; font-size:12px; }
 .player-now { gap:8px; grid-template-columns:1fr; }
 .player-now > section { padding:14px; display:grid; grid-template-columns:1fr 1.5fr; gap:8px; }
 .sheet .player-now h3 { margin:0; }
 .player-now .review-metric strong { font-size:19px; }
 .player-now p { grid-column:1/-1; }
 .player-insights,.journey-comparison { grid-template-columns:1fr; gap:12px; }
 .insight-panel { padding:16px; }
 .record-facts > div { font-size:11px; }
 .record-facts dd { flex-shrink:1; }
 .profile-next { display:grid; }
 .tabbar { padding-bottom:env(safe-area-inset-bottom); }
 .tabbar button { min-width:0; padding:12px 7px; font-size:11px; flex:1; }
 .recruit-comparison { gap:8px; }
 .recruit-comparison section { padding:11px; }
}

/* Une lecture confortable, y compris pour les bilans rédigés en toutes lettres. */
.follow-title p,.period-brief p,.follow-cell,.record-cell,.record-cell strong,
.follow-person small,.record-cell small,.profile-brief small,.review-metric small,
.follow-results,.follow-footnote,.insight-panel p,.insight-panel .meta,
.record-facts > div,.record-facts dt small,.player-now p,.player-now .review-metric small,
.recruit-comparison p,.recruit-comparison h3,.player-performance,
.objective-table,.objective-table small,.held small,.ranking-explanation { font-size:13px; line-height:1.5; }
.review-state,.objective-state,.recruit-comparison .chip-status { font-size:12px; white-space:normal; }
.follow-periods button,.review-filters button,.follow-tools input,.follow-tools select,#reviewRange { font-size:13px; }
.follow-tools { flex-wrap:wrap; }
.follow-tools select { width:265px; }
.follow-person small { line-height:1.4; }
.follow-row { padding-block:22px; }
.record-cell strong { display:block; line-height:1.5; }
.history-facts > div { display:block; }
.history-facts dt { font-weight:600; color:var(--ink); margin-bottom:5px; }
.history-facts dd { text-align:left; max-width:none; color:var(--ink-2); }
.follow-head { font-size:13px; }
.held small { white-space:normal; overflow:visible; text-overflow:clip; }
.ranking-explanation { color:var(--muted); margin:16px 0 22px; max-width:850px; }
.rank-selected { grid-column:2/-1; font-size:14px; line-height:1.5; padding-top:12px; border-top:1px solid var(--line); }
.profile-categories > span,.profile-next .btn,.mobile-column { font-size:13px; }
@media(max-width:760px) {
 .follow-tools { display:grid; grid-template-columns:1fr; }
 .follow-tools input,.follow-tools select { width:100%; }
 .review-filters { gap:6px; }
 .review-filters button { padding:9px; }
 .review-filters b { font-size:12px; }
 .follow-row.history { grid-template-columns:1fr; }
 .follow-row.history .mobile-column { margin-bottom:6px; }
 .follow-title > div > p:not(.eyebrow),.period-brief p,.follow-person small,.follow-footnote,.record-facts > div { font-size:13px; }
 .follow-rules summary { font-size:12px; }
 .player-now > section { display:block; }
 .sheet .player-now h3 { margin-bottom:12px; }
 .rank-metrics { grid-template-columns:1fr; }
 .rank-metrics .cell { padding-block:12px; }
 .recruit-comparison { grid-template-columns:1fr; }
 .sheet .meta,.sheet .note,.period-note,.style-tiles dt,.style-tiles small { font-size:13px; }
}

.refresh-text { margin:2px 0 0; font-size:11px; color:var(--muted); }
.record-cell small[data-tone="bad"] { color:var(--bad, #e5484d); }
.record-line { margin:2px 0 0; font-size:11.5px; font-weight:600; }
.record-line [data-tone="bad"] { color:var(--bad); } .record-line [data-tone="ok"] { color:var(--muted); font-weight:500; }

/* Mobile : en-tête sur une ligne, filtres défilants, joueurs visibles tout de suite */
@media (max-width: 760px) {
  .data-info { display:none; }
  #feedbackOpen span[data-label], #feedbackInbox span[data-label] { display:none; }
  .refresh-text { white-space:nowrap; }
  .follow-title { margin-bottom:12px; }
  .follow-title h2 { font-size:22px; }
  .follow-periods { margin-bottom:12px; }
  .period-brief { margin-bottom:10px; }
  .period-brief h3 { display:none; }
  .period-brief select { width:100%; }
  .review-filters { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 -16px; padding:0 16px; }
  .review-filters button { flex:none; padding:6px 9px; }
}
@media (max-width: 760px) {
  .rank-row .rank-metrics { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:6px; }
  .rank-row .rank-metrics .cell { padding:6px 8px; font-size:12.5px; }
  .rank-row .rank-metrics .cell small { font-size:11px; }
}

.rank-head, .rank-row { grid-template-columns: 48px minmax(170px, 2fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .rank-row { grid-template-columns: 30px minmax(0, 1fr); } }

/* Code couleur unique : vert respecté, rouge manqué, bleu en cours, gris sans donnée, orange repère */
:root, :root[data-theme] { --live-soft:#25303c; --flex:var(--ok); --flex-soft:var(--ok-soft); }
[data-tone="live"] { --tone: var(--live); --tone-soft: var(--live-soft); }
[data-tone="unk"] { --tone: var(--muted); --tone-soft: var(--surface-2); }
[data-global] .rank-head, [data-global] .rank-row { grid-template-columns: 48px minmax(170px, 2fr) repeat(4, minmax(0, 1fr)); }
.rank-row .cell.global em { color: var(--accent); font-size: 18px; }
@media (max-width: 760px) {
  [data-global] .rank-row { grid-template-columns: 30px minmax(0, 1fr); }
  [data-global] .rank-row .rank-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
