/* ============================================================
   PITCH VELOCITY — Kiosk design system
   Sombre · accent lime · cartes arrondies · tactile · portrait 1080×1920
   Optimisé Chrome 119 / RK3288 / 2 Go RAM : CSS pur, animations GPU légères.
   ============================================================ */

:root {
  --bg: #0b0f17;
  --bg-2: #0f1420;
  --surface: #151b28;
  --surface-2: #1b2333;
  --surface-3: #232d40;
  --line: #253044;
  --text: #eef2f8;
  --text-dim: #8a93a3;
  --text-mute: #5f6b7e;
  --lime: #c6f542;
  --lime-2: #a6e02a;
  --lime-ink: #10160a;
  --live: #2fe06a;
  --win: var(--lime);
  --up: #4aa8ff;
  --fin: #7cff9b;
  --cancel: #ff7a7a;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --header-h: 88px;
  --nav-h: 96px;
  --ease: cubic-bezier(.22,.61,.36,1);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}

#kiosk { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
#app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 800px at 50% -10%, #16203100 0%, transparent 60%),
    var(--bg);
  animation: pageIn .28s var(--ease);
}
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

button { font-family: inherit; color: inherit; border: none; background: none; cursor: pointer; }
.ic { width: 26px; height: 26px; fill: currentColor; }
.ic-lg { width: 34px; height: 34px; }
.ic-logo { width: 100%; height: 100%; }

