/* ==========================================================================
   CSW Équipe — DESIGN v2 (sombre, verre dépoli, inspiration « app de sport »)
   Chargé APRÈS app.css : surcharge les variables et quelques composants.
   Deux variantes : body[data-theme="bordeaux"] (accent or) et body[data-theme="marine"] (accent rouge).
   ========================================================================== */
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(../fonts/outfit-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

body[data-theme] {
  color-scheme: dark;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --surface: rgba(255, 255, 255, .06);
  --fill: rgba(255, 255, 255, .07);
  --fill-2: rgba(255, 255, 255, .13);
  --line: rgba(255, 255, 255, .11);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .62);
  --green: #4ade80; --green-soft: rgba(74, 222, 128, .15);
  --danger: #ff6b7a; --danger-soft: rgba(255, 107, 122, .14);
  --amber: #fbbf24; --amber-soft: rgba(251, 191, 36, .14);
  --shadow: none;
  --overlay: rgba(0, 0, 0, .62);
}
body[data-theme="bordeaux"] {
  --bg: #14030a; --bg1: #4a0b17; --bg2: #1a040b; --glow: rgba(232, 35, 63, .36);
  --sheet: #24101a;
  --ink: #f3c969; --ink-text: #2a0610;          /* accent principal : or */
  --accent: #ff3b52; --accent-text: #ffffff; --accent-soft: rgba(255, 59, 82, .16);
  --hero: linear-gradient(135deg, #c8102e 0%, #6e0a1c 60%, #3a0510 100%);
  --blue: #6fa8ff;
}
body[data-theme="marine"] {
  --bg: #050b1c; --bg1: #16305f; --bg2: #08142e; --glow: rgba(80, 130, 255, .3);
  --sheet: #101c3a;
  --ink: #ff3b52; --ink-text: #ffffff;          /* accent principal : rouge club */
  --accent: #ff3b52; --accent-text: #ffffff; --accent-soft: rgba(255, 59, 82, .16);
  --hero: linear-gradient(135deg, #2b5fe0 0%, #142d6b 60%, #0a1838 100%);
  --blue: #6fa8ff;
}

/* ---------- fond ---------- */
body[data-theme] {
  font-family: var(--font);
  background:
    radial-gradient(120% 55% at 50% -8%, var(--glow), transparent 62%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg) 100%);
  background-attachment: fixed;
}
body[data-theme]::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .3; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body[data-theme] main { position: relative; z-index: 1; }

/* ---------- header : transparent, épuré ---------- */
body[data-theme] .topbar {
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent); box-shadow: none; border-radius: 0;
  padding: calc(12px + var(--safe-t)) 16px 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
body[data-theme] .topbar::before { display: none; }
body[data-theme] .topbar::after { display: block; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(232,196,106,0), #e8c46a 15%, #fff2c2 50%, #e8c46a 85%, rgba(232,196,106,0)); }
body[data-theme] .topbar-crest { width: 38px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
body[data-theme] .topbar-title strong { font-family: var(--font); font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: none; }
body[data-theme] .topbar-title span { font-size: 12px; letter-spacing: .02em; text-transform: none; color: var(--muted); font-weight: 500; margin-top: 2px; }
body[data-theme] .topbar .icon-btn { background: var(--fill); border: 1px solid var(--line); color: #fff; }
body[data-theme] .topbar.compact .topbar-title strong { font-size: 16px; }

/* ---------- éléments communs ---------- */
body[data-theme] .h1 { font-weight: 700; letter-spacing: -.02em; }
body[data-theme] .icon-btn { background: var(--fill); color: #fff; }
body[data-theme] .search, body[data-theme] .chip, body[data-theme] .trow, body[data-theme] .rk, body[data-theme] .prow,
body[data-theme] .mrow, body[data-theme] .mcard, body[data-theme] .gc, body[data-theme] .pl-row, body[data-theme] .menu-item {
  background: var(--fill); border: 1px solid var(--line); box-shadow: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body[data-theme] .chip { color: var(--muted); }
body[data-theme] .chip.on { background: var(--ink); color: var(--ink-text); border-color: transparent; }
body[data-theme] .btn { background: var(--fill); border-color: var(--line); color: #fff; }
body[data-theme] .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-theme] .btn.gold { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
body[data-theme] .btn.green { background: #16a34a; border-color: #16a34a; }
body[data-theme] .btn.ghost { background: transparent; }
body[data-theme] .dock .btn.ghost { background: rgba(20, 10, 16, .7); backdrop-filter: blur(10px); }
body[data-theme] .field, body[data-theme] .mfield input, body[data-theme] .mfield select { background: var(--fill); border-color: var(--line); color: #fff; }
body[data-theme] .mfield input:focus, body[data-theme] .mfield select:focus { background: var(--fill-2); border-color: var(--ink); }
body[data-theme] select option { background: var(--sheet); color: #fff; }
body[data-theme] .sheet, body[data-theme] .sheet-top { background: var(--sheet); }
body[data-theme] .sheet { border-top: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
body[data-theme] .menu-item .mi-ico { background: var(--fill-2); }
body[data-theme] .seg3 { background: var(--fill); }
body[data-theme] .seg3 button.on, body[data-theme] .nteams button.on { background: var(--ink); color: var(--ink-text); }
body[data-theme] .tdate { background: var(--fill-2); }
body[data-theme] .eq { background: var(--ink); color: var(--ink-text); }
body[data-theme] .sbtn.plus { background: var(--ink); color: var(--ink-text); }
body[data-theme] .poste-grid button.on { background: var(--ink); color: var(--ink-text); }
body[data-theme] .pchip { background: var(--fill-2); color: #fff; }
body[data-theme] #toast { background: #fff; color: #18181b; }
body[data-theme] .next-card { background: var(--hero); color: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.35); }
body[data-theme] .next-card::before { display: none; }
body[data-theme] .next-card .go { background: var(--ink); color: var(--ink-text); }
body[data-theme] .vis-prev { background: var(--fill); }
body[data-theme] .hint { background: var(--fill); }

/* ---------- menu du bas : pilule sombre, onglet actif en couleur ---------- */
body[data-theme] .tabbar {
  grid-template-columns: repeat(5, 1fr); width: min(480px, calc(100% - 20px));
  background: rgba(12, 6, 10, .62); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
body[data-theme="marine"] .tabbar { background: rgba(5, 10, 26, .62); }
body[data-theme] .tabbar::before { display: none; }
body[data-theme] .tab-bubble { background: var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
body[data-theme] .tabbar .tab:not(.active) { color: rgba(255,255,255,.62); }
body[data-theme] .tab { font-size: 10.5px; }
body[data-theme] .tab.active, body[data-theme] .tab.active svg { color: var(--ink-text); }

/* ==========================================================================
   Nouvel écran : ACCUEIL
   ========================================================================== */
.home-hello { margin: 4px 0 2px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.home-sub { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 300px; }
.home-cats { display: flex; gap: 8px; margin: 16px -8px 4px 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.home-cats::-webkit-scrollbar { display: none; }
.home-cat { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; font-weight: 600; font-size: 14px; flex: none;
  background: var(--fill); border: 1px solid var(--line); color: #fff; }
.home-cat .ci { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); }
.home-cat:first-child .ci { background: var(--ink); color: var(--ink-text); }
.home-card { display: block; width: 100%; text-align: left; margin-top: 16px; border-radius: 26px; padding: 16px; position: relative; overflow: hidden; color: #fff; }
.home-card.hero { background: var(--hero); box-shadow: 0 16px 34px rgba(0,0,0,.4); }
.home-card.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.home-card.glass { background: var(--fill); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hc-top { text-align: center; font-size: 12px; font-weight: 600; position: relative; z-index: 1; opacity: .92; }
.hc-pill { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(0,0,0,.28); }
.hc-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.hc-team { font-family: "Bebas Neue", sans-serif; font-size: 25px; line-height: .95; letter-spacing: .03em; text-align: center; }
.hc-mid { font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: 1; text-align: center; color: var(--ink); white-space: nowrap; }
body[data-theme="marine"] .hc-mid { color: #fff; }
.hc-mid small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.8); }
.home-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; font-weight: 700; font-size: 16px; }
.home-sec button { font-size: 13px; color: var(--ink); font-weight: 600; }
body[data-theme="marine"] .home-sec button { color: #ff8a98; }
.ht-row { display: flex; align-items: center; gap: 12px; }
.ht-date { width: 56px; height: 56px; border-radius: 16px; background: var(--fill-2); display: grid; place-items: center; text-align: center; line-height: 1; flex: none; }
.ht-date b { font-size: 21px; font-weight: 800; display: block; }
.ht-date small { font-size: 10px; text-transform: uppercase; opacity: .7; }
.faces { display: flex; margin-top: 6px; }
.faces img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--bg2); margin-left: -8px; background: var(--fill); }
.faces img:first-child { margin-left: 0; }
.ring { margin-left: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg2); }
.ring span { position: relative; }
.home-top { display: grid; gap: 8px; }
.home-top button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--fill); border: 1px solid var(--line); color: #fff; text-align: left; }
.home-top img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; object-position: top; background: var(--fill-2); }
.home-top .rk-n { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.home-top .w { flex: 1; min-width: 0; line-height: 1.2; }
.home-top .w b { display: block; font-size: 15px; }
.home-top .w small { color: var(--muted); font-size: 12px; }
.home-top .v { font-weight: 800; font-size: 16px; }
.home-score { font-family: "Bebas Neue", sans-serif; font-size: 52px; line-height: 1; text-align: center; white-space: nowrap; }

/* ==========================================================================
   Nouvel écran : FICHE JOUEUR (héro)
   ========================================================================== */
.pp { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #fff; animation: ppIn .35s cubic-bezier(.2,.9,.25,1);
  background: radial-gradient(120% 60% at 50% 0%, var(--glow), transparent 62%), linear-gradient(180deg, var(--bg1), var(--bg2) 55%, var(--bg)); }
@keyframes ppIn { from { opacity: 0; transform: translateY(24px); } }
.pp-top { position: absolute; top: calc(12px + var(--safe-t)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.pp-top img { width: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.pp-num { position: absolute; right: -12px; top: calc(60px + var(--safe-t)); font-family: "Bebas Neue", sans-serif; font-size: min(78vw, 330px); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.14); z-index: 1; }
.pp-photo { position: absolute; left: 50%; bottom: 232px; transform: translateX(-46%); height: min(58vh, 520px); max-width: 110%; object-fit: contain; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 98%); mask-image: linear-gradient(180deg, #000 72%, transparent 98%); }
.pp-name { position: absolute; left: 18px; right: 18px; bottom: 196px; z-index: 3; }
.pp-name small { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.pp-name h2 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(52px, 16vw, 72px); line-height: .9; letter-spacing: .02em; margin: 10px 0 0; }
.pp-name h2 em { font-style: normal; color: var(--ink); }
body[data-theme="marine"] .pp-name h2 em { color: #ff8a98; }
.pp-stats { position: absolute; left: 16px; right: 16px; bottom: 104px; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pp-stats div { border-radius: 18px; padding: 10px 4px; text-align: center; background: var(--fill); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pp-stats b { display: block; font-size: 21px; font-weight: 800; }
.pp-stats span { font-size: 11px; color: var(--muted); }
.pp-actions { position: absolute; left: 16px; right: 16px; bottom: calc(24px + var(--safe-b)); z-index: 4; display: flex; gap: 10px; }
.pp-cta { flex: 1; height: 58px; border-radius: 999px; background: var(--ink); color: var(--ink-text); display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 7px; font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.pp-cta .ci { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.14); }
.pp-cta .arrows { letter-spacing: -2px; font-size: 18px; opacity: .7; }
.pp-edit { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); border: 1px solid var(--line); color: #fff; backdrop-filter: blur(12px); }
.pp-nav { display: flex; gap: 8px; }

/* ==========================================================================
   Score final (match comptabilisé)
   ========================================================================== */
.scorehero { margin: 14px 0 6px; padding: 18px 12px 14px; border-radius: 26px; background: var(--hero); position: relative; overflow: hidden; box-shadow: 0 16px 34px rgba(0,0,0,.4); }
.scorehero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(255,255,255,.2), transparent 70%); pointer-events: none; }
.sh-top { text-align: center; font-size: 12px; font-weight: 600; opacity: .9; position: relative; z-index: 1; }
.sh-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; position: relative; z-index: 1; }
.sh-team { font-family: "Bebas Neue", sans-serif; font-size: 24px; line-height: .95; letter-spacing: .03em; text-align: center; }
.sh-score { font-family: "Bebas Neue", sans-serif; font-size: 64px; line-height: 1; white-space: nowrap; }
.sh-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; font-size: 12px; text-align: center; line-height: 1.5; opacity: .85; position: relative; z-index: 1; }
.opp-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); margin: 6px 0 12px; }
.opp-step .sc { font-family: "Bebas Neue", sans-serif; font-size: 34px; line-height: 1; }
.opp-step .mini-step { width: 150px; }

/* ==========================================================================
   Variante « blanc » : fond blanc, bleu marine + touches dorées
   ========================================================================== */
body[data-theme="blanc"] {
  color-scheme: light;
  --navy: #132650; --navy-2: #0b1736;
  --bg: #ffffff; --bg1: #ffffff; --bg2: #ffffff; --glow: rgba(19, 38, 80, .07);
  --sheet: #ffffff;
  --surface: #ffffff;
  --fill: #f3f5fa; --fill-2: #e6eaf3; --line: rgba(19, 38, 80, .1);
  --text: #132650; --muted: rgba(19, 38, 80, .58);
  --ink: #e8c46a; --ink-text: #132650;          /* or (inchangé) */
  --gold-text: #a57b22;                         /* or lisible sur blanc */
  --accent: #132650; --accent-text: #ffffff; --accent-soft: rgba(19, 38, 80, .1);
  --hero: linear-gradient(135deg, #24438a 0%, #132650 55%, #0b1736 100%);
  --green: #16a34a; --danger: #dc2626; --amber: #d97706;
  --overlay: rgba(11, 23, 54, .55);
  color: var(--text);
}
body[data-theme="blanc"]::before { display: none; }
body[data-theme="blanc"] { background: #fff; }

/* header bleu marine + trait doré */
body[data-theme="blanc"] .topbar .icon-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; }
body[data-theme="blanc"] .topbar-title span { color: rgba(255,255,255,.65); }

/* textes et éléments clairs */
body[data-theme="blanc"] .icon-btn,
body[data-theme="blanc"] .btn,
body[data-theme="blanc"] .field, body[data-theme="blanc"] .mfield input, body[data-theme="blanc"] .mfield select,
body[data-theme="blanc"] .pchip, body[data-theme="blanc"] .home-cat, body[data-theme="blanc"] .home-top button { color: var(--text); }
body[data-theme="blanc"] select option { color: var(--text); background: #fff; }
body[data-theme="blanc"] .search, body[data-theme="blanc"] .trow, body[data-theme="blanc"] .rk, body[data-theme="blanc"] .prow,
body[data-theme="blanc"] .mrow, body[data-theme="blanc"] .mcard, body[data-theme="blanc"] .gc, body[data-theme="blanc"] .pl-row,
body[data-theme="blanc"] .menu-item, body[data-theme="blanc"] .home-card.glass, body[data-theme="blanc"] .home-top button {
  background: #fff; border-color: var(--line); box-shadow: 0 4px 14px rgba(19,38,80,.06);
}
body[data-theme="blanc"] .home-card.glass { color: var(--text); }
body[data-theme="blanc"] .btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
body[data-theme="blanc"] .btn.green { color: #fff; }
body[data-theme="blanc"] .dock .btn.ghost { background: rgba(255,255,255,.9); }
body[data-theme="blanc"] .sheet { box-shadow: 0 -10px 40px rgba(19,38,80,.18); }
body[data-theme="blanc"] #toast { background: var(--navy); color: #fff; }
body[data-theme="blanc"] .home-sec button { color: var(--gold-text); }
body[data-theme="blanc"] .hc-mid small { color: rgba(255,255,255,.8); }
body[data-theme="blanc"] .ring::before { background: #fff; }
body[data-theme="blanc"] .faces img { border-color: #fff; }

/* barre d'onglets bleu marine, bulle dorée */

/* fiche joueur : fond bleu marine */
body[data-theme="blanc"] .pp { background: radial-gradient(120% 60% at 50% 0%, rgba(80,130,255,.25), transparent 62%), linear-gradient(180deg, #1a3166, #132650 55%, #0b1736); }
body[data-theme="blanc"] .pp-name small, body[data-theme="blanc"] .pp-stats div, body[data-theme="blanc"] .pp-edit { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
body[data-theme="blanc"] .pp-stats span { color: rgba(255,255,255,.65); }

/* ---------- Blanc : header moderne (carte marine arrondie, liseré or) ---------- */
body[data-theme="blanc"] .topbar {
  margin: 0 0 6px; padding: calc(14px + var(--safe-t)) 16px 16px; gap: 12px;
  border-radius: 0 0 28px 28px; overflow: hidden;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(232,196,106,.22), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(80,130,255,.25), transparent 60%),
    linear-gradient(160deg, #1d3a7a 0%, #132650 55%, #0b1736 100%);
  border-bottom: 2px solid #e8c46a;
  box-shadow: 0 12px 28px rgba(19,38,80,.22);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: padding .3s ease, border-radius .3s ease;
}
body[data-theme="blanc"] .topbar::after { display: none; }
body[data-theme="blanc"] .topbar::before {
  display: block; content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: normal;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px);
}
body[data-theme="blanc"] .topbar-crest {
  width: 46px; height: 46px; padding: 5px; border-radius: 50%; object-fit: contain; box-sizing: border-box;
  background: #fff; box-shadow: 0 0 0 2px #e8c46a, 0 6px 14px rgba(0,0,0,.3); filter: none;
  transition: width .3s ease, height .3s ease;
}
body[data-theme="blanc"] .topbar-title strong { font-size: 17px; letter-spacing: .12em; color: #fff; }
body[data-theme="blanc"] .topbar-title span {
  margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #e8c46a;
  transition: opacity .2s, margin .3s;
}
body[data-theme="blanc"] .topbar .icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
body[data-theme="blanc"] .topbar.compact { padding: calc(8px + var(--safe-t)) 14px 9px; border-radius: 0 0 22px 22px; }
body[data-theme="blanc"] .topbar.compact .topbar-crest { width: 36px; height: 36px; padding: 4px; }
body[data-theme="blanc"] .topbar.compact .topbar-title strong { font-size: 15px; }
body[data-theme="blanc"] .topbar.compact .topbar-title span { opacity: 0; margin-top: -12px; }

/* ---------- Blanc : barre d'onglets comme la v1 (verre blanc, bulle blanche), icône active bleu marine ---------- */
body[data-theme="blanc"] .tabbar {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.32));
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(190%) contrast(1.05); -webkit-backdrop-filter: blur(18px) saturate(190%) contrast(1.05);
  box-shadow: 0 12px 32px rgba(15,18,30,.18), 0 2px 6px rgba(15,18,30,.08), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.3);
}
body[data-theme="blanc"] .tabbar::before {
  display: block; content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(120deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 38%, transparent 55%, rgba(255,255,255,.18) 100%);
}
body[data-theme="blanc"] .tabbar .tab:not(.active) { color: #52525b; }
body[data-theme="blanc"] .tab.active { color: #18181b; }
body[data-theme="blanc"] .tab.active svg { color: #132650; transform: translateY(-1px) scale(1.06); }
body[data-theme="blanc"] .tab-bubble {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.6));
  box-shadow: 0 4px 14px rgba(15,18,30,.12), inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0,0,0,.05);
  transform-origin: center;
}
.tab.pop svg { animation: tabPop .5s cubic-bezier(.3,1.6,.4,1); }
@keyframes tabPop { 0% { transform: scale(.7) translateY(2px); } 60% { transform: scale(1.22) translateY(-3px); } 100% { transform: translateY(-1px) scale(1.06); } }

/* ---------- Blanc : header disposition B — titre centré, écusson en médaillon qui déborde ---------- */
body[data-theme="blanc"] .topbar {
  overflow: visible; margin-bottom: 40px;
  padding: calc(14px + var(--safe-t)) 14px 38px 70px;
  transition: padding .35s cubic-bezier(.2,.9,.25,1), margin .35s cubic-bezier(.2,.9,.25,1), border-radius .3s ease;
}
body[data-theme="blanc"] .topbar::before { border-radius: inherit; }
body[data-theme="blanc"] .topbar-title { align-items: center; text-align: center; }
body[data-theme="blanc"] .topbar-title strong { font-size: 19px; letter-spacing: .16em; }
body[data-theme="blanc"] .topbar-title span { margin-top: 6px; }
body[data-theme="blanc"] .topbar-crest {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: 68px; height: 68px; padding: 7px; z-index: 2;
  box-shadow: 0 0 0 3px #e8c46a, 0 10px 22px rgba(19,38,80,.35);
  transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .25s, width .35s, height .35s;
}
body[data-theme="blanc"] .topbar.compact { padding: calc(9px + var(--safe-t)) 10px 10px 62px; }
body[data-theme="blanc"] .topbar.compact .topbar-crest { width: 68px; height: 68px; padding: 7px; opacity: 0; transform: translate(-50%, -20px) scale(.4); pointer-events: none; }
body[data-theme="blanc"] .topbar.compact .topbar-title span { opacity: 0; margin-top: -12px; }

/* ---------- Accueil : mini-tableau de bord de la saison ---------- */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-t { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 13px; border-radius: 20px; text-align: left;
  background: var(--fill); border: 1px solid var(--line); color: var(--text); }
.dash-t::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(232,196,106,.22), transparent 70%); pointer-events: none; }
.dash-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; background: var(--fill-2); color: var(--ink); }
.dash-t b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.dash-t b small { font-size: 16px; font-weight: 700; margin-left: 2px; opacity: .7; }
.dash-t > span:last-child { font-size: 12px; font-weight: 600; color: var(--muted); }
body[data-theme="blanc"] .dash-t { background: #fff; box-shadow: 0 4px 14px rgba(19,38,80,.06); }
body[data-theme="blanc"] .dash-ic { background: #132650; color: #e8c46a; }
body[data-theme="blanc"] .dash-t:first-child { background: linear-gradient(150deg, #24438a, #132650 60%, #0b1736); border-color: transparent; color: #fff; }
body[data-theme="blanc"] .dash-t:first-child > span:last-child { color: rgba(255,255,255,.7); }
body[data-theme="blanc"] .dash-t:first-child .dash-ic { background: rgba(255,255,255,.12); }

/* ---------- Titre du header : même police et couleur que la v1 (Bebas Neue, crème doré) ---------- */
body[data-theme] .topbar .topbar-title strong {
  font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: .05em; text-transform: none;
  color: #f3e3b5; text-shadow: 0 2px 8px rgba(0,0,0,.35); line-height: 1;
}
body[data-theme] .topbar.compact .topbar-title strong { font-size: 24px; }
body[data-theme] .topbar .topbar-title span { color: #f3e3b5; }
body[data-theme="blanc"] .topbar:not(.compact) { padding-bottom: 52px; }

/* tableau de bord : sélecteur d'équipe + sous-ligne */
.dash-seg { margin: 0 0 10px; }
.dash-t em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
body[data-theme="blanc"] .dash-t:first-child em { color: rgba(255,255,255,.65); }
.dash-note { font-size: 12px; margin-top: 10px; text-align: center; line-height: 1.4; }
/* petits écrans (iPhone SE…) : le titre reste sur une ligne */
body[data-theme] .topbar .topbar-title strong { white-space: nowrap; font-size: clamp(22px, 7.6vw, 30px); }
body[data-theme] .topbar.compact .topbar-title strong { font-size: clamp(19px, 6.4vw, 24px); }
/* score final (fond marine) : texte en blanc, score en or */
.scorehero { color: #fff; }
.scorehero .sh-score { color: #f3e3b5; }
.scorehero .sh-scorers, .scorehero .sh-top { color: rgba(255,255,255,.85); }

/* ---------- Accueil : carrousels (prochains matchs / résultats du week-end) ---------- */
.hcar { margin-top: 16px; }
.hcar-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: -10px -8px -22px; padding: 10px 8px 22px; scroll-padding: 0 8px; gap: 16px; }
.hcar-track::-webkit-scrollbar { display: none; }
.hcar-track > .home-card { flex: 0 0 100%; margin-top: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hdots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.hdots button { width: 7px; height: 7px; padding: 0; border-radius: 99px; background: var(--fill-2); transition: width .3s cubic-bezier(.2,.9,.25,1), background .3s; }
.hdots button.on { width: 22px; background: #e8c46a; }

/* tirs au but */
.tab-box { margin: -4px 0 12px; display: grid; gap: 8px; }
.tab-box[hidden], .tab-box .tab-res[hidden] { display: none; }
.tab-box .cs-box { justify-self: start; }
.tab-box .tab-res { margin: 0; }
.tab-box .tab-res button.on { background: var(--ink); color: var(--ink-text); }
.sh-tab { text-align: center; margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #e8c46a; position: relative; z-index: 1; }
.hc-tab { text-align: center; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-text, #a57b22); }
