/* footaz.net - design system v1
   Charte historique : bleu #44aee3, jaune #fee546, orange #f04923.
   SSR pur, un seul fichier CSS, mobile-first, dark mode auto. */

/* Drapeaux emoji sur Windows : police subset (76 Ko, codepoints drapeaux uniquement, Twemoji CC-BY 4.0).
   unicode-range fait qu'elle n'est téléchargée/appliquée que pour les drapeaux. */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('/assets/flags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0060-E00FF, U+FE4E5-FE4EE;
  font-display: swap;
}

:root {
  --c-primary: #44aee3;
  --c-primary-deep: #1b76a8;
  --c-accent: #fee546;
  /* teintes foncees juste assez pour le contraste AA 4.5:1 (audit Lighthouse), meme famille */
  --c-alert: #d43a10;
  --c-live: #15803d;

  --c-bg: #f4f7fa;
  --c-surface: #ffffff;
  --c-text: #16202b;
  --c-muted: #5c6b7a;
  --c-border: #dde5ec;
  --c-header: #0e1420;
  --c-header-text: #ffffff;
  --c-hover: #eaf4fb;

  --radius: 10px;
  --shadow: 0 1px 3px rgb(14 20 32 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* bleu eclairci : les liens/tags en primary-deep restent lisibles sur fond nuit */
    --c-primary-deep: #6fc0e9;
    --c-bg: #0e1420;
    --c-surface: #161f2e;
    --c-text: #e8edf2;
    --c-muted: #93a1b0;
    --c-border: #253244;
    --c-hover: #1c2940;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* gouttière de scrollbar réservée en permanence : pas de saut de largeur entre pages courtes et longues */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--c-primary-deep); }
a:hover { color: var(--c-primary); }

.container { max-width: 880px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header */
.site-header {
  background: var(--c-header);
  border-bottom: 3px solid var(--c-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.35rem 0;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-header-text);
  text-decoration: none;
}
.logo-ball { display: block; }
.logo-accent { color: var(--c-primary); }
.main-nav { display: flex; gap: 0.1rem; margin-left: auto; }
.main-nav a {
  color: var(--c-header-text);
  text-decoration: none;
  font-weight: 600;
  /* compact : le lien En direct doit tenir sans faire passer le header sur 2 lignes */
  font-size: 0.78rem;
  padding: 0.28rem 0.3rem;
  border-radius: 999px;
  opacity: 0.85;
  white-space: nowrap;
}
.main-nav a:hover { background: rgb(255 255 255 / 0.12); opacity: 1; color: var(--c-header-text); }
/* Lien En direct : point rouge CSS (compact) au lieu d'un emoji */
.nav-live { display: inline-flex; align-items: center; gap: 0.28rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; flex-shrink: 0; }

/* Contrôles du header (pays des chaînes, fuseau) : intitulé compact AU-DESSUS du contrôle */
.header-country,
.header-tz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}
.hc-label {
  color: var(--c-header-text);
  opacity: 0.65;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
}
/* Desktop : sélecteurs repliés sur le drapeau/valeur courte, dépliés au focus/clic */
.header-country select {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-header-text);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 7px;
  padding: 0.2rem 0.15rem 0.2rem 0.3rem;
  width: 2.45rem;
  white-space: nowrap;
  overflow: hidden;
}
.header-country select:focus { width: auto; min-width: 10rem; }
.header-country option { color: #16202b; background: #fff; }

/* Champ fuseau horaire (rempli en JS, masqué sans JS) - flèche pour signaler le déroulant */
.tz-select {
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--c-header-text);
  background-color: rgb(255 255 255 / 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  background-size: 9px 6px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 7px;
  padding: 0.2rem 1.3rem 0.2rem 0.4rem;
  width: 4.6rem;
}
.tz-select:focus { width: 12rem; }
/* Chrome affiche sa propre flèche de datalist : on la rend invisible mais CLIQUABLE
   (display:none désactiverait le popup d'autocomplétion) - la nôtre reste en fond */
.tz-select::-webkit-calendar-picker-indicator { opacity: 0; width: 1.1rem; height: 1.1rem; cursor: pointer; }
.tz-select::placeholder { color: rgb(255 255 255 / 0.7); }
.tz-select option { color: #16202b; background: #fff; }

/* ---------- Main */
main { padding: 1.25rem 1rem 3rem; }
.page-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; margin: 0.5rem 0 1.25rem; }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.muted { color: var(--c-muted); }
.empty { color: var(--c-muted); padding: 2rem 0; text-align: center; }

/* ---------- Groupes par compétition */
.competition-group { margin-bottom: 1.5rem; }
.competition-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  margin: 0 0 0.4rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--c-primary);
}
.competition-header a { color: inherit; text-decoration: none; }
.competition-header a:hover { color: var(--c-primary); }
/* Boîte fixe pour tous les logos de compétition : alignement identique partout */
.competition-header .competition-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: -3px; margin-right: 0.35rem; }
.page-title .competition-logo { width: 28px; height: 28px; object-fit: contain; vertical-align: -5px; margin-right: 0.35rem; }

/* ---------- Liste de matchs */
.fixture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fixture-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  flex-wrap: nowrap;
}
.fixture-list li:last-child { border-bottom: none; }
.fixture-list li:hover { background: var(--c-hover); }
.fixture-list li.is-live { box-shadow: inset 3px 0 0 var(--c-live); }
/* 0.75 mini : en dessous, le texte des lignes terminées passe sous le contraste AA 4.5:1 */
.fixture-list li.is-done { opacity: 0.75; }
.fixture-list li.is-done:hover { opacity: 1; }

/* Ligne multiplex en tête de groupe */
.fixture-list li.is-multiplex { background: var(--c-hover); font-weight: 700; }

.fx-time { min-width: 3.2rem; text-align: center; flex-shrink: 0; }
.fx-time time { font-size: 0.85rem; }
.fx-time-date { min-width: 8.5rem; text-align: left; font-size: 0.82rem; }

.day-sep-row { padding: 0 !important; display: block !important; }
/* Séparateur de jour dans les listes multi-dates (page compétition, équipe, chaîne) */
.day-sep {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--c-muted);
  background: var(--c-hover);
  padding: 0.3rem 0.8rem;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
}

