:root {
  --bg-dark: #0a0a0f;
  --bg-card: #14141f;
  --bg-card-hover: #1a1a2a;
  --bg-surface: #1e1e30;
  /* Alias historique (inline PHP/JS, circle-info, etc.) */
  --bg: var(--bg-card);
  --red: #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.3);
  --green: #2ec86a;
  --green-dark: #1a9e4a;
  --blue: #4dabf7;
  --orange: #ff9f1c;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --text: #f0f0f5;
  --text-dim: #8888a0;
  --text-muted: #555570;
  --border: #2a2a40;
  --premium-gradient: linear-gradient(135deg, #ffd700, #ff9f1c, #e63946);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

/* Liens : pas de style navigateur par défaut (souligné, bleu, violet visité) */
a {
  color: inherit;
  text-decoration: none;
}
a:visited {
  color: inherit;
}
a:hover {
  color: inherit;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============ SCREEN NAVIGATION ============ */
.screen-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.screen-nav button {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.screen-nav button:hover { border-color: var(--red); color: var(--text); }
.screen-nav button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ============ APP SHELL ============ */
.app-container {
  max-width: 430px; margin: 0 auto; min-height: 100vh;
  background: var(--bg-dark); position: relative; overflow: hidden;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
/* Pages sans barre supérieure (connexion, onboarding) */
body.page-full .app-container { margin-top: 0; min-height: 100vh; }
.screen { display: none; min-height: calc(100vh - 72px); padding-bottom: 80px; }
body.page-full .screen { min-height: calc(100vh - 72px); }
.screen.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============ STATUS BAR ============ */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px; font-size: 12px; font-weight: 600; color: var(--text-dim);
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(14,14,22,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 8px 4px 12px; z-index: 100;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 600; color: var(--text-muted); cursor: pointer;
  transition: all 0.3s; padding: 4px 8px;
}
.bottom-nav .nav-item svg { width: 22px; height: 22px; transition: all 0.3s; }
.bottom-nav .nav-item.active { color: var(--red); }
.bottom-nav .nav-item.active svg { filter: drop-shadow(0 0 6px var(--red-glow)); }
.bottom-nav .nav-item:hover { color: var(--text); }
.nav-item .live-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  position: absolute; top: 2px; right: 2px; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============ MATERIAL SYMBOLS ============ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ============ LOGIN SCREEN ============ */
.login-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px; position: relative; overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(230,57,70,0.12), transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(46,200,106,0.06), transparent 45%),
              radial-gradient(ellipse at 50% 50%, rgba(20,20,31,0.95), var(--bg-dark) 100%);
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow);
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-logo h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 6px;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 4px;
}
.login-logo p { font-size: 12px; color: var(--text-dim); letter-spacing: 3px; text-transform: uppercase; }
.login-form { margin-bottom: 24px; }
.login-error {
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.12); border: 1px solid rgba(230, 57, 70, 0.35);
  color: var(--red); font-size: 14px; font-weight: 600;
}
.input-group { margin-bottom: 16px; }
.input-group label { font-size: 11px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.input-hint { display: block; font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.input-wrap, .password-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon, .password-wrap .input-icon {
  position: absolute; left: 14px; color: var(--text-muted); font-size: 20px; pointer-events: none;
}
.input-wrap .input-field, .password-wrap .input-field { padding-left: 44px; }
.password-wrap .eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.password-wrap .eye-btn .material-symbols-outlined { font-size: 22px; }
.password-wrap .eye-btn:hover { color: var(--text); }
.input-field {
  width: 100%; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: 'Barlow', sans-serif;
  font-size: 15px; transition: all 0.3s; outline: none;
}
.input-field:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.input-field::placeholder { color: var(--text-muted); }
.btn {
  width: 100%; padding: 14px; border-radius: var(--radius-sm); border: none;
  font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-login { margin-bottom: 10px; }
.btn-login .material-symbols-outlined, .btn-register .material-symbols-outlined { font-size: 20px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-dim); }
.config-match-actions .btn { width: auto; flex: 1 1 180px; max-width: 100%; }
.login-footer { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.login-footer a {
  display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 13px;
  text-decoration: none; font-weight: 600;
}
.login-footer .material-symbols-outlined { font-size: 18px; }

/* ============ ONBOARDING ============ */
.onboarding-screen { padding: 40px 28px; }
.onboarding-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; margin-bottom: 8px;
  letter-spacing: 2px;
}
.onboarding-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.onboarding-option {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; cursor: pointer; transition: all 0.3s;
}
.onboarding-option:hover { border-color: var(--red); background: var(--bg-card-hover); }
.onboarding-option.selected { border-color: var(--red); background: rgba(230,57,70,0.1); }
.onboarding-option .opt-icon {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.onboarding-option .opt-label { font-weight: 700; font-size: 16px; }
.onboarding-option .opt-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.role-options { margin-top: 24px; }
.role-option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px; cursor: pointer; transition: all 0.3s;
}
.role-option:hover, .role-option.selected { border-color: var(--red); background: rgba(230,57,70,0.08); }
.role-badge {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}

/* ============ PREMIUM BANNER ============ */
.premium-banner {
  margin: 12px 16px; padding: 14px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(230,57,70,0.12));
  border: 1px solid rgba(255,215,0,0.25);
  display: flex; align-items: center; gap: 12px;
  animation: shimmer 3s ease infinite;
  box-sizing: border-box;
}
a.premium-banner.premium-banner--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
a.premium-banner.premium-banner--link:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(230, 57, 70, 0.18));
  transform: translateY(-1px);
}
a.premium-banner.premium-banner--link:active {
  transform: translateY(0);
}
a.premium-banner.premium-banner--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@keyframes shimmer {
  0%,100% { border-color: rgba(255,215,0,0.25); }
  50% { border-color: rgba(230,57,70,0.4); }
}
.premium-banner .premium-icon { font-size: 24px; flex-shrink: 0; width: 28px; text-align: center; }
.premium-banner .premium-icon .material-symbols-outlined { font-size: 24px; display: block; }
.premium-banner .premium-text { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.premium-banner .premium-text strong { color: var(--gold); font-size: 13px; }
.premium-banner .premium-days { font-size: 11px; background: var(--red); color: #fff; padding: 3px 8px; border-radius: 12px; font-weight: 700; white-space: nowrap; }

/* ============ DASHBOARD ============ */
.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 0 4px;
}
/* Logo / avatar cercle : au-dessus, +50 % vs ancien 52px → 78px, centré */
.club-avatar {
  align-self: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 33px;
  color: #fff;
  border: 2px solid rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 24px var(--red-glow);
  overflow: hidden;
  flex-shrink: 0;
}
.club-avatar .club-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.club-avatar .club-avatar-initials {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 33px;
  color: #fff;
}
/* Carte infos : même gouttière horizontale que .premium-banner (12px 16px) */
.club-info {
  margin: 12px 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 0;
}
.club-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1.5px;
  margin: 0;
  line-height: 1.15;
}
.club-info .club-role {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.dashboard-grid {
  padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
}
.dash-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); opacity: 0; transition: opacity 0.3s;
}
.dash-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-card:hover::before { opacity: 1; }
.dash-card .card-icon { font-size: 28px; margin-bottom: 10px; }
.dash-card .card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.dash-card .card-desc { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.dash-card .card-badge {
  position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-premium { background: rgba(255,215,0,0.15); color: var(--gold); }
.badge-live { background: rgba(46,200,106,0.15); color: var(--green); }
.badge-free { background: rgba(77,171,247,0.15); color: var(--blue); }

.dash-card-full { grid-column: 1 / -1; }

/* Quick Stats Row — C30 : 4 cases visibles sans swipe sur smartphone */
.quick-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 16px 0;
}
.quick-stat {
  min-width: 0; text-align: center; padding: 10px 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.quick-stat .stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--red); line-height: 1.1; }
