:root {
  --navy: #0b1f4d;
  --navy-2: #13306e;
  --red: #e30613;
  --orange: #ff7a1a;
  --bg: #f3f5f9;
  --card: #ffffff;
  --ink: #0e1726;
  --muted: #5d6b82;
  --line: #e2e7ef;
  --win: #16a34a;
  --loss: #dc2626;
  --chip: #eef2f8;
  --shadow: 0 1px 2px rgba(11, 31, 77, .06), 0 6px 20px rgba(11, 31, 77, .07);
  --tabs-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d1c;
    --card: #111a2e;
    --ink: #eef2fa;
    --muted: #93a1ba;
    --line: #1f2a42;
    --chip: #1a2540;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* --- barre du haut --- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--navy);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.brand-title { font-family: Anton, Impact, sans-serif; font-size: 22px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; }
.refresh {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.refresh.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { max-width: 720px; margin: 0 auto; padding: 16px; }
.view { display: none; }
.view.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

h2.section {
  font-family: Anton, Impact, sans-serif; text-transform: uppercase;
  font-size: 22px; letter-spacing: .02em; margin: 26px 0 10px; font-weight: 400;
}
h2.section:first-child { margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* --- carte héros (prochain match) --- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 18px 18px 20px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 60%, #1b3f8f 100%);
  color: #fff; box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px;
  border-radius: 50%; border: 26px solid rgba(255, 122, 26, .12);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
}
.pill.dom { background: var(--red); color: #fff; }
.pill.ext { background: rgba(255, 255, 255, .16); color: #fff; }
.pill.type { background: var(--chip); color: var(--muted); }
.countdown { opacity: .85; }
.versus {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 20px 0 16px;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.team-name { font-weight: 800; font-size: 14px; line-height: 1.2; }
.team.us .team-name { color: var(--orange); }
.logo {
  width: 58px; height: 58px; border-radius: 16px; background: #fff; object-fit: contain; padding: 5px;
  display: grid; place-items: center; font-family: Anton, sans-serif; font-size: 20px; color: var(--navy);
}
.vs { font-family: Anton, sans-serif; font-size: 28px; opacity: .9; }
.hero-score { font-family: Anton, sans-serif; font-size: 40px; letter-spacing: .02em; }
.hero-date { position: relative; z-index: 1; text-align: center; }
.hero-date .d { font-family: Anton, sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.hero-date .h { font-size: 14px; opacity: .85; margin-top: 2px; }

/* --- cartes infos --- */
.card {
  background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); margin-top: 12px;
}
.card h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.row + .row { border-top: 1px dashed var(--line); }
.ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--chip);
  display: grid; place-items: center; color: var(--navy);
}
@media (prefers-color-scheme: dark) { .ico { color: var(--orange); } }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.row .v { font-weight: 700; font-size: 15px; }
.row .v.big { font-family: Anton, sans-serif; font-size: 22px; font-weight: 400; letter-spacing: .02em; }
.tbd, .row .v.big .tbd { color: var(--muted); font-family: Manrope, system-ui, sans-serif; font-size: 15px; font-weight: 600; font-style: italic; letter-spacing: 0; }
.note { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
@media (prefers-color-scheme: dark) { .note { background: #2a1a0c; color: #fdba74; border-color: #5a3413; } }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 14px; font-weight: 800; font-size: 14px; text-decoration: none;
  background: var(--chip); border: 0; cursor: pointer; color: var(--ink);
}
.btn.primary { background: var(--red); color: #fff; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.full { grid-column: 1 / -1; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checklist li { background: var(--chip); padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* --- planning --- */
.match {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  margin-top: 10px; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%;
}
.match.past { opacity: .78; }
.match.next { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227, 6, 19, .15), var(--shadow); }
.datebox { text-align: center; border-radius: 12px; background: var(--chip); padding: 6px 0; }
.datebox .j { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.datebox .n { font-family: Anton, sans-serif; font-size: 22px; line-height: 1.1; }
.datebox .m { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--red); }
.match .opp { font-weight: 800; font-size: 15px; line-height: 1.25; }
.match .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.tag.dom { background: var(--red); color: #fff; }
.tag.ext { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .tag.ext { background: #2a3d6e; } }
.tag.amical { background: var(--chip); color: var(--muted); }
.result { text-align: right; min-width: 64px; }
.result .s { font-family: Anton, sans-serif; font-size: 20px; }
.result .wl { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 6px; }
.wl.V { background: var(--win); } .wl.D { background: var(--loss); } .wl.N { background: var(--muted); }
.result .h { font-weight: 800; font-size: 14px; }

.avis-report {
  display: block; width: 100%; text-align: left; cursor: pointer; margin-bottom: 12px;
  padding: 14px 16px; border-radius: 16px; border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, .14); color: var(--ink); font-size: 14.5px; line-height: 1.45;
}
.avis-titre { font-family: Anton, Impact, sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; color: #d97706; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .avis-titre { color: #fbbf24; } }
.tag.report { background: #f59e0b; color: #1f1300; }
.match.reporte { opacity: .7; }
.match.reporte .opp s { text-decoration-thickness: 2px; }
.report-note { margin-top: 8px; font-weight: 800; color: #fbbf24; }

/* --- entraînements --- */
.top-btns { display: flex; gap: 8px; }
.rappel-entr {
  display: block; width: 100%; text-align: left; cursor: pointer; margin: 4px 0 6px;
  padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.rappel-titre { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rappel-ligne { display: flex; gap: 6px; font-size: 14px; padding: 2px 0; }
.rappel-ligne span { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--red); white-space: nowrap; }
.entr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.entr-jour { font-family: Anton, Impact, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.entr-quand { font-size: 13px; font-weight: 800; color: var(--red); }
.seance h3 { margin: 16px 0 6px; }
.seance p { margin: 0; line-height: 1.5; }
.seance-theme { font-family: Anton, Impact, sans-serif; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; margin-top: 4px; color: var(--red); }
.puces { margin: 0; padding-left: 20px; line-height: 1.55; }
.puces li + li { margin-top: 4px; }
.deroule { margin: 0; padding-left: 22px; line-height: 1.55; }
.esprit { border-left: 4px solid var(--red); }

/* --- espace coach --- */
.schema { display: block; width: 100%; max-width: 420px; height: auto; margin: 10px auto; }
.sc-lab { font: 800 12px Manrope, system-ui, sans-serif; fill: #fff; }
.sc-txt { font: 800 11px Manrope, system-ui, sans-serif; fill: #1f2937; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
.sc-zone { font: 800 12px Manrope, system-ui, sans-serif; fill: #0b1f4d; paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 3px; }
.sc-tapis { font: 800 11px Manrope, system-ui, sans-serif; fill: #fff; }
.exo-head { display: flex; gap: 10px; align-items: center; }
.exo-num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: Anton, sans-serif; font-size: 18px; }
.exo-titre { font-weight: 800; font-size: 16px; }
.exo-but { margin: 10px 0 0; font-weight: 600; }
.exo-points { display: flex; flex-wrap: wrap; margin-top: 10px; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); font-weight: 700; margin: 12px 4px 0; }
.legende span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; font-style: normal; }
.lg.att { background: #0b1f4d; } .lg.def { background: #e30613; } .lg.coach { background: #15803d; } .lg.ballon { background: #ff7a1a; width: 9px; height: 9px; }
.lg.plot { border-radius: 0; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid #ff7a1a; }
.lg.trait, .lg.tirets, .lg.points { width: 22px; height: 0; border-radius: 0; border-top: 2.5px solid var(--ink); }
.lg.tirets { border-top-style: dashed; } .lg.points { border-top-style: dotted; border-color: #e30613; }
.lg.onde { width: auto; height: auto; font-weight: 800; color: var(--ink); }

/* --- annonces --- */
.ann-bouton {
  display: block; width: 100%; text-align: left; cursor: pointer; margin: 4px 0 10px;
  padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.ann-bouton.nouv { border-color: var(--red); background: rgba(227, 6, 19, .07); }
.ann-bouton-titre { display: flex; align-items: center; gap: 8px; font-family: Anton, Impact, sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.ann-bouton-titre .tag { font-family: Manrope, system-ui, sans-serif; letter-spacing: .04em; }
.ann-fleche { margin-left: auto; font-family: Manrope, sans-serif; font-size: 22px; color: var(--muted); }
.ann-extrait { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ann-extrait b { color: var(--ink); }
.ann-bloc { margin: 4px 0 10px; }
.ann-bloc-titre { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 6px; display: flex; gap: 8px; align-items: center; }
.ann-vide { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line); background: var(--card); color: var(--ink); font-size: 14px; }
.ann-vide span { font-size: 12.5px; color: var(--muted); }
.annonce { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.annonce.nouv { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227, 6, 19, .15), var(--shadow); }
.cvl .annonce { box-shadow: none; }
.ann-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.ann-date { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.tag.ann-new { background: var(--red); color: #fff; }
.tag.ann-pour { background: var(--chip); color: var(--muted); }
.ann-titre { margin-top: 8px; font-weight: 800; font-size: 16px; }
.ann-texte { margin-top: 8px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ann-pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.ann-like { border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 5px 12px; font-weight: 800; cursor: pointer; color: var(--ink); }
.ann-like.on { background: rgba(227, 6, 19, .12); border-color: var(--red); }
.ann-suppr { padding: 6px 10px; font-size: 12.5px; }
.ann-saisie { width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font: inherit; font-size: 15px; resize: vertical; }
.ann-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.ann-options label { font-size: 12px; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* --- après-match, maillots, présence entraînement --- */
.mvp { font-size: 16px; padding: 6px 0; }
.mot-coach { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--chip); font-size: 15px; line-height: 1.5; }
.tag.mvp-tag { background: #fde68a; color: #713f12; }
.presence { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.presence .k { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.presence-bilan { margin-top: 10px; font-size: 14px; }

/* --- maillots --- */
.mail-etat { font-size: 17px; font-weight: 800; line-height: 1.4; }
.mail-actions { display: grid; gap: 8px; }
.mail-actions .seg { text-align: left; padding: 12px 14px; }

/* --- accueil : trois raccourcis --- */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 4px; }
.tuile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; cursor: pointer;
  padding: 12px 6px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); min-width: 0;
}
.tuile-ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.tuile-nom { font-weight: 800; font-size: 13px; }
.tuile-info { font-size: 11.5px; color: var(--muted); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile.alerte { border-color: var(--red); }
.tuile.alerte::after { content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.tuile.alerte .tuile-info { color: var(--red); }

/* --- fiche match : deux boutons dépliables --- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.duo-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.duo-btn.on { border-color: var(--red); }
.duo-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--chip); display: grid; place-items: center; color: var(--navy); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .duo-ico { color: var(--orange); } }
.duo-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.duo-titre { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.duo-val { font-weight: 800; font-size: 15px; }
.card.pli { border-color: var(--red); }
.duo-plus { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--red); }

/* --- objectif de trajets : couleur des lignes --- */
.standings tr.obj-ok td { background: rgba(22, 163, 74, .16); }
.standings tr.obj-ok td.t { color: var(--win); }
.standings tr.obj-encours td { background: rgba(245, 158, 11, .18); }
.standings tr.obj-encours td.t { color: #d97706; }
@media (prefers-color-scheme: dark) { .standings tr.obj-encours td.t { color: #fbbf24; } }
.standings tr.us td.t { text-decoration: underline; text-underline-offset: 3px; }

.seances-titre { margin: 4px 4px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.seance-pli { border-left: 4px solid var(--red); }
.seance-pli summary { cursor: pointer; font-weight: 800; font-size: 15px; line-height: 1.35; }
.seance-pli[open] summary { margin-bottom: 4px; }
.seance-pli .card { box-shadow: none; }
.notes-staff { border-left: 4px solid var(--line); margin-top: 24px; }
.notes-staff summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--muted); }
.notes-staff[open] summary { margin-bottom: 10px; }
.note-staff + .note-staff { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.note-staff div:last-child { line-height: 1.5; }

.month { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 2px 4px; }

/* --- classement --- */
table.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 8px 6px; text-align: center; }
.standings td { padding: 12px 6px; text-align: center; border-top: 1px solid var(--line); font-weight: 600; }
.standings td.t { text-align: left; font-weight: 800; }
.standings th.t { text-align: left; }
.standings tr.us td { background: rgba(227, 6, 19, .07); }
.standings tr.us td.t { color: var(--red); }
.standings .pts { font-family: Anton, sans-serif; font-size: 18px; font-weight: 400; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--chip); font-weight: 800; font-size: 12px; margin-right: 8px; }

.others .o { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 10px 0; font-size: 13.5px; align-items: center; }
.others .o + .o { border-top: 1px dashed var(--line); }
.others .o .a { text-align: right; font-weight: 700; }
.others .o .b { font-weight: 700; }
.others .o .sc { font-family: Anton, sans-serif; font-size: 16px; min-width: 64px; text-align: center; }
.others .o .sc.tbd { font-family: inherit; font-size: 12px; }

/* --- détail (feuille) --- */
.sheet-bg { position: fixed; inset: 0; background: rgba(5, 12, 30, .5); z-index: 30; display: none; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 88vh; overflow: auto;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease; max-width: 720px; margin: 0 auto;
}
.sheet.open { transform: none; }
.sheet-bg.open { display: block; }
.close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -2px 0 -34px;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--chip); color: var(--ink); font-size: 15px; font-weight: 800;
}
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }

/* --- barre d'onglets --- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabs button {
  border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer;
  min-width: 0; padding: 0 2px; letter-spacing: -.01em;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.active { color: var(--red); }

/* --- covoiturage --- */
.cvselect, .cvcode input {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--chip); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px;
}
.cvcode { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.cvcard.past { opacity: .7; }
.cvhead { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 6px; }
.cvhead .opp { font-weight: 800; font-size: 16px; }
.cvhead .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cvq { padding: 10px 0; border-top: 1px dashed var(--line); }
.cvq .k, .cvl .k { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.segs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segs.trois { grid-template-columns: 1fr 1fr; }
.segs.trois .seg:last-child { grid-column: 1 / -1; }
.seg {
  padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
  font-weight: 800; font-size: 14px; cursor: pointer;
}
.seg.on.g { background: var(--win); border-color: var(--win); color: #fff; }
.seg.on.r { background: var(--loss); border-color: var(--loss); color: #fff; }
.seg:disabled { cursor: default; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.stepper .k { margin: 0; }
.stepper div { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--chip); font-size: 20px; font-weight: 800; cursor: pointer; }
.stepper b { font-family: Anton, sans-serif; font-size: 22px; font-weight: 400; min-width: 16px; text-align: center; }
.cvbilan { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin: 8px 0 4px; }
.cvbilan.ok { background: rgba(22, 163, 74, .12); color: var(--win); }
.cvbilan.ko { background: rgba(220, 38, 38, .1); color: var(--loss); }
.cvbilan b { font-size: 16px; }
.cvl { padding-top: 10px; }
.cchip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 700; margin: 0 6px 6px 0; }
.cchip.drv { background: var(--navy); color: #fff; }
.cchip.abs { text-decoration: line-through; opacity: .6; }
.cchip.wait { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.cchip.me { box-shadow: 0 0 0 2px var(--orange); }
@media (prefers-color-scheme: dark) { .cchip.drv { background: #2a3d6e; } }

/* --- covoit : matchs, sous-onglets, listes --- */
.mchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.mchips::-webkit-scrollbar { display: none; }
.mchip {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; max-width: 150px;
}
.mchip b { font-size: 13px; }
.mchip span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 126px; }
.mchip.on { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227, 6, 19, .15); }
.mhead { margin-top: 6px; padding: 12px 16px; }
.mhead .opp { font-weight: 800; font-size: 16px; }
.subtabs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0 4px;
  background: var(--chip); padding: 4px; border-radius: 14px;
}
.subtabs button { border: 0; background: none; padding: 9px 2px; border-radius: 10px; font-weight: 800; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.subtabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.plist { padding: 4px 14px; }
.prow { padding: 12px 0; }
.prow + .prow { border-top: 1px dashed var(--line); }
.pname { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.pname small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 1px; }
.pdrive { margin-top: 8px; }
.fhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 0 4px; border-bottom: 1px solid var(--line); }
.fhead b { font-family: Anton, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.fhead span { font-size: 12.5px; color: var(--muted); font-weight: 700; text-align: right; }
.plist + .plist { margin-top: 10px; }
.badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--chip); color: var(--muted); }
.badge.drv { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .badge.drv { background: #2a3d6e; } }
.subtabs.deux { grid-template-columns: 1fr 1fr; }
.subtabs button:disabled { opacity: .45; cursor: default; }
.recap {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  background: var(--chip); border-left: 4px solid var(--muted);
}
.recap.ok { background: rgba(22, 163, 74, .12); border-color: var(--win); }
.recap.ko { background: rgba(220, 38, 38, .1); border-color: var(--loss); }
.cchip.ok { background: rgba(22, 163, 74, .14); color: var(--win); }
.bilan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: Anton, sans-serif; font-size: 30px; font-weight: 400; line-height: 1.1; }
.stat span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stat.ok b { color: var(--win); }
.stat.ko b { color: var(--loss); }

.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 24px; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

@media (min-width: 900px) {
  .tabs { left: 50%; transform: translateX(-50%); max-width: 720px; bottom: 16px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); height: var(--tabs-h); padding: 0; }
}

/* petits téléphones : les 5 libellés tiennent sur une ligne */
@media (max-width: 359px) {
  .tabs button { font-size: 9.5px; letter-spacing: -.02em; }
}

/* fiches licences (espace coach) */
.lic-liste { display: grid; gap: 6px; }
.lic-fiche { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 10px; padding: 8px 10px; }
.lic-fiche summary { display: flex; justify-content: space-between; gap: 8px; align-items: center; cursor: pointer; list-style: none; font-weight: 700; }
.lic-fiche summary::-webkit-details-marker { display: none; }
.lic-fiche summary b { font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.lic-detail { display: grid; gap: 4px; margin-top: 8px; font-size: .92em; }
.lic-detail .k { display: inline-block; min-width: 92px; color: var(--muted); font-weight: 700; font-size: .9em; }

/* récap animé (espace coach) */
.anim .anim-etape { margin-top: 8px; font-weight: 700; }
.anim .anim-texte { min-height: 4.2em; margin-top: 2px; line-height: 1.4; }
.anim .anim-ctrl { display: flex; gap: 8px; margin-top: 8px; }
.anim .anim-ctrl .btn { flex: 1; }

/* étirements de fin (espace coach) */
.etirements { margin-top: 16px; }
.etirements summary { cursor: pointer; font-weight: 800; }
.etir-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.etir { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; padding: 8px 10px 10px; }
.etir-svg { width: 100%; height: auto; background: #f6ead6; border-radius: 8px; display: block; margin-bottom: 6px; }
.etir-nom { font-weight: 800; margin-bottom: 2px; }
.etir-duree { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.etir-partie { grid-column: 1 / -1; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
