/* ══════════════════════════════════════════════════════════
   Ice Rondelle — le hockey, simplement.
   Direction : magazine sportif épuré. Fond « glace », texte encre,
   rouge de la marque en signature, bleu glace pour l'interactif.
   Beaucoup d'air, peu d'effets. Clair / sombre automatique.
   ══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Largeur du contenu : tout l'écran sur ordinateur (limite pour les très grands écrans). */
  --page-max: 2200px;
  --gutter: clamp(1.5rem, 3vw, 3.5rem);
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e6e9ee;
  --border-hi: #cfd5de;
  --text: #0b1220;
  --muted: #667085;
  --faint: #c3cad5;
  --accent: #1d64d8;
  --accent-soft: rgba(29, 100, 216, .09);
  --brand: #e5383b;
  --ok: #12a150;
  --bad: #e5383b;
  --gold: #d48806;
  --k-exploit: #d48806;
  --k-result: #1d64d8;
  --k-streak: #e5383b;
  --k-preview: #0e9f6e;
  --k-standings: #7a4ce0;
  --div-atlantic: #1d64d8;
  --div-metropolitan: #e5383b;
  --div-central: #0e9f6e;
  --div-pacific: #e08a00;
  --puck: #0b1220;
  --puck-top: #2a3850;
  --shadow-hi: 0 1px 2px rgba(11, 18, 32, .04), 0 14px 32px -16px rgba(11, 18, 32, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --topbar-h: 64px;
  --tabbar-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --surface: #121823;
    --surface-2: #19212e;
    --border: #222c3b;
    --border-hi: #334156;
    --text: #edf1f7;
    --muted: #93a0b5;
    --faint: #3a4659;
    --accent: #5aa9ff;
    --accent-soft: rgba(90, 169, 255, .13);
    --brand: #ff5a5f;
    --ok: #3ecf8e;
    --bad: #ff6b74;
    --gold: #f5b13d;
    --k-exploit: #f5b13d;
    --k-result: #5aa9ff;
    --k-streak: #ff5a5f;
    --k-preview: #3ecf8e;
    --k-standings: #a98bff;
    --div-atlantic: #5aa9ff;
    --div-metropolitan: #ff5a5f;
    --div-central: #3ecf8e;
    --div-pacific: #f5b13d;
    --puck: #edf1f7;
    --puck-top: #c3cad5;
    --shadow-hi: 0 14px 32px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
small { font-size: .8rem; }
.muted { color: var(--muted); }
.grad { color: var(--accent); }
.center { text-align: center; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.card, .glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.flush { padding: 0; overflow: hidden; }

/* ── Marque ──────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: .55rem; }
.puck { color: var(--puck); flex: none; }
.puck-top { fill: var(--puck-top); }
.puck-shine { fill: #fff; opacity: .28; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.04em; line-height: 1; }
.wordmark i { font-style: normal; color: var(--brand); }
/* Logo « ice rondelle. » : pastille glacée + mot dont le « o » est une rondelle. */
.wordmark { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; }
.wm-ice {
  font-size: .5em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .34em .42em .3em .56em; border-radius: .3em;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #7fd6ff));
  color: var(--surface); transform: skewX(-12deg) translateY(-.04em);
}
.wm-word { display: inline-flex; align-items: baseline; }
.wm-o {
  display: inline-block; width: .56em; height: .32em; margin: 0 .035em 0 .045em; border-radius: 50%;
  background: var(--puck-top); box-shadow: 0 .1em 0 var(--puck); transform: translateY(-.15em);
}

.wordmark.small { font-size: 1.15rem; }

/* ── Barre du haut ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { max-width: var(--page-max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu { display: flex; gap: 1.6rem; height: 100%; }
.topbar-right { display: flex; align-items: center; gap: 1.6rem; height: 100%; }
/* Sélecteur de langue FR / EN */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch a { padding: .22rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); transition: background .15s, color .15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--text); color: var(--bg); }
.menu a { position: relative; display: flex; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.menu a:hover { color: var(--text); }
.menu a.active { color: var(--text); }
.menu a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tabbar { display: none; }

.page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 2rem var(--gutter) 4rem; flex: 1; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 1.8rem var(--gutter); border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); max-width: var(--page-max); width: 100%; margin: 0 auto; }
.foot .wordmark { color: var(--text); }

/* ── Bandeau de scores ───────────────────────────────────── */
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); }
.ticker-in { max-width: var(--page-max); margin: 0 auto; display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 .75rem; }
.ticker-in::-webkit-scrollbar { display: none; }
.tick { flex: none; width: 150px; padding: .55rem .8rem .6rem; display: grid; gap: .1rem; border-right: 1px solid var(--border); scroll-snap-align: start; transition: background .15s; }
.tick:hover { background: var(--surface-2); }
.tick-head { display: flex; justify-content: space-between; gap: .4rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .15rem; white-space: nowrap; }
.tick-head .is-next { color: var(--accent); }
.tick-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .45rem; font-size: .84rem; }
.tick-row img { width: 32px; height: 32px; object-fit: contain; }
.tick-row b { font-weight: 700; }
.tick-row span { font-weight: 800; font-variant-numeric: tabular-nums; }
.tick-row.lost { color: var(--muted); }
.tick-row.lost b, .tick-row.lost span { font-weight: 500; }
.tick-more { display: grid; place-items: center; color: var(--accent); font-weight: 650; font-size: .82rem; border-right: 0; }

