/* Widgets intégrables (/widget/..., widgets.py) : page autonome, sans style.css du site.
   Couleurs : variables posées par le gabarit (couleurs du club, clair / sombre). */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
.nm-widget { padding: 12px; }
.nm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.nm-head h1 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--accent); }
.nm-comp { color: var(--muted); font-size: 13px; }
.nm-empty { color: var(--muted); margin: 8px 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Classement */
.nm-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.nm-table th, .nm-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.nm-table th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
.nm-table th.num { text-align: right; }
.nm-table tbody tr:last-child td { border-bottom: 0; }
.nm-team { font-weight: 500; }
.nm-points { font-weight: 600; }
.nm-table tr.me td { background: var(--tint); font-weight: 600; }
.nm-table tr.me td:first-child { box-shadow: inset 4px 0 0 var(--mark); }
@media (max-width: 420px) { .nm-wide { display: none; } }

/* Dernier / prochain match */
.nm-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.nm-date { margin: 0 0 8px; color: var(--muted); font-size: 13px; text-align: center; }
.nm-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.nm-side { font-weight: 500; text-align: center; }
.nm-side.mine { font-weight: 700; color: var(--accent); }
.nm-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nm-big { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.nm-result { margin: 10px 0 0; text-align: center; font-weight: 600; }
.nm-venue { margin: 10px 0 0; text-align: center; font-size: 14px; }
.nm-venue span { color: var(--muted); font-size: 13px; }
.nm-gazette { margin-top: 10px; padding: 10px 12px; border-left: 4px solid var(--hi); background: var(--panel); border-radius: 0 8px 8px 0; }
.nm-gazette p { margin: 0 0 4px; }
.nm-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.nm-gazette-title { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 700; font-size: 18px; }

/* Pastilles V/N/D et états */
.nm-pill { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; }
.nm-pill.win { background: #1d7a3e; }
.nm-pill.draw { background: #6b7684; }
.nm-pill.loss { background: #b42318; }
.nm-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.nm-badge.live { background: #b42318; color: #fff; }
.nm-badge.postponed { background: var(--tint); color: var(--text); border: 1px solid var(--border); }

/* Liste des matchs, groupés par jour réel */
.nm-section { margin: 14px 0 4px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; text-transform: uppercase; color: var(--accent); }
.nm-day { margin: 10px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nm-games { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.nm-game + .nm-game { border-top: 1px solid var(--border); }
.nm-game a { display: grid; grid-template-columns: 64px 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; color: inherit; text-decoration: none; }
.nm-game a:hover, .nm-game a:focus-visible { background: var(--tint); }
.nm-when { font-variant-numeric: tabular-nums; }
.nm-vs { color: var(--muted); font-size: 12px; font-weight: 600; }
.nm-opp { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Liens et mention */
.nm-more { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; text-decoration: none; }
.nm-more:hover, .nm-more:focus-visible { text-decoration: underline; }
.nm-source { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--muted); }
