/* ==========================================================================
   Pronos72 - Design System v2
   Style: Moderne / Sportif / Premium
   ========================================================================== */

/* --- 1. Design Tokens --- */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-dark: #3730a3;
  --primary-rgb: 79, 70, 229;

  --success: #059669;
  --success-light: #ecfdf5;
  --success-rgb: 5, 150, 105;

  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-rgb: 217, 119, 6;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-rgb: 220, 38, 38;

  --gold: #eab308;
  --gold-rgb: 234, 179, 8;

  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 20px -4px rgba(0,0,0,0.1), 0 4px 8px -4px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.12);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* --- 2. Base --- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

/* --- 3. Navbar --- */
.navbar-pronos {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 0;
  z-index: 1030;
}
.navbar-pronos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.navbar-pronos .container-fluid { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.navbar-pronos .navbar-brand { font-weight: 700; font-size: 1.25rem; color: var(--primary); }
.navbar-pronos .navbar-brand img { height: 40px; margin-right: 0.5rem; }

/* Mobile navbar: gradient background for vibrancy */
@media (max-width: 991.98px) {
  .navbar-pronos {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(30, 27, 75, 0.35);
  }
  .navbar-pronos::before { display: none; }
  .navbar-pronos .navbar-brand img {
    height: 36px;
  }
  .navbar-pronos .navbar-toggler {
    color: #fff;
    font-size: 1.2rem;
    padding: 0.35rem 0.5rem;
  }
  .navbar-pronos .container-fluid { padding-top: 0.6rem; padding-bottom: 0.6rem; }
}

.navbar-pronos .navbar-nav { align-items: center; gap: 0.15rem; }
.navbar-pronos .nav-link {
  color: var(--text-secondary); font-weight: 600;
  font-size: 0.875rem; padding: 0.5rem 0.9rem;
  border-radius: 999px; transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.navbar-pronos .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.navbar-pronos .nav-link.active {
  color: #fff; font-weight: 700; background: var(--gradient-primary);
  box-shadow: 0 4px 12px -3px rgba(var(--primary-rgb), 0.5);
}
.navbar-pronos .nav-link i { margin-right: 0.4rem; font-size: 0.85rem; opacity: 0.85; }
.navbar-pronos .nav-link.active i { opacity: 1; }

/* Chevron custom (au lieu du triangle Bootstrap) */
.navbar-pronos .dropdown-toggle::after {
  border: none !important; content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 0.62rem; margin-left: 0.45rem; vertical-align: 0; opacity: 0.55; transition: transform .2s ease;
}
.navbar-pronos .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); opacity: 0.9; }

.navbar-pronos .dropdown-menu {
  border: 1px solid var(--border-light); box-shadow: var(--shadow-lg);
  border-radius: var(--radius); padding: 0.4rem; margin-top: 0.5rem; min-width: 13rem;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  /* Écrans peu hauts : le menu (surtout "Plus") ne dépasse plus l'écran, il défile */
  max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain;
}
.navbar-pronos .dropdown-item {
  border-radius: var(--radius-xs); font-size: 0.86rem; font-weight: 500; color: var(--text);
  padding: 0.55rem 0.8rem; transition: background .15s, color .15s;
}
.navbar-pronos .dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.navbar-pronos .dropdown-item i { width: 20px; text-align: center; margin-right: 0.5rem; color: var(--text-muted); }
.navbar-pronos .dropdown-item:hover i { color: var(--primary); }
.navbar-pronos .dropdown-divider { margin: 0.35rem 0.4rem; border-color: var(--border-light); }

/* Zone utilisateur */
.user-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: var(--surface); border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.user-badge .position {
  background: var(--gradient-primary); color: #fff;
  padding: 0.18rem 0.55rem; border-radius: 999px; font-weight: 800; font-size: 0.72rem;
}
.user-badge .points { color: var(--text-secondary); font-weight: 700; }
.user-badge .text-muted { opacity: 0.45; }
/* Avatar de la navbar (toggle du menu utilisateur) */
.navbar-pronos .navbar-nav .dropdown-toggle .avatar-sm { transition: box-shadow .18s ease; }
.navbar-pronos .navbar-nav .dropdown-toggle:hover .avatar-sm { box-shadow: 0 0 0 3px var(--primary-light); }
.navbar-pronos .navbar-nav > .nav-item.dropdown:last-child .dropdown-toggle::after { display: none; }

/* Selecteur de concours : pill + chevron custom */
.concours-select {
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.46rem 2rem 0.46rem 0.95rem;
  color: var(--text); background-color: var(--surface); max-width: 230px; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%236366f1' d='M3 6h10l-5 5z'/></svg>");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.concours-select:hover { border-color: var(--primary); }
.concours-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }

/* --- 4. Hero Welcome --- */
.hero-welcome {
  background: var(--gradient-dark);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 27, 75, 0.25);
}
.hero-welcome::before {
  content: '';
  position: absolute; top: -60%; right: -15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  pointer-events: none;
}
.hero-welcome::after {
  content: '';
  position: absolute; bottom: -40%; left: -10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.hero-user { display: flex; align-items: center; gap: 1rem; }
.hero-avatar {
  width: 56px; height: 56px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-greeting { font-size: 1.35rem; font-weight: 700; color: #fff; }
.hero-compete { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.65); margin-top: 0.15rem; }
.hero-kpis { display: flex; align-items: center; gap: 1.25rem; }
.hero-kpi { text-align: center; }
.hero-kpi-value {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -0.02em;
}
.hero-kpi-value sup { font-size: 0.55em; font-weight: 600; }
.hero-kpi-value.positive { color: #6ee7b7; }
.hero-kpi-value.negative { color: #fca5a5; }
.hero-kpi-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-top: 0.25rem;
}
.hero-kpi-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

@media (max-width: 768px) {
  .hero-welcome { padding: 1.25rem; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-kpis { width: 100%; justify-content: space-around; }
  .hero-kpi-value { font-size: 1.25rem; }
  .hero-greeting { font-size: 1.1rem; }
  .hero-avatar { width: 44px; height: 44px; }
}

/* ======================= HERO v2 — cockpit à états (id 3) ======================= */
.hw2 { --teamL:#4f46e5; position: relative; border-radius: 18px; overflow: hidden; background: var(--gradient-dark); color: #fff; box-shadow: 0 14px 40px -14px rgba(30,27,75,.55); isolation: isolate; }
.hw2::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cg fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='170' cy='170' r='62'/%3E%3Cline x1='0' y1='170' x2='340' y2='170'/%3E%3Ccircle cx='170' cy='170' r='4' fill='white'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -70px center; }
.hw2::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.hw2-aur { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; pointer-events: none; z-index: 0; will-change: transform; }
.hw2-aur.a { width: 360px; height: 360px; top: -170px; right: -70px; background: radial-gradient(circle,#7c3aed,transparent 65%); animation: hw2AurA 13s ease-in-out infinite alternate; }
.hw2-aur.b { width: 320px; height: 320px; bottom: -160px; left: -80px; background: radial-gradient(circle,#4f46e5,transparent 65%); animation: hw2AurB 17s ease-in-out infinite alternate; }
@keyframes hw2AurA { to { transform: translate(-46px,34px) scale(1.16); } }
@keyframes hw2AurB { to { transform: translate(54px,-24px) scale(1.12); } }
.hw2.st-live .hw2-aur.a { background: radial-gradient(circle,#dc2626,transparent 65%); }
.hw2.st-live { box-shadow: 0 14px 40px -14px rgba(220,38,38,.5); }
.hw2.st-urgence .hw2-aur.a { background: radial-gradient(circle,#f59e0b,transparent 65%); }
.hw2.st-urgence { box-shadow: 0 14px 40px -14px rgba(245,158,11,.45); }
.hw2.st-up .hw2-aur.a { background: radial-gradient(circle,#10b981,transparent 65%); }
.hw2.st-down .hw2-aur.a { background: radial-gradient(circle,#ef4444,transparent 62%); }
.hw2.st-leader .hw2-aur.a { background: radial-gradient(circle,#f59e0b,transparent 60%); }
.hw2.st-leader .hw2-aur.b { background: radial-gradient(circle,#fbbf24,transparent 65%); opacity: .35; }
.hw2.st-champion .hw2-aur.a { background: radial-gradient(circle,#f59e0b,transparent 60%); }
.hw2.st-champion .hw2-aur.b { background: radial-gradient(circle,#fbbf24,transparent 65%); opacity: .35; }
.hw2.st-champion { box-shadow: 0 14px 40px -14px rgba(245,158,11,.5); }
.hw2.st-termine .hw2-aur.a { background: radial-gradient(circle,#64748b,transparent 65%); opacity: .4; }
.hw2.st-termine .hw2-aur.b { background: radial-gradient(circle,#475569,transparent 65%); opacity: .3; }
.hw2.st-preseason .hw2-aur.a { background: radial-gradient(circle,#6366f1,transparent 65%); }
.hw2-main { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.45rem 1.7rem 1.2rem; }
.hw2-user { display: flex; align-items: center; gap: .95rem; min-width: 0; }
.hw2-avwrap { position: relative; flex: 0 0 auto; }
.hw2-av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.25), 0 4px 14px rgba(0,0,0,.3); }
.hw2-avwrap.warn .hw2-av { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.28), 0 4px 14px rgba(0,0,0,.3); }
.hw2-avdot { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #10b981; border: 2px solid #221f57; display: flex; align-items: center; justify-content: center; font-size: .55rem; color: #fff; }
.hw2-avwrap.warn .hw2-avdot { background: #f59e0b; }
.hw2-id { min-width: 0; }
.hw2-greet { font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw2-crownico { color: #fcd34d; }
.hw2-flame { font-size: .95em; }
.hw2-line { margin-top: .28rem; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75); display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .5rem; min-height: 1.2em; }
.hw2-line b { color: #fff; }
.hw2-line sup { font-size: .6em; }
.hw2-punch { font-style: normal; transition: opacity .45s; }
.hw2-punch.fade { opacity: 0; }
.hw2-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: var(--radius-full); white-space: nowrap; }
.hw2-badge.live { background: rgba(220,38,38,.25); color: #fca5a5; }
.hw2-badge.urg { background: rgba(245,158,11,.22); color: #fcd34d; }
.hw2-badge.up { background: rgba(16,185,129,.22); color: #6ee7b7; }
.hw2-badge.down { background: rgba(239,68,68,.22); color: #fca5a5; }
.hw2-badge.gold { background: rgba(251,191,36,.24); color: #fde68a; }
.hw2-livedot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; animation: hw2Blink 1.4s ease-in-out infinite; }
@keyframes hw2Blink { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); opacity: 1; } 50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); opacity: .75; } }
.hw2-right { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.hw2-cta { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .82rem; color: #1e1b4b; text-decoration: none; background: linear-gradient(135deg,#fcd34d,#f59e0b); padding: .6rem 1.05rem; border-radius: var(--radius-full); box-shadow: 0 6px 18px -6px rgba(245,158,11,.6); white-space: nowrap; }
.hw2-cta:hover, .hw2-cta:focus { color: #1e1b4b; text-decoration: none; filter: brightness(1.04); }
.hw2-cta.pulse { animation: hw2Pulse 2s infinite; }
@keyframes hw2Pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.55); } 50% { box-shadow: 0 0 0 11px rgba(245,158,11,0); } }
.hw2-kpis { display: flex; align-items: stretch; gap: .35rem; }
.hw2-kpi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; text-decoration: none; color: #fff; padding: .45rem .8rem; border-radius: 12px; transition: background .15s; }
.hw2-kpi:hover, .hw2-kpi:focus { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.hw2-kpi:hover .hw2-kpi-v, .hw2-kpi:focus .hw2-kpi-v { color: #fff; }
.hw2-kpi:hover .hw2-kpi-v.pos, .hw2-kpi:focus .hw2-kpi-v.pos { color: #6ee7b7; }
.hw2-kpi:hover .hw2-kpi-v.neg, .hw2-kpi:focus .hw2-kpi-v.neg { color: #fca5a5; }
.hw2-kpi-v { font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hw2-kpi-v sup { font-size: .52em; font-weight: 700; }
.hw2-kpi-v.pos { color: #6ee7b7; } .hw2-kpi-v.neg { color: #fca5a5; }
.hw2-kpi-l { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.55); }
.hw2-delta { font-size: .6rem; font-weight: 800; padding: .06rem .4rem; border-radius: var(--radius-full); white-space: nowrap; }
.hw2-delta.up { background: rgba(16,185,129,.25); color: #6ee7b7; }
.hw2-delta.down { background: rgba(239,68,68,.25); color: #fca5a5; }
.hw2-delta.flat { background: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.hw2-kpi-sep { width: 1px; background: rgba(255,255,255,.14); margin: .4rem 0; }
@media (max-width: 768px) {
  .hw2-main { flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.15rem 1.15rem 1rem; }
  .hw2-right { width: 100%; justify-content: space-between; }
  .hw2-kpis { width: 100%; justify-content: space-around; }
  .hw2-greet { font-size: 1.12rem; }
  .hw2-av { width: 48px; height: 48px; }
  .hw2-kpi { padding: .4rem .5rem; }
  .hw2-kpi-v { font-size: 1.3rem; }
  .hw2-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hw2-aur, .hw2-livedot, .hw2-cta.pulse { animation: none; }
}

/* --- 5. Cards --- */
.card-pronos {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.card-pronos:hover { box-shadow: var(--shadow); }
.card-pronos .card-header-pronos {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.card-pronos .card-header-pronos h5 {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  margin: 0; display: flex; align-items: center; gap: 0.4rem;
}
.card-pronos .card-header-pronos h5 i { color: var(--primary); font-size: 0.85rem; }
.card-pronos .card-body-pronos { padding: 1.15rem; }

/* --- 6. Next matchs card --- */
.card-next { border: none; box-shadow: var(--shadow); }
.next-header {
  background: var(--gradient-primary);
  padding: 1.15rem 1.25rem; color: #fff;
}
.next-header-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.35rem;
}
.next-label { font-weight: 700; font-size: 0.95rem; }
.next-label i { margin-right: 0.4rem; }
.next-pronos-count {
  background: rgba(255,255,255,0.2);
  padding: 0.15rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.next-date { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }

.prono-status {
  padding: 0.6rem 0.8rem; border-radius: var(--radius-xs);
  font-size: 0.85rem; font-weight: 600;
  text-align: center; margin-bottom: 0.75rem;
}
.prono-status i { margin-right: 0.35rem; }
.prono-status-ok { background: var(--success-light); color: var(--success); border: 1px solid rgba(var(--success-rgb),0.15); }
.prono-status-missing { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(var(--danger-rgb),0.15); }

.match-score-badge {
  font-weight: 700; font-size: 1rem; color: var(--text);
  background: var(--bg-alt);
  padding: 0.25rem 0.6rem; border-radius: var(--radius-xs);
}
.match-live-score {
  padding: 0.3rem 0.6rem; border-radius: var(--radius-xs);
  font-weight: 700; font-size: 0.9rem; text-align: center;
}
.match-real-score { font-size: 0.65rem; font-weight: 500; opacity: 0.8; }
.match-section-label {
  padding: 0.45rem 0.8rem; border-radius: var(--radius-xs);
  font-size: 0.78rem; font-weight: 700; text-align: center;
  margin: 0.75rem 0 0.4rem;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.match-section-label.live { background: rgba(var(--danger-rgb),0.08); color: var(--danger); }
.match-section-label.finished { background: var(--bg-alt); color: var(--text-secondary); }

/* --- 7. Match rows --- */
.match-row {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.match-row:hover { background: rgba(var(--primary-rgb), 0.02); }
.match-row:last-child { border-bottom: none; }
.match-team {
  display: flex; align-items: center; gap: 0.5rem;
  width: 140px; font-weight: 600; font-size: 0.88rem;
}
.match-team.team-home { justify-content: flex-end; text-align: right; }
.match-team.team-away { justify-content: flex-start; text-align: left; }
.match-team img {
  width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.match-separator {
  font-weight: 800; color: var(--text-muted);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.match-date-separator {
  text-align: center; padding: 0.4rem 0.8rem;
  font-weight: 700; font-size: 0.75rem;
  color: var(--primary); background: var(--primary-light);
  border-radius: var(--radius-xs); margin: 0.5rem 0;
}

/* --- 8. Leader --- */
.leader-card {
  text-align: center; padding: 1.5rem;
  position: relative; overflow: hidden;
}
.leader-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 70px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb),0.08) 0%, transparent 100%);
}
.leader-card .leader-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--warning); margin-bottom: 0.6rem; position: relative;
}
.leader-card .leader-label i { margin-right: 0.25rem; }
.leader-card .avatar-xl {
  border: 3px solid var(--warning);
  box-shadow: 0 4px 16px rgba(var(--gold-rgb), 0.2);
  position: relative;
}
.leader-card .leader-name {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text); margin-top: 0.6rem; position: relative;
}
.leader-card .leader-sub { font-size: 0.78rem; color: var(--text-muted); }
.leader-card .leader-pts {
  display: inline-block; margin-top: 0.5rem;
  background: var(--gradient-gold); color: #78350f;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.25);
}

/* --- 9. Countdown --- */
.countdown {
  display: flex; justify-content: center; gap: 0.4rem; margin: 0;
}
.countdown-unit {
  text-align: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.55rem; min-width: 48px;
  backdrop-filter: blur(4px);
}
.countdown-value {
  font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1;
}
.countdown-label {
  font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-top: 0.15rem; letter-spacing: 0.05em;
}

/* --- 10. Circle Progress --- */
.circle-stats { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.circle-stat { text-align: center; }
.circle-stat .circle-value {
  font-size: 1.1rem; font-weight: 700;
  margin-top: -3rem; position: relative; line-height: 3rem;
}
.circle-stat .circle-label {
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  margin-top: 0.35rem; letter-spacing: 0.03em;
}
.circle-stat .circle-count { font-size: 0.72rem; color: var(--text-secondary); }

/* --- 11. Stat tiles --- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.stat-tile {
  border-radius: var(--radius-sm); padding: 0.75rem;
  display: flex; align-items: flex-start; gap: 0.6rem;
  transition: transform 0.2s;
}
.stat-tile:hover { transform: translateY(-1px); }
.stat-tile-success { background: var(--success-light); border: 1px solid rgba(var(--success-rgb),0.12); }
.stat-tile-danger { background: var(--danger-light); border: 1px solid rgba(var(--danger-rgb),0.1); }
.stat-tile-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
}
.stat-tile-success .stat-tile-icon { background: rgba(var(--success-rgb),0.15); color: var(--success); }
.stat-tile-danger .stat-tile-icon { background: rgba(var(--danger-rgb),0.12); color: var(--danger); }
.stat-tile-label {
  font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 0.2rem;
}
.stat-tile-club {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
}
.stat-tile-club img { width: 20px; height: 20px; object-fit: contain; }
.stat-tile-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.stat-tile-value { font-size: 0.9rem; font-weight: 800; margin-top: 0.1rem; }
.stat-tile-value.text-success { color: var(--success) !important; }
.stat-tile-value.text-danger { color: var(--danger) !important; }
@media (max-width: 576px) { .stat-grid { grid-template-columns: 1fr; } }

/* --- 12. Tables --- */
.table-pronos {
  font-size: 0.84rem; margin-bottom: 0; font-variant-numeric: tabular-nums;
}
.table-pronos thead th {
  background: var(--bg-alt); color: var(--text-muted);
  font-weight: 700; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.65rem 0.7rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap; position: sticky; top: 0; z-index: 10;
}
/* stats2 : en-tete fige sous la navbar au scroll de la page */
.card-pronos:has(.table-sticky-head) { overflow: visible; }
.table-responsive-pronos.table-sticky-head { overflow: visible; }
.table-responsive-pronos.table-sticky-head .table-pronos thead th { top: 64px; z-index: 15; }
@media (max-width: 991.98px) {
  .table-responsive-pronos.table-sticky-head .table-pronos thead th { top: 66px; }
}
/* pronostics (tableau large) : scroll interne avec en-tete fige sur desktop,
   en-tete fige sous la navbar sur mobile (colonnes matchs masquees) */
@media (min-width: 992px) {
  .table-responsive-pronos.table-sticky-scroll { max-height: calc(100vh - 80px); overflow: auto; }
}
@media (max-width: 991.98px) {
  .card-pronos:has(.table-sticky-scroll) { overflow: visible; }
  .table-responsive-pronos.table-sticky-scroll { overflow: visible; }
  .table-responsive-pronos.table-sticky-scroll .table-pronos thead th { top: 66px; z-index: 15; }
}
/* Mobile : la ligne "SCORE / Resultat" n'a plus de sens (colonnes matchs masquees) */
@media (max-width: 767.98px) {
  .table-pronos tbody tr.row-results { display: none; }
}
.table-pronos tbody td {
  padding: 0.6rem 0.7rem; vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}
.table-pronos tbody tr { transition: background 0.12s; }
.table-pronos tbody tr:hover { background: rgba(var(--primary-rgb), 0.03); }
.table-pronos tbody tr.row-highlight {
  background: linear-gradient(90deg, #dbeafe 0%, #ede9fe 100%) !important;
  box-shadow: inset 5px 0 0 var(--primary), 0 2px 8px rgba(var(--primary-rgb), 0.12);
  position: relative;
}
.table-pronos tbody tr.row-highlight:hover {
  background: linear-gradient(90deg, #c7d8f8 0%, #e0dafa 100%) !important;
}
.table-pronos tbody tr.row-highlight td {
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.18) !important;
}
.table-pronos tbody tr.row-highlight .badge-position {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
  animation: pulse-highlight 2s infinite;
}
.table-pronos tbody tr.row-highlight .avatar-sm {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25), 0 2px 8px rgba(var(--primary-rgb), 0.2);
}
@keyframes pulse-highlight {
  0%, 100% { box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4); }
  50% { box-shadow: 0 2px 16px rgba(var(--primary-rgb), 0.65); }
}
/* "C'est moi" indicator */
.table-pronos tbody tr.row-highlight td:nth-child(3) a {
  color: var(--primary-dark) !important;
  font-weight: 800 !important;
}
.table-pronos tbody tr.row-highlight td:nth-child(3)::after {
  content: "← MOI";
  display: inline-block;
  white-space: nowrap;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.score-exact { background: var(--success-light) !important; color: var(--success) !important; font-weight: 700; }
.score-coherent { background: var(--warning-light) !important; color: #92400e !important; font-weight: 600; }
.score-faux { background: var(--danger-light) !important; color: var(--danger) !important; }

/* --- 13. Badges --- */
.badge-position {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 0.45rem;
  font-size: 0.78rem; font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--primary); color: white;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb),0.25);
}
.badge-position.top-1 { background: var(--gradient-gold); color: #78350f; box-shadow: 0 2px 8px rgba(var(--gold-rgb),0.35); }
.badge-position.top-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1e293b; }
.badge-position.top-3 { background: linear-gradient(135deg, #d97706, #b45309); color: white; }
.badge-evol {
  display: inline-flex; align-items: center; gap: 0.15rem;
  padding: 0.15rem 0.4rem; font-size: 0.72rem; font-weight: 700;
  border-radius: var(--radius-full);
}
.badge-evol-up { background: var(--success-light); color: var(--success); }
.badge-evol-down { background: var(--danger-light); color: var(--danger); }
.badge-evol-same { background: var(--border-light); color: var(--text-muted); }
.badge-evol i { font-size: 0.55rem; }

/* --- 14. Avatars --- */
.avatar, .avatar-sm, .avatar-lg, .avatar-xl {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.18), 0 0 0 2px rgba(var(--primary-rgb), 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.avatar { width: 40px; height: 40px; }
.avatar:hover, .avatar-sm:hover, .avatar-lg:hover, .avatar-xl:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 12px rgba(var(--primary-rgb), 0.3), 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.avatar-sm {
  width: 32px; height: 32px;
  border-width: 2px;
  box-shadow: 0 1px 6px rgba(var(--primary-rgb), 0.15);
}
.avatar-lg {
  width: 56px; height: 56px;
  border-width: 3px;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.2), 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}
.avatar-xl {
  width: 72px; height: 72px;
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.2), 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* --- 15. Top 10 / Gains --- */
.top-list-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
}
.top-list-item:last-child { border-bottom: none; }
.top-list-item.is-me {
  background: linear-gradient(90deg, #dbeafe 0%, #ede9fe 100%);
  margin: 0 -1.15rem; padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border-left: 5px solid var(--primary);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}
.top-list-item.is-me .top-pseudo { color: var(--primary-dark); font-weight: 800; }
.top-list-item.is-me .top-points { font-weight: 800; color: var(--primary-dark) !important; }
.top-list-item.is-me .avatar-sm { border-color: var(--primary-dark); }
.top-list-item .top-rank { font-weight: 700; font-size: 0.82rem; color: var(--text-muted); min-width: 24px; text-align: center; }
.top-list-item:first-child .top-rank { color: var(--warning); }
.top-list-item .top-pseudo { font-weight: 600; font-size: 0.88rem; flex: 1; }
.top-list-item .top-points { font-weight: 700; font-size: 0.88rem; color: var(--primary); }
.gains-list .top-list-item .top-points { color: var(--success); }

/* --- 16. Score Input --- */
.score-input {
  width: 48px; height: 48px; text-align: center;
  font-size: 1.2rem; font-weight: 700;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: all 0.2s; -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button, .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb),0.12); outline: none; }
.score-input.filled { border-color: var(--success); background: var(--success-light); }

/* --- 17. Accordion --- */
.accordion-pronos .accordion-button {
  font-weight: 700; font-size: 0.95rem;
  background: var(--surface); color: var(--text);
  box-shadow: none; border-radius: var(--radius) !important;
}
.accordion-pronos .accordion-button:not(.collapsed) {
  background: var(--primary); color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.25);
}
.accordion-pronos .accordion-button:focus { box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.12); }
.accordion-pronos .accordion-item {
  border: none; border-radius: var(--radius) !important;
  margin-bottom: 0.65rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.accordion-pronos .accordion-body { padding: 1rem; }

/* --- 18. Login --- */
.login-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-dark);
  padding: 2rem; position: relative; overflow: hidden;
}
.login-wrapper::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
}
.login-wrapper::after {
  content: ''; position: absolute; bottom: -25%; left: -8%;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(79, 70, 229, 0.08);
}
.login-card {
  background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem; width: 100%; max-width: 400px;
  text-align: center; position: relative; z-index: 1;
}
.login-card .login-logo { max-width: 180px; margin-bottom: 1.75rem; }
.login-card .form-control {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; font-size: 0.95rem; transition: all 0.2s;
}
.login-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb),0.12); }
.btn-login {
  background: var(--gradient-primary); color: white; border: none;
  border-radius: var(--radius-sm); padding: 0.75rem;
  font-size: 1rem; font-weight: 600; width: 100%; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.4); }
.login-link { display: inline-block; margin-top: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.login-link:hover { color: var(--primary); }
.login-error {
  background: var(--danger-light); color: var(--danger);
  padding: 0.7rem 0.85rem; border-radius: var(--radius-xs);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem; text-align: left;
}
.login-success {
  background: var(--success-light); color: var(--success);
  padding: 0.7rem 0.85rem; border-radius: var(--radius-xs);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem; text-align: left;
}

/* --- Auth : creation compte / mot de passe oublie / reset --- */
.login-card.is-wide { max-width: 460px; }
.login-title { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.login-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.login-card .auth-row { display: flex; gap: 0.6rem; }
.login-card .auth-row > * { flex: 1; }

.auth-field { position: relative; margin-bottom: 0.7rem; }
.auth-field > i.auth-ic { position: absolute; left: 0.95rem; top: 0.85rem; color: var(--text-muted); font-size: 0.9rem; pointer-events: none; }
.login-card .auth-field .form-control { padding-left: 2.55rem; text-align: left; }
.login-card .auth-field .form-control.has-eye { padding-right: 2.7rem; }
.auth-eye { position: absolute; right: 0.4rem; top: 0.35rem; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.35rem 0.55rem; border-radius: var(--radius-xs); }
.auth-eye:hover { color: var(--primary); }

.auth-strength { display: flex; gap: 4px; margin: 0.1rem 0 0.25rem; }
.auth-strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .2s; }
.auth-strength.s1 span:nth-child(1) { background: #dc2626; }
.auth-strength.s2 span:nth-child(-n+2) { background: #f59e0b; }
.auth-strength.s3 span:nth-child(-n+3) { background: #eab308; }
.auth-strength.s4 span { background: #059669; }
.auth-strength-label { font-size: 0.7rem; color: var(--text-muted); text-align: left; margin-bottom: 0.6rem; min-height: 0.9rem; }

.auth-hint { font-size: 0.78rem; text-align: left; margin: -0.35rem 0 0.6rem; display: flex; align-items: center; gap: 0.35rem; min-height: 1rem; }
.auth-hint.ok { color: var(--success); }
.auth-hint.err { color: var(--danger); }

.login-links { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.login-links .login-link { margin-top: 0; }
.login-links-sep { color: var(--text-muted); }

@media (max-width: 480px) {
  .login-card { padding: 1.75rem 1.35rem; }
  .login-card .auth-row { flex-direction: column; gap: 0; }
}

/* --- 19. Alerts --- */
.flash-bar {
  background: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb),0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.85rem; font-weight: 500; color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.flash-bar .flash-icon { font-size: 1rem; }
.flash-bar .flash-count {
  background: var(--danger); color: white;
  padding: 0.08rem 0.45rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}
.alert-cotisation {
  background: var(--danger-light);
  border: 1px solid rgba(var(--danger-rgb),0.12);
  border-left: 4px solid var(--danger);
  color: var(--danger); border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.alert-photo {
  background: var(--warning-light);
  border: 1px solid rgba(var(--warning-rgb),0.15);
  border-left: 4px solid var(--warning);
  color: #92400e; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem; font-weight: 500; margin-bottom: 0.75rem;
}
.alert-photo a { color: #92400e; font-weight: 700; text-decoration: underline; }

/* CTA inscription (tableau de bord) */
.inscription-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
  border: 1px solid var(--primary); box-shadow: var(--shadow-sm);
}
.inscription-cta-text { display: flex; align-items: center; gap: 0.95rem; min-width: 0; }
.inscription-cta-text > i { font-size: 1.7rem; color: var(--primary); flex-shrink: 0; }
.inscription-cta-title { font-weight: 800; color: var(--text); font-size: 1.02rem; line-height: 1.2; }
.inscription-cta-sub { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.1rem; }
.inscription-cta .btn-primary-gradient { flex-shrink: 0; }
@media (max-width: 575px) {
  .inscription-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .inscription-cta-text { flex-direction: column; text-align: center; gap: 0.5rem; }
  .inscription-cta .btn-primary-gradient { width: 100%; }
}

/* --- 20. Filters --- */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  padding: 0.85rem 1.15rem;
  background: var(--bg-alt); border-bottom: 1px solid var(--border-light);
}
.filters-bar label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-right: 0.2rem; }
.filters-bar select {
  font-size: 0.82rem; border: 1px solid var(--border);
  border-radius: var(--radius-xs); padding: 0.35rem 0.55rem;
  color: var(--text); background: var(--surface);
}
.filters-bar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1); outline: none; }

/* --- 21. Table scroll --- */
.table-responsive-pronos {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 0 0 var(--radius) var(--radius);
  max-width: 100%;
}
@media (max-width: 768px) {
  .card-pronos {
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  /* En mobile le tableau tient dans l'ecran (table-layout fixed) : pas de scroll
     horizontal, donc pas d'overflow. -webkit-overflow-scrolling:touch + overflow
     creait une couche de compositing qui rognait les avatars sur appareil reel. */
  .table-responsive-pronos {
    overflow: visible;
    -webkit-overflow-scrolling: auto;
  }
  /* Force table to fit viewport on mobile */
  .table-pronos {
    width: 100% !important;
    table-layout: fixed;
  }
  .table-pronos th,
  .table-pronos td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Les cellules badge (#) et avatar ne doivent PAS etre rognees par le overflow:hidden ci-dessus */
  .table-pronos td:first-child,
  .table-pronos td:nth-child(2) { overflow: visible; }
  .table-pronos th:nth-child(2),
  .table-pronos td:nth-child(2) { width: 46px; }
  .table-pronos .avatar-sm { vertical-align: middle; }
}

/* --- 22. Buttons --- */
.btn-pronos {
  background: var(--gradient-primary); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(var(--primary-rgb),0.2);
  text-decoration: none;
}
.btn-pronos:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(var(--primary-rgb),0.3); color: white; }
.btn-pronos i { margin-right: 0.3rem; }
.predicted-check { color: var(--success); font-size: 0.78rem; }

/* --- 23. Page title --- */
.page-title {
  font-size: 1.4rem; font-weight: 800; color: var(--text);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.7rem;
  letter-spacing: -0.01em; line-height: 1.2;
}
.page-title i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; flex-shrink: 0;
  font-size: 1rem; color: #fff;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 14px -3px rgba(var(--primary-rgb), 0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.page-title::after {
  content: ""; flex: 1; height: 2px; min-width: 1.5rem; margin-left: 0.25rem;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.25), transparent);
  border-radius: 2px;
}

/* --- 24. Status dots --- */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.live { background: var(--danger); animation: pulse-live 1.5s infinite; }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- Mobile concours name in navbar center --- */
.mobile-navbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.mobile-concours-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 140px;
  margin: 0 auto;
}

/* --- Mobile user badge in navbar --- */
.mobile-user-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.mobile-user-pos {
  background: rgba(255,255,255,0.2);
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  color: #fff;
  font-size: 0.7rem;
}
.mobile-user-pos sup { font-size: 0.5em; }
.mobile-user-pts { color: rgba(255,255,255,0.8); }

/* --- 25. Offcanvas mobile --- */
.offcanvas-pronos {
  max-width: 300px;
  border-right: none;
  box-shadow: var(--shadow-lg);
  /* iOS : forcer un layout flex avec hauteur explicite, sinon offcanvas-body ne scrolle pas */
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh; /* dynamic viewport height : tient compte de la barre URL Safari */
  overscroll-behavior: contain;
}
.offcanvas-pronos .offcanvas-body {
  flex: 1 1 auto;
  min-height: 0; /* indispensable : sinon le flex-item ne shrink pas et overflow ne s'active jamais */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Espace en bas pour la safe-area iOS (home indicator) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.offcanvas-user-info {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.15rem 1rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
}
.offcanvas-user-rank {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff;
  padding: 0.1rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.25);
}
.offcanvas-pronos .nav-link {
  padding: 0.6rem 0.85rem; border-radius: var(--radius-xs);
  font-weight: 500; color: var(--text); font-size: 0.88rem; transition: all 0.15s;
}
.offcanvas-pronos .nav-link:hover, .offcanvas-pronos .nav-link.active { background: var(--primary-light); color: var(--primary); }
.offcanvas-pronos .nav-link i { width: 22px; text-align: center; margin-right: 0.45rem; color: var(--text-muted); font-size: 0.85rem; }
.offcanvas-pronos .nav-link:hover i, .offcanvas-pronos .nav-link.active i { color: var(--primary); }
.offcanvas-pronos .nav-section-title {
  font-size: 0.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); padding: 0.9rem 0.85rem 0.4rem;
}

/* --- 26. Responsive --- */
@media (max-width: 768px) {
  .match-team { width: 100px; font-size: 0.8rem; }
  .match-team img { width: 24px; height: 24px; }
  .score-input { width: 40px; height: 40px; font-size: 1rem; }
  .countdown-value { font-size: 1.1rem; }
  .countdown-unit { min-width: 42px; padding: 0.35rem 0.45rem; }
  .user-badge { display: none; }
  .table-pronos { font-size: 0.78rem; }
  .table-pronos thead th { font-size: 0.68rem; padding: 0.5rem 0.3rem; }
  .table-pronos tbody td { padding: 0.5rem 0.3rem; }
  /* Avatars : retirer le halo (box-shadow) qui débordait verticalement et était
     coupé par l'overflow du tableau scrollable -> avatars "coupés" sur mobile */
  .table-pronos .avatar-sm,
  .table-pronos tbody tr.row-highlight .avatar-sm { box-shadow: none; }
  /* Prevent long pseudo names from causing overflow */
  .table-pronos tbody td:nth-child(3) { max-width: 80px; }
  .table-pronos tbody td:nth-child(3) a { font-size: 0.76rem; }
  /* Highlight row on mobile - stronger */
  .table-pronos tbody tr.row-highlight {
    box-shadow: inset 5px 0 0 var(--primary), 0 2px 8px rgba(var(--primary-rgb), 0.15);
  }
  /* Hide MOI label on small screens to save space */
  .table-pronos tbody tr.row-highlight td:nth-child(3)::after {
    content: "";
    display: none;
  }
  .page-title { font-size: 1.1rem; gap: 0.55rem; }
  .page-title i { width: 1.95rem; height: 1.95rem; font-size: 0.9rem; }
  /* Container fluid less padding */
  .container-fluid { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
}
@media (max-width: 576px) {
  .match-team { width: 80px; font-size: 0.75rem; }
  .match-row { gap: 0.4rem; }
  body { font-size: 13px; }
}

/* --- 27. Mobile Detail Expand --- */

/* Bouton toggle */
.btn-detail-toggle {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  transition: all 0.2s;
  padding: 0;
}
.btn-detail-toggle:hover,
.btn-detail-toggle:focus {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-detail-toggle i {
  transition: transform 0.25s ease;
}

/* Ligne detail cachee par defaut */
.detail-row {
  display: none !important;
}
.detail-row.open {
  display: table-row !important;
}
.detail-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--primary-light) !important;
  background: var(--bg) !important;
}
.detail-row.open td {
  padding: 0.6rem 0.75rem !important;
}

/* Grille detail classement */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.4rem;
}
.detail-item {
  text-align: center;
  padding: 0.45rem;
  background: var(--surface);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}
.detail-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.detail-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.score-exact-text { color: var(--success) !important; }
.score-coherent-text { color: var(--warning) !important; }
.score-faux-text { color: var(--danger) !important; }

/* Detail pronostics match par match */
.detail-matches {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.detail-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}
.detail-match-teams {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.detail-team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  font-size: 0.73rem;
}
.detail-match-vs {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.detail-match-logo {
  width: 18px; height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.detail-match-prono {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  text-align: center;
  min-width: 38px;
}
.detail-match-score {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 30px;
  text-align: center;
}

/* Masquer colonne bouton sur desktop */
@media (min-width: 768px) {
  .d-md-none { display: none !important; }
}

/* --- 28. Info Bar (compact, toutes pages) --- */
.infobar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
  font-size: 0.76rem;
  position: relative;
  z-index: 1020;
}
.infobar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.infobar-inner::-webkit-scrollbar { display: none; }

.infobar-section {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
}
.infobar-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.72rem;
}
.infobar-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

/* Online section */
.infobar-online .status-dot { margin-right: 0.1rem; }
.infobar-online .infobar-label { color: var(--success); }
.infobar-online-list {
  display: flex; align-items: center; gap: 0.35rem;
}
.infobar-online-user {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.infobar-online-user .infobar-avatar {
  border-color: var(--success);
}

/* Flash section */
.infobar-flash {
  background: rgba(var(--warning-rgb), 0.06);
  border-color: rgba(var(--warning-rgb), 0.12);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.infobar-flash:hover {
  background: rgba(var(--warning-rgb), 0.12);
  box-shadow: 0 0 0 2px rgba(var(--warning-rgb), 0.15);
}
.infobar-flash-icon {
  color: var(--warning);
  font-size: 0.7rem;
}
.infobar-flash-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Flash Modal */
/* ===== Flash Infos — modal redessinée (fil chronologique + scoreboard) ===== */
#flashModal .modal-dialog { max-width: 480px; }
#flashModal .modal-content { border: none; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.flash-modal-header { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; border: none; padding: 0.9rem 1rem; align-items: center; }
.flash-modal-head-l { display: flex; align-items: center; gap: 0.7rem; }
.flash-modal-bolt { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.flash-modal-title { font-size: 1.05rem; font-weight: 800; line-height: 1.1; color: #fff; }
.flash-modal-sub { font-size: 0.7rem; opacity: 0.85; font-weight: 600; }
#flashModal .modal-body { background: var(--bg-alt); padding: 1.1rem 0.95rem; }

/* Timeline */
.flash-modal-item { position: relative; padding: 0 0 1.15rem 1.85rem; background: none; border: none; overflow: visible; }
.flash-modal-item:last-child { padding-bottom: 0.1rem; }
.flash-modal-item::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: -2px; width: 2px; background: var(--border); }
.flash-modal-item:last-child::before { display: none; }
.flash-modal-item::after { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--text-muted); box-shadow: 0 0 0 3px var(--bg-alt); }
.flash-modal-item.fc-type-end::after { border-color: #4f46e5; }
.flash-modal-item.fc-type-start::after { border-color: #16a34a; }
.flash-modal-item.fc-type-leader::after { border-color: #f59e0b; }
.flash-modal-date { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--border-light); padding: 0.28rem 0.85rem 0.28rem 0.3rem; border-radius: var(--radius-full); margin-bottom: 0.65rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07); }
.fmd-ic { width: 27px; height: 27px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-primary); color: #fff; font-size: 0.72rem; box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.35); }
.fmd-time { font-weight: 800; font-size: 1.02rem; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.01em; }
.fmd-date { font-weight: 700; font-size: 0.72rem; color: var(--text-secondary); }
.fc-type-end .fmd-ic { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4); }
.fc-type-start .fmd-ic { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4); }
.fc-type-leader .fmd-ic { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4); }
.flash-modal-content { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* Carte d'évènement */
.fc-card { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 0.75rem 0.8rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); }

/* Scoreboard (match) */
.fc-match { display: flex; align-items: center; gap: 0.4rem; }
.fc-team { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.fc-team-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12)); }
.fc-team-name { font-size: 0.72rem; font-weight: 700; color: var(--text); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-match-mid { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0 0.3rem; }
.fc-match-score { font-size: 1.5rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.fc-match-score.fc-vs { font-size: 1rem; color: var(--text-muted); }
.fc-match-tag { font-size: 0.56rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.1rem 0.45rem; border-radius: var(--radius-full); white-space: nowrap; }
.fc-card-end .fc-match-tag { background: #eef2ff; color: #4f46e5; }
.fc-card-start .fc-match-tag { background: #dcfce7; color: #16a34a; }

/* Titre simple (leader / info) */
.fc-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 0.85rem; color: var(--text); text-transform: uppercase; line-height: 1.3; }
.fc-title-ic { font-size: 1.2rem; line-height: 1; }
.fc-leader-photo { text-align: center; padding: 0.6rem 0 0.2rem; }
.fc-leader-photo img { max-width: 120px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Sections (exacts / cohérents / faux / tops) */
.fc-sections { margin-top: 0.65rem; display: flex; flex-direction: column; gap: 0.4rem; }
.fc-section { background: var(--bg-alt); border-radius: 10px; border-left: 3px solid var(--border); padding: 0.45rem 0.55rem; }
.fc-section.fc-sec-exact { border-left-color: #16a34a; }
.fc-section.fc-sec-coherent { border-left-color: #2563eb; }
.fc-section.fc-sec-faux { border-left-color: #dc2626; }
.fc-section.fc-sec-nul, .fc-section.fc-sec-tops { border-left-color: #f59e0b; }
.fc-sec-head { display: flex; align-items: center; gap: 0.35rem; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 0.4rem; }
.fc-sec-exact .fc-sec-head { color: #16a34a; }
.fc-sec-coherent .fc-sec-head { color: #2563eb; }
.fc-sec-faux .fc-sec-head { color: #dc2626; }
.fc-sec-nul .fc-sec-head, .fc-sec-tops .fc-sec-head { color: #b45309; }
/* Grille de cards : exacts/cohérents/faux (terminé) ou équipe/nul/équipe (coup d'envoi) */
.fc-statgrid { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fc-statcard { flex: 1 1 28%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; background: var(--bg-alt); border: 1px solid var(--border-light); border-top: 3px solid var(--border); border-radius: 12px; padding: 0.6rem 0.4rem; text-align: center; }
.fc-statcard-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-secondary); line-height: 1.2; }
.fc-statcard-n { font-size: 1.55rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.fc-statcard-pct { font-size: 0.64rem; font-weight: 800; padding: 0.06rem 0.45rem; border-radius: var(--radius-full); background: rgba(100, 116, 139, 0.16); color: #475569; }
.fc-statcard.fc-sec-exact { border-top-color: #16a34a; } .fc-statcard.fc-sec-exact .fc-statcard-label, .fc-statcard.fc-sec-exact .fc-statcard-n { color: #16a34a; } .fc-statcard.fc-sec-exact .fc-statcard-pct { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.fc-statcard.fc-sec-coherent { border-top-color: #2563eb; } .fc-statcard.fc-sec-coherent .fc-statcard-label, .fc-statcard.fc-sec-coherent .fc-statcard-n { color: #2563eb; } .fc-statcard.fc-sec-coherent .fc-statcard-pct { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.fc-statcard.fc-sec-faux { border-top-color: #dc2626; } .fc-statcard.fc-sec-faux .fc-statcard-label, .fc-statcard.fc-sec-faux .fc-statcard-n { color: #dc2626; } .fc-statcard.fc-sec-faux .fc-statcard-pct { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.fc-statcard.fc-sec-nul { border-top-color: #f59e0b; } .fc-statcard.fc-sec-nul .fc-statcard-label, .fc-statcard.fc-sec-nul .fc-statcard-n { color: #b45309; } .fc-statcard.fc-sec-nul .fc-statcard-pct { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.fc-statcard.fc-sec-team { border-top-color: #94a3b8; }
/* détail joueurs listés (ex. buteurs exacts) sous la grille */
.fc-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.fc-detail-label { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.12rem 0.5rem; border-radius: var(--radius-full); background: var(--bg-alt); color: var(--text-secondary); }
.fc-detail.fc-sec-exact .fc-detail-label { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.fc-detail.fc-sec-coherent .fc-detail-label { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.fc-detail.fc-sec-faux .fc-detail-label { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.fc-detail.fc-sec-nul .fc-detail-label, .fc-detail.fc-sec-team .fc-detail-label { background: rgba(100, 116, 139, 0.16); color: #475569; }
.fc-players { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.fc-player { display: inline-flex; align-items: center; gap: 0.3rem; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-full); padding: 0.12rem 0.55rem 0.12rem 0.14rem; font-size: 0.7rem; }
.fc-player-av { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-alt); }
.fc-player-av-ph { background: var(--border-light); }
.fc-player strong { color: var(--text); font-weight: 700; }
.fc-player small { color: var(--text-muted); font-size: 0.6rem; }
.fc-tops { display: flex; gap: 0.4rem; }
.fc-top { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 0.55rem 0.3rem; text-align: center; }
.fc-top-medal { font-size: 1.15rem; line-height: 1; }
.fc-top-score { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; font-size: 1rem; white-space: nowrap; }
.fc-top-stat { font-size: 0.64rem; color: var(--text-muted); white-space: nowrap; }
.fc-top-stat b { font-weight: 800; font-size: 0.82rem; color: var(--text); }
.fc-top-pct { font-size: 0.64rem; font-weight: 800; padding: 0.06rem 0.45rem; border-radius: var(--radius-full); background: rgba(180, 83, 9, 0.12); color: #b45309; }

/* Records & Fun Facts ticker (replaces fun fact section) */
.infobar-records {
  background: rgba(var(--primary-rgb), 0.04);
  border-color: rgba(var(--primary-rgb), 0.08);
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  min-height: 24px;
}
.infobar-record-slide {
  display: none;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}
.infobar-record-slide.active {
  display: flex;
  animation: infobarRecordFadeIn 0.4s ease;
}
@keyframes infobarRecordFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.infobar-record-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 800;
  flex-shrink: 0;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.infobar-record-label-success { color: var(--success); background: var(--success-light); }
.infobar-record-label-warning { color: var(--warning); background: var(--warning-light); }
.infobar-record-label-danger { color: var(--danger); background: var(--danger-light); }
.infobar-record-label-primary { color: var(--primary); background: var(--primary-light); }
.infobar-record-label-gold { color: #92400e; background: #fffbeb; }
.infobar-record-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.infobar-record-text strong { color: var(--text); font-weight: 700; }
.infobar-thumb-club {
  border-radius: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-color: var(--border) !important;
}
.infobar-record-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--border-light);
}
.infobar-record-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  animation: infobarRecordTimer 8s linear infinite;
}
@keyframes infobarRecordTimer {
  from { width: 0%; }
  to { width: 100%; }
}

/* Online section cliquable */
.infobar-online {
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.infobar-online:hover {
  background: rgba(var(--success-rgb), 0.08);
  box-shadow: 0 0 0 2px rgba(var(--success-rgb), 0.12);
}

/* --- Modal Connectes --- */
.online-modal-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.online-modal-user:last-child { border-bottom: none; }
.online-modal-user:hover { background: var(--bg-alt); }
.online-modal-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--success);
  flex-shrink: 0;
}
.online-modal-pseudo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* --- Modal Profil Pronostiqueur --- */
.profil-modal-header {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 1.2rem 1.25rem;
}
.profil-modal-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.profil-modal-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.profil-modal-name {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}
.profil-modal-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
}
.profil-modal-field:last-child { border-bottom: none; }
.profil-modal-field-muted { opacity: 0.7; }
.profil-modal-field-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.profil-icon-primary { background: var(--primary-light); color: var(--primary); }
.profil-icon-danger { background: var(--danger-light); color: var(--danger); }
.profil-icon-success { background: var(--success-light); color: var(--success); }
.profil-icon-warning { background: var(--warning-light); color: var(--warning); }
.profil-modal-field-body { flex: 1; min-width: 0; }
.profil-modal-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}
.profil-modal-field-value {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

/* --- 29. Circle Progress (circle.php) --- */
.circle-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.circle-svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.circle-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 1.1rem; font-weight: 700; }
.circle-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-top: 0.5rem; }
.circle-count { font-size: 0.75rem; color: var(--text); }

/* --- 30. Alertes Saisie --- */
.alert-pronos { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.alert-pronos-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(var(--success-rgb), 0.3); }
.alert-pronos-danger { background: var(--danger-light); color: var(--danger); }

/* --- 31. Saisie Page Utilities --- */
.saisie-container { max-width: 700px; margin: 0 auto; }
.accordion-title-wrap { flex: 1; }
.accordion-date { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; margin-left: 0.5rem; }
.badge-match-count { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 50px; background: var(--primary-light); color: var(--primary); margin-right: 0.5rem; }
.empty-icon { font-size: 2rem; color: var(--text-muted); }
.empty-text { color: var(--text-muted); font-weight: 500; }

/* --- 32. Table Utilities (stats2 + pronostics) --- */
.th-rank { width: 40px; text-align: center; }
.th-avatar { width: 35px; }
.th-evol { width: 70px; }
.th-classement { width: 80px; }
.th-mobile-toggle { width: 40px; }
.th-pseudo { min-width: 80px; }
.td-total { font-weight: 700; }
.player-link { color: var(--text); font-weight: 600; text-decoration: none; }
.player-link:hover { color: var(--primary); }
.icon-me { font-size: 6px; color: var(--primary); vertical-align: middle; }
.icon-champion { font-size: 10px; color: var(--gold); }
.icon-leader { font-size: 9px; color: var(--gold); }

/* --- 33. Pronostics Table --- */
.th-match-col { font-size: 0.65rem; line-height: 1.3; padding: 0.4rem; }
.match-logo-sm { width: 16px; height: 16px; object-fit: contain; }
.th-match-teams { margin-top: 2px; }
.row-results { background: var(--bg-alt); font-weight: 700; }
.td-score-label { color: var(--text-muted); font-size: 0.7rem; }
.td-result-label { color: var(--text-muted); font-size: 0.75rem; }
.match-minutes { font-size: 0.72rem; }
.row-prono { height: 50px; }
.td-prono-score { font-size: 0.85rem; font-weight: 600; }
.td-classement-gen { font-size: 0.8rem; }
.pos-gen-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* --- 34. Card Header Utilities (top + gains) --- */
.card-header-link { font-size: 0.8rem; font-weight: 500; }
.card-header-count { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 0.15rem 0.6rem; border-radius: var(--radius-full); }
.card-header-count i { font-size: 0.72rem; }
.card-body-compact { padding: 0.75rem 1.25rem; }
.badge-position-sm { font-size: 0.7rem; min-width: 24px; height: 24px; }
.text-success-var { color: var(--success); }

/* --- 35. Stats Chart Pages --- */
.stats-chart-container { max-width: 960px; margin: 0 auto; }
.stats-subtitle { font-size: 0.875rem; color: var(--text-secondary); font-style: italic; text-align: center; margin-bottom: 1rem; }
.select-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.select-panel-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; text-align: center; }
.select-row { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.select-row:last-child { margin-bottom: 0; }
.select-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.select-row select {
  flex: 1; padding: 0.375rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-xs); font-size: 0.875rem; color: var(--text);
  background: var(--surface); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.select-row select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15); }
.chart-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.chart-wrapper { position: relative; width: 100%; min-height: 400px; max-height: 700px; }
.chart-wrapper canvas { width: 100% !important; }
.legend-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light); }
.legend-item {
  display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem;
  color: var(--text-secondary); cursor: pointer; padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs); transition: background 0.15s;
}
.legend-item:hover { background: var(--bg-alt); }
.legend-item.dimmed { opacity: 0.35; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.legend-name { font-weight: 500; }
.legend-pos { font-size: 0.6875rem; color: var(--text-muted); margin-left: 2px; }
.no-data { text-align: center; padding: 3.5rem 1.25rem; color: var(--text-muted); font-size: 0.9375rem; }
.google-chart-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}

/* --- 36. Palmarès : KPI, Hall of Fame, Podium --- */
.pal-kpi { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pal-kpi .stats8-kpi-tile.is-rate { grid-column: auto; }
.pal-kpi-champ { text-transform: none; letter-spacing: 0; font-size: 0.72rem; color: var(--text-secondary); line-height: 1.25; }

/* Bilan : bandeau 8 KPI (4 colonnes, 2 sur mobile) */
.stats8-kpi.bilan-kpi { grid-template-columns: repeat(4, 1fr); }
.stats8-kpi.bilan-kpi .stats8-kpi-tile.is-rate { grid-column: auto; }
@media (max-width: 600px) { .stats8-kpi.bilan-kpi { grid-template-columns: repeat(2, 1fr); } }

/* Hall of Fame : les plus titrés */
.pal-hof { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pal-hof-item {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 999px;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease;
}
.pal-hof-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pal-hof-item.is-top { border-color: var(--gold); background: rgba(245,158,11,0.10); }
.pal-hof-item.is-top img { border-width: 3px; }
.pal-hof-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.pal-hof-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.pal-hof-count {
  display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 800; font-size: 0.85rem;
  color: #b8860b; background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pal-hof-count i { -webkit-text-fill-color: initial; color: var(--gold); }

/* Podium */
.podium-section-title {
  font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 1rem;
  padding: 0.75rem; background: var(--gradient-dark); color: #fff; border-radius: var(--radius-sm);
}
.podium-wrap { display: flex; align-items: flex-end; justify-content: center; gap: 0.5rem; }
.podium-item { flex: 1; max-width: 200px; text-align: center; }
.podium-info { padding: 0.5rem 0.35rem 0.65rem; }
.podium-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 0.4rem; border: 3px solid var(--border); display: block; box-shadow: var(--shadow-sm);
}
.podium-item.first .podium-photo { width: 84px; height: 84px; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.podium-item.second .podium-photo { border-color: #9ca3af; }
.podium-item.third .podium-photo { border-color: #c2772f; }
.podium-pseudo { font-weight: 700; font-size: 0.9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-realname { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-points { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-top: 0.2rem; }
.podium-rank {
  display: flex; justify-content: center; align-items: flex-start; padding-top: 0.5rem;
  font-size: 1.8rem; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.25);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.podium-rank.first { min-height: 96px; background: var(--gradient-gold); }
.podium-rank.second { min-height: 64px; background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%); }
.podium-rank.third { min-height: 44px; background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
.palmares-legacy { padding: 1.5rem; }
.palmares-legacy h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.palmares-legacy h3 i { color: var(--primary); }
.palmares-legacy h3:not(:first-child) { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); }
.palmares-legacy ul { list-style: none; padding: 0; margin: 0; }
.palmares-legacy li { font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--text-secondary); padding-left: 1.1rem; position: relative; }
.palmares-legacy li::before { content: "\f091"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--gold); position: absolute; left: 0; font-size: 0.75rem; top: 0.15rem; }

@media (max-width: 575px) {
  .podium-photo { width: 52px; height: 52px; }
  .podium-item.first .podium-photo { width: 66px; height: 66px; }
  .podium-pseudo { font-size: 0.8rem; }
  .podium-points { font-size: 0.92rem; }
  .podium-rank { font-size: 1.4rem; }
}

/* --- 37. Bilan : sélecteur, KPI, cartes par saison --- */
.bilan-selector { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.bilan-selector-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); flex-shrink: 0; }
.bilan-selector-info { flex: 1; min-width: 120px; }
.bilan-selector-name { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.bilan-selector-real { font-size: 0.85rem; color: var(--text-muted); }
.bilan-selector-field { display: flex; flex-direction: column; gap: 0.25rem; }
.bilan-selector-field label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.bilan-selector-field select {
  padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-xs);
  background: var(--surface); color: var(--text); font-size: 0.9rem; min-width: 180px; cursor: pointer;
}

.bilan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.bilan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bilan-card.is-empty { opacity: 0.65; }
.bilan-card-header {
  background: var(--gradient-dark); color: #fff; padding: 0.7rem 1rem; font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.bilan-medal { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff; flex-shrink: 0; }
.bilan-medal-gold { background: var(--gradient-gold); }
.bilan-medal-silver { background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%); }
.bilan-medal-bronze { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
.bilan-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; background: rgba(255, 255, 255, 0.18); color: #fff; padding: 0.18rem 0.6rem; border-radius: 999px; flex-shrink: 0; }
.bilan-live i { font-size: 0.5rem; color: #4ade80; animation: bilanPulse 1.6s ease-in-out infinite; }
@keyframes bilanPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.bilan-live-note { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin: -0.45rem 0 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem; }
/* Classement all-time */
.alltime-titres { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.72rem; font-weight: 700; color: #b45309; background: rgba(251, 191, 36, 0.16); padding: 0.05rem 0.4rem; border-radius: 999px; vertical-align: middle; margin-left: 0.2rem; }
.alltime-titres i { font-size: 0.62rem; }
.alltime-note { padding: 0.85rem 1.25rem; font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.5rem; border-top: 1px solid var(--border-light); }
.alltime-note i { color: var(--primary); margin-top: 0.15rem; flex-shrink: 0; }

/* ===== Comparateur de joueurs ===== */
.cmp-hint-inline { font-weight: 500; color: var(--text-muted); font-size: 0.82rem; }
/* Multi-select avec recherche (combobox a chips) */
.card-pronos:has(.cmp-select) { overflow: visible; }
.cmp-select { position: relative; }
.cmp-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 50px; padding: 0.45rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: text; transition: border-color 0.12s, box-shadow 0.12s; }
.cmp-tokens.is-focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.cmp-token { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.35rem 0.2rem 0.25rem; background: rgba(var(--primary-rgb), 0.08); border: 1px solid rgba(var(--primary-rgb), 0.25); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.cmp-token img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cmp-token-x { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 0.1rem; display: inline-flex; }
.cmp-token-x:hover { color: var(--danger); }
.cmp-search { flex: 1 1 120px; min-width: 120px; border: 0; outline: 0; background: transparent; font-size: 0.9rem; padding: 0.3rem 0.25rem; color: var(--text); }
.cmp-dropdown { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16); max-height: 290px; overflow: auto; padding: 0.3rem; }
.cmp-option { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.55rem; border-radius: var(--radius-xs); cursor: pointer; }
.cmp-option:hover, .cmp-option.is-active { background: rgba(var(--primary-rgb), 0.09); }
.cmp-option img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cmp-option-name { font-size: 0.88rem; font-weight: 600; }
.cmp-dropdown-empty, .cmp-dropdown-max { padding: 0.7rem 0.55rem; font-size: 0.84rem; text-align: center; }
.cmp-dropdown-empty { color: var(--text-muted); }
.cmp-dropdown-max { color: var(--danger); font-weight: 600; }
.cmp-roster-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.cmp-counter { font-weight: 700; color: var(--text-secondary); font-size: 0.9rem; }
.cmp-counter.is-low { color: var(--danger); }

.cmp-players { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
.cmp-player-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); text-decoration: none; box-shadow: var(--shadow-sm); }
.cmp-player-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cmp-chip-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }

.cmp-verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.cmp-vcard { padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cmp-vcard-ic { font-size: 1.15rem; margin-bottom: 0.25rem; }
.cmp-vcard-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.cmp-vcard-name { font-weight: 800; font-size: 1.02rem; color: var(--text); line-height: 1.2; margin-top: 0.1rem; }
.cmp-vcard-val { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }

.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 0 0 var(--radius) var(--radius); scroll-behavior: smooth; }
.cmp-scroll-wrap { position: relative; }
.cmp-scroll-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 40px; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--surface)); z-index: 6; }
.cmp-scroll-wrap.can-right::after { opacity: 1; }
.cmp-exaequo { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); background: var(--border-light); padding: 0.05rem 0.35rem; border-radius: 999px; vertical-align: middle; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; font-size: 0.88rem; }
.cmp-table th, .cmp-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border-light); text-align: center; white-space: nowrap; vertical-align: middle; }
.cmp-table .cmp-metric { position: sticky; left: 0; background: var(--surface); text-align: left; font-weight: 600; color: var(--text-secondary); z-index: 2; box-shadow: 5px 0 8px -5px rgba(15, 23, 42, 0.18); min-width: 150px; }
.cmp-table thead .cmp-metric { z-index: 3; }
.cmp-phead { font-size: 0.82rem; font-weight: 700; color: var(--text); border-top: 3px solid var(--primary); background: var(--bg); }
.cmp-phead img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 0.2rem; }
.cmp-best { background: rgba(251, 191, 36, 0.16); font-weight: 800; color: #7c5b08; }
.cmp-best-ic { color: #f59e0b; font-size: 0.7rem; }
.cmp-season-rank { font-weight: 800; color: var(--primary); }
.cmp-season-pts { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.25rem; }
.cmp-na { color: var(--text-muted); }
.cmp-live { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: #2563eb; background: rgba(37, 99, 235, 0.12); padding: 0.05rem 0.4rem; border-radius: 999px; margin-left: 0.35rem; vertical-align: middle; }

.cmp-jcommon { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1rem; }
.cmp-jrow { display: grid; grid-template-columns: 130px 1fr; gap: 0.8rem; align-items: center; margin-bottom: 0.7rem; }
.cmp-jname { font-weight: 600; font-size: 0.86rem; display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.cmp-jbar { height: 20px; border-radius: 6px; background: var(--border-light); overflow: hidden; display: flex; }
.cmp-jbar .win { background: var(--success); }
.cmp-jbar .last { background: var(--danger); }
.cmp-jmeta { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.2rem; display: flex; gap: 0.9rem; }
.cmp-jmeta-win { color: var(--success); font-weight: 600; }
.cmp-jmeta-last { color: var(--danger); font-weight: 600; }
@media (max-width: 575.98px) {
  .cmp-jrow { grid-template-columns: 90px 1fr; gap: 0.5rem; }
  .cmp-table th, .cmp-table td { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
  .cmp-table .cmp-metric { min-width: 110px; }
  .cmp-phead img { width: 26px; height: 26px; }
  .cmp-verdict { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
}
.bilan-card-body { padding: 1.1rem 1.25rem 1.25rem; text-align: center; flex: 1; }
.bilan-position { font-size: 2.1rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.75rem; }
.bilan-position small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.bilan-stats { text-align: left; }
.bilan-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--border-light); }
.bilan-stat-label { font-size: 0.85rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.45rem; }
.bilan-stat-label i { width: 14px; text-align: center; color: var(--text-muted); }
.bilan-stat-value { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bilan-stat-value.exact { color: var(--success); }
.bilan-stat-value.coherent { color: var(--warning); }
.bilan-stat-value.faux { color: var(--danger); }
.bilan-stat-total { border-bottom: none; margin-top: 0.2rem; padding-top: 0.6rem; border-top: 2px solid var(--border); }
.bilan-stat-total .bilan-stat-label { font-weight: 800; color: var(--text); font-size: 0.95rem; }
.bilan-stat-total .bilan-stat-value { color: var(--primary); font-size: 1.2rem; font-weight: 800; }
.bilan-bw-grid { display: grid; grid-template-columns: 1fr; gap: 0.4rem; margin-top: 0.9rem; }
.bilan-bw { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.7rem; background: var(--bg-alt); border-radius: var(--radius-xs); font-size: 0.82rem; min-width: 0; }
.bilan-bw > i { flex-shrink: 0; }
.bilan-bw img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.bilan-bw-j { flex: 1; min-width: 0; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bilan-bw > span:last-child { margin-left: auto; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.bilan-not-registered { color: var(--text-muted); font-style: italic; padding: 2.5rem 0; }
.bilan-not-registered i { font-size: 1.75rem; opacity: 0.5; margin-bottom: 0.5rem; }

/* ===== Trophées ===== */
.trophy-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; }
.trophy-toolbar-field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 220px; }
.trophy-toolbar-field label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.4rem; }
.trophy-toolbar-field label i { color: var(--primary); }
.trophy-toolbar-field select { padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.9rem; font-weight: 600; color: var(--text); cursor: pointer; }

.trophy-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; box-shadow: var(--shadow); margin-bottom: 1.4rem; flex-wrap: wrap; }
.trophy-hero-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.5); flex-shrink: 0; }
.trophy-hero-info { flex: 1 1 200px; min-width: 0; }
.trophy-hero-name { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.trophy-hero-sub { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.6rem; }
.trophy-hero-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.22); overflow: hidden; }
.trophy-hero-bar-fill { height: 100%; background: #fff; border-radius: 999px; transition: width 0.4s; }
.trophy-hero-stats { display: flex; gap: 1.4rem; }
.trophy-hero-kpi { text-align: center; }
.trophy-hero-kpi span { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.trophy-hero-kpi small { font-size: 0.7rem; opacity: 0.85; }

.trophy-section { margin-bottom: 1.6rem; }
.trophy-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--border-light); }
.trophy-section-title { font-size: 1.05rem; font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 0.5rem; }
.trophy-section-title i { color: var(--th, var(--primary)); }
.trophy-section-count { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); background: var(--bg-alt); padding: 0.15rem 0.6rem; border-radius: 999px; }

.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.8rem; }
.trophy-card { display: flex; gap: 0.8rem; padding: 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: transform 0.12s, box-shadow 0.12s; }
.trophy-card.is-earned { box-shadow: var(--shadow-sm); }
.trophy-card.is-earned:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.trophy-card.is-locked { opacity: 0.72; background: var(--bg-alt); }
.trophy-badge { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; position: relative; background: var(--tc); color: #fff; }
.trophy-card.is-locked .trophy-badge { background: #e2e8f0; color: #94a3b8; }
.trophy-lock { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-muted); color: #fff; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.trophy-card.is-earned .trophy-badge { box-shadow: 0 4px 10px -2px var(--tc); }
.trophy-card.is-neg .trophy-badge { background: var(--danger); box-shadow: 0 4px 10px -2px rgba(239,68,68,0.5); }
.trophy-body { min-width: 0; flex: 1; }
.trophy-name { font-weight: 800; color: var(--text); font-size: 0.95rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.trophy-tier { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--tc); padding: 0.08rem 0.4rem; border-radius: 999px; }
.trophy-tier-legend { background: linear-gradient(135deg, #a855f7, #6366f1); }
.trophy-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; margin-top: 0.2rem; }
.trophy-prog { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.trophy-prog-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
.trophy-prog-bar div { height: 100%; background: var(--primary); border-radius: 999px; }
.trophy-prog span { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.trophy-rarity { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.45rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.trophy-card { cursor: pointer; }
.trophy-card.is-locked:hover { opacity: 0.92; transform: translateY(-2px); }

/* Modale détail trophée */
.trophy-modal { border: 0; border-radius: var(--radius); overflow: hidden; }
.tm-header { background: var(--c, var(--primary)); color: #fff; align-items: center; gap: 0.9rem; border: 0; padding: 1.1rem 1.2rem; }
.tm-header.is-neg { background: var(--danger); }
.tm-badge { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.tm-head-txt { flex: 1; min-width: 0; }
.tm-theme { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; font-weight: 700; }
.tm-name { font-size: 1.25rem; font-weight: 800; line-height: 1.1; margin: 0.05rem 0 0.45rem; }
.tm-status { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.25); color: #fff; }
.tm-status.is-on { background: rgba(255,255,255,0.95); color: #0f172a; }
.tm-body { padding: 1.1rem 1.2rem 1.3rem; }
.tm-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 0.8rem; }
.tm-headline, .tm-clubs { font-size: 0.88rem; color: var(--text); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.tm-headline i, .tm-clubs i { color: var(--primary); }
.tm-tiers-title { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.5rem; }
.tm-tiers { display: flex; flex-direction: column; gap: 0.5rem; }
.tm-tier { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border-light); border-radius: var(--radius-sm); opacity: 0.62; }
.tm-tier.is-on { opacity: 1; border-color: var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.tm-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.72rem; flex-shrink: 0; }
.tm-tier-info { min-width: 0; flex: 1; }
.tm-tier-label { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.tm-tier-label small { font-weight: 600; color: var(--text-secondary); }
.tm-tier-rar { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.tm-prog { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.tm-prog-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
.tm-prog-bar div { height: 100%; background: var(--primary); border-radius: 999px; }
.tm-prog span { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.tm-seasons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tm-season { font-size: 0.78rem; font-weight: 600; color: var(--text); background: var(--bg-alt); border-radius: 999px; padding: 0.2rem 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.tm-season i { font-size: 0.5rem; color: var(--c, var(--primary)); }
/* Multiplicateur ×N (all-time) */
.trophy-mult { position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 0.25rem; border-radius: 999px; background: #0f172a; color: #fff; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }

/* ===== Stats club (stats9) ===== */
.club9-hero { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.club9-logo { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.club9-id { flex: 1; min-width: 0; }
.club9-name { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.club9-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.85rem; }
.club9-pill { font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.8rem; }
.club9-pill.is-v { color: #059669; background: rgba(5, 150, 105, 0.12); }
.club9-pill.is-n { color: #64748b; background: rgba(100, 116, 139, 0.14); }
.club9-pill.is-d { color: #dc2626; background: rgba(220, 38, 38, 0.12); }
.club9-sep { color: var(--text-muted); }
.club9-buts { color: var(--text-secondary); font-weight: 600; }
.club9-buts i { color: var(--text-muted); }
.club9-pts { text-align: center; flex-shrink: 0; }
.club9-pts span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.club9-pts small { font-size: 0.7rem; color: var(--text-muted); }
.club9-cmp { display: flex; flex-direction: column; gap: 0.9rem; }
.club9-cmp-row { display: grid; grid-template-columns: 140px 1fr; gap: 0.8rem; align-items: center; }
.club9-cmp-label { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }
.club9-hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.club9-hl-card { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
.club9-hl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.club9-hl-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; flex-shrink: 0; }
.club9-hl-card.is-best .club9-hl-ic { background: linear-gradient(135deg, #f59e0b, #d97706); }
.club9-hl-card.is-worst .club9-hl-ic { background: linear-gradient(135deg, #94a3b8, #64748b); }
.club9-hl-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); font-weight: 700; }
.club9-hl-name { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.club9-hl-val { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }
.club9-hl-av { position: relative; flex-shrink: 0; }
.club9-hl-av img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: var(--bg-alt); }
.club9-hl-card.is-best .club9-hl-av img { box-shadow: 0 0 0 2px #f59e0b; }
.club9-hl-card.is-worst .club9-hl-av img { box-shadow: 0 0 0 2px #94a3b8; }
.club9-hl-badge { position: absolute; bottom: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #fff; border: 2px solid var(--surface); }
.club9-hl-card.is-best .club9-hl-badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.club9-hl-card.is-worst .club9-hl-badge { background: linear-gradient(135deg, #94a3b8, #64748b); }
.club9-player { display: flex; align-items: center; gap: 0.55rem; }
.club9-score { display: grid; grid-template-columns: 48px 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.club9-score-k { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.club9-score-bar { height: 8px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
.club9-score-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.club9-score-v { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.club9-score-v small { color: var(--text-muted); font-weight: 500; }
.spec-cell { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .club9-hero { gap: 0.8rem; padding: 0.9rem 1rem; }
  .club9-logo { width: 50px; height: 50px; }
  .club9-name { font-size: 1.15rem; }
  .club9-cmp-row { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 575.98px) {
  .trophy-hero { gap: 0.8rem; }
  .trophy-hero-stats { gap: 1rem; width: 100%; justify-content: space-around; }
  .trophy-grid { grid-template-columns: 1fr; }
}

/* --- 38. Profile & Settings Forms --- */
.form-profile { max-width: 860px; margin: 0 auto; }
.form-profile .form-label,
.settings-wrap .form-label {
  font-weight: 600; font-size: 0.85rem; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem;
}
.form-profile .form-label i,
.settings-wrap .form-label i { color: var(--text-muted); width: 15px; text-align: center; }
.form-profile .form-control,
.form-profile .form-select { border-radius: var(--radius-xs); border-color: var(--border); font-size: 0.9375rem; }
.form-profile .form-control:focus,
.form-profile .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.form-profile textarea.form-control { min-height: 58px; resize: vertical; }

/* Hero identité : photo + champs */
.profile-hero { display: flex; gap: 1.5rem; align-items: flex-start; }
.profile-photo-zone { flex-shrink: 0; width: 160px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.profile-photo-big { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); box-shadow: var(--shadow-sm); }
.profile-photo-upload { cursor: pointer; }
.profile-photo-hint { font-size: 0.7rem; color: var(--text-muted); margin: 0; text-align: center; word-break: break-word; }
.profile-hero-fields { flex: 1; min-width: 0; }
.profile-save-bar { max-width: 860px; margin: 0 auto; text-align: center; padding: 0.25rem 0 1.5rem; }

/* Boutons secondaires "doux" */
.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem; font-size: 0.82rem; font-weight: 600; border-radius: 999px;
  background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
  text-decoration: none; cursor: pointer; width: 100%;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-soft:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-hover); }
.btn-soft.danger { color: var(--danger); }
.btn-soft.danger:hover { background: rgba(220,38,38,0.08); border-color: var(--danger); color: var(--danger); }

/* Bouton d'action principal (Enregistrer / Valider) */
.btn-primary-gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  position: relative; overflow: hidden;
  padding: 0.8rem 2.1rem;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap;
  background: var(--gradient-primary); background-size: 150% 150%;
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb), 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary-gradient i { font-size: 0.95em; }
.btn-primary-gradient::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px); color: #fff; filter: brightness(1.06);
  box-shadow: 0 12px 28px -6px rgba(var(--primary-rgb), 0.65), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary-gradient:hover::before { left: 130%; }
.btn-primary-gradient:active { transform: translateY(0); box-shadow: 0 5px 14px -6px rgba(var(--primary-rgb), 0.55); }
.btn-primary-gradient:focus-visible { outline: 3px solid rgba(var(--primary-rgb), 0.4); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary-gradient, .btn-primary-gradient::before { transition: none; }
}

/* Configuration */
.settings-wrap { max-width: 560px; margin: 0 auto; }
.settings-account { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.settings-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0; }
.settings-account-info { flex: 1; min-width: 120px; }
.settings-account-name { font-size: 1.1rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.settings-account-real { font-size: 0.85rem; color: var(--text-muted); }
.settings-account .btn-soft { width: auto; }
.settings-section-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.settings-pwd { position: relative; }
.settings-pwd .form-control { padding-right: 2.75rem; border-radius: var(--radius-xs); border-color: var(--border); }
.settings-pwd .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.settings-pwd-toggle { position: absolute; right: 0; top: 0; height: 100%; width: 2.6rem; border: none; background: transparent; color: var(--text-muted); cursor: pointer; }
.settings-pwd-toggle:hover { color: var(--primary); }
.settings-hint { font-size: 0.8rem; min-height: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.35rem; }
.settings-hint.ok { color: var(--success); }
.settings-hint.err { color: var(--danger); }
.settings-actions { text-align: center; margin-top: 1rem; }
.settings-alert { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-radius: var(--radius-xs); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.settings-alert.ok { background: rgba(5,150,105,0.1); color: var(--success); border: 1px solid rgba(5,150,105,0.25); }
.settings-alert.err { background: rgba(220,38,38,0.08); color: var(--danger); border: 1px solid rgba(220,38,38,0.25); }

@media (max-width: 575px) {
  .profile-hero { flex-direction: column; align-items: center; }
  .profile-photo-zone { width: 100%; }
  .profile-hero-fields { width: 100%; }
}

/* --- 40. Rules Page --- */
.rules-content { font-size: 0.9375rem; line-height: 1.7; color: var(--text); }
.rules-content ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: none; }
.rules-content li { margin-bottom: 0.75rem; padding-left: 0.25rem; }
.rules-prizes {
  display: inline-block; background: var(--bg-alt); padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xs); margin: 0.5rem 0 1rem; font-weight: 600;
}
.rules-footer {
  text-align: center; font-weight: 700; font-size: 1.125rem; color: var(--primary);
  margin-top: 1.5rem; padding: 1rem; border-top: 1px solid var(--border-light);
}

/* --- 41. Groups --- */
.groups-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.groups-count { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }
.groups-toolbar .btn-primary-gradient { flex-shrink: 0; }

.groups-empty { text-align: center; padding: 2.5rem 1rem; }
.groups-empty > i { font-size: 2.4rem; color: var(--primary); opacity: 0.85; margin-bottom: 0.5rem; }
.groups-empty .empty-text { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.groups-empty .text-muted { margin-bottom: 1.1rem; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.group-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 1rem; background: var(--gradient-dark); color: #fff; }
.group-card-name { font-weight: 700; font-size: 0.98rem; display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-card-name i { opacity: 0.85; }
.group-card-count { flex-shrink: 0; background: rgba(255,255,255,0.2); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; font-weight: 800; }
.group-card-body { padding: 1rem; flex: 1; }
.group-avatars { display: flex; align-items: center; margin-bottom: 0.6rem; }
.group-avatars img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -8px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.group-avatars img:first-child { margin-left: 0; }
.group-avatars-more { margin-left: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); border: 2px solid var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; }
.group-pseudos { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.group-pseudos-empty { font-style: italic; color: var(--text-muted); }
.group-card-actions { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid var(--border-light); }
.group-card-actions .btn-soft { flex: 1; }

/* Formulaire creer / modifier */
.group-form { padding: 1.25rem; }
.group-form-field { margin-bottom: 1.25rem; }
.group-form-field label { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.group-form-field label i { color: var(--primary); }
.group-form-field .form-control { border-radius: var(--radius-xs); border-color: var(--border); }
.group-form-field .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.group-form-members-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.group-form-members-title { font-weight: 700; font-size: 0.9rem; color: var(--text); display: inline-flex; align-items: center; gap: 0.45rem; }
.group-form-members-title i { color: var(--primary); }
.group-sel-count { background: var(--primary); color: #fff; border-radius: 999px; min-width: 1.4rem; height: 1.4rem; padding: 0 0.45rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; }
.group-member-search { border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.85rem; min-width: 160px; flex: 1; max-width: 260px; }
.group-member-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }

.group-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.5rem; max-height: 360px; overflow-y: auto; padding: 0.15rem; }
.member-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.55rem; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; user-select: none; transition: border-color .12s ease, background .12s ease; min-width: 0; }
.member-chip:hover { border-color: var(--primary); }
.member-chip-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.member-chip-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.member-chip-name { font-size: 0.84rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-chip-check { margin-left: auto; color: var(--border); font-size: 1rem; flex-shrink: 0; transition: color .12s ease; }
.member-chip:has(.member-chip-input:checked) { border-color: var(--primary); background: var(--primary-light); }
.member-chip:has(.member-chip-input:checked) .member-chip-name { color: var(--primary-dark); font-weight: 700; }
.member-chip:has(.member-chip-input:checked) .member-chip-check { color: var(--primary); }

.group-form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; align-items: center; margin-top: 1.25rem; }
.group-form-actions .btn-soft { width: auto; }
@media (max-width: 575px) {
  .group-form-actions { flex-direction: column-reverse; }
  .group-form-actions .btn-soft, .group-form-actions .btn-primary-gradient { width: 100%; }
}

/* --- 42. Wallet (Ma cagnotte) --- */
.wallet-hero {
  text-align: center; padding: 1.75rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.wallet-hero.is-pos { background: var(--gradient-success); }
.wallet-hero.is-neg { background: linear-gradient(135deg, #dc2626 0%, #f97316 100%); }
.wallet-hero-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.92; display: inline-flex; align-items: center; gap: 0.4rem; }
.wallet-hero-amount { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin: 0.35rem 0 0.6rem; font-variant-numeric: tabular-nums; }
.wallet-hero-amount span { font-size: 1.5rem; font-weight: 700; opacity: 0.9; }
.wallet-hero-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem;
  padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  background: rgba(255,255,255,0.96); color: #047857; text-decoration: none;
  border: 0; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wallet-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); color: #047857; }
.wallet-hero-note { font-size: 0.85rem; opacity: 0.95; }
.wallet-hero-note i { margin-right: 0.25rem; }
/* Formulaire de demande de virement (montant choisi) */
.wallet-vir { display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.wallet-vir-field { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 0 0.85rem; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }
.wallet-vir-field input { border: 0; background: transparent; font-size: 1.05rem; font-weight: 700; color: #0f172a; width: 110px; padding: 0.5rem 0.2rem; text-align: right; outline: none; font-variant-numeric: tabular-nums; font-family: inherit; }
.wallet-vir-cur { font-weight: 700; color: #0f172a; padding-left: 0.1rem; }
.wallet-hero-link { color: #fff; text-decoration: underline; font-weight: 700; }
.wallet-hero-link:hover { color: #fff; opacity: 0.85; }
@media (max-width: 480px) {
  .wallet-vir { flex-direction: column; align-items: stretch; }
  .wallet-vir-field { justify-content: center; }
  .wallet-vir-field input { width: 100%; text-align: center; }
  .wallet-hero-btn { justify-content: center; }
}

.wallet-history { display: flex; flex-direction: column; }
.wallet-op { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--border-light); }
.wallet-op:last-child { border-bottom: none; }
.wallet-op-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.wallet-op.is-gain .wallet-op-icon { background: rgba(5,150,105,0.12); color: var(--success); }
.wallet-op.is-out .wallet-op-icon { background: rgba(220,38,38,0.10); color: var(--danger); }
.wallet-op-info { flex: 1; min-width: 0; }
.wallet-op-label { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.wallet-op-meta { font-size: 0.76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-op-amount { font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.wallet-op.is-gain .wallet-op-amount { color: var(--success); }
.wallet-op.is-out .wallet-op-amount { color: var(--danger); }
.wallet-op.is-withdraw .wallet-op-icon { background: rgba(37,99,235,0.12); color: #2563eb; }
.wallet-op.is-withdraw .wallet-op-amount { color: #2563eb; }
.wallet-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; }
.wallet-empty i { display: block; font-size: 1.6rem; opacity: 0.5; margin-bottom: 0.4rem; }

/* --- Mon RIB (cagnotte) --- */
.rib-card { margin-bottom: 1rem; }
.rib-intro { position: relative; font-size: 0.82rem; line-height: 1.5; color: var(--text-muted); background: var(--primary-light); border: 1px solid var(--border-light); border-radius: var(--radius-xs); padding: 0.6rem 0.8rem 0.6rem 2.1rem; margin: 0 0 1rem; }
.rib-intro i { position: absolute; left: 0.8rem; top: 0.72rem; color: var(--primary); }
.rib-card .form-label { font-weight: 600; font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; }
.rib-card textarea.form-control { font-variant-numeric: tabular-nums; }
.rib-attach { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-light); }
.rib-attach-label { font-weight: 600; font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; }
.rib-file-current { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; background: var(--bg-subtle, #f8fafc); border: 1px solid var(--border-light); border-radius: var(--radius-xs); padding: 0.55rem 0.7rem; margin-bottom: 0.7rem; }
.rib-file-current > i { font-size: 1.15rem; color: var(--primary); }
.rib-file-name { font-weight: 600; font-size: 0.85rem; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rib-file-current .btn-soft { width: auto; padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.rib-upload { width: auto; display: inline-flex; cursor: pointer; }
.rib-hint { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 0.35rem; }
#ribFileName:not(:empty) { font-weight: 600; color: var(--primary); }
.rib-save-bar { margin-top: 1.1rem; display: flex; justify-content: flex-end; }
@media (max-width: 575px) {
  .rib-save-bar { justify-content: stretch; }
  .rib-save-bar .btn-primary-gradient { width: 100%; }
}

/* --- 44. Ranking overflow --- */
.ranking-overflow-item { display: none; }
.ranking-expanded .ranking-overflow-item { display: flex; }
.ranking-toggle {
  text-align: center;
  padding: 0.55rem;
  border-top: 1px solid var(--border-light);
  margin: 0 -1.25rem -0.75rem;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s;
  border-radius: 0 0 var(--radius) var(--radius);
}
.ranking-toggle:hover { background: var(--primary-light); }
.ranking-toggle .fas { margin-left: 0.3rem; font-size: 0.7rem; transition: transform 0.3s; }
.ranking-expanded .ranking-toggle .fa-chevron-down { transform: rotate(180deg); }

@media (max-width: 768px) {
  .infobar { padding: 0.35rem 0; overflow: hidden; }
  .infobar-inner {
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .infobar-inner::-webkit-scrollbar { display: none; }
  .infobar-flash-text { max-width: 180px; }
  .infobar-section { padding: 0.15rem 0.45rem; font-size: 0.68rem; }
  .infobar-online-list { gap: 0.1rem; }
  .infobar-online-user .infobar-avatar { margin-left: -3px; }
  .infobar-online-user:first-child .infobar-avatar { margin-left: 0; }
  .infobar-records { flex-shrink: 0; flex: none; }
  .infobar-record-text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
  }
}



/* ======================================================================
   46. Bilan de saison (widget home quand concours.termine = 1)
   ====================================================================== */
.season-recap {
  border: 1px solid var(--border);
  overflow: hidden;
}
.season-recap-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
}
.season-recap-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #78350f;
  flex-shrink: 0;
}
.season-recap-titles { line-height: 1.2; }
.season-recap-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.season-recap-title {
  font-size: 1rem;
  font-weight: 700;
}

.season-recap-section { margin-bottom: 1.1rem; }
.season-recap-section:last-of-type { margin-bottom: 0; }
.season-recap-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.season-recap-section-title i { color: var(--primary); }

/* Champion */
.season-recap-champion {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(245,158,11,0.05) 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius);
}
.season-recap-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fbbf24;
  box-shadow: 0 4px 10px rgba(245,158,11,0.25);
  flex-shrink: 0;
}
.season-recap-champion-info { flex: 1; min-width: 0; }
.season-recap-pseudo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.season-recap-stats { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.season-recap-stat-pill {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.season-recap-stat-pill strong { color: var(--text); }

/* Ma saison */
.season-recap-mine {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.season-recap-mine-position {
  display: flex; align-items: baseline; gap: 0.5rem;
}
.season-recap-pos-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.season-recap-pos-number sup {
  font-size: 1rem;
  margin-left: 0.05rem;
}
.season-recap-pos-total {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.season-recap-mine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
  gap: 0.5rem;
}
.season-recap-stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.3rem;
  text-align: center;
}
.season-recap-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.season-recap-stat-value small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.1rem;
}
.season-recap-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Highlights : meilleure / pire journee */
.season-recap-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.season-recap-highlight {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
}
.season-recap-highlight i {
  font-size: 0.85rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.season-recap-highlight.up { border-color: rgba(5,150,105,0.25); background: rgba(5,150,105,0.05); }
.season-recap-highlight.up i { color: #059669; background: rgba(5,150,105,0.15); }
.season-recap-highlight.down { border-color: rgba(220,38,38,0.25); background: rgba(220,38,38,0.05); }
.season-recap-highlight.down i { color: #dc2626; background: rgba(220,38,38,0.15); }
.season-recap-highlight-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.season-recap-highlight-value { color: var(--text-secondary); line-height: 1.2; }
.season-recap-highlight-value strong { color: var(--text); }

@media (max-width: 576px) {
  .season-recap-avatar { width: 48px; height: 48px; }
  .season-recap-pos-number { font-size: 1.8rem; }
  .season-recap-stat-value { font-size: 1.1rem; }
  .season-recap-champion { padding: 0.6rem; }
  .season-recap-mine-stats { grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); }
}

/* ======================================================================
   47. Stats joueur (stats8.php)
   ====================================================================== */

/* En-tete joueur */
.player-stats-header {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1rem;
}
.player-stats-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25); flex-shrink: 0;
}
.player-stats-name { font-size: 1.35rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.player-stats-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.player-stats-sub i { color: var(--primary); }

/* KPI synthese */
.stats8-kpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}
.stats8-kpi-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats8-kpi-tile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c, var(--primary));
}
.stats8-kpi-icon {
  width: 34px; height: 34px; margin: 0 auto 0.35rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--c, var(--primary)); background: var(--cbg, rgba(99,102,241,0.14));
}
.stats8-kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.stats8-kpi-value small { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.stats8-kpi-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-top: 0.25rem; font-weight: 600;
}
.stats8-kpi-tile.is-points   { --c: #6366f1; --cbg: rgba(99,102,241,0.14); }
.stats8-kpi-tile.is-exact    { --c: #059669; --cbg: rgba(5,150,105,0.14); }
.stats8-kpi-tile.is-coherent { --c: #d97706; --cbg: rgba(217,119,6,0.14); }
.stats8-kpi-tile.is-faux     { --c: #dc2626; --cbg: rgba(220,38,38,0.12); }
.stats8-kpi-tile.is-rate     { --c: #0ea5e9; --cbg: rgba(14,165,233,0.14); }

/* Meta a droite d'un card-header */
.card-header-meta { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.card-header-meta strong { color: var(--text); font-weight: 700; }

/* Badges chiffres (exact/coherent/faux) dans les tableaux */
.stat-badge {
  display: inline-block; min-width: 24px; padding: 0.08rem 0.4rem;
  border-radius: 9999px; font-size: 0.78rem; font-weight: 700;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.stat-badge-exact    { background: rgba(5,150,105,0.12);  color: #059669; }
.stat-badge-coherent { background: rgba(217,119,6,0.12);  color: #d97706; }
.stat-badge-faux     { background: rgba(220,38,38,0.10);  color: #dc2626; }
.stat-badge-bonus    { background: rgba(99,102,241,0.14); color: #6366f1; font-size: 0.7rem; padding: 0.05rem 0.35rem; }
a.stat-badge:hover { filter: brightness(0.94); }

/* En-tete de colonne : pastille de couleur + abreviation */
.th-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.th-dot.exact { background: #059669; } .th-dot.coherent { background: #d97706; } .th-dot.faux { background: #dc2626; }
.th-abbr { margin-left: 0.25rem; }

/* Chip score */
.score-chip {
  display: inline-block; padding: 0.12rem 0.5rem; border-radius: var(--radius-xs);
  background: var(--bg-alt); border: 1px solid var(--border);
  font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text);
}

/* Alignement colonnes numeriques */
.table-pronos td.num, .table-pronos th.num { text-align: center; }
.table-stats8 thead th { white-space: nowrap; }

/* Cellule club */
.club-cell { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--text); font-weight: 600; }
.club-cell-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-cell:hover { color: var(--primary); }
/* stats8 "Points par club" sur mobile : la colonne club doit TRONQUER (le td:first-child
   global passe en overflow:visible pour les avatars, ce qui faisait deborder le nom du
   club sur la colonne EX). On force la troncature et on calibre les colonnes chiffres. */
@media (max-width: 768px) {
  #tableau_club td:first-child { overflow: hidden; }
  #tableau_club .club-cell { display: flex; min-width: 0; max-width: 100%; }
  #tableau_club .club-cell-name { min-width: 0; }
  #tableau_club th.num, #tableau_club td.num { width: 42px; }
  #tableau_club th.num:last-child, #tableau_club td.num:last-child { width: 58px; }
}

/* Barre de donnees (colonne points clubs) */
.databar {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  min-width: 54px; height: 24px; padding: 0 0.45rem; border-radius: var(--radius-xs);
  background: var(--bg-alt); overflow: hidden; text-decoration: none;
}
.databar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(99,102,241,0.18), rgba(99,102,241,0.32));
  border-right: 2px solid var(--primary);
}
.databar-val { position: relative; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* ── Graphique a barres : evolution par journee ── */
.jchart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 180px; padding: 0.5rem 0 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.jchart-bar-wrap {
  flex: 1 0 22px; min-width: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; text-decoration: none; gap: 3px;
}
.jchart-val { font-size: 0.62rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.jchart-bar {
  position: relative; width: 100%; max-width: 26px;
  background: linear-gradient(180deg, var(--primary), #818cf8);
  border-radius: 4px 4px 0 0; min-height: 4px;
  transition: filter 0.15s;
}
.jchart-bar-wrap:hover .jchart-bar { filter: brightness(1.1); }
.jchart-bar-wrap.is-best .jchart-bar { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.jchart-bonus-dot {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0.9;
}
.jchart-label { font-size: 0.6rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.jchart-legend {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-secondary);
}
.jchart-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 0.2rem; }
.jchart-legend-dot.best { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.jchart-legend-dot.bonus { background: var(--primary); position: relative; }

/* ── Grille des scores exacts ── */
.exact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem;
}
.exact-card {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.exact-card-team { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 0; }
.exact-card-team img { width: 30px; height: 30px; object-fit: contain; }
.exact-card-team span { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.exact-card-score {
  font-size: 1.05rem; font-weight: 800; color: #059669; font-variant-numeric: tabular-nums;
  background: rgba(5,150,105,0.1); border-radius: var(--radius-xs); padding: 0.2rem 0.5rem; white-space: nowrap;
}
.exact-card-score span { color: var(--text-muted); margin: 0 0.05rem; }

.stats8-empty { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 1.25rem 0.5rem; }

/* Responsive */
@media (max-width: 991.98px) {
  .stats8-kpi { grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
  .stats8-kpi-value { font-size: 1.2rem; }
  .stats8-kpi-icon { width: 28px; height: 28px; font-size: 0.75rem; }
}
@media (max-width: 575.98px) {
  /* 5 KPI -> 2 par ligne (la reussite passe pleine largeur en derniere) */
  .stats8-kpi { grid-template-columns: repeat(2, 1fr); }
  .stats8-kpi-tile.is-rate { grid-column: 1 / -1; }
  .player-stats-avatar { width: 52px; height: 52px; }
  .player-stats-name { font-size: 1.15rem; }
  .jchart { height: 150px; }
  .exact-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ── Modal de detail (stats8) ── */
/* NB: prefixe pdetail-* pour eviter la collision avec le composant .detail-row
   (lignes extensibles, display:none !important) defini plus haut dans ce fichier. */
.pdetail-modal .modal-content { border: none; border-radius: var(--radius-lg, 16px); overflow: hidden; }
.pdetail-modal .modal-header { background: var(--gradient-primary); color: #fff; border-bottom: none; padding: 0.85rem 1.1rem; }
.pdetail-modal .modal-title { font-size: 1rem; font-weight: 700; color: #fff; }
.pdetail-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(1.6); opacity: 0.9; }
.pdetail-modal .modal-body { padding: 1rem 1.1rem 1.25rem; max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.pdetail-loading { display: flex; justify-content: center; align-items: center; padding: 2.5rem 0; }

.pdetail-head { margin-bottom: 0.85rem; }
.pdetail-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.pdetail-sub { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.25rem; }
.pdetail-affiche { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); }
.pdetail-ctx { font-size: 0.78rem; color: var(--text-muted); }
.pdetail-counts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.pdetail-count { font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 9999px; }
.pdetail-count.exact { background: rgba(5,150,105,0.12); color: #059669; }
.pdetail-count.coherent { background: rgba(217,119,6,0.12); color: #d97706; }
.pdetail-count.faux { background: rgba(220,38,38,0.10); color: #dc2626; }

.pdetail-list { display: flex; flex-direction: column; gap: 0.45rem; }
.pdetail-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.65rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); border-left-width: 4px;
}
.pdetail-row.is-exact    { border-left-color: #059669; }
.pdetail-row.is-coherent { border-left-color: #d97706; }
.pdetail-row.is-faux     { border-left-color: #dc2626; }
.pdetail-team { display: flex; align-items: center; gap: 0.45rem; min-width: 0; font-size: 0.85rem; font-weight: 600; }
.pdetail-team.home { justify-content: flex-end; text-align: right; }
.pdetail-team.away { justify-content: flex-start; text-align: left; }
.pdetail-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdetail-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.pdetail-scores { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; white-space: nowrap; }
.pdetail-prono {
  font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.95rem;
  padding: 0.1rem 0.5rem; border-radius: var(--radius-xs); color: #fff;
}
.is-exact    .pdetail-prono { background: #059669; }
.is-coherent .pdetail-prono { background: #d97706; }
.is-faux     .pdetail-prono { background: #dc2626; }
.pdetail-real { font-size: 0.66rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pdetail-empty { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 2rem 0.5rem; }
.pdetail-empty i { display: block; font-size: 1.6rem; margin-bottom: 0.4rem; opacity: 0.5; }

/* Avatars de joueurs : cliquables (ouvrent la modal profil) */
img[src*="/photos/photo"], img[src*="defaut_profil"] { cursor: pointer; }

/* Modal "profil du pronostiqueur" */
.pcard-head { display: flex; align-items: center; gap: 1rem; padding: 0.1rem 0 1rem; border-bottom: 1px solid var(--border-light); margin-bottom: 1rem; }
.pcard-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); flex-shrink: 0; cursor: default; }
.pcard-id { min-width: 0; }
.pcard-pseudo { font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1.15; word-break: break-word; }
.pcard-name { font-size: 0.9rem; color: var(--text-secondary); }
.pcard-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
.pcard-meta i { color: var(--primary); }
.pcard-section { margin-bottom: 1rem; }
.pcard-section-title { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.4rem; }
.pcard-row { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border-light); }
.pcard-row:last-child { border-bottom: none; }
.pcard-label { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.4rem; }
.pcard-label i { color: var(--text-muted); width: 14px; text-align: center; }
.pcard-value { font-size: 0.9rem; color: var(--text); padding-left: 1.15rem; word-break: break-word; }
.pcard-stats-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; padding: 0.65rem; background: var(--bg-alt); border-radius: var(--radius-xs); font-weight: 700; font-size: 0.85rem; color: var(--primary); text-decoration: none; transition: background .15s ease; }
.pcard-stats-link:hover { background: var(--primary-light); color: var(--primary-hover); }

/* ======================================================================
   48. Stats joueurs (stats7.php) — tableau de precision
   ====================================================================== */
/* Bandeau KPI : 4 tuiles (override du grid 5 colonnes de .stats8-kpi) */
.sj-kpi { grid-template-columns: repeat(4, 1fr); }
.sj-kpi .stats8-kpi-tile.is-rate { grid-column: auto; }

/* Barre de filtres : recherche + select journee */
.sj-filters { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.sj-search {
  position: relative; flex: 1 1 220px; min-width: 180px;
}
.sj-search i {
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.8rem; pointer-events: none;
}
.sj-search input {
  width: 100%; padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 0.88rem;
}
.sj-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1); outline: none; }
.sj-filters .form-select { flex: 0 0 auto; width: auto; }

/* Tableau joueurs */
.table-joueurs { font-variant-numeric: tabular-nums; }
.table-joueurs thead th { white-space: nowrap; }
.sj-rank-col { width: 44px; text-align: center; }
.sj-rank { font-weight: 700; color: var(--text-muted); }
.sj-player { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); min-width: 0; }
.sj-player .avatar-sm { flex-shrink: 0; }
.sj-player-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sj-player:hover .sj-player-name { color: var(--primary); }
.sj-pts { font-size: 1rem; color: var(--text); }
.sj-rate { min-width: 64px; }

/* La cellule reussite (databar) prend une largeur confortable */
.table-joueurs td:last-child { width: 120px; }

@media (max-width: 575.98px) {
  .sj-kpi { grid-template-columns: repeat(2, 1fr); }
  .sj-filters { flex-direction: column; align-items: stretch; }
  /* en colonne, le flex-basis 220px devenait une HAUTEUR -> grand vide + loupe flottante. */
  .sj-search { flex: 0 0 auto; width: 100%; }
  .sj-filters .form-select { width: 100%; }
  .sj-rate { min-width: 52px; }
}

/* Tableaux joueurs : sous 768px, le CSS global force width:100% + table-layout:fixed
   (-> cellules tronquees par ellipsis). On retablit la largeur naturelle + scroll horizontal. */
@media (max-width: 768px) {
  .table-joueurs { width: auto !important; table-layout: auto !important; min-width: 100%; }
  .table-joueurs th, .table-joueurs td { overflow: visible; text-overflow: clip; }
  .table-joueurs td:last-child { width: auto; }
  /* l'onglet Precision (4 colonnes visibles sur mobile) reste plein largeur, sans scroll */
  #table_prec { width: 100% !important; }
}

/* Onglets stats joueurs */
.sj-tabs { border-bottom: 2px solid var(--border); margin-bottom: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sj-tabs .nav-link {
  border: none; border-bottom: 3px solid transparent; border-radius: 0;
  color: var(--text-muted); font-weight: 600; font-size: 0.88rem; white-space: nowrap;
  padding: 0.6rem 0.95rem; background: none;
}
.sj-tabs .nav-link i { margin-right: 0.35rem; opacity: 0.8; }
.sj-tabs .nav-link:hover { color: var(--primary); border-bottom-color: var(--border); }
.sj-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.tab-content > .tab-pane .card-pronos { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Cellule club (onglet Clubs) */
.sj-clubcell { display: inline-flex; align-items: center; gap: 0.4rem; }
.sj-clublogo { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.sj-clubname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }

/* Cellule journee (onglet Journees) */
.sj-jcell { display: inline-flex; align-items: center; gap: 0.45rem; }
.sj-jname { font-weight: 600; }

@media (max-width: 575.98px) {
  .sj-clubname { max-width: 80px; font-size: 0.82rem; }
  .sj-clublogo { width: 18px; height: 18px; }
}

/* ======================================================================
   49. Stats journees (stats.php)
   ====================================================================== */
.st-kpi { grid-template-columns: repeat(4, 1fr); }
.st-kpi .stats8-kpi-tile.is-rate { grid-column: auto; }

/* Donut CSS (conic-gradient) */
.stat-graph-card { height: 100%; }
.stat-donut { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.stat-donut-ring {
  width: 150px; height: 150px; border-radius: 50%; position: relative; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.stat-donut-hole {
  position: absolute; inset: 24%; border-radius: 50%; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.stat-donut-total { font-size: 1.5rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-donut-cap { font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.15rem; }
.stat-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; min-width: 150px; }
.stat-donut-legend li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.85rem; }
.stat-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.stat-legend-label { color: var(--text-secondary); flex: 1; }
.stat-legend-val { font-variant-numeric: tabular-nums; color: var(--text); }
.stat-legend-val small { color: var(--text-muted); font-weight: 600; }

/* Resultats des matchs (chips) */
.st-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.5rem; }
.st-result {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.st-result.is-pending { opacity: 0.7; }
.st-result-team { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; min-width: 0; }
.st-result-team.home { justify-content: flex-end; text-align: right; }
.st-result-team.away { justify-content: flex-start; text-align: left; }
.st-result-team img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.st-result-score {
  font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--bg-alt); border-radius: var(--radius-xs); padding: 0.1rem 0.45rem; color: var(--text);
}
.st-result.is-pending .st-result-score { background: transparent; color: var(--text-muted); font-weight: 600; }

/* Sparkline de repartition (tableau scores) */
.st-spark { display: flex; height: 10px; width: 100%; max-width: 160px; border-radius: 9999px; overflow: hidden; background: var(--bg-alt); }
.st-spark span { display: block; height: 100%; }
.table-scores-stats td:last-child { min-width: 120px; }

@media (max-width: 575.98px) {
  .st-kpi { grid-template-columns: repeat(2, 1fr); }
  .stat-donut { justify-content: center; }
  .stat-donut-ring { width: 128px; height: 128px; }
  .st-results { grid-template-columns: 1fr; }
}

/* ======================================================================
   50. Stats clubs (stats6.php) — complement
   ====================================================================== */
.stat-badge-nul { background: rgba(100,116,139,0.14); color: #64748b; }
.st-spark-tend { max-width: 200px; }
.st-tend-legend { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
.st-tend-legend b { font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
  .st-spark-tend { max-width: 140px; }
}

/* ======================================================================
   51. Stats saison (stats10.php) — cartes de match
   ====================================================================== */
.season-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0.65rem;
}
.match-stat {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.8rem; background: var(--surface);
}
.match-stat-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.5rem; }
.match-stat-team { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.85rem; font-weight: 600; }
.match-stat-team.home { justify-content: flex-end; text-align: right; }
.match-stat-team.away { justify-content: flex-start; text-align: left; }
.match-stat-team img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.match-stat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-stat-score {
  font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--bg-alt); border-radius: var(--radius-xs); padding: 0.15rem 0.55rem; color: var(--text);
}
.match-stat-score span { color: var(--text-muted); margin: 0 0.1rem; }
.match-stat-bar { display: flex; height: 8px; border-radius: 9999px; overflow: hidden; background: var(--bg-alt); margin: 0.6rem 0 0.4rem; }
.match-stat-bar span { display: block; height: 100%; }
.match-stat-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; font-size: 0.72rem; }
.ms-leg { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; }
.ms-leg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.ms-leg.exact { color: #059669; } .ms-leg.exact::before { background: #059669; }
.ms-leg.coherent { color: #d97706; } .ms-leg.coherent::before { background: #d97706; }
.ms-leg.faux { color: #dc2626; } .ms-leg.faux::before { background: #dc2626; }

@media (max-width: 575.98px) {
  .season-grid { grid-template-columns: 1fr; }
}

/* ======================================================================
   52. Stats saison (stats10.php) — dashboard
   ====================================================================== */
.s10-kpi { grid-template-columns: repeat(5, 1fr); }
.s10-kpi .stats8-kpi-tile.is-rate { grid-column: auto; }

/* Faits marquants */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; }
.fact-card { display: flex; align-items: center; gap: 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem; }
.fact-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fact-body { min-width: 0; flex: 1; }
.fact-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.fact-match { display: flex; align-items: center; gap: 0.4rem; margin: 0.2rem 0; }
.fact-match img { width: 24px; height: 24px; object-fit: contain; }
.fact-score { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); font-size: 1.05rem; }
.fact-teams { font-size: 0.78rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact-extra { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.1rem; }
.fact-extra strong { color: var(--text); }

/* Scores frequents */
.freq-list { list-style: none; margin: 0; padding: 0; }
.freq-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; }
.freq-key { flex: 0 0 auto; min-width: 44px; text-align: center; }
.freq-bar { flex: 1; height: 10px; border-radius: 9999px; background: var(--bg-alt); overflow: hidden; }
.freq-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #818cf8); border-radius: 9999px; }
.freq-val { flex: 0 0 auto; min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.freq-val small { color: var(--text-muted); }
.freq-note { margin: 0.85rem 0 0; font-size: 0.78rem; color: var(--text-muted); }
.freq-note i { color: var(--primary); }

@media (max-width: 575.98px) {
  .s10-kpi { grid-template-columns: repeat(2, 1fr); }
}

/* Classements TOP 20 (stats10) */
.cl-select { width: auto; max-width: 100%; flex: 0 0 auto; }
.topm-match { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.topm-match img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.topm-name { font-weight: 600; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.topm-score { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--bg-alt); border-radius: var(--radius-xs); padding: 0.05rem 0.4rem; white-space: nowrap; }
.stat-badge.is-hl { outline: 2px solid currentColor; outline-offset: 1px; font-size: 0.85rem; }
@media (max-width: 575.98px) {
  .topm-name { max-width: 64px; font-size: 0.78rem; }
  .cl-select { width: 100%; }
}

/* ======================================================================
   53. Modal detail match (stats10.php)
   ====================================================================== */
.js-match { cursor: pointer; }
.match-stat.js-match { transition: border-color 0.15s, box-shadow 0.15s; }
.match-stat.js-match:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(var(--primary-rgb),0.12); }
tr.js-match:hover { background: rgba(var(--primary-rgb),0.04); }
.fact-card.js-match:hover { border-color: var(--primary); }

.md-head { text-align: center; margin-bottom: 1rem; }
.md-teams { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.md-team { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; min-width: 0; }
.md-team img { width: 46px; height: 46px; object-fit: contain; }
.md-team span { font-size: 0.85rem; font-weight: 600; color: var(--text); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.md-score { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.md-score span { color: var(--text-muted); margin: 0 0.15rem; }
.md-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.md-section-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 1.1rem 0 0.5rem; }
.md-bar { display: flex; height: 12px; border-radius: 9999px; overflow: hidden; background: var(--bg-alt); }
.md-bar span { display: block; height: 100%; }
.md-counts { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; font-size: 0.8rem; }
.md-count { display: inline-flex; align-items: center; gap: 0.25rem; }
.md-count::before { content: ''; width: 9px; height: 9px; border-radius: 50%; }
.md-count.exact { color: #059669; } .md-count.exact::before { background: #059669; }
.md-count.coherent { color: #d97706; } .md-count.coherent::before { background: #d97706; }
.md-count.faux { color: #dc2626; } .md-count.faux::before { background: #dc2626; }

.md-distrib { list-style: none; margin: 0; padding: 0; }
.md-distrib-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.28rem 0; }
.md-distrib-row .score-chip { flex: 0 0 auto; min-width: 44px; text-align: center; }
.md-distrib-bar { flex: 1; height: 9px; border-radius: 9999px; background: var(--bg-alt); overflow: hidden; }
.md-distrib-bar span { display: block; height: 100%; background: var(--text-muted); border-radius: 9999px; }
.md-distrib-row.is-exact .md-distrib-bar span { background: #059669; }
.md-distrib-row.is-coherent .md-distrib-bar span { background: #d97706; }
.md-distrib-row.is-faux .md-distrib-bar span { background: #dc2626; }
.md-distrib-val { flex: 0 0 auto; min-width: 54px; text-align: right; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.md-distrib-val small { color: var(--text-muted); }

.md-exact-players { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.md-player { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem 0.2rem 0.2rem; border: 1px solid var(--border); border-radius: 9999px; text-decoration: none; background: var(--surface); }
.md-player img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.md-player span { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.md-player:hover { border-color: var(--primary); }
.md-player:hover span { color: var(--primary); }

/* ======================================================================
   54. Modal detail score (stats.php)
   ====================================================================== */
.js-score { cursor: pointer; }
a.js-score { text-decoration: none; color: inherit; }
.score-chip.js-score:hover, a.js-score:hover { filter: brightness(0.95); }
a.stat-badge.js-score:hover, span.stat-badge.js-score:hover { filter: brightness(0.92); }

.sd-head { text-align: center; margin-bottom: 0.9rem; }
.sd-title { font-size: 1.05rem; font-weight: 800; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.sd-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
.sd-affiche { font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 9999px; }
.sd-affiche.sd-exact { background: rgba(5,150,105,0.12); color: #059669; }
.sd-affiche.sd-coherent { background: rgba(217,119,6,0.12); color: #d97706; }
.sd-affiche.sd-faux { background: rgba(220,38,38,0.10); color: #dc2626; }
.sd-affiche.sd-all { background: var(--primary-light); color: var(--primary); }

.sd-list { display: flex; flex-direction: column; gap: 0.6rem; }
.sd-match { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 0.6rem 0.7rem; background: var(--surface); }
.sd-match.is-exact { border-left-color: #059669; }
.sd-match.is-coherent { border-left-color: #d97706; }
.sd-match.is-faux { border-left-color: #dc2626; }
.sd-match-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.sd-match-teams { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; flex-wrap: wrap; }
.sd-match-teams img { width: 22px; height: 22px; object-fit: contain; }
.sd-match-score { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--bg-alt); border-radius: var(--radius-xs); padding: 0.05rem 0.4rem; }
.sd-match-count { flex: 0 0 auto; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); background: var(--bg-alt); border-radius: 9999px; padding: 0.1rem 0.5rem; }
.sd-players { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Detail club (stats6) — joueur + son prono */
.sd-club-logo { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; }
.cd-player { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.2rem 0.15rem 0.5rem; border: 1px solid var(--border); border-radius: 9999px; text-decoration: none; background: var(--surface); }
.cd-player-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.cd-player-prono { font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; padding: 0.05rem 0.4rem; border-radius: 9999px; }
.cd-player.is-exact .cd-player-prono { background: #059669; }
.cd-player.is-coherent .cd-player-prono { background: #d97706; }
.cd-player.is-faux .cd-player-prono { background: #dc2626; }
.cd-player:hover { border-color: var(--primary); }
.cd-player:hover .cd-player-name { color: var(--primary); }

/* Sous-titre dans les lignes detail depliables (fantaisy) */
.detail-section-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 0.5rem 0 0.4rem; }
.detail-section-label:first-child { margin-top: 0; }
.detail-section-label i { color: var(--primary); margin-right: 0.3rem; }

/* Badge "réservé id 3" dans le menu (visible uniquement par le joueur 3) */
.nav-tag { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 1px 6px; border-radius: 999px; background: rgba(245,158,11,0.18); color: #b45309; margin-left: 0.35rem; vertical-align: middle; }
.nav-tag i { font-size: 0.85em; }

/* ============================================================
   Records (vitrine) · Projection · Wrapped — joueur 3
   ============================================================ */
/* --- Vitrine des records --- */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.rec-card { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1rem 0.95rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; opacity: 0; transform: translateY(14px); animation: recIn .5s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes recIn { to { opacity: 1; transform: none; } }
.rec-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.rec-card.is-success::before { background: #059669; } .rec-card.is-primary::before { background: var(--primary); }
.rec-card.is-gold::before { background: #f59e0b; } .rec-card.is-danger::before { background: #dc2626; } .rec-card.is-warning::before { background: #d97706; }
.rec-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.rec-thumb-player { border-radius: 50%; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec-thumb-club img { object-fit: contain; padding: 6px; }
.rec-thumb-icon { color: #fff; font-size: 1.3rem; }
.rec-card.is-success .rec-thumb-icon { background: linear-gradient(135deg,#10b981,#059669); }
.rec-card.is-primary .rec-thumb-icon { background: var(--gradient-primary); }
.rec-card.is-gold .rec-thumb-icon { background: linear-gradient(135deg,#fbbf24,#d97706); }
.rec-card.is-danger .rec-thumb-icon { background: linear-gradient(135deg,#f87171,#dc2626); }
.rec-card.is-warning .rec-thumb-icon { background: linear-gradient(135deg,#fbbf24,#ea580c); }
.rec-body { min-width: 0; }
.rec-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; color: var(--text-muted); margin-bottom: 0.15rem; }
.rec-value { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.4; }
.rec-value strong { color: var(--text); font-weight: 800; }
.rec-foot { text-align: center; color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .rec-card { animation: none; opacity: 1; transform: none; } }
/* Sections par thème + graphiques (records v2) */
.rec-theme { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; color: var(--text); margin: 1.5rem 0 .7rem; letter-spacing: -.01em; }
.rec-theme i { color: var(--primary); }
.rec-theme-count { font-size: .7rem; font-weight: 700; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: .06rem .5rem; }
.rec-svg { display: block; width: 100%; height: 140px; }
.rec-chart-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.rec-chart-foot b { color: var(--text); font-weight: 800; }
.rec-chart-foot sup { font-size: .7em; }
.rec-chart-arrow { color: var(--text-muted); opacity: .6; }
.rec-bars { display: flex; flex-direction: column; gap: .5rem; }
.rec-bar { display: flex; align-items: center; gap: .6rem; }
.rec-bar-k { width: 52px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--text); flex-shrink: 0; }
.rec-bar-track { flex: 1; height: 14px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.rec-bar-track > span { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #a5b4fc); border-radius: 999px; }
.rec-bar-v { width: 50px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--text-secondary); flex-shrink: 0; }

/* --- Classement projeté --- */
.proj-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; background: var(--gradient-primary); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-md); }
.proj-hero-main { text-align: center; }
.proj-hero-big { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.proj-hero-lbl { font-size: 0.78rem; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.proj-hero-meta { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; }
.proj-hero-meta i { width: 1.1rem; opacity: 0.9; } .proj-hero-meta sup { font-size: 0.65em; }
.proj-odds { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; }
.proj-odds .avatar-sm { flex-shrink: 0; }
.proj-odds-name { font-weight: 700; font-size: 0.88rem; width: 110px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-odds-bar { flex: 1; height: 10px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.proj-odds-bar > span { display: block; height: 100%; background: linear-gradient(90deg,#f59e0b,#d97706); border-radius: 999px; }
.proj-odds-val { font-weight: 800; font-size: 0.85rem; width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.proj-note { font-size: 0.78rem; color: var(--text-muted); margin: 0.6rem 0 0; }
.proj-move { font-weight: 700; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.proj-move.up { color: #059669; } .proj-move.down { color: #dc2626; } .proj-move.flat { color: var(--text-muted); }
.proj-pod { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: center; }
.proj-pod-bar { width: 54px; height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.proj-pod-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.proj-pod-val { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); width: 34px; text-align: left; }

/* --- Wrapped (rétrospective) --- */
.wrap-stage { scroll-snap-type: y proximity; }
.wrap-slide { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; margin-bottom: 1rem; scroll-snap-align: start; overflow: hidden; }
.wrap-in { width: 100%; max-width: 540px; opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.wrap-slide.in .wrap-in { opacity: 1; transform: none; }
.wrap-g1 { background: linear-gradient(150deg,#4f46e5,#7c3aed); } .wrap-g2 { background: linear-gradient(150deg,#0ea5e9,#2563eb); }
.wrap-g3 { background: linear-gradient(150deg,#059669,#0d9488); } .wrap-g4 { background: linear-gradient(150deg,#f59e0b,#ea580c); }
.wrap-g5 { background: linear-gradient(150deg,#ec4899,#db2777); } .wrap-g6 { background: linear-gradient(150deg,#8b5cf6,#6366f1); }
.wrap-g7 { background: linear-gradient(150deg,#0891b2,#0e7490); } .wrap-g8 { background: linear-gradient(150deg,#16a34a,#15803d); }
.wrap-gf { background: linear-gradient(150deg,#1e293b,#0f172a); }
.wrap-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.5); margin-bottom: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.wrap-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; font-weight: 700; }
.wrap-title { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: 0.4rem 0; }
.wrap-sub { font-size: 1.05rem; opacity: 0.95; }
.wrap-lead { font-size: 1.15rem; font-weight: 600; opacity: 0.95; }
.wrap-num { font-size: 4.6rem; font-weight: 800; line-height: 1; margin: 0.5rem 0; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wrap-num sup { font-size: 0.35em; vertical-align: super; } .wrap-num small { font-size: 0.3em; font-weight: 700; opacity: 0.85; margin-left: 0.2rem; }
.wrap-badge { display: inline-block; margin-top: 0.8rem; padding: 0.35rem 1rem; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 800; }
.wrap-pill { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,.22); font-weight: 700; font-size: 0.85em; }
.wrap-mini { display: flex; gap: 1rem; justify-content: center; margin-top: 0.8rem; }
.wrap-mini span { background: rgba(255,255,255,.15); padding: 0.3rem 0.8rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.wrap-trophies { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.1rem; }
.wrap-troph { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 700; font-size: 0.82rem; border: 1px solid rgba(255,255,255,.25); }
.wrap-troph.tier-legend { background: rgba(245,158,11,.32); border-color: rgba(245,158,11,.6); }
.wrap-troph.tier-or { background: rgba(250,204,21,.25); }
.wrap-clubs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.wrap-club { display: inline-flex; align-items: center; gap: 0.45rem; background: rgba(255,255,255,.16); padding: 0.4rem 0.8rem; border-radius: 999px; font-weight: 700; }
.wrap-club img { width: 26px; height: 26px; object-fit: contain; }
.wrap-card { width: 100%; max-width: 380px; margin: 0 auto 1.2rem; background: linear-gradient(160deg,#312e81,#1e1b4b); border-radius: 22px; padding: 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12); }
.wrap-card-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.wrap-card-av { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); }
.wrap-card-pseudo { font-size: 1.25rem; font-weight: 800; text-align: left; }
.wrap-card-season { font-size: 0.82rem; opacity: 0.8; text-align: left; }
.wrap-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.wrap-card-grid > div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 0.7rem 0.4rem; }
.wrap-card-grid span { display: block; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wrap-card-grid sup { font-size: 0.5em; }
.wrap-card-grid label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.75; font-weight: 600; }
.wrap-card-foot { text-align: center; margin-top: 1.1rem; font-weight: 700; font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.05em; }
.wrap-gf .btn-primary-gradient { margin-top: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .wrap-in { opacity: 1; transform: none; transition: none; } }
@media (max-width: 575px) { .wrap-num { font-size: 3.6rem; } .wrap-title { font-size: 1.6rem; } .wrap-slide { min-height: 70vh; } }

/* --- Wrapped v2 : logos, temps forts, animations --- */
.wrap-slide { background-size: 180% 180%; animation: wrapBg 16s ease infinite; }
@keyframes wrapBg { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.wrap-pop { opacity: 0; transform: scale(.6); }
.wrap-slide.in .wrap-pop { animation: wrapPop .7s cubic-bezier(.18,.9,.3,1.3) forwards; }
@keyframes wrapPop { to { opacity: 1; transform: scale(1); } }
.wrap-l1logo { height: 64px; width: auto; object-fit: contain; margin-bottom: .8rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.wrap-champ { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; background: rgba(255,255,255,.16); padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 700; }
.wrap-champ i { color: #fcd34d; }
.wrap-champ-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.6); }
.wrap-tf { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1rem; }
.wrap-tf-card { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 1rem .8rem; width: 150px; backdrop-filter: blur(3px); }
.wrap-tf-logo { width: 50px; height: 50px; object-fit: contain; margin-bottom: .4rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.wrap-tf-score { font-size: 1.9rem; font-weight: 800; line-height: 1; margin-bottom: .55rem; font-variant-numeric: tabular-nums; }
.wrap-tf-l { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; font-weight: 700; }
.wrap-tf-name { font-size: .92rem; font-weight: 800; margin: .1rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-tf-v { font-size: .85rem; font-weight: 700; opacity: .95; }
.wrap-card { position: relative; }
.wrap-card-l1 { position: absolute; top: 12px; right: 12px; height: 30px; width: auto; opacity: .92; }
/* Duels (slide) */
.wrap-g9 { background: linear-gradient(150deg,#e11d48,#9f1239); }
.wrap-duel-vs { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin: 1.1rem 0 .5rem; }
.wrap-duel-side { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 108px; }
.wrap-duel-side img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.wrap-duel-name { font-weight: 800; font-size: .95rem; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-duel-mid { font-size: 1.5rem; font-weight: 900; opacity: .85; }
.wrap-duel-rec { display: inline-flex; gap: .7rem; margin: .55rem 0 .35rem; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.wrap-duel-rec .w { color: #86efac; } .wrap-duel-rec .n { color: #fde68a; } .wrap-duel-rec .l { color: #fca5a5; }
.wrap-duel-note { font-size: .98rem; opacity: .95; }
.wrap-duel-mini-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); margin-bottom: .35rem; }
.wrap-tf-v .cw { color: #bbf7d0; font-weight: 800; } .wrap-tf-v .cl { color: #fecaca; font-weight: 800; }
/* Coups de génie / boulettes (slide) */
.wrap-g11 { background: linear-gradient(150deg,#d97706,#92400e); }
.wrap-rare-head { font-size: 1.05rem; font-weight: 800; margin-top: 1.3rem; display: flex; align-items: center; justify-content: center; gap: .45rem; }
.wrap-rare-head i { opacity: .92; }
.wrap-rare-sub { font-size: .8rem; opacity: .85; margin-bottom: .65rem; }
.wrap-rare-list { display: flex; flex-direction: column; gap: .6rem; max-width: 420px; margin: 0 auto; }
.wrap-rare-card { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: .7rem .9rem; backdrop-filter: blur(3px); }
.wrap-rare-match { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.wrap-rare-club { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.wrap-rare-score { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 62px; }
.wrap-rare-score span { opacity: .55; margin: 0 .15rem; }
.wrap-rare-info { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .45rem; flex-wrap: wrap; }
.wrap-rare-tag { font-size: .72rem; font-weight: 800; padding: .18rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.wrap-rare-tag.exact { background: #10b981; color: #fff; }
.wrap-rare-tag.coherent { background: rgba(255,255,255,.28); color: #fff; }
.wrap-rare-tag.faux { background: #ef4444; color: #fff; }
.wrap-rare-mine { font-size: .8rem; font-weight: 700; background: rgba(0,0,0,.22); padding: .14rem .5rem; border-radius: 999px; }
.wrap-rare-mine strong { font-weight: 800; }
.wrap-rare-cnt { font-size: .85rem; font-weight: 600; opacity: .95; }
.wrap-rare-cnt strong { font-weight: 800; }
/* Évolution du classement (slide) */
.wrap-g10 { background: linear-gradient(150deg,#6d28d9,#4f46e5); }
.wrap-rankchart { position: relative; height: 130px; max-width: 460px; margin: 1.1rem auto .3rem; overflow: visible; }
.wrap-rank-svg { width: 100%; height: 100%; display: block; }
.wrap-rank-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.35); z-index: 2; opacity: 0; }
.wrap-rank-dot.best { background: #34d399; } .wrap-rank-dot.worst { background: #f87171; }
.wrap-slide.in .wrap-rank-dot { animation: wrapDotFade .45s ease forwards .55s; }
@keyframes wrapDotFade { to { opacity: 1; } }
.wrap-rank-axis { display: flex; justify-content: space-between; max-width: 460px; margin: 0 auto; font-size: .72rem; font-weight: 600; opacity: .8; }
.wrap-rank-cards { display: flex; gap: .8rem; justify-content: center; margin-top: 1rem; }
.wrap-rank-card { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: .8rem 1rem; width: 145px; backdrop-filter: blur(3px); }
.wrap-rank-ic { font-size: 1.05rem; margin-bottom: .2rem; }
.wrap-rank-ic.up { color: #bbf7d0; } .wrap-rank-ic.down { color: #fecaca; }
.wrap-rank-v { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wrap-rank-v sup { font-size: .45em; }
.wrap-rank-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; font-weight: 700; margin-top: .15rem; }
.wrap-rank-s { font-size: .82rem; font-weight: 700; opacity: .95; margin-top: .1rem; }
@media (prefers-reduced-motion: reduce) {
  .wrap-rank-dot { opacity: 1; animation: none; }
}
/* Chouchou / Toi vs la moyenne / Mois canon / Séries (slides) */
.wrap-g12 { background: linear-gradient(150deg,#0d9488,#115e59); }
.wrap-g13 { background: linear-gradient(150deg,#2563eb,#1e3a8a); }
.wrap-g14 { background: linear-gradient(150deg,#c026d3,#701a75); }
.wrap-g15 { background: linear-gradient(150deg,#dc2626,#7f1d1d); }
.wrap-cmp-strip { display: flex; gap: 3px; align-items: center; justify-content: center; max-width: 460px; margin: 1.1rem auto .55rem; }
.wrap-cmp-strip i { flex: 1 1 0; height: 26px; max-width: 14px; border-radius: 3px; }
.wrap-cmp-strip i.up { background: #4ade80; }
.wrap-cmp-strip i.down { background: rgba(255,255,255,.28); }
.wrap-cmp-legend { display: flex; gap: 1.1rem; justify-content: center; font-size: .76rem; opacity: .9; }
.wrap-cmp-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin-right: .28rem; }
.wrap-cmp-legend i.up { background: #4ade80; }
.wrap-cmp-legend i.down { background: rgba(255,255,255,.28); }
.wrap-month-name { font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin: .15rem 0; }
.wrap-month-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; max-width: 460px; margin: 1.1rem auto 0; }
.wrap-month-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.wrap-month-fill { width: 100%; background: rgba(255,255,255,.3); border-radius: 6px 6px 0 0; min-height: 4px; }
.wrap-month-fill.best { background: #fff; }
.wrap-month-labels { display: flex; gap: 6px; max-width: 460px; margin: .3rem auto 0; }
.wrap-month-labels span { flex: 1; text-align: center; font-size: .6rem; opacity: .7; }
.wrap-month-labels span.best { opacity: 1; font-weight: 800; }
.wrap-streaks { display: flex; flex-direction: column; gap: .7rem; max-width: 430px; margin: 1.1rem auto 0; }
.wrap-streak-card { display: flex; align-items: center; gap: .9rem; text-align: left; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: .8rem 1rem; backdrop-filter: blur(3px); }
.wrap-streak-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.wrap-streak-n { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wrap-streak-n span { font-size: .52em; font-weight: 700; opacity: .85; }
.wrap-streak-l { font-size: .9rem; font-weight: 700; margin-top: .1rem; }
.wrap-streak-range { font-size: .76rem; opacity: .8; margin-top: .08rem; }
/* Confetti (slide récap) */
.wrap-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.wrap-confetti span { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: wrapFall linear infinite; animation-play-state: paused; }
.wrap-gf.in .wrap-confetti span { animation-play-state: running; }
.wrap-gf .wrap-in { position: relative; z-index: 1; }
@keyframes wrapFall { 0% { transform: translateY(-20px) rotate(0); opacity: 0; } 12% { opacity: .95; } 100% { transform: translateY(620px) rotate(540deg); opacity: .15; } }
@media (prefers-reduced-motion: reduce) {
  .wrap-slide { animation: none; }
  .wrap-pop { opacity: 1; transform: none; }
  .wrap-slide.in .wrap-pop { animation: none; }
  .wrap-confetti { display: none; }
}

/* --- Mes duels (rival / clients / bêtes noires) --- */
.duel-hero { background: var(--gradient-primary); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-md); text-align: center; }
.duel-vs { display: flex; align-items: center; justify-content: center; gap: 1.4rem; }
.duel-vs-side { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; width: 130px; }
.duel-vs-side img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.duel-vs-name { font-weight: 800; font-size: 0.95rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-vs-sub { font-size: 0.68rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.duel-vs-mid { font-size: 1.3rem; font-weight: 800; opacity: 0.85; }
.duel-hero-gap { font-size: 1.1rem; margin-top: 1rem; }
.duel-record { display: inline-flex; gap: 0.55rem; align-items: baseline; margin-top: 0.5rem; font-weight: 800; font-size: 1.05rem; }
.duel-record .w { color: #bbf7d0; } .duel-record .l { color: #fecaca; } .duel-record .n { opacity: 0.85; }
.duel-record-sep { font-weight: 600; font-size: 0.8rem; opacity: 0.85; }
.duel-hero-note { font-size: 0.82rem; opacity: 0.9; margin-top: 0.45rem; }
.duel-intro { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.6rem; }
.duel-list { display: flex; flex-direction: column; }
.duel-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border-light); }
.duel-row:last-child { border-bottom: 0; }
.duel-row .avatar-sm { flex-shrink: 0; }
.duel-row-name { font-weight: 700; font-size: 0.88rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.duel-bar { width: 84px; height: 8px; border-radius: 999px; overflow: hidden; display: flex; flex-shrink: 0; background: var(--bg-alt); }
.duel-bar i { display: block; height: 100%; }
.duel-bar .bw { background: #059669; } .duel-bar .bn { background: #cbd5e1; } .duel-bar .bl { background: #dc2626; }
.duel-rec { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 0.84rem; white-space: nowrap; width: 58px; text-align: right; }
.duel-rec .w { color: var(--success); } .duel-rec .l { color: var(--danger); } .duel-rec .n { color: var(--text-muted); }
.duel-foot { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.8rem; }
.duel-foot .w { color: var(--success); font-weight: 700; } .duel-foot .l { color: var(--danger); font-weight: 700; } .duel-foot .n { color: var(--text-muted); font-weight: 700; }
@media (max-width: 575px) { .duel-vs { gap: 0.8rem; } .duel-vs-side { width: 108px; } .duel-vs-side img { width: 64px; height: 64px; } }

/* --- Duel direct (vs un joueur choisi) --- */
.h2h-pick { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.h2h-pick > i { color: var(--text-muted); flex-shrink: 0; }
.h2h-pick input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.9rem; outline: none; font-family: inherit; }
.h2h-pick input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.h2h-clear { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); color: var(--text-muted); text-decoration: none; font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.h2h-clear:hover { background: var(--border); color: var(--text); }
.h2h-head { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-top: 1rem; flex-wrap: wrap; }
.h2h-side { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; min-width: 0; }
.h2h-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.h2h-score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.05rem; }
.h2h-score .w { color: var(--success); } .h2h-score .l { color: var(--danger); } .h2h-score .n { color: var(--text-muted); }
.h2h-sub { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin: 0.35rem 0 0.5rem; }
.h2h-bar { display: flex; justify-content: center; margin-bottom: 0.3rem; }
.h2h-bar .duel-bar { width: 100%; max-width: 340px; height: 10px; }
.h2h-res { font-weight: 800; font-size: 0.78rem; padding: 0.05rem 0.45rem; border-radius: 6px; }
.h2h-res.w { background: rgba(5,150,105,.14); color: var(--success); } .h2h-res.l { background: rgba(220,38,38,.12); color: var(--danger); } .h2h-res.n { background: var(--bg-alt); color: var(--text-muted); }
.h2h-cum { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); } .h2h-cum.pos { color: var(--success); } .h2h-cum.neg { color: var(--danger); }
.h2h-table th, .h2h-table td { font-size: 0.84rem; }
.h2h-menu { position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); max-height: 264px; overflow-y: auto; z-index: 30; display: none; }
.h2h-menu.open { display: block; }
.h2h-opt { padding: 0.5rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--text); cursor: pointer; }
.h2h-opt:hover, .h2h-opt.active { background: var(--primary-light); color: var(--primary); }
.h2h-none { padding: 0.6rem 0.9rem; color: var(--text-muted); font-size: 0.85rem; }
/* le menu d'autocomplétion ne doit pas être rogné par le overflow:hidden mobile de .card-pronos */
.card-pronos.h2h-card { overflow: visible; }

/* ============================================================
   Classement en relief (joueur 3) : podium 3D + profil d'altitude
   ============================================================ */
.relief-stage { position: relative; background: radial-gradient(120% 95% at 50% 0%, #312e81 0%, #1e1b4b 55%, #0f172a 100%); border-radius: var(--radius); padding: 2.2rem 1rem 1.6rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-md); overflow: hidden; }
.relief-podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(.5rem, 3vw, 1.4rem); }
.relief-place { display: flex; flex-direction: column; align-items: center; width: clamp(74px, 26vw, 130px); }
.relief-ava-wrap { position: relative; }
.relief-ava { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); box-shadow: 0 8px 22px rgba(0,0,0,.4); background: #1e1b4b; }
.relief-place.p1 .relief-ava { width: 84px; height: 84px; border-color: #fcd34d; box-shadow: 0 0 0 4px rgba(252,211,77,.22), 0 12px 30px rgba(0,0,0,.5); }
.relief-crown { color: #fcd34d; font-size: 1.5rem; margin-bottom: .35rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); animation: reliefFloat 3s ease-in-out infinite; }
.relief-you { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .4rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.relief-name { color: #fff; font-weight: 800; margin-top: .55rem; font-size: .88rem; max-width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relief-pts { color: #c7d2fe; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.relief-pts span { opacity: .7; font-weight: 600; font-size: .9em; }
.relief-pillar { margin-top: .55rem; width: 100%; border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center; padding-top: .45rem; font-weight: 800; font-size: 1.5rem; transform-origin: bottom; animation: reliefRise .7s cubic-bezier(.2,.75,.3,1) both; }
.relief-pillar span { text-shadow: 0 1px 1px rgba(255,255,255,.25); }
.relief-place.p1 .relief-pillar { height: 132px; background: linear-gradient(180deg, #fde68a, #f59e0b); color: #7c2d12; box-shadow: 0 6px 0 #b45309, 0 12px 0 #92400e, 0 28px 36px rgba(0,0,0,.5); animation-delay: .2s; }
.relief-place.p2 .relief-pillar { height: 102px; background: linear-gradient(180deg, #f1f5f9, #94a3b8); color: #334155; box-shadow: 0 6px 0 #64748b, 0 12px 0 #475569, 0 22px 30px rgba(0,0,0,.42); animation-delay: .05s; }
.relief-place.p3 .relief-pillar { height: 80px; background: linear-gradient(180deg, #fdba74, #ea580c); color: #7c2d12; box-shadow: 0 6px 0 #9a3412, 0 12px 0 #7c2d12, 0 20px 26px rgba(0,0,0,.42); }
@keyframes reliefRise { from { transform: scaleY(.04); opacity: .2; } to { transform: scaleY(1); opacity: 1; } }
@keyframes reliefFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.relief-ridge-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1rem .7rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.relief-ridge-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; color: var(--text); margin-bottom: .6rem; }
.relief-ridge-head i.fa-chart-area { color: var(--primary); margin-right: .35rem; }
.relief-ridge-leg { font-size: .78rem; color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.relief-ridge-leg .rdot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(180deg, #f59e0b, #d97706); display: inline-block; }
.relief-ridge-leg sup { font-size: .7em; }
.relief-ridge { display: flex; align-items: flex-end; gap: 1px; height: 150px; }
.relief-ridge > i { flex: 1 1 0; min-width: 0; background: linear-gradient(180deg, #6366f1, #a5b4fc 78%, #c7d2fe); border-radius: 2px 2px 0 0; transition: filter .12s; }
.relief-ridge > i:hover { filter: brightness(1.18) saturate(1.2); }
.relief-ridge > i.me { background: linear-gradient(180deg, #fbbf24, #d97706); box-shadow: 0 0 8px rgba(245,158,11,.65); }
.relief-ridge-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); margin-top: .4rem; font-variant-numeric: tabular-nums; }

.relief-list { display: flex; flex-direction: column; gap: .45rem; }
.relief-row { position: relative; display: flex; align-items: center; gap: .7rem; padding: .55rem .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05); overflow: hidden; }
.relief-row.is-me { border-color: var(--primary); box-shadow: 0 4px 16px -5px rgba(var(--primary-rgb), .55); }
.relief-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--primary-rgb), .08); border-right: 3px solid rgba(var(--primary-rgb), .55); z-index: 0; }
.relief-row.is-me .relief-fill { background: rgba(245,158,11,.10); border-right-color: #f59e0b; }
.relief-row > *:not(.relief-fill) { position: relative; z-index: 1; }
.relief-rank { font-weight: 800; min-width: 34px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.relief-row-name { font-weight: 700; font-size: .9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--text); }
.relief-row-name:hover { color: var(--primary); }
.relief-row-pts { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.relief-row-pts small { font-weight: 600; color: var(--text-muted); font-size: .7em; margin-left: .15rem; }
/* Top 3 distingué DANS la liste (médailles), sans le séparer du reste */
.relief-row.r1 { border-color: rgba(245,158,11,.55); box-shadow: 0 3px 12px -4px rgba(245,158,11,.45); }
.relief-row.r2 { border-color: rgba(148,163,184,.65); }
.relief-row.r3 { border-color: rgba(234,88,12,.5); }
.relief-row.r1 .relief-rank, .relief-row.r2 .relief-rank, .relief-row.r3 .relief-rank { min-width: 0; width: 27px; height: 27px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .82rem; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.relief-row.r1 .relief-rank { background: linear-gradient(135deg, #fbbf24, #d97706); }
.relief-row.r2 .relief-rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #334155; }
.relief-row.r3 .relief-rank { background: linear-gradient(135deg, #fdba74, #ea580c); }
.relief-row-crown { color: #f59e0b; font-size: .85rem; margin-left: -.2rem; }
@media (prefers-reduced-motion: reduce) { .relief-pillar, .relief-crown { animation: none; } }
@media (max-width: 480px) { .relief-ava { width: 50px; height: 50px; } .relief-place.p1 .relief-ava { width: 68px; height: 68px; } .relief-name { font-size: .78rem; } .relief-pillar { font-size: 1.2rem; } }

/* ===== Multiplex live ===== */
.mx-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mx-status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .82rem; padding: .3rem .85rem; border-radius: 999px; background: var(--bg-alt); color: var(--text-secondary); }
.mx-status .mx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); }
.mx-status.mx-st-live { background: rgba(220, 38, 38, .1); color: #dc2626; }
.mx-status.mx-st-live .mx-dot { background: #dc2626; animation: mxPulse 1.2s infinite; }
.mx-status.mx-st-a_venir { background: rgba(37, 99, 235, .1); color: #2563eb; }
@keyframes mxPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }
.mx-bar-actions { display: flex; gap: .4rem; }
.mx-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff; color: var(--text-secondary); cursor: pointer; }
.mx-btn:hover { background: var(--bg-alt); color: var(--primary); }
.mx-moi { display: flex; align-items: center; gap: 1rem; background: var(--gradient-primary); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; box-shadow: 0 12px 30px rgba(var(--primary-rgb), .28); position: relative; overflow: hidden; }
.mx-moi.mx-st-live { background: linear-gradient(135deg, #be123c, #7c3aed); }
.mx-skeleton { min-height: 96px; background: var(--bg-alt) !important; box-shadow: none; }
.mx-moi-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); flex-shrink: 0; }
.mx-moi-main { flex: 1; min-width: 0; }
.mx-moi-pseudo { font-weight: 800; font-size: 1rem; opacity: .95; }
.mx-moi-pts { font-weight: 600; position: relative; display: inline-block; }
.mx-moi-pts #mxMoiPts { font-size: 2.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mx-moi-pts small { opacity: .85; font-weight: 700; font-size: .7rem; }
.mx-moi-sub { font-size: .78rem; opacity: .9; margin-top: .15rem; }
.mx-bonusbar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.25); margin-top: .5rem; max-width: 240px; overflow: hidden; }
.mx-bonusbar span { display: block; height: 100%; background: #fff; border-radius: 999px; transition: width .6s ease; }
.mx-moi-rankbox { text-align: center; flex-shrink: 0; }
.mx-moi-rang { font-size: 2.1rem; font-weight: 800; line-height: 1; } .mx-moi-rang sup { font-size: .5em; opacity: .8; }
.mx-moi-rank-l { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; font-weight: 700; }
.mx-moi-total { font-size: .72rem; opacity: .9; margin-top: .3rem; }
.mx-moi-rang.mx-rankup { animation: mxRankUp .8s ease; }
@keyframes mxRankUp { 0% { transform: scale(1); } 30% { transform: scale(1.4); color: #bbf7d0; } 100% { transform: scale(1); } }
.mx-float { position: absolute; right: -10px; top: -8px; color: #bbf7d0; font-weight: 800; font-size: 1.1rem; animation: mxFloat 1.5s ease forwards; pointer-events: none; }
@keyframes mxFloat { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px) scale(1.1); } }
.mx-section-title { font-weight: 800; font-size: .95rem; color: var(--text); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .7rem; }
.mx-section-title i { color: var(--primary); }
.mx-counts { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.mx-matchs { display: flex; flex-direction: column; gap: 1rem; }
.mx-mgroup-h { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.mx-mgroup-h span { background: var(--bg-alt); color: var(--text-secondary); padding: 0 .45rem; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.mx-mg-live .mx-mgroup-h { color: #dc2626; }
.mx-mg-live .mx-mgroup-h span { background: rgba(220,38,38,.12); color: #dc2626; }
.mx-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.mx-ko-day { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.mx-follow-menu { display: none; margin-top: .35rem; border: 1px solid var(--border-light); border-radius: 12px; max-height: 230px; overflow: auto; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.mx-follow-menu.open { display: block; }
.mx-follow-opt { padding: .5rem .75rem; font-size: .82rem; font-weight: 600; color: var(--text); cursor: pointer; }
.mx-follow-opt:hover { background: var(--primary-light); color: var(--primary); }
.mx-follow-none { padding: .5rem .75rem; font-size: .8rem; color: var(--text-muted); }
.mx-loading, .mx-empty { color: var(--text-muted); font-size: .85rem; padding: .5rem 0; }
.mx-match { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: .7rem .75rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.mx-match.mx-st-live { border-color: rgba(220,38,38,.45); box-shadow: 0 0 0 1px rgba(220,38,38,.2), 0 4px 14px rgba(220,38,38,.12); }
.mx-match-teams { display: flex; align-items: center; gap: .4rem; }
.mx-team { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.mx-team img { width: 34px; height: 34px; object-fit: contain; }
.mx-team span { font-size: .68rem; font-weight: 700; text-align: center; line-height: 1.1; color: var(--text); overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.mx-match-mid { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 64px; }
.mx-score { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--text); } .mx-score i { font-style: normal; opacity: .45; margin: 0 .12rem; }
.mx-ko { font-size: 1rem; font-weight: 800; color: var(--text-muted); }
.mx-badge { font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .42rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.mx-badge.live { background: #dc2626; color: #fff; } .mx-badge.live .mx-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: mxPulse 1.2s infinite; }
.mx-badge.done { background: var(--bg-alt); color: var(--text-secondary); }
.mx-badge.tocome { background: rgba(37,99,235,.1); color: #2563eb; }
.mx-match-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed var(--border-light); font-size: .74rem; }
.mx-myprono b { color: var(--text); } .mx-noprono { color: var(--text-muted); font-style: italic; }
.mx-mypts { font-weight: 800; font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.mx-mypts.mx-exact { background: rgba(22,163,74,.14); color: #16a34a; }
.mx-mypts.mx-coherent { background: rgba(37,99,235,.14); color: #2563eb; }
.mx-mypts.mx-faux { background: rgba(220,38,38,.14); color: #dc2626; }
.mx-mypts.mx-pending { background: var(--bg-alt); color: var(--text-muted); }
.mx-match.mx-goal { animation: mxGoal 1.1s ease; }
@keyframes mxGoal { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } 15% { box-shadow: 0 0 0 4px rgba(22,163,74,.5); transform: scale(1.03); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); transform: scale(1); } }
.mx-rank { display: flex; flex-direction: column; gap: .12rem; }
.mx-rank-row { display: flex; align-items: center; gap: .55rem; padding: .4rem .35rem; border-radius: 8px; }
.mx-rank-row.is-me { background: var(--primary-light); }
.mx-rank-row.is-follow { background: rgba(245,158,11,.08); }
.mx-rank-row.mx-bump { animation: mxBump 1.3s ease; }
@keyframes mxBump { 0% { background: rgba(22,163,74,.25); } 100% { background: transparent; } }
.mx-rang { width: 24px; text-align: center; font-weight: 800; font-size: .82rem; color: var(--text-secondary); flex-shrink: 0; }
.mx-rang.mx-top1 { color: #f59e0b; } .mx-rang.mx-top2 { color: #94a3b8; } .mx-rang.mx-top3 { color: #b45309; }
.mx-rank-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mx-rank-noimg { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); border: 1px dashed var(--border); flex-shrink: 0; }
.mx-rank-name { flex: 1; min-width: 0; font-weight: 700; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-me-dot { color: var(--primary); font-size: .5rem; vertical-align: middle; }
.mx-rank-pts { font-weight: 800; font-size: .85rem; color: var(--text); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mx-star { border: none; background: none; cursor: pointer; color: var(--border); font-size: .95rem; line-height: 1; padding: 0 .2rem; flex-shrink: 0; }
.mx-star.on, .mx-star:hover { color: #f59e0b; }
.mx-unfollow { border: none; background: none; cursor: pointer; color: var(--text-muted); padding: 0 .2rem; flex-shrink: 0; }
.mx-unfollow:hover { color: var(--danger); }
.mx-follow-pick { position: relative; margin-bottom: .6rem; }
.mx-follow-pick i { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .8rem; }
.mx-follow-pick input { width: 100%; padding: .45rem .6rem .45rem 2rem; border: 1px solid var(--border-light); border-radius: 999px; font-size: .82rem; }
@media (max-width: 575px) {
  .mx-moi { flex-wrap: wrap; gap: .7rem; padding: .9rem 1rem; }
  .mx-moi-rankbox { margin-left: auto; }
  .mx-moi-pts #mxMoiPts { font-size: 2rem; }
  .mx-mgrid { grid-template-columns: 1fr; gap: .6rem; } /* 1 match par ligne sur mobile (noms tronqués sinon) */
}
/* Indicateur de tension (matchs en cours) */
.mx-tension { margin-top: .5rem; font-size: .72rem; font-weight: 800; padding: .3rem .55rem; border-radius: 8px; display: flex; align-items: center; gap: .35rem; }
.mx-tension i { font-size: .7rem; }
.mx-tone-hot { background: rgba(245,158,11,.16); color: #b45309; animation: mxTensionPulse 1.4s ease infinite; }
.mx-tone-warn { background: rgba(220,38,38,.12); color: #dc2626; }
.mx-tone-hope { background: rgba(37,99,235,.12); color: #2563eb; }
@keyframes mxTensionPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } 50% { box-shadow: 0 0 0 3px rgba(245,158,11,.25); } }
/* Célébration : un prono passe exact */
.mx-match.mx-exactnew { animation: mxExact 1.4s ease; }
@keyframes mxExact { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0); transform: scale(1); } 12% { box-shadow: 0 0 0 5px rgba(22,163,74,.55); transform: scale(1.05); } 45% { box-shadow: 0 0 0 4px rgba(245,158,11,.5); transform: scale(1.03); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); transform: scale(1); } }
/* Carte de match cliquable */
.mx-match { cursor: pointer; }
.mx-match:hover { border-color: var(--primary); }
/* Hero : prochain coup d'envoi */
.mx-hero { margin-bottom: 1.2rem; }
.mx-hero-card { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.2rem; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.mx-hero-l { font-size: .78rem; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.mx-hero-l i { margin-right: .3rem; }
.mx-hero-cd { font-size: 2.8rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; margin: .25rem 0; letter-spacing: .02em; }
.mx-hero-m { font-size: .92rem; font-weight: 700; opacity: .92; }
/* Modal détail match */
.mx-modal { display: none; position: fixed; inset: 0; z-index: 1080; }
.mx-modal.open { display: block; }
.mx-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.mx-modal-card { position: relative; background: #fff; max-width: 440px; width: calc(100% - 2rem); margin: 12vh auto 0; border-radius: 18px; padding: 1.2rem; box-shadow: 0 30px 70px rgba(0,0,0,.4); max-height: 76vh; overflow: auto; }
.mx-modal-x { position: absolute; top: .6rem; right: .6rem; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg-alt); color: var(--text-secondary); cursor: pointer; }
.mx-md-head { display: flex; align-items: center; gap: .5rem; }
.mx-md-head .mx-team { flex: 1; }
.mx-md-score { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; flex-shrink: 0; padding: 0 .3rem; }
.mx-md-mine { text-align: center; font-size: .8rem; color: var(--text-secondary); margin-top: .5rem; }
.mx-md-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 1rem 0 .5rem; }
.mx-md-bar { margin-bottom: .55rem; }
.mx-md-bar-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; margin-bottom: .25rem; }
.mx-md-lbl { font-weight: 700; }
.mx-md-val { display: inline-flex; align-items: center; gap: .45rem; }
.mx-md-n { font-weight: 800; font-size: .98rem; color: var(--text); }
.mx-md-pct { font-size: .72rem; font-weight: 800; padding: .08rem .45rem; border-radius: 999px; min-width: 2.6rem; text-align: center; background: var(--bg-alt); color: var(--text-secondary); }
.mx-md-bar-t { height: 9px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.mx-md-bar-t span { display: block; height: 100%; border-radius: 999px; }
.mx-md-bar.mx-tone-exact .mx-md-bar-t span { background: #16a34a; } .mx-md-bar.mx-tone-exact .mx-md-lbl { color: #16a34a; } .mx-md-bar.mx-tone-exact .mx-md-pct { background: #dcfce7; color: #16a34a; }
.mx-md-bar.mx-tone-coherent .mx-md-bar-t span { background: #2563eb; } .mx-md-bar.mx-tone-coherent .mx-md-lbl { color: #2563eb; } .mx-md-bar.mx-tone-coherent .mx-md-pct { background: #dbeafe; color: #2563eb; }
.mx-md-bar.mx-tone-faux .mx-md-bar-t span { background: #dc2626; } .mx-md-bar.mx-tone-faux .mx-md-lbl { color: #dc2626; } .mx-md-bar.mx-tone-faux .mx-md-pct { background: #fee2e2; color: #dc2626; }
.mx-md-bar.mx-tone-nul .mx-md-bar-t span { background: #f59e0b; } .mx-md-bar.mx-tone-nul .mx-md-lbl { color: #b45309; } .mx-md-bar.mx-tone-nul .mx-md-pct { background: #fef3c7; color: #b45309; }
.mx-md-tops { display: flex; flex-wrap: wrap; gap: .4rem; }
.mx-md-top { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; border: 1px solid var(--border-light); font-size: .8rem; }
.mx-md-sc { font-weight: 800; padding: .2rem .55rem; background: #fff; color: var(--text); }
.mx-md-ct { font-weight: 800; padding: .2rem .5rem; background: var(--bg-alt); color: var(--text-secondary); border-left: 1px solid var(--border-light); }
.mx-md-ct::before { content: "\00d7"; opacity: .55; margin-right: .06rem; }
.mx-md-faces { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.15rem 0 .7rem; }
.mx-md-face { display: inline-flex; align-items: center; gap: .3rem; background: var(--bg-alt); border-radius: 999px; padding: .12rem .55rem .12rem .14rem; font-size: .74rem; font-weight: 600; }
.mx-md-face img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.mx-md-locked { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-alt); border: 1px dashed var(--border-color, #d7dbe0); }
.mx-md-locked > i { font-size: 1.15rem; color: var(--text-muted); flex: 0 0 auto; }
.mx-md-locked b { display: block; font-size: .92rem; }
.mx-md-locked span { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .15rem; }

/* --- Multiplex : delta de rang « ce soir » --- */
.mx-delta { display: inline-flex; align-items: center; justify-content: center; gap: .03rem; font-size: .64rem; font-weight: 800; padding: 0 .2rem; border-radius: 999px; flex: 0 0 auto; min-width: 1.85rem; line-height: 1.5; }
.mx-delta.up { color: var(--success); background: var(--success-light); }
.mx-delta.down { color: var(--danger); background: var(--danger-light); }
.mx-delta.flat { color: var(--text-muted); }
.mx-delta i { font-size: .68rem; }
.mx-moi-delta { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; color: rgba(255,255,255,.8); margin-top: .15rem; }
.mx-moi-delta .mx-delta { background: rgba(255,255,255,.2); }
.mx-moi-delta .mx-delta.up { color: #bbf7d0; }
.mx-moi-delta .mx-delta.down { color: #fecaca; }
.mx-duel { font-size: .66rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; margin-left: .15rem; flex: 0 0 auto; }
.mx-duel.lead { background: var(--success-light); color: var(--success); }
.mx-duel.trail { background: var(--danger-light); color: var(--danger); }
.mx-duel.even { background: var(--bg-alt); color: var(--text-muted); }

/* --- Multiplex : fil d'évènements de la soirée --- */
.mx-feed { max-height: 340px; overflow-y: auto; }
.mx-feed-item { display: flex; align-items: center; gap: .55rem; padding: .5rem .25rem; border-bottom: 1px solid var(--border-light); font-size: .85rem; }
.mx-feed-item:last-child { border-bottom: none; }
.mx-feed-ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex: 0 0 auto; background: var(--bg-alt); color: var(--text-secondary); }
.mx-feed-tx { flex: 1; min-width: 0; }
.mx-feed-tx b { font-weight: 800; }
.mx-feed-t { font-size: .68rem; font-weight: 700; color: var(--text-muted); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.mx-feed-item.mx-tone-exact .mx-feed-ic { background: var(--success); color: #fff; }
.mx-feed-item.mx-tone-help .mx-feed-ic { background: var(--success-light); color: var(--success); }
.mx-feed-item.mx-tone-ouch .mx-feed-ic { background: var(--danger-light); color: var(--danger); }
.mx-feed-item.mx-tone-up .mx-feed-ic { background: var(--success-light); color: var(--success); }
.mx-feed-item.mx-tone-down .mx-feed-ic { background: var(--danger-light); color: var(--danger); }
.mx-feed-item.is-new { animation: mxFeedIn .6s ease; }
@keyframes mxFeedIn { from { background: rgba(var(--primary-rgb), .12); } to { background: transparent; } }
.mx-feed-item.mx-tone-coherent .mx-feed-ic { background: #dbeafe; color: #2563eb; }
.mx-feed-item.mx-tone-faux .mx-feed-ic { background: #fee2e2; color: #dc2626; }
.mx-feed-tag { font-size: .68rem; font-weight: 800; padding: .04rem .4rem; border-radius: 999px; white-space: nowrap; }
.mx-feed-tag.t-exact { background: #dcfce7; color: #16a34a; }
.mx-feed-tag.t-coherent { background: #dbeafe; color: #2563eb; }
.mx-feed-tag.t-faux { background: #fee2e2; color: #dc2626; }

/* Sélecteur de journée */
.mx-jsel { display: inline-flex; align-items: center; gap: .4rem; }
.mx-jbtn { width: 26px; height: 26px; border: 1px solid var(--border); background: #fff; border-radius: 8px; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.mx-jbtn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.mx-jbtn:disabled { opacity: .4; cursor: default; }
.mx-jlive { display: inline-flex; align-items: center; gap: .3rem; border: none; background: var(--danger); color: #fff; font-weight: 800; font-size: .7rem; padding: .2rem .55rem; border-radius: 999px; cursor: pointer; }
.mx-jlive .mx-dot { background: #fff; }
.mx-status.mx-recap { background: var(--bg-alt); color: var(--text-secondary); }
.mx-status.mx-recap .mx-dot { background: var(--text-muted); animation: none; }

/* Bascule classement Général / Journée */
.mx-rk-toggle { display: inline-flex; gap: .15rem; background: var(--bg-alt); padding: .15rem; border-radius: 999px; }
.mx-rk-toggle button { border: none; background: transparent; font-size: .72rem; font-weight: 800; color: var(--text-secondary); padding: .22rem .6rem; border-radius: 999px; cursor: pointer; }
.mx-rk-toggle button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }

/* Répartition communauté inline (matchs en direct) */
.mx-comm { margin-top: .5rem; }
.mx-comm-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--bg-alt); gap: 1px; }
.mx-comm-bar .e { background: #16a34a; } .mx-comm-bar .c { background: #2563eb; } .mx-comm-bar .f { background: #dc2626; }
.mx-comm-lg { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; margin-top: .3rem; font-size: .64rem; font-weight: 700; color: var(--text-muted); }
.mx-comm-lg .e { color: #16a34a; } .mx-comm-lg .c { color: #2563eb; } .mx-comm-lg .f { color: #dc2626; }
.mx-against { color: #b45309; background: #fef3c7; border-radius: 999px; padding: .02rem .45rem; font-weight: 800; }
.mx-against i { margin-right: .12rem; }

/* Bannière flash « à la BFM » */
.mx-flash { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; transform: translateY(-110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; color: #fff; background: #111827; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.mx-flash.show { transform: translateY(0); }
.mx-flash-tag { background: #dc2626; color: #fff; font-weight: 900; text-transform: uppercase; font-size: .68rem; letter-spacing: .09em; padding: .2rem .5rem; border-radius: 4px; flex: 0 0 auto; }
.mx-flash-txt { font-size: .92rem; font-weight: 700; }
.mx-flash.tone-exact .mx-flash-tag, .mx-flash.tone-up .mx-flash-tag { background: #16a34a; }
.mx-flash.tone-down .mx-flash-tag { background: #dc2626; }

/* Confettis (milestone) */
.mx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1090; overflow: hidden; }
.mx-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: mxConf 2.7s linear forwards; }
@keyframes mxConf { 0% { transform: translateY(-12px) rotate(0); opacity: 1; } 100% { transform: translateY(103vh) rotate(700deg); opacity: .85; } }

/* Fil : tags d'impact (but qui fait mal) */
.mx-feed-imp { font-size: .66rem; font-weight: 800; padding: .04rem .4rem; border-radius: 999px; white-space: nowrap; }
.mx-feed-imp.bad { background: #fee2e2; color: #dc2626; }
.mx-feed-imp.good { background: #dcfce7; color: #16a34a; }

/* Coup de la journée */
.mx-coup { display: flex; align-items: center; gap: .5rem; margin: .7rem 0 .2rem; padding: .6rem .85rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid rgba(234,179,8,.4); font-size: .85rem; color: #92400e; }
.mx-coup > i { color: #eab308; font-size: 1.05rem; flex: 0 0 auto; }
.mx-coup b { font-weight: 800; }

/* Probabilité TOP 7 */
.mx-proba { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .85rem 1rem; height: 100%; }
.mx-proba-l { font-size: .74rem; font-weight: 800; color: var(--text-secondary); }
.mx-proba-l i { color: var(--gold); margin-right: .3rem; }
.mx-proba-v { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.mx-proba-v.hi { color: var(--success); } .mx-proba-v.mid { color: var(--warning); } .mx-proba-v.lo { color: var(--danger); }
.mx-proba-bar { height: 7px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; margin: .2rem 0 .35rem; }
.mx-proba-bar span { display: block; height: 100%; border-radius: 999px; }
.mx-proba-bar span.hi { background: var(--success); } .mx-proba-bar span.mid { background: var(--warning); } .mx-proba-bar span.lo { background: var(--danger); }
.mx-proba-sub { font-size: .7rem; color: var(--text-muted); font-weight: 600; }

/* Courbe de la journée */
.mx-curve-card .card-header-pronos { display: flex; align-items: center; justify-content: space-between; }
.mx-curve-last { font-size: .82rem; font-weight: 800; color: var(--primary); }
.mx-curve-svg { width: 100%; height: 48px; display: block; }
.mx-curve-svg polyline { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mx-curve-svg polygon.area { fill: rgba(var(--primary-rgb), .1); stroke: none; }
@media (prefers-reduced-motion: reduce) {
  .mx-match.mx-goal, .mx-match.mx-exactnew, .mx-moi-rang.mx-rankup, .mx-float, .mx-rank-row.mx-bump, .mx-status .mx-dot, .mx-badge.live .mx-dot, .mx-tone-hot { animation: none; }
}

/* ===================================================================== */
/* Tableau de bord — carte "Prochaine journée" v2 (accueil2 / next2.php)  */
/* ===================================================================== */
.n2-card { border: none; box-shadow: var(--shadow); overflow: hidden; }

/* Header dégradé + urgence */
.n2-head { background: var(--gradient-primary); color: #fff; padding: 1.1rem 1.25rem 1.25rem; }
.n2-head--soon { background: linear-gradient(135deg, #b91c1c 0%, #ea580c 100%); }
.n2-head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.n2-head-title { font-weight: 800; font-size: 1rem; }
.n2-head-title i { margin-right: .45rem; opacity: .9; }
.n2-chip { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.18); padding: .2rem .6rem; border-radius: var(--radius-full); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.n2-head-date { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: .85rem; }
.n2-head-date { text-align: center; }
.n2-head-date i { margin-right: .35rem; opacity: .85; }
.n2-cd-label { text-align: center; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.72); margin-bottom: .5rem; }
.n2-cd-label i { color: #fde68a; margin-right: .2rem; }
.n2-countdown .countdown { justify-content: center; gap: .5rem; }
.n2-head .countdown-unit { min-width: 58px; padding: .5rem .55rem; background: rgba(255,255,255,.16); }
.n2-head .countdown-value { font-size: 1.6rem; }
.n2-head .countdown-label { font-size: .56rem; }

.n2-body { padding-top: 1rem; }

/* Barre de progression des pronos (cliquable -> saisie) */
.n2-progress { display: block; text-decoration: none; border-radius: var(--radius-sm); padding: .7rem .85rem; margin-bottom: 1rem; border: 1px solid transparent; transition: transform .12s, box-shadow .12s; }
.n2-progress:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.n2-progress.is-todo { background: var(--warning-light); border-color: rgba(var(--warning-rgb), .25); }
.n2-progress.is-done { background: var(--success-light); border-color: rgba(var(--success-rgb), .2); }
.n2-progress-info { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.n2-progress-title { font-weight: 700; font-size: .86rem; }
.n2-progress.is-todo .n2-progress-title { color: var(--warning); }
.n2-progress.is-done .n2-progress-title { color: var(--success); }
.n2-progress-title i { margin-right: .35rem; }
.n2-progress-frac { font-weight: 800; font-size: .95rem; color: var(--text); white-space: nowrap; }
.n2-progress-frac small { font-weight: 600; color: var(--text-muted); }
.n2-progress-track { height: 7px; border-radius: var(--radius-full); background: rgba(0,0,0,.06); overflow: hidden; }
.n2-progress-track span { display: block; height: 100%; border-radius: inherit; transition: width .5s ease; }
.n2-progress.is-todo .n2-progress-track span { background: var(--gradient-gold); }
.n2-progress.is-done .n2-progress-track span { background: var(--gradient-success); }

/* En-tête de créneau (coup d'envoi) */
.n2-dayhead { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 1rem 0 .5rem; }
.n2-dayhead::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.n2-dayhead i { color: var(--primary); }
.n2-dayhead-time { color: var(--text-secondary); }

/* Ligne de match */
.n2-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background .15s; }
a.n2-match:hover { background: rgba(var(--primary-rgb), .045); }
.n2-side { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.n2-side.home { justify-content: flex-end; text-align: right; }
.n2-side.away { justify-content: flex-start; text-align: left; }
.n2-side img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.08)); }
.n2-name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.n2-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; }

/* À venir : pastille prono ou "+" */
.n2-prono { font-weight: 800; font-size: .95rem; background: var(--bg-alt); color: var(--text); padding: .2rem .6rem; border-radius: var(--radius-xs); }
.n2-add { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 26px; border: 1.5px dashed var(--border); color: var(--text-muted); border-radius: var(--radius-xs); font-size: .8rem; }
.n2-match.is-empty:hover .n2-add { border-color: var(--primary); color: var(--primary); }

/* Résultat (en direct / terminé) */
.n2-realscore { font-weight: 800; font-size: 1.05rem; line-height: 1; }
.n2-myprono { font-size: .68rem; color: var(--text-muted); margin-top: .2rem; white-space: nowrap; }
.n2-myprono b { color: var(--text-secondary); }
.n2-myprono--none { font-style: italic; }
.n2-ptchip { background: var(--success); color: #fff; font-weight: 800; padding: 0 .3rem; border-radius: 4px; font-size: .66rem; }
.n2-match.is-result { border: 1px solid var(--border-light); margin-bottom: .35rem; }
.n2-match.status-exact { background: var(--success-light); border-color: rgba(var(--success-rgb), .25); }
.n2-match.status-exact .n2-realscore { color: var(--success); }
.n2-match.status-coherent { background: var(--warning-light); border-color: rgba(var(--warning-rgb), .22); }
.n2-match.status-coherent .n2-realscore { color: var(--warning); }
.n2-match.status-faux { background: var(--danger-light); border-color: rgba(var(--danger-rgb), .18); }
.n2-match.status-faux .n2-realscore { color: var(--danger); }
.n2-match.status-none .n2-realscore { color: var(--text-secondary); }

/* Libellés de groupe (en direct / terminés) */
.n2-grouplabel { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .76rem; font-weight: 800; margin: 1.1rem 0 .55rem; }
.n2-grouplabel > span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.n2-grouplabel--live { color: var(--danger); }
.n2-grouplabel--done { color: var(--text-secondary); }
.n2-grouppts { font-size: .72rem; font-weight: 800; padding: .12rem .5rem; border-radius: var(--radius-full); white-space: nowrap; }
.n2-grouppts.in-play { background: var(--danger-light); color: var(--danger); }
.n2-grouppts.secured { background: var(--success-light); color: var(--success); }

.n2-empty { text-align: center; color: var(--text-muted); font-weight: 600; padding: 1.5rem 0; }
.n2-empty i { margin-right: .4rem; }

@media (max-width: 575px) {
  .n2-name { font-size: .8rem; }
  .n2-side { gap: .4rem; }
  .n2-side img { width: 26px; height: 26px; }
  .n2-mid { min-width: 50px; }
  .n2-realscore { font-size: .98rem; }
  .n2-match { padding: .5rem .35rem; gap: .35rem; }
  .n2-head { padding: 1rem 1rem 1.1rem; }
}

/* --- Refonte hero : match vedette + états live/terminé --- */
.n2-next-slot { text-align: center; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.9); margin-top: .7rem; }
.n2-next-slot i { margin-right: .25rem; opacity: .85; }
.n2-head-live, .n2-head-done { text-align: center; font-size: 1.1rem; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .5rem; }
.n2-head-sub { text-align: center; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-top: .35rem; }
.n2-head-sub i { color: #fde68a; }
.n2-head--live, .n2-head--done, .n2-head--empty { padding-bottom: 1.15rem; }

/* --- Onglets segmentés (À venir / En direct / Terminés) --- */
.n2-tabs { display: flex; gap: .3rem; background: var(--bg-alt); padding: .3rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.n2-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: none; background: transparent; cursor: pointer; padding: .5rem .4rem; border-radius: var(--radius-xs); font-size: .8rem; font-weight: 700; color: var(--text-secondary); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.n2-tab:hover { color: var(--text); }
.n2-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }
.n2-tab-n { font-size: .7rem; font-weight: 800; background: rgba(0,0,0,.06); color: var(--text-muted); padding: .02rem .42rem; border-radius: var(--radius-full); }
.n2-tab.active .n2-tab-n { background: rgba(var(--primary-rgb), .12); color: var(--primary); }
.n2-panel[hidden] { display: none; }
.n2-panel-note { display: flex; justify-content: flex-end; margin-bottom: .5rem; }

/* --- Scorecards en grille adaptative (design moderne) --- */
.n2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: .7rem; }
.n2-mc {
  position: relative; display: block; text-decoration: none; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .7rem .85rem .75rem 1rem; background: #fff; box-shadow: var(--shadow-xs);
  overflow: hidden; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
/* Rail d'accent vertical — couleur = état (mon prono / live) */
.n2-mc::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--primary); }
.n2-mc.is-empty::before { background: var(--warning); }
.n2-mc.result.status-exact::before { background: var(--success); }
.n2-mc.result.status-coherent::before { background: var(--warning); }
.n2-mc.result.status-faux::before { background: var(--danger); }
.n2-mc.result.status-none::before { background: var(--text-muted); }
.n2-mc.is-clickable { cursor: pointer; }
.n2-mc.is-clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), .3); }
.n2-mc.is-clickable:active { transform: translateY(-1px); }

.n2-mc-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 20px; margin-bottom: .5rem; }
.n2-mc-when { font-size: .62rem; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--bg-alt); padding: .14rem .55rem; border-radius: var(--radius-full); }
.n2-mc-when i { margin-right: .28rem; color: var(--primary); }
.n2-mc-tag { font-size: .56rem; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: 0 0 auto; }
.n2-mc-tag.ok { background: var(--success-light); color: var(--success); }
.n2-mc-tag.todo { background: var(--warning-light); color: var(--warning); }

.n2-mc-team { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.n2-mc-logo { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; padding: 3px; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 50%; }
.n2-mc-name { font-weight: 600; font-size: .87rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2-mc-goal { font-weight: 800; font-size: 1.2rem; color: var(--text); min-width: 1.5rem; text-align: center; flex: 0 0 auto; font-variant-numeric: tabular-nums; line-height: 1; }
.n2-mc-goal.big { font-size: 1.35rem; }
.n2-mc-goal.empty { color: var(--border); }
/* Cartes résultat : tableau "Ton prono" (mis en avant) vs "Réel" (secondaire) */
.n2-mc-board { display: grid; grid-template-columns: 1fr auto auto; column-gap: .6rem; row-gap: .32rem; align-items: center; }
.n2-mc-board-h { font-size: .53rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.n2-mc-h-prono { color: var(--primary); }
.n2-mc-h-real { color: var(--text-muted); }
.n2-mc-board-team { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.n2-mc-board-team.win .n2-mc-name { font-weight: 800; }
.n2-mc-pg { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-align: center; min-width: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.n2-mc-pg.empty { color: var(--border); }
.n2-mc-rg { font-size: 1rem; font-weight: 700; color: var(--text-muted); text-align: center; min-width: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.n2-mc.result.status-exact .n2-mc-pg, .n2-mc.result.status-exact .n2-mc-h-prono { color: var(--success); }
.n2-mc.result.status-coherent .n2-mc-pg, .n2-mc.result.status-coherent .n2-mc-h-prono { color: var(--warning); }
.n2-mc.result.status-faux .n2-mc-pg, .n2-mc.result.status-faux .n2-mc-h-prono { color: var(--danger); }
.n2-mc-verdict { font-weight: 800; display: inline-flex; align-items: center; gap: .35rem; }
.n2-mc.result.status-exact .n2-mc-verdict { color: var(--success); }
.n2-mc.result.status-coherent .n2-mc-verdict { color: var(--warning); }
.n2-mc.result.status-faux .n2-mc-verdict { color: var(--danger); }

.n2-mc.is-empty { border-style: dashed; border-color: rgba(var(--warning-rgb), .5); }
.n2-mc-badge { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--radius-full); }
.n2-mc-badge.live { background: var(--danger); color: #fff; }
.n2-mc-badge.live .status-dot.live { background: #fff; }
.n2-mc-badge.done { background: var(--bg-alt); color: var(--text-secondary); }
.n2-mc-pts { font-size: .66rem; font-weight: 800; background: var(--gradient-success); color: #fff; padding: .12rem .55rem; border-radius: var(--radius-full); box-shadow: 0 2px 7px -2px rgba(var(--success-rgb), .6); }
.n2-mc-foot { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border); font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.n2-mc-foot .muted { font-style: italic; }

/* Lavis de fond subtil selon le statut de mon prono */
.n2-mc.result.status-exact { background: linear-gradient(180deg, var(--success-light), #fff 58%); border-color: rgba(var(--success-rgb), .3); }
.n2-mc.result.status-coherent { background: linear-gradient(180deg, var(--warning-light), #fff 58%); border-color: rgba(var(--warning-rgb), .28); }
.n2-mc.result.status-faux { background: linear-gradient(180deg, var(--danger-light), #fff 62%); border-color: rgba(var(--danger-rgb), .22); }
.n2-mc.result.status-none { background: var(--bg-alt); }

/* Carte en direct : halo qui pulse pour attirer l'œil */
@keyframes n2mcLive { 0%, 100% { box-shadow: var(--shadow-xs); } 50% { box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .12), var(--shadow-sm); } }
.n2-mc[data-state="2"] { animation: n2mcLive 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .n2-mc[data-state="2"] { animation: none; } }

/* --- Carte "à venir" face-à-face + effets wahou (prototype joueur id 3) --- */
.n2-mc-ff { position: relative; display: block; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: .85rem 1rem 1rem; box-shadow: 0 12px 26px -18px rgba(15,23,42,.4); transition: transform .14s ease, box-shadow .14s ease; cursor: pointer; }
.n2-mc-ff:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -16px rgba(15,23,42,.5); }
.n2-mc-ff:active { transform: translateY(-1px); }
/* Picto « ouvrir le détail » : repère permanent en haut à droite de l'en-tête (jamais sur un nom d'équipe).
   Décoratif (pointer-events:none) — le clic reste géré par toute la carte. */
.n2-detail-cue { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: .56rem; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); opacity: .9; pointer-events: none; transition: color .14s ease, border-color .14s ease, opacity .14s ease; }
/* Le 1er élément de l'en-tête pousse tout le reste (compte à rebours/points + picto) à droite. */
.n2ff-top > :first-child, .n2ffr-top > :first-child, .n2-mc-head > :first-child { margin-right: auto; }
.n2ffr-top { gap: .35rem; }
.n2-mc-ff:hover .n2-detail-cue, .n2-mc.is-clickable:hover .n2-detail-cue { color: var(--primary); border-color: rgba(var(--primary-rgb), .45); opacity: 1; }
.n2ff-halo { position: absolute; z-index: 1; top: 50%; left: 50%; width: 130px; height: 130px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), .30), transparent 65%); animation: n2ffHalo 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes n2ffHalo { 0%, 100% { opacity: .5; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); } }
.n2ff-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.n2ff-when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2ff-when i { color: var(--primary); margin-right: .3rem; }
.n2ff-cd { flex: 0 0 auto; color: var(--primary); background: var(--primary-light); padding: .13rem .55rem; border-radius: var(--radius-full); white-space: nowrap; }
.n2ff-cd.soon { color: #fff; background: var(--danger); animation: n2ffCd 1.4s ease-in-out infinite; }
@keyframes n2ffCd { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--danger-rgb), .45); } 50% { box-shadow: 0 0 0 5px rgba(var(--danger-rgb), 0); } }
.n2ff-main { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-top: .7rem; }
.n2ff-team { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; }
.n2ff-logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; animation: n2ffCrestL .6s cubic-bezier(.22,1,.36,1) both; }
.n2ff-team:last-child .n2ff-logo { animation-name: n2ffCrestR; }
@keyframes n2ffCrestL { from { opacity: 0; transform: translateX(34px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes n2ffCrestR { from { opacity: 0; transform: translateX(-34px) scale(.7); } to { opacity: 1; transform: none; } }
.n2ff-name { font-size: .76rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.n2ff-pr { position: relative; display: flex; flex-direction: column; align-items: center; gap: .18rem; padding: .42rem .8rem; border-radius: 14px; overflow: hidden; background: var(--gradient-primary); color: #fff; box-shadow: 0 8px 18px -7px rgba(var(--primary-rgb), .65); animation: n2ffPop .5s cubic-bezier(.22,1,.36,1) .18s both; }
@keyframes n2ffPop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
.n2ff-sc { font-size: 1.9rem; font-weight: 800; line-height: 1; display: flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.n2ff-sc span { font-size: 1.2rem; color: rgba(255,255,255,.55); font-weight: 700; }
.n2ff-lbl { font-size: .52rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.n2ff-cta { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; color: var(--warning); background: var(--warning-light); border: 1px dashed rgba(var(--warning-rgb), .5); padding: .45rem .75rem; border-radius: var(--radius-full); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .n2ff-halo, .n2ff-cd.soon, .n2ff-logo, .n2ff-pr { animation: none !important; } }

/* --- Édition inline du prono depuis une carte « à venir » (id 3) --- */
.n2ff-pr[data-n2edit] { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.n2ff-pr[data-n2edit]:hover { transform: translateY(-2px); box-shadow: 0 11px 22px -7px rgba(var(--primary-rgb), .75); }
.n2ff-pr[data-n2edit]:active { transform: translateY(0) scale(.97); }
.n2ff-editcue { font-size: .82em; opacity: .72; margin-left: .15em; }
.n2ff-cta { cursor: pointer; transition: transform .15s ease, background .15s ease; }
.n2ff-cta:hover { transform: translateY(-2px); background: rgba(var(--warning-rgb), .18); }
.n2ff-cta:active { transform: translateY(0) scale(.97); }
/* Pendant l'édition : noms masqués pour laisser respirer l'éditeur, blasons gardés comme repères */
.n2-mc-ff.is-editing .n2ff-name { display: none; }
.n2-mc-ff.is-editing .n2ff-main { gap: .35rem; }
.n2-mc-ff.is-editing .n2ff-pr { animation: none; padding: .55rem .7rem; }
/* L'éditeur (steppers) remplace la capsule en place, sur le fond indigo */
.n2ffe { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.n2ffe-score { display: flex; align-items: center; gap: .5rem; }
.n2ffe-col { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.n2ffe-num { font-size: 1.55rem; font-weight: 900; line-height: 1; min-width: 1.1em; text-align: center; font-variant-numeric: tabular-nums; color: #fff; }
.n2ffe-dash { font-size: 1rem; font-weight: 800; color: rgba(255,255,255,.5); }
.n2ffe-btn { font-family: inherit; cursor: pointer; border: none; }
.n2ffe-step { width: 30px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.22); color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: background .12s ease, transform .12s ease; }
.n2ffe-step:hover { background: rgba(255,255,255,.34); }
.n2ffe-step:active { transform: scale(.88); }
.n2ffe-acts { display: flex; gap: .35rem; }
.n2ffe-cancel, .n2ffe-save { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .7rem; border-radius: var(--radius-full); font-size: .72rem; font-weight: 800; transition: transform .12s ease, filter .12s ease; }
.n2ffe-cancel { background: rgba(255,255,255,.2); color: #fff; }
.n2ffe-save { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.n2ffe-save:hover { filter: brightness(1.04); }
.n2ffe-save:active, .n2ffe-cancel:active { transform: scale(.94); }
.n2ffe-save:disabled { opacity: .7; cursor: default; }
/* Confirmation (pulse vert) / erreur (shake) */
.n2-mc-ff.n2ff-saved { animation: n2ffSaved .6s ease; }
@keyframes n2ffSaved { 0% { box-shadow: 0 0 0 0 rgba(var(--success-rgb), .55); } 100% { box-shadow: 0 0 0 16px rgba(var(--success-rgb), 0); } }
.n2-mc-ff.n2ffe-shake { animation: n2ffShake .4s ease; }
@keyframes n2ffShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .n2-mc-ff.n2ff-saved, .n2-mc-ff.n2ffe-shake { animation: none !important; } }

/* --- Carte résultat (live/terminé) face-à-face — réutilise le squelette .n2-mc-ff (id 3) --- */
.n2ffr-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.n2ffr-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .55rem; border-radius: var(--radius-full); }
.n2ffr-badge.live { background: var(--danger); color: #fff; }
.n2ffr-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: n2ffrDot 1.4s ease-in-out infinite; }
@keyframes n2ffrDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.n2ffr-badge.done { background: var(--bg-alt); color: var(--text-secondary); }
.n2ffr-pts { font-size: .66rem; font-weight: 800; color: #fff; background: var(--gradient-success); padding: .12rem .55rem; border-radius: var(--radius-full); box-shadow: 0 3px 9px -3px rgba(var(--success-rgb), .6); }
/* Coup d'éclat (contre-courant, règle 4) — marqueur sur carte live/terminée */
.n2ff-eclat { display: inline-flex; align-items: center; gap: .22rem; font-size: .6rem; font-weight: 800; border-radius: var(--radius-full); padding: .1rem .42rem; white-space: nowrap;
  background: linear-gradient(135deg, rgba(252,211,77,.28), rgba(245,158,11,.18)); color: #92400e; border: 1px solid rgba(245,158,11,.4); }
.n2ff-eclat i { font-size: .56rem; color: #b45309; }
.n2ff-eclat.dim { background: var(--bg-alt); color: var(--text-muted); border-color: transparent; }
.n2ff-eclat.dim i { color: var(--text-muted); }
.status-exact .n2ff-eclat, .status-coherent .n2ff-eclat { box-shadow: 0 2px 8px -3px rgba(245,158,11,.6); }
/* Coup d'éclat — bloc dans la modale */
.n2-md-eclat { margin: .7rem 0 .2rem; padding: .65rem .85rem; border-radius: var(--radius); border: 1px solid rgba(245,158,11,.34);
  background: linear-gradient(135deg, rgba(252,211,77,.18), rgba(245,158,11,.08)); }
.n2-md-eclat.dim { background: var(--bg-alt); border-color: var(--border); }
.n2-md-eclat-h { font-size: .92rem; font-weight: 800; color: #92400e; display: flex; align-items: center; gap: .45rem; }
.n2-md-eclat-h i { color: #d97706; }
.n2-md-eclat-h b { color: var(--warning); }
.n2-md-eclat.dim .n2-md-eclat-h, .n2-md-eclat.dim .n2-md-eclat-h i { color: var(--text-secondary); }
.n2-md-eclat-s { font-size: .72rem; color: var(--text-secondary); font-weight: 600; margin-top: .25rem; }
/* centre : score réel en grand (tableau d'affichage) + pastille prono colorée */
.n2ffr-ctr { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 0 .2rem; }
.n2ffr-real { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.n2ffr-rl { font-size: .5rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .18rem; }
.n2ffr-real b { font-size: 1.9rem; font-weight: 800; color: var(--text); display: flex; gap: .32rem; align-items: center; font-variant-numeric: tabular-nums; }
.n2ffr-real b span { color: var(--text-muted); font-size: 1.15rem; }
.n2ffr-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--radius-full); color: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.n2ffr-chip i { font-size: .68rem; }
.n2ffr-chip.exact { background: var(--success); }
.n2ffr-chip.coherent { background: var(--warning); }
.n2ffr-chip.faux { background: var(--danger); }
.n2ffr-chip.none { background: var(--bg-alt); color: var(--text-muted); }
/* halo coloré selon le statut */
.n2ff-halo.h-exact { background: radial-gradient(circle, rgba(var(--success-rgb), .28), transparent 65%); }
.n2ff-halo.h-coherent { background: radial-gradient(circle, rgba(var(--gold-rgb), .26), transparent 65%); }
.n2ff-halo.h-faux { background: radial-gradient(circle, rgba(var(--danger-rgb), .20), transparent 65%); }

/* --- Modale détail d'un match --- */
/* C'est l'OVERLAY qui défile (pas une carte plafonnée en vh) : sur iOS Safari un
   max-height en vh vise le grand viewport (barres masquées) -> la carte dépasse la
   zone visible et se fait rogner en haut ET en bas. Ici : overflow sur l'overlay +
   margin:auto sur la carte (centrée si courte, défilable si longue, sans le bug de
   rognage flexbox) + safe-areas pour éviter l'encoche et la barre du bas. */
.n2-modal { position: fixed; inset: 0; z-index: 1080; display: none; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom)); }
.n2-modal.open { display: flex; }
.n2-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); }
.n2-modal-card { position: relative; z-index: 1; margin: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 1.4rem 1.25rem 1.25rem; animation: n2modal .18s ease; }
@keyframes n2modal { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.n2-modal-x { position: absolute; top: .6rem; right: .6rem; width: 32px; height: 32px; border: none; background: var(--bg-alt); border-radius: 50%; color: var(--text-secondary); cursor: pointer; font-size: .95rem; }
.n2-modal-x:hover { background: var(--border); }
.n2-md-head { display: flex; align-items: flex-start; justify-content: center; gap: .5rem; }
.n2-md-team { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1 1 0; min-width: 0; }
.n2-md-team img { width: 46px; height: 46px; object-fit: contain; }
.n2-md-team span { font-weight: 700; font-size: .82rem; text-align: center; overflow-wrap: anywhere; }
.n2-md-vs { font-weight: 800; color: var(--text-muted); font-size: .95rem; padding-top: 1rem; }
.n2-md-score { font-weight: 800; font-size: 1.7rem; padding-top: .5rem; white-space: nowrap; }
.n2-md-score i { color: var(--text-muted); font-style: normal; margin: 0 .2rem; }
.n2-md-sub { text-align: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: .5rem; }
.n2-md-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.1rem; min-width: 0; }
.n2-md-col { min-width: 0; }
.n2-md-col-h { font-size: .74rem; font-weight: 800; margin-bottom: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2-md-frow { display: flex; align-items: center; gap: .35rem; padding: .28rem 0; font-size: .76rem; border-bottom: 1px solid var(--border-light); }
.n2-md-frow:last-child { border-bottom: none; }
.n2-md-frow img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.n2-md-opp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2-md-ha { font-size: .58rem; color: var(--text-muted); text-transform: uppercase; }
.n2-md-fscore { font-weight: 800; }
.n2-md-badge { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .58rem; font-weight: 800; color: #fff; flex: 0 0 auto; }
.n2-md-badge.r-V { background: var(--success); }
.n2-md-badge.r-N { background: var(--text-muted); }
.n2-md-badge.r-D { background: var(--danger); }
.n2-md-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 1.1rem 0 .55rem; }
.n2-md-bar { margin-bottom: .55rem; }
.n2-md-bar-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; margin-bottom: .28rem; }
.n2-md-lbl { font-weight: 600; }
.n2-md-val { display: inline-flex; align-items: center; gap: .45rem; }
.n2-md-n { font-weight: 800; font-size: .98rem; color: var(--text); line-height: 1; }
.n2-md-pct { font-size: .72rem; font-weight: 800; padding: .08rem .45rem; border-radius: var(--radius-full); background: var(--bg-alt); color: var(--text-secondary); min-width: 2.6rem; text-align: center; }
.n2-md-bar.tone-exact .n2-md-pct { background: var(--success-light); color: var(--success); }
.n2-md-bar.tone-coherent .n2-md-pct { background: var(--warning-light); color: var(--warning); }
.n2-md-bar.tone-faux .n2-md-pct { background: var(--danger-light); color: var(--danger); }
.n2-md-bar-t { height: 8px; border-radius: var(--radius-full); background: var(--bg-alt); overflow: hidden; }
.n2-md-bar-t span { display: block; height: 100%; border-radius: inherit; }
.n2-md-bar.tone-exact .n2-md-bar-t span { background: var(--success); }
.n2-md-bar.tone-coherent .n2-md-bar-t span { background: var(--warning); }
.n2-md-bar.tone-faux .n2-md-bar-t span { background: var(--danger); }
.n2-md-tops { display: flex; flex-wrap: wrap; gap: .45rem; }
.n2-md-top { display: inline-flex; align-items: stretch; border-radius: var(--radius-full); overflow: hidden; border: 1px solid var(--border-light); font-size: .8rem; }
.n2-md-sc { font-weight: 800; padding: .22rem .6rem; background: #fff; color: var(--text); }
.n2-md-ct { font-weight: 800; padding: .22rem .55rem; background: var(--bg-alt); color: var(--text-secondary); border-left: 1px solid var(--border-light); }
.n2-md-ct::before { content: "\00d7"; opacity: .55; margin-right: .08rem; }
.n2-md-top.win { border-color: rgba(var(--success-rgb), .4); }
.n2-md-top.win .n2-md-sc { background: var(--success-light); color: var(--success); }
.n2-md-top.win .n2-md-ct { background: var(--success); color: #fff; border-left-color: rgba(255,255,255,.35); }
.n2-md-names { display: flex; flex-wrap: wrap; gap: .35rem; }
.n2-md-names span { font-size: .76rem; font-weight: 600; background: var(--success-light); color: var(--success); padding: .15rem .5rem; border-radius: var(--radius-full); }
/* Incidence d'un but sur la répartition des pronos */
.n2-md-whatif { display: flex; flex-direction: column; gap: .5rem; }
.n2-md-wi-row { background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 12px; padding: .55rem .75rem; }
.n2-md-wi-head { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.n2-md-wi-head i { color: var(--primary); font-size: .8rem; flex: 0 0 auto; }
.n2-md-wi-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2-md-wi-arrow { color: var(--text-muted); flex: 0 0 auto; }
.n2-md-wi-sc { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); flex: 0 0 auto; }
.n2-md-wi-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.n2-md-wi-pill { font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: var(--radius-full); }
.n2-md-wi-pill.ex { background: var(--success-light); color: var(--success); }
.n2-md-wi-pill.co { background: rgba(var(--gold-rgb), .16); color: #92710a; }
.n2-md-wi-pill.fx { background: var(--danger-light); color: var(--danger); }
/* Recherche du prono d'un joueur / groupe dans la modal (match débuté) */
.n2-md-find { margin-top: .5rem; }
.n2-md-find-bar { display: flex; align-items: center; gap: .5rem; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: var(--radius-full); padding: .5rem .85rem; }
.n2-md-find-bar i { color: var(--text-muted); font-size: .85rem; flex: 0 0 auto; }
.n2-md-find-in { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: .9rem; color: var(--text); outline: none; }
.n2-md-find-groups { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.n2-md-find-grp { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; color: var(--primary); background: var(--primary-light, rgba(var(--primary-rgb), .1)); border: 1px solid rgba(var(--primary-rgb), .25); border-radius: var(--radius-full); padding: .3rem .7rem; cursor: pointer; transition: background .12s ease, transform .1s ease, color .12s ease; }
.n2-md-find-grp:hover { background: rgba(var(--primary-rgb), .18); }
.n2-md-find-grp:active { transform: scale(.96); }
.n2-md-find-grp.active { background: var(--gradient-primary); color: #fff; border-color: transparent; }
.n2-md-find-res { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.n2-md-find-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .4rem .7rem; background: var(--bg-alt); border-radius: 10px; }
.n2-md-find-name { font-size: .85rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2-md-find-sc { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; padding: .12rem .55rem; border-radius: var(--radius-full); white-space: nowrap; flex: 0 0 auto; }
.n2-md-find-sc.status-exact { background: var(--success-light); color: var(--success); }
.n2-md-find-sc.status-coherent { background: rgba(var(--gold-rgb), .18); color: #92710a; }
.n2-md-find-sc.status-faux { background: var(--danger-light); color: var(--danger); }
.n2-md-find-sc.none { background: transparent; color: var(--text-muted); font-weight: 600; font-size: .76rem; }
.n2-md-find-empty { font-size: .82rem; color: var(--text-muted); padding: .45rem .2rem; text-align: center; }
.n2-md-find-sep { display: flex; align-items: center; gap: .5rem; margin: .55rem 0 .15rem; }
.n2-md-find-sep::before, .n2-md-find-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.n2-md-find-sep span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); white-space: nowrap; }
.n2-md-find-row.is-absent { opacity: .66; }
.n2-md-find-row.is-absent .n2-md-find-name { font-weight: 500; }
.n2-md-mine { margin-top: 1rem; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--bg-alt); font-size: .85rem; text-align: center; }
.n2-md-mine b { font-weight: 800; }
.n2-md-mine.status-exact { background: var(--success-light); color: var(--success); }
.n2-md-mine.status-coherent { background: var(--warning-light); color: var(--warning); }
.n2-md-mine.status-faux { background: var(--danger-light); color: var(--danger); }

/* --- Détail match : hero "Ton prono" (mis en valeur, moderne, responsive) --- */
.n2-prono { position: relative; margin-top: 1rem; padding: .85rem 1rem 1rem; border-radius: var(--radius); text-align: center; overflow: hidden; color: #fff; background: var(--gradient-primary); box-shadow: 0 12px 26px -12px rgba(var(--primary-rgb), .6); }
.n2-prono-head { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.n2-prono-label { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .88; }
.n2-prono-livedot { display: inline-flex; align-items: center; gap: .3rem; font-size: .56rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.2); padding: .12rem .5rem; border-radius: var(--radius-full); }
.n2-prono-livedot .status-dot.live { background: #fff; }
.n2-prono-score { display: flex; align-items: baseline; justify-content: center; gap: .55rem; margin: .3rem 0 .05rem; line-height: 1; }
.n2-prono-n { font-size: 2.7rem; font-weight: 800; min-width: 1.3ch; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.n2-prono-sep { font-size: 1.7rem; font-weight: 700; opacity: .55; }
.n2-prono-verdict { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 800; margin-top: .12rem; }
.n2-prono.status-exact { background: var(--gradient-success); box-shadow: 0 12px 28px -10px rgba(var(--success-rgb), .65); }
.n2-prono.status-coherent { background: var(--gradient-gold); box-shadow: 0 12px 28px -10px rgba(var(--gold-rgb), .6); }
.n2-prono.status-faux { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 12px 28px -10px rgba(var(--danger-rgb), .55); }
.n2-prono.is-live::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255,255,255,.55); animation: n2pulsering 1.8s ease-out infinite; pointer-events: none; }
@keyframes n2pulsering { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.03); } }
.n2-prono.status-exact::before { content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); animation: n2shine 2.4s ease-in-out .35s; pointer-events: none; }
@keyframes n2shine { 0% { left: -60%; } 55%, 100% { left: 135%; } }
.n2-prono.is-empty { background: var(--bg-alt); color: var(--text-secondary); box-shadow: none; text-decoration: none; display: block; }
.n2-prono.is-empty .n2-prono-label { color: var(--text-muted); opacity: 1; }
.n2-prono-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .92rem; color: var(--primary); margin-top: .35rem; }
.n2-prono-mute { color: var(--text-muted); }
.n2-wow .n2-prono-n { animation: n2pop .5s both .2s; }
.n2-wow .n2-prono-n:last-child { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .n2-prono.is-live::after, .n2-prono.status-exact::before, .n2-wow .n2-prono-n { animation: none !important; } }

/* --- Home : prono mis en avant sur la scorecard live/terminée --- */
.n2-mc-foot-lbl { color: var(--text-muted); }
.n2-mc-prono { font-weight: 800; font-size: .76rem; padding: .08rem .42rem; border-radius: var(--radius-full); background: var(--bg-alt); color: var(--text); }
.n2-mc.result.status-exact .n2-mc-prono { background: var(--success); color: #fff; }
.n2-mc.result.status-coherent .n2-mc-prono { background: var(--warning); color: #fff; }
.n2-mc.result.status-faux .n2-mc-prono { background: var(--danger); color: #fff; }
.n2-md-empty { text-align: center; color: var(--text-muted); font-size: .82rem; padding: .5rem 0; }
.n2-md-loading { text-align: center; color: var(--text-muted); padding: 2rem 0; }
@media (max-width: 575px) { .n2-md-cols { grid-template-columns: 1fr; } }

/* --- Détail match : bilan d'équipe (forme) --- */
.n2-md-statline { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: -.15rem 0 .5rem; }
.n2-md-streak { font-size: .6rem; font-weight: 800; padding: .12rem .45rem; border-radius: var(--radius-full); color: #fff; white-space: nowrap; }
.n2-md-streak.r-V { background: var(--success); } .n2-md-streak.r-N { background: var(--text-muted); } .n2-md-streak.r-D { background: var(--danger); }
.n2-md-gls { font-size: .66rem; font-weight: 700; color: var(--text-secondary); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.n2-md-gls .fa-futbol { color: var(--text-muted); font-size: .58rem; }
.n2-md-gls i { font-style: normal; color: var(--text-muted); }

/* ============ Forme récente — design « duel » (match à venir) ============ */
.n2-mdf { --teamL: #4f46e5; --teamR: #9333ea; margin-top: .2rem; }
/* Duel comparatif (hero) */
.n2-mdf-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: .5rem;
  background: linear-gradient(180deg, var(--bg-alt), var(--surface)); border: 1px solid var(--border); border-radius: 18px; padding: 16px 12px 14px; }
.n2-mdf-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; width: 100%; }
.n2-mdf-badge { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 10px rgba(15,23,42,.18); background: var(--surface); }
.n2-mdf-name { font-weight: 800; font-size: .82rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.n2-mdf-vs { align-self: center; font-weight: 900; color: var(--text-muted); font-size: .78rem; letter-spacing: .05em; padding-top: 26px; }
.n2-mdf-strip { display: flex; gap: 4px; }
.n2-mdf-pill { width: 19px; height: 19px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .56rem; font-weight: 800; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.n2-mdf-pill.v { background: var(--success); } .n2-mdf-pill.n { background: #94a3b8; } .n2-mdf-pill.d { background: var(--danger); }
.n2-mdf-pill.gh { opacity: .28; }
.n2-mdf-streak { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 800; padding: .16rem .5rem; border-radius: var(--radius-full); white-space: nowrap; }
.n2-mdf-streak.s-v { background: rgba(5,150,105,.12); color: var(--success); }
.n2-mdf-streak.s-n { background: rgba(148,163,184,.18); color: var(--text-secondary); }
.n2-mdf-streak.s-d { background: rgba(220,38,38,.1); color: var(--danger); }
/* Barres comparatives (tug of war) */
.n2-mdf-cmp { margin-top: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.n2-mdf-cmp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .28rem; }
.n2-mdf-cmp-head b { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.n2-mdf-cmp-head .l, .n2-mdf-cmp-head .r { font-size: .9rem; font-weight: 800; }
.n2-mdf-cmp-head .l { color: var(--teamL); } .n2-mdf-cmp-head .r { color: var(--teamR); }
.n2-mdf-cmp-bar { display: flex; gap: 3px; height: 9px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); }
.n2-mdf-cmp-bar i { display: block; height: 100%; border-radius: var(--radius-full); }
.n2-mdf-cmp-bar i.l { background: linear-gradient(90deg, rgba(79,70,229,.5), var(--teamL)); }
.n2-mdf-cmp-bar i.r { background: linear-gradient(90deg, var(--teamR), rgba(147,51,234,.5)); }
/* Réussite des pronos — par équipe, EXACT (vert) distinct du BON RÉSULTAT (ambre) */
.n2-mdf-rate { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: .3rem; }
.n2-mdf-rate-team { min-width: 0; }
.n2-mdf-rate-name { font-size: .78rem; font-weight: 800; margin-bottom: .45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2-mdf-rate-line { margin-bottom: .5rem; }
.n2-mdf-rate-line:last-child { margin-bottom: 0; }
.n2-mdf-rate-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.n2-mdf-rate-lbl small { text-transform: none; letter-spacing: 0; font-weight: 700; }
.n2-mdf-rate-bar { display: flex; height: 7px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); margin: .28rem 0 .22rem; }
.n2-mdf-rate-bar i { height: 100%; }
.n2-mdf-rate-bar i.ex { background: var(--success); } .n2-mdf-rate-bar i.bo { background: var(--warning); } .n2-mdf-rate-bar i.fx { background: var(--danger); opacity: .32; }
.n2-mdf-rate-v { font-size: .62rem; color: var(--text-secondary); font-weight: 600; }
.n2-mdf-rate-v b { font-weight: 800; }
.n2-mdf-rate-v b.ex { color: var(--success); } .n2-mdf-rate-v b.bo { color: #92400e; }
.n2-mdf-rate-empty { font-size: .64rem; color: var(--text-muted); font-weight: 600; padding: .3rem 0; }
@media (max-width: 575px) { .n2-mdf-rate { grid-template-columns: 1fr; } }
/* Segmented control */
.n2-mdf-seg { display: flex; gap: 4px; background: var(--bg-alt); border-radius: var(--radius-full); padding: 4px; margin: 1.2rem 0 .3rem; }
.n2-mdf-seg-btn { flex: 1; min-width: 0; border: none; background: transparent; color: var(--text-secondary); font-weight: 800; font-size: .78rem; padding: .5rem .4rem; border-radius: var(--radius-full); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .18s, color .18s, box-shadow .18s; }
.n2-mdf-seg-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(15,23,42,.12); }
/* Liste des matchs (pleine largeur) */
.n2-mdf-panel { padding-top: .3rem; }
.n2-mdf-match { padding: .6rem 0; border-bottom: 1px solid var(--border-light); }
.n2-mdf-match:last-child { border-bottom: none; }
.n2-mdf-match-main { display: flex; align-items: center; gap: .5rem; }
.n2-mdf-res { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: #fff; flex: 0 0 auto; }
.n2-mdf-res.v { background: var(--success); } .n2-mdf-res.n { background: #94a3b8; } .n2-mdf-res.d { background: var(--danger); }
.n2-mdf-oppl { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.n2-mdf-opp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: .86rem; }
.n2-mdf-ha { font-size: .58rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.n2-mdf-sc { font-weight: 800; font-size: 1rem; }
.n2-mdf-track { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .45rem; padding-left: 30px; }
.n2-mdf-mine { display: inline-flex; align-items: center; gap: .32rem; font-size: .64rem; font-weight: 800; padding: .14rem .5rem; border-radius: var(--radius-full); white-space: nowrap; }
.n2-mdf-mine i { font-size: .62rem; }
.n2-mdf-mine.status-exact { background: var(--success-light); color: var(--success); }
.n2-mdf-mine.status-coherent { background: var(--warning-light); color: #92400e; }
.n2-mdf-mine.status-faux { background: var(--danger-light); color: var(--danger); }
.n2-mdf-mine.none { background: var(--bg-alt); color: var(--text-muted); }
.n2-mdf-comm { display: inline-flex; align-items: center; gap: .35rem; font-size: .62rem; font-weight: 700; color: var(--text-muted); }
.n2-mdf-comm-lbl { font-size: .58rem; text-transform: uppercase; letter-spacing: .03em; }
.n2-mdf-comm-bar { display: flex; width: 72px; height: 8px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); }
.n2-mdf-comm-bar i { display: block; height: 100%; }
.n2-mdf-comm-bar i.ex { background: var(--success); } .n2-mdf-comm-bar i.co { background: var(--warning); } .n2-mdf-comm-bar i.fx { background: var(--danger); }
.n2-mdf-comm b { color: var(--text-secondary); font-weight: 800; }

/* --- Détail match : face-à-face (H2H) --- */
.n2-md-h2h { margin-bottom: .3rem; }
.n2-md-h2h-tally { display: flex; align-items: stretch; gap: .5rem; }
.n2-md-h2h-tally .t-side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .12rem; padding: .5rem .3rem; border-radius: var(--radius-sm); background: var(--bg-alt); }
.n2-md-h2h-tally .t-side b { font-size: 1.35rem; font-weight: 800; line-height: 1; color: var(--text); }
.n2-md-h2h-tally .t-side small { font-size: .58rem; color: var(--text-muted); font-weight: 700; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2-md-h2h-tally .t-dom { background: rgba(var(--primary-rgb), .08); } .n2-md-h2h-tally .t-dom b { color: var(--primary); }
.n2-md-h2h-games { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.n2-md-h2h-game { font-size: .7rem; font-weight: 800; padding: .18rem .5rem; border-radius: var(--radius-full); background: #fff; border: 1px solid var(--border-light); color: var(--text); }
.n2-md-h2h-game.away { background: var(--bg-alt); color: var(--text-secondary); }

/* --- Détail match : tendance des pronos (1/N/2) --- */
.n2-md-trend { margin-bottom: .3rem; }
.n2-md-trend-bar { display: flex; height: 22px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); }
.n2-md-trend-bar .seg { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: .62rem; font-weight: 800; color: #fff; }
.n2-md-trend-bar .seg.s1 { background: var(--primary); } .n2-md-trend-bar .seg.sn { background: var(--text-muted); } .n2-md-trend-bar .seg.s2 { background: #0ea5e9; }
.n2-md-trend-leg { display: flex; justify-content: space-between; gap: .4rem; margin-top: .35rem; font-size: .66rem; color: var(--text-secondary); font-weight: 600; }
.n2-md-trend-leg span { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2-md-trend-leg .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.n2-md-trend-leg .dot.s1 { background: var(--primary); } .n2-md-trend-leg .dot.sn { background: var(--text-muted); } .n2-md-trend-leg .dot.s2 { background: #0ea5e9; }
.n2-md-avg { margin-top: .5rem; text-align: center; font-size: .78rem; color: var(--text-secondary); }
.n2-md-avg b { color: var(--text); font-weight: 800; }

/* --- Détail match : effet wahou (entrée cinématique) --- */
@keyframes n2rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes n2crestL { from { opacity: 0; transform: translateX(-28px) scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes n2crestR { from { opacity: 0; transform: translateX(28px) scale(.6) rotate(10deg); } to { opacity: 1; transform: none; } }
@keyframes n2pop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes n2grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes n2confetti { to { transform: translateY(150px) rotate(var(--r)); opacity: 0; } }
.n2-wow > *:not(.n2-md-head) { animation: n2rise .45s both cubic-bezier(.22,1,.36,1); }
.n2-wow > *:nth-child(2) { animation-delay: .05s; } .n2-wow > *:nth-child(3) { animation-delay: .1s; } .n2-wow > *:nth-child(4) { animation-delay: .15s; } .n2-wow > *:nth-child(5) { animation-delay: .2s; } .n2-wow > *:nth-child(6) { animation-delay: .25s; } .n2-wow > *:nth-child(7) { animation-delay: .3s; } .n2-wow > *:nth-child(8) { animation-delay: .35s; } .n2-wow > *:nth-child(9) { animation-delay: .4s; }
.n2-wow .n2-md-head > .n2-md-team:first-child { animation: n2crestL .55s both .03s; }
.n2-wow .n2-md-head > .n2-md-team:last-child { animation: n2crestR .55s both .03s; }
.n2-wow .n2-md-score, .n2-wow .n2-md-vs { animation: n2pop .6s both .18s; display: inline-block; }
.n2-wow .n2-md-bar-t span { transform-origin: left; animation: n2grow .7s both .25s cubic-bezier(.22,1,.36,1); }
.n2-confetti { position: absolute; top: -8px; width: 8px; height: 11px; border-radius: 2px; opacity: .96; pointer-events: none; z-index: 5; animation: n2confetti 1.2s ease-in forwards; }
@media (prefers-reduced-motion: reduce) { .n2-wow > *, .n2-wow .n2-md-team, .n2-wow .n2-md-score, .n2-wow .n2-md-vs, .n2-wow .n2-md-bar-t span { animation: none !important; } .n2-confetti { display: none; } }

@media (max-width: 575px) {
  .n2-tab { font-size: .74rem; padding: .45rem .25rem; gap: .25rem; }
  .n2-tab-n { padding: .02rem .35rem; }
  .n2-grid { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* Cockpit "Ma situation" (accueil2 sidebar — cockpit.php)               */
/* ===================================================================== */
.ck-card .card-body-pronos { padding-top: 1rem; }

/* Hero : rang + total + évolution */
.ck-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .15rem 1rem; border-bottom: 1px solid var(--border-light); }
.ck-hero-rank { display: flex; flex-direction: column; line-height: 1; }
.ck-hero-num { font-size: 2.6rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.ck-hero-num sup { font-size: 1rem; font-weight: 700; margin-left: .1rem; }
.ck-hero-sub { font-size: .74rem; color: var(--text-muted); font-weight: 600; margin-top: .3rem; }
.ck-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.ck-hero-total { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.ck-hero-total small { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.ck-move { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 800; padding: .15rem .55rem; border-radius: var(--radius-full); }
.ck-move span { font-weight: 600; opacity: .8; font-size: .66rem; }
.ck-move.up { background: var(--success-light); color: var(--success); }
.ck-move.down { background: var(--danger-light); color: var(--danger); }
.ck-move.flat { background: var(--bg-alt); color: var(--text-secondary); }

/* Journée en cours (live) — panneau vedette */
.ck-encours { margin: 1rem 0 .25rem; padding: .8rem .9rem; border-radius: var(--radius); background: var(--gradient-dark); color: #fff; box-shadow: 0 10px 24px -12px rgba(30,27,75,.55); position: relative; overflow: hidden; }
.ck-encours.is-live { animation: ckEncPulse 2.6s ease-in-out infinite; }
.ck-encours::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--primary-rgb), .45), transparent 60%); pointer-events: none; }
.ck-encours-tag { font-size: .62rem; font-weight: 800; letter-spacing: .02em; background: rgba(255,255,255,.16); padding: .12rem .5rem; border-radius: var(--radius-full); white-space: nowrap; }
.ck-encours > * { position: relative; }
.ck-encours-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.ck-encours-lbl { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.92); }
.ck-encours-pos { font-size: .92rem; font-weight: 800; display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; }
.ck-encours-pos sup { font-size: .58rem; }
.ck-encours-pos i.fas { font-size: .72rem; color: #fcd34d; align-self: center; }
.ck-encours-pos small { font-size: .62rem; font-weight: 700; color: rgba(255,255,255,.72); }
.ck-encours-mv { font-style: normal; font-size: .66rem; font-weight: 800; padding: .06rem .4rem; border-radius: var(--radius-full); }
.ck-encours-mv.up { background: rgba(16,185,129,.28); color: #6ee7b7; }
.ck-encours-mv.down { background: rgba(239,68,68,.28); color: #fca5a5; }
.ck-encours-body { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.ck-encours-pts { display: flex; flex-direction: column; line-height: 1; }
.ck-encours-pts b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.ck-encours-pts small { font-size: .6rem; color: rgba(255,255,255,.72); font-weight: 600; margin-top: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.ck-encours-chips { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.ck-enc-chip { font-size: .66rem; font-weight: 600; color: rgba(255,255,255,.92); background: rgba(255,255,255,.12); padding: .15rem .6rem; border-radius: var(--radius-full); white-space: nowrap; display: inline-flex; align-items: baseline; gap: .3rem; }
.ck-enc-chip b { font-weight: 800; }
.ck-enc-chip.exact b { color: #6ee7b7; }
.ck-enc-chip.coherent b { color: #fcd34d; }
.ck-enc-chip.faux b { color: #fca5a5; }
/* Chasse au bonus de journée (règles 2/3/4) — sous les chips, sur le fond sombre du bloc */
.ck-enc-bonus { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgba(255,255,255,.12); }
.ck-enc-bonus-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.ck-enc-bonus-h i { color: #fcd34d; }
.ck-enc-bonus-h b { color: #fcd34d; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.ck-enc-bonus-bar { display: flex; gap: 3px; margin: .4rem 0 .35rem; }
.ck-enc-bonus-bar i { flex: 1; height: 6px; border-radius: var(--radius-full); background: rgba(255,255,255,.14); }
.ck-enc-bonus-bar i.on { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.ck-enc-bonus-lbl { font-size: .64rem; color: rgba(255,255,255,.72); font-weight: 600; }
.ck-enc-bonus-lbl b { color: #fff; }
@keyframes ckEncPulse { 0%, 100% { box-shadow: 0 10px 24px -12px rgba(30,27,75,.55); } 50% { box-shadow: 0 10px 24px -12px rgba(30,27,75,.55), 0 0 0 3px rgba(var(--primary-rgb), .20); } }
@media (prefers-reduced-motion: reduce) { .ck-encours.is-live { animation: none; } }

/* Échelle de classement (voisins) */
.ck-ladder { margin: 1rem 0; display: flex; flex-direction: column; gap: .3rem; }
.ck-ladder-row { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: var(--radius-xs); font-size: .85rem; }
.ck-ladder-pos { font-weight: 800; color: var(--text-muted); font-size: .8rem; }
.ck-ladder-pos sup { font-size: .6rem; }
.ck-ladder-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ck-ladder-gap { font-weight: 700; font-size: .78rem; color: var(--text-secondary); white-space: nowrap; }
.ck-ladder-row.up, .ck-ladder-row.down { background: var(--bg-alt); }
.ck-ladder-row.is-me { background: var(--primary-light); border: 1px solid rgba(var(--primary-rgb), .2); }
.ck-ladder-row.is-me .ck-ladder-pos, .ck-ladder-row.is-me .ck-ladder-name, .ck-ladder-row.is-me .ck-ladder-gap { color: var(--primary); }
.ck-ladder-row.is-me .ck-ladder-name i { font-size: .68rem; margin-right: .15rem; }
.ck-ladder-row.up .ck-ladder-gap { color: var(--danger); }
.ck-ladder-row.down .ck-ladder-gap { color: var(--success); }

/* Leader */
.ck-leader { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; background: rgba(var(--gold-rgb), .08); border: 1px solid rgba(var(--gold-rgb), .22); border-radius: var(--radius-sm); margin-bottom: .25rem; }
.ck-leader .avatar-sm { width: 34px; height: 34px; }
.ck-leader-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.ck-leader-label { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #b45309; }
.ck-leader-label i { margin-right: .2rem; }
.ck-leader-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-leader-gap { font-weight: 800; color: var(--text); white-space: nowrap; }
.ck-leader-gap small { font-size: .7rem; color: var(--text-muted); font-weight: 600; }
.ck-leader.is-me-lead { justify-content: center; gap: .4rem; color: #b45309; font-weight: 700; font-size: .88rem; }
.ck-leader.is-me-lead i { color: var(--gold); }

/* Titres de section */
.ck-section-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 1.1rem 0 .6rem; }
.ck-section-title small { font-weight: 600; text-transform: none; letter-spacing: 0; }

/* Forme (mini-bars verticales) */
.ck-form { display: flex; align-items: flex-end; justify-content: space-between; gap: .4rem; height: 96px; }
.ck-form-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; height: 100%; }
.ck-form-pts { font-size: .72rem; font-weight: 800; color: var(--text-secondary); }
.ck-form-track { width: 100%; max-width: 28px; flex: 1; display: flex; align-items: flex-end; background: var(--bg-alt); border-radius: var(--radius-xs); overflow: hidden; }
.ck-form-track span { display: block; width: 100%; background: var(--gradient-primary); border-radius: var(--radius-xs) var(--radius-xs) 0 0; transition: height .6s ease; }
.ck-form-bar.is-best .ck-form-track span { background: var(--gradient-gold); }
.ck-form-bar.is-best .ck-form-pts { color: #b45309; }
.ck-form-lib { font-size: .62rem; font-weight: 700; color: var(--text-muted); }

/* Précision (barre segmentée) */
.ck-prec-bar { display: flex; height: 12px; border-radius: var(--radius-full); overflow: hidden; background: var(--bg-alt); gap: 2px; }
.ck-prec-bar .seg { height: 100%; }
.ck-prec-bar .seg.exact { background: var(--success); }
.ck-prec-bar .seg.coherent { background: var(--warning); }
.ck-prec-bar .seg.faux { background: var(--danger); }
.ck-prec-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .6rem; font-size: .76rem; color: var(--text-secondary); }
.ck-prec-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.ck-prec-legend b { font-weight: 800; color: var(--text); }
.ck-prec-legend small { color: var(--text-muted); }
.ck-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.ck-dot.exact { background: var(--success); }
.ck-dot.coherent { background: var(--warning); }
.ck-dot.faux { background: var(--danger); }

/* ===== Cockpit : rival du moment ===== */
.ck-rival { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .2rem; padding: .55rem .7rem; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(var(--primary-rgb), .10), rgba(var(--primary-rgb), .03)); border: 1px solid rgba(var(--primary-rgb), .18); }
.ck-rival.is-leader { background: linear-gradient(135deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .04)); border-color: rgba(var(--gold-rgb), .3); }
.ck-rival-ico { width: 2rem; height: 2rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: .82rem; }
.ck-rival.is-leader .ck-rival-ico { background: var(--gold); }
.ck-rival-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ck-rival-lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.ck-rival-name { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-rival-gap { text-align: right; flex: 0 0 auto; line-height: 1.05; }
.ck-rival-gap b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.ck-rival.is-leader .ck-rival-gap b { color: #b45309; }
.ck-rival-gap small { font-size: .6rem; color: var(--text-muted); }

/* ===== Cockpit : mini-bilan dernière journée ===== */
.ck-bilan { background: var(--bg-alt); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.ck-bilan-main { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.ck-bilan-stat { line-height: 1; }
.ck-bilan-stat b { font-size: 1.25rem; font-weight: 800; }
.ck-bilan-stat sup { font-size: .62rem; }
.ck-bilan-stat small { font-size: .64rem; color: var(--text-muted); margin-left: .15rem; }
.ck-bilan-move { margin-left: auto; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.ck-bilan-move small { font-weight: 600; font-size: .64rem; opacity: .85; }
.ck-bilan-move.up { color: var(--success); }
.ck-bilan-move.down { color: var(--danger); }
.ck-bilan-move.flat { color: var(--text-muted); }
.ck-bilan-pills { display: flex; gap: .35rem; margin-top: .55rem; flex-wrap: wrap; }
.ck-pill { font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: var(--radius-full); border: 1px solid var(--border); color: var(--text-secondary); background: #fff; }
.ck-pill.exact { color: var(--success); border-color: rgba(var(--success-rgb), .3); background: var(--success-light); }
.ck-pill.coherent { color: var(--warning); border-color: rgba(var(--warning-rgb), .3); background: var(--warning-light); }
.ck-pill.faux { color: var(--danger); border-color: rgba(var(--danger-rgb), .3); background: var(--danger-light); }

/* ===== Cockpit : courbe d'évolution du rang ===== */
.ck-curve { margin-top: .3rem; }
.ck-curve-svg { width: 100%; height: 60px; display: block; overflow: hidden; }
.ck-curve-ends { display: flex; justify-content: space-between; gap: .35rem; font-size: .66rem; color: var(--text-muted); font-weight: 600; margin-top: .4rem; }
.ck-curve-ends span { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.ck-curve-ends sup { font-size: .56rem; }
.ck-curve-ends b { font-weight: 800; color: var(--text-secondary); font-size: .82rem; }
.ck-curve-best i { color: var(--success); }
.ck-curve-worst i { color: var(--text-muted); }
.ck-curve-ends .hi, .ck-curve-ends .hi b { color: var(--primary); font-weight: 800; }
.ck-curve-ends .hi.live, .ck-curve-ends .hi.live b { color: var(--danger); }
.ck-curve-ends .hi.live .status-dot.live { background: var(--danger); }
.ck-curve-livepulse { transform-box: fill-box; transform-origin: center; animation: ckLivePulse 1.7s ease-out infinite; }
@keyframes ckLivePulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@media (prefers-reduced-motion: reduce) { .ck-curve-livepulse { animation: none; opacity: 0; } }

/* ===== Favoris (concours non commencé) — indice prédictif ===== */
.fav-sub { font-size: .74rem; color: var(--text-muted); margin: 0 0 .6rem; }
.fav-list { display: flex; flex-direction: column; gap: .4rem; }
.fav-row { padding: .45rem .55rem; border-radius: var(--radius-xs); background: var(--bg-alt); }
.fav-row.is-first { background: linear-gradient(135deg, rgba(var(--gold-rgb), .14), rgba(var(--gold-rgb), .03)); border: 1px solid rgba(var(--gold-rgb), .25); }
.fav-row.is-unsure { opacity: .72; }
.fav-head { display: flex; align-items: center; gap: .5rem; }
.fav-rank { width: 1.5rem; flex: 0 0 auto; font-weight: 800; color: var(--text-muted); text-align: center; font-size: .82rem; }
.fav-row.is-first .fav-rank { color: var(--gold); }
.fav-head .avatar-sm { flex: 0 0 auto; }
.fav-name { flex: 1 1 auto; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fav-mom { flex: 0 0 auto; font-size: .7rem; font-weight: 800; }
.fav-mom.up { color: var(--success); }
.fav-mom.down { color: var(--danger); }
.fav-indice { flex: 0 0 auto; font-weight: 800; font-size: .95rem; padding: .12rem .5rem; border-radius: var(--radius-full); color: #fff; min-width: 2.1rem; text-align: center; }
.fav-indice.hi { background: var(--success); }
.fav-indice.mid { background: var(--primary); }
.fav-indice.lo { background: var(--text-muted); }
.fav-stats { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: .35rem; padding-left: 2rem; font-size: .7rem; color: var(--text-secondary); font-weight: 600; }
.fav-stats span { display: inline-flex; align-items: center; gap: .25rem; }
.fav-stats i { color: var(--text-muted); }
.fav-stats sup { font-size: .55rem; }
.fav-seasons { color: var(--text-muted); font-weight: 600; }

/* ===== Forme du moment (classement des 5 dernières journées) ===== */
.fm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fm-table { min-width: 380px; }
.fm-head, .fm-row { display: grid; grid-template-columns: 1.8rem minmax(6.5rem, 1fr) repeat(5, 2.1rem) 2.7rem; align-items: center; gap: .35rem; }
.fm-head { padding: 0 .4rem .35rem; font-size: .66rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border-light); }
.fm-row { padding: .3rem .4rem; border-radius: var(--radius-xs); }
.fm-row.is-me { background: var(--primary-light); }
.fm-c-rank { text-align: center; font-weight: 800; color: var(--text-muted); font-size: .82rem; }
.fm-row.is-me .fm-c-rank { color: var(--primary); }
.fm-c-name { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.fm-c-name .avatar-sm { flex: 0 0 auto; }
.fm-pseudo { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fm-gen { flex: 0 0 auto; font-size: .62rem; color: var(--text-muted); font-weight: 600; }
.fm-c-cell { text-align: center; }
.fm-head .fm-c-cell { font-size: .64rem; }
.fm-cell { display: inline-grid; place-items: center; width: 1.85rem; height: 1.55rem; border-radius: var(--radius-xs); font-size: .72rem; font-weight: 800; }
.fm-cell.hi { background: var(--success-light); color: var(--success); }
.fm-cell.mid { background: var(--warning-light); color: var(--warning); }
.fm-cell.lo { background: var(--bg-alt); color: var(--text-muted); }
.fm-c-tot { text-align: right; font-weight: 800; font-size: .95rem; padding-right: .2rem; }
.fm-sep { height: 1px; background: var(--border); margin: .3rem 0; }

/* ===== Logo de la compétition dans le header ===== */
.navbar-pronos .comp-logo { height: 30px; width: auto; max-width: 92px; object-fit: contain; display: block; flex: 0 0 auto; }
.offcanvas-pronos .comp-logo { height: 34px; max-width: 110px; }
.comp-logo-mobile { height: 24px; width: auto; max-width: 42px; object-fit: contain; flex: 0 0 auto; }
.mobile-navbar-center .mobile-concours-name { min-width: 0; }

/* ===== stats8 : titres de section + variantes de tuiles (all-time) ===== */
.s8-sec-title { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 1.4rem 0 .3rem; }
.s8-sec-title small { font-weight: 600; font-size: .8rem; color: var(--text-muted); }
.s8-sec-title i { color: var(--primary); }
.s8-sec-title.is-alltime i { color: var(--gold); }
.stats8-kpi-tile.is-vol    { --c: #64748b; --cbg: rgba(100,116,139,0.14); }
.stats8-kpi-tile.is-trophy { --c: #eab308; --cbg: rgba(234,179,8,0.16); }
.stats8-kpi-tile.is-podium { --c: #b45309; --cbg: rgba(180,83,9,0.14); }
.s8-season-name { font-weight: 700; }
.s8-tabs { border-bottom: 1px solid var(--border); margin: .25rem 0 1.1rem; gap: .15rem; flex-wrap: nowrap; }
.s8-tabs .nav-item { margin-bottom: -1px; }
.s8-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--text-secondary); font-weight: 700; padding: .6rem 1rem; background: none; white-space: nowrap; }
.s8-tabs .nav-link:hover { color: var(--primary); }
.s8-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: none; }
.s8-tabs .nav-link i { margin-right: .4rem; }

/* En-tête de concours dans la modale détail (mode all-time) */
.pdetail-group { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--text-secondary); background: var(--bg-alt); padding: .35rem .6rem; border-radius: var(--radius-xs); margin: .7rem 0 .35rem; }
.pdetail-group:first-child { margin-top: 0; }
.pdetail-group i { color: var(--gold); }

/* Puce "Pronostiqueurs" cliquable + liste validés/en attente (modale) */
.n2-chip-btn { border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.n2-chip-btn:hover { background: rgba(255, 255, 255, .30); }
.n2-pl-h { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.n2-pl-h i { color: var(--primary); }
.n2-pl-title { display: flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 1rem 0 .5rem; }
.n2-pl-title.pending { color: var(--warning); }
.n2-pl-title.done { color: var(--success); }
.n2-pl-title span { margin-left: auto; background: var(--bg-alt); color: var(--text-secondary); border-radius: var(--radius-full); padding: .05rem .55rem; font-size: .78rem; }
.n2-pl-empty { font-size: .85rem; color: var(--text-muted); margin: .2rem 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.n2-pl-empty i { color: var(--success); }
.n2-pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.n2-pl-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .55rem; border-radius: var(--radius-xs); background: var(--bg-alt); min-width: 0; }
.n2-pl-item .avatar-sm { flex: 0 0 auto; }
.n2-pl-item span { font-weight: 600; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n2-pl-item.is-pending { background: var(--warning-light); }
.n2-pl-item.is-done { background: var(--success-light); }

/* ===== Saison terminée : CTA « Le film de ta saison » (wrapped) ===== */
.season-film-cta { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #fff; padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--radius); background: linear-gradient(120deg, #1e1b4b, #4f46e5 58%, #7c3aed); box-shadow: var(--shadow-md); transition: transform .15s ease, box-shadow .15s ease; }
.season-film-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.sfc-emoji { font-size: 1.8rem; flex: 0 0 auto; line-height: 1; }
.sfc-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sfc-txt b { font-size: 1.05rem; font-weight: 800; }
.sfc-txt small { font-size: .8rem; opacity: .88; }
.sfc-go { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 1rem; }
.season-film-cta:hover .sfc-go { background: rgba(255, 255, 255, .3); }

/* ============================================================
   Profil de style du pronostiqueur (stats8.php, cron compute_styles)
   ============================================================ */
.s8-style { margin-top: .4rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.s8-style--alltime { margin: 0 0 .9rem; }
.s8-style-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #3730a3;
  border: 1px solid #c7d2fe; font-weight: 700; font-size: .82rem;
  padding: .22rem .65rem; border-radius: 999px; white-space: nowrap;
}
.s8-style-desc { color: #64748b; font-size: .8rem; }

/* ============================================================
   Indice de difficulté de journée (stats.php + widget next2,
   cron compute_difficulty)
   ============================================================ */
.dif-banner {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #94a3b8;
  border-radius: 12px; padding: .6rem .95rem; margin: 0 0 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.dif-emoji { font-size: 1.45rem; line-height: 1; }
.dif-title { font-weight: 600; font-size: .92rem; color: #0f172a; }
.dif-sub { font-size: .8rem; color: #64748b; }
.dif-banner.dif-lvl-1, .difx-now.dif-lvl-1 { border-left-color: #10b981; }
.dif-banner.dif-lvl-2, .difx-now.dif-lvl-2 { border-left-color: #3b82f6; }
.dif-banner.dif-lvl-3, .difx-now.dif-lvl-3 { border-left-color: #f59e0b; }
.dif-banner.dif-lvl-4, .difx-now.dif-lvl-4 { border-left-color: #f97316; }
.dif-banner.dif-lvl-5, .difx-now.dif-lvl-5 { border-left-color: #ef4444; }
.dif-banner[role="button"] { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.dif-banner[role="button"]:hover { box-shadow: 0 4px 12px rgba(15,23,42,.10); transform: translateY(-1px); }
.dif-hint { margin-left: auto; color: #94a3b8; font-size: .95rem; }

/* Modale d'explication de l'indice */
.difx p { font-size: .86rem; color: #475569; margin: 0 0 .6rem; }
.difx-now {
  display: flex; align-items: center; gap: .6rem;
  border: 1px solid #e2e8f0; border-left: 4px solid #94a3b8; border-radius: 10px;
  padding: .5rem .8rem; margin-bottom: .85rem; background: #f8fafc;
}
.difx-now-emoji { font-size: 1.45rem; line-height: 1; }
.difx-now-t { font-weight: 600; font-size: .9rem; color: #0f172a; }
.difx-now-s { font-size: .78rem; color: #64748b; }
.difx-tag { font-size: .66rem; background: #eef2ff; color: #4f46e5; padding: .08rem .45rem; border-radius: 999px; font-weight: 700; vertical-align: middle; }
.difx-scale { display: flex; flex-direction: column; gap: .35rem; margin-top: .3rem; }
.difx-row { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: #334155; }
.difx-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.difx-dot.l1 { background: #10b981; }
.difx-dot.l2 { background: #3b82f6; }
.difx-dot.l3 { background: #f59e0b; }
.difx-dot.l4 { background: #f97316; }
.difx-dot.l5 { background: #ef4444; }
.difx-range { color: #94a3b8; font-size: .74rem; margin-left: auto; }

/* ============================================================
   Mémoire de l'affiche (saisie.php + ajax/affiche_memo.php)
   ============================================================ */
.memo-btn {
  flex: 0 0 auto; border: 0; background: transparent; padding: .15rem .3rem;
  color: #c2c9d4; font-size: .95rem; line-height: 1; cursor: pointer; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.memo-btn:hover { color: var(--primary); background: #eef2ff; }
.memo-head { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: .8rem; }
.memo-team { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; color: #0f172a; }
.memo-team img { width: 26px; height: 26px; object-fit: contain; }
.memo-vs { color: #94a3b8; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.memo-kpi {
  font-size: .84rem; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8; border-radius: 10px; padding: .5rem .75rem; margin-bottom: .6rem;
}
.memo-kpi--hot { border-left-color: #ef4444; }
.memo-kpi--mid { border-left-color: #f59e0b; }
.memo-kpi--cool { border-left-color: #10b981; }
.memo-kpi i { color: #94a3b8; margin-right: .2rem; }
.memo-mine { font-size: .84rem; color: #334155; margin-bottom: .8rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.memo-mine i { color: #94a3b8; }
.memo-pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; }
.memo-pill.exact { background: #d1fae5; color: #047857; }
.memo-pill.coherent { background: #dbeafe; color: #1d4ed8; }
.memo-pill.faux { background: #fee2e2; color: #b91c1c; }
.memo-list-title { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; margin: .2rem 0 .45rem; }
.memo-row {
  display: flex; align-items: center; gap: .6rem; padding: .42rem .2rem;
  border-bottom: 1px solid #f1f5f9; font-size: .84rem; color: #334155;
}
.memo-row:last-child { border-bottom: 0; }
.memo-date { flex: 0 0 62px; color: #94a3b8; font-size: .76rem; font-variant-numeric: tabular-nums; }
.memo-match { flex: 1 1 auto; min-width: 0; }
.memo-match b { color: #0f172a; }
.memo-cell { flex: 0 0 auto; white-space: nowrap; }
.memo-muted { color: #94a3b8; }
@media (max-width: 575.98px) {
  .memo-row { flex-wrap: wrap; row-gap: .15rem; }
  .memo-match { flex-basis: 100%; order: -1; }
}

/* ============================================================
   xP — Points attendus (xp.php, id 3)
   ============================================================ */
.xp-intro p { font-size: .9rem; }
.xp-table td, .xp-table th { font-size: .86rem; }
.xp-table .num { text-align: right; }
.xp-me td { background: #eef2ff !important; }
.xp-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.xp-delta.lucky { color: #047857; }
.xp-delta.unlucky { color: #b91c1c; }

/* ============================================================
   Coach anti-biais (coach.php, id 3)
   ============================================================ */
.coach-bar { margin-bottom: .85rem; }
.coach-bar-h { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; font-weight: 600; color: #334155; margin-bottom: .25rem; }
.coach-flag { font-size: .72rem; font-weight: 800; color: #b45309; background: #fef3c7; padding: .06rem .45rem; border-radius: 999px; white-space: nowrap; }
.coach-flag.cold { color: #1d4ed8; background: #dbeafe; }
.coach-track { position: relative; height: 10px; background: #f1f5f9; border-radius: 999px; overflow: visible; }
.coach-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #818cf8, #4f46e5); }
.coach-mark { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #0f172a; border-radius: 2px; }
.coach-bar-l { display: flex; justify-content: space-between; font-size: .74rem; color: #94a3b8; margin-top: .25rem; }
.coach-advice { margin-top: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.coach-advice-item { font-size: .84rem; color: #334155; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: .45rem .7rem; }
.coach-club { display: flex; align-items: center; gap: .55rem; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; font-size: .84rem; }
.coach-club:last-child { border-bottom: 0; }
.coach-club img { width: 24px; height: 24px; object-fit: contain; }
.coach-club-name { font-weight: 700; color: #0f172a; flex: 0 0 auto; }
.coach-club-stat { color: #64748b; margin-left: auto; text-align: right; }
.coach-sub { font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #94a3b8; margin: .55rem 0 .2rem; }
.coach-sub:first-child { margin-top: 0; }
.coach-sub span { font-weight: 600; text-transform: none; letter-spacing: 0; }
.coach-gold { border-color: #fde68a; background: #fffbeb; }
.coach-trap { border-color: #fecaca; background: #fef2f2; margin-top: .4rem; }
.coach-score-table { margin-top: .6rem; }
.coach-score-table td, .coach-score-table th { font-size: .84rem; }
.coach-score-table .num { text-align: right; }
.txt-exact { color: #047857; font-weight: 700; }
.txt-coh { color: #1d4ed8; font-weight: 700; }
.txt-faux { color: #b91c1c; font-weight: 700; }
.coach-legend { font-size: .72rem; color: #94a3b8; margin: .35rem 0 0; }

/* Mon coach / xP — mobile : annule la colonne « avatar » 46px des classements
   (ici la colonne 2 est une donnée) et compacte les tableaux ; les lignes clubs
   passent sur 2 niveaux (stat sous le nom). */
@media (max-width: 768px) {
  /* coach & xP : 5 colonnes courtes — on annule la colonne 2 « avatar » (ici une donnée)
     et l'ellipsis générique ; le contenu tient sans scroll, aucun chiffre rogné. */
  .coach-score-table th:nth-child(2), .coach-score-table td:nth-child(2),
  .xp-table th:nth-child(2), .xp-table td:nth-child(2) { width: auto; }
  .coach-score-table th, .coach-score-table td,
  .xp-table th, .xp-table td {
    font-size: .76rem; padding-left: .3rem; padding-right: .3rem;
    white-space: normal; overflow: visible; text-overflow: clip;
  }
  .coach-score-share { display: none; }
  .coach-club { flex-wrap: wrap; row-gap: .05rem; }
  .coach-club-stat { flex-basis: 100%; margin-left: 32px; text-align: left; }

  /* stats8 all-time (6 colonnes denses) : impossible de tout faire tenir en 375px sans rogner.
     -> largeur NATURELLE + défilement horizontal dans .table-responsive : chaque colonne prend
     sa place, rien n'est tronqué ni recouvert, l'utilisateur fait défiler pour voir Points. */
  .table-stats8 { table-layout: auto; width: auto !important; min-width: 100%; }
  .table-stats8 th, .table-stats8 td {
    width: auto !important; white-space: nowrap; overflow: visible; text-overflow: clip;
    font-size: .76rem; padding: .4rem .5rem;
  }
  .table-stats8 .club-cell-name, .table-stats8 .s8-season-name { white-space: nowrap; }
}
/* le conteneur Bootstrap doit pouvoir défiler horizontalement (et non être clippé par la carte) */
@media (max-width: 768px) {
  .card-body-pronos .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   Les Archives (archives.php + widget éphéméride, id 3)
   ============================================================ */
.arch-ephem-row { display: flex; align-items: baseline; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid #f1f5f9; font-size: .86rem; }
.arch-ephem-row:last-child { border-bottom: 0; }
.arch-years { flex: 0 0 92px; font-size: .74rem; font-weight: 800; color: #4f46e5; text-transform: uppercase; letter-spacing: .02em; }
.arch-timeline { position: relative; padding-left: 18px; }
.arch-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.arch-item { position: relative; margin-bottom: .8rem; }
.arch-item:last-child { margin-bottom: 0; }
.arch-dot { position: absolute; left: -18px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #4f46e5; border: 2px solid #fff; box-shadow: 0 0 0 2px #c7d2fe; }
.arch-dot.live { background: #10b981; box-shadow: 0 0 0 2px #a7f3d0; }
.arch-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: .55rem .8rem; }
.arch-card-h { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #0f172a; }
.arch-annee { font-size: .72rem; font-weight: 800; color: #94a3b8; font-variant-numeric: tabular-nums; }
.arch-live-tag { font-size: .66rem; background: #d1fae5; color: #047857; padding: .06rem .45rem; border-radius: 999px; font-weight: 700; }
.arch-card-b { font-size: .84rem; color: #334155; margin-top: .15rem; }
.arch-meta { display: block; font-size: .74rem; color: #94a3b8; margin-top: .1rem; }
.arch-dyn-row { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; border-bottom: 1px solid #f1f5f9; font-size: .88rem; }
.arch-dyn-row:last-of-type { border-bottom: 0; }
.arch-dyn-rank { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eef2ff; color: #4f46e5; font-size: .74rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.arch-dyn-name { font-weight: 700; color: #0f172a; }
.arch-dyn-titres { margin-left: auto; font-size: .82rem; }
.arch-streak { font-size: .8rem; color: #64748b; margin: .55rem 0 0; }
.arch-rec-row { display: flex; align-items: baseline; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid #f1f5f9; font-size: .85rem; }
.arch-rec-row:last-child { border-bottom: 0; }
.arch-rec-pts { flex: 0 0 58px; font-weight: 800; color: #4f46e5; font-variant-numeric: tabular-nums; }

/* Encart éphéméride du dashboard */
.eph-card {
  display: flex; align-items: center; gap: .65rem;
  background: linear-gradient(135deg, #fdf6e3, #fdf0d0); border: 1px solid #f0e3bb;
  border-radius: 14px; padding: .65rem .95rem; margin-bottom: 1rem;
  color: #4b3a12; text-decoration: none; font-size: .88rem; transition: box-shadow .15s ease, transform .15s ease;
}
.eph-card:hover { color: #4b3a12; box-shadow: 0 4px 14px rgba(120,90,20,.14); transform: translateY(-1px); }
.eph-icon { font-size: 1.3rem; }
.eph-muted { color: #a08d55; }
.eph-go { margin-left: auto; color: #c6ad6b; }

/* ============================================================
   « Le Vestiaire » — salon de chat unique
   ============================================================ */
/* --- En-tête commun --- */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--gradient-primary); color: #fff; }
.chat-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-head-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: 0 0 auto; }
.chat-head-title { font-weight: 800; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.chat-head-sub { font-size: .74rem; opacity: .85; }
.chat-online { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-height: 56px; overflow: auto; }
.chat-online-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.18); color: #fff; border-radius: var(--radius-full); padding: 3px 10px; font-size: .72rem; white-space: nowrap; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; flex: 0 0 auto; }

/* --- Page dédiée --- */
.chat-page { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; height: calc(100vh - 210px); min-height: 460px; }
.chat-stream { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }

/* --- Messages --- */
.chat-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 86%; }
.chat-msg--self { margin-left: auto; flex-direction: row-reverse; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--border); background: var(--bg-alt); }
.chat-avatar--none { background: var(--bg-alt); }
.chat-body { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow-xs); position: relative; min-width: 0; }
.chat-msg--self .chat-body { background: var(--primary-light); border-color: #dfe3fb; }
.chat-metaline { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.chat-name { font-weight: 700; font-size: .8rem; color: var(--primary-dark); }
.chat-time { font-size: .7rem; color: var(--text-muted); }
.chat-text { font-size: .9rem; color: var(--text); line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-text--deleted { font-style: italic; color: var(--text-muted); }
.chat-text a { color: var(--primary); word-break: break-all; }
.chat-mention { color: var(--primary); font-weight: 600; background: var(--primary-light); padding: 0 3px; border-radius: 4px; }
.chat-quote { border-left: 3px solid var(--primary); background: var(--bg-alt); padding: 3px 8px; border-radius: 6px; font-size: .78rem; color: var(--text-secondary); margin-bottom: 4px; }
.chat-quote b { color: var(--primary-dark); }
.chat-prono { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: .82rem; }
.chat-prono i { color: var(--primary); }
.chat-prono-score { font-weight: 700; color: var(--text); }
.chat-prono-j { color: var(--text-muted); font-size: .75rem; }
.chat-prono-res { font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-left: 6px; }
.chat-prono-res.is-exact { color: var(--success); }

/* Sélecteur « Balance ton prono » (matchs démarrés uniquement) */
.chat-prono-pop { position: absolute; bottom: 100%; left: 8px; margin-bottom: 8px; width: 300px; max-width: calc(100% - 16px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 30; overflow: hidden; }
.chat-prono-pop-h { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.chat-prono-pop-body { max-height: 240px; overflow-y: auto; }
.chat-prono-pop-msg { padding: 14px 12px; font-size: .82rem; color: var(--text-secondary); text-align: center; }
.chat-prono-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border-light); padding: 8px 12px; cursor: pointer; }
.chat-prono-opt:last-child { border-bottom: none; }
.chat-prono-opt:hover { background: var(--primary-light); }
.chat-prono-opt-s { font-size: .88rem; font-weight: 700; color: var(--text); }
.chat-prono-opt-m { font-size: .72rem; color: var(--text-muted); display: inline-flex; align-items: center; }
.chat-prono-opt-res { font-weight: 700; }
.chat-prono-opt-res.is-exact { color: var(--success); }

/* --- Réactions --- */
.chat-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chat-reactions:empty { display: none; margin: 0; }
.chat-rx-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface); font-size: .75rem; cursor: pointer; line-height: 1.4; }
.chat-rx-pill.is-mine { background: var(--primary-light); border-color: var(--primary); }
.chat-rx-emoji { font-size: .82rem; }
.chat-rx-n { color: var(--text-secondary); font-weight: 600; }

/* --- Actions (réagir / répondre / supprimer) --- */
.chat-actions { display: flex; gap: 2px; margin-top: 4px; opacity: 0; transition: opacity .15s ease; position: relative; }
.chat-msg:hover .chat-actions { opacity: 1; }
.chat-act { background: none; border: none; color: var(--text-muted); width: 26px; height: 24px; border-radius: 6px; cursor: pointer; font-size: .78rem; }
.chat-act:hover { background: var(--bg-alt); color: var(--primary); }
/* Positionnement (fixed + top/left) piloté entièrement par chat.js (openPalette) :
   ne PAS fixer ici de position/top/bottom/left, sinon sur-contrainte -> fond écrasé. */
.chat-palette { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 3px 6px; box-shadow: var(--shadow-md); z-index: 20; }
.chat-palette-emoji { background: none; border: none; font-size: 1.05rem; cursor: pointer; line-height: 1; padding: 2px 3px; }
.chat-palette-emoji:hover { transform: scale(1.2); }

/* --- Messages système (bot de chambrage) --- */
.chat-sys { align-self: center; text-align: center; font-size: .78rem; color: var(--primary-dark); background: var(--primary-light); border: 1px solid #e0e3fb; border-radius: var(--radius-full); padding: 4px 14px; max-width: 92%; }
.chat-sys i { margin-right: 4px; color: var(--primary); }

/* --- Barre de réponse + composer --- */
.chat-reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--primary-light); border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-secondary); }
.chat-reply-bar i { color: var(--primary); }
.chat-reply-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-reply-cancel { margin-left: auto; background: none; border: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--text-muted); }
.chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); position: relative; }
.chat-input { flex: 1; border: 1px solid var(--border); border-radius: 18px; padding: 8px 14px; font-size: .9rem; resize: none; max-height: 120px; line-height: 1.4; font-family: inherit; color: var(--text); background: var(--surface); }
.chat-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.chat-tool { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); cursor: pointer; font-size: .9rem; }
.chat-tool:hover { color: var(--primary); border-color: var(--primary); }
.chat-send { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--gradient-primary); color: #fff; cursor: pointer; font-size: .9rem; }
.chat-send:hover { filter: brightness(1.06); }
.chat-emoji-pop { position: absolute; bottom: 100%; left: 8px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 2px; width: 232px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-md); z-index: 30; }
.chat-emoji-item { background: none; border: none; font-size: 1.2rem; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.chat-emoji-item:hover { background: var(--bg-alt); }
.chat-mention-box { position: absolute; bottom: 100%; left: 54px; min-width: 160px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 30; overflow: hidden; }
.chat-mention-item { display: block; width: 100%; text-align: left; background: none; border: none; padding: 7px 12px; font-size: .85rem; cursor: pointer; color: var(--primary-dark); font-weight: 600; }
.chat-mention-item:hover { background: var(--primary-light); }

/* --- États --- */
.chat-loading { text-align: center; color: var(--text-muted); padding: 24px; font-size: .85rem; margin: auto; }
.chat-empty { text-align: center; color: var(--text-secondary); padding: 30px 16px; font-size: .9rem; margin: auto; }
.chat-empty-emoji { font-size: 2rem; margin-bottom: 6px; }
.chat-flash { position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--text); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); font-size: .82rem; max-width: 86%; word-break: break-word; text-align: center; opacity: 0; transition: all .2s ease; z-index: 40; pointer-events: none; }
.chat-flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Widget tableau de bord (mini) --- */
.chat-widget .chat-widget-body { padding: 0; display: flex; flex-direction: column; }
/* En-tête "feature" du widget : dégradé violet + présence pulsante + CTA (visibilité dashboard) */
.chat-widget .cw-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--gradient-primary); color: #fff; }
.chat-widget .cw-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto; }
.chat-widget .cw-id { min-width: 0; flex: 1; }
.chat-widget .cw-title { font-weight: 800; font-size: 1rem; line-height: 1.1; display: flex; align-items: center; }
.chat-widget .cw-sub { font-size: .74rem; opacity: .92; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.chat-widget .cw-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; animation: cwPulse 2s infinite; }
@keyframes cwPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.chat-widget .cw-cta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); text-decoration: none; }
.chat-widget .cw-cta:hover { background: rgba(255,255,255,.34); color: #fff; }

/* ============================================================
   Communiqués — popin plein écran + page d'archive
   ============================================================ */
.comm-overlay { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; background: rgba(15,23,42,.62); z-index: 20000; display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px 16px; opacity: 1; transition: opacity .18s ease; }
.comm-overlay.comm-hide { opacity: 0; }
.comm-modal { position: relative; margin: auto; background: var(--surface); width: 100%; max-width: 800px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: commIn .22s ease; }
@keyframes commIn { from { transform: translateY(14px) scale(.985); opacity: .5; } to { transform: none; opacity: 1; } }
.comm-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: none; background: rgba(255,255,255,.2); color: #fff; border-radius: 50%; font-size: 1.5rem; line-height: 30px; cursor: pointer; z-index: 2; padding: 0; }
.comm-x:hover { background: rgba(255,255,255,.34); }
.comm-head { background: var(--gradient-primary); color: #fff; padding: 24px 26px; flex: 0 0 auto; }
.comm-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; display: flex; align-items: center; gap: 6px; }
.comm-title { font-size: 1.45rem; font-weight: 800; margin: 7px 0 3px; line-height: 1.15; color: #fff; }
.comm-date { font-size: .8rem; opacity: .85; }
.comm-body { padding: 24px 26px; color: var(--text); font-size: .96rem; line-height: 1.65; word-wrap: break-word; }
.comm-body > :first-child { margin-top: 0; }
.comm-body img { max-width: 100%; height: auto; border-radius: 8px; }
.comm-body h1, .comm-body h2, .comm-body h3, .comm-body h4 { color: var(--text); line-height: 1.25; }
.comm-body a { color: var(--primary); }
.comm-body iframe, .comm-body video { max-width: 100%; }
.comm-body table { max-width: 100%; }
.comm-foot { padding: 14px 24px; border-top: 1px solid var(--border); text-align: center; flex: 0 0 auto; }
.comm-close-btn { background: var(--gradient-primary); color: #fff; border: none; border-radius: var(--radius-full); padding: 10px 30px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.comm-close-btn:hover { filter: brightness(1.06); }

/* Page d'archive */
.comm-page { max-width: 820px; margin: 0 auto; }
.comm-page-h { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.comm-page-h i { color: var(--primary); }
.comm-empty { color: var(--text-muted); text-align: center; padding: 2.5rem 1rem; }
.comm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); margin-bottom: 1.1rem; overflow: hidden; }
.comm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); background: var(--bg); }
.comm-card-title { font-size: 1.1rem; font-weight: 800; margin: 0; color: var(--text); }
.comm-card-date { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.comm-card-body { padding: 18px 20px; color: var(--text); font-size: .95rem; line-height: 1.65; word-wrap: break-word; }
.comm-card-body > :first-child { margin-top: 0; }
.comm-card-body img { max-width: 100%; height: auto; border-radius: 8px; }
.comm-card-body a { color: var(--primary); }
.comm-card-body iframe, .comm-card-body video { max-width: 100%; }

@media (max-width: 575px) {
  .comm-overlay { padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .comm-title { font-size: 1.25rem; }
  .comm-head { padding: 20px 18px; }
  .comm-body { padding: 18px; }
}
.chat-widget-open { font-size: .75rem; font-weight: 700; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chat-online-mini { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: .72rem; font-weight: 600; margin-right: 6px; }
.chat-unread-badge { background: var(--danger); color: #fff; border-radius: var(--radius-full); font-size: .65rem; font-weight: 700; padding: 1px 7px; margin-left: 6px; }
.chat-stream--mini { max-height: 250px; min-height: 130px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-stream--mini .chat-avatar { width: 28px; height: 28px; }
.chat-stream--mini .chat-body { padding: 6px 10px; }
.chat-stream--mini .chat-text { font-size: .82rem; }
.chat-stream--mini .chat-name { font-size: .74rem; }
.chat-composer--mini { padding: 8px 10px; border-top: 1px solid var(--border); }
.chat-composer--mini .chat-input { border-radius: var(--radius-full); }

/* --- Joueur exclu (banni) --- */
.chat-banned .chat-composer { opacity: .55; }
.chat-banned .chat-tool, .chat-banned .chat-share { display: none; }
.chat-input:disabled, .chat-send:disabled { cursor: not-allowed; opacity: .7; background: var(--bg-alt); }

/* --- Mobile --- */
@media (max-width: 575px) {
  .chat-page { height: calc(100vh - 150px); min-height: 380px; border-radius: var(--radius-sm); }
  .chat-msg { max-width: 94%; }
  .chat-actions { opacity: 1; }
  .chat-head { padding: 12px 14px; flex-wrap: wrap; }
  .chat-online { width: 100%; justify-content: flex-start; max-height: 34px; flex-wrap: nowrap; overflow-x: auto; }
}

/* ============================================================
   Multiplex — réorganisation : en-tête live + grille principale/rail
   ============================================================ */
.mx-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--gradient-primary); color: #fff; padding: 13px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; }
.mx-head-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mx-head-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 auto; }
.mx-head-h1 { font-size: 1.3rem; font-weight: 800; line-height: 1.1; color: #fff; }
.mx-head-sub { font-size: .8rem; opacity: .88; }
.mx-head-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mx-head .mx-status { background: rgba(255,255,255,.2); color: #fff; }
.mx-head .mx-status .mx-dot { background: #fff; }
.mx-head .mx-btn { width: 38px; height: 38px; border-radius: 10px; border: none; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mx-head .mx-btn:hover { background: rgba(255,255,255,.34); }

.mx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 358px; gap: 1.1rem; align-items: start; }
.mx-main { min-width: 0; }
.mx-rail { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 84px; }
.mx-rail .card-pronos { margin-bottom: 0; }
@media (max-width: 991px) {
  .mx-head { position: static; }
  .mx-layout { grid-template-columns: 1fr; }
  .mx-rail { position: static; }
}

/* --- Ticker scores (bandeau défilant façon multiplex TV) --- */
.mx-ticker { overflow: hidden; background: #0f172a; color: #cbd5e1; border-radius: 12px; padding: .5rem 0; margin: -.45rem 0 1.1rem; }
.mx-tk-track { display: inline-flex; white-space: nowrap; animation: mxTkScroll 30s linear infinite; will-change: transform; }
.mx-ticker:hover .mx-tk-track { animation-play-state: paused; }
@keyframes mxTkScroll { to { transform: translateX(-50%); } }
.mx-tk-half { display: inline-flex; align-items: center; gap: 1rem; padding-left: 1rem; }
.mx-tk-item { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; }
.mx-tk-item b { color: #fff; font-weight: 800; }
.mx-tk-item.tk-exact b { color: #4ade80; }
.mx-tk-item.tk-coherent b { color: #93c5fd; }
.mx-tk-item.tk-faux b { color: #f87171; }
.mx-tk-ko { color: #94a3b8; font-weight: 700; }
.mx-tk-sep { color: #475569; }
.mx-tk-live { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: mxTkPulse 1.6s infinite; flex: 0 0 auto; }
@keyframes mxTkPulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 70% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* --- « Ce qu'il te faut » (scénarios +1 but) --- */
.mx-besoin { margin-bottom: 1rem; }
.mx-bes-note { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.mx-bes-row { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; margin-bottom: .4rem; font-size: .87rem; line-height: 1.45; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.mx-bes-row:last-child { margin-bottom: 0; }
.mx-bes-row.tone-up { background: #f0fdf4; border-color: #bbf7d0; }
.mx-bes-row.tone-up .mx-bes-ic { color: #16a34a; }
.mx-bes-row.tone-down { background: #fef2f2; border-color: #fecaca; }
.mx-bes-row.tone-down .mx-bes-ic { color: #dc2626; }
.mx-bes-ic { flex: 0 0 auto; margin-top: 2px; font-size: .85rem; }
.mx-bes-sc { color: var(--text-muted); font-size: .78rem; }

/* ============================================================
   Multiplex — couche « spectacle » (FX)
   ============================================================ */
/* --- Bouton + popover Spectacle --- */
.mx-head .mx-btn-fx.active { background: rgba(255,255,255,.45); }
.mx-head .mx-btn.mx-speaking { animation: mxSpeak 1s ease-in-out infinite; }
@keyframes mxSpeak { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 60% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.mx-fx-pop { position: fixed; z-index: 20050; width: 300px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .7rem; }
.mx-fx-h { font-size: .8rem; font-weight: 800; margin: .1rem .2rem .6rem; display: flex; align-items: center; gap: .4rem; }
.mx-fx-h i { color: var(--primary); }
.mx-fx-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: .6rem; }
.mx-fx-modes button { font-size: .74rem; font-weight: 700; padding: .45rem .2rem; border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary); border-radius: 9px; cursor: pointer; }
.mx-fx-modes button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mx-fx-tog { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .5rem .65rem; margin-bottom: 5px; cursor: pointer; }
.mx-fx-tog-l { display: flex; flex-direction: column; min-width: 0; }
.mx-fx-tog-l b { font-size: .84rem; font-weight: 700; }
.mx-fx-tog-l small { font-size: .71rem; color: var(--text-muted); }
.mx-fx-sw { flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; }
.mx-fx-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mx-fx-tog.on .mx-fx-sw { background: var(--success); }
.mx-fx-tog.on .mx-fx-sw::after { transform: translateX(16px); }

/* --- Mode Régie TV : override des variables -> tout l'intérieur passe en sombre --- */
.mx-wrap.mx-fx-regie {
  --bg: #0b1220; --bg-alt: #15213b; --surface: #15213b; --text: #f1f5f9;
  --text-secondary: #cbd5e1; --text-muted: #94a3b8; --border: #243049; --border-light: #1c2a47;
  background: #0b1220; padding: 14px; border-radius: 16px;
}
.mx-wrap.mx-fx-regie .card-pronos { background: var(--surface); color: var(--text); border-color: var(--border); }
.mx-wrap.mx-fx-regie .mx-match { background: #1b2942; border-color: #243049; }
.mx-wrap.mx-fx-regie .mx-match-mid { font-size: 1.5rem; }
.mx-wrap.mx-fx-regie .mx-moi-rang { font-size: 2.5rem; }
.mx-wrap.mx-fx-regie:fullscreen { height: 100%; overflow-y: auto; border-radius: 0; padding: 22px; }

/* --- Mode Télétexte (easter egg années 90) --- */
.mx-wrap.mx-fx-teletexte {
  --bg: #000; --bg-alt: #001018; --surface: #000814; --text: #19f0d8;
  --text-secondary: #ffe000; --text-muted: #5bb6c9; --border: #0a3a4a; --border-light: #06222c; --primary: #ffe000;
  background: #000; padding: 14px; border-radius: 6px;
}
.mx-wrap.mx-fx-teletexte * { font-family: "Courier New", ui-monospace, monospace !important; letter-spacing: .02em; border-radius: 2px !important; }
.mx-wrap.mx-fx-teletexte .fas, .mx-wrap.mx-fx-teletexte .far { font-family: "Font Awesome 6 Free" !important; }
.mx-wrap.mx-fx-teletexte .fab { font-family: "Font Awesome 6 Brands" !important; }
.mx-wrap.mx-fx-teletexte .mx-head { background: #0000c4 !important; color: #fff; }
.mx-wrap.mx-fx-teletexte .mx-head-h1, .mx-wrap.mx-fx-teletexte .mx-moi-pseudo { color: #ffe000; }
.mx-wrap.mx-fx-teletexte .card-pronos { background: #000814; border: 1px solid #19f0d8; }
.mx-wrap.mx-fx-teletexte img { filter: saturate(0) contrast(1.25) brightness(1.1); }
.mx-wrap.mx-fx-teletexte .mx-head-sub::after { content: ' · P888'; color: #19f0d8; }
.mx-wrap.mx-fx-teletexte:fullscreen { height: 100%; overflow-y: auto; border-radius: 0; }

/* --- Tribune --- */
.mx-tribune { background: linear-gradient(180deg, #0f6e56, #0a5240); border-radius: var(--radius); padding: .8rem 1rem 1.1rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm); }
.mx-tribune-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #fff; margin-bottom: .75rem; flex-wrap: wrap; }
.mx-tribune-h span { font-weight: 800; display: inline-flex; align-items: center; gap: .4rem; }
.mx-tribune-h small { font-size: .74rem; color: #bbf7d0; }
.mx-stand { display: flex; flex-wrap: wrap; gap: .55rem .5rem; justify-content: center; }
.mx-fan { width: 54px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mx-fan-av { position: relative; width: 38px; height: 38px; }
.mx-fan-av img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); background: #fff; }
.mx-fan-face { position: absolute; right: -4px; bottom: -4px; font-size: 14px; line-height: 1; }
.mx-fan.mood-up .mx-fan-av img { border-color: #4ade80; }
.mx-fan.mood-up .mx-fan-face::after { content: '😃'; }
.mx-fan.mood-mid .mx-fan-face::after { content: '🙂'; }
.mx-fan.mood-flat { opacity: .7; }
.mx-fan.is-me .mx-fan-av img { border-color: #facc15; box-shadow: 0 0 0 2px #facc15; }
.mx-fan-pts { font-size: .7rem; font-weight: 800; color: #fff; }
.mx-fan-n { font-size: .6rem; color: #d1fae5; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-fan.celebrate { animation: mxFanJump .7s ease; }
@keyframes mxFanJump { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-13px) scale(1.1); } }
.mx-fan.sad { animation: mxFanSad .6s ease; }
@keyframes mxFanSad { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(3px) rotate(-6deg); } 75% { transform: translateY(3px) rotate(6deg); } }

/* --- Théâtre VAR --- */
.mx-var { display: none; }
.mx-var.show { display: flex; position: fixed; inset: 0; z-index: 20040; align-items: center; justify-content: center; background: rgba(2,6,23,.85); animation: mxVarIn .15s ease; }
@keyframes mxVarIn { from { opacity: 0; } to { opacity: 1; } }
.mx-var-card { text-align: center; color: #fff; padding: 2rem 1.5rem; max-width: 92%; }
.mx-var-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; background: #111827; border: 1px solid #374151; padding: .3rem .9rem; border-radius: 8px; margin-bottom: 1.2rem; }
.mx-var-scan { width: 220px; max-width: 70vw; height: 88px; margin: 0 auto 1.1rem; position: relative; border: 2px solid rgba(255,255,255,.22); border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 19px, transparent 19px 20px); }
.mx-var-scan i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(56,189,248,.9); animation: mxVarSweep 1s linear infinite; }
.mx-var-scan i:nth-child(2) { animation-delay: .33s; } .mx-var-scan i:nth-child(3) { animation-delay: .66s; }
@keyframes mxVarSweep { from { left: -2px; } to { left: 100%; } }
.mx-var-msg { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; }
.mx-var-sub { font-size: .9rem; color: #cbd5e1; margin-top: .45rem; }
.mx-var-verdict { font-size: 2.1rem; font-weight: 900; letter-spacing: .01em; line-height: 1.05; animation: mxVarPop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes mxVarPop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mx-var.tone-no .mx-var-verdict { color: #f87171; }
.mx-var.tone-exact .mx-var-verdict, .mx-var.tone-yes .mx-var-verdict { color: #4ade80; }
.mx-var.tone-ouch .mx-var-verdict { color: #fbbf24; }

/* --- Multiplex cardiaque (ECG + BPM) --- */
.mx-cardiac { background: #0b1220; border: 1px solid #1c2a47; border-radius: var(--radius); padding: .7rem .9rem; }
.mx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #e2e8f0; font-size: .76rem; font-weight: 700; margin-bottom: .35rem; }
.mx-card-h i { color: #f87171; }
.mx-card-zone { font-size: .66rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.mx-card-zone.z-calm { background: rgba(74,222,128,.18); color: #4ade80; }
.mx-card-zone.z-hot { background: rgba(251,191,36,.18); color: #fbbf24; }
.mx-card-zone.z-max { background: rgba(248,113,113,.2); color: #f87171; }
.mx-card-ecg { position: relative; height: 54px; overflow: hidden; }
.mx-card-ecg svg { width: 100%; height: 100%; display: block; }
.mx-card-ecg svg polyline { fill: none; stroke: #4ade80; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mx-card-ecg.z-hot svg polyline { stroke: #fbbf24; }
.mx-card-ecg.z-max svg polyline { stroke: #f87171; }
.mx-card-ecg::after { content: ''; position: absolute; top: 0; bottom: 0; left: -36px; width: 36px; background: linear-gradient(90deg, transparent, rgba(74,222,128,.4)); animation: mxEcgSweep var(--beat,1s) linear infinite; }
.mx-card-ecg.z-hot::after { background: linear-gradient(90deg, transparent, rgba(251,191,36,.4)); }
.mx-card-ecg.z-max::after { background: linear-gradient(90deg, transparent, rgba(248,113,113,.45)); }
@keyframes mxEcgSweep { to { left: 100%; } }
.mx-card-bpm { text-align: right; color: #fff; margin-top: .15rem; }
.mx-card-bpm b { font-size: 1.35rem; font-weight: 800; display: inline-block; animation-name: mxHeart; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.mx-card-bpm small { color: #94a3b8; font-size: .7rem; }
@keyframes mxHeart { 0%,100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } }

/* ===== Vestiaire — médias (image/GIF), picker emoji complet, « qui a réagi », GIF ===== */
.chat-media{display:inline-block;margin-top:6px;max-width:260px;border-radius:14px;overflow:hidden;line-height:0;border:1px solid rgba(15,23,42,.1)}
.chat-media-img{display:block;max-width:100%;max-height:300px;width:auto;height:auto}
.chat-msg--self .chat-media{margin-left:auto}
.chat-rx-who{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 6px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;color:#64748b;cursor:pointer;font-size:.72rem;margin-left:2px;vertical-align:middle}
.chat-rx-who:hover{border-color:#4f46e5;color:#4f46e5}
.chat-palette-more{color:#4f46e5}
.chat-sheet{position:fixed;inset:0;z-index:4000;background:rgba(8,8,20,.5);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;padding:1rem}
.chat-sheet-panel{background:#fff;width:100%;max-width:420px;max-height:72vh;display:flex;flex-direction:column;border-radius:16px;box-shadow:0 30px 70px -20px rgba(0,0,0,.6);overflow:hidden}
.chat-sheet-panel--narrow{max-width:330px}
.chat-sheet-head{display:flex;align-items:center;gap:8px;padding:.7rem .9rem;border-bottom:1px solid #eef1f5}
.chat-sheet-title{font-weight:800;color:#0f172a;font-size:.95rem;flex:1}
.chat-sheet-x{border:0;background:#f1f5f9;color:#334155;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:1.15rem;line-height:1;flex:0 0 auto}
.chat-emoji-scroll{overflow-y:auto;padding:.2rem .7rem .8rem}
.chat-emoji-cat{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#94a3b8;margin:.7rem 0 .3rem}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.chat-emoji-item{border:0;background:none;cursor:pointer;font-size:1.4rem;line-height:1;padding:.25rem 0;border-radius:8px;transition:transform .1s,background .1s}
.chat-emoji-item:hover{background:#f1f5f9;transform:scale(1.18)}
.chat-rxw-row{display:flex;align-items:flex-start;gap:10px;padding:.55rem .9rem;border-bottom:1px solid #f4f6f9}
.chat-rxw-emoji{font-size:1.3rem;flex:0 0 auto;line-height:1.3}
.chat-rxw-names{color:#0f172a;font-size:.9rem;line-height:1.4}
.chat-gif-search{flex:1;border:1px solid #e2e8f0;border-radius:10px;padding:.45rem .7rem;font:inherit;outline:none}
.chat-gif-search:focus{border-color:#4f46e5}
.chat-gif-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:.7rem;overflow-y:auto}
.chat-gif-item{border:0;background:#f1f5f9;border-radius:10px;overflow:hidden;cursor:pointer;line-height:0;height:120px}
.chat-gif-item img{display:block;width:100%;height:100%;object-fit:cover}
.chat-gif-msg{grid-column:1/-1;text-align:center;color:#94a3b8;padding:1.5rem;font-size:.9rem}
@media (max-width:560px){.chat-emoji-grid{grid-template-columns:repeat(7,1fr)}}

.chat-reply-bar[hidden]{display:none}

/* ===================================================================== */
/* ===================================================================== */
/* Encart « complète ton profil » (accueil / accueil_new)                 */
/* ===================================================================== */
.profil-incite {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 1rem; padding: .8rem .95rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #e0e7ff;
  text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.profil-incite:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.profil-incite.is-nophoto { background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%); border-color: #fed7aa; }

/* Anneau de progression (conic-gradient piloté par --pi-pct) */
.pi-ring {
  --pi-acc: #6366f1;
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--pi-acc) calc(var(--pi-pct) * 1%), #e2e8f0 0);
}
.profil-incite.is-nophoto .pi-ring { --pi-acc: #f97316; }
.pi-ring-in { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pi-ring-pct { font-size: .95rem; font-weight: 900; color: #4338ca; line-height: 1; }
.profil-incite.is-nophoto .pi-ring-pct { color: #c2410c; }
.pi-ring-pct i { font-size: .58rem; font-weight: 800; font-style: normal; opacity: .7; margin-left: 1px; }

.pi-main { flex: 1 1 auto; min-width: 0; }
.pi-title { display: block; font-weight: 800; font-size: .95rem; color: #1e293b; }
.pi-title i { margin-right: .35rem; color: #6366f1; }
.profil-incite.is-nophoto .pi-title i { color: #f97316; }
.pi-sub { display: block; font-size: .8rem; color: #64748b; margin-top: .12rem; overflow: hidden; text-overflow: ellipsis; }

.pi-cta { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #6366f1; transition: transform .14s ease; }
.profil-incite.is-nophoto .pi-cta { background: #f97316; }
.profil-incite:hover .pi-cta { transform: translateX(2px); }

@media (max-width: 480px) {
  .profil-incite { gap: .7rem; padding: .7rem .8rem; }
  .pi-ring { width: 48px; height: 48px; }
  .pi-ring-in { width: 36px; height: 36px; }
  .pi-title { font-size: .9rem; }
  .pi-sub { font-size: .76rem; }
}

/* ===================================================================== */
/* Notifications push : bannière accueil + panneau réglages (réservé id 3)*/
/* ===================================================================== */
.push-banner { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; padding: .8rem .95rem; border-radius: var(--radius); background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%); border: 1px solid #e0e7ff; }
.push-banner-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #4f46e5; color: #fff; font-size: 1.05rem; }
.push-banner-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.push-banner-main b { font-size: .95rem; color: #1e293b; }
.push-banner-main span { font-size: .8rem; color: #64748b; }
.push-banner-msg { font-size: .78rem; color: #dc2626; margin-top: .15rem; font-style: normal; }
.push-banner-cta { flex: 0 0 auto; border: 0; background: #4f46e5; color: #fff; font-weight: 700; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.push-banner-cta:hover { background: #4338ca; }
.push-banner-x { flex: 0 0 auto; align-self: flex-start; margin: -.25rem -.3rem 0 -.15rem; width: 26px; height: 26px; border: 0; background: transparent; color: #94a3b8; font-size: 1.35rem; line-height: 1; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.push-banner-x:hover { background: rgba(0,0,0,.06); color: #475569; }

/* État + actions */
.push-status { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.push-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.push-status-dot.on { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.push-status-dot.off { background: #cbd5e1; }
.push-status-text { font-size: .9rem; font-weight: 600; color: #475569; }
.push-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.push-actions:empty { display: none; }

/* Tutoriel d'installation */
.push-install { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); padding: .9rem; margin-bottom: 1rem; }
.push-install-lead { font-size: .85rem; color: #475569; margin: 0 0 .7rem; }
.push-install-lead i { color: #6366f1; margin-right: .25rem; }
.push-tuto + .push-tuto { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed #e2e8f0; }
.push-tuto-h { font-weight: 800; font-size: .9rem; color: #1e293b; margin-bottom: .3rem; }
.push-tuto-h .fa-apple { color: #111; margin-right: .3rem; }
.push-tuto-h .fa-android { color: #3ddc84; margin-right: .3rem; }
.push-tuto ol { margin: 0; padding-left: 1.2rem; }
.push-tuto li { font-size: .85rem; color: #475569; margin: .2rem 0; }

/* Préférences par type (switches) */
.push-prefs-lead { margin-top: .2rem; }
.push-prefs-group { margin-bottom: 1.1rem; }
.push-prefs-group:last-child { margin-bottom: 0; }
.push-prefs-group-h { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: .15rem; }
.push-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.push-toggle:last-child { border-bottom: 0; }
.push-toggle-label { font-size: .9rem; color: #1e293b; }
.push-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.push-toggle-track { flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s ease; }
.push-toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.push-toggle input:checked + .push-toggle-track { background: #4f46e5; }
.push-toggle input:checked + .push-toggle-track .push-toggle-knob { transform: translateX(18px); }
.push-toggle input:focus-visible + .push-toggle-track { outline: 2px solid #4f46e5; outline-offset: 2px; }

/* --- Pull-to-refresh (mobile) --- */
/* Évite le pull-to-refresh natif (Android) pour laisser le nôtre prendre la main. */
html, body { overscroll-behavior-y: contain; }
.ptr-indicator {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 50%;
  z-index: 2000;
  transform: translate(-50%, -50px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.ptr-indicator.ptr-anim { transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease; }
.ptr-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--primary);
  transition: background .15s ease, color .15s ease;
}
.ptr-circle.ready { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -4px rgba(var(--primary-rgb), .55); }
.ptr-arrow { font-size: 15px; line-height: 1; transition: transform .15s ease; }
.ptr-ring {
  display: none;
  position: absolute; inset: 5px;
  border: 2.5px solid rgba(var(--primary-rgb), .22);
  border-top-color: var(--primary);
  border-radius: 50%;
}
.ptr-circle.loading { background: var(--surface); color: var(--primary); }
.ptr-circle.loading .ptr-arrow { display: none; }
.ptr-circle.loading .ptr-ring { display: block; animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }

/* ================= Modale « Détail du bonus » (coup d'éclat règle 4) — partagée ================= */
.pgb-open { cursor: pointer; }
.pgb-open:hover { filter: brightness(.95); }
.pgb-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.pgb-modal.on { display: flex; }
.pgb-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.pgb-card { position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 85vh; overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(15,23,42,.5); padding: 1.1rem 1.15rem; font-family: 'Inter', system-ui, sans-serif; }
.pgb-x { position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border: none; background: var(--bg-alt, #f1f5f9); border-radius: 50%; color: var(--text-secondary, #64748b); cursor: pointer; }
.pgb-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.pgb-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pgb-title { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted, #94a3b8); }
.pgb-who { font-size: 1rem; font-weight: 900; color: var(--text, #0f172a); }
.pgb-who span { display: block; font-size: .68rem; font-weight: 700; color: var(--text-secondary, #64748b); }
.pgb-body .mce-rows { display: flex; flex-direction: column; gap: .4rem; }
.pgb-body .mce-row { display: flex; align-items: center; gap: .5rem; }
.pgb-body .mce-lg { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.pgb-body .mce-lg img { width: 20px; height: 20px; object-fit: contain; }
.pgb-body .mce-nm { flex: 1; min-width: 0; font-weight: 800; font-size: .78rem; color: var(--text, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgb-body .mce-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 900; padding: .16rem .55rem; border-radius: 999px; white-space: nowrap; }
.pgb-body .mce-badge.ok { background: rgba(16,185,129,.16); color: #047857; }
.pgb-body .mce-badge.live { background: rgba(245,158,11,.2); color: #b45309; }
.pgb-body .mce-badge.ko { background: var(--bg-alt, #f1f5f9); color: var(--text-muted, #94a3b8); }
.pgb-sec { display: flex; align-items: center; gap: .35rem; font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #b45309; margin-bottom: .5rem; }
.pgb-sec i { color: #f59e0b; }
.pgb-line { display: flex; align-items: center; justify-content: space-between; margin-top: .7rem; padding-top: .55rem; border-top: 1px solid var(--border-light, #f1f5f9); font-size: .78rem; font-weight: 700; color: var(--text-secondary, #64748b); }
.pgb-line b { color: var(--text, #0f172a); }
.pgb-total { display: flex; align-items: center; justify-content: space-between; margin-top: .7rem; padding-top: .6rem; border-top: 2px solid var(--border, #e5e7eb); font-size: .82rem; font-weight: 800; color: var(--text, #0f172a); }
.pgb-total small { font-weight: 700; color: var(--text-muted, #94a3b8); }
.pgb-total b { color: #b45309; font-size: 1.1rem; }
.pgb-empty { color: var(--text-muted, #94a3b8); font-weight: 700; font-size: .78rem; padding: .3rem 0; text-align: center; }
.n2-chip-eclat { color: #b45309; font-weight: 800; }
.n2-chip-eclat i { color: #f59e0b; }