/* Rappel des préférences actives au-dessus du h1 : sélecteurs inline directs */
.active-prefs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0.5rem 0 0.2rem; align-items: center; }
.ap-form {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem 0.1rem 0.55rem;
}
.ap-ico { font-size: 0.85rem; line-height: 1; }
.ap-select {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-muted);
  background: transparent;
  border: none;
  padding: 0.15rem 0;
  max-width: 11rem;
}
.ap-select:focus { color: var(--c-text); outline: none; }
input.tz-mini { width: 8.5rem; }
input.tz-mini:focus { width: 12rem; }
@media (max-width: 560px) {
  /* Mobile : pays + fuseau côte à côte sur UNE ligne */
  .active-prefs { flex-wrap: nowrap; gap: 0.4rem; }
  .active-prefs .ap-form { flex: 1 1 50%; min-width: 0; }
  .active-prefs .ap-select { width: 100%; max-width: none; }
  .active-prefs input.tz-mini { width: 100%; }
  .active-prefs input.tz-mini:focus { width: 100%; }
  /* le select natif du fuseau doit retrecir dans sa moitie de ligne (sinon 1px de scroll horizontal) */
  .active-prefs .tz-native { flex: 1 1 auto; min-width: 0; max-width: 100%; width: auto; }
}

.propose-wrap { margin-top: 0.9rem; }
.propose-open {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-primary-deep);
  background: var(--c-surface);
  border: 1px dashed var(--c-primary);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.propose-open:hover { background: var(--c-hover); }
.ics-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-primary-deep);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  text-decoration: none;
}
.ics-btn:hover { border-color: var(--c-primary); background: var(--c-hover); }
/* Sections de la home/pages jour : respiration entre En ce moment, Top matchs et les groupes */
.live-now { margin-bottom: 1.6rem; }
.top-matches { margin-top: 0.25rem; }

/* Footer : rangee de sections (retour nav en fin de longues listes) */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.footer-nav a { color: var(--c-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.footer-nav a:hover { color: var(--c-primary-deep); }

/* Accessibilite : lien d'evitement (visible seulement au focus clavier) + focus net */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Bouton S'abonner (URL d'affiliation de la chaine) : CTA discret mais visible */
.aff-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-primary);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  text-decoration: none;
  white-space: nowrap;
}
.aff-btn:hover { background: var(--c-primary-deep); }
.aff-lg { font-size: 0.85rem; padding: 0.4rem 1rem; margin-left: auto; }

/* Plateformes OTT : petit tag "streaming" sur les chips chaine (fiche match) */
.tag-stream {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary-deep);
  border: 1px solid var(--c-primary);
  border-radius: 4px;
  padding: 0 0.25rem;
  line-height: 1.35;
  white-space: nowrap;
}
/* Tag « gratuit » (chaînes en clair) : même gabarit que le tag streaming, en vert */
.tag-free {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ok, #2e9e5b);
  border: 1px solid var(--c-ok, #2e9e5b);
  border-radius: 4px;
  padding: 0 0.25rem;
  line-height: 1.35;
  white-space: nowrap;
}
.fx-time time { color: var(--c-muted); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9rem; }
.fx-score { font-weight: 800; font-variant-numeric: tabular-nums; }

.fx-teams {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  flex-wrap: nowrap;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.fx-teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-teams:hover { color: var(--c-primary-deep); }
/* Logos d'equipes dans les listes (toujours presents, ghost si inconnu : alignement stable) */
.fx-teams .fx-logo {
  width: 16px;
  height: 16px;
  min-width: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.fx-teams .fx-logo.is-ghost { visibility: hidden; }
/* le tiret ne doit JAMAIS herite du min-width des noms (sinon 54px de vide apres le club 1) */
.fx-teams .fx-sep { color: var(--c-muted); font-weight: 400; min-width: 0 !important; flex: 0 0 auto; }

.fx-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; max-width: 48%; overflow: hidden; }

/* Bulle du numéro de sous-chaîne (Ligue 1+ ②) : fine, centrée optiquement */
.sub-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--c-primary);
  background: transparent;
  color: var(--c-primary-deep);
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  text-align: center;
  padding-top: 0.5px;
  flex-shrink: 0;
}

/* Chip blanc derrière chaque logo de chaîne : les fonds blancs des logos restent propres
   au hover des lignes et en dark mode. Les logos larges (YouTube...) se réduisent
   proportionnellement au lieu d'être tronqués par la colonne fixe. */
.badge-channel img {
  background: #fff;
  padding: 2px 3px;
  border-radius: 5px;
  border: 1px solid var(--c-border);
  box-sizing: content-box;
  max-width: 42px;
  object-fit: contain;
}

/* FAQ page match */
.faq { margin-top: 1.5rem; }
.faq-item h3 { font-size: 0.95rem; margin: 0.9rem 0 0.25rem; }
.faq-item p { margin: 0; color: var(--c-muted); font-size: 0.92rem; }

/* Lien rapide mobile hors burger */
.nav-quick { display: none; }
.fx-channels { display: flex; gap: 0.3rem; }
.fx-comp { font-size: 0.8rem; }

