/* MusicCoach public site */
:root {
  --ink: #1d211f;
  --muted: #66706b;
  --faint: #8f9893;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e0d8;
  --header: #17211f;
  --header-soft: #23332f;
  --green: #2f7d70;
  --green-dark: #20584f;
  --blue: #3567a7;
  --amber: #b66d1d;
  --red: #c4493f;
  --violet: #7556a7;
  --shadow: 0 8px 24px rgba(29, 33, 31, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}
a { color: inherit; }

/* Header */
.header { background: var(--header); color: #fff; }
.nav {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
}
.logo span { color: #f2c46d; }
.nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 14px;
}
.nav-links a:hover { color: #fff; }

/* Hero */
.hero {
  padding: 34px 24px 28px;
  background: var(--header);
}
.compact-hero { padding-bottom: 38px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.work-title {
  max-width: 860px;
  font-size: 30px;
  font-weight: 780;
  line-height: 1.18;
  color: #fff;
}
.work-composer {
  max-width: 780px;
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
}
.work-composer a { color: rgba(255,255,255,.7); text-decoration: none; }
.work-composer a:hover { color: #fff; }
.work-meta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.period { background: rgba(47,125,112,.18); border-color: rgba(47,125,112,.4); color: #c6eee7; }
.badge.genre { background: rgba(53,103,167,.18); border-color: rgba(53,103,167,.4); color: #d5e6ff; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta,
.hero-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.hero-cta { background: #f2c46d; color: #1a1d1b; }
.hero-link { border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.82); }

/* Homepage hero */
.hero-search {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 72px 24px 58px;
  background: var(--header) url("/static/img/piano-studio-hero.png") center right / cover no-repeat;
}
.hero-search::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 20, .62);
}
.hero-search > * {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-kicker {
  display: inline-flex;
  color: #f2c46d;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-search h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.08;
  max-width: 620px;
  margin-bottom: 14px;
}
.hero-search p {
  color: rgba(255,255,255,.78);
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 24px;
}
.search-box { position: relative; max-width: 620px; }
.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 16px;
  box-shadow: var(--shadow);
}
.search-box input:focus {
  outline: 3px solid rgba(242,196,109,.35);
  border-color: #f2c46d;
}
#autocomplete-dropdown,
#diag-dropdown,
#compare-dropdown,
#parcours-de-drop,
#parcours-vers-drop {
  position: absolute;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  top: 100%;
  left: 0;
  margin-top: 8px;
  text-align: left;
  box-shadow: var(--shadow);
}
.search-result {
  display: block;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0ede7;
  color: var(--ink);
  text-decoration: none;
}
.search-result:hover { background: #f6f1e8; }
.search-result .sr-composer { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Variante « ajout » : un + explicite à droite (diagnostic, comparaison, parcours) */
.search-result.sr-addable { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-result .sr-add {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.hero-quick-links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero-quick-links a {
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  text-decoration: none;
}
.hero-quick-links a:hover { background: rgba(255,255,255,.1); }

/* Layout */
.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.main.single-col { grid-template-columns: 1fr; }
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 20px; }
.home-section { padding-bottom: 10px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}
.section-heading h2,
.association-band h2,
.method-panel h2,
.method-limit h2 {
  font-size: 22px;
  line-height: 1.2;
}
.text-link {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* Cards */
.card,
.sidebar-card,
.starter-card,
.method-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(29,33,31,.04);
}
.card { padding: 24px; margin-bottom: 20px; }
.card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.card-title-spaced { margin-top: 12px; }
.card-copy {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.card-copy:last-child { margin-bottom: 0; }

/* Trust and acquisition */
.trust-band {
  max-width: 1120px;
  margin: -24px auto 8px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 3;
}
.trust-band div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.trust-band strong { display: block; font-size: 22px; color: var(--green-dark); }
.trust-band span { font-size: 12px; color: var(--muted); }
.level-strip,
.association-band {
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 0 20px;
}
.level-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.level-strip a,
.association-band {
  background: #eef6f3;
  border: 1px solid #cfe5de;
  border-radius: 8px;
}
.level-strip a {
  min-height: 106px;
  padding: 16px;
  text-decoration: none;
}
.level-strip span {
  display: block;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.level-strip strong { display: block; font-size: 14px; line-height: 1.3; }
.association-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.association-band p { color: var(--muted); margin-top: 8px; max-width: 680px; }

/* Difficulty */
.diff-row { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.diff-score { font-size: 56px; font-weight: 850; color: var(--ink); line-height: 1; }
.diff-score sup { font-size: 20px; font-weight: 500; color: var(--faint); vertical-align: super; }
.diff-label { font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 4px; }
.diff-sublabel { font-size: 12px; color: var(--muted); margin-top: 2px; }
.diff-bar-wrap { flex: 1; min-width: 220px; }
.diff-bar-track {
  height: 10px;
  background: #eee9df;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.diff-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f9d69 0%, #d6a52d 42%, #d66c2b 70%, #c4493f 100%);
}
.diff-bar-thumb {
  position: absolute;
  top: -3px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.diff-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 7px; }
.sources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.source-item { background: #f7f5f0; border-radius: 8px; padding: 12px 14px; }
.source-name { font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.source-score { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.source-scale { font-size: 11px; color: var(--faint); }

/* Percentiles */
.percentile-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pct-item { min-width: 0; background: #f7f5f0; border-radius: 8px; padding: 14px; text-align: center; }
.pct-value { font-size: 22px; font-weight: 800; color: var(--ink); }
.pct-value span { font-size: 12px; font-weight: 500; color: var(--faint); }
.pct-label { font-size: 11px; color: var(--muted); margin-top: 3px; }
.pct-bar { height: 4px; background: #e7e0d4; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.pct-bar-fill { height: 100%; border-radius: 999px; background: var(--green); }

/* Skills */
.skills-list { display: flex; flex-direction: column; gap: 10px; }
.skill-row {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) 100px 34px;
  align-items: center;
  gap: 12px;
}
.skill-cat { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }
.skill-name { min-width: 0; font-size: 13px; color: var(--ink); }
.skill-bar-track { width: 100px; height: 6px; background: #eee9df; border-radius: 999px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 999px; }
.skill-conf { font-size: 11px; color: var(--faint); text-align: right; }

/* Progressions */
.prog-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prog-col-title {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 5px;
}
.prog-col-title.gentle { color: #1f7a4f; }
.prog-col-title.normal { color: var(--blue); }
.prog-col-title.ambitious { color: var(--amber); }
.prog-col-title.lateral { color: var(--violet); }
.prog-col-title.preparation { color: var(--red); }
.prog-col-copy { min-height: 38px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.prog-cards { display: flex; flex-direction: column; gap: 10px; }
.prog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  position: relative;
  background: var(--surface);
  min-height: 154px;
}
.prog-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.prog-card.gentle { border-left: 4px solid #2f9d69; }
.prog-card.normal { border-left: 4px solid var(--blue); }
.prog-card.ambitious { border-left: 4px solid var(--amber); }
.prog-card.lateral { border-left: 4px solid var(--violet); }
.prog-card.preparation { border-left: 4px solid var(--red); }
.prog-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.path-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
.path-badge.gentle { background: #e7f5ed; color: #1f7a4f; }
.path-badge.normal { background: #e8f0fb; color: var(--blue); }
.path-badge.ambitious { background: #fff1dc; color: var(--amber); }
.path-badge.lateral { background: #f1eafa; color: var(--violet); }
.path-badge.preparation { background: #fbe8e6; color: var(--red); }
.prog-work-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.prog-composer { font-size: 12px; color: var(--muted); }
.prog-meta,
.evidence-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.prog-diff { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #f3f0e9; color: var(--ink); }
.prog-delta,
.evidence-row span {
  font-size: 11px;
  color: var(--muted);
  background: #f8f6f1;
  border: 1px solid #ece7dd;
  border-radius: 999px;
  padding: 2px 7px;
}
.prog-reason { font-size: 12px; color: var(--muted); margin-top: 9px; }
.prog-empty { font-size: 13px; color: var(--faint); font-style: italic; padding: 10px 0; }
.secondary-progressions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.secondary-progressions.expanded { margin-top: 30px; }

/* Sidebar */
.sidebar-card { padding: 18px; margin-bottom: 16px; }
.sidebar-title { font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: 0; margin-bottom: 12px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0ede7; font-size: 13px; gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--muted); }
.info-val { font-weight: 650; color: var(--ink); text-align: right; }
.missing { color: var(--faint); font-style: italic; font-size: 12px; }
.section-note {
  font-size: 12px;
  color: var(--muted);
  background: #f7f5f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  border-left: 3px solid var(--line);
}
.note-wide { max-width: 760px; margin-top: 24px; }

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.cta-primary { width: 100%; background: var(--green); color: #fff; border: 1px solid var(--green); }
.cta-primary:hover { background: var(--green-dark); }
.cta-secondary { width: 100%; background: #fff; color: var(--green-dark); border: 1px solid #cfe5de; margin-top: 8px; }
.cta-secondary:hover { background: #eef6f3; }
.cta-inline { width: auto; margin-top: 16px; }
.cta-secondary.compact { width: auto; margin: 0; }

/* Lists and filters */
.grid-list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  gap: 12px;
}
.list-row:hover { box-shadow: var(--shadow); }
.list-row-title { font-weight: 800; font-size: 14px; }
.list-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
}
.filters-bar input,
.filters-bar select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d8d2c8;
  font-size: 13px;
  background: #fff;
}
.level-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.level-pills a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-dark);
  background: #eef6f3;
  border: 1px solid #cfe5de;
  border-radius: 999px;
  padding: 7px 11px;
}
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.pagination .active { background: var(--header); color: #fff; border-color: var(--header); }

/* Starter works */
.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  padding: 0 20px 34px;
  max-width: 1120px;
  margin: 0 auto;
}
.starter-card { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; }
.starter-card .list-row-title,
.starter-card .list-row-sub { text-decoration: none; color: inherit; }
.starter-card > a.list-row-title:hover { text-decoration: underline; }
.starter-next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ded8cd;
  width: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
}
.starter-next:hover .starter-next-title { text-decoration: underline; }
.starter-next-label { font-size: 11px; color: var(--green-dark); font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.starter-next-title { font-size: 13px; font-weight: 800; margin-top: 2px; }
.starter-next-sub { font-size: 12px; color: var(--muted); }

/* Method page */
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.page-intro p { color: var(--muted); max-width: 720px; }
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.method-panel { padding: 20px; }
.method-panel.lead { min-height: 190px; }
.method-panel p,
.method-limit p { color: var(--muted); margin-top: 10px; }
.method-panel strong {
  display: block;
  font-size: 34px;
  color: var(--green-dark);
}
.method-panel span { color: var(--muted); }
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.method-steps div,
.method-limit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.method-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef6f3;
  color: var(--green-dark);
  font-weight: 850;
  margin-bottom: 12px;
}
.method-steps h3 { font-size: 17px; margin-bottom: 8px; }
.method-steps p { color: var(--muted); font-size: 14px; }
.method-limit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Footer */
.footer {
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 28px 20px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo { color: var(--ink); display: inline-block; margin-bottom: 6px; }
.footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--green-dark); }

@media (max-width: 900px) {
  .trust-band,
  .level-strip,
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .prog-columns,
  .method-grid { grid-template-columns: 1fr; }
  .prog-col-copy { min-height: 0; }
  .main { grid-template-columns: 1fr; }
  .secondary-progressions { grid-template-columns: 1fr; }
  .association-band,
  .method-limit,
  .page-intro,
  .section-heading,
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; gap: 14px; }
  .nav-links { margin-left: 0; gap: 12px; width: 100%; }
  .hero { padding: 24px 16px; }
  .work-title { font-size: 24px; }
  .hero-search {
    min-height: 400px;
    padding: 50px 16px 42px;
    background-position: center;
  }
  .hero-search h1 { font-size: 31px; }
  .hero-search p { font-size: 15px; }
  .trust-band,
  .level-strip,
  .percentile-row,
  .sources-grid,
  .method-steps { grid-template-columns: 1fr; }
  .skill-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ede7;
  }
  .skill-bar-track { width: 100%; }
  .skill-conf { text-align: left; }
  .list-row { align-items: flex-start; }
  .filters-bar input,
  .filters-bar select,
  .filters-bar button { width: 100%; }
  .diff-score { font-size: 46px; }
}

/* ── Comparaison technique (/comparer) ─────────────────────────────────── */
.compare-selected { display: flex; flex-direction: column; gap: 10px; }
.compare-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.compare-chip-main { flex: 1; min-width: 0; }
.compare-chip-main a { color: var(--ink); font-weight: 600; text-decoration: none; }
.compare-chip-main a:hover { color: var(--green-dark); }
.compare-chip-composer { display: block; color: var(--muted); font-size: 13px; }
.compare-chip-remove {
  color: var(--faint);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
}
.compare-chip-remove:hover { color: var(--red); background: rgba(196,73,63,.08); }
.compare-pair-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.compare-pair-titles { font-size: 16px; font-weight: 600; }
.compare-pair-titles a { color: var(--ink); text-decoration: none; }
.compare-pair-titles a:hover { color: var(--green-dark); }
.compare-arrow { color: var(--faint); margin: 0 6px; }
.compare-verdict { display: flex; align-items: center; gap: 10px; }
.compare-delta { color: var(--muted); font-size: 14px; }
.compare-verdict-badge { color: #fff; border-color: transparent; font-weight: 600; }
.compare-low-confidence { display: block; margin-top: 6px; color: var(--amber); font-size: 13px; }
.compare-skills-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.compare-skills-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
/* Default .badge is styled for the dark hero; on light cards flip it. */
.compare-pair .badge,
.compare-selected .badge {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.compare-pair .compare-verdict-badge { color: #fff; }
@media (max-width: 700px) {
  .compare-pair-head { flex-direction: column; align-items: flex-start; }
}

/* Badge « bêta » : score encore peu documenté (cordes non ancrées) */
.badge.beta { background: #fdf3e3; border-color: #ecc98f; color: #96660f; font-weight: 600; }
.hero .badge.beta { background: rgba(236,201,143,.16); border-color: rgba(236,201,143,.45); color: #f2d9a8; }

/* Diagnostic : sélecteur de ressenti par œuvre jouée */
.diag-feedback { display: flex; gap: 4px; flex-wrap: wrap; }
.diag-feedback a {
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.diag-feedback a:hover { border-color: var(--green); color: var(--green-dark); }
.diag-feedback a.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
@media (max-width: 700px) {
  .compare-chip { flex-wrap: wrap; }
}

/* Parcours de progression */
.parcours-pickers { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.parcours-pickers .search-box { flex: 1; min-width: 260px; max-width: 460px; }
.parcours-arrow { color: rgba(255,255,255,.6); font-size: 20px; }
.parcours-timeline { display: flex; flex-direction: column; margin-top: 8px; }
.parcours-step { position: relative; padding-left: 26px; }
.parcours-step::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.parcours-step:first-child::before { top: 50%; }
.parcours-step:last-child::before { bottom: 50%; }
.parcours-work { position: relative; }
.parcours-work::before {
  content: "";
  position: absolute;
  left: -22px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--surface);
}
.parcours-edge {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 8px 4px;
}

/* Cartes d'outils sur l'accueil (diagnostic / parcours / comparaison) */
.home-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-tool {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
}
.home-tool:hover { transform: translateY(-2px); border-color: var(--green); }
.home-tool-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.home-tool h3 { font-size: 17px; margin-bottom: 8px; }
.home-tool p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .home-tools { grid-template-columns: 1fr; }
}

/* Échelle de difficulté en flèche avec repères (/repertoire) */
.scale-arrow { margin: 6px 0 20px; }
.scale-arrow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.scale-band {
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
}
.scale-band-1 { border-top-color: #22c55e; }
.scale-band-2 { border-top-color: #84cc16; }
.scale-band-3 { border-top-color: #eab308; }
.scale-band-4 { border-top-color: #f97316; }
.scale-band-5 { border-top-color: #ef4444; }
.scale-band-head { font-size: 12.5px; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.scale-band-head span { font-size: 11px; color: var(--faint); font-weight: 600; }
.scale-band-refs { display: flex; flex-direction: column; gap: 5px; }
.scale-band-refs a {
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.scale-band-refs a:hover { color: var(--green-dark); }
.scale-band-refs a strong { color: var(--green-dark); }
.scale-arrow-caption { font-size: 12px; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .scale-arrow-track { grid-template-columns: 1fr; }
}

/* Encart repliable « comment c'est calculé » du diagnostic */
.diag-method { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.diag-method summary { cursor: pointer; color: var(--green-dark); font-weight: 700; font-size: 13.5px; }
.diag-method p { margin-top: 10px; line-height: 1.55; }

/* Tableau comparatif type « comparateur de produits » (/comparer) */
.compare-matrix-wrap { overflow-x: auto; }
.compare-matrix { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 420px; }
.compare-matrix th, .compare-matrix td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare-matrix thead th { vertical-align: bottom; border-bottom: 2px solid var(--line); }
.compare-matrix thead th a { color: var(--ink); font-weight: 700; text-decoration: none; display: block; }
.compare-matrix thead th a:hover { color: var(--green-dark); }
.cm-composer { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.compare-matrix .cm-axis { text-align: left; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cm-diff-row td { background: rgba(47,125,112,.05); }
.cm-bar {
  display: inline-block; width: 78px; height: 8px;
  background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle;
}
.cm-bar-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.cm-absent { color: var(--faint); }

/* « Meilleure œuvre suivante » mise en avant (/diagnostic) */
.best-next {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--green);
  background: linear-gradient(180deg, rgba(47,125,112,.06), var(--surface));
}
.best-next:hover { border-color: var(--green-dark); }
.best-next-label { font-size: 12px; font-weight: 800; color: var(--green-dark); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.best-next-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.best-next-title { font-size: 18px; font-weight: 700; }
.best-next-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.best-next-cta { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--green-dark); }