/* ── Accueil : actualité ─────────────────────────────────── */
.dateline { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.dateline::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }

.kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--k, var(--accent)); }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kind-exploit { --k: var(--k-exploit); }
.kind-result { --k: var(--k-result); }
.kind-streak { --k: var(--k-streak); }
.kind-preview { --k: var(--k-preview); }
.kind-standings { --k: var(--k-standings); }

/* À la une */
.featured {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  padding: clamp(1.6rem, 4.5vw, 3.2rem); margin-bottom: 3rem; border-radius: 24px;
  background: radial-gradient(120% 140% at 100% 0%, #1d2f55 0%, #0d1528 50%, #0a0f1c 100%);
  color: #fff;
}
.featured::after { content: ""; position: absolute; left: clamp(1.6rem, 4.5vw, 3.2rem); bottom: 0; width: 72px; height: 4px; border-radius: 4px 4px 0 0; background: var(--brand); }
.featured-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.featured-art img { position: absolute; object-fit: contain; opacity: .1; filter: saturate(.6); }
.featured-art .art-1 { width: 440px; height: 440px; right: -70px; top: -110px; transform: rotate(-10deg); }
.featured-art .art-2 { width: 300px; height: 300px; right: 34%; bottom: -150px; transform: rotate(8deg); opacity: .07; }
.featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.featured .kicker { color: #ff9a9c; background: rgba(229, 56, 59, .16); padding: .3rem .7rem; border-radius: 999px; }
.featured h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.featured h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.featured p { color: rgba(255, 255, 255, .74); font-size: 1.06rem; max-width: 44ch; }
.featured .btn-light { margin-top: .4rem; background: #fff; color: #0b1220; }
.featured .btn-light:hover { background: #e9eef6; }
.featured-visual { display: flex; justify-content: center; }
.featured .scoreline { gap: 1.2rem; }
.featured .scoreline b { font-size: clamp(3rem, 7vw, 4.8rem); color: #fff; }
.featured .sl-team.lost b { color: rgba(255, 255, 255, .38); }
.featured .sl-sep { color: rgba(255, 255, 255, .5); }
.featured .scoreline img, .featured .logos img { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45)); }
.featured .logos img { width: 150px; height: 150px; }
.featured .logos i { color: rgba(255, 255, 255, .45); }

/* Score / logos réutilisables */
.scoreline { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.sl-team { display: flex; align-items: center; gap: .7rem; }
.sl-team img { object-fit: contain; }
.scoreline b { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sl-team.lost b { color: var(--faint); }
.sl-sep { font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 1.2em; text-align: center; }
.logos { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.logos img { object-fit: contain; }
.logos i { font-style: normal; font-size: .72rem; font-weight: 750; text-transform: uppercase; color: var(--muted); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 22vw, 440px); gap: 3rem; align-items: start; }
.section-title { display: flex; align-items: center; gap: .9rem; font-size: 1.2rem; font-weight: 750; margin-bottom: 1.1rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.story { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.story:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); border-color: transparent; }
.story-visual { display: grid; place-items: center; min-height: 112px; padding: 1rem; background: color-mix(in srgb, var(--k, var(--accent)) 7%, var(--surface-2)); }
.story-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.15rem 1.2rem; }
.story h3 { font-size: 1.14rem; font-weight: 750; line-height: 1.2; text-wrap: balance; }
.story:hover h3 { color: var(--accent); }
.story p { color: var(--muted); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.side-block { margin-bottom: 2.4rem; }
.press { list-style: none; margin: 0; padding: 0; }
.press a { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.press li:first-child a { padding-top: 0; }
.press-n { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; color: var(--faint); }
.press-body { display: flex; flex-direction: column; gap: .25rem; }
.press-body b { font-size: .93rem; font-weight: 650; line-height: 1.35; }
.press a:hover b { color: var(--accent); }
.press-body small { color: var(--muted); font-size: .76rem; }

.mini-stand { list-style: none; margin: 0 0 .8rem; padding: 0; }
.mini-stand a { display: grid; grid-template-columns: 18px auto 1fr auto; align-items: center; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.mini-stand a:hover .ms-team { color: var(--text); }
.ms-rank { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.ms-team { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stand b:last-child { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.side-link { color: var(--accent); font-weight: 650; font-size: .88rem; }
.side-link:hover { text-decoration: underline; }

/* ── En-têtes des autres pages ───────────────────────────── */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero.compact h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.hero.compact h1 .grad { color: inherit; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--brand); }
.crumb { display: inline-block; color: var(--muted); font-size: .86rem; font-weight: 600; margin-bottom: 1.1rem; }
.crumb:hover { color: var(--accent); }
.note { margin-bottom: .8rem; font-size: .86rem; }

select {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); padding: .5rem 2.2rem .5rem .95rem; min-height: 40px; border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23889' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center;
  border: 1px solid var(--border); appearance: none; cursor: pointer; transition: border-color .15s;
}
select:hover, select:focus { border-color: var(--border-hi); outline: none; }
.inline-filter { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.inline-filter label { color: var(--muted); font-size: .84rem; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.2rem; min-height: 44px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 650; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-soft { background: var(--surface-2); border-color: var(--border); }

.pill { display: inline-flex; align-items: center; padding: .18rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.pill-hi { color: #fff; background: var(--brand); border-color: transparent; }
.count { display: inline-block; margin-left: .3rem; padding: 0 .45rem; border-radius: 99px; background: var(--surface-2); font-size: .7rem; font-weight: 700; color: var(--muted); vertical-align: middle; }

/* ── Sections ────────────────────────────────────────────── */
section { margin-bottom: 2.4rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; gap: 1rem; }
.sec-head a { color: var(--accent); font-size: .86rem; font-weight: 650; white-space: nowrap; }
.card + .sec-head { margin-top: 1.8rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.8rem; align-items: start; }
.cols > div { min-width: 0; }

/* ── KPI ─────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 2.2rem; }
.kpi { padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kpi span { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; }
.kpi b { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.kpi .sep { font-style: normal; color: var(--faint); font-weight: 400; margin: 0 .15rem; }

/* ── Onglets ─────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: .2rem; padding: .25rem; margin-bottom: 1.5rem; background: var(--surface-2); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-size: .9rem; font-weight: 650; color: var(--muted); background: none; border: 0; cursor: pointer; padding: .5rem 1.05rem; border-radius: 999px; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px rgba(11, 18, 32, .12); }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }
.tabs-line { display: flex; width: 100%; margin: 0; padding: 0 .5rem; background: none; border-bottom: 1px solid var(--border); border-radius: 0; }
.tabs-line .tab { border-radius: 0; padding: .8rem .75rem; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .86rem; }
.tabs-line .tab.active { background: none; box-shadow: none; border-bottom-color: var(--brand); }
.sticky-tabs { position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 10; box-shadow: 0 4px 16px -8px rgba(11, 18, 32, .25); background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(8px); }

/* ── Tableaux ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: .65rem .9rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 800; }
.table .rank { color: var(--muted); width: 2.2rem; font-variant-numeric: tabular-nums; }
.table .pos { color: var(--ok); font-weight: 650; }
.table .neg { color: var(--bad); font-weight: 650; }
.table.compact th, .table.compact td { padding: .5rem .8rem; }
.table tr.cut td { border-bottom: 2px solid var(--brand); }
.team-cell a { display: inline-flex; align-items: center; }
.team-cell a:hover b, .team-cell a:hover .team-name { color: var(--accent); }
.table-note { font-size: .76rem; color: var(--muted); padding: .65rem .9rem; border-top: 1px solid var(--border); }
.card-title { padding: 1rem 1rem .6rem; font-size: 1.05rem; }

.team { display: inline-flex; align-items: center; gap: .5rem; vertical-align: middle; }
.team img { object-fit: contain; flex: none; }
.team b { font-weight: 700; letter-spacing: .02em; }
.team-name { color: var(--muted); margin-left: .5rem; font-size: .86rem; }

/* ── Meneurs (classements) ───────────────────────────────── */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }
.leader-card { padding: 1.1rem 1.15rem 1.2rem; }
.leader-card header { display: flex; flex-direction: column; gap: .15rem; margin-bottom: .9rem; }
.leader-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.leader-card li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: .6rem; font-size: .88rem; }
.leader-card li > a { display: flex; }
.leader-card li > b { font-variant-numeric: tabular-nums; font-size: .86rem; min-width: 3.4em; text-align: right; }
.leader-card li:first-child > b { color: var(--accent); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.leader-card li:not(:first-child) .meter i { opacity: .35; }

/* Meneurs d'une équipe (joueurs) */
.lc-top { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px solid var(--border); }
.lc-top div { display: flex; flex-direction: column; min-width: 0; }
.lc-top div b { line-height: 1.25; }
.lc-top strong { font-family: var(--display); font-size: 2.1rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.lc-rest li { display: flex; justify-content: space-between; gap: .5rem; font-size: .88rem; }
.lc-rest li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.face { border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface-2); flex: none; }

/* ── Classements ─────────────────────────────────────────── */
.stand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
/* Divisions toujours en 2 × 2 sur ordinateur, même sur un écran très large. */
@media (min-width: 1100px) { .stand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stand-grid .team-name { display: none; }
.div-card .card-title { display: flex; align-items: center; gap: .55rem; }
.div-card .card-title::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--dc, var(--accent)); }
.div-atlantic { --dc: var(--div-atlantic); }
.div-metropolitan { --dc: var(--div-metropolitan); }
.div-central { --dc: var(--div-central); }
.div-pacific { --dc: var(--div-pacific); }
.legend { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.legend-line { flex: none; width: 22px; height: 2px; background: var(--brand); }
.abbr-help { font-size: .76rem; margin-top: 1.4rem; }

/* ── Équipes ─────────────────────────────────────────────── */
.div-title { display: flex; align-items: center; gap: .55rem; }
.div-title::before { content: ""; width: 4px; height: 1em; border-radius: 2px; background: var(--dc); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; }
.team-tile { position: relative; display: flex; align-items: center; gap: .95rem; padding: .95rem 1.05rem; transition: box-shadow .2s, transform .2s, border-color .2s; }
.team-tile:hover { box-shadow: var(--shadow-hi); transform: translateY(-2px); border-color: transparent; }
.team-tile img { flex: none; object-fit: contain; }
.tt-body { min-width: 0; flex: 1; }
.tt-body h3 { font-size: .98rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-meta { display: flex; gap: .6rem; font-size: .82rem; color: var(--muted); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.tt-meta b { color: var(--text); }
.tt-rank { font-family: var(--display); font-size: .85rem; font-weight: 800; color: var(--faint); }

/* ── Fiche équipe ────────────────────────────────────────── */
.team-head { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.th-logo { flex: none; object-fit: contain; }
.th-text { flex: 1; min-width: 220px; }
.th-record { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.th-record b { color: var(--text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.form-strip { display: flex; align-items: center; gap: .9rem 1.2rem; flex-wrap: wrap; padding: .85rem 1.15rem; }
.form-label { font-weight: 650; font-size: .9rem; }
.form-dots { display: flex; gap: .3rem; flex-wrap: wrap; }
.dot { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; }
.dot-V { background: var(--ok); }
.dot-D { background: var(--bad); }
.form-strip .muted { font-size: .84rem; }

.arena-card { position: relative; overflow: hidden; isolation: isolate; padding: 1.2rem; min-height: 160px; display: flex; flex-direction: column; gap: .3rem; justify-content: flex-end; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1d2f55 0%, #0b1220 70%); border-color: transparent; }
.arena-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--arena, none) center / cover; opacity: .7; }
.arena-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,10,18,0), rgba(6,10,18,.88)); }
.arena-card .muted { color: rgba(255,255,255,.78); }

.list > * + * { border-top: 1px solid var(--border); }
/* Matchs du jour : sur ordinateur, de grandes cartes aérées (lisibles sans effort). */
@media (min-width: 900px) {
  .game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 1.1rem; background: none; border: 0; overflow: visible; }
  .game-list > * + * { border-top: 0; }
  .game-list > .game-row {
    grid-template-columns: 1fr 150px 1fr; gap: 1rem; min-height: 112px; padding: 1.3rem 1.6rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  }
  .game-list > .game-row:hover { border-color: var(--border-hi); background: var(--surface); box-shadow: var(--shadow-hi); }
  .game-list > .game-row.is-live { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
  .game-list .gr-team { gap: 1rem; }
  .game-list .gr-team img { width: 64px; height: 64px; }
  .game-list .gr-name { line-height: 1.3; gap: .15rem; }
  .game-list .gr-name b { font-size: 1.3rem; letter-spacing: .01em; }
  .game-list .gr-name small { font-size: .9rem; }
  .game-list .gr-time { font-size: 1.2rem; }
  .game-list .gr-score { font-size: 1.9rem; gap: .6rem; }
  .game-list .gr-mid small { font-size: .74rem; }
  .game-list .gr-odds { margin-top: .45rem; gap: .45rem; font-size: .82rem; }
  .game-list .odds-bar { height: 6px; }
  .day-head { margin: 2.6rem 0 1rem; font-size: .92rem; letter-spacing: .07em; }
  .panel > .day-head:first-of-type { margin-top: 1.2rem; }
}
}
.list-head { padding: .55rem 1rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); font-family: var(--font); }
.person { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; }
.person > div:last-child { display: flex; flex-direction: column; }
.avatar-wrap { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; }
.avatar-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--accent-soft); color: var(--accent); }

.roster .player-cell { display: flex; align-items: center; gap: .7rem; }
.roster .player-cell span { display: flex; flex-direction: column; line-height: 1.25; }
.roster .player-cell small { font-size: .75rem; }

.result-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .9rem; padding: .7rem 1rem; transition: background .12s; }
.result-row:hover { background: var(--surface-2); }
.rr-opp { display: flex; align-items: center; gap: .4rem; }
.rr-opp small { width: 1.4em; }
.rr-score { font-weight: 750; font-variant-numeric: tabular-nums; }
.rr-date { font-size: .84rem; min-width: 4.5em; text-align: right; }
.res { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; }
.res-V { background: var(--ok); }
.res-D { background: var(--bad); }

/* ── Matchs ──────────────────────────────────────────────── */
.day-head { margin: 1.6rem 0 .65rem; font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font); }
.panel > .day-head:first-of-type { margin-top: .8rem; }
.game-row { display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; gap: .6rem; padding: .75rem 1rem; transition: background .12s; }
.game-row:hover { background: var(--surface-2); }
.gr-team { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.gr-away { justify-content: flex-end; text-align: right; }
.gr-team img { flex: none; object-fit: contain; }
.gr-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gr-name small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-team.lost .gr-name b { color: var(--muted); font-weight: 600; }
.gr-mid { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.gr-mid small { color: var(--muted); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.gr-score { display: flex; align-items: center; gap: .45rem; font-family: var(--display); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gr-score i { font-style: normal; color: var(--faint); font-weight: 400; }
.gr-score .lost { color: var(--faint); }
.gr-time { font-weight: 750; color: var(--accent); }

/* ── Détail d'un match ───────────────────────────────────── */
.scoreboard { position: relative; overflow: hidden; padding: 1.3rem 1.4rem 1.1rem; margin-bottom: 2rem; isolation: isolate; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1d2f55 0%, #0d1528 50%, #0a0f1c 100%); border: 0; border-radius: 24px; }
.scoreboard::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background: var(--arena, none) center / cover; }
.scoreboard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,15,28,.45), rgba(10,15,28,.94)); }
.scoreboard .pill { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; }
.sb-top { display: flex; gap: .5rem; flex-wrap: wrap; }
.sb-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.4rem 0 1.1rem; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.sb-team img { filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); object-fit: contain; }
.sb-team h2 { font-size: 1.05rem; }
.sb-team small { color: rgba(255,255,255,.55); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.sb-team:hover h2 { text-decoration: underline; }
.sb-score { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.sb-nums { display: flex; align-items: center; gap: .8rem; font-family: var(--display); font-size: clamp(2.8rem, 9vw, 4.6rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: rgba(255,255,255,.4); letter-spacing: -0.03em; }
.sb-nums i { font-style: normal; font-weight: 300; color: rgba(255,255,255,.3); }
.sb-nums .win { color: #fff; }
.sb-time { font-size: clamp(1.7rem, 5vw, 2.3rem); color: #fff; }
.gc-status { font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #9ccaff; }
.gc-status.is-final { color: rgba(255,255,255,.7); }
.sb-foot { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; justify-content: center; color: rgba(255,255,255,.7); font-size: .84rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.1); }

.game-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.goal { display: grid; grid-template-columns: 58px 1fr auto; gap: .85rem; align-items: center; padding: .75rem 1rem; }
.goal-pic { position: relative; width: 56px; height: 50px; }
.goal-face { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.goal-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--surface-2); }
.goal-face .avatar { font-size: .9rem; }
.goal-logo { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; padding: 2px; border-radius: 50%; background: #fff; border: 1px solid var(--border); object-fit: contain; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.goal.is-so .goal-face { width: 40px; height: 40px; top: 4px; left: 4px; }
.tag-so { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.goal-who { display: flex; flex-direction: column; min-width: 0; }
.goal-scorer { font-weight: 650; }
.goal-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.goal-time { font-variant-numeric: tabular-nums; font-weight: 650; font-size: .86rem; }
.goal-tags { display: flex; gap: .25rem; }
.tag { font-size: .64rem; font-weight: 800; padding: .1rem .4rem; border-radius: 5px; background: var(--surface-2); letter-spacing: .04em; }
.tag-gw { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

.shots { padding: 1rem 1.1rem .6rem; }
.shots-row { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.shots-team { display: inline-flex; align-items: center; gap: .6rem; }
.shots-team > b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.shots-row .shots-team:last-child { flex-direction: row-reverse; }
.shots-bar { height: 8px; border-radius: 99px; background: var(--brand); overflow: hidden; margin-bottom: .5rem; }
.shots-bar i { display: block; height: 100%; background: var(--accent); border-right: 2px solid var(--surface); }
.shots-table td { border: 0 !important; padding: .3rem .2rem !important; font-size: .84rem; }
.shots-table td.num:first-child { text-align: left; }

/* ── Graphiques ──────────────────────────────────────────── */
.chart-card { padding: 1rem 1.1rem; }
.chart-box { position: relative; height: 300px; }

/* ── États vides / erreurs ───────────────────────────────── */
.empty-state { padding: 2rem 1.4rem; text-align: center; display: grid; gap: .6rem; justify-items: center; margin-bottom: 1.5rem; }
.empty-state.big { padding: 4rem 1.5rem; margin-top: 2rem; }
.empty-state.big h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.empty-state .eyebrow::before { display: none; }

/* ── Tablette ────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .news-grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 2.5rem; }
  .game-grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ── Prédictions (Elo) ───────────────────────────────────── */
.odds-bar { position: relative; display: block; height: 5px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--brand) 75%, var(--surface)); }
.odds-bar i { display: block; height: 100%; background: var(--accent); border-right: 2px solid var(--surface); }
.odds-bar.big { height: 10px; }
.gr-odds { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .3rem; width: 100%; margin-top: 3px; font-size: .68rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.gr-odds b { font-weight: 650; }
.gr-odds b.fav { color: var(--text); font-weight: 800; }
.predict { padding: 1.2rem 1.3rem 1.1rem; margin-bottom: 1.5rem; }
.predict-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.predict-head h2 { margin: .2rem 0 0; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.02em; }
.predict-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; }
.pb-team { display: flex; align-items: center; gap: .55rem; }
.pb-team b { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.predict-note { margin: .9rem 0 0; font-size: .8rem; }
.predict-note a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.pill-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.pill-miss { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }
.power-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.power-intro h2 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.2rem; }
.power-intro p { margin: 0; max-width: 62ch; font-size: .9rem; }
.power-score { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.power-score b { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.power-score small { color: var(--muted); font-size: .76rem; margin-top: .3rem; }
.table.power .power-meter { width: 45%; }
.trend { font-size: .82rem; font-weight: 700; color: var(--muted); }
.trend.up { color: var(--ok); }
.trend.down { color: var(--bad); }
@media (max-width: 720px) {
  .hide-m { display: none; }
  .power-intro { flex-direction: column; align-items: flex-start; }
  .power-score { align-items: flex-start; text-align: left; }
  .predict-bar { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .predict-bar .odds-bar { grid-column: 1 / -1; order: 3; }
  .pb-home { justify-content: flex-end; }
}

/* ── Feuille de match (API LNH) ──────────────────────────── */
.face { position: relative; display: block; width: var(--s, 48px); height: var(--s, 48px); flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: var(--surface-2); }
.face .avatar { font-size: calc(var(--s, 48px) * .3); }
.goal-pic .face { position: absolute; left: 0; top: 0; }
.goal.is-so .goal-pic .face { top: 4px; left: 4px; }
.goal.so-miss .goal-scorer { color: var(--muted); font-weight: 600; }
.goal-score { font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.goal-extra { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .15rem; font-size: .76rem; }
.goal-extra a { color: var(--accent); font-weight: 650; }
.stars-sec { margin-bottom: 1.6rem; }
.stars { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.star-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.3rem 1rem 1.1rem; overflow: hidden; }
.star-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 58px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent); }
.star-1::before { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, transparent), transparent); }
.star-rank { position: relative; color: var(--gold); letter-spacing: .12em; font-size: 1rem; margin-bottom: .55rem; }
.star-pic { position: relative; }
.star-pic .goal-logo.star-logo { right: -6px; bottom: -4px; width: 40px; height: 40px; }
.star-card h3 { margin: .7rem 0 .15rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.01em; }
.star-card p { margin: 0; font-size: .82rem; font-variant-numeric: tabular-nums; }
.team-stats { padding: .9rem 1.1rem 1rem; margin-bottom: 1.4rem; }
.ts-head { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.ts-row { padding: .45rem 0; }
.ts-row + .ts-row { border-top: 1px solid var(--border); }
.ts-vals { display: grid; grid-template-columns: 4.5em 1fr 4.5em; align-items: center; font-size: .86rem; }
.ts-vals span { text-align: center; color: var(--muted); font-size: .8rem; }
.ts-vals b { font-variant-numeric: tabular-nums; }
.ts-vals b:last-child { text-align: right; }
.ts-bar { height: 5px; margin-top: .35rem; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--brand) 70%, var(--surface)); }
.ts-bar i { display: block; height: 100%; background: var(--accent); border-right: 2px solid var(--surface); }
.box-sec { margin-top: 1.8rem; }
.goalies { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.goalie-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: .85rem; padding: .85rem 1rem; }
.goalie-who { display: flex; flex-direction: column; min-width: 0; }
.goalie-side { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.goalie-side b { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.box-table td:nth-child(2) { white-space: nowrap; }
.pen-card { margin-top: 1.8rem; padding: 0; overflow: hidden; }
.pen-card summary { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.pen-card summary::-webkit-details-marker { display: none; }
.pen-card summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.pen-card[open] summary::after { transform: rotate(180deg); }
.pen-card summary h2 { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.pen-row { display: grid; grid-template-columns: 3.4em 28px 1fr auto; align-items: center; gap: .7rem; padding: .6rem 1.15rem; font-size: .88rem; border-top: 1px solid var(--border); }
.pen-row img { object-fit: contain; }
@media (max-width: 720px) {
  .stars { grid-template-columns: 1fr; gap: .6rem; }
  .star-card { flex-direction: row; text-align: left; gap: .9rem; padding: .8rem 1rem; }
  .star-card::before { inset: 0 auto 0 0; width: 5px; height: auto; }
  .star-rank { position: absolute; top: .55rem; right: .8rem; margin: 0; font-size: .85rem; }
  .star-pic .face { --s: 56px !important; }
  .star-pic .goal-logo.star-logo { width: 30px; height: 30px; }
  .star-card h3 { margin: 0 0 .1rem; }
  .pen-row { grid-template-columns: 3.2em 26px 1fr auto; padding: .55rem .9rem; font-size: .84rem; }
}

/* ── Direct ──────────────────────────────────────────────── */
.live-badge { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand) !important; font-weight: 800; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.tick-head .is-live { color: var(--brand); font-weight: 800; }
.tick-head, .tick-row { min-width: 0; }
.tick-head > span { overflow: hidden; text-overflow: ellipsis; }
.tick.is-live { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.game-row.is-live { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.scoreboard .gc-status.live-badge { color: #ff6b6e !important; }
.scoreboard.is-live .sb-nums span { color: #fff; }
.scoreboard .pill.pill-live { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.scoreboard .gc-status { white-space: nowrap; }
.game-row .live-badge { white-space: nowrap; }
.scoreboard .gc-status.live-badge::before { background: #ff6b6e; }
@media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }

/* ── Séparateurs de jours (listes de matchs) ─────────────── */
.day-sep { display: flex; align-items: center; gap: .9rem; margin: 2.4rem 0 1.1rem; font-family: var(--font); }
.panel > .day-sep:first-of-type, .inline-filter + .day-sep { margin-top: 1.4rem; }
.ds-num {
  display: grid; place-items: center; flex: none; width: 3.1rem; height: 3.1rem; border-radius: 14px;
  font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 16px -10px rgba(11, 18, 32, .25);
}
.ds-text { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.ds-text strong { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.ds-text small { color: var(--muted); font-size: .82rem; margin-top: .1rem; }
.ds-rel { padding: .12rem .55rem; border-radius: 999px; font-family: var(--font); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.ds-today { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.ds-tomorrow { background: var(--accent-soft); color: var(--accent); }
.ds-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-hi), transparent); }
.ds-count { flex: none; font-size: .8rem; font-weight: 650; color: var(--muted); }
/* Aujourd'hui : petite touche de couleur sur le chiffre */
.day-sep:has(.ds-today) .ds-num { color: #fff; background: var(--brand); border-color: var(--brand); }
@media (max-width: 720px) {
  .day-sep { gap: .7rem; margin: 1.8rem 0 .8rem; }
  .ds-num { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; border-radius: 12px; }
  .ds-text strong { font-size: 1rem; }
}

/* Cartes de match : bord adouci et ombre légère au lieu d'un trait net */
@media (min-width: 900px) {
  .game-list > .game-row {
    border-color: color-mix(in srgb, var(--border) 60%, transparent);
    box-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -16px rgba(11, 18, 32, .22);
    transition: transform .15s, box-shadow .15s, border-color .15s;
  }
  .game-list > .game-row:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 18, 32, .05), 0 16px 32px -18px rgba(11, 18, 32, .35); }
}

/* ── Page Équipes : grandes tuiles et en-têtes de division ── */
.div-section { margin-bottom: 1rem; }
.group-sep { display: flex; align-items: center; gap: .9rem; margin: 2.2rem 0 1.1rem; font-family: var(--font); }
.div-section:first-of-type .group-sep { margin-top: .6rem; }
.gs-mark { flex: none; width: 3.1rem; height: 3.1rem; border-radius: 14px; background: color-mix(in srgb, var(--dc) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--dc) 30%, transparent); position: relative; }
.gs-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; border-radius: 50%; background: var(--dc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--dc) 18%, transparent); }
.gs-text { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.gs-text strong { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.gs-text small { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.gs-line { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--dc) 45%, var(--border)), transparent); }
.gs-count { flex: none; font-size: .82rem; font-weight: 650; color: var(--muted); }

.team-grid { gap: 1.1rem; }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 721px) and (max-width: 1099px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-tile {
  gap: 1.2rem; min-height: 124px; padding: 1.3rem 1.4rem; border-radius: var(--radius);
  border-color: color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -16px rgba(11, 18, 32, .22);
}
.team-tile::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--dc); opacity: .85; }
.tt-logo { display: grid; place-items: center; flex: none; width: 84px; height: 84px; }
.tt-logo img { width: 84px; height: 84px; object-fit: contain; }
/* Mode sombre : léger halo pour que les logos foncés (TBL, TOR…) restent visibles */
@media (prefers-color-scheme: dark) { .tt-logo img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 0 10px rgba(255, 255, 255, .14)); } }
.tt-body h3 { font-family: var(--display); font-size: 1.18rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.tt-meta { align-items: baseline; gap: .8rem; margin-top: .45rem; font-size: .9rem; }
.tt-pts b { font-family: var(--display); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.tt-rec { color: var(--muted); }
.tt-rank { position: absolute; top: .9rem; right: 1rem; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; font-size: 1rem; color: var(--muted); }
.tt-rank small { font-family: var(--font); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .2rem; }
@media (max-width: 720px) {
  .group-sep { gap: .7rem; margin: 1.6rem 0 .8rem; }
  .gs-mark { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
  .gs-text strong { font-size: 1.12rem; }
  .team-tile { min-height: 0; padding: .9rem 1rem; gap: .9rem; }
  .tt-logo, .tt-logo img { width: 56px; height: 56px; }
  .tt-body h3 { font-size: 1.02rem; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --topbar-h: 54px; }
  body { font-size: 14.5px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .topbar-in { padding: 0 1.1rem; }
  .wordmark { font-size: 1.35rem; }
  .menu { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--border);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .66rem; font-weight: 650; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--brand); }

  .page { padding: 1.2rem 1.1rem 2.5rem; }
  section { margin-bottom: 1.8rem; }

  .featured { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.5rem 1.3rem 1.8rem; border-radius: 20px; margin-bottom: 2rem; }
  .featured-visual { order: -1; justify-content: flex-start; }
  .featured .scoreline img { width: 76px; height: 76px; }
  .featured .scoreline b { font-size: 2.8rem; }
  .featured .logos img { width: 92px; height: 92px; }
  .featured h2 { font-size: 1.9rem; }
  .featured p { font-size: .98rem; }
  .featured-art .art-1 { width: 280px; height: 280px; right: -80px; top: -60px; }
  .featured::after { left: 1.3rem; }
  .stories { grid-template-columns: 1fr; gap: .8rem; }
  .story { flex-direction: row; }
  .story-visual { flex: none; width: 112px; min-height: 0; padding: .6rem; }
  .story-visual .scoreline { flex-direction: column; gap: .3rem; }
  .story-visual .sl-team { gap: .45rem; }
  .story-visual .sl-team:last-child { flex-direction: row-reverse; }
  .story-visual .scoreline img { width: 26px; height: 26px; }
  .story-visual .scoreline b { font-size: 1.35rem; }
  .story-visual .logos { flex-direction: column; gap: .3rem; }
  .story-visual .logos img { width: 34px; height: 34px; }
  .story-body { padding: .85rem 1rem .95rem; gap: .3rem; }
  .story h3 { font-size: 1.02rem; }
  .story p { font-size: .84rem; -webkit-line-clamp: 2; }

  .hero { align-items: center; margin-bottom: 1.3rem; }
  .hero.compact h1 { font-size: 2rem; }
  .kpis { gap: .55rem; margin-bottom: 1.6rem; }
  .kpi { padding: .8rem .9rem; }
  .kpi b { font-size: 1.5rem; }
  .tabs:not(.tabs-line) { display: flex; width: 100%; }
  .tabs:not(.tabs-line) .tab { flex: 1; padding: .5rem .55rem; font-size: .86rem; }
  .hide-sm, .team-name { display: none; }
  .table { font-size: .86rem; }
  .table th, .table td, .table.compact th, .table.compact td { padding: .5rem .55rem; }
  .table th:first-child, .table td:first-child { padding-left: .9rem; }
  .table th:last-child, .table td:last-child { padding-right: .9rem; }
  .chart-box { height: 240px; }

  .team-grid { grid-template-columns: 1fr; gap: .5rem; }
  .team-tile { padding: .75rem .9rem; }
  .team-tile img { width: 52px; height: 52px; }
  .team-head { gap: .9rem; }
  .team-head .th-logo { width: 84px; height: 84px; }
  .team-head .th-text { min-width: 0; }
  .team-head h1 { font-size: 1.6rem; }
  .team-head .season-picker, .team-head select { width: 100%; }
  .sticky-tabs { top: calc(var(--topbar-h) + 6px); }
  .roster .player-cell { gap: .55rem; }
  .roster .face { width: 30px; height: 30px; }
  .roster .player-cell b { font-size: .85rem; }

  .game-row { grid-template-columns: 1fr 84px 1fr; padding: .65rem .75rem; gap: .4rem; }
  .gr-name small { display: none; }
  .gr-team { gap: .5rem; }
  .gr-team img { width: 42px; height: 42px; }
  .gr-score { font-size: 1.2rem; }

  .scoreboard { border-radius: 20px; }
  .sb-main { gap: .4rem; padding: 1rem 0 .8rem; }
  .sb-team img { width: 76px; height: 76px; }
  .sb-team h2 { font-size: .86rem; }
  .goal { padding: .65rem .8rem; gap: .65rem; grid-template-columns: 52px 1fr auto; }
  .goal-pic { width: 50px; height: 46px; }
  .goal-face { width: 42px; height: 42px; }
  .goal-logo { width: 26px; height: 26px; }
  .result-row { gap: .7rem; padding: .6rem .9rem; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Visuels des récits : logos seuls plus présents */
.story-visual .logos img { width: 88px; height: 88px; }
.story-visual .scoreline img { width: 66px; height: 66px; }
@media (max-width: 720px) {
  .story-visual .logos img { width: 60px; height: 60px; }
  .story-visual .scoreline img { width: 42px; height: 42px; }
}
