@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2330;
  --border: #30363d;
  --accent: #2ea86e;
  --accent2: #1a7a50;
  --accent-glow: rgba(46,168,110,0.15);
  --warn: #e3a84a;
  --danger: #e05c5c;
  --text: #e6edf3;
  --muted: #7d8590;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  padding: 0 0 80px;
}

/* ── NAV ── */
nav {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.4;
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, #0d1f14 0%, #0d1117 60%);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-pill {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#date-display {
  font-size: 13px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
}
.progress-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.progress-pill span { color: var(--accent); font-weight: 600; }

/* ── MAIN ── */
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── SECTION CARDS ── */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.section-card.complete { border-color: var(--accent2); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.section-header:hover { background: #1f2937; }
.section-header-left { display: flex; align-items: center; gap: 12px; }
.section-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; font-weight: 400; color: var(--text);
}
.section-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.section-meta { display: flex; align-items: center; gap: 10px; }
.section-count {
  font-size: 12px; color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2px 8px;
}
.section-count.done { color: var(--accent); border-color: var(--accent2); background: var(--accent-glow); }
.chevron { color: var(--muted); font-size: 16px; transition: transform 0.2s; }
.section-card.collapsed .chevron { transform: rotate(-90deg); }
.section-card.collapsed .section-body { display: none; }
.section-body { padding: 8px 0; }

/* ── CHECKLIST ITEMS ── */
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid transparent;
  transition: background 0.1s; cursor: pointer;
}
.check-item:hover { background: rgba(255,255,255,0.02); }
.check-item:last-child { border-bottom: none; }
.check-item input[type="checkbox"] { display: none; }
.custom-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border); border-radius: 5px;
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; background: var(--bg);
}
.check-item.checked .custom-check { background: var(--accent); border-color: var(--accent); }
.check-item.checked .custom-check::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.check-label { flex: 1; font-size: 14px; line-height: 1.5; color: var(--text); transition: color 0.15s; }
.check-item.checked .check-label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.check-tag { font-size: 11px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 3px; }
.tag-admin { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tag-urgent { background: rgba(224,92,92,0.15); color: var(--danger); }
.tag-soft { background: rgba(125,133,144,0.12); color: var(--muted); }

/* ── EVOLUTION COLORS ── */
.evolution-select option[value="amelioration"] { color: #4ade80; }
.evolution-select option[value="stable"]       { color: #facc15; }
.evolution-select option[value="aggravation"]  { color: #f87171; }
.evolution-select.ev-amelioration { color: #4ade80 !important; font-weight: 600; }
.evolution-select.ev-stable       { color: #facc15 !important; font-weight: 600; }
.evolution-select.ev-aggravation  { color: #f87171 !important; font-weight: 600; }

/* ── STATUT BADGES ── */
.statut-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.statut-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 4px;
  border: 1.5px solid transparent; cursor: pointer;
  background: color-mix(in srgb, var(--bc) 30%, transparent);
  color: var(--tc); border-color: var(--bc);
  opacity: 0.45; transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.statut-badge:hover { opacity: 0.75; }
.statut-badge.active {
  opacity: 1; background: var(--bc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 60%, transparent);
  transform: scale(1.05);
}

/* ── PLAYER ROW ── */
.players-area { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.player-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr 0.9fr 0.7fr 1.5fr 0.9fr 1.2fr 1.2fr;
  gap: 8px 10px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  position: relative;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: none; } }
.player-row input, .player-row select {
  background: transparent; border: none;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; width: 100%;
}
.player-row input::placeholder { color: var(--muted); }
.player-row select option { background: var(--surface); }
.player-row textarea {
  background: transparent; border: none;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; width: 100%;
  resize: none; min-height: 36px; line-height: 1.4;
}
.player-row textarea::placeholder { color: var(--muted); }
.field-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.remove-player {
  position: absolute; right: -10px; top: -10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--danger); color: #fff; border: none;
  cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.15s;
}
.player-row:hover .remove-player { opacity: 1; }
.add-player-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px dashed var(--border); border-radius: 8px;
  color: var(--muted); font-family: 'DM Sans', sans-serif;
  font-size: 13px; padding: 10px 14px;
  cursor: pointer; width: 100%; transition: all 0.15s;
}
.add-player-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ── INJURY SUGGESTION DROPDOWN ── */
.injury-suggest-wrap { position: relative; }
.injury-suggest-list {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--accent2);
  border-radius: 6px;
  z-index: 50;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.injury-suggest-list.open { display: block; }
.injury-suggest-item {
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  display: flex; flex-direction: column; gap: 2px;
}
.injury-suggest-item:last-child { border-bottom: none; }
.injury-suggest-item:hover { background: var(--accent-glow); }
.injury-suggest-item .inj-name { color: var(--text); font-weight: 500; }
.injury-suggest-item .inj-meta { color: var(--muted); font-size: 11px; }
.injury-suggest-empty { padding: 10px 12px; font-size: 12px; color: var(--muted); font-style: italic; }

/* ── RDV ROW ── */
.rdv-area { padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.rdv-row {
  display: grid; grid-template-columns: 1fr 1.2fr 110px;
  gap: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; position: relative;
  animation: fadeIn 0.2s ease;
}
.rdv-row input, .rdv-row select {
  background: transparent; border: none;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; width: 100%;
}
.rdv-row input::placeholder { color: var(--muted); }
.rdv-row select option { background: var(--surface); }
.rdv-row .remove-player { right: -10px; top: -10px; }
.rdv-row:hover .remove-player { opacity: 1; }

/* ── NOTES ── */
.notes-area { padding: 12px 20px 16px; }
.notes-area textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 1.6;
  padding: 10px 14px; resize: vertical; min-height: 80px;
  outline: none; transition: border-color 0.15s;
}
.notes-area textarea:focus { border-color: var(--accent); }
.notes-area textarea::placeholder { color: var(--muted); }
.notes-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

/* ── BOTTOM BAR ── */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; z-index: 100;
}
.overall-progress { display: flex; align-items: center; gap: 12px; flex: 1; }
.progress-bar-track { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; max-width: 300px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 3px; transition: width 0.4s cubic-bezier(0.4,0,0.2,1); }
.progress-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.progress-label strong { color: var(--accent); }
.btn-group { display: flex; gap: 8px; }

/* ── BUTTONS ── */
.btn {
  padding: 9px 18px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; transition: all 0.15s; white-space: nowrap;
}
.btn-secondary { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(46,168,110,0.25); }
.btn-primary:hover { background: #35c47f; box-shadow: 0 0 28px rgba(46,168,110,0.4); }
.btn-danger { background: rgba(224,92,92,0.15); border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 200; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  max-width: 520px; width: 90%;
  animation: popIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn { from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: none; } }
.modal-icon { font-size: 48px; margin-bottom: 16px; text-align: center; }
.modal h2 { font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 8px; text-align: center; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; text-align: center; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.form-input, .form-select, .form-textarea {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  padding: 9px 12px; outline: none; transition: border-color 0.15s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-select option { background: var(--surface); }
.form-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a5c2a; border: 1px solid var(--accent);
  color: #fff; font-size: 13px; padding: 10px 20px;
  border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  z-index: 300; white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── DASHBOARD CARDS ── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
  display: flex; flex-direction: column; gap: 8px;
}
.dash-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-card-icon { font-size: 28px; }
.dash-card-title { font-family: 'DM Serif Display', serif; font-size: 17px; }
.dash-card-sub { font-size: 12px; color: var(--muted); }
.dash-card-count { font-size: 28px; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ── INJURY/DISEASE TABLE ── */
.records-table { width: 100%; border-collapse: collapse; }
.records-table th {
  text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); padding: 10px 14px;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.records-table td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.records-table tr:last-child td { border-bottom: none; }
.records-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-pill {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 20px;
}
.pill-active { background: rgba(224,92,92,0.15); color: var(--danger); border: 1px solid var(--danger); }
.pill-resolved { background: rgba(46,168,110,0.15); color: var(--accent); border: 1px solid var(--accent2); }
.pill-monitoring { background: rgba(227,168,74,0.15); color: var(--warn); border: 1px solid var(--warn); }

/* ── HISTORY ── */
#history-panel { display: none; max-width: 1600px; margin: 24px auto 0; padding: 0 20px; }
#history-panel h2 { font-family: 'DM Serif Display', serif; font-size: 18px; margin-bottom: 14px; color: var(--muted); }
.history-entry {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  margin-bottom: 10px; display: flex;
  align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.history-date { font-size: 14px; font-weight: 500; }
.history-score { font-size: 13px; color: var(--muted); }
.history-score strong { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 16px; }
  main { padding: 16px 12px 0; }
  .player-row { grid-template-columns: 1fr 1fr; }
  .rdv-row { grid-template-columns: 1fr 1fr; }
  .bottom-bar { padding: 10px 16px; }
  .progress-bar-track { display: none; }
  nav { padding: 0 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── AT BADGE IN CHECKLIST ── */
.at-alert-banner {
  background: rgba(224,92,92,0.08);
  border: 1px solid rgba(224,92,92,0.4);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.at-alert-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.at-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.at-alert-item a {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.at-alert-item a:hover { text-decoration: underline; }

/* ── AT TABLE SPECIFICS ── */
.cmi-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: 0.05em;
}
.cmi-at   { background: rgba(224,92,92,0.15); color: var(--danger); border: 1px solid var(--danger); }
.cmi-am   { background: rgba(227,168,74,0.15); color: var(--warn);   border: 1px solid var(--warn); }
.cmi-mal  { background: rgba(96,165,250,0.15); color: #60a5fa;       border: 1px solid #3b82f6; }

.arret-pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}
.arret-init  { background: rgba(46,168,110,0.15); color: var(--accent); }
.arret-prol  { background: rgba(227,168,74,0.15);  color: var(--warn); }
.arret-decl  { background: rgba(96,165,250,0.15);  color: #60a5fa; }
.arret-reprise { background: rgba(125,133,144,0.15); color: var(--muted); }

.decl-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; cursor: pointer; border: none;
  font-family: 'DM Sans', sans-serif;
}
.decl-pending { background: rgba(224,92,92,0.15); color: var(--danger); border: 1px solid var(--danger); }
.decl-done    { background: rgba(46,168,110,0.15); color: var(--accent); border: 1px solid var(--accent2); }

.at-row-cloture td { opacity: 0.45; }

/* Player avatars */
.player-avatar {
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.player-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

/* ══════════════════════════════════════════════════════
   THÈMES / COLOR SCHEMES
   Appliquer via : document.documentElement.setAttribute('data-theme', 'rcsa-light')
   ══════════════════════════════════════════════════════ */

/* ─── RCSA Light — blanc & bleu Racing ──────────────── */
[data-theme="rcsa-light"] {
  --bg: #f0f3fa;
  --surface: #ffffff;
  --surface2: #e4eaf6;
  --border: #bccae6;
  --accent: #002d6e;
  --accent2: #001f52;
  --accent-glow: rgba(0,45,110,0.10);
  --warn: #c47a0a;
  --danger: #c0392b;
  --text: #0a1525;
  --muted: #5a6a8a;
}
[data-theme="rcsa-light"] header {
  background: linear-gradient(135deg, #002058 0%, #003999 100%);
  border-bottom: 1px solid #001840;
}
[data-theme="rcsa-light"] header h1,
[data-theme="rcsa-light"] .header-left { color: #fff; }
[data-theme="rcsa-light"] .logo-pill { background: #fff; color: #002d6e; }
[data-theme="rcsa-light"] .section-header:hover { background: #d8e3f5; }
[data-theme="rcsa-light"] .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(0,45,110,0.2); }
[data-theme="rcsa-light"] .btn-primary:hover { background: #003f9a; box-shadow: 0 0 28px rgba(0,45,110,0.35); }
[data-theme="rcsa-light"] .header-right .btn-primary { background: rgba(255,255,255,0.15); box-shadow: none; border: 1px solid rgba(255,255,255,0.4); }
[data-theme="rcsa-light"] .header-right .btn-secondary { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: #fff; }
[data-theme="rcsa-light"] .pill-done,
[data-theme="rcsa-light"] .pill-resolved { color: #002d6e; border-color: #002d6e; background: rgba(0,45,110,0.08); }
[data-theme="rcsa-light"] .records-table tr:hover td { background: rgba(0,45,110,0.04); }
[data-theme="rcsa-light"] .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }
[data-theme="rcsa-light"] .check-item.checked .custom-check { background: var(--accent); border-color: var(--accent); }
[data-theme="rcsa-light"] .add-player-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ─── RCSA Fun — maillot bleu nuit & or ─────────────── */
[data-theme="rcsa-fun"] {
  --bg: #001228;
  --surface: #001a3c;
  --surface2: #002050;
  --border: #1a3870;
  --accent: #e8c040;
  --accent2: #b89820;
  --accent-glow: rgba(232,192,64,0.12);
  --warn: #ff8040;
  --danger: #ff3060;
  --text: #dce8ff;
  --muted: #7090c0;
}
[data-theme="rcsa-fun"] header {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 18px,
      transparent 18px, transparent 36px
    ),
    linear-gradient(135deg, #001228 0%, #001f4a 100%);
  border-bottom: 2px solid #e8c040;
}
[data-theme="rcsa-fun"] .logo-pill { background: #e8c040; color: #001228; font-weight: 700; }
[data-theme="rcsa-fun"] nav {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 18px,
      transparent 18px, transparent 36px
    ),
    var(--surface2);
  border-bottom: 1px solid #e8c040;
}
[data-theme="rcsa-fun"] .nav-link.active { color: #e8c040; border-bottom-color: #e8c040; }
[data-theme="rcsa-fun"] .section-header:hover { background: #00297a; }
[data-theme="rcsa-fun"] .btn-primary { background: #e8c040; color: #001228; box-shadow: 0 0 20px rgba(232,192,64,0.25); }
[data-theme="rcsa-fun"] .btn-primary:hover { background: #f0d060; color: #001228; box-shadow: 0 0 28px rgba(232,192,64,0.4); }
[data-theme="rcsa-fun"] .btn-secondary:hover { border-color: #e8c040; color: #e8c040; }
[data-theme="rcsa-fun"] .dash-card:hover { border-color: #e8c040; }
[data-theme="rcsa-fun"] .dash-card-count { color: #e8c040; }
[data-theme="rcsa-fun"] .records-table tr:hover td { background: rgba(232,192,64,0.04); }
[data-theme="rcsa-fun"] .form-input:focus,
[data-theme="rcsa-fun"] .form-select:focus,
[data-theme="rcsa-fun"] .form-textarea:focus { border-color: #e8c040; }
[data-theme="rcsa-fun"] .check-item.checked .custom-check { background: #e8c040; border-color: #e8c040; }
[data-theme="rcsa-fun"] .check-item.checked .custom-check::after { color: #001228; }
[data-theme="rcsa-fun"] .section-card.complete { border-color: #b89820; }
[data-theme="rcsa-fun"] .add-player-btn:hover { border-color: #e8c040; color: #e8c040; background: rgba(232,192,64,0.08); }
[data-theme="rcsa-fun"] .toast { background: #002460; border-color: #e8c040; }
[data-theme="rcsa-fun"] .pill-done,
[data-theme="rcsa-fun"] .pill-resolved { color: #e8c040; border-color: #b89820; background: rgba(232,192,64,0.1); }
[data-theme="rcsa-fun"] .nav-badge { background: #e8c040; color: #001228; }
[data-theme="rcsa-fun"] .injury-suggest-item:hover { background: rgba(232,192,64,0.08); }