.quick-stat .stat-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
@media (min-width: 480px) {
  .quick-stats { gap: 10px; }
  .quick-stat { padding: 14px 8px; }
  .quick-stat .stat-val { font-size: 28px; }
  .quick-stat .stat-label { font-size: 10px; }
}

/* ============ MON CERCLE ============ */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 20px 20px 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1.5px;
  flex: 1;
  min-width: 0;
}
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* Icône filtre seule (entonnoir rouge, même teinte que l’onglet actif du bas) */
button.btn-icon-filter.section-filter-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
button.btn-icon-filter.section-filter-toggle .material-symbols-outlined {
  font-size: 26px;
}
button.btn-icon-filter.section-filter-toggle:hover,
button.btn-icon-filter.section-filter-toggle.is-active {
  background: rgba(230, 57, 70, 0.12);
  color: var(--red);
}
button.btn-icon-filter.section-filter-toggle.has-active-filters::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-sizing: content-box;
}
/* Panneau de filtres repliable */
.filter-panel-collapsible:not(.is-open) {
  display: none !important;
}
.filter-panel-collapsible.is-open {
  display: block !important;
  margin-bottom: 16px;
}
/* Bloc calendriers : aligné sur le padding du titre de section (20px) */
.cal-filters-sheet {
  padding: 0 20px 12px;
  box-sizing: border-box;
}
.cal-filters-sheet .filter-section-label {
  padding-left: 0;
  padding-right: 0;
}
.cal-filters-sheet .match-filters {
  padding-left: 0;
  padding-right: 0;
}
.btn-sm {
  padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all 0.3s;
}
.btn-sm:hover { background: var(--red-dark); }
.btn-sm-outline {
  padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: transparent; color: var(--text-dim); border: 1px solid var(--border); cursor: pointer;
  font-family: 'Barlow', sans-serif; transition: all 0.3s;
}

/* Tabs */
.tabs { display: flex; gap: 0; padding: 0 20px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 20px; font-size: 13px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tab.active { color: var(--red); border-bottom-color: var(--red); }
.tab:hover { color: var(--text); }

/* Team List */
.team-list { padding: 12px 16px; }
.team-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.3s;
}
.team-item:hover { border-color: var(--red); }
.team-left { display: flex; align-items: center; gap: 12px; }
.team-color {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; color: #fff; font-weight: 700;
}
.team-name { font-weight: 700; font-size: 14px; }
.team-cat { font-size: 11px; color: var(--text-dim); }
.team-actions-row { display: flex; align-items: center; gap: 8px; }
.team-players { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.team-delete-btn { background: transparent; border: none; padding: 6px; color: var(--text-muted); cursor: pointer; border-radius: 6px; }
.team-delete-btn:hover { color: var(--red); background: rgba(193, 18, 31, 0.1); }

/* Circle Info (Mon cercle — onglet Info) */
.circle-info-form .info-section { margin-bottom: 20px; }
.circle-info-form .info-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.circle-info-form .form-row { margin-bottom: 12px; }
.circle-info-form .form-row label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.circle-info-form .form-row input:not(.bo-color-native),
.circle-info-form .form-row textarea { width: 100%; padding: 10px 12px; font-size: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); box-sizing: border-box; }
/* Couleurs club BO : pastille + hex (voir .bo-color-field) */
.bo-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bo-color-swatch-wrap--empty {
  background: repeating-conic-gradient(#b0b0b0 0% 25%, #e8e8e8 0% 50%) 50% / 14px 14px !important;
}
.bo-color-eyedropper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bo-color-eyedropper.bo-color-eyedropper--active {
  display: inline-flex;
}
.bo-color-eyedropper.bo-color-eyedropper--active:hover {
  border-color: var(--red);
  background: var(--bg-card);
}
.bo-color-swatch-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  border: 2px solid var(--border);
  background-color: var(--surface-elevated);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bo-color-swatch-wrap:hover {
  transform: scale(1.05);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.bo-color-native {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  height: 180%;
  min-width: 0;
  min-height: 0;
  transform: translate(-50%, -50%);
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  opacity: 0;
}
.bo-color-hex {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.03em;
  max-width: 118px;
  flex: 0 1 auto;
  text-transform: lowercase;
}
.circle-info-form .form-row .bo-color-hex {
  width: auto;
  padding: 10px 12px;
}
.bo-color-hex-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 1px rgba(193, 18, 31, 0.45);
}
.circle-info-form .form-row textarea { resize: vertical; min-height: 60px; }
.circle-info-form .info-readonly { font-size: 13px; color: var(--text-dim); margin: 6px 0; }

/* Mon cercle — onglet Info (lecture seule) */
.cercle-info-readonly-wrap {
  padding: 8px 16px 24px;
  max-width: 520px;
  margin: 0 auto;
}
.cercle-info-bo-cta {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cercle-info-bo-text { margin: 0 0 12px; font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.cercle-info-bo-btn { display: inline-flex; align-items: center; gap: 6px; }
.circle-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}
.circle-info-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.circle-info-kv-main { display: flex; gap: 14px; align-items: flex-start; }
.circle-info-kv-main--branded {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
}
.circle-info-kv-main--branded .circle-info-logo-wrap {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.circle-info-kv-main--branded .circle-info-name {
  color: inherit;
}
.circle-info-kv-main--branded .circle-info-dl-row dt,
.circle-info-kv-main--branded .circle-info-dl-row dd {
  color: inherit;
}
.circle-info-kv-main--branded .circle-info-dl-row dt {
  opacity: 0.82;
}
.circle-info-kv-main--branded .circle-info-dl-row dd {
  opacity: 1;
}
.circle-info-logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-surface);
}
.circle-info-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.circle-info-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 8px;
}
.circle-info-dl { margin: 0; }
.circle-info-dl-row {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 8px 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.circle-info-dl-row:last-child { border-bottom: 0; }
.circle-info-dl-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 12px;
}
.circle-info-dl-row dd { margin: 0; color: var(--text); line-height: 1.4; word-break: break-word; }
.circle-info-para {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.circle-info-photo-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 220px;
}
.circle-info-photo-img { width: 100%; display: block; object-fit: cover; max-height: 220px; }
.circle-info-colors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.circle-info-color-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.circle-info-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.circle-info-color-label { font-size: 13px; color: var(--text); }
.circle-info-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.circle-info-links li { margin-bottom: 8px; }
.circle-info-links li:last-child { margin-bottom: 0; }
.circle-info-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.circle-info-link:hover { text-decoration: underline; }