/* Bascule de tri compétition / heure */
.sort-toggle { display: inline-flex; border: 1px solid var(--c-border); border-radius: 999px; overflow: hidden; }
.sort-toggle a {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-muted);
  text-decoration: none;
  background: var(--c-surface);
}
.sort-toggle a.active { background: var(--c-primary-deep); color: #fff; }

/* ---------- Badges */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--c-border);
  color: var(--c-text);
  vertical-align: middle;
}
.badge-live { background: var(--c-live); color: #fff; animation: pulse 2s infinite; }
.badge-alert { background: var(--c-alert); color: #fff; }
.badge-community { background: transparent; border: 1px dashed var(--c-border); color: var(--c-muted); }
/* Aucune chaîne connue : invitation discrète (la communauté peut proposer sur la fiche) */
.badge-ask { background: transparent; border: 1px dashed var(--c-border); color: var(--c-muted); }
.badge-channel {
  background: transparent;
  color: var(--c-primary-deep);
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-channel img { border-radius: 2px; display: block; }

@keyframes pulse { 50% { opacity: 0.65; } }

/* Fil d'ariane */
.crumbs { font-size: 0.82rem; color: var(--c-muted); margin: 0.4rem 0 0.75rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary-deep); }
.crumb-sep { margin: 0 0.35rem; opacity: 0.6; }
.crumb-current { color: var(--c-text); font-weight: 600; }

/* ---------- Page match */
.match-hero {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.match-competition { margin: 0 0 0.75rem; font-size: 0.9rem; }
.match-competition a { font-weight: 600; text-decoration: none; }
/* Scoreboard : logo au-dessus du nom de chaque cote, score/vs au centre */
.match-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  text-align: center;
}
.match-title .team {
  color: var(--c-text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  justify-self: center;
  line-height: 1.2;
}
.match-title a.team:hover { color: var(--c-primary-deep); }
.match-title .team-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  padding: 7px;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}
.match-title .team-logo.is-ghost { visibility: hidden; }
.match-title .team-name { max-width: 100%; }
.match-vs {
  color: var(--c-muted);
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.match-score {
  background: var(--c-header);
  color: #fff;
  padding: 0.25rem 0.95rem;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.match-score.is-live { background: var(--c-live); }
.match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.95rem;
}
.match-meta time { font-weight: 600; }
.match-reverse { margin: 0.75rem 0 0; font-size: 0.9rem; }
.team-alternates { margin: -0.75rem 0 1rem; font-size: 0.9rem; }

/* ---------- Tableau diffuseurs */
.broadcast-section { margin-top: 1.5rem; }

/* Carte principale : LA chaîne du pays de l'utilisateur, mise en avant */
.broadcast-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  background: var(--c-surface);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.bp-label { font-weight: 800; font-size: 1.05rem; }
.bp-channels { flex: 1; min-width: 14rem; }
/* Grille partagée chaîne | pouces | (S'abonner) : mêmes colonnes sur toutes les lignes */
.hb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 0.5rem;
  row-gap: 0.4rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.hb-grid.hb-2 { grid-template-columns: minmax(0, 1fr) auto; }
.hb-grid .channel-chip { min-width: 0; max-width: 100%; justify-self: start; text-decoration: none; }
.hb-grid .channel-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-grid .aff-btn { background: var(--c-ok, #2e9e5b); }
.hb-grid .aff-btn:hover { filter: brightness(1.12); background: var(--c-ok, #2e9e5b); }
.chip-lg { font-size: 1.05rem; padding: 0.45rem 0.9rem; font-weight: 700; }
.broadcast-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.broadcast-table tr { border-bottom: 1px solid var(--c-border); }
.broadcast-table tr:last-child { border-bottom: none; }
.broadcast-table tr.is-local { background: var(--c-hover); box-shadow: inset 3px 0 0 var(--c-primary); }
.broadcast-table th,
.broadcast-table td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; }
.broadcast-table th { white-space: nowrap; font-size: 0.92rem; width: 1%; }
.flag { margin-right: 0.15rem; }

/* Une ligne par chaîne : les compteurs 👍/👎 s'alignent verticalement */
.channel-cells { display: flex; flex-direction: column; gap: 0.4rem; }
.channel-cell { display: flex; align-items: center; gap: 0.5rem; width: 100%; }
.channel-cell .vote-box { margin-left: auto; }
/* Sur les badges des listes (inline), pas d'étirement */
.fx-channels .channel-cell { width: auto; }
.fx-channels .channel-cell .vote-box { margin-left: 0; }

/* Votes communautaires 👍/👎 */
.vote-box { display: inline-flex; gap: 0.2rem; }
/* Version discrète dans les listes : pouce + petit chiffre, sans pastille */
.vote-mini .vote {
  border: none;
  background: transparent;
  padding: 0 0.12rem;
  font-size: 0.82rem;
  color: var(--c-muted);
}
.vote-mini .vote b { font-size: 0.78rem; }
.vote-mini { gap: 0.05rem; }
.vote {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
}
.vote { font-weight: 400; }
.vote b { font-variant-numeric: tabular-nums; font-weight: 700; }
.vote:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.vote.my-vote { border-color: var(--c-primary); background: var(--c-hover); color: var(--c-primary-deep); }

/* Mini-formulaire "proposer la bonne chaîne" (bouton + ou après un 👎) */
.propose-form { display: flex; gap: 0.3rem; align-items: center; width: 100%; max-width: 24rem; margin-top: 0.45rem; }
.propose-form input {
  font: inherit;
  font-size: 16px; /* >= 16px : évite le zoom automatique iOS au focus */
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--c-primary);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
  flex: 1;
  min-width: 0;
}
.propose-form button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--c-primary);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.propose-thanks { font-size: 0.8rem; color: var(--c-live); font-weight: 600; }
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.channel-chip:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.channel-chip img { border-radius: 3px; display: block; }

.channel-logo { vertical-align: middle; border-radius: 4px; margin-right: 0.3rem; }

/* Monogramme de secours quand une chaîne n'a pas de logo */
.channel-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: hsl(var(--mono-h) 55% 42%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* Barre de filtres (pays des chaînes + saut vers un championnat) */
.filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0 0 1.1rem;
}
.country-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}
/* Les selects n'héritent pas toujours de la police de body : forcer la pile avec drapeaux */
select {
  font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.country-bar select,
.comp-select {
  font: inherit;
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  max-width: 16rem;
}

/* Bandeau des jours */
.day-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin: -0.25rem 0 0.9rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.day-nav::-webkit-scrollbar { display: none; }
.day-nav a {
  flex-shrink: 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}
.day-nav a:hover { border-color: var(--c-primary); color: var(--c-primary-deep); }
.day-nav a.active { background: var(--c-primary-deep); border-color: var(--c-primary-deep); color: #fff; }

/* Hub compétitions : colonnes équilibrées, International (gros bloc) en dernier */
.competitions-index { columns: 260px 3; column-gap: 1.25rem; }
.competition-country { break-inside: avoid; margin-bottom: 1.25rem; }
.competitions-list { list-style: none; margin: 0; padding: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.competitions-list li { border-bottom: 1px solid var(--c-border); }
.competitions-list li:last-child { border-bottom: none; }
.competitions-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.competitions-list a span:last-child,
.competitions-list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.competitions-list a:hover { background: var(--c-hover); color: var(--c-primary-deep); }
/* Logos de tailles variables : boîte fixe pour un alignement parfait des libellés */
.competitions-list a img,
.competitions-list a .channel-mono { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
/* Hub competitions : chaine principale + prochaine diffusion, a droite de la ligne */
.comp-hub-next { margin-left: auto; font-size: 0.72rem; min-width: 0; }

/* Sélecteur de langue (header) */
.header-lang { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.header-lang select {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-header-text);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 7px;
  padding: 0.2rem 0.15rem 0.2rem 0.3rem;
  width: 2.45rem;
  overflow: hidden;
}
.header-lang select:focus { width: auto; min-width: 8rem; }
.header-lang option { color: #16202b; background: #fff; }

/* Page À propos */
.about-content { max-width: 46rem; }
.about-content p { margin: 0 0 1rem; }

/* Bloc éditorial home */
.edito { margin-top: 2rem; max-width: 46rem; }
.edito p { color: var(--c-muted); font-size: 0.92rem; margin: 0 0 0.8rem; }
.edito-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }

/* Logos équipes (hero match) */
.team-logo { display: block; }

/* En-tête page chaîne */
.channel-head { display: flex; align-items: center; gap: 0.9rem; margin: 0.5rem 0 1.25rem; }
.channel-head .page-title { margin: 0; }
.channel-head img { border-radius: 6px; }
.channel-country { margin: 0.1rem 0 0; font-size: 0.9rem; }

/* ---------- Footer */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 1.5rem 0 2.5rem;
  margin-top: 2rem;
}
.lang-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; justify-content: center; margin-bottom: 0.9rem; }
.lang-nav a { color: var(--c-muted); text-decoration: none; font-size: 0.85rem; }
.lang-nav a:hover { color: var(--c-primary); }
.lang-nav a.active { color: var(--c-text); font-weight: 700; }
.footer-about { color: var(--c-muted); font-size: 0.82rem; text-align: center; margin: 0; }
.footer-links { color: var(--c-muted); font-size: 0.82rem; text-align: center; margin: 0.4rem 0 0; }
.footer-disclaimer { color: var(--c-muted); font-size: 0.72rem; text-align: center; margin: 0.6rem auto 0; max-width: 720px; line-height: 1.5; }
.footer-copy { color: var(--c-muted); font-size: 0.75rem; text-align: center; margin: 0.4rem 0 0; font-weight: 600; }

/* H1 de la fiche match : sous-titre sous le scoreboard, l'intention en toutes lettres */
.match-h1 { font-size: 0.98rem; font-weight: 600; color: var(--c-muted); text-align: center; margin: 0.15rem 0 0.6rem; }

/* ---------- Header : outils groupés (nav + pays + fuseau + langue), burger sur mobile */
.burger-btn { display: none; }
.header-tools { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.header-tools .main-nav { margin-left: 0; }
/* À propos / Contact : accessibles via burger et footer, pas dans la nav desktop */
.nav-more { display: none; }

/* ---------- Responsive */
@media (max-width: 900px) {
  .site-header { position: static; }
  .header-inner { gap: 0.4rem 0.75rem; padding: 0.4rem 0; }
  .logo { font-size: 1.15rem; }
  /* Burger : tout le menu (nav + les 3 sélecteurs) dans un panneau déroulant, rien de masqué */
  .burger-btn {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    background: transparent;
    color: var(--c-header-text);
    border: none;
    cursor: pointer;
  }
  .header-tools { display: none; }
  /* Panneau en overlay absolu : ouvrir le menu ne fait pas bouger le logo ni la page */
  .site-header { position: relative; }
  .site-header.menu-open .header-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--c-header);
    gap: 0.65rem;
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    box-shadow: 0 8px 16px rgb(0 0 0 / 0.35);
  }
  .site-header.menu-open .nav-more { display: block; }
  .nav-quick {
    display: block;
    margin-left: auto;
    color: var(--c-header-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.28rem 0.4rem;
    border-radius: 999px;
    opacity: 0.85;
    white-space: nowrap;
  }
  .burger-btn { margin-left: 0; }
  .site-header.menu-open .main-nav { flex-direction: column; gap: 0.1rem; }
  .site-header.menu-open .main-nav a { font-size: 0.95rem; padding: 0.45rem 0.4rem; }
  /* Sélecteurs en lignes complètes : intitulé à gauche, contrôle à droite */
  .site-header.menu-open .header-country,
  .site-header.menu-open .header-tz,
  .site-header.menu-open .header-lang {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex !important;
  }
  .site-header.menu-open .hc-label { font-size: 0.78rem; text-transform: none; letter-spacing: 0; opacity: 0.85; }
  .site-header.menu-open .header-country select,
  .site-header.menu-open .header-lang select,
  .site-header.menu-open .tz-select { max-width: 55%; width: auto; min-width: 8.5rem; font-size: 0.85rem; }

  .page-title { font-size: 1.15rem; margin: 0.4rem 0 1rem; }
  .section-title { font-size: 0.98rem; }
  .match-hero { padding: 1rem 0.75rem; }
  .match-title { gap: 0.8rem; }
  .team-logo { height: 32px; }
  .filters-bar { gap: 0.5rem 0.75rem; }
  .filters-bar .comp-select { flex: 1; min-width: 0; max-width: none; }
  .filters-bar .ap-form { flex: 1 1 40%; min-width: 0; }
  .filters-bar .ap-select { width: 100%; max-width: none; }
}

@media (max-width: 560px) {
  main { padding: 0.85rem 0.65rem 2.5rem; }
  /* Tuiles compactes une seule ligne : équipes ellipsées, badge chaîne réduit, votes masqués */
  .fixture-list li { padding: 0.36rem 0.5rem; gap: 0.4rem; font-size: 0.86rem; flex-wrap: nowrap; }
  .day-sep { font-size: 0.72rem; padding: 0.25rem 0.5rem; }
  .fx-time time { font-size: 0.78rem; }
  .fx-teams { min-width: 0; flex: 1; flex-wrap: nowrap; overflow: hidden; }
  .fx-teams span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fx-right { gap: 0.3rem; max-width: 40%; overflow: hidden; }
  .fx-comp { display: none; }
  .badge-channel { max-width: 6.5rem; }
  .bc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fx-time { min-width: 3.1rem; }
  .fx-time-date { min-width: 6.5rem; font-size: 0.72rem; }
  /* Tableau diffuseurs empilé : pays au-dessus de ses chaînes */
  .broadcast-table, .broadcast-table tr, .broadcast-table th, .broadcast-table td { display: block; width: 100%; }
  .broadcast-table tr { border-bottom: 1px solid var(--c-border); padding: 0.2rem 0; }
  .broadcast-table th { white-space: normal; border: 0; padding: 0.45rem 0.75rem 0.1rem; }
  .broadcast-table td { padding: 0.15rem 0.75rem 0.55rem; }
  .broadcast-primary { padding: 0.7rem 0.65rem; gap: 0.45rem; flex-direction: column; align-items: stretch; }
  .bp-channels { min-width: 0; }
  .bp-label { font-size: 0.92rem; }
  .chip-lg { font-size: 0.9rem; padding: 0.32rem 0.6rem; }
  .broadcast-section .section-title { margin-top: 1.2rem; }
  .channel-cell { gap: 0.35rem; }
  .day-nav a { font-size: 0.8rem; padding: 0.25rem 0.6rem; }
  .sort-toggle a { font-size: 0.78rem; padding: 0.25rem 0.6rem; }
  .lang-nav { gap: 0.3rem 0.75rem; }
}

/* Select natif fuseau (mobile) + invitation post-vote */
.tz-native { font: inherit; font-size: 0.85rem; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-surface); color: var(--c-text); padding: 0.25rem 0.4rem; max-width: 100%; }
.header-tz .tz-native { background: rgb(255 255 255 / 0.1); color: var(--c-header-text); border-color: rgb(255 255 255 / 0.25); }
.header-tz .tz-native option { color: #16202b; background: #fff; }
.ap-form .tz-native { border: none; background: transparent; font-size: 0.78rem; font-weight: 600; color: var(--c-muted); padding: 0.15rem 0; }
.propose-inline { font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--c-primary-deep); background: transparent; border: none; cursor: pointer; text-decoration: underline; padding: 0 0.2rem; }

.team-longnames { font-size: 0.85rem; margin: -0.45rem 0 0.6rem; }

/* Forme de l'equipe : pastilles des 5 derniers resultats (vert V, gris N, rouge D) */
.form-dots { display: inline-flex; gap: 0.22rem; margin-left: 0.4rem; vertical-align: middle; }
.form-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.form-w { background: #2fa153; }
.form-d { background: var(--c-border); }
.form-l { background: #d0454c; }

/* Colonne fixe icone communaute (alignement identique sur toutes les lignes) */
.fx-comicon { width: 5.6rem; text-align: right; flex-shrink: 0; font-size: 0.72rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; }
.badge-ask { text-decoration: none; }

/* Select drapeau : face visible (drapeau + chevron), vrai select invisible par-dessus */
.flag-select { position: relative; display: inline-flex; }
.flag-face {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--c-header-text);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 7px;
  padding: 0.2rem 0.45rem;
  line-height: 1.2;
}
.ff-caret {
  width: 9px; height: 6px; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E") no-repeat center / contain;
}
.flag-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
/* Dans le burger mobile : select complet visible, face masquee */
@media (max-width: 900px) {
  .site-header.menu-open .flag-select { width: auto; }
  .site-header.menu-open .flag-select .flag-face { display: none; }
  .site-header.menu-open .flag-select select { position: static; opacity: 1; width: auto; min-width: 8.5rem; }
}

.fx-comicon.has-com { color: var(--c-primary-deep); text-decoration: none; font-weight: 700; }
.fx-comicon.has-com:hover { color: var(--c-primary); }
@media (max-width: 560px) { .fx-channels img { height: 15px; } .vote-mini .vote { font-size: 0.72rem; } }

.hero-propose { margin-top: 0.7rem; }
.hero-propose .propose-form { margin: 0.45rem auto 0; }

.sub-ghost { visibility: hidden; }


.propose-form input { font-weight: 400; }
.propose-form input::placeholder { font-weight: 400; color: var(--c-muted); font-size: 0.85rem; }
@media (max-width: 560px) { .fx-comicon { width: 2rem; } .ci-txt { display: none; } }

/* Compat transition de déploiement : le HTML en cache (edge 60 s + SWR 5 min) peut encore
   porter l'ancien markup .fx-channels ; on le garde stylé pour éviter tout décalage. */
@media (min-width: 561px) {
  .fx-channels .channel-cell { justify-content: flex-end; }
  .fx-channels .badge-channel { width: 3.3rem; justify-content: flex-end; }
  .fx-channels .vote-mini { width: 5rem; justify-content: flex-end; }
  .fx-more { width: 1.7rem; flex: none; text-align: center; }
  .fx-slot-empty { width: 8.6rem; flex: none; }
}

/* Grille de droite des listings, 5 colonnes fixes toujours rendues :
   [chaîne 3.5] [👍 2.3] [👎 2.3] [proposer 1.3] [autres +N 1.8] */
.fx-prop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  color: var(--c-muted);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-prop:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.fx-prop.is-ghost { visibility: hidden; }
/* Zone droite agrandie : logos 20px et compteurs lisibles, au niveau du nom des matchs */
.fx-ch .badge-channel img { height: 20px; }
.fx-ch .bc-name { font-size: 0.82rem; font-weight: 700; }
@media (min-width: 561px) {
  .fx-right { gap: 0.3rem; }
  /* Tri par heure : libellé compétition en largeur fixe pour préserver la grille */
  /* colonne catégorie élargie et décollée de la chaîne (retour Cyril) */
  .fx-comp { width: 13rem; flex: none; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.84rem; margin-right: 0.6rem; }
  .fx-ch { width: 4.5rem; flex: none; display: inline-flex; justify-content: flex-end; }
  .fx-ch .badge-channel { justify-content: flex-end; }
  /* Pouces collés à la chaîne : contenu centré dans des colonnes serrées */
  .vote-mini { flex: none; gap: 0.1rem; margin-right: 0.25rem; }
  .vote-mini .vote-up, .vote-mini .vote-down { width: 2.1rem; justify-content: center; display: inline-flex; }
  .vote-mini .vote { font-size: 0.9rem; }
  .vote-mini .vote b { font-size: 0.85rem; }
  .vote-ghost { width: 4.3rem; }
  .fx-prop, .fx-prop.is-ghost { width: 4.7rem; justify-content: center; }
  .fx-others { width: 2.9rem; flex: none; text-align: center; }
}
@media (max-width: 560px) {
  .vote-ghost, .fx-prop.is-ghost, .fx-others:empty, .fx-ch:empty { display: none; }
  .fx-ch .badge-channel img { height: 17px; }
  /* Mobile : le bouton Proposer ne s'affiche que si aucune chaîne connue
     (sinon accessible via le pouce 👎 et la fiche match) - place rendue aux noms d'équipes */
  .fx-prop.fx-prop-secondary { display: none; }
}

.hero-broadcast { margin-top: 0.85rem; text-align: left; }

/* ---------- Recherche header (clubs + compétitions) */
.header-search { position: relative; display: inline-flex; align-items: center; }
.search-input {
  width: 2.6rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.08);
  color: var(--c-header-text);
  font-size: 0.7rem;
}
.search-input::placeholder { color: rgb(255 255 255 / 0.55); }
/* Pas d'agrandissement au focus : toute variation de largeur ferait passer le menu à la ligne */
.search-input:focus { outline: none; border-color: var(--c-primary); }
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 15rem;
  max-height: 60vh;
  overflow: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 80;
}
.search-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.7rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.search-item:hover { background: var(--c-hover); }
.search-item img { flex: none; object-fit: contain; }
@media (max-width: 900px) {
  .header-search { width: 100%; }
  .search-input, .search-input:focus { width: 100%; font-size: 16px; }
  .search-results { left: 0; right: 0; }
}

/* Pastille +N : autres chaînes du match (survol = noms, clic = fiche match) */
/* Pastille "+N autres chaînes" : même langage visuel que la bulle de numéro (contour fin) */
.badge-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 0 4px;
  text-decoration: none;
  line-height: 1;
}
.badge-more:hover { border-color: var(--c-primary); color: var(--c-primary-deep); background: var(--c-hover); }

/* ---------- Liens streaming communautaires (fiche match) */
.stream-links { margin-top: 1.5rem; }
.stream-list { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.stream-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--c-border);
}
.stream-list li.is-downvoted { opacity: 0.5; }
.stream-url { font-weight: 600; text-decoration: none; }
.stream-url:hover { text-decoration: underline; }
.stream-list .vote-box { margin-left: auto; }
.stream-form { max-width: 26rem; }
.stream-form input { flex: 1; }
.stream-hint { font-size: 0.8rem; margin-top: 0.3rem; }

/* Coup d'envoi imminent (moins d'une heure) */
time.is-soon, .fx-time .is-soon { color: var(--c-alert); font-weight: 700; }
.kickoff-chip {
  margin-left: 0.5rem;
  background: var(--c-live);
  color: #fff;
  border: none;
  font-weight: 700;
}

/* ---------- Cartes "À la une" (home) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.6rem 0.6rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--c-text);
}
.featured-card:hover { border-color: var(--c-primary); color: var(--c-text); }
.fc-comp {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fc-teams { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; }
.fc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-team img { object-fit: contain; }
.fc-vs { flex: none; font-size: 0.85rem; font-weight: 700; color: var(--c-primary-deep); }
.fc-channel { min-height: 20px; display: flex; align-items: center; }
.fc-channel img { background: #fff; padding: 1px 3px; border-radius: 4px; border: 1px solid var(--c-border); }
.fc-ask { color: var(--c-muted); font-size: 0.75rem; }
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; gap: 0.45rem; }
  .featured-card { flex-direction: row; justify-content: space-between; padding: 0.5rem 0.7rem; }
  .fc-comp { display: none; }
  .fc-teams { justify-content: flex-start; }
  .fc-team { flex-direction: row; font-size: 0.85rem; }
  .fc-team img { width: 20px; height: 20px; }
}

/* ---------- Hub chaînes */
.channels-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.channels-grid .channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 600;
}
.channels-grid .channel-chip:hover { border-color: var(--c-primary); }
.chip-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-primary-deep);
  background: var(--c-hover);
  border-radius: 999px;
  padding: 0 0.4rem;
}

