/* ============================================================
   AG PRONO LEAGUE '26 — charte officielle Coupe du Monde 26
   (façon FIFA/Auvio : noir profond, bleu électrique en blocs,
   lime fluo en signature, jaune pour les liens & points)
   ============================================================ */

:root {
  --bg: #f4f5fa;             /* clair lumineux */
  --bg-soft: #eceef6;
  --card: #ffffff;
  --card-2: #f7f8fc;
  --border: #e2e5ef;
  --txt: #14182b;
  --muted: #6a7287;
  --blue: #2f43e6;           /* le bleu électrique des blocs "26" */
  --blue-bright: #4257ff;
  --blue-soft: rgba(66, 87, 255, .12);
  --volt: #c6f53f;           /* lime fluo signature (aplats, coins) */
  --volt-text: #76a30c;      /* version lisible du lime pour le texte sur fond clair */
  --volt-soft: rgba(198, 245, 63, .22);
  --gold: #ffd21e;           /* jaune (aplats / sur fond bleu) */
  --gold-text: #c08c00;      /* version lisible du jaune pour le texte sur fond clair */
  --gold-soft: rgba(255, 210, 30, .18);
  --red: #f02d40;            /* live / erreurs */
  --red-soft: rgba(240, 45, 64, .1);
  --grad26: linear-gradient(135deg, var(--blue), var(--blue-bright));
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 24, 43, .07);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection { background: var(--volt); color: #0e0e11; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c9cedd; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b3b9cc; }

.bg-fx { position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #e9ecfb 0%, var(--bg) 340px); }
.bg-fx span { display: none; }

/* ---------- Barre du haut ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 22px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--txt); }
.logo { width: 42px; height: 42px; }
.logo-sm { width: 30px; height: 30px; opacity: .9; }
.logo-xl { width: 96px; height: 96px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--font-head); font-size: 17px; letter-spacing: .5px; }
.brand-txt i { font-style: normal; font-size: 10.5px; letter-spacing: 2.5px; color: var(--blue-bright); font-weight: 700; }

.mainnav { display: flex; gap: 4px; flex-wrap: wrap; margin-inline: auto; }
.mainnav a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: .2s;
}
.mainnav a:hover { color: var(--txt); background: var(--bg-soft); }
.mainnav a.on { color: #fff; background: var(--grad26); font-weight: 700; box-shadow: 0 4px 18px rgba(66, 87, 255, .4); }
.ni { display: inline-flex; }
.ni .ico { display: block; }
.ico { vertical-align: -3px; }
.logout { display: inline-flex; align-items: center; }

/* Drapeaux — images flagcdn (rendu identique sur tous les appareils) */
img.flag {
  display: inline-block; height: 1.3em; width: auto; vertical-align: -0.18em;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); object-fit: cover;
}
.flag-ph { font-style: normal; } /* repli emoji quand pas de code pays (placeholder KO) */

/* pastille d'icône des titres de page */
.ti {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad26); color: #fff;
  margin-right: 11px; vertical-align: -8px;
}
.card h2 .ico { color: var(--blue-bright); margin-right: 4px; }

.userbox { display: flex; align-items: center; gap: 9px; }
.uname { font-weight: 700; font-size: 14.5px; }
.logout { color: var(--muted); text-decoration: none; font-size: 19px; padding: 6px; }
.logout:hover { color: var(--red); }

/* ---------- Layout ---------- */
.wrap { max-width: 1140px; margin: 26px auto 60px; padding: 0 18px; }
.foot { text-align: center; padding: 30px 16px 40px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; border-top: 1px solid var(--border); font-size: 14px; }

.page-title { font-family: var(--font-head); font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; letter-spacing: -.5px; font-weight: 700; }
.page-title small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { font-family: var(--font-head); font-size: 17px; margin-bottom: 14px; letter-spacing: -.2px; }
.card h2 small { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 13.5px; }

.two-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