/* ---------- Scroll zone ---------- */
.page-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 24px;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.page-scroll::-webkit-scrollbar { width: 8px; }
.page-scroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  height: var(--header-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: linear-gradient(180deg, #14251b 0%, #0e1622 100%);
  border-bottom: 1px solid #1d3324;
}
.hd-brand { display: flex; align-items: center; gap: 14px; }
.hd-logo { width: 54px; height: 54px; flex: none; display: flex; align-items: center; justify-content: center; }
.hd-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.hd-titles { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.hd-name { font-size: 21px; font-weight: 900; letter-spacing: .3px; white-space: nowrap; }
.hd-sub { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); white-space: nowrap; }
.hd-live {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 900; font-size: 16px; letter-spacing: 1.5px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 0 22px rgba(198,245,66,.35);
}
.hd-live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-ink); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  height: var(--nav-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: linear-gradient(0deg, #0a0e15 0%, #0e1420 100%);
  border-top: 1px solid var(--line);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 108px; padding: 14px 20px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 800; font-size: 15px; letter-spacing: 1px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .12s var(--ease), background .15s, color .15s;
}
.nav-btn .ic { width: 34px; height: 34px; }
.nav-btn:active { transform: scale(.92); background: var(--surface-2); color: var(--text); }
.nav-btn.refresh {
  flex-direction: row; gap: 10px; min-width: auto; padding: 16px 26px;
  background: var(--lime); color: var(--lime-ink); font-size: 16px; letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(198,245,66,.28);
}
.nav-btn.refresh .ic { width: 22px; height: 22px; }
.nav-btn.refresh.spin .ic { animation: spin .6s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-spacer { flex: 1; }
.nav-updated { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text-mute); text-align: right; }
.nav-updated b { color: var(--text-dim); }

/* ============================================================
   ÉCRAN VEILLE (IDLE)
   ============================================================ */
.idle-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.idle-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(198,245,66,.13), transparent 70%),
    linear-gradient(180deg, rgba(11,15,23,.86) 0%, rgba(11,15,23,.90) 42%, rgba(11,15,23,.97) 74%, #0b0f17 100%),
    url('../assets/bg-terrain.jpg') center top/cover no-repeat;
}
.idle-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 100%; opacity: .5;
}
.idle-content { position: relative; text-align: center; padding: 20px; }
.idle-brand { position: relative; width: min(78vw, 420px); margin: 0 auto 30px; }
.idle-brand img { position: relative; width: 100%; height: auto; z-index: 1;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); animation: floaty 4s ease-in-out infinite; }
.idle-ring {
  position: absolute; left: 50%; top: 42%; width: 260px; height: 260px; transform: translate(-50%,-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(198,245,66,.22), transparent 68%);
  animation: idleGlow 3s ease-in-out infinite;
}
@keyframes idleGlow { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
.idle-title { font-size: clamp(48px, 15vw, 76px); font-weight: 900; line-height: .92; letter-spacing: 1px; margin-bottom: 12px; word-break: break-word; }
.idle-tag { font-size: 20px; font-weight: 800; letter-spacing: 6px; color: var(--lime); margin-bottom: 46px; }
.idle-cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--text);
  padding: 20px 40px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  animation: floaty 3s ease-in-out infinite;
}
.idle-pulse { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(198,245,66,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,245,66,.6); } 70% { box-shadow: 0 0 0 20px rgba(198,245,66,0); } 100% { box-shadow: 0 0 0 0 rgba(198,245,66,0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.idle-stats { display: flex; justify-content: center; gap: 42px; margin-top: 54px; }
.idle-stats div { display: flex; flex-direction: column; }
.idle-stats b { font-size: 40px; font-weight: 900; color: var(--lime); }
.idle-stats span { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); }

/* ============================================================
   HOME
   ============================================================ */
.home-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 40px 24px 30px; text-align: center; margin-bottom: 20px;
  background: linear-gradient(180deg, #13241a, #0f1725);
  border: 1px solid #1f3527;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(198,245,66,.16), transparent 65%),
    linear-gradient(180deg, rgba(19,36,26,.78), rgba(15,23,37,.92)),
    url('../assets/bg-terrain.jpg') center 30%/cover no-repeat;
}
.hero-brand { position: relative; z-index: 1; display: block; width: min(72%, 360px); height: auto; margin: 4px auto 6px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.hero-title { position: relative; font-size: clamp(40px, 12vw, 56px); font-weight: 900; line-height: .92; word-break: break-word; }
.hero-sub { position: relative; font-size: 16px; font-weight: 800; letter-spacing: 5px; color: var(--lime); margin-top: 8px; }
.hero-stats {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 24px; padding: 16px 22px; border-radius: var(--radius);
  background: rgba(11,15,23,.55); border: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(198,245,66,.10);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; font-weight: 900; }
.hero-stats span { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); }
.hero-stats .sep { width: 1px; height: 34px; background: var(--line); }

.home-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.sum-card {
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.sum-card b { display: block; font-size: 38px; font-weight: 900; line-height: 1; }
.sum-card span { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-dim); }
.sum-card.live { border-color: rgba(47,224,106,.4); background: linear-gradient(180deg, #10241a, var(--surface)); }
.sum-card.live b { color: var(--live); }
.sum-card.upcoming b { color: var(--up); }
.sum-card.finished b { color: var(--fin); }

.home-actions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.action-btn {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; column-gap: 18px;
  text-align: left; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .12s var(--ease), border-color .15s, background .15s;
}
.action-btn .ic-lg { grid-row: span 2; color: var(--lime); width: 40px; height: 40px; }
.action-btn:active { transform: scale(.98); background: var(--surface-2); }
.action-btn.primary { background: linear-gradient(120deg, var(--lime), var(--lime-2)); border-color: transparent; box-shadow: 0 8px 26px rgba(198,245,66,.28); }
.action-btn.primary .ic-lg, .action-btn.primary .ab-t, .action-btn.primary .ab-s { color: var(--lime-ink); }
.ab-t { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.ab-s { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.action-btn.primary .ab-s { opacity: .7; }

.home-live { margin-top: 6px; }
.hl-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 900; letter-spacing: 1.5px; color: var(--live); margin-bottom: 12px; }
.hl-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
.hl-list { display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   HOME v2 — plein écran (1 grand bouton + rangée de 2), style modèle
   ============================================================ */
.home2 { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px);
  padding: clamp(14px, 2.6vw, 36px); overflow: hidden; }
.welcome { text-align: center; flex: none; }
.welcome-t { font-size: clamp(34px, 5.4vw, 68px); font-weight: 900; letter-spacing: .5px; line-height: 1.02; }
.welcome-s { font-size: clamp(16px, 2vw, 26px); font-weight: 600; color: var(--text-dim); margin-top: 8px; }
.home-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px); }
.home-row { flex: 1; min-height: 0; display: flex; gap: clamp(14px, 2vw, 22px); }
.home-row .hbtn { flex: 1; }

.hbtn {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; padding: clamp(20px, 3vw, 40px);
  border-radius: 26px; background: var(--surface); border: 2px dashed rgba(198,245,66,.35);
  transition: transform .12s var(--ease), border-color .15s, box-shadow .2s; cursor: pointer;
}
.hbtn:active { transform: scale(.985); }
.hbtn.big { flex: 1.35; min-height: 0; border-color: rgba(198,245,66,.5); }
.hbtn.big:active { transform: scale(.99); }

/* média "stade" du grand bouton (photo à droite, dégradé sombre à gauche) */
.hb-media { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, var(--surface) 22%, rgba(21,27,40,.72) 48%, rgba(21,27,40,.15) 100%),
    url('../assets/bg-terrain.jpg') right center/cover no-repeat; }

.hb-ic { position: relative; z-index: 1; flex: none; width: clamp(52px, 6vw, 76px); height: clamp(52px, 6vw, 76px);
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--lime); }
.hb-ic .ic-lg { width: 55%; height: 55%; }
.hbtn.big .hb-ic { background: var(--lime); color: var(--lime-ink); box-shadow: 0 8px 24px rgba(198,245,66,.35); }