/* Player List */
.player-list { padding: 12px 16px; }
.player-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: all 0.3s;
}
.player-item:hover { border-color: var(--red); background: var(--bg-card-hover); }
.player-left { display: flex; align-items: center; gap: 12px; }
.player-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--text-dim);
}
.player-name { font-weight: 700; font-size: 14px; }
.player-pos { font-size: 11px; color: var(--text-dim); }
.player-actions { display: flex; gap: 8px; }
.player-action-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.3s;
}
.player-action-btn:hover { border-color: var(--red); color: var(--red); }

/* ============ PLAYER PROFILE ============ */
.player-profile-header {
  text-align: center; padding: 24px 20px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.12), transparent 70%);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--bg-surface); border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: var(--text-dim);
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-name { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1.5px; }
.profile-club { font-size: 13px; color: var(--red); font-weight: 600; }
.profile-bio-public {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px auto 0;
  max-width: 320px;
  white-space: pre-wrap;
  text-align: center;
}
/* Onglet Présentation (fiche joueur) : texte aligné lecture */
#player-presentation .player-presentation-body {
  text-align: left;
  max-width: none;
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.profile-meta { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-dim); }

.stats-filters {
  display: flex; gap: 8px; padding: 16px 16px 8px; overflow-x: auto;
}
.filter-chip {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-dim);
  cursor: pointer; white-space: nowrap; transition: all 0.3s;
}
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center;
}
.stat-card .stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 1; }
.stat-card .stat-name { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-dim { color: var(--text-dim); font-size: 13px; }

/* Fiche cercle (détail) */
.fiche-cercle { padding: 0 16px 24px; }
.fiche-cercle-header { text-align: center; padding: 20px 0; }
.fiche-cercle-header--branded {
  padding: 22px 16px;
  margin: 0 -16px 12px;
  border-radius: var(--radius-sm);
}
.fiche-cercle-header--branded .fiche-cercle-logo {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.28);
}
.fiche-cercle-header--branded .fiche-cercle-initials {
  color: inherit;
}
.fiche-cercle-header--branded .fiche-cercle-city,
.fiche-cercle-header--branded .fiche-cercle-address {
  color: inherit;
  opacity: 0.92;
}
.fiche-cercle-header--branded .fiche-cercle-maps.btn-sm {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: inherit;
}
.fiche-cercle-header--branded a:not(.btn-sm) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fiche-cercle-logo { width: 80px; height: 80px; border-radius: 50%; background: var(--surface-elevated); margin: 0 auto 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fiche-cercle-logo img { width: 100%; height: 100%; object-fit: cover; }
.fiche-cercle-initials { font-size: 28px; font-weight: 700; color: var(--text-dim); }
.fiche-cercle-initials-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fiche-cercle-name { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.fiche-cercle-city { font-size: 14px; color: var(--text-dim); margin: 0 0 8px; }
.fiche-cercle-address { font-size: 13px; color: var(--text); margin: 0 0 12px; white-space: pre-line; }
.fiche-cercle-maps { display: inline-flex; align-items: center; gap: 6px; }
.fiche-cercle-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.fiche-cercle-section h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin: 0 0 10px; }
.fiche-cercle-list { list-style: none; padding: 0; margin: 0; }
.fiche-cercle-list li { padding: 6px 0; font-size: 14px; }
.fiche-cercle-info { margin: 0; }
.fiche-cercle-info dt { font-size: 11px; font-weight: 600; color: var(--text-dim); margin-top: 10px; }
.fiche-cercle-info dd { margin: 2px 0 0; font-size: 14px; }
.fiche-cercle-info dd a { color: var(--red); }
.fiche-cercle-ballodrome-photo { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); }

.glove-list { list-style: none; padding: 0; margin: 0; }
.glove-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.glove-plate { font-weight: 600; }
.glove-delete { background: none; border: none; padding: 6px; color: var(--text-muted); cursor: pointer; border-radius: 6px; }
.glove-delete:hover { color: var(--red); }
.stat-green .stat-value { color: var(--green); }
.stat-red .stat-value { color: var(--red); }
.stat-blue .stat-value { color: var(--blue); }
.stat-orange .stat-value { color: var(--orange); }

/* ============ CALENDAR ============ */
/* Titres des groupes de filtres (style proche des en-têtes de date de liste) */
.filter-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
}
.filter-section-label--spaced {
  margin-top: 14px;
}
/* Texte d’intro / période aligné sur le même axe que les listes (16px) */
.page-gutter-x {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
.match-filters {
  display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto;
}
.match-list { padding: 0 16px; }
.match-date-header {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 0 8px;
}
.match-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s;
}
.match-card:hover { border-color: var(--red); }
.match-type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.match-type .type-dot { width: 6px; height: 6px; border-radius: 50%; }
.match-teams {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.match-team {
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.match-team-color {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; color: #fff;
}
.match-team-name { font-weight: 700; font-size: 14px; }
.match-team-cat { font-size: 11px; color: var(--text-dim); }
.match-vs {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--text-muted);
  flex-shrink: 0;
}
.match-time {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}
.match-time .time-val { font-weight: 700; color: var(--text); }
.match-delete {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.match-delete:hover { border-color: var(--red); color: var(--red); }

/* ============ LIVE MATCH ============ */
.live-header {
  background: linear-gradient(180deg, rgba(230,57,70,0.15), transparent);
  padding: 16px 16px 0;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.live-badge .dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse 1s infinite; }
.live-type { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-bottom: 8px; font-weight: 700; }

.scoreboard {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 16px; margin: 0 16px;
}
.scoreboard-teams {
  display: flex; align-items: center; justify-content: space-between;
}
.sb-team { text-align: center; flex: 1; }
.sb-team-logo {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
}
.sb-team-name { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1px; }
.sb-center { text-align: center; padding: 0 8px; }
.sb-score {
  display: flex; align-items: center; gap: 8px;
}
.sb-jeux { font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1; }
.sb-separator { font-size: 24px; color: var(--text-muted); }
.sb-quinze {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-top: 8px;
}
.quinze-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--green);
  background: rgba(46,200,106,0.1); padding: 4px 14px; border-radius: 8px;
}
.quinze-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.sb-time {
  text-align: center; font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  color: var(--text-dim); margin-top: 4px;
}