/* Liens réservés au burger mobile (le menu desktop tient au pixel près) */
@media (min-width: 901px) { .nav-burger-only { display: none; } }

/* ---------- Lisibilité en direct (retours Cyril 08/08 00h50) */
/* Badge live compact dans la colonne heure : petit, jamais au detriment des noms */
.fx-time .badge-live { font-size: 0.66rem; padding: 2px 5px; white-space: nowrap; letter-spacing: 0; }
/* Noms des clubs : pas de largeur minimale sur desktop (le tiret colle au nom,
   "Leeds - RB Leipzig" sans trou) ; les blocs mobile reposent leur propre minimum */
.fixture-list li { font-size: 0.86rem; }
.fx-teams span { flex: 0 1 auto; min-width: 0; }
/* Chaîne sans logo : texte contenu dans sa colonne, aucune deformation */
.fx-ch { overflow: hidden; }
.fx-ch .bc-name { font-size: 0.7rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cartes A la une sur mobile : rangée compacte façon listing, pas de pavés */
@media (max-width: 560px) {
  .featured-grid { gap: 0.35rem; }
  .featured-card { flex-direction: row; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; }
  .fc-teams { flex: 1; min-width: 0; justify-content: flex-start; gap: 0.35rem; }
  .fc-vs { order: -1; min-width: 2.7rem; font-size: 0.8rem; text-align: left; }
  .fc-team { flex-direction: row; gap: 0.3rem; font-size: 0.82rem; min-width: 2.6rem; }
  .fc-team img { width: 18px; height: 18px; }
  .fc-channel img { height: 14px; }
}

/* ---------- Densité mobile des listes (retours Cyril 08/08 matin) */
.fx-prop-ico { display: none; }
@media (max-width: 560px) {
  /* Heure discrète, espacements serrés, 5+ caractères par club */
  .fx-time { min-width: 2.85rem; }
  .fx-time time { font-size: 0.7rem; }
  .fixture-list li { gap: 0.3rem; padding: 0.38rem 0.45rem; font-size: 0.84rem; }
  .fx-teams { gap: 0.26rem; }
  .fx-teams span { min-width: 2.9rem; font-size: 0.74rem; }
  .fx-teams .fx-logo { width: 14px; height: 14px; min-width: 14px; }
  /* Votes compacts */
  .vote-mini { gap: 0; }
  .vote-mini .vote { font-size: 0.68rem; padding: 0 2px; }
  .vote-mini .vote b { font-size: 0.66rem; }
  /* Proposer = icône ronde */
  .fx-prop-txt { display: none; }
  .fx-prop-ico { display: inline; }
  .fx-prop { width: 1.4rem; height: 1.4rem; padding: 0; border-radius: 50%; font-size: 0.85rem; justify-content: center; }
  /* Sélecteur de fuseau in-page : libellé court, largeur bornée */
  .tz-native { max-width: 9.5rem; font-size: 0.8rem; }
}

/* ---------- Mobile : grille de colonnes FIXE comme desktop (retours Cyril 08/08)
   Les slots vides restent rendus (plus aucun decalage), largeurs compactes. */
@media (max-width: 560px) {
  /* re-affiche les slots caches par les regles precedentes (la cascade fait foi) */
  .vote-ghost { display: inline-block; width: 3.5rem; flex: none; }
  .fx-prop.is-ghost { display: inline-flex; visibility: hidden; }
  .fx-others, .fx-others:empty { display: block; width: 1.5rem; flex: none; text-align: center; }
  .fx-ch, .fx-ch:empty { display: inline-flex; width: 3.1rem; flex: none; justify-content: flex-end; overflow: hidden; }
  .fx-ch .badge-channel img { max-width: 28px; }
  .vote-mini { flex: none; gap: 0; }
  .vote-mini .vote-up, .vote-mini .vote-down { width: 1.75rem; justify-content: center; display: inline-flex; padding: 0; }
  .fx-prop { width: 1.4rem; flex: none; }
  .fx-right { gap: 0.2rem; max-width: none; }
  /* Plus d'espace fantome apres une equipe courte : la boite ne depasse jamais son texte */
  .fx-teams span { flex: 1 1 auto; min-width: 2.9rem; max-width: max-content; }
  .badge-more { min-width: 14px; height: 14px; font-size: 9px; padding: 0 3px; }
}
@media (max-width: 560px) {
  /* l'icone est compacte : Proposer visible sur toutes les lignes, colonne uniforme */
  .fx-prop.fx-prop-secondary { display: inline-flex; }
}

/* ---------- Correctifs mobile (retours Cyril 08/08 08h50) */
@media (max-width: 560px) {
  /* Le nom tronque colle au tiret : pas de flex-grow, la place libre va entre equipes et colonnes */
  .fx-teams { flex: 0 1 auto; min-width: 0; }
  .fx-teams span { flex: 0 1 auto; min-width: 2.9rem; max-width: none; }
  /* Icone proposer explicite */
  .fx-prop { width: 2.1rem; border-radius: 999px; font-size: 0.72rem; }
  /* Logo jamais rogne a gauche : chip et bulle compacts qui tiennent dans la colonne */
  .fx-ch .badge-channel { gap: 2px; }
  .fx-ch .badge-channel img { max-width: 26px; padding: 1px 2px; }
  .fx-ch .sub-num { width: 13px; height: 13px; font-size: 8.5px; line-height: 13px; }
}

/* Aperçu de demain sur la home */
.see-all { margin: 0.4rem 0 0; text-align: right; font-size: 0.85rem; }
.see-all a { font-weight: 600; text-decoration: none; }

/* Agenda des prochains jours (home) */
.ud-list { list-style: none; margin: 0; padding: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ud-list li { border-bottom: 1px solid var(--c-border); }
.ud-list li:last-child { border-bottom: none; }
.ud-list a { display: block; padding: 0.45rem 0.7rem; text-decoration: none; color: var(--c-text); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-list a:hover { background: var(--c-hover); }
.ud-list b { text-transform: capitalize; font-weight: 700; }

/* ---------- Clubs abreges sur mobile : les deux noms toujours visibles */
.t-abbr { display: none; }
@media (max-width: 560px) {
  .t-full { display: none; }
  .t-abbr { display: inline; }
  .fx-teams span { min-width: 0; }
  /* Heure collee a gauche, colonne fine */
  .fixture-list li { padding-left: 0.35rem; }
  .fx-time { min-width: 2.2rem; text-align: left; }
  /* Pouces rapproches, compteurs discrets */
  .vote-mini .vote-up, .vote-mini .vote-down { width: 1.55rem; }
  .vote-mini .vote { font-size: 0.66rem; }
  .vote-mini .vote b { font-size: 0.62rem; }
  .vote-ghost { width: 3.1rem; }
}

/* Jamais de "..." CSS sur mobile : la forme abregee garantit deja la place */
@media (max-width: 560px) {
  .fx-teams span { overflow: visible; text-overflow: clip; }
}

/* Cartes A la une : abreviations serveur sur mobile, jamais d'ellipsis */
@media (max-width: 560px) {
  .fc-team { overflow: visible; text-overflow: clip; }
}

/* Coupe a 7 caracteres rendue possible : colonnes de droite encore resserrees */
@media (max-width: 560px) {
  .fx-right { gap: 0.15rem; }
  .fx-prop { width: 1.8rem; padding: 0.1rem 0; border-radius: 999px; }
  .fx-others, .fx-others:empty { width: 1.1rem; }
  .badge-more { padding: 0 2px; min-width: 13px; }
}

/* Tres petits ecrans (Galaxy S8+ 360px) : les noms abreges ne sont JAMAIS coupes en plein mot
   (en dernier dans le fichier : doit gagner sur les blocs mobile precedents) */
/* Logo chaine (beIN...) jamais rogne a gauche dans sa colonne mobile */
@media (max-width: 560px) {
  /* Colonne heure UNIFORME (assez large pour "53&apos; 0-1") : plus aucun decalage en live */
  .fx-time { min-width: 3rem; }
  .fx-time .badge-live { font-size: 0.6rem; padding: 2px 3px; }
  .badge-live .lv-score { font-size: 0.92em; font-weight: 700; margin-left: 3px; }
  /* le logo chaine ne doit NI etre ecrase par le flex (6px !) NI deborder : largeur naturelle, puce allegee */
  .fx-ch .badge-channel img { height: 13px; width: auto; flex-shrink: 0; padding: 1px 2px; border-width: 0; }
  /* + chaine : icone nue, sans rond (demande Cyril) */
  .fx-prop { border: none; background: transparent; }
}

/* Dépliant par ligne de match (chevron) : chaînes, votes, liens officiels */
.fx-toggle {
  flex: none;
  min-width: 1.6rem;
  height: 1.6rem;
  margin-left: 0.35rem; /* respire par rapport aux bulles a numero (retour Cyril) */
  border: 1px solid var(--c-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--c-primary-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 0.32rem;
}
.fx-toggle:hover { background: var(--c-hover); }
.fx-toggle .chev {
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.15s;
}
li.fx-open .fx-toggle .chev { transform: rotate(-135deg) translate(-1px, -1px); }
.fx-toggle .fx-count { font-size: 0.64rem; font-weight: 700; color: var(--c-primary-deep); }
.fx-toggle.is-ghost { visibility: hidden; border: none; }
.fixture-list li.fx-open { background: var(--c-hover); }
/* Panneau = UNE grille partagée : les colonnes pouces / S'abonner s'alignent entre toutes
   les lignes (display:contents sur .fxp-row), jamais de débord (retour Cyril) */
.fixture-list li.fx-panel {
  display: grid;
  /* chip en auto : les pouces restent COLLÉS au logo, S'abonner part à droite (retour Cyril) */
  grid-template-columns: minmax(0, auto) auto minmax(0, 1fr);
  column-gap: 0.6rem;
  row-gap: 0.3rem;
  align-items: center;
  background: var(--c-hover);
  padding: 0.4rem 0.75rem 0.55rem 3.4rem;
  box-shadow: inset 3px 0 0 var(--c-primary);
}
.fixture-list li.fx-panel[hidden] { display: none; }
/* Les lignes fondent leurs cellules dans la grille du panneau : colonnes communes */
.fxp-row { display: contents; }
.fxp-row .channel-chip { text-decoration: none; font-size: 0.76rem; padding: 0.1rem 0.45rem; min-width: 0; max-width: 100%; justify-self: start; }
.fxp-row .channel-chip img { height: 14px; }
.fxp-row .channel-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxp-votes { display: inline-flex; justify-content: flex-start; justify-self: start; }
.fxp-sub { display: inline-flex; justify-content: flex-end; justify-self: end; }
.fxp-actions { padding-top: 0.3rem; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.fxp-more { font-size: 0.82rem; font-weight: 600; color: var(--c-primary-deep); text-decoration: none; }
.fxp-more:hover { text-decoration: underline; }
/* fiche match : bouton pleine largeur en tete de panneau ; S'abonner vert en colonne (retours Cyril) */
/* Carte teaser vers la fiche match : logos, titre + benefices empiles, fleche pastille */
.fxp-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  background: var(--c-surface);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-primary) 12%, var(--c-surface)), var(--c-surface) 55%);
  border: 1px solid var(--c-primary);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.2rem;
  box-sizing: border-box;
  transition: box-shadow 0.15s, transform 0.15s;
}
.fxp-top:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }
.fxp-top-logos { display: flex; align-items: center; flex: none; }
.fxp-top-logos img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  padding: 2px;
}
.fxp-top-logos img + img { margin-left: -7px; }
.fxp-top-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.fxp-top-main { font-weight: 800; font-size: 0.85rem; color: var(--c-primary-deep); }
.fxp-top-sub { font-size: 0.7rem; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* le libelle court tient sur une ligne, jamais deux */
.fx-panel .propose-open { white-space: nowrap; }
.fxp-top-arrow {
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  transition: transform 0.15s;
}
.fxp-top:hover .fxp-top-arrow { transform: translateX(4px); }
/* Proposer : contraint a la colonne des chaines, jamais sous les pouces (retour Cyril) */
.fxp-actions { grid-column: 1; justify-self: start; min-width: 0; max-width: 100%; display: flex; justify-content: flex-start; padding-top: 0.15rem; }
.fx-panel .propose-open { font-size: 0.76rem; padding: 0.1rem 0.6rem; border-radius: 999px; line-height: 1.5; }
.fx-panel .aff-btn { background: var(--c-ok, #2e9e5b); font-size: 0.72rem; padding: 0.2rem 0.62rem; }
.fx-panel .aff-btn:hover { filter: brightness(1.12); background: var(--c-ok, #2e9e5b); }
@media (max-width: 560px) {
  .fixture-list li.fx-panel { padding-left: 0.75rem; }
  .fxp-row { gap: 0.45rem; }
}

/* Vedette page équipe : le hero réutilise .match-hero, marge sous la section */
.next-match { margin-bottom: 1.25rem; }

/* Back to top flottant : invisible tant que la page n'est pas scrollée */
.back-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.back-top.is-visible { opacity: 0.92; pointer-events: auto; }
.back-top:hover { opacity: 1; background: var(--c-primary-deep); }

/* Plan du site : listes compactes multi-colonnes */
.sitemap-page section { margin-bottom: 1.1rem; }
.sitemap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.sitemap-list li { min-width: 0; }
.sitemap-list a { font-size: 0.85rem; color: var(--c-primary-deep); text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }

/* Resume en prose des fiches match (format GEO) */
.match-summary { margin: 0.9rem 0 1.1rem; padding-left: 0.75rem; border-left: 3px solid var(--c-primary); line-height: 1.55; font-size: 0.95rem; max-width: 62rem; }

/* Page de resultats de recherche (cible du SearchAction) */
.search-page-form { margin: 0.6rem 0 1.1rem; }
.search-input-page, .search-input-page:focus { width: 100%; max-width: 26rem; padding: 0.5rem 0.75rem; font-size: 1rem; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border); }
.search-input-page::placeholder { color: var(--c-muted); }

@media (max-width: 400px) {
  .fx-teams span { font-size: 0.66rem; min-width: 0; }
  .fx-time { min-width: 2.85rem; }
  .fixture-list li { padding: 0.42rem 0.5rem; gap: 0.18rem; }
  .fx-others { width: 0.8rem; }
  .fx-prop { width: 1.05rem; height: 1.25rem; }
  .fx-ch .badge-channel img { height: 11px; }
  .fx-teams { gap: 0.24rem; }
  .fx-teams .fx-logo { width: 12px; height: 12px; min-width: 12px; }
  .fx-ch, .fx-ch:empty { width: 2.8rem; }
  .fx-others { width: 0.95rem; }
  .fx-right { gap: 0.1rem; }
  .vote-box.vote-mini .vote { font-size: 0.6rem; padding: 1px 1px; }
}
