/* ══════════════════════════════════════════════════════════════
   RénéVéo — foot.css
   Styles communs : page match · classements · équipe · pronostics
   Même langage que l'accueil (index-d) : gris système, grands arrondis,
   pas de bordures, pastilles DIRECT rouges, onglets pilules blancs.
══════════════════════════════════════════════════════════════ */
:root {
  --bg: #080808; --s1: #1c1c1e; --s2: #2c2c2e; --s3: #3a3a3c;
  --l1: #fff; --l2: rgba(235,235,245,.62); --l3: rgba(235,235,245,.32); --sep: rgba(84,84,88,.55);
  --p: #6934da; --p2: #8f61ff; --p3: #c4abff;
  --live: #ff375f; --gold: #f4c542; --ok: #30d158; --bad: #ff453a;
  --r: 12px; --R: 20px;
  --pad: clamp(16px, 4.4vw, 64px);
  --sys: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  /* anciens noms gardés pour les styles des pages */
  --txt: #fff; --muted: rgba(235,235,245,.62); --card: #1c1c1e; --card2: #2c2c2e; --bdr: rgba(84,84,88,.35); --draw: #3a3a3c;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sys); background: var(--bg); color: var(--l1); overflow-x: hidden; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: var(--r); }

.ft { width: min(1240px, calc(100% - var(--pad) * 2)); margin: 0 auto; padding: 26px 0 80px; }
@media (max-width: 640px) {
  .ft { padding-top: 16px; }
  .ft-tab { height: 34px; padding: 0 12px; font-size: .8rem; gap: 6px; }
}

/* ── Fil d'ariane ── */
.ft-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: .84rem; font-weight: 500; color: var(--l2); }
.ft-crumb a { text-decoration: none; color: var(--l2); transition: color .15s; }
.ft-crumb a:hover { color: #fff; }
.ft-crumb span { color: #fff; }
.ft-crumb i { font-size: .6rem; color: var(--l3); }

/* ── Titres de section (comme les rangées de l'accueil) ── */
.ft-s { margin-top: 34px; }
.ft-s-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ft-s-title { display: flex; align-items: center; gap: 9px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; }
.ft-s-title i { font-size: .72em; color: var(--l3); }
.ft-s-link { font-size: .88rem; font-weight: 500; color: var(--l2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.ft-s-link:hover { color: #fff; }
.ft-s-link i { font-size: .75em; }

/* ── Panneau ── */
.ft-pnl { background: var(--s1); border-radius: var(--R); overflow: hidden; }
.ft-pnl-pad { padding: 16px; }

/* ── Boutons (pilules de l'accueil) ── */
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, filter .2s, opacity .15s; }
.ft-btn:hover:not(:disabled) { transform: scale(1.03); }
.ft-btn:active:not(:disabled) { transform: scale(.97); }
.ft-btn:disabled { opacity: .4; cursor: default; }
.ft-btn-w { background: #fff; color: #000; }
.ft-btn-p { background: var(--p); color: #fff; }
.ft-btn-p:hover:not(:disabled) { filter: brightness(1.12); }
.ft-btn-live { background: var(--live); color: #fff; }
.ft-btn-g { background: rgba(120,120,128,.36); color: #fff; backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
.ft-btn-g:hover { background: rgba(120,120,128,.5); }
.ft-btn-g.on { background: rgba(244,197,66,.18); color: var(--gold); }
.ft-btn-sm { height: 36px; padding: 0 15px; font-size: .84rem; }

/* ── Onglets / chips (comme les ligues de l'accueil) ── */
.ft-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ft-tabs::-webkit-scrollbar { display: none; }
.ft-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--s2); color: var(--l2); font-size: .84rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.ft-tab img { width: 18px; height: 18px; object-fit: contain; }
.ft-tab i { font-size: .8em; }
.ft-tab:hover { color: #fff; background: var(--s3); }
.ft-tab.on { background: #fff; color: #000; }

/* ── Ligne de match (calendrier, résultats) ── */
.ft-gm { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; transition: background .15s; }
.ft-gm + .ft-gm { box-shadow: inset 0 1px 0 rgba(84,84,88,.35); }
a.ft-gm:hover { background: rgba(255,255,255,.04); }
.ft-gm-when { font-size: .74rem; font-weight: 500; color: var(--l2); line-height: 1.35; }
.ft-gm-when b { display: block; color: #fff; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ft-gm-when.live, .ft-gm-when.live b { color: var(--live); }
.ft-gm-teams { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ft-gm-t { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; min-width: 0; }
.ft-gm-t img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.ft-gm-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-gm-t.lose { color: var(--l2); }
.ft-gm-t .sc { margin-left: auto; padding-left: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ft-gm-side { display: flex; align-items: center; gap: 8px; }
.ft-gm-comp { width: 20px; height: 20px; object-fit: contain; opacity: .85; }

/* Pastilles résultat V/N/D */
.ft-res { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: .64rem; font-weight: 700; color: #fff; flex: none; }
.ft-res.w { background: var(--ok); color: #04210f; } .ft-res.d { background: var(--s3); } .ft-res.l { background: var(--bad); }
.ft-form { display: inline-flex; gap: 4px; }
.ft-form .ft-res { width: 19px; height: 19px; border-radius: 5px; font-size: .58rem; }

/* ── Tableau de classement ── */
.ft-tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ft-tbl th { padding: 12px 8px 8px; font-size: .7rem; font-weight: 600; color: var(--l3); text-align: center; white-space: nowrap; }
.ft-tbl th.l, .ft-tbl td.l { text-align: left; }
.ft-tbl td { padding: 10px 8px; text-align: center; font-weight: 500; color: var(--l2); font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(84,84,88,.3); }
.ft-tbl tbody tr { transition: background .12s; }
.ft-tbl tbody tr:hover { background: rgba(255,255,255,.04); }
.ft-tbl td.pts { font-weight: 700; color: #fff; }
.ft-tbl .pos { position: relative; width: 40px; font-weight: 700; color: #fff; }
.ft-tbl .pos::before { content: ''; position: absolute; left: 4px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--zone, transparent); }
.ft-tbl .team { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; color: #fff; font-weight: 600; }
.ft-tbl .team img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ft-tbl .team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-tbl .team:hover span { color: var(--p3); }
.ft-tbl tr.me td { background: rgba(105,52,218,.2); }
.ft-tbl tr.fav td { background: rgba(244,197,66,.08); }
.ft-tbl tr.fav .team span::after { content: ' ★'; color: var(--gold); font-size: .75rem; }
.ft-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 16px; box-shadow: inset 0 1px 0 var(--sep); font-size: .76rem; font-weight: 500; color: var(--l2); }
.ft-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ft-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
@media (max-width: 720px) {
  .ft-tbl .hide-m { display: none; }
  .ft-tbl th, .ft-tbl td { padding: 10px 5px; }
  .ft-tbl { font-size: .82rem; }
}

/* ══════════════════════════════════════════════════════════════
   WIDGET PRONOSTIC (comme la carte « Pronostics » de l'accueil)
══════════════════════════════════════════════════════════════ */
.pr { border-radius: var(--R); padding: 18px; background: radial-gradient(90% 130% at 100% 0%, rgba(155,123,255,.32), transparent 60%), var(--s1); }
.pr-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pr-title { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.pr-title i { color: var(--p3); font-size: .85em; }
.pr-rule { font-size: .72rem; font-weight: 500; color: var(--l2); text-align: right; line-height: 1.45; }
.pr-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.pr-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .92rem; font-weight: 600; }
.pr-team img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.pr-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-team.away { flex-direction: row-reverse; text-align: right; }
.pr-score { display: flex; align-items: center; gap: 8px; }
.pr-sep { font-weight: 400; color: var(--l3); font-size: 1.2rem; }
.pr-step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pr-step button { width: 36px; height: 24px; border-radius: 8px; border: 0; background: var(--s2); color: var(--l2); cursor: pointer; font-size: .64rem; transition: background .15s, color .15s; }
.pr-step button:hover:not(:disabled) { background: var(--s3); color: #fff; }
.pr-step button:disabled { opacity: .3; cursor: default; }
.pr-num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--s2); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-num.empty { color: var(--l3); }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pr-state { font-size: .8rem; font-weight: 500; color: var(--l2); display: inline-flex; align-items: center; gap: 7px; }
.pr-state.ok { color: var(--ok); }
.pr-state.err { color: var(--live); }
.pr-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); margin-top: 18px; }
.pr-bar > div { height: 100%; transition: width .5s ease; }
.pr-bar .h { background: linear-gradient(90deg, #5427bd, #6934da, #8f61ff); }
.pr-bar .d { background: rgba(255,255,255,.28); }
.pr-bar .a { background: rgba(143,97,255,.45); }
.pr-pct { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; font-weight: 500; color: var(--l2); }
.pr-pct b { color: #fff; font-weight: 700; }
.pr-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--s2); margin-top: 16px; font-size: .86rem; font-weight: 500; }
.pr-result b { font-weight: 700; }
.pr-pts { margin-left: auto; font-size: 1.1rem; font-weight: 700; }
.pr-pts.win { color: var(--gold); }
@media (max-width: 520px) {
  .pr { padding: 15px; }
  .pr-team { flex-direction: column; text-align: center; gap: 6px; font-size: .8rem; }
  .pr-team.away { flex-direction: column; text-align: center; }
  .pr-team span { max-width: 100%; }
  .pr-num { width: 42px; height: 42px; font-size: 1.3rem; }
}

/* Ligne compacte de prono (page pronostics) */
.prl { display: grid; grid-template-columns: 112px minmax(0,1fr) auto minmax(0,1fr) 28px; align-items: center; gap: 12px; padding: 12px 16px; }
.prl + .prl { box-shadow: inset 0 1px 0 rgba(84,84,88,.35); }
.prl-when { font-size: .74rem; font-weight: 500; color: var(--l2); line-height: 1.35; }
.prl-when b { display: block; color: #fff; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.prl-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: .88rem; font-weight: 600; text-decoration: none; color: #fff; }
.prl-team img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.prl-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prl-team:hover span { color: var(--p3); }
/* domicile : écusson collé au score (à droite) · extérieur : écusson collé au score (à gauche) */
.prl-team.home { flex-direction: row-reverse; text-align: right; }
.prl-score { display: flex; align-items: center; gap: 7px; }
.prl-in { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--s2); text-align: center; font-size: 1.05rem; font-weight: 700; outline: none; -moz-appearance: textfield; transition: background .15s, box-shadow .15s; }
.prl-in::-webkit-outer-spin-button, .prl-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.prl-in:focus { background: var(--s3); box-shadow: 0 0 0 2px var(--p2); }
.prl-in:disabled { opacity: .5; }
.prl-ok { display: grid; place-items: center; font-size: .86rem; color: transparent; transition: color .2s; }
.prl-ok.saved { color: var(--ok); } .prl-ok.saving { color: var(--l2); } .prl-ok.err { color: var(--live); }
@media (max-width: 560px) {
  .prl { position: relative; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; padding: 12px 12px; }
  .prl-when { grid-column: 1 / -1; display: flex; gap: 6px; padding-right: 26px; }
  .prl-ok { position: absolute; top: 12px; right: 14px; }
  .prl-when b { display: inline; }
  .prl-team { flex-direction: column; text-align: center; gap: 5px; font-size: .78rem; }
  .prl-team.home { flex-direction: column; text-align: center; }
  .prl-team span { max-width: 100%; }
}

/* ── Divers ── */
.ft-empty { padding: 30px 18px; text-align: center; color: var(--l2); font-size: .9rem; font-weight: 500; line-height: 1.5; }
.ft-empty i { display: block; font-size: 1.4rem; margin-bottom: 10px; color: var(--l3); }
.ft-pnl.ft-empty, section.ft-empty { background: var(--s1); border-radius: var(--R); }
.skel { background: linear-gradient(90deg, var(--s1) 0%, var(--s2) 50%, var(--s1) 100%); background-size: 200% 100%; animation: ftShimmer 1.4s infinite; border-radius: var(--r); }
@keyframes ftShimmer { to { background-position: -200% 0; } }
.ft-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ftBlink 1.6s infinite; flex: none; }
@keyframes ftBlink { 50% { opacity: .35; } }
/* Pastilles (badges de l'accueil) */
.ft-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; font-size: .74rem; font-weight: 700; background: rgba(120,120,128,.36); color: #fff; backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
.ft-pill.live { background: var(--live); color: #fff; }

#ftToast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 10px); z-index: 9999; display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 14px; background: rgba(44,44,46,.92); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 14px 40px rgba(0,0,0,.55); font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
#ftToast.show { opacity: 1; transform: translate(-50%, 0); }
#ftToast.ok i { color: var(--ok); }
#ftToast.err i { color: var(--live); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}