/* Score controls */
.score-controls {
  display: flex; gap: 8px; justify-content: center; margin-top: 12px; padding: 0 16px;
}
.score-btn {
  flex: 1; padding: 10px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.score-btn:hover { border-color: var(--red); }
.score-btn .ctrl-arrow { font-size: 18px; }

/* Animation buttons */
.animation-btns {
  display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto;
}
.anim-btn {
  flex: 1; min-width: 60px; padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card); cursor: pointer;
  text-align: center; transition: all 0.3s;
}
.anim-btn:hover { border-color: var(--gold); background: rgba(255,215,0,0.08); transform: scale(1.05); }
.anim-btn:active { transform: scale(0.95); }
.anim-btn .anim-icon { font-size: 22px; }
.anim-btn .anim-label { font-size: 9px; color: var(--text-dim); margin-top: 4px; font-weight: 600; text-transform: uppercase; }

/* Player roster in Live */
.roster-section { padding: 12px 16px; }
.roster-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.roster-player {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 6px; cursor: pointer; transition: all 0.3s;
}
.roster-player:hover { border-color: var(--red); }
.roster-player.sub { opacity: 0.6; border-style: dashed; }
.roster-player .rp-left { display: flex; align-items: center; gap: 10px; }
.roster-player .rp-pos {
  width: 24px; height: 24px; border-radius: 6px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.roster-player.sub .rp-pos { background: var(--text-muted); }
.roster-player .rp-name { font-weight: 700; font-size: 13px; }
.roster-player .rp-captain { font-size: 10px; color: var(--gold); margin-left: 4px; }
.roster-player .rp-stats {
  display: flex; gap: 4px;
}
.rp-stat-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dot-green { background: var(--green); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }

/* Live stat encoding overlay */
.stat-encode {
  padding: 16px; display: none;
}
.stat-encode.active { display: block; animation: fadeIn 0.3s ease; }
.stat-encode-header {
  text-align: center; padding: 12px; background: var(--bg-card); border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border); border-bottom: none;
}
.stat-encode-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; }
.stat-encode-captain { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.stat-encode-captain input { accent-color: var(--gold); }
.stat-section {
  background: var(--bg-card); border: 1px solid var(--border); padding: 12px 16px;
}
.stat-section-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.stat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}
.stat-label-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat-label-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.stat-controls { display: flex; align-items: center; gap: 12px; }
.stat-ctrl-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text); cursor: pointer;
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.stat-ctrl-btn:hover { border-color: var(--red); color: var(--red); }
.stat-ctrl-btn:active { transform: scale(0.9); }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 24px; min-width: 28px; text-align: center; }
.stat-encode-footer {
  background: var(--bg-card); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px; display: flex; gap: 10px;
}

