:root {
  /* Couleurs du PSG : bleu Hechter, rouge et blanc */
  --navy: #004170;
  --navy-2: #0a5a96;
  --navy-dark: #002a4d;
  --red: #da291c;
  --red-soft: #fde9e7;
  --gold: #da291c;
  --sky: #8fb4dc;
  --bg: #eef2f7;
  --card: #ffffff;
  --ink: #141a2a;
  --muted: #5d6679;
  --line: #e1e5ee;
  --ok: #1d8a4e;
  --ok-soft: #e3f4ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 42, 77, .06), 0 4px 16px rgba(0, 42, 77, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; }
a { color: var(--navy-2); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Structure ---------- */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 6px solid var(--red); box-shadow: inset 0 -2px 0 #fff; display: flex; align-items: center; gap: 16px; padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top)); background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 1.1rem; }
.brand img { height: 44px; width: auto; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px 6px; }
@media (max-width: 480px) { .brand span { display: none; } }
.topnav { display: none; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; color: #c9d3ea; text-decoration: none; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: .95rem; position: relative; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topnav a.active { color: #fff; background: rgba(255,255,255,.14); }
.me-chip { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.me-chip img, .me-chip .av { width: 34px; height: 34px; }
main { max-width: 980px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--tabbar-h);
  color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--red); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
.topnav .badge { margin-left: 6px; }
@media (min-width: 860px) {
  .topnav { display: flex; }
  .tabbar { display: none !important; }
  main { padding-bottom: 40px; }
}

/* ---------- Composants ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid2 { display: grid; gap: 16px; margin-bottom: 16px; }
.grid2 > .card { margin-bottom: 0; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px;
  min-height: 44px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-2); }
.btn.red { background: var(--red); }
.btn.red:hover { background: #b51f14; }
.btn.ghost { background: transparent; color: var(--navy-2); border: 1px solid var(--line); }
.btn.ghost:hover { background: #eef1f7; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--navy-2); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; }

label.f { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; border: 1px solid #cfd5e2; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 44px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(218, 41, 28, .35); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; min-height: 36px; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.error { background: var(--red-soft); color: #8d1019; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .9rem; }

.av { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-2); color: #fff; font-weight: 800; font-size: .85rem; object-fit: cover; flex: none; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line); }
.av.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.av.sm { width: 28px; height: 28px; font-size: .65rem; border-width: 1px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: #eef1f7; color: var(--navy-2); letter-spacing: .02em; }
.pill.red { background: var(--red-soft); color: #a2131e; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.gold { background: var(--red); color: #fff; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700;
  font-size: .85rem; cursor: pointer; color: var(--muted); min-height: 38px; }
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Connexion ---------- */
.auth { max-width: 460px; margin: 24px auto; }
.auth-logo { display: block; width: 220px; margin: 0 auto 8px; }
.auth h1 { text-align: center; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ktile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; font-weight: 700; font-size: .85rem; }
.ktile.sel { border-color: var(--red); background: var(--red-soft); }
.ktile:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Matchs ---------- */
.match-hero { position: relative; overflow: hidden; padding-left: 40px !important; background: linear-gradient(90deg, #fff 0 4px, var(--red) 4px 18px, #fff 18px 22px, transparent 22px), linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.match-hero .meta { color: #c9d3ea; font-size: .85rem; font-weight: 600; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0; }
.team { font-weight: 800; font-size: 1.15rem; text-align: center; letter-spacing: .02em; overflow-wrap: anywhere; }
.vs { font-weight: 800; font-size: 1.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 12px 16px;
  text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.mlist li:first-child a { border-top: 0; }
.mlist li a:hover { background: #f7f9fc; }
.jnum { font-weight: 800; color: var(--muted); font-size: .8rem; text-align: center; }
.mteams { font-weight: 700; }
.mteams small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.pts { min-width: 44px; text-align: center; font-weight: 800; font-size: 1.05rem; border-radius: 10px; padding: 4px 8px; background: #eef1f7; font-variant-numeric: tabular-nums; }
.pts.top { background: var(--gold); color: #fff; }
.pts.zero { color: var(--muted); }

.score-input { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 16px; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stepper .lbl { font-weight: 800; font-size: .9rem; text-align: center; }
.stepper .ctrl { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.stepper output { width: 52px; text-align: center; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash { font-size: 1.6rem; font-weight: 800; color: var(--muted); align-self: end; padding-bottom: 6px; }
@media (max-width: 400px) { .stepper button { width: 40px; height: 40px; } .stepper output { width: 40px; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.pbtn { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-weight: 700; font-size: .85rem; min-height: 44px; text-align: left; }
.pbtn small { color: var(--muted); font-weight: 600; font-size: .7rem; white-space: nowrap; }
.pbtn.sel { border-color: var(--red); background: var(--red-soft); }
.poste-h { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }

/* ---------- Tableaux ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl tr.me td { background: #fff7e0; }
.who { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 700; }
.rk { width: 30px; font-weight: 800; text-align: center; color: var(--muted); }
.rk.p1 { color: var(--red); } .rk.p2 { color: var(--navy); } .rk.p3 { color: var(--navy-2); }
.total { font-weight: 800; font-size: 1.05rem; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: table-cell; } }

.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin-bottom: 8px; text-align: center; }
.podium .step { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; }
.podium .block { width: 100%; border-radius: 10px 10px 0 0; color: #fff; font-weight: 800; padding: 6px 0; }
.podium .s1 .block { background: var(--gold); height: 72px; }
.podium .s2 .block { background: var(--navy); height: 54px; }
.podium .s3 .block { background: var(--sky); color: var(--navy-dark); height: 40px; }

/* ---------- Mur & messages ---------- */
.post { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .who-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 6px; }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.react { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 8px; font-size: .85rem; cursor: pointer; min-height: 30px; }
.react.mine { border-color: var(--red); background: var(--red-soft); }
.react-pick { position: relative; }
.react-menu { position: absolute; bottom: 36px; left: 0; display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); z-index: 5; }
.react-menu button { border: 0; background: none; font-size: 1.25rem; cursor: pointer; padding: 4px; border-radius: 50%; }
.react-menu button:hover { background: #eef1f7; }
.replies { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--line); }
.replies .post { grid-template-columns: 28px 1fr; padding: 8px 0; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 48px; height: 48px; }
.thread { display: flex; flex-direction: column; gap: 6px; min-height: 40vh; max-height: 62vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; background: #eef1f7; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble:not(.mine) { border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: .68rem; opacity: .7; margin-top: 2px; }
.conv { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.conv:first-child { border-top: 0; }
.conv .last { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rekap-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.6; }

/* ---------- Divers ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.skel { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, #e9edf4, #f4f6fa, #e9edf4); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: #eef1f7; border-radius: 999px; padding: 4px 6px 4px 10px; font-weight: 600; font-size: .85rem; }
.chip button { border: 0; background: #d7dce8; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px; }
.detail { font-size: .75rem; color: var(--muted); }
.evo svg { width: 100%; height: auto; display: block; }
.evo .legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; margin-top: 8px; }
.evo .legend button { border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; padding: 2px; }
.evo .legend i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars div { flex: 1; background: var(--navy-2); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars div.top { background: var(--gold); }
.profile-head { display: flex; gap: 16px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.kpi { background: #f3f5f9; border-radius: 10px; padding: 8px; text-align: center; }
.kpi b { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.plomb { font-size: .9rem; }

.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

.mlinks { display: flex; gap: 4px; margin-left: auto; }
.mlinks a { color: #c9d3ea; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 999px; position: relative; }
.mlinks a.active { color: #fff; background: rgba(255,255,255,.14); }
.mlinks .badge { position: absolute; top: -4px; right: -4px; }
@media (min-width: 860px) { .mlinks { display: none; } .me-chip { margin-left: auto; } }
@media (max-width: 859px) { .me-chip { margin-left: 4px; } }

.vignette { width: 150px; flex: none; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 42, 77, .25); transform: rotate(-2deg); }
@media (max-width: 480px) { .vignette { width: 112px; } }

/* Barres horizontales (une seule série) */
.hbar { height: 10px; background: #eef1f7; border-radius: 4px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--navy-2); border-radius: 0 4px 4px 0; }
/* Hall of Fame */
.hof-head p { margin-top: -4px; }
.hof-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hof-year { position: relative; margin: 0; }
.hof-y { position: absolute; top: 12px; right: 16px; font-weight: 900; font-size: 1.6rem; color: #d7dce8; font-variant-numeric: tabular-nums; }
.hof-champ { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hof-card { width: 84px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0, 42, 77, .25); transform: rotate(-3deg); }
.hof-name { font-size: 1.05rem; font-weight: 800; }
.hof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hof-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.hof-list li > span:first-child { width: 22px; text-align: center; }
.plomb-row { padding-top: 6px; border-top: 1px dashed var(--line); }
/* Konnard(e)s */
.intro { margin: 0 0 16px; padding: 14px 18px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; box-shadow: var(--shadow); }
.kn-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kn { display: grid; grid-template-columns: 112px 1fr; gap: 14px; margin: 0; align-items: start; }
.kn-pic img:not(.av) { width: 112px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 42, 77, .2); }
.kn-pic .av.lg { width: 96px; height: 96px; }
.kn h2 { margin: 0; font-size: 1.15rem; }
.kn p { margin: 6px 0; font-size: .92rem; }
.kn-who { color: var(--muted); font-weight: 600; margin-top: 2px !important; }
.kn-titre { font-weight: 700; color: var(--navy-2); }
.kn-cit { font-style: italic; color: var(--red); font-weight: 600; }
/* Statistiques */
.kpis-lg { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpis-lg .kpi { background: #fff; box-shadow: var(--shadow); padding: 12px; }
.kpis-lg .kpi small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.troph-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.troph { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.troph-ic { font-size: 1.6rem; width: 40px; text-align: center; }
.troph-who { font-weight: 800; }

@media (max-width: 480px) {
  .kn { grid-template-columns: 76px 1fr; gap: 10px; padding: 12px; }
  .kn-pic img:not(.av) { width: 76px; }
  .kn-pic .av.lg { width: 68px; height: 68px; font-size: 1.3rem; }
  .kn-grid { grid-template-columns: 1fr; }
}

/* ---------- Habillage PSG ---------- */
.topbar { background: var(--navy-dark); }
.match-hero > * { position: relative; }
.match-hero .btn.red { box-shadow: 0 0 0 2px #fff; }
h1 { color: var(--navy); }
.card-head h2, .card > h2 { color: var(--navy); }
.tbl th { color: var(--navy-2); }
.tabs button.active { background: var(--navy); border-color: var(--navy); }
.tabs button:hover:not(.active) { border-color: var(--navy-2); color: var(--navy); }
.tabbar { border-top: 3px solid var(--red); }
.tabbar a.active { color: var(--red); }
.tabbar a.active svg { stroke-width: 2.5; }
.badge { box-shadow: 0 0 0 2px #fff; }
.tbl tr.me td { background: #e8f0f9; }
.btn { background: var(--navy); }
.btn:hover { background: var(--navy-dark); }
.pts.top { background: var(--red); }
.bars div { background: var(--navy); }
.bars div.top { background: var(--red); }
.hbar i { background: var(--navy); }
.kn-cit { color: var(--red); }
.kn-titre { color: var(--navy); }
.intro { border-left-color: var(--red); }
.kpis-lg .kpi { border-top: 4px solid var(--navy); }
.kpis-lg .kpi:nth-child(even) { border-top-color: var(--red); }
.troph { border-left: 4px solid var(--red); }
.hof-y { color: #c6d6e8; }
.hof-year { border-top: 6px solid var(--navy); }
.hof-year:first-child { border-top-color: var(--red); }
/* Page de connexion : tribune du Parc */
body.is-auth { background: linear-gradient(90deg, var(--navy-dark) 0 9%, #fff 9% 10%, var(--red) 10% 15%, #fff 15% 16%, var(--navy-dark) 16%) fixed; }
body.is-auth .auth h1 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
body.is-auth .auth > .muted { color: #e6eef7 !important; }
body.is-auth .auth .tabs button:not(.active) { background: rgba(255,255,255,.92); }
body.is-auth .auth .tabs button.active { background: var(--red); border-color: var(--red); }
.auth-logo { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.back-links { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 600; }

/* Kroniks */
.kr-item { display: block; text-decoration: none; color: inherit; border-left: 4px solid var(--navy); transition: transform .1s; }
.kr-item:hover { transform: translateY(-1px); border-left-color: var(--red); }
.kr-item h2 { margin: 2px 0 6px; }
.rekap-body { max-width: 70ch; }

/* Comparaison (fiche Konnard) */
.dif { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-top: 2px; white-space: nowrap; }
.dif.up { background: var(--ok-soft); color: var(--ok); }
.dif.down { background: var(--red-soft); color: #a3170c; }
.dif.eq { background: #eef1f7; color: var(--muted); }
.cmp .tbl td { vertical-align: top; }
@media (max-width: 480px) {
  .cmp .tbl th, .cmp .tbl td { padding: 6px 3px; font-size: .8rem; }
  .cmp .tbl td:first-child { padding-left: 10px; }
  .cmp .tbl td.total { white-space: nowrap; font-size: .95rem; }
  .cmp .dif { font-size: .68rem; padding: 1px 4px; }
}

.kr-item.kronik { border-left-color: var(--red); }

/* Installation de l'appli */
.install-card { display: flex; gap: 14px; align-items: center; }
.install-card img { border-radius: 16px; box-shadow: var(--shadow); }
.install-banner { display: flex; gap: 10px; align-items: center; border-left: 4px solid var(--red); padding: 10px 12px; }
.install-banner img { border-radius: 10px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ios-share { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--navy-2); border-radius: 6px; color: var(--navy-2); font-size: .8rem; }
/* Appli installée : place pour l'encoche et la barre d'accueil de l'iPhone */
@media (display-mode: standalone) { .tabbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); } }