.hb-live { position: absolute; top: clamp(16px, 2.5vw, 28px); right: clamp(16px, 2.5vw, 28px); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: 1px;
  color: var(--lime-ink); background: var(--live); padding: 9px 15px; border-radius: 999px; box-shadow: 0 6px 18px rgba(47,224,106,.4); }
.hb-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-ink); animation: blink 1.2s infinite; }

.hb-title { position: relative; z-index: 1; margin-top: auto; font-size: clamp(30px, 4.2vw, 54px); font-weight: 900; letter-spacing: .5px; }
.hbtn.big .hb-title { font-size: clamp(38px, 5.6vw, 74px); }
.hb-sub { position: relative; z-index: 1; font-size: clamp(15px, 1.8vw, 22px); font-weight: 600; color: var(--text-dim); margin-top: 6px; }
.hbtn.big .hb-sub { color: var(--text); opacity: .85; }

/* Portrait très étroit : la rangée passe en colonne */
@media (max-width: 460px) {
  .home-row { flex-direction: column; }
}

/* ============================================================
   MATCHES — day tabs & filters
   ============================================================ */
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.day-tab {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  padding: 16px 8px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .12s var(--ease), border-color .15s, background .15s;
}
.day-tab:active { transform: scale(.96); }
.dt-fr { font-size: 17px; font-weight: 900; letter-spacing: .5px; }
.dt-en { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-mute); }
.day-tab.active { background: linear-gradient(120deg, var(--lime), var(--lime-2)); border-color: transparent; box-shadow: 0 6px 20px rgba(198,245,66,.25); }
.day-tab.active .dt-fr, .day-tab.active .dt-en { color: var(--lime-ink); }

.filters-primary { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.filters-primary.compact { margin-bottom: 8px; }
.filter-group label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--text-mute); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: .5px;
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--line);
  transition: transform .1s var(--ease), background .15s, color .15s, border-color .15s;
}
.chip:active { transform: scale(.93); }
.chip.active { background: var(--lime); color: var(--lime-ink); border-color: transparent; box-shadow: 0 4px 14px rgba(198,245,66,.25); }

.adv-toggle {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: 1px;
  background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line);
}
.adv-toggle .ic { width: 20px; height: 20px; }
.adv-toggle.open { color: var(--lime); border-color: rgba(198,245,66,.4); }
.adv-badge { background: var(--lime); color: var(--lime-ink); font-size: 12px; padding: 2px 9px; border-radius: 999px; }

.adv-panel {
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  animation: slideDown .22s var(--ease);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.adv-search { position: relative; display: flex; align-items: center; }
.as-ico { position: absolute; left: 16px; color: var(--text-mute); display: flex; }
.adv-search input {
  width: 100%; padding: 16px 46px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-size: 17px; font-family: inherit; outline: none;
}
.adv-search input:focus { border-color: var(--lime); }
.adv-search input::placeholder { color: var(--text-mute); }
.as-clear { position: absolute; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-dim); font-weight: 700; }

.result-count { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-dim); margin: 4px 2px 14px; }
.result-count b { font-size: 22px; color: var(--lime); }
.reset-link { margin-left: auto; font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--cancel); padding: 8px 14px; border-radius: 999px; background: rgba(255,122,122,.12); }