/* Live action buttons bottom */
.live-actions {
  padding: 12px 16px; display: flex; gap: 10px;
}
.btn-share { flex: 1; background: var(--blue); color: #fff; padding: 12px; border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: 13px; text-transform: uppercase; }
.btn-end { flex: 1; background: var(--red-dark); color: #fff; padding: 12px; border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: 'Barlow', sans-serif; font-size: 13px; text-transform: uppercase; }

/* ============ PAST MATCHES ============ */
.past-match {
  display: flex; align-items: center; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin: 0 16px 8px; cursor: pointer; transition: all 0.3s;
}
.past-match:hover { border-color: var(--red); }
.pm-date { font-size: 11px; color: var(--text-dim); width: 50px; flex-shrink: 0; text-align: center; }
.pm-date .pm-day { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--text); }
.pm-teams { flex: 1; padding: 0 12px; }
.pm-team-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.pm-team-dot { width: 8px; height: 8px; border-radius: 2px; }
.pm-team-name { font-size: 13px; font-weight: 600; }
.pm-score-col { text-align: right; }
.pm-score { font-family: 'Bebas Neue', sans-serif; font-size: 18px; line-height: 1.3; }
.pm-winner { color: var(--green); }
.pm-loser { color: var(--text-muted); }

/* Stat table summary */
.stat-table-wrap { padding: 16px; overflow-x: auto; }
.stat-table {
  width: 100%; border-collapse: collapse; font-size: 12px; min-width: 380px;
}
.stat-table th {
  background: var(--red); color: #fff; padding: 8px 6px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.5px;
}
.stat-table th:first-child { text-align: left; padding-left: 12px; }
.stat-table td {
  padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stat-table td:first-child { text-align: left; padding-left: 12px; font-weight: 700; }
.stat-table tr:hover td { background: var(--bg-card-hover); }

/* Classement équipes */
.classement-table-wrap { padding: 0 16px 16px; }
.classement-table {
  width: 100%; border-collapse: collapse; font-size: 13px; min-width: 320px;
}
.classement-table th {
  background: var(--surface-elevated); color: var(--text); padding: 10px 8px; text-align: center;
  font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; border-bottom: 2px solid var(--border);
}
.classement-table th:first-child,
.classement-table td:first-child { text-align: left; padding-left: 12px; }
.classement-table td {
  padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.classement-table tr:hover td { background: var(--bg-card-hover); }
.classement-table td:nth-child(8) { font-weight: 700; color: var(--red); }

/* ============ CHAMPIONS ============ */
.champions-filters { display: flex; gap: 8px; padding: 12px 16px; }
.champion-card {
  margin: 0 16px 12px; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); text-align: center;
  position: relative; overflow: hidden;
}
.champion-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.champion-card.gold::before { background: var(--gold); }
.champion-card.silver::before { background: var(--silver); }
.champion-card.bronze::before { background: var(--bronze); }
.champion-trophy { font-size: 36px; margin-bottom: 8px; }
.champion-title { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.champion-name { font-family: 'Bebas Neue', sans-serif; font-size: 26px; margin-top: 4px; letter-spacing: 1px; }
.champion-score {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; margin-top: 4px;
}
.champion-formula { font-size: 10px; color: var(--text-muted); margin-top: 6px; }
/* Aligne la notice « dirigeant uniquement » sur le même axe que les cartes (16px) */
.champions-dirigeant-notice {
  margin-left: 16px;
  margin-right: 16px;
  box-sizing: border-box;
}

/* ============ MAP ============ */
.map-container {
  margin: 16px; height: 380px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.map-placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(46,200,106,0.15), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(230,57,70,0.1), transparent 30%),
    var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.map-placeholder .map-icon { font-size: 48px; opacity: 0.5; }
.map-placeholder .map-text { font-size: 13px; color: var(--text-dim); }

.map-pin {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; cursor: pointer; transition: all 0.3s; z-index: 2;
}
.map-pin:hover { transform: scale(1.5); z-index: 3; }
.map-pin.pin-live { background: var(--green); animation: pulse 1.5s infinite; }
.map-pin.pin-club { background: #333; }
.map-pin .pin-tooltip {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  white-space: nowrap; font-size: 11px; font-weight: 600; box-shadow: var(--shadow);
}
.map-pin:hover .pin-tooltip { display: block; }

.map-legend {
  padding: 12px 16px; display: flex; gap: 16px; justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; }

/* Leaflet — /carte (hauteur confortable sur mobile) */
.map-leaflet {
  height: calc(720px * 0.8);
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-elevated);
}
/* Leaflet impose color: #0078A8 sur les liens des popups — aligner sur les boutons (texte blanc) */
.leaflet-container .leaflet-popup-content .map-popup a,
.leaflet-container .leaflet-popup-content .map-popup a:visited {
  color: #fff !important;
}
.leaflet-container .leaflet-popup-content .map-popup a:hover {
  color: #fff !important;
  opacity: 0.92;
}

/* ============ SPONSORS ============ */
.sponsors-info {
  margin: 16px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sponsors-info p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.sponsors-url {
  display: inline-block; padding: 8px 16px; background: rgba(77,171,247,0.1);
  border: 1px solid rgba(77,171,247,0.3); border-radius: var(--radius-sm);
  color: var(--blue); font-size: 13px; font-weight: 600;
}
.sponsor-preview {
  margin: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sponsor-slot {
  aspect-ratio: 16/9; background: var(--bg-card); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; color: var(--text-muted);
}
.sponsor-slot .sp-icon { font-size: 24px; opacity: 0.5; }

/* ============ ACCOUNT ============ */
.account-header {
  text-align: center; padding: 24px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.1), transparent 70%);
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: #fff;
  border: 3px solid rgba(230,57,70,0.4);
  overflow: hidden;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-name { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; }
.account-email { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.account-badge-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.account-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.account-list { padding: 16px; }
.account-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: all 0.3s;
}
.account-item:hover { border-color: var(--red); }
.ai-left { display: flex; align-items: center; gap: 12px; }
.ai-icon { font-size: 18px; width: 36px; height: 36px; border-radius: 8px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; }
.ai-label { font-weight: 600; font-size: 14px; }
.ai-value { font-size: 12px; color: var(--text-dim); }
.ai-arrow { color: var(--text-muted); font-size: 16px; flex-shrink: 0; line-height: 1; }
.account-item-arrow--danger { color: var(--red) !important; }

/* Section Paramètres de l'app (compte) — marges horizontales ici seulement (pas sur .account-list imbriqué) */
.account-settings-section { padding: 8px 16px 24px; }
.account-settings-section .account-list {
  padding-left: 0;
  padding-right: 0;
}
.account-settings-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 1px;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 12px; padding-left: 4px;
}
.account-item-toggle { cursor: default; }
.account-item-toggle:hover { border-color: var(--border); }
.account-item-toggle .ai-value { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Compte : bouton suppression compte (texte blanc sur fond rouge) */
.btn-account-danger {
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid var(--red) !important;
}
.btn-account-danger:hover {
  background: var(--red-dark) !important;
  color: #fff !important;
  border-color: var(--red-dark) !important;
}

/* Compte : ligne « Revoir le tuto » — bouton pleine largeur sous le texte */
.account-item-tuto-row {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  cursor: default;
}
.account-item-tuto-row:hover { border-color: var(--border); }
.account-item-tuto-text { width: 100%; }
.account-tuto-btn-full {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: block;
  text-decoration: none;
  line-height: 1.2;
}

.account-profile-form { width: 100%; }
.account-profile-form .input-group { margin-bottom: 10px; }
.account-profile-form .input-group label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-weight: 600;
}
.account-gants-link { margin-top: 4px; }

/* Compte : accordéon infos perso (fermé par défaut) */
details.account-item.account-accordion {
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}
details.account-item.account-accordion:hover { border-color: var(--border); }
details.account-item.account-accordion > summary.account-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  cursor: pointer;
}
details.account-item.account-accordion > summary::-webkit-details-marker { display: none; }
.account-accordion-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
/* Même chevron « › » que Mon cercle / Mot de passe : rotation à l’ouverture */
details.account-item.account-accordion[open] .account-accordion-chevron.ai-arrow {
  transform: rotate(90deg);
}
.account-accordion-body {
  padding: 4px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 12px;
}
.account-public-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-public-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-public-avatar-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--text-dim);
}

/* Listing joueurs : filtres repliables */
.joueurs-filter-form .input-group { margin-bottom: 0; }
.joueurs-filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.joueurs-filter-checkboxes--scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.joueurs-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}
.joueurs-filter-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Toggle switch (UI cohérente thème Yela Yela) */
.toggle-wrap {
  display: inline-flex; align-items: center; flex-shrink: 0;
  cursor: pointer; position: relative; user-select: none;
}
.toggle-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0;
}
.toggle-slider {
  display: block;
  position: relative;
  width: 48px; height: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.toggle-input:checked + .toggle-slider {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--red);
}
.toggle-input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px var(--red-glow);
}
.toggle-wrap:hover .toggle-slider { border-color: var(--text-dim); }
.toggle-wrap:hover .toggle-input:checked + .toggle-slider { border-color: var(--red-dark); }

/* ============ APP TOPBAR (utilisateurs non-admin) ============ */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 8px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-topbar-back {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
}
.app-topbar-back:hover {
  background: var(--bg-card-hover);
  color: var(--red);
}
.app-topbar-back .material-symbols-outlined {
  font-size: 24px;
}
.app-topbar-brand {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
}
.app-topbar-brand:hover {
  color: var(--text);
}
.app-topbar-spacer {
  width: 40px;
  flex-shrink: 0;
}
.app-topbar-account {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
}
.app-topbar-account:hover {
  background: var(--bg-card-hover);
  color: var(--red);
}
.app-topbar-account .material-symbols-outlined {
  font-size: 24px;
}

