/* Jour-J · Diagnostic gratuit — couleurs, polices et formes de la maquette validée (5 nov. 2026). */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --bg: #F4F6FB;
  --navy: #10224F;
  --navy-2: #1B3068;
  --muted: #4A5878;
  --line: #E3E7F0;
  --border: #C9D3EA;
  --on-navy: #C9D3EA;
  --orange: #FF6B1A;
  --orange-ink: #C2410C;
  --orange-tint: #FFF1E8;
  --orange-on-navy: #FF8A3D;
  --green: #0F7A4F;
  --green-tint: #E7F4EE;
  --violet: #6B4EE6;
  --violet-ink: #4B32B8;
  --violet-tint: #EEEAFD;
  --red: #B42318;
  --white: #FFFFFF;
  --title: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: clamp(16px, 5.2vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%;background: #F4F6FB/*fb*/; background: var(--bg); }
body {
  margin: 0;background: #F4F6FB/*fb*/; background: var(--bg);color: #10224F/*fb*/; color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a {color: #10224F/*fb*/; color: var(--navy); }
:focus-visible {outline: 3px solid #FF6B1A/*fb*/; outline: 3px solid var(--orange); outline-offset: 2px; }

#app { min-height: 100vh; min-height: 100dvh; }
.view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding-left: 16px; padding-right: 16px;padding-left: max(16px, 0px)/*fb*/; padding-left: max(var(--gut), env(safe-area-inset-left));padding-right: max(16px, 0px)/*fb*/; padding-right: max(var(--gut), env(safe-area-inset-right)); }
.main { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 8px;padding-bottom: calc(0px + 22px)/*fb*/; padding-bottom: calc(env(safe-area-inset-bottom) + 22px); }
.push { margin-top: auto; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- en-tête clair (accueil, résultat) ---------- */
.head { display: flex; align-items: center; gap: 10px;padding-top: calc(0px + 18px)/*fb*/; padding-top: calc(env(safe-area-inset-top) + 18px); padding-bottom: 8px; }
.head .name {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 700; font-size: 16px; }
.logo { display: block; flex: none; }
.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;background: #E3E7F0/*fb*/; background: var(--line);color: #10224F/*fb*/; color: var(--navy); white-space: nowrap; }
.head .pill { margin-left: auto; }

.h1 {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 700; font-size: 27px; font-size: clamp(22px, 6.2vw, 27px); line-height: 1.2; }
.lead { font-size: 15px;color: #4A5878/*fb*/; color: var(--muted); margin-top: 4px; }
.small { font-size: 13px; line-height: 1.45;color: #4A5878/*fb*/; color: var(--muted); }

/* ---------- cartes ---------- */
.card {background: #FFFFFF/*fb*/; background: var(--white); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { font-size: 14px; font-weight: 700; }
.navy {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); border-radius: 20px; padding: 18px 20px; }
.tint {background: #FFF1E8/*fb*/; background: var(--orange-tint); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat b { display: block;font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 34px; font-size: clamp(26px, 8vw, 34px); line-height: 1.05; }
.stat b.o {color: #FF8A3D/*fb*/; color: var(--orange-on-navy); }
.stat span { display: block; font-size: 12.5px;color: #C9D3EA/*fb*/; color: var(--on-navy); margin-top: 4px; line-height: 1.3; }

.plist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plist li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.plist li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px;background: #FF6B1A/*fb*/; background: var(--c, var(--orange)); transform: translateY(1px); }
.plist small {color: #4A5878/*fb*/; color: var(--muted); font-size: 12.5px; margin-left: auto; white-space: nowrap; }

.note-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px;background: #FFFFFF/*fb*/; background: var(--white); font-size: 13px; line-height: 1.4;color: #4A5878/*fb*/; color: var(--muted); }
.note-row svg { flex: none; }
.note-row.ok {background: #E7F4EE/*fb*/; background: var(--green-tint); color: #0B5C3B; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps li span { flex: none; width: 28px; height: 28px; border-radius: 50%;background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- boutons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.25; text-align: center; text-decoration: none; }
.btn-primary {background: #FF6B1A/*fb*/; background: var(--orange);color: #10224F/*fb*/; color: var(--navy); }
.btn-primary:active { background: #E85F12; }
.btn-dark {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); }
.btn-line { background: transparent;color: #10224F/*fb*/; color: var(--navy);border-color: #C9D3EA/*fb*/; border-color: var(--border); }
.btn-link { min-height: 44px; background: none; border: 0;color: #4A5878/*fb*/; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: underline; padding: 8px; }
.btn[disabled] { opacity: .4; cursor: default; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- épreuve : en-tête bleu ---------- */
.ehead {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); position: sticky; top: 0; z-index: 5; }
.ehead .wrap {padding-top: calc(0px + 14px)/*fb*/; padding-top: calc(env(safe-area-inset-top) + 14px); padding-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.ehead .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ehead .sub { font-size: 12px;color: #C9D3EA/*fb*/; color: var(--on-navy); }
.timer {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 30px; font-size: clamp(26px, 8vw, 30px); line-height: 1; font-variant-numeric: tabular-nums; }
.timer.low {color: #FF8A3D/*fb*/; color: var(--orange-on-navy); }
.ehead .end { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;background: #FF6B1A/*fb*/; background: var(--orange);color: #10224F/*fb*/; color: var(--navy); font-weight: 700; font-size: 14px; border: 0; }
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg { display: flex; flex-direction: column; gap: 4px; }
.seg i { display: block; height: 4px; border-radius: 99px; background: #4A5D8F; overflow: hidden; }
.seg i b { display: block; height: 100%;background: #FF6B1A/*fb*/; background: var(--orange); border-radius: 99px; }
.seg span { font-size: 10.5px;color: #C9D3EA/*fb*/; color: var(--on-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg.on span {color: #FFFFFF/*fb*/; color: var(--white); font-weight: 700; }

.qmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; }
.qmeta .coef { font-size: 12px; font-weight: 600;color: #4A5878/*fb*/; color: var(--muted); }
.tag-F {background: #FFF1E8/*fb*/; background: var(--orange-tint);color: #C2410C/*fb*/; color: var(--orange-ink); }
.tag-C {background: #EEEAFD/*fb*/; background: var(--violet-tint);color: #4B32B8/*fb*/; color: var(--violet-ink); }
.tag-M {background: #E7F4EE/*fb*/; background: var(--green-tint);color: #0F7A4F/*fb*/; color: var(--green); }
.ctx { margin: 0;background: #FFFFFF/*fb*/; background: var(--white); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.qtext {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 700; font-size: 21px; font-size: clamp(18px, 5.3vw, 21px); line-height: 1.32; }
.opts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;background: #FFFFFF/*fb*/; background: var(--white);border: 2px solid #C9D3EA/*fb*/; border: 2px solid var(--border); border-radius: 14px; padding: 12px 14px; min-height: 56px; font-size: 15.5px; line-height: 1.4;color: #10224F/*fb*/; color: var(--navy); }
.opt .l { flex: none; width: 30px; height: 30px; border-radius: 50%;border: 2px solid #10224F/*fb*/; border: 2px solid var(--navy); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.opt[aria-pressed="true"] {border-color: #10224F/*fb*/; border-color: var(--navy); background: #E9EEF8; }
.opt[aria-pressed="true"] .l {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); }

/* ---------- récapitulatif ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cell { height: 50px; border-radius: 12px;border: 2px solid #C9D3EA/*fb*/; border: 2px solid var(--border);background: #FFFFFF/*fb*/; background: var(--white); font-weight: 700; font-size: 16px;color: #4A5878/*fb*/; color: var(--muted); }
.cell.done {background: #10224F/*fb*/; background: var(--navy);border-color: #10224F/*fb*/; border-color: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px;color: #4A5878/*fb*/; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px;border: 2px solid #C9D3EA/*fb*/; border: 2px solid var(--border);background: #FFFFFF/*fb*/; background: var(--white); }
.legend .d::before {background: #10224F/*fb*/; background: var(--navy);border-color: #10224F/*fb*/; border-color: var(--navy); }

/* ---------- résultat ---------- */
.score { display: flex; flex-direction: column; gap: 6px; }
.score .lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px;color: #C9D3EA/*fb*/; color: var(--on-navy); }
.score .est { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px;background: #FF6B1A/*fb*/; background: var(--orange);color: #10224F/*fb*/; color: var(--navy); }
.score .big {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 60px; font-size: clamp(46px, 14vw, 60px); line-height: 1; }
.score .big small { font-size: .42em; font-weight: 700;color: #C9D3EA/*fb*/; color: var(--on-navy); }
.score p { font-size: 13px; line-height: 1.45;color: #C9D3EA/*fb*/; color: var(--on-navy); }
.mrow { display: flex; flex-direction: column; gap: 6px; }
.mrow .h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.track { height: 8px; border-radius: 99px;background: #E3E7F0/*fb*/; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; }
.callout { border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start;background: #FFF1E8/*fb*/; background: var(--orange-tint); }
.callout svg { flex: none; }
.callout .t { font-size: 14px; font-weight: 700; }
.callout .d { font-size: 13px; line-height: 1.45;color: #4A5878/*fb*/; color: var(--muted); margin-top: 4px; }
.callout.solid {background: #E7F4EE/*fb*/; background: var(--green-tint); }

.toast { position: fixed; left: 50%;bottom: calc(0px + 20px)/*fb*/; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%);background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 20; width: max-content; max-width: calc(100% - 32px); text-align: center; }
.foot { margin-top: auto; text-align: center; font-size: 12px;color: #4A5878/*fb*/; color: var(--muted);padding-bottom: calc(0px + 16px)/*fb*/; padding-bottom: calc(env(safe-area-inset-bottom) + 16px); }

/* Petits téléphones (iPhone SE, Android 320–360 px) */
@media (max-width: 359px) {
  .opt { padding: 10px 12px; gap: 10px; font-size: 15px; }
  .ehead .end { padding: 0 10px; font-size: 13px; }
  .head .pill { font-size: 10px; padding: 4px 8px; }
  .plist small { display: none; }
}
/* Tablettes et ordinateurs : la colonne reste lisible, on aère */
@media (min-width: 700px) {
  .main { padding-top: 20px; gap: 16px; }
  .head { padding-top: 28px; }
  .opts .opt:hover {border-color: #10224F/*fb*/; border-color: var(--navy); }
  .main > .push { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- pages payantes : offre, clé, débloqué, accueil ---------- */
.iconbtn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; }
.muted-title { font-size: 14px; font-weight: 600;color: #4A5878/*fb*/; color: var(--muted); }
.iconbox { width: 64px; height: 64px; border-radius: 20px;background: #10224F/*fb*/; background: var(--navy); display: grid; place-items: center; }
.keyfield { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px;border: 2px solid #10224F/*fb*/; border: 2px solid var(--navy);background: #FFFFFF/*fb*/; background: var(--white);color: #10224F/*fb*/; color: var(--navy);font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-size: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.keyfield::placeholder { color: #8A96B3; letter-spacing: .06em; }
.keyfield[aria-invalid="true"] {border-color: #B42318/*fb*/; border-color: var(--red); }
.alert { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDECEC;color: #B42318/*fb*/; color: var(--red); font-size: 13.5px; line-height: 1.45; font-weight: 500; }
.price {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 40px; font-size: clamp(32px, 10vw, 40px); line-height: 1.1; }
.on-navy { font-size: 13px; line-height: 1.45;color: #C9D3EA/*fb*/; color: var(--on-navy); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px;background: #FFFFFF/*fb*/; background: var(--white);border: 1px solid #E3E7F0/*fb*/; border: 1px solid var(--line); }
.segtoggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;background: #F4F6FB/*fb*/; background: var(--bg); padding: 4px; border-radius: 12px; }
.segtoggle button { min-height: 44px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 600; background: transparent;color: #10224F/*fb*/; color: var(--navy); }
.segtoggle button[aria-pressed="true"] {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); }
.view.dark {background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); }
.view.dark .card {color: #10224F/*fb*/; color: var(--navy); }
.okcircle { width: 72px; height: 72px; border-radius: 50%;background: #FF6B1A/*fb*/; background: var(--orange); display: grid; place-items: center; }
.countdown {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 44px; font-size: clamp(36px, 11vw, 44px); line-height: 1;color: #FF8A3D/*fb*/; color: var(--orange-on-navy); white-space: nowrap; }
.cardtitle {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-size: 18px !important; }
.minor-big {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 22px; }
[hidden] { display: none !important; }
.badge { align-self: flex-start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;background: #FF6B1A/*fb*/; background: var(--orange);color: #10224F/*fb*/; color: var(--navy); white-space: nowrap; }
.countcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.countcard > .stack { min-width: 0; }
.countcard .badge { white-space: normal; }

/* résultat vivant : barres qui se remplissent, matière prioritaire mise en avant */
.track i { transition: width .9s cubic-bezier(.2,.8,.2,1); }
.msub { font-size: 12px;color: #4A5878/*fb*/; color: var(--muted); }
.mrow.focus .h b:last-child {color: #C2410C/*fb*/; color: var(--orange-ink); }
.callout .d + .d { margin-top: 6px; }
.soon {background: #FFFFFF/*fb*/; background: var(--white);border: 2px solid #FF6B1A/*fb*/; border: 2px solid var(--orange); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.soon .t {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 700; font-size: 17px;color: #10224F/*fb*/; color: var(--navy); }

/* ---------- préparation : modules, leçons, missions ---------- */
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0;border-top: 1px solid #E3E7F0/*fb*/; border-top: 1px solid var(--line); padding: 12px 0;color: #10224F/*fb*/; color: var(--navy); font-size: 14px; }
.lrow:first-of-type { border-top: 0; }
.lrow svg { flex: none; }
.lrow .lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lrow .lt b { font-weight: 700; line-height: 1.3; }
.lrow .num { flex: none; width: 30px; height: 30px; border-radius: 50%;background: #10224F/*fb*/; background: var(--navy);color: #FFFFFF/*fb*/; color: var(--white); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lrow .num.done {background: #0F7A4F/*fb*/; background: var(--green); }
.lrow.off {color: #4A5878/*fb*/; color: var(--muted); }
.lrow.off .num {background: #E3E7F0/*fb*/; background: var(--line);color: #4A5878/*fb*/; color: var(--muted); }
.lrow .track { height: 6px; margin-top: 2px; }
.mission-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note-ok { font-size: 13px; line-height: 1.45; color: #0B5C3B;background: #E7F4EE/*fb*/; background: var(--green-tint); border-radius: 12px; padding: 10px 12px; }
.opt.right {border-color: #0F7A4F/*fb*/; border-color: var(--green);background: #E7F4EE/*fb*/; background: var(--green-tint); }
.opt.right .l {background: #0F7A4F/*fb*/; background: var(--green);border-color: #0F7A4F/*fb*/; border-color: var(--green);color: #FFFFFF/*fb*/; color: var(--white); }
.opt.wrong {border-color: #B42318/*fb*/; border-color: var(--red); background: #FDECEC; }
.opt.wrong .l {background: #B42318/*fb*/; background: var(--red);border-color: #B42318/*fb*/; border-color: var(--red);color: #FFFFFF/*fb*/; color: var(--white); }
.opt[disabled] { cursor: default;color: #10224F/*fb*/; color: var(--navy); }
.fb { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.fb.ok {background: #E7F4EE/*fb*/; background: var(--green-tint); }
.fb.ko {background: #FFF1E8/*fb*/; background: var(--orange-tint); }
.fb .t { font-weight: 700; font-size: 15px; }
.fb .d { font-size: 14px; line-height: 1.5;color: #10224F/*fb*/; color: var(--navy); }
.seg i.right b { background: #3FC48B; }
.seg i.wrong b { background: #FF8A3D; }
.lesson { gap: 12px; font-size: 15px; line-height: 1.6; }
.lesson p, .lesson li {color: #10224F/*fb*/; color: var(--navy); }
.lesson ul, .lesson ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.ltable { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.4; }
.ltable th, .ltable td { text-align: left; vertical-align: top; padding: 8px;border-bottom: 1px solid #E3E7F0/*fb*/; border-bottom: 1px solid var(--line); }
.ltable th { font-weight: 700;background: #F4F6FB/*fb*/; background: var(--bg); }
.answer { width: 100%; border-radius: 14px;border: 2px solid #C9D3EA/*fb*/; border: 2px solid var(--border); padding: 12px 14px; font: inherit; font-size: 16px;color: #10224F/*fb*/; color: var(--navy);background: #FFFFFF/*fb*/; background: var(--white); resize: vertical; }
.answer:focus {border-color: #10224F/*fb*/; border-color: var(--navy); outline: none; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.checkrow input { flex: none; width: 20px; height: 20px; margin-top: 1px;accent-color: #0F7A4F/*fb*/; accent-color: var(--green); }
.view.dark .note-row.dl {background: #1B3068/*fb*/; background: var(--navy-2);color: #C9D3EA/*fb*/; color: var(--on-navy); }
.view.dark .note-row.dl.ok {background: #E7F4EE/*fb*/; background: var(--green-tint); color: #0B5C3B; }

/* leçons en cartes */
.lhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lhead .pill { white-space: normal; text-align: left; }
.lbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.lbars i { display: block; height: 4px; border-radius: 99px;background: #E3E7F0/*fb*/; background: var(--line); }
.lbars i.on {background: #FF6B1A/*fb*/; background: var(--orange); }
.lcard {background: #FFFFFF/*fb*/; background: var(--white); border-radius: 20px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.lcard h2 {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 700; font-size: 23px; font-size: clamp(20px, 5.8vw, 23px); line-height: 1.25; }
.lc-text { font-size: 16px; line-height: 1.55;color: #10224F/*fb*/; color: var(--navy); }
.lcard .steps { font-size: 15px; }
.exs { display: flex; flex-direction: column; gap: 10px; }
.ex {background: #F4F6FB/*fb*/; background: var(--bg);border-left: 4px solid #FF6B1A/*fb*/; border-left: 4px solid var(--orange); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ex-s { font-size: 16px; line-height: 1.5; font-weight: 500;color: #10224F/*fb*/; color: var(--navy); }
.ex-s mark {background: #FFF1E8/*fb*/; background: var(--orange-tint);color: #C2410C/*fb*/; color: var(--orange-ink); font-weight: 700; border-radius: 3px; padding: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ex-to { display: flex; gap: 8px; align-items: baseline; }
.ex-to .arrow {color: #C2410C/*fb*/; color: var(--orange-ink); font-weight: 700; }
.ex-n { font-size: 13px; line-height: 1.45;color: #4A5878/*fb*/; color: var(--muted); }
.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 0;border-top: 1px solid #E3E7F0/*fb*/; border-top: 1px solid var(--line); }
.kv-row:first-child { border-top: 0; padding-top: 0; }
.kv-row b { font-size: 15px; }
.kv-d { font-size: 13.5px;color: #4A5878/*fb*/; color: var(--muted); line-height: 1.4; }
.kv-e { font-size: 14.5px; font-weight: 500;color: #C2410C/*fb*/; color: var(--orange-ink); }
.verdict { display: flex; align-items: center; gap: 8px; align-self: flex-start;background: #E7F4EE/*fb*/; background: var(--green-tint); color: #0B5C3B; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 6px 12px; }
.verdict svg { flex: none; }
.tip {background: #FFF1E8/*fb*/; background: var(--orange-tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5;color: #10224F/*fb*/; color: var(--navy); }
.tip b {color: #C2410C/*fb*/; color: var(--orange-ink); }
.more summary { cursor: pointer; font-weight: 700; font-size: 14px;color: #10224F/*fb*/; color: var(--navy); text-decoration: underline; min-height: 44px; display: flex; align-items: center; }
.more .ltable th { width: 40%; }

/* « C'est débloqué ! » : le rond apparaît, la coche se dessine, le titre monte (moins d'une seconde) */
.okcircle.pop { animation: jj-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.okcircle.pop path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: jj-draw .4s .3s ease-out forwards; }
.h1.rise { animation: jj-rise .5s .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes jj-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jj-draw { to { stroke-dashoffset: 0; } }
@keyframes jj-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .okcircle.pop, .h1.rise { animation: none; }
  .okcircle.pop path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- changement d'écran : fondu enchaîné natif du navigateur (View Transitions), sans bibliothèque ----------
   La barre du haut et la barre bleue du test restent en place ; l'écran se fond et glisse de 12 px :
   vers la gauche pour « Suivante », vers la droite pour « Précédente » et « Retour », vers le haut ailleurs.
   Navigateur trop ancien ou téléphone réglé sur « moins d'animations » : changement direct. */
.head { view-transition-name: topbar; }
.ehead { view-transition-name: testbar; }
::view-transition-group(*) { animation-duration: .22s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
::view-transition-old(root) { animation: vt-out-up .14s cubic-bezier(.7,0,.84,0) both; }
::view-transition-new(root) { animation: vt-in-up .22s cubic-bezier(.16,1,.3,1) both; }
html[data-dir="next"]::view-transition-old(root) { animation-name: vt-out-left; }
html[data-dir="next"]::view-transition-new(root) { animation-name: vt-in-left; }
html[data-dir="prev"]::view-transition-old(root) { animation-name: vt-out-right; }
html[data-dir="prev"]::view-transition-new(root) { animation-name: vt-in-right; }
@keyframes vt-out-up { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-12px); } }
@keyframes vt-in-left { from { opacity: 0; transform: translateX(12px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(12px); } }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(-12px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- compatibilité : anciens téléphones Android ----------
   Écran de démarrage (remplacé par l'appli dès qu'elle s'affiche) et aide si rien ne se passe. */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; color: #10224F; }
.boot img { border-radius: 16px; margin-bottom: 12px; }
.boot-title {font-family: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif/*fb*/; font-family: var(--title); font-weight: 800; font-size: 24px; margin: 0 0 4px; }
.boot-wait { color: #4A5878; font-size: 14px; margin: 0; }
.boot-help { max-width: 420px; margin-top: 24px; text-align: left; background: #FFFFFF; border-radius: 16px; padding: 16px; font-size: 14px; line-height: 1.5; }
.boot-help p { margin: 0 0 8px; }
.boot-help ol { margin: 0 0 8px; padding-left: 20px; }
.boot-help li { margin-bottom: 6px; }
.boot-h { font-weight: 700; font-size: 16px; }
/* L'aide apparaît d'elle-même après 8 secondes si l'appli n'a pas démarré (même sans JavaScript).
   Les navigateurs qui ne savent pas animer la montrent tout de suite. */
@supports (animation-name: jjboot) {
  .boot-help { visibility: hidden; animation: jj-boot-help 0s 8s forwards; }
  .boot-help.show { visibility: visible; animation: none; }
}
@keyframes jj-boot-help { to { visibility: visible; } }
/* Anciens Chrome (avant 2020) : pas d'espacement « gap » dans les blocs flexibles, on le remplace par des marges. */
@supports not (inset: 0) {
  .main > * + *, .stack > * + *, .card > * + *, .lcard > * + *, .exs > * + *, .callout > div > * + *, .soon > * + *, .score > * + *, .mrow > * + *, .ehead .wrap > * + * { margin-top: 10px; }
  .head > * + *, .note-row > * + *, .steps li > * + *, .ticks li > * + *, .opt > * + *, .btn > * + *, .plist li > * + *, .callout > * + *, .lrow > * + *, .verdict > * + *, .ex-to > * + * { margin-left: 10px; }
  .opts > * + *, .ticks > * + *, .steps > * + *, .plist > * + * { margin-top: 10px; }
  .chips > *, .legend > * { margin: 0 6px 6px 0; }
}


/* ---------- secours anciens Android : texte à côté d'une pastille, et centrage sans grille ---------- */
@supports not (inset: 0) {
  .steps li span { margin-right: 12px; }
  .plist li::before, .ticks li svg, .note-row svg, .verdict svg, .btn svg { margin-right: 10px; }
  .callout svg { margin-right: 12px; }
  .head .logo { margin-right: 10px; }
}

/* ---------- secours grille : Chrome d'avant 2017 (pas de « display: grid ») ---------- */
@supports not (display: grid) {
  .stats, .duo, .segs, .segtoggle, .lbars, .grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
  .stats > *, .duo > *, .segs > *, .segtoggle > *, .lbars > * { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; }
  .stats > * + *, .duo > * + *, .segs > * + *, .segtoggle > * + *, .lbars > * + * { margin-left: 8px; }
  .grid > * { width: 18%; margin: 0 2% 8px 0; }
  .steps li span, .opt .l, .okcircle, .iconbox, .iconbtn, .lrow .num, .cell { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }
}
/* fin secours grille */