/* ============================================================
   MATCH CARD
   ============================================================ */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-card {
  display: block; width: 100%; text-align: left;
  border-radius: var(--radius); padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .12s var(--ease), border-color .15s, box-shadow .2s;
}
.match-card:active { transform: scale(.985); }
.match-card.is-live { border-color: rgba(47,224,106,.5); background: linear-gradient(180deg, #10241a, var(--surface)); box-shadow: 0 0 0 1px rgba(47,224,106,.18), 0 10px 30px rgba(47,224,106,.12); }
.card-finished { opacity: .96; }
.card-cancelled { opacity: .6; }

.mc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mc-time { font-size: 18px; font-weight: 900; color: var(--lime); }
.mc-meta { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--text-mute); flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; letter-spacing: 1px; padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.badge-live { background: rgba(47,224,106,.16); color: var(--live); }
.badge-finished { background: rgba(124,255,155,.14); color: var(--fin); }
.badge-upcoming { background: var(--surface-3); color: var(--up); }
.badge-cancelled { background: rgba(255,122,122,.14); color: var(--cancel); }

.mc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.mc-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-team.b { justify-content: flex-end; }
.mc-team .tn { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-badge { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #fff; letter-spacing: .5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; }
.team-badge.has-logo { background: #f4f7fb; padding: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.25); }
.team-badge.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-score { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.mc-score .s { font-size: 34px; font-weight: 900; line-height: 1; min-width: 24px; text-align: center; color: var(--text); }
.mc-score .s.win { color: var(--lime); }
.mc-score .dash { color: var(--text-mute); font-weight: 700; }
.mc-score .vs { font-size: 16px; font-weight: 900; letter-spacing: 1px; color: var(--text-mute); }

.mc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mc-status { font-size: 13px; font-weight: 900; letter-spacing: 1px; }
.mc-status.live { color: var(--live); }
.mc-status.finished { color: var(--fin); }
.mc-status.upcoming { color: var(--up); }
.mc-status.cancelled { color: var(--cancel); }
.mc-cls { font-size: 12px; font-weight: 700; color: var(--text-mute); }

.empty-state { text-align: center; padding: 60px 24px; color: var(--text-dim); }
.empty-state .ic { width: 48px; height: 48px; color: var(--text-mute); margin-bottom: 16px; }
.empty-state p { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.empty-state span { font-size: 14px; display: block; margin-bottom: 20px; }
.btn-lime { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 900; letter-spacing: 1px; }

/* ============================================================
   MATCH DETAILS
   ============================================================ */
.page-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; letter-spacing: 1px; margin-bottom: 18px; }
.page-title .ic-lg { color: var(--lime); }
.section-title { font-size: 15px; font-weight: 900; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 14px; }

.md-hero { border-radius: var(--radius-lg); padding: 24px 20px; margin-bottom: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.md-hero.card-live { border-color: rgba(47,224,106,.4); box-shadow: 0 0 40px rgba(47,224,106,.12); }
.md-meta-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--text-dim); }
.md-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.md-team { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.md-team .team-badge { width: 68px; height: 68px; border-radius: 20px; font-size: 22px; }
.md-team .team-badge.has-logo { padding: 8px; }
.md-tn { font-size: 18px; font-weight: 800; text-align: center; }
.md-score { text-align: center; }
.md-score > span { font-size: 60px; font-weight: 900; line-height: 1; }
.md-score .win { color: var(--lime); }
.md-score .md-dash { font-size: 40px; color: var(--text-mute); margin: 0 6px; }
.md-score .md-vs { font-size: 30px; color: var(--text-mute); letter-spacing: 2px; }
.md-clock { font-size: 14px; font-weight: 900; letter-spacing: 1px; color: var(--live); margin-top: 8px; }

.md-info { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-pill { flex: 1; min-width: 84px; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(11,15,23,.5); }
.info-pill span { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-mute); }
.info-pill b { font-size: 16px; font-weight: 800; }

.md-scorers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ms-lbl { font-size: 13px; font-weight: 900; letter-spacing: 1px; color: var(--lime); }
.scorer { font-size: 15px; font-weight: 600; }
.scorer b { color: var(--lime); }
.scorer em { color: var(--text-mute); font-style: normal; font-size: 13px; }

/* Timeline */
.md-timeline-wrap { padding: 4px 2px 8px; }
.timeline-c { position: relative; padding: 10px 0 4px; }
.tlc-spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent); border-radius: 3px; }
.timeline-c ul { list-style: none; position: relative; }
.tlc-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); align-items: center; margin: 14px 0; }
.tlc-item.side-a .tlc-card { grid-column: 1; }
.tlc-item.side-b .tlc-card { grid-column: 3; }
.tlc-node { grid-column: 2; justify-self: center; }

.tlc-card { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.2);
  animation: tlIn .35s var(--ease) both; max-width: 100%; }
.tlc-item.side-a .tlc-card { flex-direction: row-reverse; text-align: right; margin-right: 4px; }
.tlc-item.side-b .tlc-card { margin-left: 4px; }
@keyframes tlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tlc-crest .team-badge { width: 38px; height: 38px; border-radius: 11px; }
.tlc-txt { display: flex; flex-direction: column; min-width: 0; }
.tlc-player { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlc-team { font-size: 12px; font-weight: 600; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlc-item.ev-goal .tlc-card { border-color: rgba(198,245,66,.45); background: linear-gradient(180deg, #1a2411, var(--surface-2)); }
.tlc-item.ev-red .tlc-card { border-color: rgba(255,90,90,.5); }

.tlc-node { width: 54px; height: 54px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; position: relative; }
.tlc-ico { font-size: 20px; line-height: 1; }
.tlc-min { font-size: 10px; font-weight: 900; color: var(--text-dim); margin-top: 1px; }
.tlc-item.ev-goal .tlc-node { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198,245,66,.12), 0 0 18px rgba(198,245,66,.4); }
.tlc-item.ev-goal .tlc-min { color: var(--lime); }
.tlc-item.ev-red .tlc-node { border-color: #ff5a5a; }
.tlc-item.ev-yellow .tlc-node { border-color: #f5d442; }

.tlc-item.neutral { grid-template-columns: 1fr; justify-items: center; margin: 16px 0; }
.tlc-pill { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--text-dim);
  padding: 9px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); z-index: 2; }
.tlc-item.ev-end .tlc-pill { color: var(--lime); border-color: rgba(198,245,66,.4); }

.tl-empty { color: var(--text-mute); text-align: center; padding: 30px; }

/* ============================================================
   MATCH — VUE AFFICHE (cover) : image plein cadre + score en bas
   ============================================================ */
.md-cover-scroll { padding: 0; overflow: hidden; display: flex; }
.md-cover { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  background-size: cover; background-position: center top; background-repeat: no-repeat; }
.mdc-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,9,14,.45) 0%, rgba(6,9,14,0) 26%, rgba(6,9,14,.55) 60%, rgba(6,9,14,.96) 100%); }
.mdc-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.mdc-when { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #fff; background: rgba(6,9,14,.5); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.mdc-content { position: relative; z-index: 2; padding: 22px 22px 26px; }
.mdc-tag { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--lime-ink);
  background: var(--lime); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(198,245,66,.35); }
.mdc-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.mdc-team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mdc-team .team-badge { width: 62px; height: 62px; border-radius: 18px; }
.mdc-team span { font-size: 17px; font-weight: 800; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.mdc-score { display: flex; align-items: center; gap: 8px; }
.mdc-score b { font-size: 58px; font-weight: 900; color: #fff; line-height: 1; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.mdc-score b.win { color: var(--lime); }
.mdc-dash { font-size: 34px; color: rgba(255,255,255,.5); }
.mdc-vs { font-size: 30px; font-weight: 900; letter-spacing: 2px; color: rgba(255,255,255,.85); text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.mdc-meta { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.mdc-scorers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.mdc-goal { font-size: 14px; font-weight: 600; color: #fff; background: rgba(6,9,14,.55); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.mdc-goal b { color: var(--lime); }
.mdc-btn { display: block; width: 100%; padding: 20px; border-radius: var(--radius); font-size: 18px; font-weight: 900; letter-spacing: 1px;
  background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(198,245,66,.3); transition: transform .12s var(--ease); }
.mdc-btn:active { transform: scale(.98); }

/* MATCH — VUE COMPLÈTE : image floue en fond */
.md-full { position: relative; }
.md-bg { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: var(--nav-h); z-index: 0;
  background-size: cover; background-position: center; filter: blur(16px) brightness(.32) saturate(1.1); transform: scale(1.12); }
.md-content { position: relative; z-index: 1; }
.md-back-cover { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--text); background: rgba(21,27,40,.7);
  border: 1px solid var(--line); backdrop-filter: blur(6px); }
.md-back-cover:active { transform: scale(.96); }
.md-full .md-hero { background: linear-gradient(180deg, rgba(27,35,51,.82), rgba(21,27,40,.86)); backdrop-filter: blur(8px); }
.md-full .md-scorers { background: rgba(21,27,40,.78); backdrop-filter: blur(8px); }
.md-full .tlc-card { background: rgba(27,35,51,.85); backdrop-filter: blur(4px); }
.md-full .tlc-node, .md-full .tlc-pill { backdrop-filter: blur(4px); }

/* ============================================================
   RESULTS
   ============================================================ */
.results-list { display: flex; flex-direction: column; gap: 8px; }
.result-row { display: grid; grid-template-columns: 92px 1fr auto 1fr; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: transform .1s var(--ease); }
.result-row:active { transform: scale(.99); }
.rr-time { font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--text-dim); }
.rr-team { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-team.rb { text-align: right; }
.rr-score { font-size: 20px; font-weight: 900; padding: 4px 12px; border-radius: 10px; background: var(--bg-2); white-space: nowrap; }
.rr-score.la { color: var(--lime); }
.rr-score.lb { color: var(--lime); }
.rr-meta { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-mute); }

/* ============================================================
   FIELDS
   ============================================================ */
.fields-grid { display: flex; flex-direction: column; gap: 14px; }
.field-card { border-radius: var(--radius); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.field-card.has-live { border-color: rgba(47,224,106,.4); }
.fc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fc-num { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(120deg, var(--lime), var(--lime-2)); color: var(--lime-ink); font-size: 24px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.fc-title { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.fc-sub { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.fc-lbl { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: var(--text-mute); margin-bottom: 10px; }
.fc-current.live .fc-lbl { color: var(--live); }
.fc-current.live .fc-lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.2s infinite; }
.fc-current { margin-bottom: 14px; }
.fc-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.fc-match:active { transform: scale(.99); }
.fcm-a, .fcm-b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcm-b { text-align: right; }
.fcm-score { font-size: 26px; font-weight: 900; color: var(--lime); padding: 0 10px; }
.fcm-meta { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--text-mute); margin-top: 6px; }
.fc-match.small { grid-template-columns: auto 1fr; }
.fcm-time { font-size: 14px; font-weight: 900; color: var(--lime); }
.fcm-teams { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-empty { color: var(--text-mute); font-size: 15px; font-weight: 700; padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius-sm); border: 1px dashed var(--line); text-align: center; }
.fc-empty.small { padding: 12px; font-size: 13px; }

/* ============================================================
   GOAL OVERLAY
   ============================================================ */
.goal-overlay { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(6,9,14,.82); opacity: 0; transition: opacity .3s var(--ease); }
.goal-overlay.show { opacity: 1; }
.goal-overlay.hide { opacity: 0; }
.go-inner { text-align: center; transform: scale(.7); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.goal-overlay.show .go-inner { transform: scale(1); opacity: 1; }
.go-ball { font-size: 90px; animation: goalBall 1s var(--ease); }
@keyframes goalBall { 0% { transform: translateY(-120px) rotate(-180deg); } 60% { transform: translateY(10px) rotate(20deg); } 100% { transform: none; } }
.go-title { font-size: 78px; font-weight: 900; letter-spacing: 3px; color: var(--lime); text-shadow: 0 0 40px rgba(198,245,66,.5); margin: 6px 0; }
.go-min { font-size: 30px; font-weight: 900; color: var(--text); }
.go-scorer { font-size: 34px; font-weight: 900; letter-spacing: 1px; margin-top: 14px; }
.go-team { font-size: 20px; font-weight: 700; color: var(--text-dim); margin-top: 4px; }

/* --- Immersif (page du match) : stade en fond, crests, scoreline --- */
.goal-overlay.immersive { background: rgba(5,8,12,.94); }
.go-stadium { position: absolute; inset: 0; opacity: .22;
  background: linear-gradient(180deg, rgba(11,15,23,.4), rgba(11,15,23,.95)), url('../assets/kids-goal.jpg') center/cover no-repeat; }
.go-flash { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgba(198,245,66,.28), transparent 70%); opacity: 0; }
.goal-overlay.immersive.show .go-flash { animation: goFlash .9s var(--ease); }
@keyframes goFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .35; } }
.go-crest-scorer { margin: 4px auto 2px; }
.go-crest { display: inline-flex; width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  background: #f4f7fb; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 3px rgba(198,245,66,.5);
  animation: crestPop .6s var(--ease) both; }
.go-crest img { width: 100%; height: 100%; object-fit: contain; }
.go-crest.badge { align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 900; padding: 0; }
@keyframes crestPop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.12); } 100% { transform: none; } }
.go-scoreline { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px;
  padding: 16px 26px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.go-scoreline .gs-team { font-size: 18px; font-weight: 800; color: var(--text-dim); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-scoreline .gs-team.hl { color: var(--text); }
.go-scoreline .gs-num { font-size: 40px; font-weight: 900; color: var(--lime); letter-spacing: 1px; }
.go-scoreline .gs-num span { color: var(--text-mute); }

/* Confetti (CSS only, léger) */
.go-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.go-confetti i { position: absolute; top: -6%; width: 9px; height: 15px; border-radius: 2px; opacity: 0; }
.go-confetti i:nth-child(1){ left: 12%; background: var(--lime); }
.go-confetti i:nth-child(2){ left: 26%; background: #fff; }
.go-confetti i:nth-child(3){ left: 38%; background: var(--lime); }
.go-confetti i:nth-child(4){ left: 50%; background: #4aa8ff; }
.go-confetti i:nth-child(5){ left: 62%; background: var(--lime); }
.go-confetti i:nth-child(6){ left: 74%; background: #fff; }
.go-confetti i:nth-child(7){ left: 86%; background: var(--lime); }
.go-confetti i:nth-child(8){ left: 94%; background: #ff7a7a; }
.goal-overlay.immersive.show .go-confetti i { animation: fall 1.7s ease-in 2; }
.go-confetti i:nth-child(2n){ animation-delay: .15s !important; }
.go-confetti i:nth-child(3n){ animation-delay: .3s !important; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(120vh) rotate(540deg); opacity: 0; } }

/* ============================================================
   NOTIFICATION CONTEXTUELLE (but hors de la page du match)
   ============================================================ */
.goal-notif { position: absolute; top: calc(var(--header-h) + 14px); right: 16px; left: 16px; z-index: 55;
  display: flex; align-items: stretch; gap: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transform: translateY(calc(var(--stack, 0px) - 140%)); opacity: 0;
  transition: transform .42s var(--ease), opacity .3s; will-change: transform; }
.goal-notif.show { transform: translateY(var(--stack, 0px)); opacity: 1; }
.goal-notif.out { transform: translateY(calc(var(--stack, 0px) - 30px)); opacity: 0; }
.gn-accent { flex: none; width: 6px; background: var(--lime); box-shadow: 0 0 16px rgba(198,245,66,.5); }
.gn-crest { flex: none; display: flex; align-items: center; padding: 0 4px 0 14px; }
.gn-crest .gn-crestimg { display: inline-flex; width: 54px; height: 54px; border-radius: 14px; overflow: hidden;
  background: #f4f7fb; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.gn-crest .gn-crestimg img { width: 100%; height: 100%; object-fit: contain; }
.gn-crest .gn-crestimg.badge { align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 900; padding: 0; }
.gn-body { flex: 1; min-width: 0; padding: 12px 16px 12px 12px; }
.gn-top { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.gn-tag { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: var(--lime-ink); background: var(--lime); padding: 3px 10px; border-radius: 999px; }
.gn-min { font-size: 14px; font-weight: 900; color: var(--lime); }
.gn-meta { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--text-mute); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-scorer { font-size: 17px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gn-scorer em { font-style: normal; font-weight: 600; color: var(--text-dim); font-size: 13px; }
.gn-score { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 14px; font-weight: 700; color: var(--text-dim); }
.gn-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.gn-score span.hl { color: var(--text); }
.gn-score b { font-size: 18px; font-weight: 900; color: var(--lime); }
.gn-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform-origin: left; }
.goal-notif.show .gn-progress { animation: gnBar 5.2s linear forwards; }
@keyframes gnBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============================================================
   EVENT OVERLAY — carton jaune / rouge / remplacement
   (uniquement pour le match ouvert sur la borne)
   ============================================================ */
.event-overlay { position: absolute; inset: 0; z-index: 52; display: flex; align-items: center; justify-content: center;
  background: rgba(6,9,14,.86); opacity: 0; transition: opacity .28s var(--ease); }
.event-overlay.show { opacity: 1; }
.event-overlay.hide { opacity: 0; }
.eo-inner { text-align: center; transform: translateY(14px) scale(.9); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.event-overlay.show .eo-inner { transform: none; opacity: 1; }

/* Halo coloré selon le type */
.event-overlay::before { content: ''; position: absolute; width: 70%; height: 40%; border-radius: 50%; filter: blur(60px); opacity: .5; }
.event-overlay.ev-yellow::before { background: #f5d442; }
.event-overlay.ev-red::before { background: #ff4d4d; }
.event-overlay.ev-sub::before { background: var(--lime); }

/* Carte d'arbitre (jaune / rouge) */
.eo-visual { display: flex; justify-content: center; margin-bottom: 22px; perspective: 700px; }
.eo-card { width: 96px; height: 132px; border-radius: 12px; display: block;
  box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.18);
  transform-origin: bottom center; animation: cardFlip .7s var(--ease) both; }
.eo-card.yellow { background: linear-gradient(150deg, #ffe45e, #f5c518); }
.eo-card.red { background: linear-gradient(150deg, #ff6161, #e01e1e); }
@keyframes cardFlip {
  0% { transform: rotateX(90deg) translateY(30px); opacity: 0; }
  55% { transform: rotateX(-14deg) rotate(-6deg); opacity: 1; }
  100% { transform: rotateX(0) rotate(-6deg); }
}

/* Remplacement : flèches entrée/sortie */
.eo-sub { position: relative; display: inline-flex; width: 108px; height: 108px; border-radius: 50%;
  align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(198,245,66,.5);
  box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 26px rgba(198,245,66,.3); animation: subPop .6s var(--ease) both; }
.eo-sub i { font-style: normal; font-size: 40px; line-height: 1; font-weight: 900; }
.eo-sub .in { color: var(--lime); animation: subIn .8s var(--ease) both; }
.eo-sub .out { color: #ff7a7a; animation: subOut .8s var(--ease) both; }
@keyframes subPop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes subIn { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes subOut { 0% { transform: translateY(-16px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.eo-title { position: relative; font-size: 46px; font-weight: 900; letter-spacing: 2px; }
.event-overlay.ev-yellow .eo-title { color: #f5d442; text-shadow: 0 0 30px rgba(245,212,66,.5); }
.event-overlay.ev-red .eo-title { color: #ff5a5a; text-shadow: 0 0 30px rgba(255,77,77,.55); }
.event-overlay.ev-sub .eo-title { color: var(--lime); text-shadow: 0 0 30px rgba(198,245,66,.5); }
.eo-min { position: relative; font-size: 26px; font-weight: 900; color: var(--text); margin-top: 6px; }
.eo-player { position: relative; font-size: 30px; font-weight: 900; letter-spacing: 1px; margin-top: 14px; }
.eo-team { position: relative; font-size: 19px; font-weight: 700; color: var(--text-dim); margin-top: 4px; }
.eo-tag { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,77,77,.18); color: #ff7a7a; vertical-align: middle; }
.event-overlay.ev-sub .eo-tag { background: rgba(198,245,66,.16); color: var(--lime); }

/* ============================================================
   TOAST
   ============================================================ */
.toast { position: absolute; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translate(-50%, 20px); z-index: 60;
  background: var(--lime); color: var(--lime-ink); font-weight: 800; letter-spacing: .5px;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE — portrait cible 1080×1920 puis adaptations
   ============================================================ */
@media (min-width: 1000px) {
  :root { --header-h: 120px; --nav-h: 128px; font-size: 20px; }
  .hd-name { font-size: 34px; } .hd-sub { font-size: 15px; }
  .hd-logo { width: 68px; height: 68px; }
  .hd-live { font-size: 22px; padding: 15px 28px; }
  .page-scroll { padding: 28px 34px 36px; }
  .hero-title { font-size: 84px; }
  .idle-title { font-size: 120px; }
  .idle-cta { font-size: 30px; padding: 26px 54px; }
  .mc-score .s { font-size: 46px; }
  .mc-team .tn { font-size: 22px; }
  .md-score > span { font-size: 84px; }
  .go-title { font-size: 110px; }
  .go-ball { font-size: 130px; }
  .nav-btn.refresh { font-size: 20px; padding: 20px 34px; }
}

@media (min-width: 1400px) {
  :root { font-size: 24px; --header-h: 140px; --nav-h: 148px; }
  .page-scroll { padding: 40px 64px 48px; }
}

/* Paysage : garde l'app centrée et lisible (borne posée à plat, écran secondaire) */
@media (orientation: landscape) and (max-height: 820px) {
  .idle-title { font-size: 56px; }
  .hero-title { font-size: 44px; }
  .home-summary { grid-template-columns: repeat(3, 1fr); }
}

/* Respecte la préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .08s !important; }
}