/* Accessibilité : libellé masqué visuellement */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ IMPERSONATION (super admin) ============ */
.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(180, 140, 40, 0.22), rgba(180, 140, 40, 0.12));
  border-bottom: 1px solid rgba(210, 170, 70, 0.45);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}
.impersonation-banner__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.impersonation-banner__text .material-symbols-outlined {
  font-size: 20px;
  color: #d4a84b;
  flex-shrink: 0;
}
.impersonation-banner__form {
  margin: 0;
  flex-shrink: 0;
}
.impersonation-banner .btn {
  white-space: nowrap;
}

/* ============ ADMIN TOPBAR ============ */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
  min-width: 0;
}
.admin-topbar-brand .material-symbols-outlined {
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
}
.admin-topbar-brand-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}
.admin-topbar-brand--sponsors-bo .admin-topbar-brand-line1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--text);
}
.admin-topbar-brand--sponsors-bo .admin-topbar-brand-line2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.admin-topbar-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  max-width: min(200px, 42vw);
  min-width: 0;
}
.admin-topbar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.admin-topbar-user-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.admin-topbar-season .custom-select {
  width: auto;
  min-width: 148px;
}
/* Trigger saison : même rayon et esprit que .admin-topbar-logout (var(--radius-sm)) */
.admin-topbar .admin-topbar-season .custom-select-trigger {
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  min-height: calc(8px + 8px + 1.2em);
  box-sizing: border-box;
}
.admin-topbar .admin-topbar-season .custom-select-trigger:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
.admin-topbar .admin-topbar-season .custom-select-trigger[aria-expanded="true"] {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-color: transparent;
}
.admin-topbar-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.admin-topbar-logout:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.08);
}
.admin-topbar-logout .material-symbols-outlined {
  font-size: 18px;
}

/* ============ BACK OFFICE ============ */
.bo-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.bo-tab {
  padding: 12px 18px; font-size: 12px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.bo-tab.active { color: var(--red); border-bottom-color: var(--red); }
.bo-content { padding: 16px; }
.bo-top-actions {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* Backoffice: les CTA d'en-tête restent compacts et alignés sur une ligne */
.bo-top-actions .btn,
.bo-top-actions .btn-sm {
  width: auto;
  min-width: max-content;
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
  flex: 0 0 auto;
}
.bo-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.bo-table th {
  text-align: left; padding: 10px 8px; font-size: 10px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.bo-table td {
  padding: 10px 8px; border-bottom: 1px solid var(--border);
}
/* Backoffice: aligner le contenu des cellules comme les en-têtes */
body.admin-dashboard .bo-table td {
  text-align: left;
}
.bo-table tr:hover td { background: var(--bg-card-hover); }
.bo-status {
  padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700;
  text-transform: uppercase;
}
.bo-status-active { background: rgba(46,200,106,0.15); color: var(--green); }
.bo-status-trial { background: rgba(255,159,28,0.15); color: var(--orange); }
.bo-status-expired { background: rgba(230,57,70,0.15); color: var(--red); }
.bo-actions { display: flex; gap: 6px; }

/* ——— Backoffice : sponsors (cartes, glisser-déposer) ——— */
.bo-sponsors-lead {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 16px;
  max-width: 52rem;
}
.bo-sponsors-lead strong { color: var(--text); font-weight: 600; }
.bo-sponsors-lead-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(230,57,70,0.2);
  color: var(--red);
  vertical-align: middle;
}
.bo-sponsors-admin-circle {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  max-width: 28rem;
}
.bo-sponsors-admin-circle-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.bo-sponsors-circle-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.bo-sponsors-circle-select:focus {
  outline: none;
  border-color: rgba(230,57,70,0.5);
  box-shadow: 0 0 0 2px rgba(230,57,70,0.15);
}
.bo-btn-create-sponsor[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.bo-sponsor-form-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: -4px 0 12px;
  line-height: 1.45;
  max-width: 36rem;
}
.bo-sponsor-circle-summary {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.bo-sponsor-circle-summary strong { color: var(--text); }

.bo-sponsor-upload-limits {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  margin: -6px 0 12px;
  max-width: 36rem;
}
.bo-sponsor-upload-limits strong { color: var(--text); font-weight: 600; }

.bo-sponsor-upload-progress {
  margin: 0 0 14px;
  max-width: 36rem;
}
.bo-sponsor-upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bo-sponsor-upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #ff8a8a);
  transition: width 0.15s ease-out;
}
.bo-sponsor-upload-progress-fill--indeterminate {
  width: 100% !important;
  transition: none;
  background: linear-gradient(90deg, rgba(230,57,70,0.25) 0%, var(--red) 45%, rgba(255,138,138,0.9) 55%, rgba(230,57,70,0.25) 100%);
  background-size: 220% 100%;
  animation: boSponsorUploadShimmer 1.15s linear infinite;
}
@keyframes boSponsorUploadShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.bo-sponsor-upload-progress-text {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.bo-sponsor-loop-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(100,149,237,0.2);
  color: var(--blue);
  vertical-align: middle;
}
.bo-sponsors-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bo-sponsors-circle-block {
  padding: 0;
}
.bo-sponsors-circle-title {
  margin: 0 0 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--text);
}
.bo-sponsors-circle-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bo-sponsors-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.bo-sponsor-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg-card) 0%, rgba(0,0,0,0.12) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: grab;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s ease;
}
.bo-sponsor-card:hover {
  border-color: rgba(230,57,70,0.35);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.bo-sponsor-card:active { cursor: grabbing; }
.bo-sponsor-card--dragging {
  opacity: 0.55;
  transform: scale(0.98);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  z-index: 3;
}
.bo-sponsor-card--over {
  outline: 2px dashed var(--red);
  outline-offset: 2px;
}
.bo-sponsor-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.bo-sponsor-drag-hint {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.bo-sponsor-drag-hint .material-symbols-outlined { font-size: 20px; }
.bo-sponsor-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bo-sponsor-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.bo-sponsor-thumb-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.65);
  color: #fff;
  pointer-events: none;
}
.bo-sponsor-thumb-badge .material-symbols-outlined { font-size: 14px; }
.bo-sponsor-meta {
  padding: 12px 14px 10px;
  flex: 1;
}
.bo-sponsor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.bo-sponsor-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(46,200,106,0.18);
  color: var(--green);
}
.bo-sponsor-pill--off {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.75;
}
.bo-sponsor-dur {
  font-size: 12px;
  color: var(--text-dim);
}
.bo-sponsor-dur strong { color: var(--text); font-weight: 600; }
.bo-sponsor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
}
.bo-sponsor-reorder {
  display: flex;
  gap: 4px;
}
.bo-sponsor-reorder .bo-action-btn { width: 32px; height: 32px; }
@media (max-width: 520px) {
  .bo-sponsors-board {
    grid-template-columns: 1fr;
  }
}

