:root {
  --bg: #fbfaf8;
  --ink: #1b2a41;
  --muted: #6e6a66;
  --green: #c2603d;
  --green-soft: #fbece6;
  --highlight: #1b2a41;
  --highlight-ink: #ffffff;
  --highlight-line: #1b2a41;
  --grad-accent: linear-gradient(135deg, #1b2a41 0%, #324a6d 100%);
  --grad-ink: linear-gradient(135deg, #1b2a41 0%, #273b5c 55%, #3d5276 100%);
  --grad-student: linear-gradient(160deg, #f7f9fc 0%, #ebf0f6 100%);
  --grad-pract: linear-gradient(160deg, #fdf8f5 0%, #f7e6dc 100%);
  --ash: #4a4642;
  --ash-ink: #fbfaf8;
  --ash-line: #3a3633;
  --line: #ece7e1;
  --student: #f1f4f8;
  --student-line: #e0e6ee;
  --pract: #fbf1ec;
  --pract-line: #f1ddd2;
  --paper: #ffffff;
  --danger: #8d2f2f;
  --ok: #3f7d5c;
  --shadow: 0 1px 3px rgba(40, 30, 20, 0.05);
  --bone: #f4efe6;
  --bone-line: #c4b49a;
  --hot: #e07a5f;
  --hot-line: #c4563f;
  --skin: #f7f5f2;
  --skin-line: #e6e0d8;
  --serif-fallback: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1726;
  --ink: #efeae3;
  --muted: #a9a39b;
  --green: #e58b69;
  --green-soft: #3a2219;
  --highlight: #efeae3;
  --highlight-ink: #1b2a41;
  --highlight-line: #efeae3;
  --grad-accent: linear-gradient(135deg, #f6f2ec 0%, #dcd3c7 100%);
  --grad-ink: linear-gradient(135deg, #1b2a41 0%, #273b5c 55%, #3d5276 100%);
  --grad-student: linear-gradient(160deg, #18233a 0%, #1d2b47 100%);
  --grad-pract: linear-gradient(160deg, #2a1e1b 0%, #3a2520 100%);
  --ash: #5c6570;
  --ash-ink: #f7f8f9;
  --ash-line: #737d89;
  --line: #253149;
  --student: #18233a;
  --student-line: #2b3a58;
  --pract: #2a1e1b;
  --pract-line: #4d3329;
  --paper: #162034;
  --danger: #ffb4b4;
  --ok: #86c59f;
  --shadow: none;
  --bone: #e4ddd2;
  --bone-line: #8d7f6c;
  --hot: #e07a5f;
  --hot-line: #ffc2b3;
  --skin: #1a2438;
  --skin-line: #2b3750;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-fallback);
  font-size: 17px;
  line-height: 1.45;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell { min-height: 100vh; }
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 23px;
}
.brand .word { letter-spacing: -0.02em; font-weight: 650; }
.mark {
  width: 40px;
  height: 40px;
  display: grid;
  flex: none;
}
.mark svg { width: 40px; height: 40px; display: block; }
:root[data-theme="dark"] .mark {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.tools { display: flex; align-items: center; gap: 10px; }
.icon-button, .pill {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.pill {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.pill strong { font-weight: 650; }
.who { color: var(--muted); font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.admin { background: var(--grad-accent); color: var(--highlight-ink); border-color: var(--highlight-line); }
.doors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.admin-band {
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.admin-band small {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-band strong { display: block; font-size: 16px; letter-spacing: -0.01em; margin-top: 4px; }
.help a { color: var(--green); }

.hero { padding: 64px 0 28px; }
.kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1, .page-title {
  margin: 12px 0 0;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.hero h1 { font-size: clamp(46px, 6.4vw, 76px); }
.page-title { font-size: clamp(34px, 4vw, 52px); }
a.line { text-decoration: none; }
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 54px;
}
.track {
  min-height: 118px;
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  text-align: left;
  background: var(--grad-student);
}
.track.pract { background: var(--grad-pract); }
.track.is-selected.student { border-color: var(--student-line); }
.track.is-selected.pract { border-color: var(--pract-line); }
.track b { font-size: 22px; letter-spacing: -0.01em; }
.track span, .quiet { color: var(--muted); }
.open-cta {
  margin-top: 22px;
  width: 100%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 72%, var(--bg));
  color: var(--ink);
  text-align: left;
  padding: 18px 18px 18px 22px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: none;
}
.open-copy small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}
.open-copy strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.open-copy em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 14px; }
.open-cta.student {
  background: var(--student);
  border-color: transparent;
}
.open-cta.pract {
  background: var(--pract);
  border-color: transparent;
}
.open-pill {
  flex: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.open-cta.student .open-pill {
  background: var(--grad-accent);
  color: var(--highlight-ink);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--highlight) 30%, transparent);
}
.open-cta.pract .open-pill {
  background: linear-gradient(135deg, #c2603d 0%, #d98463 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, #c2603d 28%, transparent);
}
.foot {
  color: var(--muted);
  font-size: 14px;
  padding: 28px 0 48px;
}

.panel {
  margin: 28px 0 48px;
  background: var(--student);
  border-radius: 22px;
  padding: 28px;
}
.panel.pract { background: var(--pract); }
.panel.paper { background: var(--paper); border: 1px solid var(--line); }
.panel h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.015em; }
.study-card {
  margin: 28px 0 48px;
  max-width: 760px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 26px 24px;
  box-shadow: 0 18px 48px rgba(22, 32, 42, 0.08);
  position: relative;
  overflow: hidden;
}
.study-card::before {
  content: "";
  display: block;
  height: 8px;
  margin: -22px -26px 18px;
  background: linear-gradient(90deg, var(--student-line), var(--student));
}
.study-card.pract::before { background: linear-gradient(90deg, var(--pract-line), var(--pract)); }
.study-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.study-head .tag { margin: 0; }
.study-count { margin: 0; color: var(--muted); font-size: 14px; }
.meter {
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
  margin: 14px 0 22px;
  overflow: hidden;
}
.meter span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.study-card h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.decision-title { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.vignette { margin: 0 0 18px; color: var(--muted); }
.meta { color: var(--muted); margin: 14px 0 0; }
.prompt { font-size: 20px; line-height: 1.45; letter-spacing: -0.005em; margin: 0 0 22px; }
.answer, .explain {
  background: var(--green-soft);
  border-radius: 16px;
  border-left: 4px solid var(--green);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.answer small, .explain small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 18px;
  box-shadow: var(--shadow);
}
.btn.ink { background: var(--grad-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--highlight) 28%, transparent); color: var(--highlight-ink); border-color: var(--highlight-line); }
.btn.ash { background: var(--ash); color: var(--ash-ink); border-color: var(--ash-line); }
.btn.quiet { background: transparent; box-shadow: none; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.choices { display: grid; gap: 10px; }
.choice {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.choice-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.choice.good { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--paper)); }
.choice.bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--paper)); }
.choice:disabled { cursor: default; }

.list { display: grid; gap: 10px; margin: 22px 0 40px; }
.line {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.again-btn { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); background: var(--green-soft); display: inline-flex; align-items: center; gap: 8px; }
.again-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--highlight-ink);
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}
.line b { display: block; letter-spacing: -0.01em; }
.line span { color: var(--muted); font-size: 14px; }
.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}
.form { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
.code {
  font-size: 28px;
  letter-spacing: 0.28em;
  text-align: center;
}
.note, .error {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
}
.note { background: var(--green-soft); color: var(--ink); }
.error { background: color-mix(in srgb, var(--danger) 12%, var(--paper)); color: var(--danger); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tabs button[aria-current="true"] { background: var(--highlight); color: var(--highlight-ink); border-color: var(--highlight-line); }
.section-title { margin: 28px 0 10px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.folder-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.folder-btn { font-weight: 650; }
.folder-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pickers { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; align-items: center; }
.picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.pickers select {
  width: auto;
  min-width: 8.5rem;
  max-width: 16rem;
  height: 42px;
  margin: 0;
  padding: 0 28px 0 2px;
  border: 0;
  border-radius: 999px;
  background-color: transparent;
  box-shadow: none;
  font-weight: 650;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231b2128' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
}
:root[data-theme="dark"] .pickers select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23eef2f5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.body-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 12px 0 48px;
}
.body-map .plate { width: min(100%, 440px); }
.region-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.region-pill { font-weight: 650; }
.plate { position: relative; }
.plate img { width: 100%; height: auto; display: block; }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.body-region { text-decoration: none; }
.body-region ellipse,
.body-region rect {
  fill: transparent;
  stroke: transparent;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.body-region:hover ellipse,
.body-region:hover rect,
.body-region:focus-visible ellipse,
.body-region:focus-visible rect {
  fill: color-mix(in srgb, var(--hot) 48%, transparent);
  stroke: var(--hot-line);
  stroke-width: 3;
}
.body-region:focus-visible { outline: none; }
.body-label {
  font-size: 13px;
  font-family: var(--serif-fallback);
  fill: var(--muted);
  font-weight: 600;
}
.body-region:hover .body-label,
.body-region:focus-visible .body-label { fill: var(--ink); }
.body-caption { margin: 0; text-align: center; color: var(--muted); font-size: 16px; min-height: 1.5em; }
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 8px; }
.folder {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: left;
  text-decoration: none;
}
.line { text-decoration: none; }
.folder b { font-size: 22px; letter-spacing: -0.01em; }
.folder span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.folder em { font-style: normal; color: var(--green); font-size: 13px; font-weight: 700; }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.crumb a { color: var(--ink); }
.demo-ribbon {
  background: var(--green-soft);
  color: var(--ink);
  font-size: 14px;
  padding: 10px 16px;
  text-align: center;
}
.split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.help { color: var(--muted); font-size: 15px; }

/* Navigation */
.top-search { flex: 1; max-width: 460px; }
.top-search .search { margin: 0; }
.top-search .search input { padding: 11px 16px 11px 44px; background: var(--paper); box-shadow: var(--shadow); }

.tabbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tabbar-in { display: flex; gap: 4px; }
.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.tab svg { width: 22px; height: 22px; flex: none; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-image: var(--grad-accent) 1; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; margin-top: 14px; }
.modes .goal { margin: 0; align-content: start; }
.modes .goal .btn.big { justify-self: start; }
.mode-title { margin: 0 0 12px; font-size: 21px; font-weight: 750; letter-spacing: -0.01em; }
.menu { border: 1px solid var(--line); background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.menu .goal-note { margin-top: 0; }
.menu-list { display: grid; gap: 8px; margin-top: 12px; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.menu-item:hover { border-color: var(--ink); }
.menu-item b { display: block; font-size: 16px; }
.menu-item small { color: var(--muted); font-size: 13px; }
.menu-item.again { border-style: dashed; }
.mini-meter { width: 72px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; flex: none; }
.mini-meter span { display: block; height: 100%; background: var(--grad-accent); }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }
a.icon-button { color: inherit; }

/* Accueil public */
.lede { max-width: 640px; font-size: 20px; line-height: 1.45; color: var(--muted); margin: 18px 0 0; letter-spacing: -0.015em; }
.cta-row { margin-top: 28px; }
.btn.big { padding: 15px 22px; font-size: 17px; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.trust { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--green); font-weight: 650; font-size: 15px; }
.track .track-copy { display: grid; gap: 6px; color: var(--ink); }
.track-copy small { color: var(--muted); font-size: 15px; line-height: 1.4; }
.track em { font-style: normal; font-weight: 700; white-space: nowrap; }
.section-head { margin: 56px 0 18px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; line-height: 1.05; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.feature b { font-size: 18px; letter-spacing: -0.01em; }
.feature span { color: var(--muted); font-size: 15px; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.plan.plus { background: var(--grad-ink); color: #ffffff; border-color: transparent; }
.plan.plus .help { color: rgba(255, 255, 255, 0.7); }
.plan.is-current { outline: 3px solid var(--highlight); outline-offset: 2px; }
.plan-name { margin: 0; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.plan-price { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; }
.plan ul { margin: 4px 0 6px; padding-left: 20px; display: grid; gap: 6px; }
.plan-tag { margin: 0; font-weight: 700; color: var(--green); }
.plan.plus .plan-tag { color: #f0b49c; }
.plan-rates { margin: 2px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-rates > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.plan-rates dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.plan-rates dd { margin: 4px 0 0; display: grid; }
.plan-rates dd b { font-size: 22px; letter-spacing: -0.015em; }
.plan-rates dd small { color: rgba(255, 255, 255, 0.65); font-size: 12px; margin-top: 2px; }
.plan-terms { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.pricing-group { margin-top: 14px; }

/* Landing mobile */
.landing-page { overflow: hidden; }
.landing-hero {
  min-height: 720px;
  padding: 70px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  gap: 54px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.landing-page .kicker { display: flex; align-items: center; gap: 9px; }
.landing-page .kicker > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 12%, transparent); }
.landing-hero h1 {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: .9;
  letter-spacing: -.055em;
}
.landing-hero h1 em { color: var(--green); font-style: normal; }
.hero-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  letter-spacing: -.018em;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.hero-actions .btn span { margin-left: 12px; font-size: 21px; }
.text-link, .beta-link { color: var(--ink); font-weight: 650; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); padding-bottom: 3px; }
.text-link span, .beta-link span { color: var(--green); margin-left: 7px; }
.hero-proof { display: flex; gap: 0; margin-top: 44px; }
.hero-proof > div { display: grid; gap: 0; padding: 0 24px; border-left: 1px solid var(--line); }
.hero-proof > div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-size: 25px; letter-spacing: -.03em; }
.hero-proof span { color: var(--muted); font-size: 13px; }

.hero-visual { min-height: 600px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f9d8c9, #e8edf5 56%, transparent 72%);
  filter: blur(2px);
  opacity: .78;
  z-index: -3;
}
.visual-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 50%; z-index: -2; }
.orbit-one { width: 480px; height: 480px; }
.orbit-two { width: 580px; height: 320px; transform: rotate(-18deg); }
.phone {
  width: 268px;
  min-height: 548px;
  padding: 9px;
  border-radius: 42px;
  background: #111927;
  box-shadow: 0 36px 80px rgba(27, 42, 65, .25), inset 0 0 0 1px rgba(255,255,255,.18);
  color: #1b2a41;
}
.phone-main { transform: rotate(4deg); animation: phone-float 7s ease-in-out infinite; }
.phone-bar { height: 28px; padding: 4px 12px 0; color: #fff; display: flex; align-items: flex-start; justify-content: space-between; font-size: 10px; position: relative; }
.phone-bar i { position: absolute; width: 76px; height: 20px; background: #111927; border-radius: 0 0 14px 14px; top: -4px; left: calc(50% - 38px); }
.phone-bar b { letter-spacing: 1px; }
.phone-screen { min-height: 500px; border-radius: 30px; padding: 22px 18px 16px; background: #fbfaf8; overflow: hidden; }
.mini-brand { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.mini-brand > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #1b2a41; color: #fff; }
.phone-eyebrow { margin: 42px 0 7px; color: #c2603d; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; }
.phone-screen h3 { margin: 0; font-size: 27px; line-height: 1.03; letter-spacing: -.035em; }
.phone-meter { height: 6px; background: #ebe7e2; border-radius: 99px; margin: 18px 0; overflow: hidden; }
.phone-meter span { display: block; width: 62%; height: 100%; background: #c2603d; border-radius: inherit; }
.phone-card { min-height: 236px; padding: 20px; border-radius: 22px; background: linear-gradient(155deg, #fff, #edf2f8); box-shadow: 0 12px 36px rgba(27,42,65,.09); display: flex; flex-direction: column; }
.phone-card small { color: #6e6a66; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.phone-card strong { margin-top: 18px; font-size: 17px; line-height: 1.25; }
.phone-card > span { margin-top: auto; padding: 10px; border-radius: 99px; color: #fff; background: #1b2a41; text-align: center; font-size: 11px; font-weight: 700; }
.phone-nav { display: flex; justify-content: space-around; margin-top: 18px; color: #8790a0; }
.phone-nav b:first-child { color: #c2603d; }
.floating-note { position: absolute; padding: 14px 16px; border: 1px solid rgba(255,255,255,.72); border-radius: 17px; background: rgba(255,255,255,.82); box-shadow: 0 18px 45px rgba(27,42,65,.13); backdrop-filter: blur(14px); color: #1b2a41; z-index: 2; display: grid; }
.floating-note span { color: #6e6a66; font-size: 11px; }
.floating-note strong { font-size: 20px; letter-spacing: -.02em; }
.note-progress { top: 120px; left: 2px; width: 142px; }
.note-progress i { height: 5px; border-radius: 8px; background: #e7e9ed; overflow: hidden; margin-top: 9px; }
.note-progress i b { display: block; width: 78%; height: 100%; background: #c2603d; }
.note-streak { right: -8px; bottom: 106px; }
.note-streak strong { margin-top: 2px; }
.note-streak i { color: #3f7d5c; font-size: 13px; font-style: normal; }
@keyframes phone-float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-10px); } }

.trust-strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 65%, transparent); }
.trust-strip .wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 14px; }
.trust-strip strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.trust-strip span { color: var(--green); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }

.story { padding-top: 120px; padding-bottom: 120px; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 390px); column-gap: 40px; align-items: end; margin-bottom: 44px; }
.section-intro .kicker { grid-column: 1 / -1; margin-bottom: 17px; }
.section-intro h2, .audience-grid h2, .download-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
.section-intro > p:last-child { color: var(--muted); margin: 0 0 5px; font-size: 18px; line-height: 1.55; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-card { min-height: 520px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); padding: 30px; overflow: hidden; display: flex; flex-direction: column; }
.story-card-large { grid-column: 1 / -1; min-height: 480px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: linear-gradient(140deg, var(--paper), color-mix(in srgb, var(--student) 65%, var(--paper))); }
.story-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 700; }
.story-card h3 { margin: auto 0 10px; font-size: clamp(27px, 3vw, 38px); line-height: 1.03; letter-spacing: -.035em; }
.story-card p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.story-copy { align-self: stretch; display: flex; flex-direction: column; height: 100%; }
.story-copy h3 { margin-top: auto; }
.memory-curve { align-self: stretch; min-height: 320px; padding: 24px; border-radius: 24px; background: rgba(255,255,255,.66); position: relative; }
.memory-curve svg { width: 100%; margin-top: 40px; overflow: visible; }
.curve-grid { fill: none; stroke: #dfe4ea; stroke-width: 1; }
.curve-line { fill: none; stroke: #c2603d; stroke-width: 4; stroke-linecap: round; }
.memory-curve circle { fill: #c2603d; stroke: #fff; stroke-width: 4; }
.curve-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.curve-days { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 3px; }
.case-demo { margin: 28px 0 32px; padding: 22px; border-radius: 22px; background: var(--pract); border: 1px solid var(--pract-line); transform: rotate(-1.5deg); }
.case-demo small { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.case-demo p { margin: 28px 0; color: var(--ink); font-size: 19px; font-weight: 650; line-height: 1.3; }
.case-demo div { padding-top: 14px; border-top: 1px solid var(--pract-line); display: grid; gap: 4px; }
.case-demo div span { color: var(--muted); font-size: 11px; }
.case-demo div strong { font-size: 14px; }
.story-dark { background: var(--grad-ink); color: #fff; border-color: transparent; }
.story-dark p { color: rgba(255,255,255,.66); }
.story-dark .story-index { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.65); }
.mastery-ring { margin: 38px auto 26px; width: 210px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(#e58b69 0 78%, rgba(255,255,255,.12) 78%); position: relative; }
.mastery-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #233653; }
.mastery-ring strong, .mastery-ring span { z-index: 1; }
.mastery-ring strong { font-size: 56px; letter-spacing: -.06em; line-height: 1; }
.mastery-ring strong small { font-size: 23px; }
.mastery-ring span { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 6px; }

.audience-section { padding: 108px 0; background: #151f30; color: #fff; }
.audience-grid { display: grid; grid-template-columns: .9fr 1fr 1fr; gap: 18px; align-items: stretch; }
.audience-grid > div { padding: 22px 34px 22px 0; }
.audience-grid .kicker { color: #e58b69; }
.audience-card { min-height: 380px; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; color: #1b2a41; }
.student-path { background: #e8eef6; }
.pract-path { background: #f5dfd5; transform: translateY(28px); }
.audience-card > span { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: #6e6a66; }
.audience-card h3 { margin: auto 0 12px; font-size: 32px; line-height: 1.05; letter-spacing: -.035em; }
.audience-card p { color: #5d6067; margin: 0; line-height: 1.5; }
.audience-card a { margin-top: 25px; color: #1b2a41; font-weight: 700; text-decoration: none; }
.audience-card a b { color: #c2603d; margin-left: 7px; }
.landing-page #offres { padding-top: 55px; }

.download-section { min-height: 600px; margin-top: 120px; margin-bottom: 90px; padding: 66px; border-radius: 38px; background: linear-gradient(135deg, #eee5dc, #e9eef5 62%, #f7e6dc); display: grid; grid-template-columns: 1fr .75fr; gap: 50px; align-items: center; overflow: hidden; }
.download-copy { position: relative; z-index: 2; }
.download-copy > p:not(.kicker) { max-width: 520px; color: #64646a; font-size: 18px; line-height: 1.55; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.store-badge { min-width: 194px; height: 64px; padding: 9px 12px; border-radius: 14px; background: #111927; color: #fff; display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; }
.store-badge svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.store-badge > span { display: grid; }
.store-badge small { font-size: 10px; line-height: 1; }
.store-badge strong { font-size: 19px; line-height: 1.1; }
.store-badge em { position: absolute; top: -8px; right: 8px; padding: 3px 7px; border-radius: 99px; background: #c2603d; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.store-badge.is-disabled { opacity: .78; cursor: default; }
.download-art { height: 470px; position: relative; display: grid; place-items: center; }
.download-art::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.48); }
.phone-back { position: relative; transform: rotate(8deg) translateY(40px); box-shadow: 0 42px 70px rgba(27,42,65,.22); }
.compact-screen { min-height: 520px; padding-top: 28px; }
.compact-screen > p { margin: 48px 0 4px; color: #6e6a66; font-size: 12px; }
.big-score { font-size: 82px; line-height: 1; letter-spacing: -.07em; font-weight: 700; }
.big-score small { font-size: 30px; }
.subject-line { margin-top: 26px; display: grid; gap: 8px; font-size: 12px; font-weight: 650; }
.subject-line i { height: 7px; border-radius: 9px; overflow: hidden; background: #e5e6e8; }
.subject-line i b { display: block; height: 100%; border-radius: inherit; background: #c2603d; }

/* Tableau de bord */
.dash h1 { font-size: clamp(40px, 5.4vw, 64px); }
.tracks.compact { margin-top: 28px; }
.tracks.compact .track { min-height: 76px; padding: 16px 22px; }
.goal { margin-top: 18px; border-radius: 24px; padding: 22px 24px; background: var(--grad-student); display: grid; gap: 14px; }
.goal.pract { background: var(--grad-pract); }
.goal-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.goal-top small { display: block; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.goal-top strong { display: block; font-size: 30px; letter-spacing: -0.015em; margin-top: 4px; }
.goal-pick { display: grid; gap: 4px; font-size: 12px; }
.goal-pick select { width: auto; padding: 8px 12px; }
.goal-meter, .goal-strip-meter, .bar, .mini-meter { display: block; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.goal-meter span, .goal-strip-meter span, .bar span, .mini-meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-accent); transition: width 0.4s ease; }
.goal-note { margin: 0; color: var(--muted); }
.goal .btn.big { justify-self: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.landing-stats { max-width: 520px; margin: 22px 0 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; text-decoration: none; display: grid; gap: 2px; }
.stat small { color: var(--muted); font-size: 13px; font-weight: 650; }
.stat strong { font-size: 24px; letter-spacing: -0.015em; }
.upsell { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--paper); border: 1px dashed var(--line); border-radius: 18px; padding: 14px 18px; color: var(--muted); }
.upsell b { color: var(--ink); }
.upsell span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.goal-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; margin: 14px 0 8px; padding: 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.goal-strip-meter { height: 8px; }
.goal-strip-label { font-weight: 700; color: var(--muted); }
.goal-strip.is-done .goal-strip-label { color: var(--green); }
.goal-strip-count { font-weight: 650; white-space: nowrap; }

/* Révision */
.format { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.format span { letter-spacing: 0.04em; opacity: 0.7; }
.answer strong, .explain strong { font-weight: 700; }
.statement { background: var(--bg); border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; font-size: 18px; }
.statement small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.vf .choice { justify-content: center; font-weight: 700; font-size: 18px; padding: 16px; }
.choices + .verdict, .vf + .verdict, .choices + .answer, .vf + .answer, .choices + .explain { margin-top: 16px; }
.verdict { margin: 16px 0 12px; font-weight: 700; }
.verdict.good { color: var(--ok); }
.verdict.bad { color: var(--danger); }
.choice span:last-child { line-height: 1.35; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 650; }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 650; color: var(--ink) !important; }
.mini-meter { width: 64px; height: 6px; background: var(--bg); }
.line span .lock, .upsell .lock { vertical-align: -2px; }
.line.is-locked { opacity: 0.72; }
.card-id { font-size: 12px !important; letter-spacing: 0.04em; white-space: nowrap; }
.list.tight { margin: 10px 0 18px; gap: 8px; }
.group-label { margin: 18px 0 0; font-weight: 700; letter-spacing: -0.01em; }
.score { font-size: 22px; margin: 18px 0 0; }

/* Recherche */
.search { position: relative; display: block; margin: 14px 0 6px; color: var(--muted); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.search input { padding: 14px 16px 14px 46px; border-radius: 999px; font-size: 16px; }

/* Progression */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.dot.mastered { background: var(--green); }
.dot.learning { background: color-mix(in srgb, var(--green) 45%, var(--paper)); }
.dot.again { background: var(--hot); }
.dot.fresh { background: var(--line); }
.progress-list { display: grid; gap: 10px; margin: 12px 0 30px; }
.progress-row { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.progress-row summary, .progress-row.flat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 56px; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.progress-row.flat { cursor: default; }
.progress-row summary::-webkit-details-marker { display: none; }
.progress-row strong { text-align: right; }
.progress-name b { display: block; letter-spacing: -0.01em; }
.progress-name span { color: var(--muted); font-size: 13px; }
.bar { height: 10px; background: var(--bg); }
.progress-themes { display: grid; gap: 6px; padding: 0 18px 14px; }
.progress-theme { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 56px; gap: 14px; align-items: center; text-decoration: none; font-size: 14px; color: var(--muted); }
.progress-theme .bar { height: 6px; }
.progress-theme em { font-style: normal; text-align: right; }
.admin-folder { margin: 8px 0; }
.admin-folder summary { cursor: pointer; font-weight: 650; padding: 8px 0; }

/* Profils */
.professions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.professions span { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 650; }
.kicker a { color: inherit; }
.form.wide { max-width: 760px; }
.form > .btn { justify-self: start; }
.options { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.options legend { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.option { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 16px; color: var(--ink); font-size: 15px; font-weight: 650; cursor: pointer; }
.option input { width: auto; margin: 0; accent-color: var(--green); }
.option:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

/* Relecture */
.vetted { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--green); margin-right: 8px; text-transform: none; letter-spacing: 0; }
.vetted svg { width: 14px; height: 14px; }
.status { font-size: 12px !important; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; background: var(--bg); color: var(--muted) !important; }
.status.ok { background: color-mix(in srgb, var(--ok) 12%, var(--paper)); color: var(--ok) !important; }
.status.fix { background: color-mix(in srgb, var(--hot) 18%, var(--paper)); color: var(--hot-line) !important; }
.review-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 18px 0 4px; }
.review-filters label { min-width: 180px; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; }
.review-form textarea { min-height: 110px; }
.review-form textarea.short { min-height: 70px; }
.decision-edit { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--paper); }
.decision-edit legend { font-weight: 700; padding: 0 6px; }
.choice-edit { display: flex; gap: 10px; align-items: center; }
.choice-edit input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); z-index: 2; }
.btn.danger { background: color-mix(in srgb, var(--hot) 16%, var(--paper)); border-color: var(--hot-line); }

/* Mon compte */
.account { display: grid; gap: 16px; padding-bottom: 80px; }
.account > * { max-width: 760px; width: 100%; }
.account-block { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: grid; gap: 12px; justify-items: start; }
.account-block h2 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.account-block h3 { margin: 8px 0 0; font-size: 15px; }
.account-block .help { margin: 0; }
.account-block .form { width: 100%; max-width: 420px; margin: 0; }
.account-facts { margin: 0; display: grid; gap: 10px; width: 100%; }
.account-facts > div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-facts dt { color: var(--muted); font-size: 14px; }
.account-facts dd { margin: 0; font-weight: 600; }
.account-empty { margin: 0; padding: 14px 16px; width: 100%; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }
.account-block.danger { border-color: var(--hot-line); }
.pill.is-on { border-color: var(--ink); }
@media (max-width: 600px) {
  .account-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
.as-button { width: 100%; text-align: left; font: inherit; color: inherit; }

@media (max-width: 1000px) {
  .landing-hero { grid-template-columns: 1fr 380px; gap: 20px; }
  .landing-hero h1 { font-size: clamp(56px, 8vw, 78px); }
  .note-progress { left: -12px; }
  .note-streak { right: -4px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid > div { grid-column: 1 / -1; }
  .pract-path { transform: none; }
  .download-section { padding: 48px; }
}

@media (max-width: 760px) {
  .features, .pricing, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 19px; }
  .goal-top { flex-direction: column; }
  .goal .btn.big { justify-self: stretch; justify-content: center; }
  .goal-strip { grid-template-columns: 1fr auto; }
  .goal-strip-meter { grid-column: 1 / -1; grid-row: 2; }
  .upsell { flex-direction: column; align-items: stretch; }
  .progress-row summary, .progress-row.flat, .progress-theme { grid-template-columns: minmax(0, 1fr) 70px 44px; gap: 10px; }
  .lede { font-size: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .study-card { padding: 20px 18px 22px; border-radius: 22px; }
  .study-card::before { margin: -20px -18px 16px; }
  .prompt { font-size: 18px; }
  .landing-hero { min-height: auto; padding: 52px 0 48px; grid-template-columns: 1fr; gap: 30px; }
  .landing-hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-lede { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-proof { justify-content: space-between; }
  .hero-proof > div { padding: 0 14px; }
  .hero-proof strong { font-size: 21px; }
  .hero-visual { min-height: 560px; transform: scale(.9); margin: -20px -20px -50px; }
  .note-progress { left: 0; }
  .note-streak { right: 0; }
  .trust-strip .wrap { min-height: auto; padding: 24px 0; flex-wrap: wrap; justify-content: flex-start; }
  .trust-strip span { flex-basis: 100%; }
  .story { padding-top: 76px; padding-bottom: 76px; }
  .section-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .section-intro .kicker { grid-column: auto; margin-bottom: 0; }
  .section-intro h2, .audience-grid h2, .download-copy h2 { font-size: clamp(40px, 12vw, 54px); }
  .story-grid, .story-card-large { grid-template-columns: 1fr; }
  .story-card { min-height: 490px; padding: 24px; border-radius: 24px; }
  .story-card-large { min-height: auto; grid-column: auto; gap: 30px; }
  .story-copy { min-height: 250px; }
  .memory-curve { min-height: 250px; padding: 16px; }
  .audience-section { padding: 76px 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid > div { grid-column: auto; padding: 0 0 20px; }
  .audience-card { min-height: 350px; padding: 26px; }
  .landing-page #offres { padding-top: 20px; }
  .download-section { width: calc(100% - 28px); min-height: auto; margin-top: 76px; margin-bottom: 54px; padding: 38px 24px 0; border-radius: 28px; grid-template-columns: 1fr; gap: 10px; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-badge { width: 100%; }
  .download-art { height: 410px; transform: scale(.86); transform-origin: top center; margin-bottom: -55px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-main { animation: none; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1080px); }
  .hero { padding-top: 36px; }
  .tracks, .parcours, .top, .line, .split { grid-template-columns: 1fr; }
  .tracks, .folders { grid-template-columns: 1fr; }
  .line, .split, .top, .open-cta, .admin-band { flex-wrap: wrap; }
  .open-cta, .admin-band { flex-direction: column; align-items: stretch; }
  .open-pill { text-align: center; }
  .who { display: none; }
  .panel { padding: 20px; }
  .top-search { order: 3; flex: 1 1 100%; max-width: none; }
  body:has(.tabbar) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar-in { width: 100%; gap: 0; }
  .tab { flex-direction: column; gap: 3px; padding: 9px 2px 8px; font-size: 11px; border-bottom: 0; border-top: 3px solid transparent; min-width: 0; }
  .tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tab.is-on { border-top-color: var(--green); color: var(--green); }
  .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- Niveaux, modules, positionnement ---------- */
.level-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; border: 1px solid transparent; white-space: nowrap; }
.level-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.level-pill.l1 { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--paper)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.level-pill.l2 { color: #9a6a12; background: color-mix(in srgb, #e3a52a 14%, var(--paper)); border-color: color-mix(in srgb, #e3a52a 35%, transparent); }
.level-pill.l3 { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--paper)); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }
:root[data-theme="dark"] .level-pill.l2 { color: #f1c66b; }
.format .level-pill { margin-right: auto; opacity: 1; }
.line span .level-pill { font-size: 10px; margin-left: 6px; }

.placement-offer, .setup-band, .resume-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0; padding: 16px 18px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line)); background: var(--green-soft); color: var(--ink); text-decoration: none; }
.placement-offer > span:first-child, .setup-band > span, .resume-band > span { display: grid; gap: 3px; }
.placement-offer small, .setup-band span span, .resume-band span span { color: var(--muted); font-size: 14px; }
.setup-band small, .resume-band small { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.setup-band strong, .resume-band strong { white-space: nowrap; color: var(--green); }
.placement-offer .row { flex: none; }
.resume-band { background: var(--paper); border-color: var(--line); box-shadow: 0 10px 30px rgba(22, 32, 42, 0.06); }
.resume-band:hover, .setup-band:hover { border-color: var(--green); }

.level-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 14px 0 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.level-bar-copy { display: grid; }
.level-bar-copy b { font-size: 15px; }
.level-bar-copy small { color: var(--muted); font-size: 13px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--muted); }
.segmented button.is-on { background: var(--ink); color: var(--paper); }
.text-link.small { font-size: 14px; margin-left: auto; }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 22px 0 30px; }
.module-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.module-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 32, 42, 0.08); }
.module-card.is-featured { grid-column: 1 / -1; background: var(--grad-pract); border-color: var(--pract-line); padding: 22px; }
.module-card.is-featured b { font-size: 26px; }

.module-area { font-size: 12px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.module-card b { font-size: 19px; letter-spacing: -0.015em; line-height: 1.15; }
.module-blurb { color: var(--muted); font-size: 14px; line-height: 1.4; }
.module-meta { color: var(--muted); font-size: 13px; margin-top: auto; padding-top: 8px; }
.module-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; margin-top: 4px; }
.module-foot .bar { height: 7px; }
.module-foot em { font-style: normal; font-size: 13px; color: var(--muted); }
.module-foot strong { font-size: 14px; color: var(--ink); }

.module-lede { margin-bottom: 18px; }
.module-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.module-summary span { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.module-summary b { color: var(--ink); }
.stage { margin-top: 30px; }
.stage-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.stage-head span { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 750; }
.stage .help { margin: 6px 0 0; }
.stage .list { margin-top: 12px; margin-bottom: 0; }

.case-state { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.line .case-state.done { color: var(--ok); font-weight: 700; }
.line .case-state.going { color: var(--green); font-weight: 700; }
.case-state svg { width: 16px; height: 16px; }

.all-cases { margin: 10px 0 40px; border-top: 1px solid var(--line); padding-top: 14px; }
.all-cases > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.all-cases > summary::-webkit-details-marker { display: none; }
.all-cases > summary::after { content: "+"; font-size: 24px; color: var(--muted); }
.all-cases[open] > summary::after { content: "–"; }
.all-cases > summary span { display: grid; }
.all-cases > summary small { color: var(--muted); font-size: 14px; }
.all-cases .chips { margin-top: 14px; }

.choice.dim { opacity: 0.6; }
.choice.unsure { background: transparent; border-style: dashed; color: var(--muted); }
.choice.unsure.is-picked { opacity: 1; border-color: var(--ink); color: var(--ink); }
.feedback { margin-top: 6px; }
.feedback .verdict { margin-top: 18px; }
.explain.wrong { background: color-mix(in srgb, var(--danger) 8%, var(--paper)); border-left-color: var(--danger); }
.explain.wrong small { color: var(--danger); }
.others { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.others summary { cursor: pointer; padding: 12px 16px; font-weight: 650; font-size: 15px; }
.others ul { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 10px; }
.others li { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; }
.others li > b { width: 26px; height: 26px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: 12px; }
.others li em { display: block; font-style: normal; font-weight: 650; color: var(--ink); }
.others li span { color: var(--muted); }
.choice-why { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }

.trail { margin: 0 0 18px; border-left: 3px solid var(--line); padding-left: 14px; }
.trail summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 650; }
.trail ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.trail li b { display: block; }
.trail li span { color: var(--muted); }
.trail li.good::marker { color: var(--ok); }
.trail li.bad::marker { color: var(--danger); }

.recap { list-style: none; padding: 0; margin: 26px 0 48px; display: grid; gap: 10px; max-width: 760px; }
.recap-item details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.recap-item.good details { border-left: 4px solid var(--ok); }
.recap-item.bad details { border-left: 4px solid var(--danger); }
.recap-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.recap-item summary::-webkit-details-marker { display: none; }
.recap-item summary > span:last-child { display: grid; }
.recap-item summary small { color: var(--muted); font-size: 13px; }
.recap-item.good summary small { color: var(--ok); font-weight: 700; }
.recap-item.bad summary small { color: var(--danger); font-weight: 700; }
.recap-num { width: 28px; height: 28px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 750; }
.recap-item .prompt { font-size: 17px; margin: 0 0 12px; }
.recap-line { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.recap-line small { display: block; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.recap-line span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.recap-line.good small { color: var(--ok); }
.recap-line.bad small { color: var(--danger); }

.wrap.narrow { max-width: 820px; }
.placement-points { margin: 22px 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 640px; }
.placement-points li { position: relative; padding-left: 26px; color: var(--muted); }
.placement-points li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.placement-steps { display: grid; grid-auto-flow: column; gap: 6px; margin: 14px 0 22px; }
.placement-steps span { height: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.placement-steps span.is-done { background: var(--green); border-color: var(--green); }
.placement-steps span.is-now { background: color-mix(in srgb, var(--green) 40%, var(--bg)); border-color: var(--green); }
.placement-card .choices + .choices { margin-top: 10px; }
.domain-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.domain-list span { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.profile-levels { display: grid; gap: 8px; margin: 22px 0; max-width: 560px; }
.profile-levels.compact { margin: 6px 0 14px; }
.profile-level { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.profile-level > span:first-child { flex: 1; font-weight: 650; }
.level-dots { display: inline-flex; gap: 4px; }
.level-dots i { width: 22px; height: 6px; border-radius: 999px; background: var(--line); }
.level-dots i.on { background: var(--green); }
.practice-result .module-card { margin: 18px 0; }
.wrap.narrow > .module-card { margin: 22px 0; }

.profile-form .option span { display: grid; }
.profile-form .option small { color: var(--muted); font-weight: 500; font-size: 13px; }
.profile-form .option { border-radius: 16px; }
.options legend small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.profile-form:has(input[name="stage"][value="praticien"]:checked) .only-student,
.profile-form:has(input[name="stage"][value="etudiant"]:checked) .only-pract { display: none; }
.menu-item.resume { border-color: var(--green); background: var(--green-soft); }
a.progress-row.flat { text-decoration: none; color: inherit; cursor: pointer; }
a.progress-row.flat:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .placement-offer, .setup-band, .resume-band { flex-direction: column; align-items: stretch; }
  .placement-offer .row .btn { flex: 1; text-align: center; }
  .text-link.small { margin-left: 0; }
  .level-bar { align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding: 8px 6px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card.is-featured b { font-size: 22px; }
  .case-line { align-items: flex-start; }
}
.module-card.is-complete { opacity: 0.85; }
.module-card.is-locked .module-foot strong { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