.empty { color: var(--muted); padding: 10px 0; }
.hint { color: var(--muted); font-size: 13.5px; }
.hint a {
  color: var(--blue-bright); font-weight: 700; text-decoration: none;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.slide-sub a {
  color: var(--gold); font-weight: 700; text-decoration: none;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.hint a::after, .slide-sub a::after { content: ' ›'; }
.alert { background: var(--red-soft); border: 1px solid rgba(255, 68, 86, .5); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; }
.welcome-banner {
  background: var(--blue-soft);
  border: 1px solid rgba(66, 87, 255, .45);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rules-line { color: var(--muted); margin: 10px 0 18px; font-size: 14px; }
.rules-line b { color: var(--txt); }

/* ---------- Le concept ---------- */
.concept {
  display: flex; align-items: center; gap: 16px;
  background: var(--grad26);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.concept::before {
  content: '26'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: 130px; line-height: 1;
  color: rgba(255, 255, 255, .1); pointer-events: none;
}
.concept::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 54px; height: 54px;
  background: var(--volt); border-radius: 0 100% 0 0;
}
.concept b { color: var(--volt); }
.concept .cp-ico { flex: 0 0 auto; font-size: 30px; position: relative; z-index: 1; }
.concept p { font-size: 14.5px; line-height: 1.6; position: relative; z-index: 1; }
.concept small { color: rgba(255, 255, 255, .75); }
.concept small b { color: var(--gold); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: #0e0e11; background: var(--volt);
  border: none; border-radius: 999px; padding: 11px 22px;
  cursor: pointer; text-decoration: none;
  transition: .2s;
}
.btn:hover { background: #d6ff57; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(198, 245, 63, .3); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-big { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--volt); border-color: var(--volt); background: transparent; box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; }

/* ---------- Hero : le grand bloc bleu "26" ---------- */
.slider { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px;
  background: var(--grad26);
  box-shadow: var(--shadow);
  color: #fff;
}
/* le giga "26" du branding officiel */
.slider::before {
  content: '26'; position: absolute; right: -20px; bottom: -60px;
  font-family: var(--font-head); font-weight: 700; font-size: 300px; line-height: 1;
  color: rgba(255, 255, 255, .08); pointer-events: none;
}
/* le coin lime signature */
.slider::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 86px; height: 86px;
  background: var(--volt); border-radius: 0 100% 0 0; pointer-events: none;
}
.slider .slide-kicker { color: var(--volt); }
.slider .slide-title, .slider .slide-sub { color: #fff; }
.slider .slide-sub { opacity: .85; }
.slider .vs { background: rgba(255, 255, 255, .16); border: none; color: #fff; }
.slider .mini-match { background: rgba(10, 12, 30, .55); border: 1px solid rgba(255, 255, 255, .14); color: #fff; width: min(620px, 100%); margin-inline: auto; backdrop-filter: blur(6px); }
.slider .mm-time { color: var(--gold); }
.slider .countdown span { background: rgba(10, 12, 30, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.slider .countdown b { color: var(--volt); }
.slider .countdown i { color: rgba(255, 255, 255, .6); }
.slider .empty, .slider .slide-title small { color: rgba(255, 255, 255, .8); }
.slider .btn { background: var(--volt); color: #0e0e11; }

.slides { position: relative; display: grid; min-height: 264px; z-index: 1; }
.slide {
  grid-area: 1/1; padding: 36px 38px 46px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 13px;
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.slide.on { opacity: 1; transform: translateX(0); pointer-events: auto; }
.slide-kicker { font-family: var(--font-head); font-size: 12px; letter-spacing: 3.5px; font-weight: 700; }
.slide-title { font-family: var(--font-head); font-size: clamp(19px, 3vw, 28px); line-height: 1.35; letter-spacing: -.3px; font-weight: 700; }
.vs { display: inline-block; margin: 0 12px; padding: 3px 11px; font-size: .55em; vertical-align: middle; border-radius: 999px; letter-spacing: 2px; }
.slide-sub { font-size: 15px; }

.countdown { display: flex; gap: 12px; justify-content: center; }
.countdown span { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 10px 8px; border-radius: var(--radius); }
.countdown b { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.countdown i { font-style: normal; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

.slider-dots { position: absolute; bottom: 13px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 22px; height: 5px; border-radius: 4px; border: none; background: rgba(255, 255, 255, .3); cursor: pointer; transition: .3s; }
.slider-dots button.on { background: var(--volt); width: 36px; }

/* ---------- Pronos express (accueil) ---------- */
.quick-prono {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px 10px; margin-bottom: 12px; position: relative; overflow: hidden;
  transition: border-color .25s;
}
.quick-prono::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--volt); }
.quick-prono:hover { border-color: rgba(198, 245, 63, .45); }
.qp-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.qp-team { font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.qp-team i { font-style: normal; font-size: 26px; }
.qp-team.home { justify-content: flex-end; text-align: right; }
.qp-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- Podium ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.podium-page { margin: 10px 0 26px; }
.podium-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 20px 14px; border-radius: var(--radius) var(--radius) 6px 6px; min-width: 126px;
  background: var(--card); border: 1px solid var(--border);
  animation: rise .6s ease backwards;
}
.podium-step.p1 { padding-bottom: 42px; border-color: rgba(255, 210, 30, .55); background: linear-gradient(180deg, rgba(255, 210, 30, .12), var(--card)); animation-delay: .1s; }
.podium-step.p2 { padding-bottom: 25px; animation-delay: .2s; }
.podium-step.p3 { padding-bottom: 14px; animation-delay: .3s; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } }
.pd-medal { font-size: 21px; }
.pd-name { font-weight: 700; }
.pd-pts { font-family: var(--font-head); font-size: 14px; color: var(--gold-text); font-weight: 700; }

/* ---------- Cartes stats ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; margin-bottom: 0; padding: 18px 12px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: 0; top: 0; width: 34px; height: 34px; background: var(--blue); border-radius: 0 0 0 100%; opacity: .55; }
.st-num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--blue-bright); }
.st-lbl { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.stat.warn .st-num { color: var(--gold-text); }
.stat.warn::after { background: var(--gold); }

/* ---------- Mini matchs ---------- */
.mini-match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius); margin-bottom: 10px; position: relative;
  background: var(--card-2); border: 1px solid var(--border);
}
.mini-match.big { padding: 16px; font-size: 18px; }
.mini-match .mm-team { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.mini-match .mm-team.home { justify-content: flex-end; text-align: right; }
.mini-match .mm-team b { font-size: 1.3em; }
.mm-score { font-family: var(--font-head); font-size: 19px; font-weight: 700; display: flex; gap: 7px; align-items: center; justify-content: center; min-width: 88px; }
.mm-score i { color: var(--muted); font-style: normal; }
.mm-time { font-family: var(--font-head); font-size: 13px; color: var(--gold-text); font-weight: 700; }
.mini-match .ft, .mini-match .live-dot { position: absolute; top: -9px; right: 10px; }
.mini-match.is-live { border-color: rgba(255, 68, 86, .55); }

.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: 1.5px; font-weight: 700;
  background: var(--red); color: #fff; padding: 3px 11px; border-radius: 999px;
  animation: pulse 2s ease-in-out infinite;
}
.live-dot .clock { font-style: normal; opacity: .9; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.ft { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 11px; border-radius: 999px; color: var(--muted); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 10px; text-align: left; border-bottom: 1px solid #222329; }
.table th { font-family: var(--font-body); font-size: 11.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.table tr.me { background: #eef2ff; }
.table tr.me .pl::after { content: 'toi'; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-bright); border: 1px solid rgba(66, 87, 255, .4); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
.table .rk { font-family: var(--font-head); color: var(--muted); width: 46px; font-weight: 700; }
.table .pts { font-family: var(--font-head); color: var(--gold-text); text-align: right; white-space: nowrap; font-weight: 700; }
/* colonnes chiffrées du classement bien centrées */
.board th:nth-child(n+3):nth-child(-n+6), .board td:nth-child(n+3):nth-child(-n+6) { text-align: center; }
.board .tot { text-align: right; font-size: 17px; }
.board tr.top1 td { background: transparent; }

/* légende du classement */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 2px 20px; color: var(--muted); font-size: 13.5px; }
.legend b { color: var(--txt); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-title { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-bright); }
.lg-sep { width: 1px; height: 16px; background: var(--border); }
.board .pl { font-weight: 700; }
.badge-admin { font-size: 11px; letter-spacing: 1px; background: var(--blue-soft); border: 1px solid rgba(66, 87, 255, .5); color: #aab6ff; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.form .f { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; margin-right: 3px; border-radius: 7px; font-style: normal; font-size: 12px; font-weight: 700; }
.f.exact { background: var(--gold-soft); color: var(--gold-text); }
.f.good { background: var(--volt-soft); color: var(--volt-text); }
.f.bad { background: var(--red-soft); color: var(--red); }
.f.none { color: var(--muted); }

/* ---------- Filtres ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.chip {
  padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--muted); background: var(--card); border: 1px solid var(--border); transition: .2s;
}
.chip:hover { color: var(--txt); border-color: var(--blue-bright); }
.chip.on { color: #fff; background: var(--grad26); border-color: transparent; font-weight: 700; }
.grp-select { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); font-size: 14px; margin-left: auto; }

/* ---------- Cartes de match ---------- */
.day-head {
  font-family: var(--font-head); font-size: 15px; letter-spacing: .3px; margin: 26px 0 12px;
  color: var(--txt); font-weight: 700;
  position: sticky; top: 64px; z-index: 5;
  background: rgba(244, 245, 250, .92); backdrop-filter: blur(10px);
  padding: 8px 0; border-radius: 8px;
}
.day-head::before { content: ''; display: inline-block; width: 9px; height: 9px; background: var(--volt); border: 1px solid #a9d52c; border-radius: 3px; margin-right: 9px; }
.match-list { display: grid; gap: 12px; }
.match-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; transition: border-color .25s; position: relative; overflow: hidden;
}
.match-card:hover { border-color: #34353f; }
.match-card.is-live { border-color: rgba(255, 68, 86, .55); }
/* coin lime signature sur les matchs de NOS équipes */
.match-card.is-focus::before {
  content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  background: var(--volt); border-radius: 0 0 100% 0;
}
.match-card.is-focus { border-color: rgba(198, 245, 63, .35); }
.mc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.match-card.is-focus .mc-head { padding-left: 34px; }
.mc-stage { font-family: var(--font-body); font-size: 11px; letter-spacing: .8px; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); font-weight: 700; text-transform: uppercase; }
.mc-stage.ko { color: #fff; background: var(--grad26); border-color: transparent; }
.mc-time { font-family: var(--font-head); font-size: 13px; color: var(--gold-text); margin-left: auto; font-weight: 700; }
.mc-head .live-dot, .mc-head .ft { margin-left: auto; }

.mc-body { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; gap: 14px; }
.mc-team { display: flex; align-items: center; justify-content: flex-start; gap: 10px; font-size: 17.5px; min-width: 0; }
.mc-team b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mc-team.home { justify-content: flex-end; text-align: right; }
.mc-team .fl { flex: 0 0 auto; height: 26px; }
.mc-team.away { text-align: left; }
.mc-center { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; }
.mc-vs { font-family: var(--font-head); font-size: 12px; letter-spacing: 2px; color: var(--muted); padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-weight: 700; }
.mc-score { font-family: var(--font-head); font-size: 26px; display: flex; gap: 9px; font-weight: 700; }
.mc-score i { color: var(--muted); font-style: normal; }
.tab-note { color: var(--muted); font-size: 12.5px; }

.mc-prono { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.prono-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
/* version alignée : un stepper sous chaque équipe, colonne centrale fixe → aligné d'une carte à l'autre */
.prono-form.pf-aligned { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; gap: 14px; }
.pf-aligned .st-home { justify-self: end; }
.pf-aligned .st-away { justify-self: start; }
.pf-mid { display: flex; align-items: center; justify-content: center; width: 104px; }
.pf-mid .pf-state { font-size: 15px; }
.pf-lbl { font-weight: 700; font-size: 14px; }
.pf-dash { color: var(--muted); }
.pf-state { font-size: 13px; color: var(--muted); }
.pf-locked, .pf-wait { color: var(--muted); font-size: 14px; }
.pf-locked b { color: var(--txt); }
.pf-when { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
.lock-in { display: block; text-align: center; margin-top: 9px; font-size: 12.5px; color: var(--muted); }
.lock-in b { color: var(--gold-text); font-family: var(--font-head); font-size: 12px; font-weight: 700; }

/* « Voir les pronos » — révélation des pronos de la ligue (match verrouillé) */
.match-card.is-revealable { cursor: pointer; }
.match-card.is-revealable:hover { border-color: var(--blue-bright); }
.reveal-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(66, 87, 255, .25);
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
}
.reveal-btn:hover { background: var(--blue); color: #fff; }
.reveal-btn .ico { width: 15px; height: 15px; }

/* Modal des pronos de la ligue */
.pronos-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(20, 24, 43, .55); backdrop-filter: blur(3px);
  animation: pmFade .18s ease;
}
@keyframes pmFade { from { opacity: 0; } }
.pronos-modal {
  position: relative; width: 100%; max-width: 460px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 24, 43, .3); padding: 22px 20px 18px;
  animation: pmPop .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pmPop { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.pm-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; cursor: pointer;
  background: var(--bg-soft); color: var(--muted); border-radius: 50%; font-size: 22px; line-height: 1;
}
.pm-close:hover { background: var(--red-soft); color: var(--red); }
.pm-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; padding-right: 26px;
}
.pm-head .pm-team:last-child { text-align: right; }
.pm-mid { font-size: 18px; color: var(--blue); white-space: nowrap; }
.pm-sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 6px 0 14px; }
.pm-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--border);
}
.pm-row.me { border-color: rgba(66, 87, 255, .45); background: var(--blue-soft); }
.pm-row.nobet { opacity: .6; }
.pm-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pm-who b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-av { font-size: 18px; }
.pm-res { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pm-score { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.pm-none { color: var(--muted); font-size: 12.5px; font-style: italic; }
.pronos-modal .pts-chip { margin-left: 0; }

/* steppers */
.stepper { display: flex; align-items: center; border-radius: 999px; overflow: hidden; background: var(--bg-soft); border: 1.5px solid var(--border); }
.stepper:focus-within { border-color: var(--volt); }
.stepper button {
  width: 36px; height: 40px; border: none; background: transparent; color: var(--blue-bright);
  font-size: 20px; font-weight: 700; cursor: pointer; transition: .15s;
}
.stepper button:hover { background: var(--volt); color: #14182b; }
.stepper input {
  width: 42px; height: 40px; padding: 0; border: none; background: transparent; color: var(--txt);
  font-family: var(--font-head); font-size: 19px; font-weight: 700; text-align: center; outline: none;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pts-chip { font-family: var(--font-head); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; margin-left: 8px; }
.pts-chip.exact { background: var(--gold-soft); color: var(--gold-text); border: 1px solid rgba(192, 140, 0, .45); }
.pts-chip.good { background: var(--volt-soft); color: var(--volt-text); border: 1px solid rgba(118, 163, 12, .4); }
.pts-chip.zero { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255, 68, 86, .4); }

/* ---------- Groupes ---------- */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.group-card { position: relative; overflow: hidden; }
.group-card.is-focus { border-color: rgba(198, 245, 63, .4); }
.group-card.is-focus::after { content: ''; position: absolute; right: 0; top: 0; width: 38px; height: 38px; background: var(--volt); border-radius: 0 0 0 100%; }
/* tableaux des groupes : colonnes fixes, rien ne se replie, tout est centré */
.gt th, .gt td { white-space: nowrap; }
.gt td:nth-child(2) { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.gt th:nth-child(n+3), .gt td:nth-child(n+3) { text-align: center; width: 44px; }
.gt .pts { text-align: center; }
.gt .qualif td { background: rgba(66, 87, 255, .1); }
.gt .qualif .rk { color: var(--blue-bright); }
.gt .maybe td { background: var(--gold-soft); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; }
.dot.q { background: var(--blue-bright); }
.dot.m { background: var(--gold); }

/* ---------- Bonus ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.bonus-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.bonus-card::before {
  content: '26'; position: absolute; right: -6px; top: -28px;
  font-family: var(--font-head); font-weight: 700; font-size: 110px; line-height: 1;
  color: rgba(66, 87, 255, .14); pointer-events: none;
}
.bonus-card::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 40px; background: var(--volt); border-radius: 0 100% 0 0; opacity: .9; }
.bonus-card.locked::after { background: var(--border); }
.bq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: relative; z-index: 1; }
.bq-emoji { font-size: 38px; }
.bq-pts { font-family: var(--font-head); color: var(--gold-text); font-size: 14px; font-weight: 700; background: var(--gold-soft); border: 1px solid rgba(192, 140, 0, .4); padding: 5px 13px; border-radius: 999px; }
.bq-q { font-family: var(--font-head); font-size: 18px; line-height: 1.4; margin-bottom: 4px; font-weight: 700; position: relative; z-index: 1; }
.bq-deadline { color: var(--muted); font-size: 13px; margin-bottom: 12px; position: relative; z-index: 1; }
/* la zone de réponse est poussée en bas → alignée d'une carte à l'autre (desktop) */
.bonus-form { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; padding-bottom: 8px; margin-top: auto; }
.bonus-form select, .bonus-form input { width: 100%; }
.bonus-form .pf-state { padding-left: 2px; }
.bq-answer { margin-top: auto; }
.bq-answer { margin-bottom: 10px; padding: 9px 13px; background: var(--volt-soft); border: 1px solid rgba(198, 245, 63, .35); border-radius: var(--radius); position: relative; z-index: 1; }
.bq-reveal { position: relative; z-index: 1; padding-bottom: 8px; }
.bq-reveal summary { cursor: pointer; color: var(--blue-bright); font-weight: 700; margin-bottom: 8px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.bq-list { list-style: none; }
.bq-list li { padding: 6px 9px; border-radius: 8px; }
.bq-list li.me { background: var(--blue-soft); }

/* ---------- Formulaires ---------- */
input, select {
  font-family: var(--font-body); font-size: 15px; color: var(--txt);
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; outline: none; transition: .2s;
}
input:focus, select:focus { border-color: var(--blue-bright); }
select option { background: var(--card); color: var(--txt); }
input::placeholder { color: #5d626d; }

/* ---------- Auth ---------- */
.auth-hero {
  background: var(--grad26); color: #fff; text-align: center; margin: 28px 0;
  border-radius: 16px; padding: 44px 22px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-hero::before {
  content: '26'; position: absolute; right: -10px; bottom: -70px;
  font-family: var(--font-head); font-weight: 700; font-size: 280px; line-height: 1;
  color: rgba(255, 255, 255, .09);
}
.auth-hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 80px; height: 80px; background: var(--volt); border-radius: 0 100% 0 0; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero .logo-xl { filter: brightness(0) invert(1); opacity: .95; }
.neon { font-family: var(--font-head); font-size: clamp(24px, 5vw, 38px); letter-spacing: -.5px; margin-top: 12px; color: #fff; font-weight: 700; }
.auth-sub { color: rgba(255, 255, 255, .8); font-weight: 700; letter-spacing: 2px; font-size: 12.5px; text-transform: uppercase; margin-top: 4px; }
.auth-hero .tagline { color: rgba(255, 255, 255, .85); }
.auth-hero .tagline b { color: var(--volt); }
.tagline { color: var(--muted); margin-top: 12px; font-size: 16.5px; line-height: 1.6; }
.auth-card { max-width: 480px; margin: 0 auto; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { flex: 1; padding: 11px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--muted); background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; transition: .2s; }
.tab.on { color: #fff; background: var(--grad26); border-color: transparent; }
.authform { display: flex; flex-direction: column; gap: 14px; }
.authform label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.authform[hidden] { display: none; }
.authform label.remember-me { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.authform label.remember-me input { width: auto; }
.lbl { font-weight: 600; font-size: 14px; }

/* ---------- Admin ---------- */
.admin-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #222329; }
.admin-row .ar-lbl { flex: 1; min-width: 230px; font-weight: 600; font-size: 14.5px; }
.admin-row .ar-lbl small { display: block; color: var(--muted); font-weight: 400; }
.admin-row input[type=number] { width: 70px; }
code { background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 8px; border-radius: 8px; font-size: 13px; color: var(--blue-bright); }

/* ---------- Toast & confettis ---------- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--volt); color: #0e0e11;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 14.5px; z-index: 200;
  transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 10px 36px rgba(0, 0, 0, .5);
  max-width: 90vw; text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); color: #fff; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; }

/* ---------- Wow : entrées, micro-interactions, fun ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.card, .match-card, .quick-prono { animation: fadeUp .45s ease backwards; }
.match-list .match-card:nth-child(1) { animation-delay: .03s; }
.match-list .match-card:nth-child(2) { animation-delay: .08s; }
.match-list .match-card:nth-child(3) { animation-delay: .13s; }
.match-list .match-card:nth-child(4) { animation-delay: .18s; }
.quick-prono:nth-child(2) { animation-delay: .08s; }
.quick-prono:nth-child(3) { animation-delay: .13s; }
.bonus-grid .bonus-card:nth-child(2) { animation-delay: .08s; }
.bonus-grid .bonus-card:nth-child(3) { animation-delay: .13s; }

@keyframes pop { 40% { transform: scale(1.35); color: var(--blue-bright); } }
.stepper input.pop { animation: pop .3s ease; }

@keyframes bump { 30% { transform: scale(1.4); color: var(--red); } }
.sc-h.bump, .sc-a.bump { animation: bump .7s ease; display: inline-block; }

@keyframes wave { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.match-card:hover .fl, .quick-prono:hover .qp-team i { animation: wave .6s ease; display: inline-block; }

@keyframes floaty { 50% { transform: translateY(-6px); } }
.podium-step.p1::before { content: '👑'; font-size: 20px; margin-bottom: -6px; }

.teaser-ko {
  background: var(--grad26); border: none;
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.teaser-ko::before {
  content: '26'; position: absolute; right: -10px; bottom: -50px;
  font-family: var(--font-head); font-weight: 700; font-size: 200px; line-height: 1;
  color: rgba(255, 255, 255, .09); pointer-events: none;
}
.teaser-ko::after { content: ''; position: absolute; left: 0; bottom: 0; width: 52px; height: 52px; background: var(--volt); border-radius: 0 100% 0 0; }
.teaser-ko b { color: var(--volt); }
.teaser-ko p, .teaser-ko .tk-big { position: relative; z-index: 1; }
.teaser-ko .tk-big { font-size: 30px; display: block; margin-bottom: 6px; }

/* console admin */
.stat-cards.stats-3 { grid-template-columns: repeat(3, 1fr); }
.sync-hero p { font-size: 15px; line-height: 1.65; }
.sync-hero form { margin-top: 14px; display: flex; justify-content: center; position: relative; z-index: 1; }
.st-sub { font-style: normal; font-size: 15px; color: var(--muted); font-weight: 600; }
.pts-chip.wait { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.cron-tip { margin: 6px 4px 0; color: var(--muted); font-size: 13.5px; }
.cron-tip summary { cursor: pointer; }
.cron-tip p { margin: 8px 0 6px; }

.foot-chant { font-family: var(--font-head); font-weight: 700; color: var(--blue-bright); font-size: 15px; transition: opacity .4s; }
.foot-chant.fade { opacity: 0; }
.foot-jff { font-family: var(--font-head); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); opacity: .7; margin-top: 6px; }

/* ---------- Ligues / équipes ---------- */
.league-switch { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px 6px 3px 12px; }
.league-switch .ls-ico { font-size: 14px; }
.league-switch select { border: none; background: transparent; padding: 6px 8px; font-weight: 700; font-size: 13.5px; color: var(--txt); cursor: pointer; }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-head h2 { margin-bottom: 0; }
.league-create { display: flex; gap: 8px; flex-wrap: wrap; }
.league-create input { min-width: 200px; padding: 8px 12px; }
.league-create .btn { white-space: nowrap; }

.league-card { border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; background: var(--card-2); }
.league-card.active { border-color: rgba(66, 87, 255, .55); box-shadow: 0 0 0 1px rgba(66, 87, 255, .25); }
.lc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.lc-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; flex: 1; min-width: 160px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; }
.lc-name:hover { border-color: var(--border); }
.lc-name:focus { background: var(--bg-soft); border-color: var(--blue-bright); }
.lc-count { color: var(--muted); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.lc-badge { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; background: var(--blue-soft); color: var(--blue-bright); border: 1px solid rgba(66, 87, 255, .45); padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.lc-vis { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.lc-vis.on { background: var(--volt-soft); color: var(--volt-text); border-color: rgba(198, 245, 63, .5); }

.lc-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
.lc-link-lbl { font-size: 12.5px; font-weight: 700; color: var(--volt-text); display: inline-flex; align-items: center; gap: 5px; }
.lc-link-input { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--muted); background: transparent; border: none; padding: 4px 0; }

.lc-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.lc-prizes label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }

.lc-members { margin: 14px 0; padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.lc-members-lbl { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.member-name { flex: 1; font-weight: 600; }

.lc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--txt); border-color: #34353f; }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(240, 45, 64, .5); background: var(--red-soft); }
.btn .ico { margin-right: -2px; }
.badge-league { font-size: 11px; letter-spacing: .3px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); padding: 1px 9px; border-radius: 999px; margin-left: 6px; }

/* gains / gages d'une ligue (page classement) — version "enjeux" wow */
.enjeux { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; margin-bottom: 22px; }
.enjeu {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 18px; color: #fff;
  box-shadow: var(--shadow);
}
.enjeu-win { background: linear-gradient(135deg, #f5b301, #ff8a00); }
.enjeu-lose { background: linear-gradient(135deg, #4257ff, #7c8cff); }
.enjeu-medal { font-size: 42px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); flex: 0 0 auto; animation: floaty 2.6s ease-in-out infinite; }
.enjeu-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.enjeu-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.enjeu-prize { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.2; }
.enjeu-who { font-size: 13px; margin-top: 4px; opacity: .95; }
.enjeu-who b { font-weight: 700; }
.enjeu-vs { display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--muted); }
/* reflet animé qui balaie la carte du gagnant */
.enjeu-shine { position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* badge Diables sur les cartes de match */
.mc-bel { font-size: 11px; font-weight: 700; letter-spacing: .5px; background: var(--volt-soft); color: var(--volt-text); border: 1px solid rgba(198, 245, 63, .5); padding: 3px 10px; border-radius: 999px; }

/* note "tu rejoins l'équipe X" sur l'inscription */
.join-note { background: var(--volt-soft); border: 1px solid rgba(198, 245, 63, .5); color: var(--txt); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; text-align: center; }
.join-note b { color: var(--volt-text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lc-prizes { grid-template-columns: 1fr; }
  .enjeux { grid-template-columns: 1fr; }
  .enjeu-vs { padding: 2px 0; }
  .two-cols { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  /* menu mobile : barre d'onglets — icônes seules, réparties, sur une seule ligne */
  .topbar { padding: 10px 14px; gap: 10px; }
  .mainnav { order: 3; width: 100%; justify-content: space-between; gap: 2px; flex-wrap: nowrap;
    margin: 4px -4px 0; padding-top: 8px; border-top: 1px solid var(--border); }
  .mainnav a { flex: 1; justify-content: center; padding: 9px 4px; border-radius: 12px; }
  .mainnav a span:last-child { display: none; }
  .ni { font-size: 21px; }
  .league-switch { max-width: 46vw; }
  .league-switch select { max-width: 38vw; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .card { padding: 18px 16px; }
  /* cartes de match : flex robuste — noms d'équipe sur 2 lignes centrés, jamais coupés */
  .mc-body { display: flex; align-items: flex-start; gap: 6px; }
  .mc-team { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; font-size: 13px; text-align: center !important; }
  .mc-team b { display: block; width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.15; }
  .mc-team .fl { height: 24px; }
  .mc-center { flex: 0 0 54px; width: 54px; }
  /* les 2 steppers restent toujours sur une seule ligne ; l'état/aide passe dessous */
  .prono-form.pf-aligned { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
  .pf-aligned .stepper { flex: 0 0 auto; }
  .pf-aligned .st-home { order: 1; }
  .pf-aligned .st-away { order: 2; }
  .pf-aligned .pf-mid { order: 3; flex: 0 0 100%; width: auto; justify-content: center; text-align: center; font-size: 13px; line-height: 1.25; }
  .mc-score { font-size: 22px; }
  .mc-vs { padding: 5px 9px; font-size: 11px; }
  /* steppers compacts */
  .stepper button { width: 34px; height: 40px; font-size: 19px; }
  .stepper input { width: 34px; height: 40px; padding: 0; font-size: 18px; }
  .pf-aligned .st-home, .pf-aligned .st-away { justify-self: center; }
  .mc-head { font-size: 12px; gap: 8px; }
  .mc-bel { font-size: 9.5px; padding: 2px 7px; }
  .qp-match { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .qp-team.home { text-align: center; }
  .countdown { gap: 7px; }
  .countdown span { min-width: 54px; padding: 8px 6px; }
  .countdown b { font-size: 20px; }
  .slide { padding: 24px 16px 42px; }
  .slide-title { font-size: 18px; }
  .slider::before { font-size: 150px; }
  .uname { display: none; }
  .grp-select { margin-left: 0; }
  .page-title .ti { width: 32px; height: 32px; vertical-align: -7px; }
  .lc-prizes { grid-template-columns: 1fr; }
  .lc-actions .btn { flex: 1; justify-content: center; }
  .enjeu-prize { font-size: 17px; }

  /* classement : on masque les colonnes secondaires (Matchs, Bonus, Forme) pour tenir sur mobile */
  .board { table-layout: fixed; width: 100%; }
  .board th:nth-child(3), .board td:nth-child(3),
  .board th:nth-child(4), .board td:nth-child(4),
  .board th:nth-child(7), .board td:nth-child(7) { display: none; }
  .board th, .board td { padding: 9px 5px; }
  .board .rk { width: 34px; }
  .board th:nth-child(5), .board td:nth-child(5),
  .board th:nth-child(6), .board td:nth-child(6) { width: 34px; }
  .board .tot { width: 56px; font-size: 16px; }
  .board .pl { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* podium : 3 marches qui se partagent la largeur (plus de débordement) */
  .podium { gap: 8px; }
  .podium-step { min-width: 0; flex: 1 1 0; padding: 14px 8px 12px; }
  .podium-step.p1 { padding-bottom: 30px; }
  .pd-name { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pd-pts { font-size: 12px; }

  /* groupes : largeur fixe (table-layout: fixed) pour que le tableau tienne toujours dans l'écran.
     Rang + colonnes chiffrées en largeur fixe ; la colonne nom (seule en auto) prend le reste et
     les noms longs passent sur 2 lignes au lieu de pousser les scores hors écran. */
  .gt { table-layout: fixed; width: 100%; }
  .gt th, .gt td { padding: 9px 3px; }
  .gt th:first-child, .gt td.rk { width: 26px; }
  .gt th:nth-child(2), .gt td:nth-child(2) {
    width: auto; max-width: none; white-space: normal;
    overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2;
  }
  .gt th:nth-child(n+3), .gt td:nth-child(n+3) { width: 38px; }
}