.bo-action-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ CONTACT ============ */
.contact-form { padding: 16px; }
.contact-form .input-group { margin-bottom: 14px; }
.textarea-field {
  width: 100%; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: 'Barlow', sans-serif;
  font-size: 14px; resize: vertical; min-height: 120px; outline: none;
}
.textarea-field:focus { border-color: var(--red); }

/* ============ ANIMATION OVERLAY ============ */
.animation-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
}
.animation-overlay.show { display: flex; animation: overlayIn 0.2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.animation-content {
  text-align: center; animation: animBounce 0.5s ease;
}
@keyframes animBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.animation-content .anim-emoji { font-size: 100px; }
.animation-content .anim-emoji .material-symbols-outlined { font-size: 100px; }
.animation-content .anim-image-wrap { margin: 0 auto; max-width: 280px; max-height: 280px; }
.animation-content .anim-image-wrap img.anim-image { width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block; }
.anim-btn .anim-icon img { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.anim-btn .anim-icon .material-symbols-outlined { font-size: 28px; }
.bo-action-btn .material-symbols-outlined { font-size: 18px; }
.card-icon .material-symbols-outlined { font-size: 28px; }
.ai-icon .material-symbols-outlined { font-size: 20px; }
.sp-icon .material-symbols-outlined { font-size: 24px; }
.map-icon .material-symbols-outlined { font-size: 48px; }
.champion-trophy .material-symbols-outlined { font-size: 36px; color: var(--gold); }
.pin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pin-dot-live { background: var(--green); }
.animation-content .anim-text { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: #fff; letter-spacing: 4px; margin-top: 12px; }

/* ============ CUSTOM SELECT (UI cohérente thème sombre) ============ */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select.custom-select-open {
  z-index: 10001;
}
.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.custom-select-trigger {
  position: relative;
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* Accueil : saison centrée, largeur contenu */
.dashboard-season-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0 16px;
}
.dashboard-season-filter .custom-select {
  width: auto;
  min-width: 200px;
  max-width: 100%;
}
.custom-select-trigger:hover {
  border-color: var(--text-dim);
}
.custom-select-trigger:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.custom-select-trigger[aria-expanded="true"] {
  border-color: var(--red);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.custom-select-trigger .custom-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: transform 0.2s;
}
.custom-select-trigger[aria-expanded="true"] .custom-select-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: var(--text);
}
.custom-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10001;
  /* ~5 options + ½ pour indiquer le scroll (option ≈ 40px) */
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.custom-select-option {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
}
.custom-select-option:last-child {
  border-bottom: none;
}
.custom-select-option:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.custom-select-option.selected {
  background: rgba(230, 57, 70, 0.15);
  color: var(--red);
  font-weight: 600;
}

/* ============ CUSTOM DATE (champ natif en overlay + face lisible) ============ */
.custom-date {
  position: relative;
  width: 100%;
  min-height: 42px;
}
.custom-date-native {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 16px; /* limite zoom iOS */
  box-sizing: border-box;
}
.custom-date-face {
  pointer-events: none;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.25;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  min-height: 42px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.custom-date:focus-within .custom-date-face {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.custom-date-face--empty {
  color: var(--text-dim);
}

/* ============ FLATPICKR (calendrier custom global) ============
   Le CSS CDN flatpickr.min.css est injecté après app.css : overrides avec !important. */
.flatpickr-calendar,
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}
.flatpickr-calendar {
  border-radius: 14px;
  padding: 8px;
  width: 360px;
  color: var(--text) !important;
}
.flatpickr-months,
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-weekdays,
.flatpickr-days,
.flatpickr-days .dayContainer {
  background: var(--bg-card) !important;
}
.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: var(--text) !important;
  fill: var(--text) !important;
}
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--bg-surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  padding: 2px 6px !important;
}
.flatpickr-weekday,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: var(--text) !important;
  fill: var(--text) !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text) !important;
  fill: var(--text) !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--red) !important;
}
.flatpickr-weekdays { margin-bottom: 4px; }
.flatpickr-weekday { font-weight: 700; opacity: 0.9; }
.flatpickr-day {
  color: var(--text) !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 10px;
  max-width: none;
  height: 38px;
  line-height: 38px;
}
.flatpickr-day.today {
  border-color: var(--red) !important;
  background: rgba(230, 57, 70, 0.12) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(255, 255, 255, 0.08) !important;
}
.flatpickr-day.flatpickr-disabled { opacity: 0.35 !important; }
.flatpickr-time {
  border-top: 1px solid var(--border) !important;
  height: 48px;
  line-height: 48px;
  background: var(--bg-card) !important;
}
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  font-size: 16px;
  font-weight: 700;
  background: var(--bg-card) !important;
  box-shadow: none !important;
}
.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time input:active,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus,
.flatpickr-time .flatpickr-am-pm:active {
  background: var(--bg-card) !important;
  color: var(--text) !important;
}
.flatpickr-time .numInputWrapper { background: transparent !important; }
.flatpickr-time .numInputWrapper span.arrowUp:after { border-bottom-color: var(--text-dim) !important; }
.flatpickr-time .numInputWrapper span.arrowDown:after { border-top-color: var(--text-dim) !important; }

/* Champ visible (altInput) : même look que les inputs BO / formulaires */
input.flatpickr-alt-input {
  width: 100% !important;
  max-width: 100%;
  padding: 10px 12px !important;
  min-height: 42px;
  font-size: 14px !important;
  font-family: 'Barlow', sans-serif !important;
  line-height: 1.25 !important;
  color: var(--text) !important;
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
input.flatpickr-alt-input:focus {
  outline: none !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}
/* Compte / inscription / profil : même rendu que les autres .input-field */
input.input-field.flatpickr-alt-input {
  padding: 14px 16px !important;
  min-height: 0;
  font-size: 15px !important;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-sm) !important;
}
input.input-field.flatpickr-alt-input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}
/* Fallback mobile (pas d’altInput) */
input.flatpickr-input.flatpickr-mobile {
  width: 100% !important;
  padding: 10px 12px !important;
  min-height: 42px;
  font-size: 14px !important;
  font-family: 'Barlow', sans-serif !important;
  background: var(--bg-dark) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-sizing: border-box !important;
}

