:root {
  --ink: #23303a;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #2f6f6b;
  --accent-dark: #1f4f4c;
  --accent-light: #e6f0ef;
  --line: #dcd6cb;
  --danger: #b5473d;
  --danger-light: #fbe9e7;
  --good: #2f7a4f;
  --good-light: #e7f5ec;
  --muted: #7a7267;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(35, 48, 58, 0.07), 0 1px 2px rgba(35,48,58,0.08);
}

/* ---------- Mode sombre ---------- */
:root[data-theme="dark"] {
  --ink: #e8ebee;
  --paper: #171d22;
  --card: #1f272d;
  --accent: #4fb3ac;
  --accent-dark: #7fd0ca;
  --accent-light: #24393a;
  --line: #333d44;
  --danger: #e2695d;
  --danger-light: #3a2321;
  --good: #4fbf7e;
  --good-light: #1f3327;
  --muted: #97a0a7;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0,0,0,0.3);
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 10% 0%, #1c2a2a 0, transparent 45%),
    radial-gradient(circle at 90% 100%, #1a2224 0, transparent 45%);
}
:root[data-theme="dark"] .img-wrap { background: #10151a; }
:root[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.7); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

body {
  background-image:
    radial-gradient(circle at 10% 0%, #f1ece2 0, transparent 45%),
    radial-gradient(circle at 90% 100%, #eef2ee 0, transparent 45%);
  background-attachment: fixed;
}

.theme-toggle {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.06); }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; margin: 0 0 6px; color: var(--accent-dark); }

#app {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 60px;
  min-height: 100vh;
}

.loading { text-align:center; padding: 80px 0; color: var(--muted); font-size: 1.1em; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  font-family: Georgia, serif;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.2px;
  cursor: pointer;
}
.brand small { display:block; font-family: -apple-system, sans-serif; font-size: 0.4em; font-weight: 400; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92em;
  font-weight: 600;
}

/* ---------- Cards / choice grid ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid rgba(0,0,0,0.03);
}

.intro { text-align: center; padding: 10px 0 30px; }
.intro p { color: var(--muted); font-size: 1.05em; max-width: 560px; margin: 10px auto 0; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.choice-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.choice-card .icon { font-size: 2.4em; margin-bottom: 10px; display:block; }
.choice-card h3 { margin-bottom: 6px; }
.choice-card p { color: var(--muted); font-size: 0.92em; margin: 0; line-height: 1.4; }

.link-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 6px 18px; margin-top: 22px; }
.link-btn {
  background: none; border: none; color: var(--accent-dark);
  text-decoration: underline; cursor: pointer; font-size: 0.95em; padding: 4px;
}

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.cat-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cat-card:hover { border-color: var(--accent); background: var(--accent-light); }
.cat-card .cat-name { font-weight: 700; color: var(--ink); }
.cat-card .cat-count { color: var(--muted); font-size: 0.85em; }
.cat-all { border-color: var(--accent); background: var(--accent-light); }

.back-btn {
  background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; color: var(--ink); font-size: 0.9em;
  margin-bottom: 4px;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Quiz layout ---------- */
.quiz-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.score-badge {
  font-weight: 700; color: var(--accent-dark); background: var(--accent-light);
  border-radius: 999px; padding: 6px 16px; font-size: 0.95em;
}

.planche-title { font-size: 1.15em; margin-bottom: 2px; }
.planche-sub { color: var(--muted); font-size: 0.9em; margin-bottom: 16px; }

.img-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.img-wrap img { max-width: 100%; max-height: 620px; }

/* ---------- Zoom au survol (loupe automatique) ---------- */
.hover-zoom-wrap {
  cursor: zoom-in;
  /* isole la zone de zoom : l'image agrandie ne déborde jamais du cadre */
  position: relative;
}
.hover-zoom-img {
  transition: transform 0.12s ease-out;
  will-change: transform;
  transform-origin: center center;
}

.question-text { font-size: 1.08em; margin: 4px 0 18px; }
.question-text b { color: var(--accent-dark); }

.prop-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.prop {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 16px;
  cursor: pointer; transition: border-color 0.12s, background 0.12s;
  background: var(--card);
}
.prop:hover { border-color: var(--accent); }
.prop input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink:0; cursor:pointer; }
.prop label { cursor: pointer; flex: 1; }

/* Styles de correction pour le JS */
.prop.correct-prop, .prop.correct {
  border-color: var(--good) !important;
  background-color: var(--good-light) !important;
}
.prop.incorrect-prop, .prop.incorrect {
  border-color: var(--danger) !important;
  background-color: var(--danger-light) !important;
}

.prop .fix { font-size: 0.8em; color: var(--muted); text-decoration: underline; cursor: pointer; white-space: nowrap; margin-left: 8px; }

.nommer-input-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.nommer-input-row input[type=text] {
  flex: 1; min-width: 220px; padding: 12px 14px; font-size: 1.05em;
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
}
.nommer-input-row input[type=text]:focus { outline: none; border-color: var(--accent); }

