/* Polices hébergées dans l'appli (plus d'appel à Google Fonts) : Inter (variable 400–800) et Barlow Condensed.
   Licence SIL Open Font License : fonts/LICENCE-*.txt. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 600; src: url('../fonts/barlow-condensed-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 700; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 700; src: url('../fonts/barlow-condensed-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 800; src: url('../fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 800; src: url('../fonts/barlow-condensed-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Appli sport — styles. Une ambiance par sport, même structure partout. */
:root {
  --bg: #120B24;
  --surface: #1E1538;
  --surface-2: #2A1F4A;
  --line: #2A1F4A;
  --line-2: #4A3B78;
  --text: #FFFFFF;
  --text-2: #E4DDF5;
  --muted: #B9AED6;
  --accent: #FF8A3D;
  --accent-hover: #FFB27F;
  --on-accent: #1A0F2E;
  --on-white: #2A0F3D;
  --grad: linear-gradient(135deg, #C2410C 0%, #9D174D 52%, #4C1D95 100%);
  --grad-v: linear-gradient(180deg, #FF8A3D 0%, #C2275E 55%, #6D28D9 100%);
  --overlay: rgba(18, 11, 36, 0.35);
  --live: #E5483B;
  --live-text: #FF8A80;
  --down: #C4B5FD;
  --on-hero: #FFFFFF;
  --hero-fond: rgba(0,0,0,.18); --hero-fond-2: rgba(0,0,0,.3);
  --hero-bord: rgba(255,255,255,.6); --hero-bord-2: rgba(255,255,255,.35);
  --choix-fond: #FFFFFF; --choix-texte: var(--on-white);
  --argent: #D6D0E6; --bronze: #F0A46E;
  --ombre: none;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
/* Thème sombre de chaque sport (le thème clair est plus bas, .clair.theme-*) : fond teinté, accent à la couleur du sport. */
.theme-foot {
  --bg: #0B1326; --surface: #14213D; --surface-2: #1E2E52; --line: #1E2E52; --line-2: #33497A;
  --text-2: #DCE4F5; --muted: #A9B6D3; --accent: #7FA8FF; --accent-hover: #A9C4FF; --on-accent: #0B1326; --on-white: #0B1326;
  --grad: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 50%, #4338CA 100%);
  --grad-v: linear-gradient(180deg, #60A5FA 0%, #2563EB 55%, #4338CA 100%);
  --overlay: rgba(11, 19, 38, 0.35);
}
.theme-velo {
  --bg: #15130A; --surface: #221F12; --surface-2: #2F2B19; --line: #2F2B19; --line-2: #4D4626;
  --text-2: #EFE9D2; --muted: #C2B98F; --accent: #FFD200; --accent-hover: #FFE066; --on-accent: #15130A; --on-white: #15130A;
  --grad: linear-gradient(135deg, #A16207 0%, #854D0E 50%, #3F3A1A 100%);
  --grad-v: linear-gradient(180deg, #FFD200 0%, #CA8A04 55%, #713F12 100%);
  --overlay: rgba(21, 19, 10, 0.35);
}
.theme-rugby {
  --bg: #1A0C10; --surface: #2A151B; --surface-2: #3A1F27; --line: #3A1F27; --line-2: #5C3240;
  --text-2: #F3DDE2; --muted: #CFA9B2; --accent: #FF8FA3; --accent-hover: #FFB8C5; --on-accent: #1A0C10; --on-white: #1A0C10;
  --grad: linear-gradient(135deg, #8E2A39 0%, #6B1F2E 50%, #4A1D3F 100%);
  --grad-v: linear-gradient(180deg, #E0637A 0%, #8E2A39 55%, #4A1D3F 100%);
  --overlay: rgba(26, 12, 16, 0.35);
}
.theme-basket {
  --bg: #1A0F06; --surface: #2A1A0E; --surface-2: #3A2615; --line: #3A2615; --line-2: #5E3E22;
  --text-2: #F5E5D5; --muted: #D2B496; --accent: #FF9F4A; --accent-hover: #FFC085; --on-accent: #1A0F06; --on-white: #1A0F06;
  --grad: linear-gradient(135deg, #C2410C 0%, #9A3412 50%, #5C2A12 100%);
  --grad-v: linear-gradient(180deg, #FB923C 0%, #C2410C 55%, #5C2A12 100%);
  --overlay: rgba(26, 15, 6, 0.35);
}
.theme-f1 {
  --bg: #0F1013; --surface: #1B1C21; --surface-2: #26272E; --line: #26272E; --line-2: #3E404A;
  --text-2: #E3E4E8; --muted: #AEB0BA; --accent: #FF5A5F; --accent-hover: #FF8A8E; --on-accent: #0F1013; --on-white: #0F1013;
  --grad: linear-gradient(135deg, #3F414B 0%, #24252B 55%, #8A1C24 100%);
  --grad-v: linear-gradient(180deg, #9095A3 0%, #3F414B 55%, #C1272D 100%);
  --overlay: rgba(15, 16, 19, 0.35);
}
.theme-tennis {
  --bg: #0B1622; --surface: #15233A; --surface-2: #22324D; --line: #22324D; --line-2: #34507A;
  --text-2: #DCE6F2; --muted: #A9B8CC; --accent: #C6F432; --accent-hover: #E2FB8F; --on-accent: #0B1622; --on-white: #0B1622;
  --grad: linear-gradient(135deg, #15803D 0%, #0F766E 50%, #1D4ED8 100%);
  --grad-v: linear-gradient(180deg, #C6F432 0%, #0F766E 55%, #1D4ED8 100%);
  --overlay: rgba(11, 22, 34, 0.35); --down: #FF8A80;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body { min-height: 100dvh; overflow-x: clip; transition: background-color .25s; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 560px; margin: 0 auto; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------- en-tête dégradé ---------- */
/* Habillage des en-têtes : un motif du sport en fond, à droite, qui s'efface vers le texte
   (athlé : virage de piste ; tennis : court ; foot : rond central). */
.hero-piste, .hero-court, .hero-terrain, .hero-logo { position: relative; overflow: hidden; isolation: isolate; }
.hero-logo::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(55%, 300px); height: 100%;
  background: url('../img/barres.svg') no-repeat right bottom / contain; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent); mask-image: linear-gradient(to left, #000 45%, transparent);
}
body:not(.clair) .hero-logo::before { opacity: .22; }
.hero-court::before, .hero-terrain::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/court.svg') no-repeat right center / cover; opacity: .34; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); mask-image: linear-gradient(to left, #000 40%, transparent);
}
.hero-terrain::before { background-image: url('../img/terrain.svg'); }
body:not(.clair) .hero-court::before, body:not(.clair) .hero-terrain::before { opacity: .28; }
.hero-piste::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/piste.svg') no-repeat right bottom / contain; opacity: .42; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent); mask-image: linear-gradient(to left, #000 45%, transparent);
}
body:not(.clair) .hero-piste::before { opacity: .3; }
.hero {
  background: var(--grad); border-radius: 0 0 28px 28px; color: var(--on-hero);
  padding: calc(18px + env(safe-area-inset-top)) 20px 18px; display: flex; flex-direction: column; gap: 12px;
}
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(40px, 13vw, 54px); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .3px; min-width: 0; overflow-wrap: anywhere; }
.hero .kicker { margin: 0; font-size: 13px; font-weight: 600; }
.hero .actions { display: flex; gap: 8px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--hero-bord); background: var(--hero-fond);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-hero); text-decoration: none; flex: 0 0 auto;
}
.round-btn:hover { color: var(--on-hero); background: var(--hero-fond-2); }
.pill-btn {
  height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--hero-bord); background: var(--hero-fond);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--on-hero);
}
.seg { display: inline-flex; align-self: flex-start; gap: 4px; padding: 3px; background: var(--overlay); border-radius: 10px; }
.seg a, .seg button {
  min-height: 34px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; color: var(--on-hero);
  text-decoration: none; font-size: 13px; font-weight: 500; border: 0; background: transparent;
}
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--choix-fond); color: var(--choix-texte); font-weight: 700; }

/* ---------- bande des jours ---------- */
.days { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 64px; height: 58px; padding: 0 10px; border-radius: 14px; scroll-snap-align: center;
  border: 1px solid var(--hero-bord-2); background: var(--hero-fond); color: var(--on-hero);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.day .l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.day .n { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.day .m { font-size: 11px; font-weight: 600; opacity: .75; }
.day[aria-pressed="true"] { background: var(--choix-fond); color: var(--choix-texte); border-color: var(--choix-fond); }
.day.dot::after { content: ''; width: 5px; height: 5px; border-radius: 3px; background: currentColor; opacity: .8; margin-top: 2px; }
.days.on-dark .day { background: var(--surface); border-color: var(--line); color: var(--text-2); }
.days.on-dark .day[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: var(--on-hero); }

/* ---------- contenu ---------- */
.content { padding: 14px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.section-title { margin: 4px 8px 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 6px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none;
}
a.card:hover { color: var(--text); border-color: var(--line-2); }
.card.fav { border: 1.5px solid var(--accent); }
.card.live { border: 1.5px solid var(--live); }
.card .time { width: 54px; flex: 0 0 auto; font-family: var(--display); font-size: 25px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.card .time.past { color: var(--muted); }
.card .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card .t { font-size: 15px; font-weight: 600; }
.card .s { font-size: 12px; color: var(--muted); }
.card .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.tag.outline { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); }
.badge-final { font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--on-hero); background: var(--grad); padding: 4px 9px; border-radius: 8px; }
.livebadge { font-size: 10px; font-weight: 800; letter-spacing: .8px; color: var(--live-text); display: inline-flex; align-items: center; gap: 5px; }
.live-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--live); display: inline-block; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,94,.7) } 70% { box-shadow: 0 0 0 7px rgba(255,107,94,0) } 100% { box-shadow: 0 0 0 0 rgba(255,107,94,0) } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.big { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- mes suivis ---------- */
.follows { display: flex; gap: 14px; overflow-x: auto; padding: 0 8px 2px; scrollbar-width: none; }
.follows::-webkit-scrollbar { display: none; }
.follow { flex: 0 0 auto; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); }
.follow:hover { color: var(--text); }
.ring { position: relative; width: 58px; height: 58px; border-radius: 29px; padding: 3px; background: var(--line-2); display: flex; }
.ring.on { background: var(--grad-v); }
.ring .av { flex: 1; border-radius: 26px; background: var(--surface-2); border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 800; }
.follow .nm { font-size: 11px; font-weight: 600; white-space: nowrap; max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
.follow .st { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; margin-top: -3px; }
.follow .st.hot { color: var(--accent); }
.add-follow { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 29px; border: 1.5px dashed var(--line-2); color: var(--muted); display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- podium & listes ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.podium > a { text-decoration: none; color: var(--text); }
.podium > a, .podium > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; justify-content: flex-end; }
.podium .p1 { background: var(--grad); border: 0; min-height: 168px; color: var(--on-hero); }
.podium .p2 { min-height: 136px; }
.podium .p3 { min-height: 120px; }
.podium .pl { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; }
.podium .p1 .pl { font-size: 44px; }
.podium .p2 .pl { color: var(--argent); }
.podium .p3 .pl { color: var(--bronze); }
.podium .nm { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.podium .cc { font-size: 11px; color: var(--muted); }
.podium .p1 .cc { color: var(--on-hero); font-weight: 600; }
.podium .pf { font-family: var(--display); font-size: 20px; font-weight: 700; }
.list { background: var(--surface); border-radius: 18px; padding: 4px 14px; }
.row { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.row:last-child { border-bottom: 0; }
a.row:hover { color: var(--text); }
.row .pos { width: 24px; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--muted); }
.row .who { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.row .who small { color: var(--muted); font-size: 12px; }
.row .mk { text-align: right; font-family: var(--display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.row.me { color: var(--accent); }

/* ---------- fiche ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 16px; color: var(--accent); }
.panel { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bars { display: grid; gap: 10px; align-items: end; height: 130px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bar .b { width: 100%; background: var(--surface-2); border-radius: 8px 8px 3px 3px; }
.bar.best .b { background: var(--grad-v); }
.bar .m { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar .y { font-size: 11px; color: var(--muted); }

/* ---------- divers ---------- */
.empty { text-align: center; color: var(--muted); padding: 28px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty .big-ic { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--text-2); }
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.note { font-size: 12px; color: var(--muted); margin: 0 8px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); min-height: 40px; padding: 0 6px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.search { width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 14px; font-size: 16px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 560px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.sheet code { display: block; background: var(--bg); padding: 10px; border-radius: 10px; font-size: 12px; overflow-wrap: anywhere; }
.updated { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 0 0; }

/* ---------- barre du bas ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); display: flex; justify-content: center;
}
.tabbar .in { width: 100%; max-width: 560px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar a[hidden] { display: none !important; }
.tabbar a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.tabbar svg { width: 22px; height: 22px; }
.content .days { margin: 0 -12px; padding: 2px 12px; }

.brand { display: none; }

/* ---------- grand écran : barre latérale + page pleine largeur ---------- */
.duo { display: flex; flex-direction: column; gap: 12px; }
.duo > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1000px) {
  body { padding-left: 216px; }
  #app { max-width: 1240px; padding: 20px 32px 32px; }
  .tabbar { left: 0; top: 0; bottom: 0; right: auto; width: 216px; border-top: 0; border-right: 1px solid var(--line); padding: 24px 12px; align-items: flex-start; }
  .tabbar .in { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-rows: min-content; gap: 4px; }
  .tabbar a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
  .tabbar a:hover { background: var(--surface); color: var(--text); }
  .tabbar a[aria-current="page"] { background: var(--surface); }
  .brand { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 0 14px 18px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero { border-radius: 28px; padding: 26px 32px; }
  .hero h1 { font-size: 64px; }
  .content { padding: 22px 0 0; gap: 16px; }
  .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .podium { position: sticky; top: 20px; }
  .podium .p1 { min-height: 220px; } .podium .p2 { min-height: 180px; } .podium .p3 { min-height: 160px; }
  .podium .pl { font-size: 48px; } .podium .p1 .pl { font-size: 64px; } .podium .pf { font-size: 26px; } .podium .nm { font-size: 15px; }
  .follows { gap: 20px; }
  .empty { padding: 60px 16px; }
}

/* bandes qui défilent : fondu sur les bords plutôt qu'un élément coupé net */
.days { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%); }
@media (min-width: 1000px) {
  .days { padding: 2px 14px; }
}
.suivis { display: flex; flex-direction: column; gap: 6px; }

/* ---------- favoris, calendrier, épreuves ---------- */
.star { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.star:hover { border-color: var(--accent); color: var(--accent); }
.star[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero .star { border-color: var(--hero-bord); color: var(--on-hero); background: var(--hero-fond); }
.hero .star[aria-pressed="true"] { background: var(--choix-fond); color: var(--choix-texte); border-color: var(--choix-fond); }
.row .star { width: 36px; height: 36px; font-size: 16px; }
.card > .star { width: 38px; height: 38px; font-size: 17px; }
.card .lien-carte { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
a.lien-carte:hover { color: inherit; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.famille { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.famille > .s { font-size: 12px; color: var(--muted); font-weight: 600; }
.row.fr .who { font-weight: 700; }
.row.fr { background: linear-gradient(90deg, rgba(0, 85, 164, .22), transparent 60%); margin: 0 -14px; padding: 0 14px; }
.medailles .med { width: 30px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; color: #1A0F2E; }
.medailles .or { background: #F6C945; } .medailles .ar { background: #C9CFD8; } .medailles .br { background: #D98E5A; }
.medailles .row { gap: 6px; }
select.search { appearance: auto; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; max-width: min(92vw, 480px);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
@media (min-width: 1000px) { .toast { bottom: 32px; left: calc(50% + 108px); } }
.seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { white-space: nowrap; }
@media (max-width: 420px) { .seg { gap: 2px; } .seg a, .seg button { padding: 0 7px; font-size: 12.5px; } }
@media (max-width: 370px) { .seg a, .seg button { padding: 0 5px; font-size: 12px; } }

/* ---------- thème clair pastel ---------- */
.clair {
  color-scheme: light;
  --bg: #F6F3FB; --surface: #FFFFFF; --surface-2: #EEE8F8; --line: #E7E1F1; --line-2: #CFC4E6;
  --text: #221A38; --text-2: #3A3150; --muted: #675E7E;
  --accent: #6A3FCB; --accent-hover: #5430A8; --on-accent: #FFFFFF; --on-white: #221A38;
  --grad: linear-gradient(135deg, #FFD2BC 0%, #F8BCD3 50%, #D8C8F6 100%);
  --grad-v: linear-gradient(180deg, #F7A57E 0%, #E37FAB 55%, #9C86EA 100%);
  --overlay: rgba(255,255,255,.55);
  --live: #D93A2E; --live-text: #B42A20; --down: #8B6FD6;
  --on-hero: #221A38;
  --hero-fond: rgba(255,255,255,.55); --hero-fond-2: rgba(255,255,255,.8);
  --hero-bord: rgba(34,26,56,.18); --hero-bord-2: rgba(34,26,56,.14);
  --choix-fond: #221A38; --choix-texte: #FFFFFF;
  --argent: #7D8496; --bronze: #B0602B;
  --ombre: 0 1px 2px rgba(34,26,56,.06), 0 4px 14px rgba(34,26,56,.05);
}
.clair.theme-tennis {
  --bg: #F2F7F5; --surface-2: #E4F0EC; --line: #DDE9E4; --line-2: #B9D3C9;
  --text: #13261F; --text-2: #2B3F38; --muted: #546A62;
  --accent: #1F7A4D; --accent-hover: #17603C; --on-white: #13261F;
  --grad: linear-gradient(135deg, #CDEFD9 0%, #C3E6E8 50%, #CDD9F7 100%);
  --grad-v: linear-gradient(180deg, #8FD7A8 0%, #6CC3C6 55%, #8BA4EA 100%);
  --on-hero: #13261F; --choix-fond: #13261F; --down: #C2453B;
  --hero-bord: rgba(19,38,31,.18); --hero-bord-2: rgba(19,38,31,.14);
}
.clair.theme-athle {
  --bg: #F5F2FC; --surface-2: #ECE6FA; --line: #E4DCF5; --line-2: #CABDEB;
  --grad: linear-gradient(135deg, #E9DDFB 0%, #D9CCF8 50%, #C9D2F6 100%);
  --grad-v: linear-gradient(180deg, #B79CF0 0%, #9C86EA 55%, #8597E6 100%);
}
.clair.theme-foot {
  --bg: #F3F6FC; --surface-2: #E5ECF8; --line: #DCE4F2; --line-2: #B8C8E6;
  --text: #14203A; --text-2: #2C3A57; --muted: #56647F;
  --accent: #2B5BD7; --accent-hover: #2148AE; --on-white: #14203A;
  --grad: linear-gradient(135deg, #CFE6FF 0%, #C9DCF7 50%, #D8D4F7 100%);
  --grad-v: linear-gradient(180deg, #8FC2F5 0%, #7FA6EC 55%, #A79BEA 100%);
  --on-hero: #14203A; --choix-fond: #14203A;
  --hero-bord: rgba(20,32,58,.18); --hero-bord-2: rgba(20,32,58,.14);
}
.clair .card, .clair .list, .clair .panel, .clair .stat, .clair .podium > a, .clair .podium > div { box-shadow: var(--ombre); }
.clair .card, .clair .stat, .clair .list, .clair .panel { border-color: var(--line); }
.clair .row.fr { background: linear-gradient(90deg, rgba(0, 85, 164, .09), transparent 60%); }
.clair .tabbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.clair .brand { background: linear-gradient(135deg, #E9895E, #C564A0 55%, #7C66D9); -webkit-background-clip: text; background-clip: text; }
.clair .medailles .med { color: #221A38; }
.clair .sheet-bg { background: rgba(34,26,56,.35); }
.choix-theme { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- tennis ---------- */
.match { background: var(--surface); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.match.live { box-shadow: inset 3px 0 0 var(--accent); }
.mt-info { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mt-j { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.mt-j .nom { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-j .nom small { color: var(--muted); font-size: 12px; }
.mt-j.gagnant .nom { font-weight: 700; }
.mt-j.perdant { color: var(--text-2); }
.mt-j .sets { display: flex; gap: 10px; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.mt-j .set { min-width: 12px; text-align: center; opacity: .6; }
.mt-j .set.gagne { opacity: 1; font-weight: 700; }
.mt-j .set sup { font-size: 10px; margin-left: 1px; }
.mt-j .star { width: 32px; height: 32px; font-size: 15px; }
.mt-groupe { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; }
.tournoi { margin-bottom: 18px; }
.hausse { color: #1F9D55; font-size: 11px; font-weight: 700; margin-left: 4px; }
.baisse { color: #D64545; font-size: 11px; font-weight: 700; margin-left: 4px; }

.duel { display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--surface); border-radius: 16px; padding: 12px; margin: 8px 0; font-weight: 600; }
.duel b { font-family: var(--display); font-size: 30px; }
.tournoi-joueur { padding: 10px 14px; margin-bottom: 8px; }
.tournoi-joueur summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.tournoi-joueur summary::-webkit-details-marker { display: none; }
.tournoi-joueur .who small { color: var(--muted); font-size: 12px; }
.tournoi-joueur .row { min-height: 40px; }

/* ---------- foot ---------- */
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 8px; vertical-align: 0; border: 1px solid rgba(0,0,0,.25); border-color: color-mix(in srgb, var(--text) 35%, transparent); /* visible même pour un club blanc (Marseille) sur fond clair, ou noir sur fond sombre */ }
.tableau .row { gap: 6px; min-height: 42px; }
.tableau .c { width: 34px; text-align: center; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tableau .mk { width: 34px; font-size: 17px; }
.tableau .entete { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; min-height: 32px; }
.tableau .entete .mk { font-family: inherit; font-size: 11px; }
.tableau .star-place { width: 36px; }
.tableau .pos { font-size: 16px; width: 34px; }

/* ---------- programme : un bloc repliable par sport ---------- */
:root { --c-athle: #6A3FCB; --c-tennis: #1F8A5B; --c-foot: #2B5BD7; --c-actu: #D2486F; }
.bloc-sport { margin: 6px 0 14px; }
.bloc-sport > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; cursor: pointer; list-style: none;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); font-weight: 700; position: sticky; top: 0; z-index: 2; }
.bloc-sport > summary::-webkit-details-marker { display: none; }
.bloc-sport .ico { display: flex; }
.bloc-sport .titre { font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.bloc-sport .compte { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-2); }
.bloc-sport .compte .live { color: var(--c); font-weight: 700; }
.bloc-sport .chev { font-size: 22px; line-height: 1; transition: transform .2s; transform: rotate(90deg); }
.bloc-sport:not([open]) .chev { transform: rotate(0deg); }
.bloc-sport .corps { border-left: 3px solid var(--c); padding: 4px 0 0 10px; margin: 8px 0 0 6px; }
.sport-athle { --c: var(--c-athle); } .sport-tennis { --c: var(--c-tennis); } .sport-foot { --c: var(--c-foot); } .sport-actu { --c: var(--c-actu); }
.sport-actu .corps .actu { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.lien-actu { display: inline-block; margin-top: 10px; color: var(--c, var(--accent)); font-weight: 600; font-size: 14px; text-decoration: none; }
.sport-tennis .match.live { box-shadow: inset 3px 0 0 var(--c-tennis); }
.sport-foot .match.live { box-shadow: inset 3px 0 0 var(--c-foot); }
.bloc-sport .corps .tag:not(.outline) { background: var(--c); color: #fff; }
.bloc-sport .corps .mt-groupe { color: var(--c); }

/* ---------- tableau d'un tournoi ---------- */
.bk { display: block; }
.bk-col { display: none; }
.bk-col.actif { display: block; }
.bk-col h3 { display: none; }
.bk-m { background: var(--surface); border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; }
.bk-m.live { box-shadow: inset 3px 0 0 var(--accent); }
.bk-m.futur { background: transparent; border: 1px dashed var(--line-2); }
.bk-j { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; }
.bk-j .nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-j .nom small { color: var(--muted); font-size: 11px; }
.bk-j.gagnant .nom { font-weight: 700; }
.bk-j.perdant { color: var(--text-2); }
.bk-j.inconnu { color: var(--muted); font-style: italic; }
.bk-j .sc { display: flex; gap: 8px; font-variant-numeric: tabular-nums; font-family: var(--display); font-size: 16px; }
.bk-j .sc span { opacity: .55; } .bk-j .sc span.g { opacity: 1; font-weight: 700; }
.bk-j .sc sup { font-size: 9px; }
.bk-pied { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .bk { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; }
  .bk-col { display: flex; flex-direction: column; justify-content: space-around; }
  .bk-col h3 { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin: 0 0 6px; }
  .seg-tours { display: none; }
}
.bk-j .star { width: 30px; height: 30px; font-size: 14px; }
.bk-j.me .nom { color: var(--accent); }

/* ---------- mini-arbre (quarts → finale), téléphone ---------- */
.mini-arbre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.ma-col { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; }
.ma-titre { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.ma-case { background: var(--surface); border-radius: 10px; padding: 4px 7px; }
.ma-case.live { box-shadow: inset 2px 0 0 var(--accent); }
.ma-l { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.ma-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-l.g { color: var(--text); font-weight: 700; }
.ma-l.i { color: var(--muted); }
@media (min-width: 1000px) { .mini-arbre:not(.toujours) { display: none; } .mini-arbre.toujours { max-width: 520px; } }

.buteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); line-height: 1.5; }
.buteurs > div:last-child { text-align: right; }

/* ---------- statistiques d'un match de foot ---------- */
details.match > summary { list-style: none; cursor: pointer; }
details.match > summary::-webkit-details-marker { display: none; }
.deplier { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
details.match[open] .deplier { display: none; }
.stats-match { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sm-l { display: flex; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.sm-l .fort { font-weight: 700; }
.sm-nom { color: var(--muted); font-size: 12px; }
.sm-barre { display: flex; gap: 3px; height: 5px; margin-top: 3px; }
.sm-barre i { display: block; border-radius: 3px; min-width: 2px; }

/* ---------- fiche d'un match de tennis ---------- */
.mt-fiche { display: block; text-align: right; font-size: 12px; color: var(--muted); text-decoration: none; margin-top: 4px; }
.forme { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pastille-forme { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pastille-forme.v { background: var(--accent); color: var(--on-accent); }
.pastille-forme.d { background: var(--surface-2, #eee); color: var(--muted); border: 1px solid var(--line-2); }

.poule-matchs { margin: 8px 0 4px; }
.poule-matchs > summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 6px 2px; list-style: none; }
.poule-matchs > summary::-webkit-details-marker { display: none; }
.poule-matchs > summary::after { content: ' ›'; }
.poule-matchs[open] > summary::after { content: ' ⌄'; }
.poule-matchs .bk-m { margin-bottom: 8px; }

/* Changement d'onglet par glissement */
@keyframes entre-gauche { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes entre-droite { from { transform: translateX(-28px); opacity: .4; } to { transform: none; opacity: 1; } }
#app.entre-gauche { animation: entre-gauche .22s ease-out; }
#app.entre-droite { animation: entre-droite .22s ease-out; }
@media (prefers-reduced-motion: reduce) { #app.entre-gauche, #app.entre-droite { animation: none; } }
.diffusion { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.diffusion a { color: var(--accent); font-weight: 600; }
.diffusion small { color: var(--muted); }
.titre-tournoi { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.titre-tournoi .tag { align-self: center; line-height: 1.3; }
.titre-ligue { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.titre-ligue a { color: var(--accent); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Tennis : couleur du tournoi (surface, ou couleurs du Grand Chelem) en liseré des cartes */
.match.t-surf { box-shadow: inset 4px 0 0 var(--t), inset 7px 0 0 var(--t2); padding-left: 18px; }
.tag.surf { color: #fff; border: 0; }
.hero.t-surf { box-shadow: inset 0 -3px 0 var(--t2), inset 0 -6px 0 var(--t); }

.info-tournoi { background: var(--surface); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; }
.info-tournoi > summary { cursor: pointer; font-weight: 600; color: var(--text-2); list-style: none; }
.info-tournoi > summary::-webkit-details-marker { display: none; }
.info-tournoi p { margin: 10px 0 6px; color: var(--text-2); font-size: 14px; }
.info-tournoi dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 2px; font-size: 14px; }
.info-tournoi dt { color: var(--muted); }
.info-tournoi dd { margin: 0; }
.nom-officiel { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }

.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.surface-tuile { background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: inset 0 4px 0 var(--t); display: flex; flex-direction: column; gap: 2px; }
.surface-tuile .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.surface-tuile .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.surface-tuile .pct { font-size: 12px; color: var(--t); font-weight: 700; }
.courbe svg { width: 100%; height: auto; display: block; }

.resume ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.resume li { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; }
.resume .quand { flex: 0 0 38px; color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 2px; }
.resume small { color: var(--muted); }

.actu ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.actu a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 1px; }
.actu .t { font-size: 14px; line-height: 1.35; }
.actu small { color: var(--muted); font-size: 12px; }
.actu details > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 10px; list-style: none; }
.actu details > summary::-webkit-details-marker { display: none; }
.hero h1.titre-jour { font-size: clamp(32px, 10.5vw, 54px); overflow-wrap: normal; white-space: nowrap; }
.stat .sous-v { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; font-family: inherit; }
.live-txt { color: var(--live-text, var(--accent)); }

.round-btn.petit { width: 36px; height: 36px; font-size: 16px; }
.round-btn.petit[disabled] { opacity: .3; }

/* ---------- vélo : jaune et noir ---------- */
:root { --c-velo: #B98A00; }
.sport-velo { --c: var(--c-velo); }
.clair.theme-velo {
  --bg: #FBF8EC; --surface-2: #F6EFD2; --line: #EEE5C4; --line-2: #DCCD92;
  --text: #211D12; --text-2: #3A3424; --muted: #6A6150;
  --accent: #211D12; --accent-hover: #000; --on-accent: #FFD200; --on-white: #211D12;
  --grad: linear-gradient(135deg, #FFF0A6 0%, #FFE066 50%, #F7C948 100%);
  --grad-v: linear-gradient(180deg, #FFE066 0%, #F7C948 60%, #E0A800 100%);
  --on-hero: #211D12; --choix-fond: #211D12; --choix-texte: #FFD200;
  --hero-bord: rgba(33,29,18,.2); --hero-bord-2: rgba(33,29,18,.16);
}
.hero-montagne { position: relative; overflow: hidden; isolation: isolate; }
.hero-montagne::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/montagne.svg') no-repeat right bottom / cover; opacity: .32; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); mask-image: linear-gradient(to left, #000 40%, transparent);
}
.hero .officiel { margin: 4px 0 0; font-size: 13px; font-weight: 600; opacity: .75; }
.titre-course { font-size: clamp(32px, 10vw, 46px) !important; }
.theme-velo .tag.outline { color: var(--text-2); }
.theme-velo .card.live, .theme-velo .card.etape.live { border: 1.5px solid #E0A800; }
.clair.theme-velo .chip[aria-pressed="true"] { background: #211D12; color: #FFD200; border-color: #211D12; }
.lien-coureur { color: inherit; text-decoration: none; font-weight: 600; }
.lien-coureur:hover { text-decoration: underline; }
.maillot { display: inline-block; width: 13px; height: 13px; border-radius: 3px; vertical-align: -1px; margin: 0 2px; background: var(--m, #ddd); border: 1px solid rgba(0,0,0,.25); }
.maillot-pois { background: #fff radial-gradient(circle, #D7261E 32%, transparent 36%) 0 0 / 5px 5px; }
.maillot-pois.bleus { background: #fff radial-gradient(circle, #2A6FDB 32%, transparent 36%) 0 0 / 5px 5px; }
.ic-etape { vertical-align: -4px; }
.card .s.type { display: flex; align-items: center; gap: 4px; }
.carte-velo { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #EAF1F5; }
.card .carte-velo { margin: 0 12px 12px; }
.carte-velo svg { display: block; width: 100%; height: auto; }
.carte-velo .mer { fill: #E3EDF3; }
.carte-velo .terre { fill: #FBF7E8; stroke: #CFC6A2; stroke-width: .8; stroke-linejoin: round; }
.carte-velo .tr, .carte-velo .sel, .carte-velo .autre { fill: none; stroke-linecap: round; }
.carte-velo path.tr { stroke: #211D12; stroke-width: 2.6; }
.carte-velo path.autre { stroke: #211D12; stroke-opacity: .28; stroke-width: 2; }
.carte-velo path.sel { stroke: #E0A800; stroke-width: 4.5; }
.carte-velo circle.tr { fill: #fff; stroke: #211D12; stroke-width: 2; }
.carte-velo circle.autre { fill: #fff; stroke: #211D12; stroke-opacity: .3; stroke-width: 1.5; }
.carte-velo circle.sel { fill: #FFD200; stroke: #211D12; stroke-width: 2; }
.carte-velo .liaison { fill: none; stroke: #211D12; stroke-opacity: .35; stroke-width: 1.2; stroke-dasharray: 3 3; }
.carte-velo circle.depart { fill: #FFD200; stroke: #211D12; stroke-width: 2; }
.carte-velo circle.arrivee { fill: #211D12; stroke: #FFD200; stroke-width: 2; }
.carte-velo text { font: 700 11px Inter, sans-serif; fill: #211D12; paint-order: stroke; stroke: #FBF7E8; stroke-width: 3px; }
.carte-velo text.num { font-size: 9px; fill: #6A6150; text-anchor: middle; }
.card.etape { align-items: center; }
.card.etape .num { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: #211D12; color: #FFD200; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 800; }
.velo-jour.a-venir .tag { background: #FFD200; color: #211D12; }
.etape-info { gap: 4px; }
.etape-info .type { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.nav-etapes { display: flex; justify-content: space-between; gap: 8px; }
.maillots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.maillots li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.maillots li > span:not(.maillot) { color: var(--muted); font-size: 12px; min-width: 112px; }
.row .mk.tps { font-family: var(--sans, inherit); font-size: 13px; font-weight: 600; color: var(--text-2); }
.cal-velo.t-gt { border-left: 4px solid #E0A800; }
.cal-velo.t-monument { border-left: 4px solid #211D12; }
.cal-velo.t-mondiaux { border-left: 4px solid; border-image: linear-gradient(#2A6FDB, #D7261E 33%, #211D12 50%, #F2C200 66%, #1F9D55) 1; }
.cal-velo.t-semaine { border-left: 4px solid #CFC6A2; }
.follow.velo .ring { background: #FFD200; }
.champ input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px; font: inherit; color: var(--text); }

/* ---------- écran de lancement ---------- */
#lancement { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(135deg, #FFD2BC 0%, #F8BCD3 50%, #D8C8F6 100%); color: #221A38; transition: opacity .35s ease; }
#lancement img { width: 132px; height: 132px; }
#lancement span { font-family: 'Inter Display', Inter, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* Le « 4 » penché comme les bandes du logo. */
#lancement span b { display: inline-block; font-weight: inherit; transform: skewX(-18deg); color: #7B55DE; }
#lancement.fini { opacity: 0; pointer-events: none; }
.theme-velo .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row .who small.eq { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.etapes-install { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tele { font-size: 12.5px; color: var(--muted); } .tele small { font-size: inherit; }
.ic-tv { vertical-align: -2px; flex: 0 0 auto; }
.infos-tournoi { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.infos-tournoi .tele { font-size: inherit; color: var(--text-2); }
.lien-chaine { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien-chaine small { font-weight: 500; color: var(--muted); }
/* Calendrier foot : journée affichée entre deux flèches. */
.cal-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.cal-nav > div { flex: 1; text-align: center; min-width: 0; }
.cal-nav strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.cal-nav small { color: var(--muted); font-size: 13px; }
.cal-fleche { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; font-size: 24px; flex: 0 0 auto; }
.tout-calendrier > summary { list-style: none; margin: 4px 0 8px; display: flex; justify-content: center; }
.tout-calendrier > summary::-webkit-details-marker { display: none; }
.tout-calendrier[open] > summary { display: none; }
/* Champ de code avec bouton « œil » pour l'afficher. */
.champ-secret { position: relative; }
.champ-secret .search { padding-right: 52px; }
.voir-secret { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; }
/* Pastille « actif » (notifications activées) : vert du logo, avec un voyant. */
.tag.actif { font-size: 12px; padding: 3px 9px; background: rgba(47, 158, 110, .18); color: #8FE0BA; border: 1px solid #2F9E6E; }
.clair .tag.actif { background: #E6F5EE; color: #1D6B4A; }
.tag.actif::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: #2F9E6E; margin-right: 6px; vertical-align: 1px; }
.balle-service { display: inline-block; vertical-align: -2px; margin-left: 6px; }

/* ---------- Mes sports : cases de la barre (glisser) et tuiles ---------- */
.mes-sports { display: flex; flex-direction: column; gap: 10px; }
.mes-sports .section-title { margin: 4px 0 0; }
.ms-tete { display: flex; justify-content: space-between; align-items: baseline; }
.ms-compte { font-size: 13px; font-weight: 700; color: var(--text); }
.ms-aide { margin: 0; }
.cases-sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.case-sport { position: relative; height: 96px; box-sizing: border-box; border-radius: 16px; background: var(--surface); border: 2px solid var(--c, var(--accent)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding-top: 8px; color: var(--text); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.case-sport .ic { color: var(--c); display: flex; } .case-sport .ic svg { width: 26px; height: 26px; }
.case-sport .nom { font-size: 12px; font-weight: 700; }
.case-sport .rang { position: absolute; top: 6px; left: 9px; font-size: 11px; font-weight: 700; color: var(--muted); }
.case-sport .retire { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; }
.case-sport .retire[disabled] { opacity: .3; }
.case-sport.tiree { z-index: 2; cursor: grabbing; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.case-sport.vide { border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); cursor: default; }
.case-sport.vide span { font-size: 22px; line-height: 1; } .case-sport.vide small { font-size: 11px; font-weight: 600; }
.tuiles-sports { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.tuile-sport { position: relative; height: 96px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; cursor: pointer; }
.tuile-sport .ic { color: var(--c); display: flex; } .tuile-sport .ic svg { width: 30px; height: 30px; }
.tuile-sport .nom { font-size: 14px; font-weight: 700; }
.tuile-sport.choisie { border: 2px solid var(--c); }
.tuile-sport .rang { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 11px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tuile-sport[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); }
.tuile-sport[aria-disabled="true"] .ic { color: var(--muted); }

/* ---------- récap du matin (Accueil, 6 h – 11 h) ---------- */
.recap-titre { display: flex; align-items: center; gap: 8px; }
.recap-titre .tasse { width: 30px; height: 30px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.resume .a-suivre { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.resume .a-suivre .lbl { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .8px; }
.resume .a-suivre .tele { margin-left: auto; color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Athlé : prochaine compétition (jour sans programme) ---------- */
.compet-annoncee { border: 1.5px solid var(--accent); }
.compet-annoncee .cal-jour { flex: 0 0 auto; width: 54px; height: 58px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.compet-annoncee .cal-jour b { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; }

/* ---------- rugby : bordeaux (sports à matchs, site/js/vue-equipes.js) ---------- */
:root { --c-rugby: #8E2A39; }
.sport-rugby { --c: var(--c-rugby); }
.sport-rugby .match.live { box-shadow: inset 3px 0 0 var(--c-rugby); }
.clair.theme-rugby {
  --bg: #FBF3F4; --surface-2: #F5E4E7; --line: #EFDDE0; --line-2: #DDB9C0;
  --text: #2A1418; --text-2: #46262C; --muted: #6E5157;
  --accent: #8E2A39; --accent-hover: #6F1F2C; --on-accent: #FFFFFF; --on-white: #2A1418;
  --grad: linear-gradient(135deg, #F8DCE1 0%, #F1CFD6 50%, #E6CFE0 100%);
  --grad-v: linear-gradient(180deg, #D98A98 0%, #C06A7C 55%, #A85A78 100%);
  --on-hero: #2A1418; --choix-fond: #2A1418;
  --hero-bord: rgba(42,20,24,.18); --hero-bord-2: rgba(42,20,24,.14);
}
.hero-poteaux { position: relative; overflow: hidden; isolation: isolate; }
.hero-poteaux::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/poteaux.svg') no-repeat right bottom / cover; opacity: .32; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); mask-image: linear-gradient(to left, #000 40%, transparent);
}
body:not(.clair) .hero-poteaux::before { opacity: .24; }
.essais { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- basket : orange ---------- */
:root { --c-basket: #B85410; }
.sport-basket { --c: var(--c-basket); }
.sport-basket .match.live { box-shadow: inset 3px 0 0 var(--c-basket); }
.clair.theme-basket {
  --bg: #FDF5EC; --surface-2: #F8E6D2; --line: #F2DFC9; --line-2: #E2BE97;
  --text: #2A1A0C; --text-2: #46301C; --muted: #6E5642;
  --accent: #A84A0C; --accent-hover: #843A09; --on-accent: #FFFFFF; --on-white: #2A1A0C;
  --grad: linear-gradient(135deg, #FDE3C8 0%, #FAD4B0 50%, #F3D2C2 100%);
  --grad-v: linear-gradient(180deg, #F2A766 0%, #E08A48 55%, #C9703C 100%);
  --on-hero: #2A1A0C; --choix-fond: #2A1A0C;
  --hero-bord: rgba(42,26,12,.18); --hero-bord-2: rgba(42,26,12,.14);
}
.hero-panier { position: relative; overflow: hidden; isolation: isolate; }
.hero-panier::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/panier.svg') no-repeat right bottom / cover; opacity: .32; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); mask-image: linear-gradient(to left, #000 40%, transparent);
}
body:not(.clair) .hero-panier::before { opacity: .24; }

/* ---------- F1 : anthracite, damier ---------- */
:root { --c-f1: #2B2D35; }
.sport-f1 { --c: var(--c-f1); }
.clair.theme-f1 {
  --bg: #F4F4F6; --surface-2: #E7E7EC; --line: #E1E1E7; --line-2: #C3C3CD;
  --text: #17181D; --text-2: #2E3038; --muted: #5C5E68;
  --accent: #2B2D35; --accent-hover: #000; --on-accent: #FFFFFF; --on-white: #17181D;
  --grad: linear-gradient(135deg, #E6E7EC 0%, #DCDDE4 50%, #F0D9DC 100%);
  --grad-v: linear-gradient(180deg, #8E909C 0%, #6C6E7A 55%, #C24A55 100%);
  --on-hero: #17181D; --choix-fond: #17181D;
  --hero-bord: rgba(23,24,29,.18); --hero-bord-2: rgba(23,24,29,.14);
}
.hero-damier { position: relative; overflow: hidden; isolation: isolate; }
.hero-damier::before {
  content: ''; position: absolute; z-index: -1; right: 0; bottom: 0; width: min(62%, 330px); height: 100%;
  background: url('../img/damier.svg') no-repeat right bottom / cover; opacity: .30; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); mask-image: linear-gradient(to left, #000 40%, transparent);
}
body:not(.clair) .hero-damier::before { opacity: .22; }
.row.passe .who { color: var(--muted); }

/* Visite guidée (premier lancement) : fond sombre, élément éclairé, bulle */
.visite { position: fixed; inset: 0; z-index: 100; }
.visite-fond { position: absolute; inset: 0; }
.visite-trou { position: fixed; pointer-events: none; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 200vmax rgba(10, 6, 22, .66); transition: all .25s ease; }
.visite-bulle { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; box-sizing: border-box; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: 20px; padding: 16px 18px 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 8px; }
.visite-bulle h2 { margin: 0; font-size: 19px; }
.visite-bulle p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.visite-haut { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.visite-points { display: flex; gap: 4px; }
.visite-points i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); }
.visite-points i.on { width: 18px; background: var(--accent); }
.visite-bas { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.visite-passer { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; }
.visite-suivant { border-radius: 22px; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .visite-trou { transition: none; } }

/* Choix de la compétition (foot, rugby) : bouton pilule qui ouvre la liste du téléphone */
label.choix-compet { position: relative; align-self: flex-start; display: inline-flex; align-items: center; margin-bottom: 12px; color: var(--text); min-width: 0; }
.ligne-choix { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ligne-choix label.choix-compet { margin-bottom: 0; flex: 0 1 auto; }
.ligne-choix select.choix-compet { width: 100%; }
.ligne-choix .lien-bloc { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 12px 4px; }
select.choix-compet { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 44px 0 18px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; max-width: 100%; text-overflow: ellipsis; }
select.choix-compet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.choix-compet svg { position: absolute; right: 16px; pointer-events: none; color: var(--muted); }

/* Blocs repliables du direct : titre cliquable, résumé visible seulement replié */
.bloc-repli > h2 { cursor: pointer; align-items: center; min-height: 44px; -webkit-tap-highlight-color: transparent; }
.bloc-repli > h2 > span:first-child { flex: 1; min-width: 0; }
.bloc-repli .titre-t { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bloc-repli > h2.titre-tournoi { flex-wrap: nowrap; }
.bloc-repli .resume { display: none; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bloc-repli .resume .direct { color: var(--live-text, #C0392B); }
.bloc-repli.ferme .resume { display: inline; }
.ligne-bloc { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: -4px 4px 8px; }
.ligne-bloc .mt-groupe { margin: 0; }
.ligne-bloc .lien-bloc { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 6px 0; }
.bloc-repli button.repli { flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; border-radius: 18px; transition: transform .2s; }
.bloc-repli.ferme button.repli { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .bloc-repli button.repli { transition: none; } }

/* Place au classement à côté du nom (championnats) */
.rang-cl { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }

/* Réglages › Notifications : une ligne par sport */
.liste-notifs { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.liste-notifs li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.liste-notifs .ic { flex: 0 0 20px; margin-top: 1px; }
.liste-notifs .ic svg { width: 20px; height: 20px; }
.liste-notifs strong { color: var(--text); }
.liste-notifs .tag { flex: 0 0 auto; align-self: center; }