/* ============ CUSTOM FILE (natif masqué + bouton) ============ */
.custom-file {
  position: relative;
  width: 100%;
}
.custom-file-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.custom-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
.custom-file-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.custom-file-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
.custom-file-name {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.custom-file-name--placeholder {
  color: var(--text-dim);
  font-style: italic;
}

/* ============ POPUP / MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; max-width: 360px; width: 100%; animation: fadeIn 0.3s ease;
}
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; margin-bottom: 8px; }
.modal-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { font-size: 13px; padding: 10px; }

/* Admin form modal */
.bo-form-modal .modal-box { max-width: 420px; }
.bo-form-modal .modal-body { margin-bottom: 20px; }
.bo-form-modal .form-row { margin-bottom: 12px; }
/* Labels BO : même esprit que .filter-section-label (filtres calendriers / app) */
.bo-content .bo-field-label,
.bo-form-modal .form-row > label:not(.bo-checkbox-label),
.bo-content .form-row > label:not(.bo-checkbox-label) {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px 0;
  padding: 0;
}
.bo-form-modal .form-row .bo-checkbox-label,
.bo-content .form-row .bo-checkbox-label {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: start;
  column-gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  cursor: pointer;
}
.bo-form-modal .form-row .bo-checkbox-label input[type="checkbox"],
.bo-content .form-row .bo-checkbox-label input[type="checkbox"] {
  margin: 1px 0 0;
}
.bo-form-modal .bo-checkbox-group,
.bo-content .bo-checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .bo-form-modal .bo-checkbox-group,
  .bo-content .bo-checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}
.bo-field-label--invisible {
  visibility: hidden;
  margin-bottom: 6px;
  min-height: 1.15em;
}
.btn-nowrap { white-space: nowrap; }

.bo-calendrier-import-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
  overflow: visible;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.bo-calendrier-import-field--category {
  position: relative;
  z-index: 1;
  flex: 1 1 160px;
  min-width: 150px;
}
.bo-calendrier-import-field--category .custom-select.custom-select-open {
  z-index: 12000;
}
.bo-calendrier-import-field--file {
  flex: 1 1 220px;
  min-width: 180px;
}
.bo-calendrier-import-submit {
  flex-shrink: 0;
}
.bo-calendrier-import-field .custom-select {
  width: 100%;
}

.bo-matches-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.bo-matches-toolbar-field {
  flex: 0 1 auto;
  min-width: 0;
}
.bo-matches-toolbar-field--date {
  flex: 1 1 168px;
  min-width: 168px;
  width: auto;
  max-width: 220px;
}
.bo-matches-toolbar-field input.flatpickr-alt-input {
  width: 100% !important;
  min-height: 42px;
  padding: 10px 12px !important;
  font-size: 14px !important;
  font-family: 'Barlow', sans-serif !important;
  line-height: 1.25 !important;
  color: var(--text) !important;
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}
.bo-matches-toolbar-field input.flatpickr-alt-input:focus {
  outline: none !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}
.bo-matches-toolbar-field .custom-select {
  min-width: 120px;
}
.bo-matches-toolbar-actions {
  flex-shrink: 0;
}
.bo-matches-toolbar-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bo-form-modal .form-row input:not(.custom-date-native):not(.custom-file-native):not(.bo-color-native),
.bo-form-modal .form-row select:not(.custom-select-native) { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-dark); color: var(--text); font-size: 14px; }
.bo-form-modal .form-row .bo-color-hex {
  width: auto;
  max-width: 118px;
  flex: 0 1 auto;
}
.bo-form-modal .form-row input:not(.custom-date-native):not(.custom-file-native):not(.bo-color-native):focus,
.bo-form-modal .form-row select:not(.custom-select-native):focus { outline: none; border-color: var(--red); }
.bo-form-modal .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  resize: vertical;
  box-sizing: border-box;
}
.bo-form-modal .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
}
.bo-form-modal .form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.bo-loading { text-align: center; padding: 24px; color: var(--text-dim); }
.bo-empty { text-align: center; padding: 24px; color: var(--text-dim); font-size: 13px; }
.bo-anim-preview { margin-top: 8px; }
.bo-anim-preview img { max-width: 80px; max-height: 80px; object-fit: contain; border-radius: 6px; border: 1px solid var(--border); }

/* Vue plein écran type "nouvelle page" (utilisée par Voir cercle) */
.bo-fullscreen-panel {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: none;
  background: var(--bg-dark);
}
.bo-fullscreen-panel.show {
  display: block;
}
.bo-fullscreen-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bo-fullscreen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}
.bo-fullscreen-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1;
}
.bo-fullscreen-back {
  width: auto;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 13px;
  padding: 10px 14px;
}
.bo-fullscreen-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
}
.bo-circle-fullpage-wrap .circle-info-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.bo-circle-fullpage-wrap .circle-info-form .info-section {
  margin-bottom: 0;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.bo-circle-fullpage-wrap .circle-info-form > button[type="submit"] {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 220px;
}
.bo-circle-fullpage-wrap--inline {
  max-width: 1200px;
  margin: 8px 0 0;
}
@media (max-width: 959px) {
  .bo-circle-fullpage-wrap .circle-info-form {
    grid-template-columns: 1fr;
  }
  .bo-circle-fullpage-wrap .circle-info-form > button[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Responsive helper for larger screens */
@media (min-width: 431px) {
  .app-container { box-shadow: 0 0 60px rgba(0,0,0,0.5); }
}

/* Admin dashboard: occupe bien l'écran sur desktop, utilisable sur mobile */
body.admin-dashboard .app-container {
  max-width: 100%;
}
@media (min-width: 768px) {
  body.admin-dashboard .app-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
  }
  body.admin-dashboard .bo-tabs {
    flex-wrap: wrap;
  }
  body.admin-dashboard .bo-content {
    padding: 24px;
  }
  body.admin-dashboard .bo-table {
    font-size: 13px;
  }
  body.admin-dashboard .bo-table th,
  body.admin-dashboard .bo-table td {
    padding: 12px 14px;
  }
}
@media (min-width: 1024px) {
  body.admin-dashboard .app-container {
    max-width: 1200px;
  }
}

/* ——— PWA : bannette « Installer Yela Yela » */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.pwa-install-banner.show {
  transform: translateY(0);
}
.pwa-install-banner-inner {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pwa-install-banner-text {
  flex: 1;
  min-width: 180px;
  font-size: 14px;
  color: var(--text);
  margin: 0;
}
.pwa-install-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pwa-install-banner .btn { white-space: nowrap; }
.pwa-install-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.pwa-install-dismiss:hover { color: var(--text); }