.feedback-box { border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 1.02em; }
.feedback-box.correct { background: var(--good-light); color: var(--good); border: 1.5px solid var(--good); }
.feedback-box.incorrect { background: var(--danger-light); color: var(--danger); border: 1.5px solid var(--danger); }

.btn {
  background: var(--accent); color: white; border: none; border-radius: 10px;
  padding: 12px 26px; font-size: 1em; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #bcb9b2; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--accent-dark); border: 1.5px solid var(--accent); }
.btn.secondary:hover { background: var(--accent-light); }

.btn-row { display:flex; gap: 12px; flex-wrap: wrap; align-items:center; }

.small-note { color: var(--muted); font-size: 0.85em; margin-top: 6px; }

/* ---------- Browse / correction ---------- */
.browse-list { display:flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.browse-row {
  display:flex; justify-content: space-between; align-items:center;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; cursor:pointer;
  background: var(--card);
}
.browse-row:hover { border-color: var(--accent); }
.browse-row .num { color: var(--muted); font-size: 0.85em; }

.view-block { margin-bottom: 22px; }
.view-block h4 { color: var(--accent-dark); margin-bottom: 10px; }
.item-row { display:flex; align-items:center; gap: 10px; margin-bottom: 8px; }
.item-row .num-tag {
  background: var(--accent-light); color: var(--accent-dark); font-weight:700;
  border-radius: 6px; padding: 4px 10px; min-width: 28px; text-align:center; font-size: 0.9em;
}
.item-row input[type=text] {
  flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit;
}
.item-row input[type=text]:focus { outline: none; border-color: var(--accent); }
.saved-flash { color: var(--good); font-size: 0.85em; opacity: 0; transition: opacity 0.3s; }
.saved-flash.show { opacity: 1; }

footer.appfoot { text-align:center; color: var(--muted); font-size: 0.8em; margin-top: 40px; }

@media (max-width: 600px) {
  #app { padding: 16px 10px 40px; }
  .card { padding: 18px; }
}
/* ---------- Modales (remplacent prompt / alert / confirm) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(35, 48, 58, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.modal-box {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; width: 100%; max-width: 420px;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-msg { color: var(--ink); margin: 0 0 16px; line-height: 1.45; }
.modal-fields { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.modal-field-label { font-size: 0.85em; color: var(--muted); margin-top: 12px; }
.modal-field-label:first-child { margin-top: 0; }
.modal-input {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1em; margin-top: 4px;
}
.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-error { color: var(--danger); font-size: 0.9em; margin: 10px 0 0; }

/* ---------- Lightbox / zoom sur les planches ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 24, 0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100; overflow: hidden;
}
.lightbox-close {
  position: absolute; top: 14px; right: 18px; background: rgba(255,255,255,0.12);
  border: none; color: #fff; font-size: 1.4em; width: 40px; height: 40px;
  border-radius: 999px; cursor: pointer; line-height: 1;
}
.lightbox-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.65); font-size: 0.82em; text-align: center; padding: 0 16px;
}
.lightbox-stage {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: grab; touch-action: none;
}
.lightbox-stage img { max-width: 92%; max-height: 88vh; user-select: none; }

/* ---------- Statistiques ---------- */
.stats-table { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.stats-row { display: flex; align-items: center; gap: 12px; }
.stats-name { flex: 0 0 220px; font-size: 0.92em; }
.stats-bar-wrap { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.stats-bar { height: 100%; border-radius: 999px; }
.stats-pct { flex: 0 0 46px; text-align: right; font-weight: 700; font-size: 0.9em; }
.stats-weak.stats-bar { background: var(--danger); }
.stats-weak.stats-pct { color: var(--danger); }
.stats-medium.stats-bar { background: #c98a2e; }
.stats-medium.stats-pct { color: #c98a2e; }
.stats-good.stats-bar { background: var(--good); }
.stats-good.stats-pct { color: var(--good); }
.stats-none.stats-bar { background: var(--line); }
.stats-none.stats-pct { color: var(--muted); }

/* ---------- Étude (planches vierges) ---------- */
.etude-item-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.etude-item {
  display: flex; align-items: center; gap: 6px; border: 1.5px solid var(--line);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; background: var(--card);
  transition: border-color 0.12s, background 0.12s;
}
.etude-item:hover { border-color: var(--accent); }
.etude-item.revealed { border-color: var(--accent); background: var(--accent-light); }
.etude-item .etude-name { font-size: 0.92em; }
.etude-item:not(.revealed) .etude-name { color: var(--muted); font-weight: 700; }

@media (max-width: 600px) {
  .stats-name { flex-basis: 140px; }
  .modal-box { padding: 18px; }
}

/* ---------- Badge de série (streak) ---------- */
.streak-badge {
  background: var(--danger-light);
  color: #c9622c;
}
:root[data-theme="dark"] .streak-badge { color: #f0a15c; }

/* ---------- Toast de badge débloqué ---------- */
.badge-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1300;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: 280px;
}
.badge-toast.show { transform: translateY(0); opacity: 1; }
.badge-toast-icon { font-size: 1.9em; line-height: 1; }
@media (max-width: 600px) {
  .badge-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---------- Grille de badges ---------- */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.badge-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: var(--card);
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
.badge-card.unlocked {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  background: var(--accent-light);
}
.badge-card .badge-icon { font-size: 1.8em; display: block; margin-bottom: 6px; }
.badge-card .badge-title { font-weight: 700; font-size: 0.92em; color: var(--ink); }
.badge-card .badge-desc { color: var(--muted); font-size: 0.76em; margin-top: 4px; line-height: 1.3; }

/* ---------- Graphique de progression ---------- */
.progress-chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 140px;
  padding: 12px 8px 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-top: 12px;
}
.progress-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 26px;
  height: 100%;
  flex-shrink: 0;
}
.progress-bar {
  width: 14px;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.progress-bar.stats-weak { background: var(--danger); }
.progress-bar.stats-medium { background: #c98a2e; }
.progress-bar.stats-good { background: var(--good); }
.progress-bar.stats-none { background: var(--line); }
.progress-date {
  font-size: 0.62em;
  color: var(--muted);
  margin-top: 5px;
  white-space: nowrap;
}
.chart-range-btn.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Minuteur du mode examen ---------- */
.exam-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.exam-timer-track {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.exam-timer-bar {
  height: 100%;
  background: var(--good);
  transition: width 1s linear, background 0.3s ease;
}
.exam-timer-badge {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--ink);
  min-width: 52px;
  text-align: right;
}

/* ---------- Mode focus (plein écran allégé) ---------- */
#app.focus-mode .topbar,
#app.focus-mode .quiz-header { display: none; }
#app.focus-mode .card { padding: 12px; }
#app.focus-mode .img-wrap { padding: 4px; margin-bottom: 14px; }
#app.focus-mode .img-wrap img { max-height: 78vh; }
#app.focus-mode { padding-top: 8px; }

.focus-toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  gap: 6px;
}
.focus-toggle-btn:hover { background: var(--accent-dark); }
@media (max-width: 600px) {
  .focus-toggle-btn { left: 12px; bottom: 12px; padding: 9px 14px; font-size: 0.85em; }
}

/* ---------- Bannière de rappel de sauvegarde ---------- */
.backup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 0.92em;
}
@media (max-width: 600px) {
  .backup-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Export PDF / impression ---------- */
#printArea { display: none; }
@media print {
  body * { visibility: hidden; }
  #printArea, #printArea * { visibility: visible; }
  #printArea {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .print-page { page-break-after: always; padding: 24px; }
  .print-page:last-child { page-break-after: auto; }
  .print-page h2 { margin-bottom: 2px; }
  .print-cat { color: #555; font-size: 0.9em; margin-bottom: 12px; }
  .print-page img { max-width: 100%; max-height: 65vh; display: block; margin: 12px auto; }
  .print-view { margin-top: 12px; }
  .print-view h4 { margin: 8px 0 4px; }
  .print-view ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
  .print-view li { break-inside: avoid; margin-bottom: 2px; }
}

/* ==========================================================
   Sidebar de navigation (icônes) + bannière d'accueil
   ========================================================== */
#shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.sidebar {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 0 20px;
  background: var(--card);
  border-right: 1px solid var(--line);
}

.sidebar-logo {
  font-size: 1.6em;
  margin-bottom: 14px;
  line-height: 1;
}

.sidebar-btn {
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sidebar-icon { font-size: 1.25em; line-height: 1; }
.sidebar-spacer { flex: 1; }
.sidebar-btn:hover { background: var(--accent-light); color: var(--accent-dark); transform: translateY(-1px); }
.sidebar-btn.active { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .sidebar-btn.active { color: #0e1a19; }

@media (max-width: 680px) {
  #shell { display: block; }
  .sidebar { display: none; }
}

/* ---------- Bannière d'accueil ---------- */
.home-hero {
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}
.home-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}
.home-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: 2em;
  margin: 0 0 4px;
}
.home-hero .hero-date {
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  font-size: 0.95em;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-pill:hover { background: rgba(255,255,255,0.24); }
.hero-pill.streak { background: rgba(255,255,255,0.1); cursor: default; }

/* ---------- Accès rapide (cards façon dashboard) ---------- */
.quick-title { margin: 6px 0 14px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.quick-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.quick-card .icon { font-size: 2em; margin-bottom: 8px; display: block; }
.quick-card h3 { color: var(--accent); font-size: 1.05em; margin: 0 0 4px; font-family: -apple-system, sans-serif; }
.quick-card p { color: var(--muted); font-size: 0.85em; margin: 0; }

/* ---------- Classement général ---------- */
.leaderboard-row { gap: 12px; }
.leaderboard-rank { width: 34px; text-align: center; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.leaderboard-me { background: var(--accent-light); border-radius: 10px; }
