@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ===== Charte sobre — ardoise + accent bleu nuit (clair par défaut) ===== */
  --bg: #f5f7f9;
  --bg-card: #ffffff;
  --bg-card-hover: #eef1f5;
  --bg-2: #eef1f5;
  --text: #1b2330;
  --text-muted: #64718a;
  --faint: #9aa5b5;
  --accent: #2f4b70;
  --accent-hover: #26405f;
  --accent-fg: #ffffff;
  --accent-weak: #e8edf4;
  --border: #e2e6ec;
  --success: #2e8b63;
  --warning: #b5842c;
  --crit: #c04a44;
  --info: #3a6ea5;
  --z1:#3a6ea5; --z2:#2e8b63; --z3:#6f8f3c; --z4:#b5842c; --z5:#c0773a; --z6:#c04a44;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(18,28,45,.05), 0 2px 8px rgba(18,28,45,.04);
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
/* ===== THÈME SOMBRE — activé via [data-theme="dark"] sur <html>, + auto selon l'OS ===== */
:root[data-theme="dark"] {
  --bg: #0d1119;
  --bg-card: #151b27;
  --bg-card-hover: #1a2231;
  --bg-2: #1a2231;
  --text: #e6ecf4;
  --text-muted: #95a2b5;
  --faint: #5e6b7e;
  --accent: #5d82ad;
  --accent-hover: #6f93bd;
  --accent-fg: #0d1119;
  --accent-weak: #1a2535;
  --border: #273243;
  --success: #49a87a;
  --warning: #cc9a46;
  --crit: #d1645e;
  --info: #5f8dc0;
  --z1:#5f8dc0; --z2:#49a87a; --z3:#8aa857; --z4:#cc9a46; --z5:#d1904f; --z6:#d1645e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1119;
    --bg-card: #151b27;
    --bg-card-hover: #1a2231;
    --bg-2: #1a2231;
    --text: #e6ecf4;
    --text-muted: #95a2b5;
    --faint: #5e6b7e;
    --accent: #5d82ad;
    --accent-hover: #6f93bd;
    --accent-fg: #0d1119;
    --accent-weak: #1a2535;
    --border: #273243;
    --success: #49a87a;
    --warning: #cc9a46;
    --crit: #d1645e;
    --info: #5f8dc0;
    --z1:#5f8dc0; --z2:#49a87a; --z3:#8aa857; --z4:#cc9a46; --z5:#d1904f; --z6:#d1645e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title, .goal-name, .plan-focus {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* chiffres / mesures en mono "instrument" */
.stat-value, .week-suffer {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
/* icônes SVG au trait (remplacent les emoji) */
svg.ic { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.15em; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

h1 {
  margin: 0;
  font-size: 1.8em;
}

h1 .logo {
  font-size: 1.4em;
  margin-right: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  border-radius: 9px;
  font-weight: 600;
  transition: background .15s, border-color .15s;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-size: .92rem;
  font-family: var(--font-body);
}
.btn svg.ic { width: 15px; height: 15px; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--faint); }

.hero {
  text-align: center;
  padding: 60px 0;
}
.hero h2 {
  font-size: 2.5em;
  margin: 0 0 20px;
}
.hero p {
  font-size: 1.2em;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.activity {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border 0.2s;
}
.activity:hover { border-color: var(--accent); }

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-title {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0;
}
.activity-date {
  color: var(--text-muted);
  font-size: 0.9em;
}

.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 10px 6px;
  border-radius: 9px;
  text-align: center;
}
.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.stat-label {
  font-size: 0.8em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analysis {
  margin-top: 4px;
  font-size: .9rem;
  line-height: 1.6;
}
.analysis h2, .analysis h3 {
  font-size: .84rem;
  font-weight: 600;
  margin: 14px 0 4px;
  color: var(--accent);
}
.analysis h2:first-child, .analysis h3:first-child { margin-top: 0; }
.analysis p { margin: 6px 0; }
.analysis ul { padding-left: 18px; margin: 4px 0 8px; }
.analysis li { margin: 2px 0; }
.analysis strong { color: var(--text); }

.no-analysis {
  color: var(--text-muted);
  font-style: italic;
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 10px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1em;
}

.flash {
  background: var(--success);
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
/* === Section titles === */
.section-title {
  margin: 40px 0 16px;
  font-size: 1.3em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* === Weekly load === */
.weekly-block { margin-bottom: 30px; }
.weeks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.week-blue   { border-left-color: #3b82f6; }
.week-green  { border-left-color: #22c55e; }
.week-orange { border-left-color: #f59e0b; }
.week-red    { border-left-color: #ef4444; }

.week-dates {
  color: var(--text-muted);
  font-size: 0.8em;
  margin-bottom: 8px;
}
.week-suffer {
  font-size: 2em;
  font-weight: 700;
  color: var(--text);
}
.week-label {
  font-size: 0.75em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.week-meta {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.week-classif {
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 6px;
}
.week-blue   .week-classif { color: #60a5fa; }
.week-green  .week-classif { color: #4ade80; }
.week-orange .week-classif { color: #fbbf24; }
.week-red    .week-classif { color: #f87171; }

/* === Badges === */
.badge {
  display: inline-block;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.badge-pr {
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* === Zones FC === */
.hr-zones {
  margin: 16px 0;
}
.hr-zones-label {
  font-size: 0.85em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hr-zones-bar {
  display: flex;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.hr-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  transition: filter 0.15s;
}
.hr-zone:hover { filter: brightness(1.2); cursor: help; }
.hr-zone-1 { background: #3b82f6; }
.hr-zone-2 { background: #22c55e; }
.hr-zone-3 { background: #eab308; }
.hr-zone-4 { background: #f97316; }
.hr-zone-5 { background: #ef4444; }

/* === Notes Strava === */
.activity-note {
  background: rgba(252, 76, 2, 0.1);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-style: italic;
  color: var(--text-muted);
}
/* === Goals === */
.goal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.goal-priority-A { border-left-color: var(--accent); }
.goal-priority-B { border-left-color: #eab308; }
.goal-priority-C { border-left-color: var(--text-muted); }

.goal-status-achieved { opacity: 0.65; }
.goal-status-abandoned { opacity: 0.5; }

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.goal-priority {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.goal-badge {
  display: inline-block;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}
.goal-badge-done { background: var(--success); color: white; }
.goal-badge-aban { background: var(--text-muted); color: white; }

.goal-countdown {
  font-size: 1.1em;
}

.goal-name {
  font-size: 1.3em;
  margin: 4px 0 12px;
}
.goal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.goal-notes {
  font-style: italic;
  color: var(--text-muted);
  margin: 10px 0;
}
.goal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85em;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.4); }

.add-goal-block {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-top: 30px;
}
.add-goal-block h3 {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  resize: vertical;
}
/* === Équipement === */
.equip-group {
  margin-bottom: 20px;
}
.equip-group-title {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.equip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: border 0.15s, background 0.15s;
}
.equip-item:hover {
  border-color: var(--accent);
}
.equip-item.equip-checked {
  background: rgba(252, 76, 2, 0.1);
  border-color: var(--accent);
}
.equip-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
.equip-item span {
  font-size: 0.95em;
}
/* === Plan : contexte === */
.muted { color: var(--text-muted); }
.context-block { margin-bottom: 30px; }
.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.context-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.context-card h4 {
  margin: 0 0 8px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.ctx-item { font-size: 0.9em; margin-bottom: 4px; }
.badge-mini {
  display: inline-block;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}
.badge-blue { background:#3b82f6; color:white; }
.badge-green { background:#22c55e; color:white; }
.badge-orange { background:#f59e0b; color:white; }
.badge-red { background:#ef4444; color:white; }

/* === Days grid === */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  transition: border 0.15s, background 0.15s;
}
.day-card.day-active {
  border-color: var(--accent);
  background: rgba(252, 76, 2, 0.05);
}
.day-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}
.day-toggle input { accent-color: var(--accent); }
.day-name { font-size: 1em; }
.day-details { margin-top: 12px; }
.day-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.85em;
}
.day-row label { color: var(--text-muted); }
.day-row select {
  padding: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9em;
}

/* === Plan : affichage === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.plan-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.plan-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.85em;
  flex-wrap: wrap;
  gap: 4px;
}
.plan-focus {
  margin: 12px 0;
  font-size: 1.3em;
  color: var(--accent);
}
.plan-rationale summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
}
.plan-rationale p {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-muted);
}

.planned-day {
  margin-bottom: 18px;
}
.planned-day-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.planned-day-header h3 {
  margin: 0;
  font-size: 1.05em;
}
.planned-session {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
}
.planned-session-empty {
  text-align: center;
  padding: 10px;
  border-style: dashed;
}
.planned-session-done { border-left: 3px solid var(--success); }
.planned-session-skipped { border-left: 3px solid #ef4444; opacity: 0.6; }
.planned-session-partial { border-left: 3px solid #f59e0b; }
.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.ps-type {
  font-size: 0.75em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ps-title {
  margin: 4px 0 0;
  font-size: 1.05em;
}
.ps-meta { font-size: 0.85em; }
.ps-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  margin-left: 8px;
}
.ps-status-done { background: rgba(34,197,94,0.2); color: #4ade80; }
.ps-status-skipped { background: rgba(239,68,68,0.2); color: #f87171; }
.ps-status-partial { background: rgba(245,158,11,0.2); color: #fbbf24; }
.ps-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}
.ps-target {
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
}
.ps-objective {
  color: var(--text-muted);
  margin: 8px 0;
}
.ps-instructions summary {
  cursor: pointer;
  font-size: 0.9em;
  color: var(--accent);
  user-select: none;
}
.ps-instructions-body {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  font-size: 0.9em;
}
.ps-equip, .ps-linked {
  font-size: 0.85em;
  margin-top: 8px;
}

/* === Historique plans === */
.hist-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.hist-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.hist-header h3 { margin: 0; font-size: 1.05em; }
.hist-focus { color: var(--accent); font-size: 0.9em; margin: 4px 0 10px; }
.hist-sessions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hist-session {
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
}
/* === Week nav === */
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  gap: 12px;
}
.week-nav-center {
  text-align: center;
  flex: 1;
}
@media (max-width: 600px) {
  .week-nav { flex-wrap: wrap; }
  .week-nav-center { width: 100%; order: -1; margin-bottom: 8px; }
}
.ps-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ps-linked-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.link-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.link-form select {
  flex: 1;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9em;
  min-width: 200px;
}
.ps-status-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
/* === Debrief === */
.rpe-display {
  text-align: center;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.debrief-block {
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.activity-debrief-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}
.debrief-summary {
  font-size: 0.9em;
  color: var(--text-muted);
  flex: 1;
}
/* === Debrief dans séance planifiée === */
.ps-debrief {
  background: rgba(252, 76, 2, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px;
  margin: 12px 0;
}
.ps-debrief-header {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.ps-debrief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.ps-debrief-item {
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 4px;
}
.ps-debrief-label {
  display: block;
  font-size: 0.75em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ps-debrief-value {
  display: block;
  font-weight: 600;
  margin-top: 2px;
}
.ps-debrief-pain { border-left: 3px solid #ef4444; }
.ps-debrief-cond { border-left: 3px solid #f59e0b; }
.ps-debrief-comment {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95em;
}
.ps-debrief-empty {
  margin: 10px 0;
}
/* === Invitations admin === */
.invitation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.invitation-card.inv-active { border-left-color: var(--success); }
.invitation-card.inv-used { border-left-color: var(--text-muted); opacity: 0.65; }
.invitation-card.inv-expired { border-left-color: var(--warning); opacity: 0.5; }
.invitation-card.inv-revoked { border-left-color: #ef4444; opacity: 0.5; }

.invitation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.inv-status {
  margin-left: 10px;
  font-size: 0.85em;
  color: var(--text-muted);
}
.invitation-url {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
  align-items: center;
}
.invitation-link {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
  cursor: pointer;
  min-width: 280px;
}
/* === Admin users === */
.user-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.user-card.user-admin {
  border-left-color: var(--accent);
}
.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.user-card-meta code {
  background: rgba(0,0,0,0.2);
  padding: 1px 6px;
  border-radius: 4px;
}
/* === Zones d'allure (Phase B) === */
.pace-zones-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.pace-zone-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.pace-zone-row:last-child { border-bottom: none; }
.pace-zone-key { font-weight: 700; color: var(--accent); }
.pace-zone-name { color: var(--text); }
.pace-zone-range { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.pace-mode-tabs { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.pace-mode-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.pace-form { margin-bottom: 8px; }

/* === Répartition zones d'allure (débrief) === */
.pace-dist { margin-top: 12px; }
.pace-dist-label { font-size: 0.85em; margin-bottom: 6px; }
.pace-dist-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-card); }
.pace-dist-seg { height: 100%; }
.pace-dist-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.8em; color: var(--text-muted); }
.pace-dist-leg-item { display: inline-flex; align-items: center; gap: 5px; }
.pace-dist-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* === Barre de navigation unifiée === */
.topnav { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0; margin-bottom:22px; border-bottom:1px solid var(--border); }
.topnav-brand { display:inline-flex; align-items:center; gap:8px; font-size:.82rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text); text-decoration:none; }
.topnav-brand svg.ic { width:18px; height:18px; color:var(--accent); }
.topnav-links { display:flex; align-items:center; gap:2px; flex-wrap:wrap; margin-left:auto; }
.topnav-links a { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:8px; color:var(--text-muted); text-decoration:none; font-size:.86rem; font-weight:500; }
.topnav-links a svg.ic { width:15px; height:15px; }
.topnav-links a:hover { background:var(--bg-2); color:var(--text); }
.topnav-links a.active { background:var(--accent-weak); color:var(--accent); font-weight:600; }
.topnav-logout { display:inline-flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer; padding:6px 11px; border-radius:8px; color:var(--faint); font-size:.86rem; font-family:inherit; }
.topnav-logout svg.ic { width:15px; height:15px; }
.topnav-logout:hover { background:var(--bg-2); color:var(--text); }

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}
.theme-toggle svg.ic { width: 16px; height: 16px; }
.theme-toggle:hover { background: var(--bg-card-hover); color: var(--text); }
/* ============================================================
   === Refonte dashboard : cartes cliquables + page détail ===
   ============================================================ */

/* --- Carte activité cliquable (dashboard) --- */
.activity-card-link { display: block; text-decoration: none; color: inherit; }
.activity-card-link + .activity-card-link { margin-top: 0; }
.activity-card {
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  cursor: pointer;
}
.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: var(--accent, #2563eb);
}
.activity-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border, #e2e8f0);
  font-size: 0.86em;
}
.activity-card-foot .card-status { color: var(--text-muted, #64748b); }
.activity-card-foot .card-cta { color: var(--accent, #2563eb); font-weight: 600; white-space: nowrap; }

/* --- Page détail --- */
.back-link {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px;
  color: var(--text-muted); text-decoration: none; font-size: .86rem;
}
.back-link svg.ic { width: 15px; height: 15px; }
.back-link:hover { color: var(--accent); }

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.detail-card h3 { margin: 0 0 12px; font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.detail-card h3 svg.ic { width: 16px; height: 16px; color: var(--accent); }
.detail-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.detail-card-head h3 { margin: 0; }

/* Bloc "lié au plan" */
.linked { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--text-muted); background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 11px; margin-top: 10px; }
.linked svg.ic { width: 15px; height: 15px; color: var(--accent); }
.linked b { color: var(--text); font-weight: 600; }

/* --- Sélecteur de métrique (segmented control) --- */
.metric-switch { display: inline-flex; gap: 2px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.metric-btn {
  border: none; background: none;
  color: var(--text-muted);
  padding: 5px 12px; border-radius: 7px; font-size: .8rem; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: background .12s, color .12s;
}
.metric-btn:hover { color: var(--text); }
.metric-btn.active {
  background: var(--accent); color: var(--accent-fg);
}

/* --- Conteneur graphe --- */
.chart-wrap { position: relative; height: 300px; width: 100%; margin-top: 8px; }

/* --- Table splits --- */
.splits-table-wrap { overflow-x: auto; }
.splits-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.splits-table th, .splits-table td { padding: 7px 10px; text-align: left; }
.splits-table thead th {
  font-size: 0.78em; text-transform: uppercase; letter-spacing: .03em;
  color: var(--text-muted, #64748b); border-bottom: 1px solid var(--border, #e2e8f0);
}
.splits-table tbody tr { border-bottom: 1px solid var(--border, #eef2f6); }
.splits-table .split-km { font-weight: 700; color: var(--text-muted, #64748b); width: 40px; }
.splits-table .split-vap { color: var(--text-muted, #64748b); }
.splits-table .split-bar-cell { width: 34%; }
.split-bar {
  display: inline-block; height: 7px; border-radius: 4px;
  background: var(--accent, #2563eb);
}

/* --- Distributions en lignes (Zx) --- */
.zone-rows { display: flex; flex-direction: column; gap: 8px; }
.zone-row { display: flex; align-items: center; gap: 10px; font-size: 0.88em; }
.zone-chip {
  flex: none; width: 32px; text-align: center; color: #fff;
  font-weight: 700; font-size: 0.78em; padding: 3px 0; border-radius: 6px;
}
.zone-name { flex: none; width: 96px; color: var(--text-muted, #64748b); }
.zone-row-track {
  flex: 1; height: 10px; background: var(--bg, #f1f5f9);
  border-radius: 6px; overflow: hidden;
}
.zone-row-fill { display: block; height: 100%; border-radius: 6px; }
.zone-val { flex: none; white-space: nowrap; text-align: right; min-width: 96px; }
@media (max-width: 520px) {
  .zone-name { width: 70px; font-size: 0.92em; }
  .zone-val { min-width: 80px; }
}

/* --- Distributions (allure / FC) --- */
.zone-bar {
  display: flex; width: 100%; height: 26px; border-radius: 7px;
  overflow: hidden; margin-bottom: 12px; background: var(--bg, #f1f5f9);
}
.zone-seg {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.72em; font-weight: 700; min-width: 0;
}
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86em; }
.zone-leg { display: inline-flex; align-items: center; gap: 6px; }
.zone-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }

/* couleurs zones FC (réutilisées dans la barre + les pastilles) */
.hr-zone-1 { background: #3b82f6; }
.hr-zone-2 { background: #22c55e; }
.hr-zone-3 { background: #eab308; }
.hr-zone-4 { background: #f97316; }
.hr-zone-5 { background: #ef4444; }

/* --- Récap débrief --- */
.debrief-recap { margin: 0; padding-left: 18px; }
.debrief-recap li { margin: 4px 0; }

/* ============================================================
   === Refonte Plan : cartes séances compactes + détail replié ===
   ============================================================ */

/* Bloc "réalisé" cliquable (séance liée à une activité) */
.ps-realized {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0; padding: 8px 12px; border-radius: 8px;
  background: var(--bg, #f1f5f9); border: 1px solid var(--border, #e2e8f0);
  text-decoration: none; color: inherit; transition: border-color .12s ease;
}
.ps-realized:hover { border-color: var(--accent, #2563eb); }
.ps-realized-label { font-weight: 700; color: #16a34a; }
.ps-realized-stats { font-weight: 600; }
.ps-realized-cta { margin-left: auto; color: var(--accent, #2563eb); font-size: 0.85em; font-weight: 600; white-space: nowrap; }

/* Détail repliable */
.ps-detail { margin-top: 10px; }
.ps-detail > summary {
  cursor: pointer; font-size: 0.85em; color: var(--text-muted, #64748b);
  padding: 4px 0; list-style: none; user-select: none;
}
.ps-detail > summary::-webkit-details-marker { display: none; }
.ps-detail > summary::before { content: '▸ '; }
.ps-detail[open] > summary::before { content: '▾ '; }
.ps-detail > summary:hover { color: var(--accent, #2563eb); }

/* Consignes rendues en markdown (fini le ## ** brut sur fond gris) */
.ps-instructions-body.markdown {
  font-size: 0.9em; line-height: 1.55; margin-top: 10px;
  padding: 12px 14px; background: var(--bg, #f8fafc);
  border-radius: 8px; border: 1px solid var(--border, #eef2f6);
}
.ps-instructions-body.markdown h1,
.ps-instructions-body.markdown h2 { font-size: 0.95em; margin: 12px 0 4px; color: var(--accent, #2563eb); }
.ps-instructions-body.markdown h3 { font-size: 0.9em; margin: 10px 0 4px; }
.ps-instructions-body.markdown h2:first-child,
.ps-instructions-body.markdown h3:first-child { margin-top: 0; }
.ps-instructions-body.markdown p { margin: 6px 0; }
.ps-instructions-body.markdown ul,
.ps-instructions-body.markdown ol { margin: 4px 0 8px; padding-left: 20px; }
.ps-instructions-body.markdown li { margin: 2px 0; }
.ps-instructions-body.markdown strong { font-weight: 700; }

/* Pastilles de statut (libellés clairs) */
.ps-status { font-size: 0.78em; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ps-status-done { background: rgba(34,197,94,0.15); color: #16a34a; }
.ps-status-skipped { background: rgba(239,68,68,0.15); color: #dc2626; }
.ps-status-partial { background: rgba(234,179,8,0.18); color: #b45309; }

.ps-status-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }

/* ============================================================
   === Passe responsive mobile (≤600px) — desktop inchangé ===
   ============================================================ */
@media (max-width: 600px) {
  .container { padding-left: 14px; padding-right: 14px; }

  /* Nav compacte : petites pastilles au lieu de gros blocs */
  .topnav { gap: 8px; padding: 10px 0; margin-bottom: 14px; }
  .topnav-brand { font-size: 1.05em; }
  .topnav-links { gap: 4px; }
  .topnav-links a, .topnav-logout { padding: 5px 9px; font-size: 0.76em; border-radius: 6px; }

  /* Titres de section plus serrés */
  .section-title { margin: 22px 0 12px; font-size: 1.1em; }

  /* Charge des 4 dernières semaines : cartes 2 par ligne, chiffres réduits */
  .weeks-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .week-card { padding: 10px 8px; }
  .week-suffer { font-size: 1.4em; }
  .week-dates { font-size: 0.66em; margin-bottom: 4px; }
  .week-label { font-size: 0.6em; margin-bottom: 4px; }
  .week-meta, .week-classif { font-size: 0.72em; }
  .week-classif { margin-top: 4px; }

  /* Tuiles d'activité : 3 par ligne, compactes */
  .activity-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
  .stat { padding: 8px 4px; border-radius: 8px; }
  .stat-value { font-size: 1.05em; }
  .stat-label { font-size: 0.6em; letter-spacing: 0.3px; }
  .activity-title { font-size: 1.05em; }

  /* Boutons d'action un peu plus serrés */
  .actions { gap: 8px; margin-bottom: 18px; }

  /* Détail activité */
  .detail-card { padding: 14px; }
  .chart-wrap { height: 250px; }
  .detail-card-head h3, .detail-card h3 { font-size: 1em; }
  .metric-btn { padding: 5px 10px; font-size: 0.78em; }
  .splits-table th, .splits-table td { padding: 6px 7px; }
  .zone-name { width: 64px; }
  .zone-val { min-width: 76px; font-size: 0.95em; }
}

/* ============================================================
   === Charte sobre — composants Dashboard (chunk 1) ===
   ============================================================ */
.muted { color: var(--text-muted); }

/* Eyebrow de section (remplace les gros titres emoji) */
.eyebrow { display:flex; align-items:center; gap:8px; font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin:30px 0 12px; }
.eyebrow svg.ic { width:15px; height:15px; color:var(--accent); }

/* Charge hebdo — timeline compacte */
.load { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.load-row { display:flex; align-items:center; gap:12px; padding:10px 14px; border-top:1px solid var(--border); }
.load-row:first-child { border-top:none; }
.load-wk { min-width:116px; flex:none; }
.load-wk .d { font-family:var(--mono); font-size:.76rem; font-weight:500; }
.load-wk .v { font-size:.68rem; color:var(--text-muted); margin-top:1px; }
.load-bar { flex:1; min-width:36px; height:6px; border-radius:3px; background:var(--bg-2); overflow:hidden; }
.load-bar i { display:block; height:100%; border-radius:3px; background:var(--k,var(--faint)); }
.load-eff { font-family:var(--mono); font-weight:600; font-size:.86rem; min-width:30px; text-align:right; font-variant-numeric:tabular-nums; }
.load-tag { display:inline-flex; align-items:center; gap:6px; font-size:.76rem; font-weight:600; color:var(--k); min-width:82px; }
.load-tag .pt { width:7px; height:7px; border-radius:50%; background:var(--k); flex:none; }
.k-good { --k:var(--success); } .k-info { --k:var(--info); } .k-warn { --k:var(--warning); } .k-crit { --k:var(--crit); }

.dash-meta { color:var(--text-muted); font-size:.9rem; margin:16px 0 0; }

/* Actions */
.actions { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 0; }
.actions form { margin:0; }

/* Cartes activité (dashboard) */
.acts { display:flex; flex-direction:column; gap:12px; }
.activity-card { position:relative; padding:16px 18px; border-radius:var(--radius); }
.activity-card-main { display:block; text-decoration:none; color:inherit; }
.activity-card .activity-header { padding-right:30px; margin-bottom:14px; }
.act-del-form { position:absolute; top:14px; right:14px; z-index:3; margin:0; }
.act-del { display:inline-flex; align-items:center; justify-content:center; background:none; border:none; cursor:pointer; color:var(--faint); padding:4px; border-radius:7px; }
.act-del svg.ic { width:15px; height:15px; }
.act-del:hover { color:var(--crit); background:color-mix(in srgb, var(--crit) 12%, transparent); }

.card-status { display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; color:var(--text-muted); font-size:.84rem; }
.card-status .cs-ok { display:inline-flex; align-items:center; gap:5px; color:var(--success); font-weight:600; }
.card-status .cs-todo { display:inline-flex; align-items:center; gap:5px; color:var(--warning); font-weight:600; }
.card-status .cs-ok svg.ic { width:14px; height:14px; }
.card-status .cs-todo svg.ic { width:13px; height:13px; }
.card-status .cs-ana { color:var(--faint); }
.card-cta { display:inline-flex; align-items:center; gap:4px; color:var(--accent); font-weight:600; font-size:.84rem; white-space:nowrap; }
.card-cta svg.ic { width:14px; height:14px; }

@media (max-width:560px){
  .load-wk { min-width:92px; }
  .load-tag span:last-child { display:none; } .load-tag { min-width:0; }
}

/* Splits : chiffres en mono */
.splits-table td { font-variant-numeric: tabular-nums; }
.splits-table .split-km, .splits-table .split-pace, .splits-table .split-vap, .splits-table .split-elev { font-family: var(--mono); }
.splits-table .split-km { color: var(--text-muted); }

/* Plan : pastille de type + réalisé */
.ps-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:3px; vertical-align:1px; }
.ps-realized-label svg.ic { width:14px; height:14px; }
.ps-type { text-transform:capitalize; }

/* Bandeau incitation profil (dashboard) */
.profile-nudge { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; text-decoration:none; color:inherit; background:var(--accent-weak); border:1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius:var(--radius); padding:13px 16px; margin-bottom:18px; }
.profile-nudge:hover { border-color:var(--accent); }
.profile-nudge .pn-text { display:flex; flex-direction:column; gap:1px; }
.profile-nudge .pn-text strong { font-size:.95rem; }
.profile-nudge .pn-text .muted { font-size:.82rem; }
.profile-nudge .pn-cta { display:inline-flex; align-items:center; gap:4px; color:var(--accent); font-weight:600; font-size:.86rem; white-space:nowrap; }
.profile-nudge .pn-cta svg.ic { width:14px; height:14px; }

/* ============================================================
   === Objectifs : liste compacte + popup ===
   ============================================================ */
.goals-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:26px 0 12px; flex-wrap:wrap; }

.goal-list { display:flex; flex-direction:column; gap:8px; }
.goal-row { display:flex; align-items:center; gap:12px; background:var(--bg-card); border:1px solid var(--border); border-left:3px solid var(--faint); border-radius:var(--radius); padding:11px 14px; box-shadow:var(--shadow); }
.goal-row.goal-priority-A { border-left-color:var(--accent); }
.goal-row.goal-priority-B { border-left-color:var(--info); }
.goal-row.goal-done { opacity:.72; }
.gr-prio { flex:none; width:24px; height:24px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-weight:600; font-size:.8rem; background:var(--bg-2); color:var(--text-muted); }
.gr-prio-A { background:var(--accent-weak); color:var(--accent); }
.gr-main { flex:1; min-width:0; }
.gr-main strong { display:block; font-size:.95rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gr-sub { font-size:.8rem; color:var(--text-muted); }
.gr-late { color:var(--warning); font-weight:600; }
.gr-badge { flex:none; font-size:.68rem; font-weight:700; padding:3px 8px; border-radius:999px; text-transform:uppercase; letter-spacing:.03em; }
.gr-badge-achieved { background:color-mix(in srgb,var(--success) 16%,transparent); color:var(--success); }
.gr-badge-abandoned { background:var(--bg-2); color:var(--text-muted); }
.goal-row .btn-sm svg.ic { margin:0; }

.goals-done { margin-top:12px; }
.goals-done > summary { cursor:pointer; font-size:.85rem; color:var(--text-muted); padding:6px 0; list-style:none; }
.goals-done > summary::-webkit-details-marker { display:none; }
.goals-done > summary::before { content:'▸ '; }
.goals-done[open] > summary::before { content:'▾ '; }
.goals-done > summary:hover { color:var(--accent); }

/* Popup / modale */
.modal-overlay { position:fixed; inset:0; background:rgba(10,15,25,.55); display:none; align-items:center; justify-content:center; padding:16px; z-index:60; }
.modal-overlay.show { display:flex; }
.modal { background:var(--bg-card); border:1px solid var(--border); border-radius:14px; width:100%; max-width:540px; max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 18px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--bg-card); z-index:1; }
.modal-head h3 { margin:0; font-size:1.05rem; }
.modal-x { background:none; border:none; cursor:pointer; color:var(--text-muted); display:inline-flex; padding:5px; border-radius:7px; }
.modal-x svg.ic { width:17px; height:17px; }
.modal-x:hover { background:var(--bg-2); color:var(--text); }
.modal-body { padding:16px 18px; }
.modal-body .form-group:last-child { margin-bottom:0; }
.modal-foot { display:flex; gap:8px; flex-wrap:wrap; padding:14px 18px; border-top:1px solid var(--border); }

/* === Multi-sport : chip de discipline sur les cartes de séance === */
.ps-disc { display:inline-flex; align-items:center; gap:6px; }
.ps-disc .ic { width:15px; height:15px; }
.ps-type-sep { margin:0 7px; color:var(--faint); }
.ps-disc-course .ic   { color:var(--accent); }
.ps-disc-trail .ic    { color:var(--success); }
.ps-disc-velo .ic     { color:#e0772f; }
.ps-disc-natation .ic { color:var(--info); }
.ps-disc-renfo .ic    { color:var(--text-muted); }
.ps-disc-brick .ic    { color:#a855f7; }
.ps-disc-swimrun .ic  { color:var(--info); }
.ps-disc-hyrox .ic    { color:#a855f7; }
