/* Layout: three screens in one column. Home (focus, motivation, levels), level (rubrique cards), rubrique (objectives). */
:root {
  /* Thème unique bleu / noir */
  --bg: #05070D;
  --surface: #0B1120;
  --inset: #070B15;
  --line: #1B2A47;
  --track: #17233D;
  --ctl: #6580AD;
  --fg: #E6EDFB;
  --muted: #94A3C4;
  --accent: #4F8FFF;
  --on-accent: #04122B;
  --accent-text: #78AEFF;
  --done: #35D6C4;
  --on-done: #03211D;
  --done-text: #4FE0CF;
  --done-bg: #0A2A2B;
  --done-line: #1E6B66;
  --done-fg: #BDF6EF;
  --b3: #A99BFF;
  --cv-bg: #0E1730;
  --cv1: #5B8CFF;
  --cv2: #35D6C4;
  --cv3: #8FB8FF;
  --cv4: #FF8FA3;
  --cv5: #A99BFF;
  --cvd: #243558;
  --font-title: 'Cinzel', 'Times New Roman', serif;
  --font-display: 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 32px 56px;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.view { display: flex; flex-direction: column; gap: 24px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.top-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-family: var(--font-title); font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: 0.02em; text-wrap: balance; }
.pill { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.pill .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); flex: none; }
.pill .lab { color: var(--muted); }
.pill .val { font-family: var(--font-display); font-weight: 700; }
.note { margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }

.hero { display: flex; flex-wrap: wrap; gap: 16px; }
.card { box-sizing: border-box; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.hero .card.pins { flex: 1 1 460px; }
.hero .card.moti { flex: 1 1 320px; }
.card-label { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }
.section-title { margin: 0; font-family: var(--font-title); font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0.02em; }
.count { font-family: var(--font-mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar > i.is-done { background: var(--done); }

.btn { align-self: flex-start; min-height: 48px; padding: 0 22px; border: none; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--ctl); font-weight: 500; min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost:hover { background: var(--inset); filter: none; }

.pin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pin-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; }
.pin-text { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pin-title { font-family: var(--font-display); font-size: 17px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.pin-item.is-done .pin-title { color: var(--muted); }
.pin-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pin-empty { margin: 0; color: var(--muted); font-size: 15px; max-width: 52ch; }
.notice { margin: 0; font-size: 14px; font-weight: 500; color: var(--accent-text); }

#heroMoti { display: flex; flex-direction: column; gap: 16px; }
.quote { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.moti-meta { margin: 0; font-size: 14px; color: var(--muted); }
.moti-add { border-top: 1px solid var(--line); }
.moti-add summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.moti-form { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.moti-form label { font-size: 14px; font-weight: 500; color: var(--muted); }
.moti-row { display: flex; flex-wrap: wrap; gap: 8px; }
.moti-row input { flex: 1 1 160px; }

.cards { display: flex; flex-wrap: wrap; gap: 14px; }
.nav-card { flex: 1 1 280px; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; overflow: hidden; min-height: 44px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; cursor: pointer; }
.nav-card:hover { border-color: var(--accent); }
.nav-card.is-locked { opacity: 0.65; cursor: not-allowed; border-style: dashed; background: var(--inset); }
.nav-card.is-locked:hover { border-color: var(--line); }
.lock-ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.nav-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.nav-tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav-status { font-size: 14px; font-weight: 500; }
.st-done { color: var(--done-text); }
.st-cur { color: var(--accent-text); }
.st-todo { color: var(--muted); }
.nav-name { font-family: var(--font-title); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: 0.02em; }
.nav-desc { font-size: 15px; line-height: 1.45; color: var(--muted); }
.nav-card .bar { width: 100%; height: 6px; }
.nav-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-body { box-sizing: border-box; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px 22px; }
.nav-cover { display: block; width: 100%; height: 132px; object-fit: cover; }
.nav-cover.contain { object-fit: contain; padding: 12px; box-sizing: border-box; background: var(--cv-bg); }
.cover-wrap { flex: 0 1 320px; min-width: 0; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 6px; }
.cover-box { aspect-ratio: 320 / 132; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cover-box .nav-cover { height: 100%; }

.cv-bg { fill: var(--cv-bg); }
.f1 { fill: var(--cv1); }
.f2 { fill: var(--cv2); }
.f3 { fill: var(--cv3); }
.f4 { fill: var(--cv4); }
.f5 { fill: var(--cv5); }
.fd { fill: var(--cvd); }
.s2 { fill: none; stroke: var(--cv2); }
.sd { fill: none; stroke: var(--cvd); }
.stA { stop-color: var(--cv3); }
.stB { stop-color: var(--cv5); }
.stC { stop-color: var(--cv4); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 15px; color: var(--muted); }
.crumb { min-height: 44px; padding: 0 10px; background: none; border: none; border-radius: 10px; color: var(--muted); font-size: 15px; text-decoration: underline; cursor: pointer; }
.crumb:hover { color: var(--fg); }
.crumbs .sep { color: var(--ctl); }
.crumbs .here { color: var(--fg); font-weight: 500; padding: 0 10px; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-text { display: flex; flex-direction: column; gap: 8px; max-width: 680px; min-width: 0; }
h2.big { margin: 0; font-family: var(--font-title); font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: 0.02em; text-wrap: balance; }
.goal { margin: 0; color: var(--muted); }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--done-bg); border: 1px solid var(--done-line); border-radius: 14px; }
.banner span { font-weight: 500; color: var(--done-fg); }
.banner .btn { background: var(--done); color: var(--on-done); min-height: 44px; border-radius: 10px; padding: 0 18px; font-size: 15px; }

.panel { gap: 22px; }
.obj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.obj { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--inset); border: 1px solid var(--line); border-radius: 14px; }
.check { flex: none; width: 44px; height: 44px; padding: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; background: transparent; border: 2px solid var(--ctl); border-radius: 12px; cursor: pointer; }
.check svg { width: 22px; height: 22px; stroke: var(--on-done); opacity: 0; }
.check[aria-pressed="true"] { background: var(--done); border-color: var(--done); }
.check[aria-pressed="true"] svg { opacity: 1; }
.obj-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.obj-title { font-family: var(--font-display); font-size: 19px; line-height: 1.25; font-weight: 700; padding-top: 9px; overflow-wrap: anywhere; }
.obj.is-done .obj-title { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.chip-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.k-ex { color: var(--accent-text); }
.k-tp { color: var(--done-text); }
.top-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sess-btn { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px; font-size: 15px; font-weight: 700; cursor: pointer; }
.sess-btn small { font-size: 13px; font-weight: 500; opacity: 0.85; }
.sheet { box-sizing: border-box; width: min(560px, calc(100% - 24px)); max-height: 88vh; padding: 0; margin: auto; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.5); }
.sheet-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.sheet-bar h2 { margin: 0; font-family: var(--font-title); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
#session { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.badges-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.badges-head h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); opacity: 0.6; }
.badge.on { opacity: 1; border-style: solid; border-color: var(--bc); background: var(--inset); color: var(--fg); }
.badge svg { width: 34px; height: 34px; }
.badge.on svg { color: var(--bc); }
.badge-n { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
canvas#celebCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sheet.celeb { width: min(360px, calc(100% - 32px)); margin: auto; border-radius: 20px; border: 1px solid var(--line); text-align: center; position: fixed; }
.celeb-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 24px 24px; }
.celeb .btn { align-self: center; }
.cel-item { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.cel-medal { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bc); border-radius: 28px; background: var(--inset); color: var(--bc); margin-bottom: 8px; animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.cel-medal svg { width: 52px; height: 52px; }
.cel-k { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); animation: rise 0.4s 0.35s both; }
.cel-n { margin: 0; font-family: var(--font-title); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; animation: rise 0.4s 0.45s both; }
.cel-s { margin: 0; font-size: 14px; color: var(--muted); animation: rise 0.4s 0.5s both; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes pop { 0% { transform: scale(0.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.15) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes barGrow { from { width: 0; } }
.sess-btn.bump { animation: bump 0.5s; }
#sessionDlg .bar i { animation: barGrow 0.7s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.backup { flex-basis: 100%; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.backup h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--fg); }
.export-box { box-sizing: border-box; width: 100%; padding: 10px 12px; background: var(--inset); border: 1px solid var(--ctl); border-radius: 10px; color: var(--fg); font-family: var(--font-mono); font-size: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; }
.stat-lv { flex: 2 1 200px; }
.stat-v { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat-k { font-size: 13px; color: var(--muted); }
.sess-meta { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crit { display: flex; flex-direction: column; gap: 4px; }
.crit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crit-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crit-n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.crit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.crit-b { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 6px 4px; background: none; border: 0; border-radius: 10px; color: var(--fg); font-size: 15px; line-height: 1.35; text-align: left; cursor: pointer; }
.crit-b:hover { background: var(--surface); }
.crit-box { flex: none; width: 24px; height: 24px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ctl); border-radius: 7px; }
.crit-box svg { width: 16px; height: 16px; stroke: var(--on-done); opacity: 0; }
.crit-b[aria-pressed="true"] .crit-box { background: var(--done); border-color: var(--done); }
.crit-b[aria-pressed="true"] .crit-box svg { opacity: 1; }
.crit-ok { margin: 4px 0 0; padding: 10px 12px; background: var(--done-bg); border: 1px solid var(--done-line); border-radius: 10px; font-size: 14px; color: var(--done-fg); }
.acts { display: flex; flex-wrap: wrap; gap: 4px; }
.act { min-height: 44px; padding: 0 12px; background: none; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.act:hover { color: var(--fg); background: var(--surface); border-color: var(--line); }
.act[aria-pressed="true"] { color: var(--accent-text); font-weight: 700; }
.why { border-top: 1px dashed var(--line); padding-top: 2px; }
.why summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.why p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; max-width: 62ch; }
.why p strong { font-weight: 700; }

.add { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.add h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.add-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .moti-row input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 12px; background: var(--inset); border: 1px solid var(--ctl); border-radius: 10px; font-size: 16px; }
.field input::placeholder, .moti-row input::placeholder { color: var(--muted); opacity: 0.8; }
.add .btn { align-self: flex-end; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.foot .ask { color: var(--fg); }

@media (max-width: 640px) {
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 90vh; }
  #session { padding: 14px 16px 24px; }
  .sess-btn { padding: 0 14px; font-size: 14px; }
  .pill .lab { display: none; }
  .hide-m { display: none; }
  .pill { padding: 8px 12px; font-size: 14px; }
  body { padding-block: 20px 40px; }
  .wrap, .view { gap: 16px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: 28px; }
  h2.big { font-size: 24px; }
  .pill { padding: 8px 14px; font-size: 14px; }
  .hero { gap: 12px; }
  .card { padding: 16px; gap: 12px; border-radius: 16px; }
  .section-title { font-size: 20px; }
  .quote { font-size: 18px; }
  #heroMoti { gap: 10px; }
  .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
  .pin-item { padding: 10px 12px; }
  .pin-title { font-size: 16px; }
  .cards { gap: 10px; }
  .nav-card { border-radius: 16px; }
  .nav-body { padding: 14px 16px 16px; gap: 8px; }
  .nav-name { font-size: 19px; }
  .nav-desc { font-size: 14px; line-height: 1.4; }
  .nav-cover { height: 92px; }
  .cover-box { aspect-ratio: 320 / 100; }
  .obj { padding: 12px; gap: 12px; }
  .obj-title { font-size: 17px; padding-top: 10px; }
  .seg button { min-width: 64px; padding: 0 16px; }
  .rub-group h3 { font-size: 17px; }
}

/* Boutons : style "néon sobre" bleu / noir */
.btn, .btn-ghost, .act, .sess-btn, .crumb, .check, .crit-box, .nav-card { transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.btn { background: linear-gradient(180deg, #78AEFF 0%, #3F7DF2 100%); color: var(--on-accent); border: 1px solid rgba(170, 205, 255, 0.55); border-radius: 14px; font-family: var(--font-display); letter-spacing: 0.01em; box-shadow: 0 8px 20px -8px rgba(79, 143, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); filter: none; }
.btn:hover { filter: none; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(79, 143, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:active { transform: translateY(1px) scale(0.98); box-shadow: 0 3px 10px -4px rgba(79, 143, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: rgba(79, 143, 255, 0.08); color: var(--accent-text); border: 1px solid rgba(120, 174, 255, 0.4); box-shadow: none; }
.btn-ghost:hover { background: rgba(79, 143, 255, 0.18); border-color: var(--accent); box-shadow: 0 0 18px -6px rgba(79, 143, 255, 0.9); }
.btn-ghost:active { transform: scale(0.98); box-shadow: none; }
.sess-btn { background: linear-gradient(135deg, #78AEFF 0%, #35D6C4 100%); border: 1px solid rgba(190, 225, 255, 0.55); box-shadow: 0 8px 22px -8px rgba(53, 214, 196, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); letter-spacing: 0.01em; }
.sess-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(53, 214, 196, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.sess-btn:active { transform: translateY(1px) scale(0.98); }
.act { gap: 6px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(79, 143, 255, 0.05); color: var(--muted); }
.act:hover { color: var(--fg); background: rgba(79, 143, 255, 0.14); border-color: rgba(120, 174, 255, 0.55); }
.act:active { transform: scale(0.96); }
.act[aria-pressed="true"] { color: var(--accent-text); background: rgba(79, 143, 255, 0.16); border-color: rgba(120, 174, 255, 0.6); }
.acts { gap: 8px; }
.act:disabled { opacity: 0.6; cursor: wait; }
.crumb { text-decoration: none; color: var(--accent-text); border-radius: 999px; padding: 0 14px; }
.crumb:hover { color: var(--fg); background: rgba(79, 143, 255, 0.14); }
.check { border-radius: 14px; border-color: var(--ctl); background: rgba(79, 143, 255, 0.06); }
.check:hover { border-color: var(--accent-text); box-shadow: 0 0 14px -4px rgba(79, 143, 255, 0.9); }
.check:active { transform: scale(0.94); }
.check[aria-pressed="true"] { background: linear-gradient(145deg, #5BE6D4, #2DB9A8); border-color: #7FF0E2; box-shadow: 0 0 18px -3px rgba(53, 214, 196, 0.75); }
.check[aria-pressed="true"] svg { animation: tick 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.crit-b:active .crit-box { transform: scale(0.88); }
.crit-box { border-radius: 9px; background: rgba(79, 143, 255, 0.06); }
.crit-b[aria-pressed="true"] .crit-box { background: linear-gradient(145deg, #5BE6D4, #2DB9A8); border-color: #7FF0E2; box-shadow: 0 0 12px -2px rgba(53, 214, 196, 0.7); }
.crit-b[aria-pressed="true"] .crit-box svg { animation: tick 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
.nav-card:not(.is-locked):hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 14px 30px -14px rgba(79, 143, 255, 0.9); }
.nav-card:not(.is-locked):active { transform: translateY(0) scale(0.99); }
@keyframes tick { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Parcours 2D / 3D */
.track-box { display: flex; flex-direction: column; gap: 8px; }
.track-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 999px; }
.seg button { min-height: 44px; min-width: 76px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--font-title); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.seg button:hover { color: var(--fg); background: rgba(79, 143, 255, 0.12); }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, #78AEFF 0%, #3F7DF2 100%); color: var(--on-accent); border-color: rgba(170, 205, 255, 0.55); box-shadow: 0 6px 18px -8px rgba(79, 143, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.track-note { margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.track-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid rgba(120, 174, 255, 0.4); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); background: rgba(79, 143, 255, 0.08); }
.rub-group { display: flex; flex-direction: column; gap: 12px; }
.rub-group h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.rub-group h3 span.sub { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }

/* Panneau Ma progression : En ce moment + motivation */
.sess-block { display: flex; flex-direction: column; gap: 8px; }
#session > * { flex-shrink: 0; }
.sess-block h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
#heroPins .pin-list { gap: 8px; }
#heroPins .pin-item { padding: 8px 10px; gap: 10px; }
#heroPins .pin-title { font-size: 15px; }
#heroPins .pin-meta { font-size: 11px; }
#heroPins .pin-empty { font-size: 14px; }
.sess-block.moti { position: relative; padding: 12px 14px 4px; background: var(--inset); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sess-block.moti::before { content: "\201C"; position: absolute; left: 6px; top: -20px; font-family: var(--font-title); font-size: 100px; line-height: 1; color: var(--accent); opacity: 0.10; pointer-events: none; }
.sess-block.moti #heroMoti { gap: 6px; position: relative; }
.sess-block.moti .quote { font-size: 17px; font-weight: 500; font-style: italic; color: var(--fg); }
.sess-block.moti .moti-meta { font-size: 13px; }
.sess-block.moti #heroMoti .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
.sess-block.moti .moti-add { border-top: none; }
.sess-block.moti .moti-add summary { font-size: 13px; }

/* ===== Version chemin (façon appli d'apprentissage) ===== */
body { padding-block: 0 96px; }
.wrap { max-width: 560px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px; padding: 10px 16px; background: rgba(5, 7, 13, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.seg-sm button { min-height: 40px; min-width: 52px; padding: 0 14px; font-size: 15px; }
.top-stats { min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: none; border: 1px solid transparent; border-radius: 12px; color: var(--fg); font-family: var(--font-display); font-size: 16px; font-weight: 700; cursor: pointer; }
.top-stats:hover { border-color: var(--line); background: var(--surface); }
.top-stats .st { display: inline-flex; align-items: center; gap: 5px; }
.top-stats svg { width: 22px; height: 22px; display: block; }
.top-stats .fl { color: #FFB25B; }
.top-stats .fl.off { color: var(--ctl); }
.top-stats .gem { color: var(--accent-text); }
.top-stats.bump { animation: bump 0.5s; }

.lvl-head { margin: 34px 0 4px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.lvl-head:first-child { margin-top: 18px; }
.lvl-head .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lvl-head h2 { margin: 0; font-family: var(--font-title); font-size: 24px; letter-spacing: 0.02em; }
.lvl-head .bar { width: 180px; height: 8px; }

.unit { --u: var(--cv1); margin-top: 22px; }
.unit-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--u) 38%, #0B1120), color-mix(in srgb, var(--u) 16%, #0B1120)); border: 1px solid color-mix(in srgb, var(--u) 55%, transparent); box-shadow: 0 5px 0 color-mix(in srgb, var(--u) 30%, #000); }
.unit-banner .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.unit-banner .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--u) 45%, #fff); }
.unit-banner h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; color: #fff; }
.unit-banner .b { font-size: 13px; color: #C9D5EE; line-height: 1.35; }
.unit-banner .guide { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--u) 60%, transparent); background: rgba(0, 0, 0, 0.25); color: #fff; cursor: pointer; }
.unit-banner .guide svg { width: 24px; height: 24px; }
.unit-banner .guide:hover { background: rgba(0, 0, 0, 0.4); }

.nodes { list-style: none; margin: 0; padding: 30px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nodes li { position: relative; display: flex; flex-direction: column; align-items: center; }
.node { position: relative; width: 74px; height: 70px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--track); color: var(--ctl); box-shadow: 0 7px 0 #0E1628; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.node svg { width: 32px; height: 32px; }
.node:active { transform: translateY(5px); box-shadow: 0 2px 0 #0E1628; }
.node.done { background: linear-gradient(160deg, #5BE6D4, #2DB9A8); color: #03211D; box-shadow: 0 7px 0 #17786E; }
.node.done:active { box-shadow: 0 2px 0 #17786E; }
.node.cur { background: linear-gradient(160deg, color-mix(in srgb, var(--u) 70%, #fff), var(--u)); color: #04122B; box-shadow: 0 7px 0 color-mix(in srgb, var(--u) 55%, #000), 0 0 0 9px var(--bg), 0 0 0 13px color-mix(in srgb, var(--u) 45%, transparent); }
.node.cur:active { box-shadow: 0 2px 0 color-mix(in srgb, var(--u) 55%, #000), 0 0 0 9px var(--bg), 0 0 0 13px color-mix(in srgb, var(--u) 45%, transparent); }
.node.big { width: 92px; height: 86px; }
.node.big svg { width: 40px; height: 40px; }
.node-label { margin-top: 12px; max-width: 170px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); }
.node-label.cur { color: var(--fg); font-weight: 700; }
.bubble { position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 12px; background: var(--surface); border: 2px solid var(--u); color: var(--fg); font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; animation: hover 1.6s ease-in-out infinite; pointer-events: none; z-index: 2; }
.bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--u); }
@keyframes hover { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
.nodes li.has-bubble { margin-top: 30px; }
.path-end { margin: 40px 0 10px; text-align: center; color: var(--muted); font-size: 14px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(7, 11, 21, 0.96); border-top: 1px solid var(--line); }
.tabbar button { flex: 0 1 140px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; border: 2px solid transparent; border-radius: 14px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--accent-text); border-color: rgba(120, 174, 255, 0.45); background: rgba(79, 143, 255, 0.10); }

#lesson { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
#lesson > * { flex-shrink: 0; }
#lesson .obj { padding: 0; background: none; border: none; }
#lesson .obj > .check { display: none; }
#lesson .obj-title { padding-top: 0; font-size: 20px; }
.lesson-k { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lesson-foot { flex: none; display: flex; flex-direction: column; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.lesson-foot .btn { width: 100%; align-self: stretch; min-height: 52px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.lesson-foot .btn.undo { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; text-transform: none; letter-spacing: 0; }
.lesson-foot .hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-align: center; }

.toast { position: fixed; left: 50%; top: 66px; width: max-content; z-index: 60; transform: translate(-50%, -20px); opacity: 0; padding: 10px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
#setView, #cheminView { padding-top: 20px; }
#setView #session { padding: 0; overflow: visible; gap: 16px; }
#setView .sess-block h3, #setView .badges-head h3 { font-size: 18px; }
#setView > .sess-block { padding-top: 16px; border-top: 1px solid var(--line); }
.genre-chip { cursor: default; }
.genre-chip:hover { background: rgba(79, 143, 255, 0.10); }
.top-stats { cursor: default; }
.top-stats:hover { border-color: transparent; background: none; }
.btn.wide { align-self: stretch; width: 100%; min-height: 52px; margin-top: 4px; }
.back { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent-text); font-size: 15px; font-weight: 500; cursor: pointer; }
.back svg { width: 20px; height: 20px; }
.back:hover { background: rgba(79, 143, 255, 0.14); }
#rubCrumbs { gap: 10px; }
.rub-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rub-row { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); color: var(--fg); cursor: pointer; }
.rub-row:hover { border-color: rgba(120, 174, 255, 0.55); }
.rr-ic { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--track); color: var(--ctl); }
.rr-ic svg { width: 20px; height: 20px; }
.rub-row.done .rr-ic { background: linear-gradient(160deg, #5BE6D4, #2DB9A8); color: #03211D; }
.rub-row.cur .rr-ic { background: linear-gradient(160deg, #A8C8FF, var(--accent)); color: #04122B; }
.rub-row.cur { border-color: rgba(120, 174, 255, 0.6); }
.rr-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rr-t strong { font-size: 15px; line-height: 1.25; }
.rr-t small { font-size: 13px; line-height: 1.3; color: var(--muted); }
.rr-s { flex: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rub-row.done .rr-s { color: var(--done-text); }
.rub-row.cur .rr-s { color: var(--accent-text); }
.rub-row.locked { opacity: 0.75; }
#suiviView, #homeView { padding-top: 20px; }
.learn-head { display: flex; flex-direction: column; gap: 12px; }
.lh-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lh-ic { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(79, 143, 255, 0.14); color: var(--accent-text); }
.lh-ic svg { width: 26px; height: 26px; }
.lh-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lh-t small { font-size: 12px; color: var(--muted); }
.lh-t strong { font-size: 16px; }
.sess-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid rgba(120, 174, 255, 0.4); background: linear-gradient(160deg, #10203F, #0B1120 70%); box-shadow: 0 6px 0 #0A1430; }
.sess-card.running { border-color: rgba(53, 214, 196, 0.6); background: linear-gradient(160deg, #0D2E30, #0B1120 70%); box-shadow: 0 6px 0 #082A2A; align-items: center; text-align: center; }
.sc-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sc-lab { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sc-select { min-height: 48px; width: 100%; padding: 0 12px; border: 1px solid var(--ctl); border-radius: 12px; background: var(--inset); color: var(--fg); font: inherit; font-size: 15px; }
.sc-target { font-size: 16px; font-weight: 700; }
.chrono { font-family: var(--font-mono); font-size: 52px; font-weight: 500; line-height: 1.1; letter-spacing: 0.02em; color: var(--done-fg); font-variant-numeric: tabular-nums; }
.big-btn { align-self: stretch; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; }
.big-btn svg { width: 20px; height: 20px; }
.big-btn.stop { background: linear-gradient(180deg, #5BE6D4, #2DB9A8); color: #03211D; border-color: #7FF0E2; box-shadow: 0 8px 20px -8px rgba(53, 214, 196, 0.9); }
.s-block { display: flex; flex-direction: column; gap: 10px; }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.s-head h3 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.s-meta { font-size: 13px; color: var(--muted); text-align: right; }
.s-empty { margin: 0; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.wk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wk-stats div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); }
.wk-stats strong { font-family: var(--font-display); font-size: 20px; }
.wk-stats span { font-size: 12px; color: var(--muted); }
.wk-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 130px; padding: 10px 8px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); }
.wk-col { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.wk-v { font-family: var(--font-mono); font-size: 10px; color: var(--muted); white-space: nowrap; min-height: 13px; }
.wk-bar { flex: 1 1 auto; width: 100%; max-width: 26px; display: flex; align-items: flex-end; border-radius: 6px; background: var(--track); overflow: hidden; }
.wk-bar i { display: block; width: 100%; background: var(--accent); border-radius: 6px; }
.wk-col.today .wk-bar i { background: var(--done); }
.wk-d { font-size: 12px; color: var(--muted); }
.wk-col.today .wk-d { color: var(--fg); font-weight: 700; }
.cur-obj { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; border: 1px solid rgba(120, 174, 255, 0.5); border-radius: 14px; background: var(--surface); color: var(--fg); cursor: pointer; }
.cur-obj .rr-ic { background: linear-gradient(160deg, #A8C8FF, var(--accent)); color: #04122B; }
.jr-list, .pr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jr-day { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.jr-item { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); color: var(--fg); cursor: pointer; }
.jr-dur { flex: none; min-width: 58px; font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.jr-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jr-t strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.jr-t small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-proof { flex: none; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--done-line); color: var(--done-text); font-size: 11px; }
.pr-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); }
.pr-ic { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(169, 155, 255, 0.16); color: var(--b3); }
.pr-ic svg { width: 22px; height: 22px; }
#sheetBody { padding: 14px 16px 20px; overflow-y: auto; }
.sheet-form { display: flex; flex-direction: column; gap: 8px; }
.sheet-form label { font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.sheet-form textarea, .sheet-form input { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--ctl); border-radius: 12px; background: var(--inset); color: var(--fg); font: inherit; font-size: 16px; }
.sheet-form input { min-height: 48px; }
.sheet-form textarea.mono { font-family: var(--font-mono); font-size: 13px; }
.sf-sum { margin: 0; font-size: 15px; }
.sf-hint { margin: 0; font-size: 13px; color: var(--muted); }
.log-detail { display: flex; flex-direction: column; gap: 10px; }
.log-detail pre { margin: 0; max-height: 260px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-detail .ld-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.log-detail p { margin: 0; }
.danger { color: #FF8FA3 !important; }
#path { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.cur-card { gap: 8px; }
.cc-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.cc-ex { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.cc-acts { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 6px; }
.cc-acts .btn { align-self: stretch; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-size: 15px; }
.cc-acts .btn svg { width: 18px; height: 18px; }
.lv-sec { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.lv-sec > summary { list-style: none; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; cursor: pointer; }
.lv-sec > summary::-webkit-details-marker { display: none; }
.lv-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lv-t small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lv-t strong { font-family: var(--font-title); font-size: 20px; letter-spacing: 0.02em; }
.lv-st { flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); display: flex; align-items: center; }
.lv-st svg { width: 18px; height: 18px; color: var(--ctl); }
.pill-ok { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--done-line); color: var(--done-text); font-family: var(--font-body); font-size: 12px; }
.chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s ease; }
.lv-sec[open] > summary .chev { transform: rotate(180deg); }
.lv-sec.locked > summary { opacity: 0.7; }
.lv-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.rb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-row { --u: var(--cv1); width: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); color: var(--fg); cursor: pointer; }
.rb-row:hover { border-color: color-mix(in srgb, var(--u) 60%, transparent); }
.rb-ic { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--u) 22%, #070B15); color: color-mix(in srgb, var(--u) 70%, #fff); }
.rb-ic svg { width: 22px; height: 22px; }
.rb-row.done .rb-ic { background: linear-gradient(160deg, #5BE6D4, #2DB9A8); color: #03211D; }
.rb-row.locked { opacity: 0.6; }
.rb-row.locked .rb-ic { background: var(--track); color: var(--ctl); }
.rb-row.cur { border-color: color-mix(in srgb, var(--u) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--u) 14%, #070B15), #070B15); }
.rb-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-t strong { font-size: 15px; line-height: 1.25; }
.rb-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.rb-meta em { font-style: normal; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--u) 20%, transparent); color: color-mix(in srgb, var(--u) 60%, #fff); }
.rb-meta b { color: var(--accent-text); font-weight: 500; }
.rb-t .bar { height: 5px; }
.rb-go { flex: none; width: 18px; height: 18px; color: var(--muted); }
#rubView { gap: 20px; }
.rub-page { display: flex; flex-direction: column; gap: 22px; }
#rubDyn { display: flex; flex-direction: column; gap: 18px; }
.rp-head { display: flex; align-items: flex-start; gap: 14px; }
.rp-ic { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(79, 143, 255, 0.14); color: var(--accent-text); }
.rp-ic svg { width: 28px; height: 28px; }
.rp-t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-t .goal { font-size: 15px; line-height: 1.45; }
.ok-txt { color: var(--done-text); }
.rp-sub { margin: 4px 0 -6px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.rub-list { gap: 10px; margin: 0; }
.rub-row { min-height: 72px; padding: 12px 14px; }
.add-wrap { border-top: 1px solid var(--line); padding-top: 6px; }
.add-wrap > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; color: var(--accent-text); font-size: 15px; font-weight: 500; }
.add-wrap .add { border-top: none; padding-top: 6px; }
.adapt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid rgba(120, 174, 255, 0.45); border-radius: 12px; background: rgba(79, 143, 255, 0.10); color: var(--accent-text); font-size: 14px; }
.adapt strong { color: var(--fg); }
.adapt.muted { border-color: var(--line); background: var(--inset); color: var(--muted); }
.adapt.is-loading { justify-content: flex-start; gap: 10px; min-height: 44px; }
.dot-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-text); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
#heroPins .pin-item > .check { display: none; }
.genre-chip { min-height: 44px; min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(120, 174, 255, 0.45); border-radius: 999px; background: rgba(79, 143, 255, 0.10); color: var(--accent-text); font-family: var(--font-display); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-chip svg { flex: none; width: 20px; height: 20px; }
.genre-chip:hover { background: rgba(79, 143, 255, 0.2); }
.top-right { display: flex; align-items: center; gap: 2px; }
.top-stats { gap: 10px; padding: 0 8px; }
.gear { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.gear svg { width: 22px; height: 22px; }
.gear:hover, .gear[aria-current="page"] { color: var(--accent-text); border-color: var(--line); background: var(--surface); }
.chemin-head { display: flex; flex-direction: column; gap: 8px; }
.seg-big { align-self: center; }
.seg-big button { min-width: 110px; min-height: 48px; font-size: 20px; }
.genres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-card { --u: var(--cv1); position: relative; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; text-align: left; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--fg); cursor: pointer; box-shadow: 0 5px 0 #0E1628; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.2s ease; }
.g-card:active { transform: translateY(4px); box-shadow: 0 1px 0 #0E1628; }
.g-card:hover { border-color: color-mix(in srgb, var(--u) 60%, transparent); }
.g-card[aria-pressed="true"] { border-color: var(--u); background: linear-gradient(160deg, color-mix(in srgb, var(--u) 22%, #0B1120), #0B1120); box-shadow: 0 5px 0 color-mix(in srgb, var(--u) 40%, #000); }
.g-ic { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: color-mix(in srgb, var(--u) 25%, #070B15); color: color-mix(in srgb, var(--u) 70%, #fff); }
.g-ic svg { width: 30px; height: 30px; }
.g-name { font-family: var(--font-title); font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: 0.02em; }
.g-desc { font-size: 13px; line-height: 1.35; color: var(--muted); }
.g-card .bar { width: 100%; height: 6px; margin-top: auto; }
.g-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.g-tag { position: absolute; top: 12px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--u); color: #04122B; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.g-extra { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.g-extra .g-ic { flex: none; width: 44px; height: 44px; }
.g-extra strong { color: var(--fg); }
@media (max-width: 360px) { .genres { grid-template-columns: 1fr; } }
#setView .foot { flex-direction: column; align-items: flex-start; }
#rubView { padding-top: 12px; }

/* Quand une feuille du bas est ouverte, la page derrière ne défile plus */
body:has(dialog[open]) { overflow: hidden; }
#lesson, #sheetBody { overscroll-behavior: contain; }

/* Durée en heures + minutes, et message d'avertissement dans une session */
.dur { border: none; margin: 6px 0 0; padding: 0; min-width: 0; }
.dur legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.dur-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 10px; margin-top: 6px; }
.dur-row label { font-size: 14px; color: var(--muted); }
.dur-row input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--ctl); border-radius: 12px; background: var(--inset); color: var(--fg); font: inherit; font-size: 16px; }
.sf-hint.warn { color: #FFB25B; }

/* Preuves : vignettes des captures d'écran */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb-wrap { position: relative; }
.thumb { display: block; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.manquante { opacity: 0.4; }
.thumb-x { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; background: none; border: none; cursor: pointer; }
.thumb-x span { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--ctl); color: var(--fg); font-size: 18px; line-height: 1; }
.add-img { align-self: flex-start; display: inline-flex; align-items: center; cursor: pointer; }
.field-k { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.proof { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Capture d'écran agrandie */
.img-view { width: min(900px, calc(100% - 16px)); margin: auto; border-radius: 20px; border-bottom: 1px solid var(--line); }
.img-body { overflow: auto; padding: 10px; max-height: calc(88vh - 64px); overscroll-behavior: contain; }
.img-body img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Valider par la preuve : ce qu'il manque pour valider un objectif */
.lesson-foot .crit-k { margin-bottom: 4px; }
.lesson-foot .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* Le rond à gauche de la fiche montre seulement si l'objectif est validé (on valide en bas de la fiche) */
.check.static { cursor: default; pointer-events: none; }

/* Objectif du jour : une ligne discrète dans « Cette semaine » */
.goal-line { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.goal-txt { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--muted); }
.goal-txt strong { color: var(--fg); font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.ring { flex: none; width: 32px; height: 32px; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent-text); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.4s; }
.goal-line.reached .ring-fg { stroke: var(--done); }

/* Tableau de bord (Profil) */
.dash-h { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.dash-weeks { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; padding: 10px 6px 6px; }
.dash-weeks .wk-d { font-size: 10px; }
.dash-weeks .wk-v { font-size: 9px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: baseline; }
.dash-n { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.dash-v { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.dash-list .bar { grid-column: 1 / -1; }

/* Journal : filtres par catégorie */
.jr-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-chip { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: var(--inset); border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }
.jr-chip span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.jr-chip[aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); background: rgba(79, 143, 255, 0.1); }
.jr-chip-n { min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-size: inherit; color: inherit; }
.jr-chip .jr-chip-n { font-size: 14px; color: inherit; font-family: inherit; }

/* Fiche objectif : les 3 conditions pour valider (maquette v2) */
.cond { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cond li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cond li.ko { color: var(--muted); }
.cd-ic { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 7px; border: 2px solid var(--ctl); }
.cond li.ok .cd-ic { background: var(--done); border-color: var(--done); color: var(--on-done); }
.cd-ic svg { width: 14px; height: 14px; }
.cond-k { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lesson-foot .btn.blocked { opacity: 0.55; box-shadow: none; }
.lesson-foot .btn-ghost.start { margin-top: 8px; text-transform: none; letter-spacing: 0; background: transparent; color: var(--accent-text); border: 1px solid rgba(120, 174, 255, 0.5); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.lesson-foot .btn-ghost.start svg { width: 18px; height: 18px; }
.jr-tag { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); }
.jr-tag.short { border-color: rgba(255, 196, 107, 0.45); color: #FFD796; }

/* Protéger mes données (maquette v2) */
.warn-card { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid rgba(255, 196, 107, 0.45); border-radius: 16px; background: linear-gradient(160deg, #2A2210, #0B1120 75%); }
.wc-ic { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255, 196, 107, 0.14); color: #FFC46B; }
.wc-ic svg { width: 22px; height: 22px; }
.wc-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wc-t strong { font-size: 14px; }
.wc-t small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.warn-card .act { flex: none; color: #FFD796; border-color: rgba(255, 196, 107, 0.45); }
.dc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.dc-list li > span:first-child { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-list strong { font-size: 14px; }
.dc-list small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.dc-list .act, .dc-list .pill-ok { flex: none; }

/* Bilan de la semaine (maquette v2) */
.report { padding: 14px; border: 1px solid rgba(169, 155, 255, 0.4); border-radius: 18px; background: linear-gradient(160deg, #17143A, #0B1120 70%); }
.report .s-head { min-height: 0; }
.rep-phrase { margin: 0; font-size: 15px; line-height: 1.5; }
.rep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.rep-list span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rep-list strong { font-size: 14px; font-weight: 500; line-height: 1.4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 12px; height: 12px; border-radius: 4px; background: var(--track); }
.dots i.on { background: var(--b3); }

/* Premier lancement guidé (maquette v2) */
body.onb-on .tabbar, body.onb-on .topbar { display: none !important; }
#onbView { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
#onbView[hidden] { display: none; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--track); }
.onb-dots i.on { background: var(--accent); }
.onb-k { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#onbView .big { margin: 0; }
#onbView .note { margin: 0; }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.goal-chip { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; }
.goal-chip strong { font-family: var(--font-mono); font-size: 26px; font-weight: 500; }
.goal-chip span { font-size: 12px; color: var(--muted); }
.goal-chip[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(160deg, #10203F, #0B1120); box-shadow: 0 0 0 3px rgba(79, 143, 255, 0.2); }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.how-n { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-weight: 500; }
.how li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.how strong { font-size: 15px; }
.how small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.onb-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 12px 14px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); font-size: 14px; }
.onb-sum span { color: var(--muted); }
.onb-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.onb-nav .btn { min-width: 120px; }
.onb-nav .btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }

/* Compte Google (maquette v2) et bouton officiel « Continuer avec Google » */
.acc-card { display: flex; flex-direction: column; gap: 10px; }
.acc-card .acts { display: flex; gap: 8px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--inset); }
.acc-av { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(160deg, #A99BFF, #5B8CFF); color: #0B1120; font-weight: 700; font-size: 18px; }
.acc-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-t strong { font-size: 15px; }
.acc-t small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dc-list small.err { color: #FFB25B; }
.g-signin { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #8E918F; border-radius: 999px; background: #131314; color: #E3E3E3; font: 500 15px/20px 'Figtree', 'Roboto', Arial, sans-serif; cursor: pointer; }
.g-signin svg { flex: none; width: 20px; height: 20px; }
.g-signin:hover { background: #1c1c1e; }
.g-signin:active { background: #242426; }

/* Accueil : écran de bienvenue avec ou sans compte (maquette v2) */
.welcome { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.wl-logo { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(160deg, #78AEFF, #3F7DF2); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(79, 143, 255, 0.9); }
.wl-logo svg { width: 36px; height: 36px; }
.login-box { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.login-box .btn-ghost { margin-top: 10px; background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.dc-list .bar { display: block; margin-top: 6px; }
.dc-list li > span:first-child .bar { align-self: stretch; }

/* Sessions détectées dans Unity (étape 5.1) */
.un-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.un-item + .un-item { margin-top: 8px; }
.un-ic { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(79, 143, 255, 0.14); color: var(--accent-text); }
.un-ic svg { width: 22px; height: 22px; }
.un-t { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.un-t strong { font-size: 14px; }
.un-t small { font-size: 12px; color: var(--muted); }
.un-acts { display: flex; gap: 6px; margin-left: auto; }
.jr-tag.unity { border-color: rgba(120, 174, 255, 0.5); color: var(--accent-text); }

/* Indices par mots-clés dans la fiche objectif (étape 3.1) */
/* Repères dans la preuve : ambre et pointillé, pour ne jamais être pris pour une condition de validation */
.hints { margin-top: 12px; padding: 12px; border: 1.5px dashed rgba(255, 196, 107, 0.55); border-radius: 14px; background: rgba(255, 196, 107, 0.06); display: flex; flex-direction: column; gap: 8px; }
.hints-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #FFD796; }
.hints-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hint-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hint-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hint-list li.ko { color: var(--muted); }
.hint-ic { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px dashed rgba(255, 196, 107, 0.55); }
.hint-list li.ok .hint-ic { border-style: solid; border-color: #FFC46B; background: rgba(255, 196, 107, 0.18); color: #FFD796; }
.hint-ic svg { width: 12px; height: 12px; }

/* Mode test (?test=1) */
.test-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: #2A2210; border-bottom: 1px solid rgba(255, 196, 107, 0.45); color: #FFD796; font-size: 12px; line-height: 1.35; }
.test-banner a { flex: none; min-height: 44px; display: inline-flex; align-items: center; color: #FFD796; text-decoration: underline; }

/* Mini-quiz (étape 3.2) */
.quiz { display: flex; flex-direction: column; gap: 12px; }
.quiz-k { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.quiz-q { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.quiz-choices { display: flex; flex-direction: column; gap: 8px; }
.quiz-choice { width: 100%; min-height: 48px; padding: 10px 14px; text-align: left; font: inherit; font-size: 14px; line-height: 1.4; color: var(--fg); background: var(--inset); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.quiz-choice[aria-disabled="true"] { cursor: default; }
.quiz-choice.good { border-color: var(--done); background: rgba(80, 200, 140, 0.12); }
.quiz-choice.bad { border-color: rgba(255, 120, 120, 0.7); background: rgba(255, 120, 120, 0.1); }
.quiz-fb, .quiz-res { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; border: 1px solid var(--line); }
.quiz-fb.ok, .quiz-res.ok { border-color: var(--done); }
.quiz-fb.ko, .quiz-res.ko { border-color: rgba(255, 196, 107, 0.45); }

/* Carte de quiz en bas d'une rubrique (étape 3.2) */
.quiz-card { margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.quiz-card.done { border-color: var(--done-line); background: var(--done-bg); }
.quiz-card .rp-sub { margin: 0; }
.qc-ok { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--done-fg); }
.qc-ic { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--done); color: var(--on-done); }
.qc-ic svg { width: 14px; height: 14px; }

/* Quiz : barre de progression et compteur */
.quiz-head { display: flex; align-items: center; gap: 12px; }
.quiz-bar { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.25s; }
.quiz-count { flex: none; font-family: var(--font-mono); font-size: 14px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.badge-ok { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--done-line); background: var(--done-bg); color: var(--done-fg); font-size: 12px; font-weight: 700; }
.badge-ok svg { width: 12px; height: 12px; }
.qc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* « Je connais déjà ça » et objectifs déclarés acquis (étape 4.1) : pointillé, pour ne pas ressembler à « Validé » */
.known-card { margin: 4px 0 8px; padding: 12px 14px; border: 1.5px dashed var(--done-line); border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.known-card p { margin: 0; font-size: 14px; line-height: 1.45; }
.known-card small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.known-note { margin: 0 0 8px; padding: 10px 12px; border: 1.5px dashed var(--done-line); border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--done-fg); }
.rub-row.known { border-style: dashed; border-color: var(--done-line); }
.rub-row.known .rr-ic { background: transparent; border: 1.5px dashed var(--done-text); color: var(--done-text); }
.rub-row.known .rr-s { color: var(--done-text); }

/* Choix de la langue (phase 6) */
/* Bouton de langue, au milieu de la barre du haut */
.lang-btn { flex: none; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(120, 174, 255, 0.45); border-radius: 999px; background: rgba(79, 143, 255, 0.10); color: var(--accent-text); font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; }
.lang-btn:hover { background: rgba(79, 143, 255, 0.2); }
.lang-btn[hidden] { display: none; }
