/* aket — habillage de l'app. Aplats francs, surfaces blanches, verdicts qui claquent. */
:root { --ts: 1; }
/* ---- Le design system : une échelle de texte, une d'arrondis. --ts suit la taille de texte réglée sur
   l'iPhone (Réglages › Luminosité et affichage › Taille du texte), plafonnée à 1,4 : lue au lancement. ---- */
.app {
  --fs-2xs: calc(11px * var(--ts)); --fs-xs: calc(12px * var(--ts)); --fs-sm: calc(13px * var(--ts)); --fs-md: calc(14px * var(--ts));
  --fs-base: calc(15px * var(--ts)); --fs-lg: calc(17px * var(--ts)); --fs-xl: calc(20px * var(--ts)); --fs-2xl: calc(24px * var(--ts));
  --fs-3xl: calc(28px * var(--ts)); --fs-4xl: calc(34px * var(--ts)); --fs-5xl: calc(40px * var(--ts));
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-3xl: 28px; --r-pill: 999px;
}
.app {
  --a-navy: #12403A; --a-navy2: #1C5B52; --a-navy-dark: #0A2B27;
  --a-red: #E29A2A; --a-red2: #B57614; --a-red-soft: #FBEFD6; --a-onacc: #12403A;
  --a-err: #D1453B; --a-err2: #A32E26; --a-err-soft: #FBE4E1;
  --a-bg: #FCF7EE; --a-sur: #FFFFFF; --a-rail: #F1EADB; --a-ink: #16302C; --a-ink2: #506661; --a-ink3: #5F7470; --a-line: #E6DFD0; --a-line2: #F0EADC;
  --a-green: #2FA36C; --a-green2: #1B7048; --a-green-soft: #E1F2E8; --a-free: #D08A1E; --a-free-ink: #9A6212; --a-free-bg: #FDF0D5; --a-yellow: #F3C63F; --a-yellow-soft: #FDF3D2;
  --a-plum: #6B4A87; --a-blue: #2E6E8E; --a-terra: #C0562C; --a-teal: #17857C;
  --a-sh: 0 3px 0 #E6DFD0;
  --a-acc: var(--a-red); --a-ok: var(--a-green); --a-coral: var(--a-err);
  width: 100%; height: 100%; background: var(--a-bg); color: var(--a-ink); overflow: hidden; display: flex; flex-direction: column;
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; position: relative; -webkit-font-smoothing: antialiased;
}
.app * { box-sizing: border-box; }
.app { max-width: 100%; min-width: 0; }
.app .screen { min-width: 0; }
.app .screen > * { min-width: 0; max-width: 100%; }
.app .tabbar { min-width: 0; }
.app .screen { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 58px 18px 40px; scrollbar-width: none; container-type: size; container-name: ecran; }
.app .screen::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .app .screen { padding-left: max(18px, calc(50% - 300px)); padding-right: max(18px, calc(50% - 300px)); } }
.app .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--a-sur); padding: 6px 10px 22px; border-top: 3px solid var(--a-line2); }
.app .tabbar button { background: none; border: 0; font: inherit; font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 2px; }
.app .tabbar button .ic { width: 44px; height: 26px; border-radius: var(--r-md); display: grid; place-items: center; }
.app .tabbar button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app .tabbar button.on { color: var(--a-free-ink); }
.app .tabbar button.on .ic { background: var(--a-red-soft); }
.app button:focus-visible { outline: 3px solid var(--a-blue); outline-offset: 2px; }

.app h2 { font-family: 'Outfit', 'Nunito', Arial, sans-serif; font-size: var(--fs-3xl); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
.app h3 { font-family: 'Outfit', 'Nunito', Arial, sans-serif; font-size: var(--fs-lg); font-weight: 800; margin: 0; }
.app h2:has(mark), .app h3:has(mark) { line-height: 1.46; }
.app mark { background: var(--a-red); color: var(--a-onacc); padding: 0 7px; border-radius: var(--r-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.app .small { font-size: var(--fs-sm); color: var(--a-ink2); line-height: 1.5; margin: 0; }
.app .cap { font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--a-ink3); }
.app .btn { width: 100%; border: 0; border-radius: var(--r-lg); padding: 15px; font: inherit; font-weight: 900; font-size: var(--fs-lg); cursor: pointer; background: var(--a-red); color: var(--a-onacc); box-shadow: 0 4px 0 var(--a-red2); transition: transform .08s, box-shadow .08s; }
.app .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--a-red2); }
.app .btn:disabled { background: #EDE6D6; color: var(--a-ink3); box-shadow: none; cursor: default; }
.app .btn.ghost { background: var(--a-sur); color: var(--a-navy); box-shadow: 0 4px 0 var(--a-line); border: 2px solid var(--a-line); }
.app .btn.ghost:active { box-shadow: 0 1px 0 var(--a-line); }
.app .btn.coral { background: var(--a-navy); box-shadow: 0 4px 0 var(--a-navy-dark); }
.app .btn.coral:active { box-shadow: 0 1px 0 var(--a-navy-dark); }
.card { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); }
.mono, .amt { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
p { margin: 0; }

/* ---- accueil ---- */
.hometop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.hometop .hi { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 700; color: var(--a-navy); }
.hometop .hi b { color: var(--a-red2); font-weight: 900; }
/* la question en grand, sur fond vert : l'ancienne « question du jour », reprise pour chaque question du quiz */
.qhero { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; margin-bottom: 18px; border-radius: var(--r-3xl); padding: 20px 20px 22px; background: var(--a-navy); color: #fff; box-shadow: 0 18px 40px -14px rgba(30,42,74,.55), 0 6px 0 var(--a-navy-dark); }
.qhero.entre { animation: pop .4s cubic-bezier(.2,.9,.3,1.1); }
.qhero::after { content: "?"; position: absolute; right: -14px; bottom: -60px; font-family: 'Outfit', sans-serif; font-size: 200px; font-weight: 900; color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }
.qhero .cap { color: var(--a-yellow); position: relative; }
.qhero .dq { font-size: var(--fs-base); line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.8); position: relative; }
.qhero .dqq { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); line-height: 1.22; font-weight: 700; letter-spacing: -.01em; position: relative; }
@keyframes pop { from { transform: scale(.94) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qhero.entre { animation: none; } }
/* l'écran de question occupe toute la hauteur : la carte en haut, les réponses et « Vérifier » descendent sous le pouce */
.qvue { min-height: 100cqh; display: flex; flex-direction: column; }
.qvue .qhero { margin-bottom: 18px; }
.qvue > .esp { display: block; flex: 1 1 0; min-height: 0; max-height: 30px; }   /* l'écart carte → réponses grandit un peu, sans plus */
.qvue > .opts { gap: 12px; }
/* grands écrans : la question prend la place libre, au lieu d'un vide entre la carte et les réponses */
@container ecran (min-height: 700px) {
  .qhero { padding: 26px 24px 28px; gap: 14px; }
  .qhero .dq { font-size: var(--fs-base); line-height: 1.5; }
  .qhero .dqq { font-size: var(--fs-3xl); line-height: 1.18; }
  .qhero::after { font-size: 230px; bottom: -70px; }
}
/* carte resserrée, seulement quand l'écran déborderait sans elle (mesuré à l'affichage) */
.qhero.serre { padding: 14px 16px 16px; gap: 7px; margin-bottom: 14px; border-radius: var(--r-2xl); }
.qhero.serre .dq { font-size: var(--fs-sm); line-height: 1.4; }
.qhero.serre .dqq { font-size: var(--fs-xl); line-height: 1.2; }
.qhero.serre::after { font-size: 150px; bottom: -44px; }
/* écrans courts (iPhone SE) : tout le quiz se resserre, la carte garde sa hiérarchie */
@container ecran (max-height: 640px) {
  .qvue .lhead { margin-bottom: 12px; }
  .qvue .qhero.serre { padding: 12px 14px 14px; gap: 6px; margin-bottom: 10px; }
  .qvue .qhero.serre .dq { font-size: var(--fs-sm); line-height: 1.38; }
  .qvue .qhero.serre .dqq { font-size: var(--fs-lg); }
  .qvue > .opts { gap: 8px; }
  .qvue .opt { padding: 10px 12px; font-size: var(--fs-md); border-radius: var(--r-lg); }
  .qvue .footer { margin-top: 12px; }
}
.peek { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); padding: 16px 0 12px; }
.peek svg { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .peek svg { animation: none; } }
.sect .small { font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); }
.streak { display: flex; align-items: center; gap: 6px; background: var(--a-yellow-soft); color: #8A5E10; border: 2px solid var(--a-yellow); border-radius: var(--r-pill); padding: 5px 12px 5px 8px; font-size: var(--fs-sm); font-weight: 900; }
.streak i { width: 16px; height: 16px; border-radius: 50%; background: var(--a-yellow); display: inline-block; }
.sect { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; }
.sect a { font-size: var(--fs-sm); font-weight: 900; color: var(--a-red2); text-decoration: none; }
.app p a[href] { color: var(--a-blue); font-weight: 800; text-underline-offset: 3px; }
.pcard { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--a-sh); background: var(--a-sur); margin-bottom: 14px; }
.pcard .head { background: var(--c); color: #fff; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.pcard .head .cap { color: rgba(255,255,255,.7); display: block; margin-bottom: 3px; }
.pcard .head h3 { color: #fff; font-size: var(--fs-xl); }
.pcard .head .sub { font-size: var(--fs-xs); color: rgba(255,255,255,.8); margin-top: 3px; font-weight: 700; }
.ring { width: 48px; height: 48px; position: relative; }
.ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bgc { stroke: rgba(255,255,255,.25); }
.ring .fgc { stroke: #fff; stroke-linecap: round; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-2xs); font-weight: 900; }
.pcard .lock-pill { background: #fff; color: var(--c); border-radius: var(--r-pill); padding: 7px 13px; font-size: var(--fs-xs); font-weight: 900; }
.rows { padding: 6px 16px; }
.row-l { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px solid var(--a-line2); background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.row-l:last-child { border-bottom: 0; }
.dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.dot svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.row-l.done .dot { background: var(--a-green); }
.row-l.now .dot { border: 3px solid var(--a-red); background: var(--a-red-soft); }
.row-l.lock .dot { border: 2.5px solid var(--a-line); }
.row-l.lock .t, .row-l.lock .s { color: var(--a-ink3); }
.row-l .t { font-size: var(--fs-base); font-weight: 800; line-height: 1.25; }
.row-l .s { font-size: var(--fs-xs); color: var(--a-ink2); margin-top: 1px; font-weight: 600; }
.row-l .r { font-size: var(--fs-xs); color: var(--a-ink3); font-weight: 900; }
.row-l.now .r { color: var(--a-onacc); background: var(--a-red); border-radius: var(--r-pill); padding: 6px 11px; box-shadow: 0 2px 0 var(--a-red2); }

/* ---- mondes repliables ---- */
/* ---- grille des parcours ---- */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ptile { display: flex; flex-direction: column; gap: 3px; background: var(--a-sur); border: 0; border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 11px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 0; transition: transform .08s, opacity .2s; }
.ptile:active { transform: translateY(2px); }
.ptile .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.ptile .ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; flex: none; }
.ptile .ic svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ptile .st { font-size: var(--fs-2xs); letter-spacing: .05em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 3px 6px; white-space: nowrap; }
.ptile .st.lock { background: var(--a-line2); color: var(--a-ink3); }
.ptile .st.now { background: var(--a-red); color: var(--a-onacc); }
.ptile .st.done { background: var(--a-green); display: grid; place-items: center; width: 19px; height: 19px; padding: 0; }
.ptile .st.done svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.ptile .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.15; margin-top: auto; }
.ptile .s { font-size: var(--fs-2xs); color: var(--a-ink2); font-weight: 700; line-height: 1.25; }
.ptile.now { box-shadow: 0 3px 0 var(--a-red); }
.ptile.off { opacity: .45; filter: grayscale(.9); }
.ptile.off:active { opacity: .6; }
.pcell { position: relative; display: grid; }
.pcell .ptile { width: 100%; }
.padd { position: absolute; top: 10px; right: 11px; z-index: 2; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #fff; border: 2px solid var(--a-red); display: grid; place-items: center; cursor: pointer; }
.padd svg { width: 12px; height: 12px; stroke: var(--a-red); fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .12s; }
.padd:active { background: var(--a-red); }
.padd:active svg { stroke: var(--a-onacc); opacity: 1; }

/* ---- détail d'un parcours ---- */
.steps { display: flex; flex-direction: column; gap: 18px; }
.step-card { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.step-card.cur { box-shadow: 0 3px 0 var(--a-red); }
.step-card .sh { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.step-card .n { width: 26px; height: 26px; border-radius: 50%; background: var(--a-line2); color: var(--a-ink3); display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-sm); }
.step-card .n svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.step-card.ok .n { background: var(--a-green); color: #fff; }
.step-card.cur .n { background: var(--a-red); color: var(--a-onacc); }
.step-card .t { font-size: var(--fs-base); font-weight: 800; line-height: 1.25; }
.step-card .s { font-size: var(--fs-sm); color: var(--a-ink2); font-weight: 600; line-height: 1.45; }
.sfree { background: var(--a-free-bg); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fs-sm); line-height: 1.45; color: var(--a-navy); font-weight: 700; }
.sfree .ch { background: #fff; }
.sfree .gch { display: block; margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(18,64,58,.28); font-weight: 800; color: var(--a-ink); }
.verrou-cta .voile { color: var(--a-ocre, var(--a-terra)); letter-spacing: 1px; font-variant-numeric: tabular-nums; filter: blur(4px); user-select: none; -webkit-user-select: none; }
.rappels { display: grid; gap: 8px; }
.rappel { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; background: var(--a-sur, #fff); border: 1.5px solid var(--a-line, var(--a-line)); border-radius: var(--r-lg); padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.rappel .q { display: grid; min-width: 72px; }
.rappel .q b { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); }
.rappel .q span { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); }
.rappel .tx { display: grid; gap: 2px; }
.rappel .tx b { font-size: var(--fs-md); font-weight: 800; color: var(--a-ink); }
.rappel .tx span { font-size: var(--fs-xs); line-height: 1.45; color: var(--a-ink2); font-weight: 600; }
.sfree .cap { display: flex; align-items: center; gap: 5px; color: var(--a-free-ink); margin-bottom: 3px; }
.sfree .cap svg { width: 13px; height: 13px; stroke: var(--a-free); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slock { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--a-ink3); font-weight: 700; }
.slock .lk { font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; color: #fff; background: var(--a-navy); border-radius: var(--r-pill); padding: 4px 7px; flex: none; }
.steps { padding: 4px 0 8px; }
.step-row { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 2px solid var(--a-line2); }
.step-row:last-child { border-bottom: 0; }
.step-row .n { width: 26px; height: 26px; border-radius: 50%; background: var(--a-line2); color: var(--a-ink3); display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-sm); }
.step-row .n svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.step-row.ok .n { background: var(--a-green); color: #fff; }
.step-row.cur .n { background: var(--a-red); color: var(--a-onacc); }
.step-row .t { font-size: var(--fs-md); font-weight: 800; line-height: 1.25; }
.step-row .s { font-size: var(--fs-sm); color: var(--a-ink2); font-weight: 600; line-height: 1.45; }
.step-row .tag-s { display: inline-block; margin-top: 5px; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 900; color: var(--a-navy2); background: var(--a-free-bg); border-radius: var(--r-pill); padding: 3px 7px; }
.outil { padding: 13px 16px; margin-top: 10px; }
.outil .cap { display: block; margin-bottom: 3px; }
.outil b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }

/* ---- leçon ---- */
.lhead { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 22px; }
.lhead .x { background: var(--a-sur); box-shadow: var(--a-sh); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: var(--fs-2xl); color: var(--a-ink2); cursor: pointer; display: grid; place-items: center; padding: 0; line-height: 1; font-weight: 700; }
.prog { height: 14px; background: var(--a-line2); border-radius: var(--r-pill); position: relative; overflow: hidden; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--a-green); border-radius: var(--r-pill); transition: width .3s; }
.lhead .n { font-size: var(--fs-xs); font-weight: 900; color: var(--a-ink3); }
.qcap { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; background: var(--a-sur); box-shadow: var(--a-sh); border-radius: var(--r-pill); padding: 6px 12px 6px 8px; }
.qcap .sw { width: 10px; height: 10px; border-radius: 50%; background: var(--a-red); }
.kidpic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #4C5FB0; vertical-align: middle; margin-right: 7px; flex: none; }
.kidpic svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qcap .cap { color: var(--a-ink2); }
.qtext { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin-bottom: 20px; color: var(--a-navy); }
.persona { display: flex; gap: 12px; align-items: flex-start; background: var(--a-sur); box-shadow: var(--a-sh); border-radius: var(--r-xl); padding: 13px; margin-bottom: 14px; font-size: var(--fs-md); line-height: 1.5; color: var(--a-ink2); font-weight: 600; }
.persona .av { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--a-navy); color: #fff; display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; flex: none; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: 1fr 24px; gap: 12px; align-items: center; background: var(--a-sur); border: 2.5px solid var(--a-line); border-radius: var(--r-lg); padding: 14px 15px; font: inherit; font-size: var(--fs-base); font-weight: 700; text-align: left; cursor: pointer; color: var(--a-navy); box-shadow: 0 3px 0 var(--a-line); transition: transform .08s, box-shadow .08s; }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--a-line); }
.opt .rad { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--a-line); justify-self: end; }
.opt.sel { border-color: var(--a-navy); background: #E6EFEC; box-shadow: 0 3px 0 var(--a-navy); }
.opt.sel .rad { border-color: var(--a-navy); background: var(--a-navy); box-shadow: inset 0 0 0 3px #E6EFEC; }
.opt.ok { border-color: var(--a-green); background: var(--a-green-soft); color: var(--a-green2); box-shadow: 0 3px 0 var(--a-green); }
.opt.ok .rad { border-color: var(--a-green); background: var(--a-green); }
.opt.ko { border-color: var(--a-err); background: var(--a-err-soft); color: var(--a-err2); box-shadow: 0 3px 0 var(--a-err); }
.opt.ko .rad { border-color: var(--a-err); background: var(--a-err); }
.opt:disabled { cursor: default; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .opt, .match .opt { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 18px 12px; }
.grid2 .opt .rad, .match .opt .rad { display: none; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .opt { font-size: var(--fs-md); min-height: 62px; padding: 12px; }
.match .opt.paired { opacity: .35; }
.footer { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
/* La demande de confirmation avant d'abandonner un quiz : elle prend la place
   du bouton « Vérifier », sans fenêtre par-dessus. */
.footer.qquit { gap: 10px; background: var(--a-sur); box-shadow: var(--a-sh); border-radius: var(--r-xl); padding: 14px; }
.footer.qquit .small { margin: 0 2px 2px; }
/* L'espacement n'est pas décoratif : les boutons portent une marche de 4 px en
   box-shadow, qui ne compte pas dans la mise en page. Sans écart, celle du premier
   recouvrait le second — visible dans le bilan, seul endroit qui en empile deux. */

.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80%; display: flex; flex-direction: column; background: var(--a-green-soft); border-radius: var(--r-3xl) var(--r-3xl) 0 0; z-index: 4; box-shadow: 0 -16px 44px rgba(18,64,58,.26); animation: up .28s cubic-bezier(.2,.8,.2,1); border-top: 4px solid var(--a-green); }
.sheet-head { padding: 16px 20px 8px; flex: none; }
.sheet-body { padding: 0 20px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-foot { padding: 10px 20px 26px; flex: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(30,42,74,.08); }
.sheet.ko { background: var(--a-err-soft); border-top-color: var(--a-err); }
.sheet .verdict { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 900; color: var(--a-green2); }
.sheet .verdict i { width: 30px; height: 30px; border-radius: 50%; background: var(--a-green); display: grid; place-items: center; flex: none; }
.sheet .verdict svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sheet.ko .verdict { color: var(--a-err2); }
.sheet.ko .verdict i { background: var(--a-err); }
.sheet .why { font-size: var(--fs-md); line-height: 1.55; color: var(--a-navy); font-weight: 600; margin: 0; }
.sheet .foryou { font-size: var(--fs-md); line-height: 1.5; color: var(--a-ink2); background: #fff; border-radius: var(--r-lg); padding: 12px 14px; font-weight: 600; }
.sheet .foryou b { display: block; font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--a-red); margin-bottom: 4px; font-weight: 900; }
.sheet .src { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); line-height: 1.5; color: var(--a-ink3); }
.sheet .btn.ghost { background: #fff; }
.hook { border: 0; border-radius: var(--r-xl); padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; background: var(--a-navy); color: #fff; font: inherit; text-align: left; cursor: pointer; width: 100%; box-shadow: 0 4px 0 var(--a-navy-dark); }
.hook .cap { display: block; margin-bottom: 3px; color: var(--a-yellow); }
.hook .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hook .small { color: rgba(255,255,255,.75); }
.hook .p { background: var(--a-red); color: var(--a-onacc); border-radius: var(--r-pill); padding: 6px 10px; font-size: var(--fs-2xs); font-weight: 900; white-space: nowrap; box-shadow: 0 2px 0 var(--a-red2); margin-top: 2px; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-sm); font-weight: 900; color: var(--a-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 12px; display: inline-block; }

/* ---- fin de leçon ---- */
.end { display: flex; flex-direction: column; gap: 14px; }
.end .hero { background: var(--a-navy); color: #fff; border-radius: var(--r-2xl); padding: 24px 20px; text-align: center; box-shadow: 0 5px 0 var(--a-navy-dark); }
.end .hero .cap { color: var(--a-yellow); }
.end .big { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; line-height: 1.1; margin: 8px 0 16px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.kpi { background: rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 10px 6px; }
.kpi .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; line-height: 1; }
.kpi .l { font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 900; margin-top: 4px; }
.learned { padding: 14px 16px; font-size: var(--fs-md); line-height: 1.5; color: var(--a-ink2); font-weight: 600; }
.learned .cap { margin-bottom: 6px; display: block; }
.learned p { padding: 8px 0; border-bottom: 2px solid var(--a-line2); display: flex; gap: 10px; }
.learned p::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--a-green); flex: none; margin-top: 6px; }
.learned p:last-child { border-bottom: 0; }
.learned b { color: var(--a-navy); font-weight: 900; }

/* ---- outils, simulateur, bilan ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field.compact { margin-bottom: 12px; gap: 5px; }
.field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 30px; margin: 2px 0; background: transparent; cursor: pointer; }
.field input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--a-red) var(--p, 50%), var(--a-line) var(--p, 50%)); }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--a-red); box-shadow: 0 2px 0 var(--a-red2); }
.field input[type=range]::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--a-red) var(--p, 50%), var(--a-line) var(--p, 50%)); }
.field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--a-red); }
.amtrow { display: flex; justify-content: space-between; align-items: baseline; }
.amtrow .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-red2); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--a-line); background: var(--a-sur); border-radius: var(--r-pill); padding: 9px 13px; font: inherit; font-size: var(--fs-sm); font-weight: 800; cursor: pointer; color: var(--a-ink2); box-shadow: 0 2px 0 var(--a-line); }
.chip.on { background: var(--a-navy); border-color: var(--a-navy); color: #fff; box-shadow: 0 2px 0 var(--a-navy-dark); }
/* Le doigt vise 44 px : c'est le minimum d'Apple, et le nôtre. Les puces et les
   petits boutons ronds montent tous à cette hauteur, texte centré, dessin inchangé. */
.chip, .plusbtn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pin-off { min-width: 44px; min-height: 44px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--a-sur); box-shadow: var(--a-sh); border-radius: var(--r-lg); font-size: var(--fs-sm); color: var(--a-ink2); font-weight: 700; }
.toggle input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--a-line); border-radius: var(--r-sm); background: #fff; flex: none; display: grid; place-items: center; cursor: pointer; }
.toggle input:checked { background: var(--a-navy); border-color: var(--a-navy); }
.toggle input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.result { background: var(--a-navy); color: #fff; border-radius: var(--r-2xl); padding: 18px; margin: 8px 0 14px; box-shadow: 0 5px 0 var(--a-navy-dark); }
.result .r1 .l { color: var(--a-yellow); display: block; }
.result .r1 .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-5xl); font-weight: 800; line-height: 1; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.result .rows2 { display: flex; flex-direction: column; font-size: var(--fs-sm); color: rgba(255,255,255,.8); font-weight: 600; }
.result .rows2 div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.14); }
.result .rows2 .amt { color: #fff; }
.result .tip { margin-top: 12px; font-size: var(--fs-sm); line-height: 1.5; background: rgba(255,255,255,.1); border-radius: var(--r-md); padding: 10px 12px; font-weight: 600; }
.disc { font-size: var(--fs-xs); color: var(--a-ink3); line-height: 1.45; font-weight: 600; }
.sec { margin: 20px 0 10px; }
.bignum { font-family: 'Outfit', sans-serif; font-size: var(--fs-5xl); font-weight: 800; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; color: var(--a-navy); }
.bars { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.barrow { display: grid; grid-template-columns: 100px 1fr 40px; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--a-ink2); font-weight: 800; }
.barrow .b { height: 12px; background: var(--a-line2); border-radius: var(--r-pill); position: relative; overflow: hidden; }
.barrow .b i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: var(--r-pill); }
.barrow .pc { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-xs); text-align: right; color: var(--a-navy); }
.ind { padding: 14px 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: baseline; }
.ind .l { font-size: var(--fs-md); font-weight: 900; }
.ind .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; color: var(--a-navy2); }
.ind .m { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--a-ink2); line-height: 1.45; font-weight: 600; }
.ind .ref { color: var(--a-ink3); }
.gauge { grid-column: 1 / -1; height: 8px; background: var(--a-line2); border-radius: var(--r-pill); position: relative; margin-top: 4px; }
.gauge i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--a-navy); border-radius: var(--r-pill); }
.gauge b { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--a-err); border-radius: var(--r-xs); }
.hooks { margin-top: 18px; }
.hooks .cap { display: block; margin-bottom: 8px; }

/* ---- groupe ---- */
.lg { background: var(--a-navy); color: #fff; border-radius: var(--r-2xl); padding: 18px; margin: 12px 0 16px; box-shadow: 0 5px 0 var(--a-navy-dark); }
.lg .n { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; }
.lg .s { font-size: var(--fs-sm); color: rgba(255,255,255,.8); margin-top: 4px; font-weight: 600; }
.rank { display: grid; grid-template-columns: 24px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; font-size: var(--fs-md); font-weight: 800; }
.rank .p { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-xs); color: var(--a-ink3); }
.rank .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.rank .xp { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-sm); }
.rank.me { background: var(--a-yellow-soft); border-radius: var(--r-lg); }
.rank.me .xp { color: #8A5E10; }

/* ---- abonnement ---- */
.enjeux { padding: 2px 14px; }
.enjeux > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--a-line2); }
.enjeux > div:last-child { border-bottom: 0; }
.enjeux .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 900; color: var(--a-red2); line-height: 1.05; }
.enjeux .l { font-size: var(--fs-xs); line-height: 1.35; color: var(--a-ink2); font-weight: 700; }
.pw .hero { background: var(--a-navy); color: #fff; border-radius: var(--r-2xl); padding: 20px 18px; margin-bottom: 14px; box-shadow: 0 5px 0 var(--a-navy-dark); }
.pw .hero .cap { color: var(--a-yellow); }
.pw .hero h2 { color: #fff; margin: 6px 0 8px; }
.pw .hero .small { color: rgba(255,255,255,.85); }
.pw ul { margin: 0 0 14px; padding: 4px 16px; list-style: none; display: flex; flex-direction: column; }
.pw li { padding: 11px 0; border-bottom: 2px solid var(--a-line2); font-size: var(--fs-md); color: var(--a-ink2); display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.pw li:last-child { border-bottom: 0; }
.pw li i { width: 20px; height: 20px; border-radius: 50%; background: var(--a-green); display: grid; place-items: center; flex: none; margin-top: 0; }
.pw li svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan { border: 2.5px solid var(--a-line); border-radius: var(--r-xl); padding: 14px; background: var(--a-sur); box-shadow: 0 3px 0 var(--a-line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.plan.on { border-color: var(--a-red); box-shadow: 0 3px 0 var(--a-red); }
.plan .p { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; color: var(--a-navy); }
.plan .l { font-size: var(--fs-xs); color: var(--a-ink2); margin-top: 2px; font-weight: 700; }
.plan .badge { font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--a-free-ink); font-weight: 900; display: block; margin-bottom: 6px; }

/* ---- écran d'accueil ---- */
.splash { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 14px 4px 0; min-height: 100cqh; }
/* centré verticalement sur les grands écrans ; sur les petits, les marges automatiques tombent à zéro et rien n’est rogné */
.splash > :first-child { margin-top: auto; }
.splash > :last-child { margin-bottom: auto; }
.slogo { width: 84px; height: 84px; border-radius: var(--r-3xl); background: var(--a-red); box-shadow: 0 6px 0 var(--a-red2); display: grid; place-items: center; }
.slogo svg { width: 48px; height: 48px; fill: none; stroke: var(--a-onacc); stroke-width: 3.2; }
.slogo svg .f { fill: var(--a-onacc); stroke: none; }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lockup h1 { position: relative; }
.lockup .glose { position: absolute; left: 100%; bottom: 4px; margin-left: 8px; white-space: nowrap; font-family: 'Nunito', sans-serif; font-style: italic; font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; color: var(--a-ink3); }
.lockup h1 { font-family: 'Outfit', sans-serif; font-size: 46px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--a-navy); margin: 0; }
.mq { text-transform: none !important; letter-spacing: 0; font-family: 'Outfit', sans-serif; }
.lockup .pt { display: block; max-width: 34ch; margin: 5px auto 0; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .12em; line-height: 1.55; text-transform: uppercase; color: var(--a-red); }
.splash .bl { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 600; line-height: 1.55; color: var(--a-ink2); max-width: none; width: 100%; }
.splash .bl .nb { white-space: nowrap; }
.spoints { display: flex; flex-direction: column; gap: 13px; width: 100%; margin: 6px 0 8px; }
.spoints div { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--a-sur); border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 10px 14px; font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); line-height: 1.3; }
.spoints .sub { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); }
.spoints .n { width: 26px; height: 26px; border-radius: 50%; background: var(--a-navy); color: #fff; display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-sm); }
.splash .disc { max-width: 32ch; }

/* ---- onboarding ---- */
.obnav { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; margin-bottom: 8px; }
.obnav .x { background: var(--a-sur); box-shadow: var(--a-sh); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: var(--fs-3xl); color: var(--a-ink2); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; line-height: 1; font-weight: 700; }
.obnav .n { font-size: var(--fs-xs); font-weight: 900; color: var(--a-ink3); }
.obprog { display: flex; gap: 6px; justify-content: center; }
.obprog i { width: 22px; height: 6px; border-radius: var(--r-pill); background: var(--a-line); display: inline-block; }
.obprog i.on { background: var(--a-red); }
.input { width: 100%; border: 2.5px solid var(--a-line); border-radius: var(--r-lg); padding: 16px 18px; font: inherit; font-size: var(--fs-xl); font-weight: 800; color: var(--a-navy); background: var(--a-sur); box-shadow: 0 3px 0 var(--a-line); outline: none; font-family: 'Outfit', sans-serif; }
.input:focus { border-color: var(--a-blue); box-shadow: 0 3px 0 var(--a-blue); }
.input::placeholder { color: var(--a-ink3); font-weight: 600; }
.sitgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.sit { display: flex; align-items: center; gap: 10px; background: var(--a-sur); border: 2.5px solid var(--a-line); box-shadow: 0 3px 0 var(--a-line); border-radius: var(--r-lg); padding: 10px 12px; font: inherit; font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); cursor: pointer; text-align: left; }
.sit .ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--a-bg); display: grid; place-items: center; flex: none; }
.sit .ic svg { width: 20px; height: 20px; stroke: var(--a-navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sit.on { border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy); background: var(--a-sur); }
.sit.on .ic { background: var(--a-navy); }
.sit.on .ic svg { stroke: #fff; }
.chips.big { margin-bottom: 6px; }
.chips.big .chip { padding: 10px 14px; font-size: var(--fs-md); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(72px, 150px); gap: 10px; align-content: space-between; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--a-sur); background: color-mix(in srgb, var(--c) 10%, var(--a-sur)); color: var(--a-navy); border: 2.5px solid transparent; border-radius: var(--r-xl); padding: 13px 13px 12px; font: inherit; text-align: left; cursor: pointer; min-height: 0; overflow: hidden; box-shadow: 0 3px 0 var(--a-line); transition: background .15s, border-color .15s, transform .08s; }
.tile:active { transform: translateY(2px); }
.tile .ic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; }
.tile .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.12; margin-top: auto; color: var(--a-navy); }
.tile .s { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile .ck { position: absolute; top: 10px; right: 10px; width: 23px; height: 23px; }
.tile .ck { border-radius: 50%; background: #fff; border: 2px solid var(--a-line); display: grid; place-items: center; }
.tile .ck svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.tile.on { background: color-mix(in srgb, var(--c) 18%, var(--a-sur)); border-color: var(--c); box-shadow: 0 3px 0 var(--c); }
.tile.on .ck { background: var(--c); border-color: var(--c); }
.tile.on .ck svg { opacity: 1; }

.ob { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
/* les deux actions de l’étape 2 sur une rangée : le secondaire à gauche, le principal sous le pouce */
/* dernière étape : la navigation reste en haut, le contenu se pose au milieu, le bouton descend en bas */
.ob-fin { min-height: 100cqh; gap: 22px; }
.ob-fin > h2 { margin-top: clamp(4px, 2cqh, 18px); }   /* un peu d’air sous la navigation, proportionnel à l’écran et plafonné.
   9cqh plafonné à 80px laissait 105px de vide sur un grand iPhone — un huitième de
   l’écran, et autant de thèmes repoussés sous la ligne de flottaison. */
.ob-fin > .spoints { margin: 4px 0 0; gap: 14px; }
.ob-fin > .btn { margin-top: auto; }                    /* le bouton descend en bas ; le reste de la place va là */
.obact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 4px; }
/* étape 2 : quatre questions sur un écran, sans défilement */
.ob-sit { gap: 10px; }
.ob-sit > .cap { margin-top: 4px; }
@container ecran (max-height: 640px) {
  .ob-sit { gap: 7px; padding-top: 0; }
  .ob-sit > .cap { margin-top: 2px; }
  .ob-sit > p.small { display: none; }
  .ob-sit .sit { padding: 7px 10px; }
  .ob-sit .sit .ic { width: 28px; height: 28px; }
  .ob-sit .chips.big { margin-bottom: 0; }
  .ob-sit .chips.big .chip { padding: 8px 12px; font-size: var(--fs-sm); min-height: 44px; }
  .ob-sit .obact .btn { padding: 12px 8px; }
}
.app .obact .btn { font-size: var(--fs-base); padding: 14px 8px; line-height: 1.15; white-space: nowrap; }
.ob:has(.tiles) { height: 100cqh; min-height: 0; gap: 12px; padding-top: 0; }
.app .ob:has(.tiles) h2 { font-size: var(--fs-2xl); line-height: 1.42; }
.ob:has(.tiles) .tiles { flex: 1; min-height: 0; }
.ob .themes { display: flex; flex-direction: column; gap: 8px; }
.theme { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; background: var(--a-sur); border: 2.5px solid var(--a-line); box-shadow: 0 3px 0 var(--a-line); border-radius: var(--r-xl); padding: 9px 12px 9px 9px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.theme .ic { width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--c); display: grid; place-items: center; }
.theme .ic svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme.all .ic svg { fill: #fff; }
.theme .t { font-weight: 900; font-size: var(--fs-md); }
.theme .s { font-size: var(--fs-xs); color: var(--a-ink2); font-weight: 600; }
.theme .ck { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--a-line); display: grid; place-items: center; }
.theme .ck svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.theme.on { border-color: var(--a-green); box-shadow: 0 3px 0 var(--a-green); }
.theme.on .ck { background: var(--a-green); border-color: var(--a-green); }
.theme.on .ck svg { opacity: 1; }
.theme.all { background: var(--a-navy); color: #fff; border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy-dark); }
.theme.all .s { color: rgba(255,255,255,.7); }
.theme.all.on { border-color: var(--a-yellow); box-shadow: 0 3px 0 var(--a-yellow); }

.theme .ic.lvl { font-size: var(--fs-sm); letter-spacing: 2px; color: #fff; font-weight: 900; }
.lvl-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); }
.lvl-row .dots { display: flex; gap: 4px; }
.lvl-row .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-line); display: inline-block; }
.lvl-row .dots i.on { background: var(--a-green); }
.lvl-row .small { margin-left: auto; font-size: var(--fs-2xs); color: var(--a-ink3); }


/* ---- comprendre ---- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--a-line2); border-radius: var(--r-lg); padding: 4px; margin: 12px 0 10px; }
.seg button { border: 0; background: transparent; border-radius: var(--r-md); padding: 10px 8px; font: inherit; font-size: var(--fs-md); font-weight: 800; color: var(--a-ink2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; stroke: var(--a-green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.seg button span { font-size: var(--fs-2xs); font-weight: 900; color: var(--a-ink3); }
.seg button.on { background: var(--a-navy); color: #fff; box-shadow: 0 2px 0 var(--a-navy-dark); }
.seg button.on span { color: var(--a-yellow); }
.filters { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; min-width: 0; padding: 2px 18px 10px; margin: 0 -18px 4px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; min-height: 44px; border: 1.5px solid var(--a-line); background: var(--a-sur); border-radius: var(--r-pill); padding: 7px 12px; font: inherit; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); cursor: pointer; white-space: nowrap; }
.fchip.on { background: var(--a-navy); border-color: var(--a-navy); color: #fff; }
.glist { display: flex; flex-direction: column; gap: 8px; }
.grow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; width: 100%; background: var(--a-sur); border: 0; border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 12px 14px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.grow .gnum { width: 40px; height: 40px; border-radius: var(--r-md); color: #fff; display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-lg); }
.grow .gnum.ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grow > span:nth-child(2) br { display: none; }
.grow .t { font-size: var(--fs-md); font-weight: 800; line-height: 1.25; display: block; }
.grow .s { font-size: var(--fs-xs); color: var(--a-ink3); font-weight: 700; display: block; line-height: 1.35; margin-top: 3px; }
.grow .lk { font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink2); font-weight: 900; border: 1.5px solid var(--a-line); border-radius: var(--r-pill); padding: 5px 8px; white-space: nowrap; }
/* Un parcours non commencé dit ce qu'il offre, pas ce qu'il refuse : la première
   étape est gratuite, et la ligne le montre là où l'œil la cherche. */
.grow .lk.offert { font-size: var(--fs-2xs); letter-spacing: .04em; padding: 5px 7px; color: var(--a-green2); border-color: var(--a-green); background: var(--a-green-soft); }
.grow .chev { font-size: var(--fs-2xl); color: var(--a-ink3); font-weight: 700; padding-right: 4px; line-height: 1; }
.bdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.gh { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--a-ink2); }
.gh i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.gh b { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); letter-spacing: 0; color: var(--a-ink3); }
.gh + .glist { margin-bottom: 2px; }
.voir { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 8px 0 2px; background: none; border: 0; font: inherit; font-size: var(--fs-sm); font-weight: 800; color: var(--a-navy2); cursor: pointer; padding: 9px; border-radius: var(--r-md); }
.voir:active { background: var(--a-line2); }
.voir svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.voir.on svg { transform: rotate(180deg); }

/* ---- calculs ---- */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tgrid:last-child { margin-bottom: 0; }
.tcap { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); margin: 0 2px 6px; }
.ci-chart { display: block; width: 100%; height: 96px; margin: 14px 0 8px; border-radius: var(--r-sm); overflow: hidden; }
.ci-axe { display: flex; justify-content: space-between; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.ci-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-2xs); font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.ci-leg span { display: inline-flex; align-items: center; gap: 6px; }
.ci-leg i { width: 10px; height: 10px; border-radius: var(--r-xs); flex: none; }
.ttile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--a-sur); border: 0; border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 9px 11px; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 44px; transition: transform .08s; }
.ttile:active { transform: translateY(2px); }
.ttile .ic { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--c); display: grid; place-items: center; margin-bottom: 2px; }
.ttile .ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ttile .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; line-height: 1.15; }
.ttile .s { font-size: var(--fs-2xs); color: var(--a-ink2); font-weight: 700; line-height: 1.28; }
.ttile .lk, .ttile .free { font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 4px 8px; margin-top: auto; display: inline-flex; align-items: center; gap: 4px; }
.ttile .free svg { width: 12px; height: 12px; stroke: var(--a-free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ttile .free { background: var(--a-free-bg); color: var(--a-free-ink); }
.ttile .lk { background: var(--a-navy); color: #fff; }

.ttile.wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 11px; min-height: 0; padding: 11px 12px; }
.ttile.wide .ic { margin-bottom: 0; flex: none; align-self: flex-start; }
.ttile.wide .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ttile.wide .lk, .ttile.wide .free { margin: 5px 0 0; }

/* ---- réponses & guides ---- */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guidelink { width: 100%; text-align: left; border: 0; background: #fff; border-radius: var(--r-lg); padding: 11px 14px; font: inherit; color: var(--a-navy); cursor: pointer; box-shadow: 0 3px 0 rgba(30,42,74,.1); }
.guidelink .cap { display: block; margin-bottom: 2px; color: var(--a-free-ink); }
.guidelink b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.25; display: block; }
.search { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; background: var(--a-sur); border: 2.5px solid var(--a-line); border-radius: var(--r-lg); padding: 10px 14px; box-shadow: 0 3px 0 var(--a-line); }
.search svg { width: 22px; height: 22px; stroke: var(--a-ink3); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.search input { border: 0; outline: 0; font: inherit; font-size: var(--fs-base); font-weight: 700; color: var(--a-navy); background: transparent; width: 100%; min-width: 0; }
.search input::placeholder { color: var(--a-ink3); font-weight: 600; }
.sect .lk, .tool .free, .sect .free { font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 4px 8px; vertical-align: middle; margin-left: 6px; }
.sect .lk { background: var(--a-navy); color: #fff; }
.free, .sect .free { background: var(--a-free-bg); color: var(--a-free-ink); }
.sect .free { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: var(--fs-2xs); }
.sect .free svg { width: 14px; height: 14px; stroke: var(--a-free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
details.base { background: var(--a-sur); border-radius: var(--r-lg); box-shadow: var(--a-sh); }
details.base summary { list-style: none; cursor: pointer; padding: 13px 14px; font-weight: 800; font-size: var(--fs-md); line-height: 1.3; color: var(--a-navy); display: flex; align-items: center; gap: 10px; }
details.base summary::-webkit-details-marker { display: none; }
details.base summary::after { content: "+"; margin-left: auto; font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); color: var(--a-ink3); font-weight: 900; line-height: 1; }
details.base[open] summary::after { content: "–"; }
details.base .ans { padding: 0 14px 14px; font-size: var(--fs-md); line-height: 1.55; color: var(--a-ink2); font-weight: 600; }
details.base .ans .src { display: block; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); color: var(--a-ink3); margin-top: 8px; }
details.base .ans .linkbtn { margin: 8px 12px 0 0; }
.fhero { background: var(--c); color: #fff; border-radius: var(--r-2xl); padding: 20px 18px; margin-bottom: 14px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.fhero .cap { color: rgba(255,255,255,.7); }
.fhero h2 { color: #fff; margin: 6px 0 10px; }
.fhero .small { color: rgba(255,255,255,.88); }
.fhero .who { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }
.avert { background: var(--a-yellow-soft); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 12px; font-size: var(--fs-sm); line-height: 1.5; color: #6B5312; font-weight: 600; }
.avert .cap { display: block; color: #8A6510; margin-bottom: 3px; }
.fdet { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--a-line2); }
.fdet > div { display: flex; flex-direction: column; gap: 2px; }
.fdet .k { font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; font-weight: 900; color: var(--a-navy2); }
.fdet > div:nth-child(2) .k { color: var(--a-terra); }
.fdet > div:nth-child(3) .k { color: var(--a-plum); }
.fdet > div > span:last-child { font-size: var(--fs-sm); line-height: 1.5; color: var(--a-ink2); font-weight: 600; }
.fitem .tags { display: inline-block; margin-top: 8px; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 900; color: var(--a-ink3); border: 1.5px dashed var(--a-line); border-radius: var(--r-pill); padding: 5px 9px; }
.fitems { display: flex; flex-direction: column; gap: 10px; }
.fitem { display: grid; grid-template-columns: 34px 1fr; gap: 12px; background: var(--a-sur); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--a-sh); }
.fitem .num { width: 34px; height: 34px; border-radius: 50%; background: var(--a-navy); color: #fff; display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-base); }
.fitem h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.fitem .s { font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); margin-bottom: 6px; }
.fitem .m { font-size: var(--fs-md); line-height: 1.55; color: var(--a-ink2); font-weight: 600; }
.fitem .c { font-size: var(--fs-sm); color: var(--a-ink2); margin-top: 6px; font-weight: 600; }
.fitem .src { display: block; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); color: var(--a-ink3); margin-top: 8px; }
.fitem.locked .num { background: var(--a-line); color: var(--a-ink2); }
.fitem .blur { filter: blur(5px); user-select: none; pointer-events: none; max-height: 40px; overflow: hidden; }
.unlock { background: var(--a-navy); color: #fff; border-radius: var(--r-xl); padding: 18px; margin: 14px 0; box-shadow: 0 5px 0 var(--a-navy-dark); }
.unlock .cap { color: var(--a-yellow); }
.unlock h3 { color: #fff; margin: 4px 0 12px; }
.notaire { padding: 14px 16px; }
.notaire ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--fs-md); color: var(--a-ink2); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.notaire.locked ul { filter: blur(4px); user-select: none; }

/* ---- épinglés ---- */
.pins { padding: 4px 16px; }
.pin { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; border-bottom: 2px solid var(--a-line2); }
.pin:last-child { border-bottom: 0; }
.pin-open { background: none; border: 0; padding: 11px 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.pin-open .t { font-size: var(--fs-md); font-weight: 800; line-height: 1.3; }
.pin-off { background: none; border: 0; padding: 6px; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-md); }
.pin-off:active { background: var(--a-line2); }
.pin-off svg { width: 20px; height: 20px; stroke: var(--a-yellow); fill: var(--a-yellow); stroke-width: 1.5; }
.star { background: var(--a-sur); box-shadow: var(--a-sh); border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; }
.star svg { width: 19px; height: 19px; stroke: var(--a-ink3); fill: none; stroke-width: 2; stroke-linejoin: round; }
.star.on svg { stroke: var(--a-red); fill: var(--a-red); }
.vide { padding: 14px 16px; font-size: var(--fs-sm); line-height: 1.5; color: var(--a-ink2); font-weight: 600; }
.vide .cap { display: block; margin-bottom: 3px; }
.pin .s { font-size: var(--fs-xs); color: var(--a-ink3); font-weight: 700; }


/* ---- schémas ---- */
.sch { background: var(--a-sur, #fff); border-radius: var(--r-2xl); box-shadow: var(--a-sh, 0 3px 0 var(--a-line)); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-family: 'Nunito', Arial, sans-serif; color: var(--a-ink); }
.sch h4 { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.sch .stage { position: relative; background: #F6F0E4; border-radius: var(--r-xl); padding: 12px; overflow: hidden; }
.sch .si { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sch .cap { background: var(--a-bg); border-left: 3px solid var(--a-red); border-radius: var(--r-xs) var(--r-lg) var(--r-lg) var(--r-xs); padding: 11px 13px; font-size: var(--fs-md); line-height: 1.5; color: var(--a-ink2); min-height: 64px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.sch .cap b { color: var(--a-ink); font-weight: 900; }
.sch .ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.sch .ctrl button { border: 0; border-radius: var(--r-pill); padding: 10px 16px; font: inherit; font-size: var(--fs-sm); font-weight: 900; cursor: pointer; background: var(--a-red); color: var(--a-ink); box-shadow: 0 3px 0 var(--a-red2); transition: transform .08s; }
.sch .ctrl button:active { transform: translateY(3px); box-shadow: none; }
.sch .ctrl button.alt, .sch .ctrl .chip { background: #fff; color: var(--a-ink); box-shadow: 0 3px 0 var(--a-line); border: 2px solid var(--a-line); padding: 8px 13px; }
.sch .ctrl .chip { font-size: var(--fs-xs); }
.sch .ctrl .chip.on { background: var(--a-navy); color: #fff; border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy-dark); }
.sch .ctrl button:disabled { opacity: .45; cursor: default; box-shadow: 0 3px 0 var(--a-red2); transform: none; }
.sch .src { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); color: var(--a-ink3); }
.sch input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: -4px 0; background: transparent; cursor: pointer; }
.sch input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--a-red) var(--p, 50%), var(--a-line) var(--p, 50%)); }
.sch input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--a-red); box-shadow: 0 2px 0 var(--a-red2); }
.sch input[type=range]::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--a-red) var(--p, 50%), var(--a-line) var(--p, 50%)); }
.sch input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--a-red); }
/* 1. pot commun */
.pc { display: grid; grid-template-columns: 1.12fr 1fr; gap: 8px; padding: 8px; }
.pcol { border-radius: var(--r-lg); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 262px; }
.pcol.c { background: #DDEFE4; }
.pcol.p { background: #ECE3F2; }
.pcol .ph { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0 4px; }
.pcol .ph b { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.pcol .ph span { font-size: var(--fs-2xs); font-weight: 700; opacity: .75; }
.pcol.c .ph { color: var(--a-green2); }
.pcol.p .ph { color: var(--a-plum); }
.pcol .ph em { position: absolute; top: -2px; right: 0; font-style: normal; font-family: 'Outfit', sans-serif; font-size: var(--fs-xs); font-weight: 800; background: var(--a-green2); color: #fff; border-radius: var(--r-pill); padding: 2px 7px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.pc.fini .pcol.c .ph em { opacity: 1; transform: none; }
.pl { display: flex; flex-direction: column; gap: 6px; }
.pl:empty::after { content: ""; height: 42px; border: 2px dashed currentColor; border-radius: var(--r-md); opacity: .18; }
.pcol.c .pl { color: var(--a-green2); }
.pcol.p .pl { color: var(--a-plum); }
.pit { position: relative; display: flex; align-items: center; gap: 7px; border-radius: var(--r-md); padding: 8px 9px; font-size: var(--fs-xs); font-weight: 800; line-height: 1.2; color: #fff; }
.pcol.c .pit { background: var(--a-green); box-shadow: 0 3px 0 var(--a-green2); }
.pcol.p .pit { background: var(--a-plum); box-shadow: 0 3px 0 #4B3260; }
.pit.surprise { outline: 2.5px solid var(--a-red); outline-offset: 1px; }
.pit em { position: absolute; top: -8px; right: 6px; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; background: var(--a-red); color: var(--a-ink); border-radius: var(--r-pill); padding: 2px 6px; }
.pit.neuf { animation: sch-tombe .55s cubic-bezier(.2, .8, .2, 1); }
.pc.fini .pcol.c .pit { background: linear-gradient(90deg, var(--a-green) 50%, #289460 50%); }
@keyframes sch-tombe { from { opacity: 0; transform: translateY(-16px) scale(.95); } }
.pts { display: flex; justify-content: center; gap: 6px; }
.pts i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-line); transition: background .3s; }
.pts i.on { background: var(--a-red); }
/* 2. maison coupée */
.mc svg { display: block; width: 100%; height: auto; }
.mc .usu { transform-box: fill-box; transform-origin: left center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.mc .cut { stroke: var(--a-bg); stroke-width: 2.5; stroke-dasharray: 5 5; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.mc .deco { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 2; }
.mc svg text { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; fill: #fff; }
.mc .leg { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); }
.mc .leg span { display: flex; align-items: center; gap: 5px; }
.mc .leg i { width: 10px; height: 10px; border-radius: var(--r-xs); }
.mc .leg b { color: var(--a-ink); font-weight: 900; margin-right: 3px; }
.mc .lu i { background: var(--a-red); }
.mc .ln i { background: var(--a-navy); }
.sch .curs { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: -6px; }
.sch .curs span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.sch .curs b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-red2); }
.bareme { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.bareme .bt { grid-column: 1 / -1; font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); margin-bottom: 2px; }
.bareme .bc { display: flex; flex-direction: column; align-items: center; gap: 1px; background: #F6F0E4; border-radius: var(--r-sm); padding: 5px 0; transition: background .3s, transform .3s; }
.bareme .bc i { font-style: normal; font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); }
.bareme .bc b { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); font-weight: 600; color: var(--a-ink2); }
.bareme .bc.on { background: var(--a-red); transform: translateY(-2px); }
.bareme .bc.on i, .bareme .bc.on b { color: var(--a-ink); }
/* 3. compteur des quinze ans */
.cq { padding: 14px 14px 12px; }
.cq .jh { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.cq .jh span { grid-column: 1 / 3; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.cq .jh b { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; line-height: 1; color: var(--a-navy); transition: color .3s; }
.cq .jh b.vide { color: #C0392B; }
.cq .jh em { font-style: normal; font-size: var(--fs-2xs); font-weight: 900; background: var(--a-ink); color: #fff; border-radius: var(--r-sm); padding: 4px 9px; }
.cq .jb { position: relative; height: 12px; margin-top: 10px; border-radius: var(--r-sm); background: var(--a-err-soft); overflow: hidden; }
.cq .jb i { position: absolute; inset: 0; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--a-navy), var(--a-green)); transform-origin: left center; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.cq .frise { margin: 34px 10px 0; }
.cq .ft { position: relative; height: 34px; }
.cq .ft::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: var(--r-xs); background: #E0D6C4; }
.cq .ft input[type=range] { position: absolute; left: -8px; right: -8px; top: -4px; bottom: -4px; width: auto; height: auto; margin: 0; opacity: 0; z-index: 5; cursor: pointer; }
.cq .zv { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: var(--r-sm); background: rgba(209, 69, 59, .28); }
.cq .rc { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--a-green); border: 2.5px solid #F6F0E4; }
.cq .dn { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--a-navy); color: #fff; display: grid; place-items: center; box-shadow: 0 2px 0 var(--a-navy-dark); z-index: 2; }
.cq .dn .si { width: 15px; height: 15px; }
.cq .fc { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--a-red); border: 3px solid #fff; box-shadow: 0 2px 0 var(--a-red2); transition: left .15s; z-index: 3; }
.cq .fc em { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; background: var(--a-red); color: var(--a-ink); border-radius: var(--r-sm); padding: 3px 8px; }
.cq .fc.g em { left: -6px; transform: none; }
.cq .fc.d em { left: auto; right: -6px; transform: none; }
.cq .fl { position: relative; height: 14px; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); color: var(--a-ink3); }
.cq .fl span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cq .fl span:first-child { transform: none; }
.cq .fl span:last-child { transform: translateX(-100%); }
.cq .fleg { display: flex; justify-content: center; gap: 12px; margin-top: 12px; font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); }
.cq .fleg span { display: flex; align-items: center; gap: 4px; }
.cq .fleg i { width: 10px; height: 10px; border-radius: 50%; }
.cq .fleg .d { background: var(--a-navy); }
.cq .fleg .v { background: rgba(209, 69, 59, .35); border-radius: var(--r-xs); }
.cq .fleg .r { background: var(--a-green); }
/* 4. qui hérite */
.qh { padding: 14px 10px 12px; }
.qh .tree { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 84px); gap: 12px 8px; }
.qh .liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qh .liens path { fill: none; stroke: #D8CFBD; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: opacity .3s; }
.tp { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.tp .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--a-ink3); border: 2.5px solid var(--a-line); box-shadow: 0 3px 0 var(--a-line); transition: background .35s, border-color .35s, color .35s; }
.tp .av .si { width: 22px; height: 22px; }
.tp .nm { font-size: var(--fs-2xs); font-weight: 900; color: var(--a-ink2); line-height: 1; }
.tp .pt { font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 800; line-height: 1; padding: 4px 9px; border-radius: var(--r-pill); background: var(--a-line); color: var(--a-ink); }
.tp .pt.pop { animation: qh-pop .45s cubic-bezier(.3,1.5,.5,1); }
.tp.on .av { background: var(--a-green); border-color: var(--a-green); color: #fff; box-shadow: 0 3px 0 var(--a-green2); }
.tp.on .pt { background: var(--a-green); color: #fff; box-shadow: 0 2px 0 var(--a-green2); }
.tp.zero .av { background: #FDF6F4; border-style: dashed; border-color: #E9AFA9; color: #C9A19C; box-shadow: none; }
.tp.zero .nm { color: #B7847E; }
.tp.zero .pt { background: transparent; color: #C0392B; font-family: 'Nunito', sans-serif; font-size: var(--fs-xs); font-weight: 900; padding: 4px 0; }
.tp.me .av { background: var(--a-ink); border-color: var(--a-ink); color: #fff; box-shadow: 0 3px 0 var(--a-navy-dark); width: 50px; height: 50px; }
.tp.me .nm { color: var(--a-ink); }
.tp.me .pt { background: transparent; color: var(--a-ink2); font-family: 'Nunito', sans-serif; font-size: var(--fs-2xs); font-weight: 700; padding: 2px 0; }
.tp.hid { visibility: hidden; }
.qh .part { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.qh .droits { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #D9CFBC; display: flex; flex-direction: column; gap: 8px; }
.qh .droits .pl { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.qh .droits .dv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: #fff; border-radius: var(--r-md); padding: 9px 12px; }
.qh .droits .dv span { font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); }
.qh .droits .dv b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-red2); white-space: nowrap; }
.qh .part .pl { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.qh .bar { display: flex; height: 30px; border-radius: var(--r-md); overflow: hidden; gap: 2px; }
.qh .bar i { display: grid; place-items: center; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; color: #fff; min-width: 0; transition: flex .4s; }
.qh .bar i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; padding: 0 4px; }
.qh .bar i.c { background: var(--a-navy); } .qh .bar i.e { background: var(--a-green); } .qh .bar i.e + i.e { background: #3BB77E; } .qh .bar i.p { background: var(--a-red); } .qh .bar i.p + i.p { background: #EBAE4E; } .qh .bar i.f { background: var(--a-blue); }
@keyframes qh-pop { from { transform: scale(.6); } to { transform: scale(1); } }
/* 5. récompenses */
.rc { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: stretch; gap: 0; padding: 12px 10px; }
.poche { border-radius: var(--r-lg); padding: 12px 10px; display: flex; flex-direction: column; gap: 5px; min-height: 132px; transition: background .35s; }
.poche.com { background: #DDEFE4; color: var(--a-green2); }
.poche.pro { background: #ECE3F2; color: var(--a-plum); }
.poche .pi .si { width: 26px; height: 26px; stroke-width: 1.8; }
.poche .pk { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; line-height: 1.3; }
.poche .pd { font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; color: var(--a-ink); }
.flux { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.flux .mt { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); font-weight: 600; background: var(--a-err); color: #fff; border-radius: var(--r-pill); padding: 3px 6px; white-space: nowrap; }
.flux svg { width: 60px; height: 24px; overflow: visible; }
.flux .tr { fill: none; stroke: var(--a-err); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 7 6; animation: sch-flux .9s linear infinite; }
.flux.gauche .tr { animation-direction: reverse; }
.flux .ah { fill: none; stroke: var(--a-err); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.flux .fs { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-err); }
.flux.nul .mt { background: var(--a-ink3); }
.flux.nul .tr { stroke: #C9BFAE; stroke-dasharray: none; animation: none; }
.flux.nul .fs { color: var(--a-ink3); }
@keyframes sch-flux { to { stroke-dashoffset: -26; } }
/* 6. assurance-vie */
.av { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.av .avh { display: flex; justify-content: space-between; align-items: baseline; }
.av .avh span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink2); }
.av .avh b { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; }
.av .avb { display: flex; height: 26px; border-radius: var(--r-md); overflow: hidden; background: var(--a-line); }
.av .avb i { display: block; height: 100%; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.av .bx { background: var(--a-green); }
.av .bt { background: var(--a-err); }
.av .avl { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); }
.av .avl span { display: flex; align-items: center; gap: 6px; }
.av .avl i { width: 10px; height: 10px; border-radius: var(--r-xs); flex: none; }
.av .lx i { background: var(--a-green); }
.av .lt i { background: var(--a-err); }
.av .avl em { font-style: normal; }
.av .avl b { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--a-ink); }
.av .avr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: #fff; border-radius: var(--r-md); padding: 10px 12px; }
.av .avr span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink2); }
.av .avr b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-err); text-align: right; }
.av .avr.nul b { color: var(--a-green2); }
.av .avr.txt b { font-family: 'Nunito', sans-serif; font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink); }
.av .avhs { align-self: flex-start; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .04em; background: #DDEFE4; color: var(--a-green2); border-radius: var(--r-pill); padding: 4px 10px; }
@media (prefers-reduced-motion: reduce) { .sch *, .sch *::before { animation: none !important; transition: none !important; } }

/* ---- cadre téléphone / plein écran mobile ---- */

.phone { width: 390px; height: 812px; background: #0A1C19; border-radius: 54px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(18,64,58,.5); position: relative; border: 1px solid #23423C; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 112px; height: 30px; background: #0A1C19; border-radius: 20px; z-index: 70;   /* au-dessus de l'écran d'ouverture (z 60) */ }
.phone .app { border-radius: 45px; }
.phone .app .sheet { border-radius: 28px 28px 45px 45px; }
.phone .app .sheet-foot { padding-bottom: 30px; }

/* Sur téléphone, l'app remplit l'écran : pas de cadre, pas de marge. */
@media (max-width: 560px) {
  .phone { width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; padding: 0; border: 0; box-shadow: none; }
  .phone::before { display: none; }
  .phone .app { border-radius: 0; }
  .phone .app .sheet { border-radius: 28px 28px 0 0; }
  .phone .app .screen { padding-top: max(20px, env(safe-area-inset-top)); }
  .phone .app .tabbar { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
/* Dans l'application native, l'écran est l'écran : jamais de cadre, quelle que soit la largeur. */
body.natif { margin: 0; background: var(--a-bg); justify-items: stretch; }
body.natif .wrap { padding: 0; gap: 0; width: 100%; }
body.natif .phone { width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; padding: 0; border: 0; box-shadow: none; }
body.natif .phone::before { display: none; }
body.natif .phone .app { border-radius: 0; }
body.natif .phone .app .sheet { border-radius: 28px 28px 0 0; }
body.natif .app .screen { padding-top: max(20px, env(safe-area-inset-top)); }
body.natif .app .tabbar { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  body.standalone { margin: 0; background: var(--a-bg); }
  body.standalone .phone { width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; padding: 0; border: 0; box-shadow: none; }
  body.standalone .phone::before { display: none; }
  body.standalone .phone .app { border-radius: 0; }
  body.standalone .phone .app .sheet { border-radius: 28px 28px 0 0; }
  body.standalone .app .screen { padding-top: max(20px, env(safe-area-inset-top)); }
  body.standalone .app .tabbar { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* Palier discret : une ligne de sous-titre en moins avant de toucher aux tailles. */
@container ecran (max-height: 700px) { .tile .s { -webkit-line-clamp: 3; } }

/* Écran court : les tuiles de thèmes se compactent pour garder Continuer visible. */
@container ecran (max-height: 600px) {
  .ob:has(.tiles) { gap: 6px; }
  .ob:has(.tiles) > .small { font-size: var(--fs-xs); }
  .ob:has(.tiles) .btn { padding-top: 13px; padding-bottom: 13px; }
  .tiles { gap: 7px; }
  .app .ob:has(.tiles) h2 { font-size: var(--fs-xl); line-height: 1.38; }
  .tile { padding: 8px 10px; gap: 3px; }
  .tile .ic { width: 28px; height: 28px; border-radius: var(--r-sm); }
  .tile .ic svg { width: 17px; height: 17px; }
  .tile .t { font-size: var(--fs-md); }
  .tile .s { font-size: var(--fs-2xs); line-height: 1.2; -webkit-line-clamp: 2; }
  .tile .ck { top: 7px; right: 7px; width: 20px; height: 20px; }
}

/* Très petit écran (iPhone SE) : dernier cran de resserrement. */
@container ecran (max-height: 560px) {
  .ob:has(.tiles) { gap: 5px; }
  .ob:has(.tiles) .btn { padding-top: 12px; padding-bottom: 12px; }
  .app .ob:has(.tiles) h2 { line-height: 1.3; }
  .tiles { gap: 6px; }
  .tile { padding: 7px 9px; }
}

/* ---- bilan : navigation par volets, mode de détention, objectif ---- */
.bnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.bnav .bstep { padding: 10px 4px; }
.bstep { flex: 1; min-width: 0; background: var(--a-line2); color: var(--a-ink3); border: 0; border-radius: var(--r-pill); padding: 8px 4px; font: inherit; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .02em; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstep.done { background: var(--a-green-soft); color: var(--a-green2); }
.bstep.on { background: var(--a-navy); color: #fff; }
#bautre { display: block; margin-top: 4px !important; }
.field.detention { background: var(--a-bg); border-radius: var(--r-lg); padding: 9px 11px 10px; margin-top: -6px; margin-bottom: 14px; }
.field.detention .chips { gap: 5px; }
.field.detention .chip { font-size: var(--fs-2xs); padding: 5px 9px; }
.field.detention .qp { margin-top: 6px; font-size: var(--fs-2xs); }
.qp { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); line-height: 1.4; margin-top: 8px; }
.objres { margin-top: 12px; }
.sect .small { color: var(--a-ink3); font-weight: 700; }

/* ---- bloc unique du bilan, avec ses deux entrées ---- */
.ttile.wide.bloc { cursor: default; }
.ttile.wide.bloc:active { transform: none; }
.ttile.wide.bloc .s { margin-bottom: 4px; }
.sous { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; margin-top: 7px; }
.sbtn { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 4px; column-gap: 6px; min-width: 0; background: var(--a-bg); border: 0; border-radius: var(--r-lg); padding: 9px 8px; font: inherit; color: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 0 var(--a-line); transition: transform .08s; }
.sbtn:active { transform: translateY(2px); box-shadow: none; }
.sbtn .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; white-space: nowrap; }
.sbtn .d { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); line-height: 1.25; }
.sbtn.plus .d { color: rgba(255,255,255,.72); }
.sbtn.plus { background: var(--a-navy); }
.sbtn.plus .t { color: #fff; }
.sbtn .free, .sbtn .lk { font-size: var(--fs-2xs); letter-spacing: .04em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 4px 7px; display: inline-flex; align-items: center; gap: 3px; flex: none; white-space: nowrap; }
.sbtn .free { background: var(--a-free-bg); color: var(--a-free-ink); }
.sbtn .free svg { width: 11px; height: 11px; stroke: var(--a-free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbtn .lk { background: var(--a-red); color: var(--a-onacc); }

/* ---- objectif : score d'atteinte et code couleur des items ---- */
.score { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 14px 16px 16px; margin-bottom: 12px; border-left: 5px solid var(--e); --e: var(--a-ink3); }
.score.ok { --e: var(--a-green); }
.score.partiel { --e: var(--a-red); }
.score.absent { --e: var(--a-err); }
.score .cap { display: block; margin-bottom: 4px; }
.score .n { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-4xl); font-weight: 900; line-height: 1; color: var(--e); }
.score .n em { font-style: normal; font-size: var(--fs-base); font-weight: 800; color: var(--a-ink2); }
.score .gauge { margin: 10px 0 8px; }
.score .gauge i { background: var(--e); }
.score .m { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); line-height: 1.45; }
.card.ind.etat { border-left: 5px solid var(--e); --e: var(--a-line); }
.card.ind.etat.ok { --e: var(--a-green); }
.card.ind.etat.partiel { --e: var(--a-red); }
.card.ind.etat.absent { --e: var(--a-err); }

/* ---- écran « Vos données » ---- */
.lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--a-line); font-size: var(--fs-sm); font-weight: 700; }
.lrow:last-child { border-bottom: 0; }
.lrow .v { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--a-navy2); text-align: right; flex: none; }
.input.ta { resize: vertical; min-height: 64px; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-xs); line-height: 1.45; word-break: break-all; padding: 10px 12px; }
.dmsg { font-size: var(--fs-sm); font-weight: 700; line-height: 1.45; border-radius: var(--r-md); padding: 10px 12px; margin: 10px 0 0; background: var(--a-line2); color: var(--a-ink2); }
.dmsg.ok { background: var(--a-green-soft); color: var(--a-green2); }
.dmsg.ko { background: var(--a-err-soft); color: var(--a-err2); }
.btn.danger { background: var(--a-err); color: #fff; box-shadow: 0 4px 0 var(--a-err2); }
.ligne-donnees { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; background: var(--a-sur); border: 0; border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 9px 13px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ligne-donnees .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; line-height: 1.25; }
.ligne-donnees .s { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); line-height: 1.3; }
.ligne-donnees svg { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; flex: none; }
.ligne-donnees:active { transform: translateY(2px); }

/* Ce que le bilan ne couvre pas, dit explicitement plutôt que demandé. */
.card.horschamp { background: var(--a-bg); box-shadow: none; border: 1.5px dashed var(--a-line); padding: 13px 15px; font-size: var(--fs-sm); font-weight: 600; color: var(--a-ink2); line-height: 1.5; margin-bottom: 10px; }
.card.horschamp .cap { display: block; margin-bottom: 4px; color: var(--a-ink3); }

/* ---- le schéma, offert, mis en avant avant le mécanisme payant ---- */
.step-card .schemalink { margin-top: 2px; }
.schemalink { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; background: var(--a-sur); border: 2px solid var(--a-green); border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--a-green2); padding: 12px 14px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .08s; }
.schemalink:active { transform: translateY(3px); box-shadow: none; }
.schemalink .ic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--a-green); display: grid; place-items: center; flex: none; }
.schemalink .ic svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schemalink .tx { min-width: 0; flex: 1; }
.schemalink .cap { display: block; color: var(--a-green2); margin-bottom: 2px; }
.schemalink b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.2; display: block; }
.schemalink .free { font-size: var(--fs-2xs); letter-spacing: .05em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 4px 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--a-free-bg); color: var(--a-free-ink); flex: none; }
.schemalink .free svg { width: 12px; height: 12px; stroke: var(--a-free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tlead { margin: 6px 2px 12px; }
.ttile.wide .ic { width: 34px; height: 34px; }
.ttile.wide .ic svg { width: 19px; height: 19px; }

/* Page Outils sur écran court : on resserre plutôt que d'allonger le défilement. */
@container ecran (max-height: 800px) {
  .tlead { display: none; }
  .tlead + .tgrid { margin-top: 14px; }
  .tgrid { gap: 7px; margin-bottom: 10px; }
  .ttile { padding: 8px 10px; gap: 2px; border-radius: var(--r-lg); }
  .ttile .ic { width: 26px; height: 26px; border-radius: var(--r-sm); margin-bottom: 2px; }
  .ttile .ic svg { width: 15px; height: 15px; }
  .ttile .t { font-size: var(--fs-md); }
  .ttile .s { font-size: var(--fs-2xs); }
  .ttile.wide .s { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .ttile.wide.bloc .s { -webkit-line-clamp: 2; }
  .sous { margin-top: 6px; gap: 7px; }
  .sbtn { padding: 8px 10px; }
  .ligne-donnees { padding: 10px 13px; }
  .ligne-donnees .s { font-size: var(--fs-2xs); }
}

/* Cran intermédiaire : un sous-titre sur une ligne avant de le retirer tout à fait. */
@container ecran (max-height: 800px) {
  .toolspage .ttile:not(.wide) .s { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .toolspage .tcap { display: none; }
  .toolspage .tgrid:first-of-type { margin-bottom: 12px; }
  .ttile.wide.bloc .s { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

/* La page Outils occupe exactement la hauteur du téléphone : la grille des calculs
   absorbe la place restante, les rangées ne descendent jamais sous leur contenu compact. */
.toolspage { display: flex; flex-direction: column; min-height: 100cqh; }
.toolspage .tgrid { flex: none; }
.toolspage .tgrid:first-of-type { flex: 1; min-height: 0; grid-auto-rows: minmax(min-content, 1fr); align-content: stretch; }
.toolspage .ttile { overflow: visible; }

/* Très petit écran : les titres des calculs suffisent, le sous-titre laisse la place. */
@container ecran (max-height: 600px) {
  .toolspage .ttile:not(.wide) .s { display: none; }
  .toolspage .tcap { display: none; }
  .toolspage .tgrid:first-of-type { grid-auto-rows: minmax(min-content, 1fr); }
  .toolspage .ttile:not(.wide) { justify-content: flex-start; }
  .ttile.wide.bloc .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---- quiz : lancement, progression, note ---- */
.hero-quiz { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; width: 100%; background: var(--a-navy); color: #fff; border: 0; border-radius: var(--r-2xl); padding: 18px 18px 16px; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 0 var(--a-navy-dark); transition: transform .08s; }
.hero-quiz:active { transform: translateY(3px); box-shadow: none; }
.hero-quiz .cap { color: var(--a-red); }
.hero-quiz:has(.gratuit) > .cap { padding-right: calc(100px * var(--ts)); }
.hero-quiz .dqq { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.12; }
.hero-quiz .s { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.78); line-height: 1.45; }
.hero-quiz .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--a-red); color: var(--a-onacc); border-radius: var(--r-pill); padding: 11px 18px; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 900; margin-top: 3px; box-shadow: 0 3px 0 var(--a-red2); }
.hero-quiz .pill svg { width: 17px; height: 17px; stroke: var(--a-onacc); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-quiz .meta { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.niv { background: var(--a-red-soft); color: var(--a-red2); border-radius: var(--r-pill); padding: 6px 12px; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ligne-bible { display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 10px; background: var(--a-sur); border: 0; border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 11px 13px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ligne-bible .ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--a-green); display: grid; place-items: center; flex: none; }
.ligne-bible .ic svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ligne-bible .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.ligne-bible .s { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); line-height: 1.3; }
.ligne-bible svg:last-child { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-left: auto; flex: none; }
.ligne-bible:active { transform: translateY(2px); }
.pbar { flex: 1; height: 6px; background: var(--a-line2); border-radius: var(--r-pill); overflow: hidden; margin: 0 12px; }
.pbar i { display: block; height: 100%; background: var(--a-red); border-radius: var(--r-pill); transition: width .3s; }
.lvl-row .dots i.ko { background: var(--a-err); }
.note { border-radius: var(--r-2xl); padding: 20px 18px; background: var(--a-navy); color: #fff; display: flex; flex-direction: column; gap: 6px; border-left: 6px solid var(--e); --e: var(--a-red); }
.note.ok { --e: var(--a-green); }
.note.partiel { --e: var(--a-red); }
.note.absent { --e: var(--a-err); }
.note .cap { color: rgba(255,255,255,.6); }
.note .n { font-family: 'Outfit', sans-serif; font-size: 58px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.note .n em { font-style: normal; font-size: var(--fs-xl); font-weight: 800; color: rgba(255,255,255,.6); margin-left: 6px; }
.note .mention { font-size: var(--fs-md); font-weight: 800; }
.note .ev { font-size: var(--fs-xs); font-weight: 700; color: rgba(255,255,255,.7); line-height: 1.4; margin-top: 4px; }
.note .ev.up { color: #7BD6A6; }
.note .ev.down { color: #F0A9A2; }
.revoir { padding: 4px 0; }
.rline { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--a-line); padding: 11px 15px; font: inherit; color: inherit; cursor: pointer; }
.rline:last-child { border-bottom: 0; }
.rline .t { display: block; font-size: var(--fs-sm); font-weight: 800; line-height: 1.35; }
.rline .s { display: block; font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); margin-top: 3px; }
.brow { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.brow .bl { font-size: var(--fs-sm); font-weight: 800; width: 38%; min-width: 0; }
.brow .bt { flex: 1; height: 9px; background: var(--a-line2); border-radius: var(--r-pill); overflow: hidden; }
.brow .bt i { display: block; height: 100%; border-radius: var(--r-pill); }
.brow .bv { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-sm); width: 46px; text-align: right; white-space: nowrap; }
.lrow .v.ok { color: var(--a-green2); }
.lrow .v.partiel { color: var(--a-red2); }
.lrow .v.absent { color: var(--a-err2); }

/* ---- situations types ---- */
.sitlist { display: flex; flex-direction: column; gap: 9px; }
.sitcard { display: flex; align-items: flex-start; gap: 11px; width: 100%; background: var(--a-sur); border: 0; border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 12px 13px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .08s; }
.sitcard:active { transform: translateY(2px); }
.sitcard .ic { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; flex: none; }
.sitcard .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sitcard .tx { min-width: 0; }
.sitcard .t { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.2; }
.sitcard .s { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--a-ink2); line-height: 1.4; margin-top: 3px; }
.sitcard .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sitcard .tags i { font-style: normal; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: var(--a-line2); color: var(--a-ink3); border-radius: var(--r-pill); padding: 3px 7px; }
.sitpoints { display: flex; flex-direction: column; gap: 10px; }
.sitp { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 14px 15px; border-left: 5px solid var(--c); }
.sitp .n { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 900; line-height: 1.05; color: var(--c); letter-spacing: -.01em; }
.sitp .t { display: block; font-size: var(--fs-md); font-weight: 900; line-height: 1.35; margin-top: 3px; }
.sitp .d { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--a-ink2); line-height: 1.5; margin-top: 6px; }
.seg button span { margin-left: 5px; }

/* ---- trois entrées de Comprendre, clairement distinctes ---- */
.seg.trois { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.seg.trois button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: var(--fs-xs); line-height: 1.15; }
.seg.trois button i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--a-line); }
.seg.trois button i svg { width: 15px; height: 15px; stroke: var(--a-ink3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg.trois button span { margin: 0; font-size: var(--fs-2xs); font-weight: 900; color: var(--a-ink3); letter-spacing: .03em; }
.seg.trois button.on i { background: var(--a-navy); }
.seg.trois button.on i svg { stroke: #fff; }
.seg.trois button.on span { color: var(--a-ink2); }
.situliens { display: flex; flex-direction: column; gap: 10px; }
.situliens .ttile.wide, .situliens .guidelink, .situliens .hero-quiz { margin: 0; }
.situliens .hero-quiz { margin-top: 4px; }

/* ---- accueil : les six thèmes d'un coup, sans défilement ---- */
.hact { display: flex; align-items: center; gap: 8px; flex: none; }
.pinbtn { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--a-sur); border: 0; box-shadow: var(--a-sh); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pinbtn svg { width: 17px; height: 17px; stroke: var(--a-ink3); fill: none; stroke-width: 2; stroke-linejoin: round; }
.pinbtn.on svg { stroke: var(--a-red2); fill: var(--a-red); }
.pinbtn i { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: var(--r-pill); background: var(--a-navy); color: #fff; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; display: grid; place-items: center; padding: 0 4px; }
.pinbtn:active { transform: translateY(2px); }
.pgrid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ptile { padding: 9px; border-radius: var(--r-lg); }
.ptile .ic { width: 28px; height: 28px; border-radius: var(--r-sm); }
.ptile .ic svg { width: 16px; height: 16px; }
.ptile .t { font-size: var(--fs-sm); line-height: 1.12; }
.ptile .s { font-size: var(--fs-2xs); line-height: 1.2; }
.ptile .st { font-size: var(--fs-2xs); padding: 2px 5px; letter-spacing: .03em; }
.ptile .st.done { width: 16px; height: 16px; }
.padd { width: 19px; height: 19px; top: 7px; right: 7px; border-width: 1.5px; }
.padd svg { width: 10px; height: 10px; }

/* Accueil sur écran court : on resserre avant de laisser défiler. */
/* La phrase du bloc quiz est ce qui donne envie : elle passe avant le décor. */
@container ecran (max-height: 720px) {
  .hero-quiz { gap: 5px; padding: 14px 16px 12px; }
  .hero-quiz .dqq { font-size: var(--fs-2xl); }
  .ligne-bible { padding: 9px 12px; }
  .ligne-bible .ic { width: 30px; height: 30px; }
  .ligne-bible .ic svg { width: 17px; height: 17px; }
  .ligne-bible .s { display: none; }
  .ptile .s { display: none; }
  .pgrid { gap: 6px; }
  .ptile { padding: 8px; }
}
@container ecran (max-height: 600px) {
  .hometop { margin-bottom: 6px; }
  .hero-quiz .pill { padding: 9px 15px; font-size: var(--fs-md); }
  .hero-quiz .dqq { font-size: var(--fs-xl); }
  .ligne-prog .s { display: none; }
  .ligne-prog { padding: 9px 12px; gap: 6px; }
  .ligne-bible { padding: 8px 11px; }
}

/* ---- accueil : la progression, en bas ---- */
.ligne-prog { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; background: var(--a-sur); border: 0; border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 9px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .08s; }
.ligne-prog:active { transform: translateY(2px); }
.ligne-prog .tete { display: flex; align-items: center; gap: 10px; width: 100%; }
.ligne-prog .ic { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--a-navy); display: grid; place-items: center; flex: none; }
.ligne-prog .ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ligne-prog .tx { min-width: 0; flex: 1; }
.ligne-prog .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; }
.ligne-prog .s { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink2); line-height: 1.3; }
.ligne-prog .lpnote { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 900; line-height: 1; flex: none; color: var(--a-navy2); }
.ligne-prog .lpnote em { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); }
.ligne-prog .lpnote.ok { color: var(--a-green2); }
.ligne-prog .lpnote.partiel { color: var(--a-red2); }
.ligne-prog .lpnote.absent { color: var(--a-err2); }
.ligne-prog.vide .ic { background: var(--a-line2); }
.ligne-prog.vide .ic svg { stroke: var(--a-ink3); }
@container ecran (max-height: 580px) { .ligne-prog { padding: 9px 12px; } .ligne-prog .s { display: none; } }

/* « Tout comprendre » resserré, l'étoile à côté. */

/* la notification du lundi, telle qu'elle apparaîtra */
.notif { background: rgba(255,255,255,.86); border: 1px solid var(--a-line); border-radius: var(--r-xl); padding: 12px 14px; margin: 0 2px; backdrop-filter: blur(6px); box-shadow: 0 6px 18px -12px rgba(18,64,58,.5); }
.notif .nh { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.notif .ni { width: 18px; height: 18px; border-radius: var(--r-xs); background: var(--a-red); display: grid; place-items: center; flex: none; }
.notif .ni svg { width: 12px; height: 12px; fill: none; stroke: var(--a-onacc); stroke-width: 4; }
.notif .ni svg .f { fill: var(--a-onacc); stroke: none; }
.notif .na { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0; color: var(--a-ink3); }
.notif .nq { margin-left: auto; font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink3); white-space: nowrap; }
.notif .na { white-space: nowrap; }
.notif .nt { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 900; color: var(--a-ink); line-height: 1.15; }
.notif .nc { font-size: var(--fs-sm); line-height: 1.45; color: var(--a-ink2); margin-top: 2px; }

/* accueil en colonne pleine hauteur. La place libre, s'il y en a, va d'abord à deux espaces souples plafonnés
   (sous le bloc vert, avant les parcours) et aux tuiles, puis le reste pose « Votre dernier test » au-dessus du menu.
   S'il n'y a pas de place, rien ne grandit : l'accueil reste tel qu'il était. */
.homev { min-height: 100cqh; display: flex; flex-direction: column; }
.homev > .sect { margin-top: 18px; }
.homev > .esp { display: block; flex: 1 1 0; min-height: 0; }
.homev > .esp.e2 { max-height: 12px; }
/* tuiles de parcours : deux colonnes, icône à gauche, titre et nombre de parcours à droite */
.homev > .pgrid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; margin-bottom: 14px; }
.homev .ptile { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 11px; row-gap: 2px; align-content: center; padding: 10px 12px; min-height: 62px; position: relative; }
.homev .ptile .top { grid-row: 1 / span 2; grid-column: 1; margin: 0; }
.homev .ptile .ic { width: 40px; height: 40px; border-radius: var(--r-md); }
.homev .ptile .ic svg { width: 20px; height: 20px; }
.homev .ptile .t { grid-column: 2; margin: 0; align-self: end; font-size: var(--fs-md); line-height: 1.15; }
.homev .ptile .s { grid-column: 2; display: block; align-self: start; font-size: var(--fs-2xs); }
.homev .ptile .st.now { position: absolute; top: -8px; right: 10px; }
/* écrans courts : tuiles plus basses pour que les trois rangées tiennent */
@container ecran (max-height: 600px) {
  .homev > .sect { margin-top: 8px; }
  .homev > .pgrid { gap: 6px; margin-bottom: 6px; }
  .homev > .ligne-prog { margin-top: 6px; }
  .homev .ptile { min-height: 44px; padding: 6px 10px; column-gap: 9px; row-gap: 1px; }
  .homev .ptile .top { align-self: center; }
  .homev .ptile .ic { width: 30px; height: 30px; border-radius: var(--r-sm); }
  .homev .ptile .ic svg { width: 16px; height: 16px; }
  .homev .ptile .t { font-size: var(--fs-sm); }
  .homev .ptile .st.now { top: -7px; }
}
.homev > .ligne-prog { margin-top: auto; }

/* écran de lancement : une ligne d'information au lieu de deux cartes, et les deux boutons côte à côte */
.qzinfo { margin: 0 2px 2px; font-size: var(--fs-sm); line-height: 1.45; font-weight: 600; color: var(--a-ink2); }
.qzinfo b { color: var(--a-ink); font-weight: 900; }
.qzact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 14px; }
.qzact.seul { grid-template-columns: 1fr; }
.app .qzact .btn { font-size: var(--fs-base); padding: 14px 8px; white-space: nowrap; }

/* écran de lancement aéré : espaces souples plafonnés entre les blocs, les informations et les boutons descendent ensemble */
.qzvue { min-height: 100cqh; display: flex; flex-direction: column; }
.qzvue > .esp { display: block; flex: 1 1 0; min-height: 0; max-height: 22px; }
.qzvue > .qzbas { margin-top: auto; }
.qzvue > .esp.bas { max-height: 16px; }
/* lanceur, écrans courts : l'intro se rapproche des thèmes pour que tout tienne */
@container ecran (max-height: 600px) { .qzvue > p.small { margin-bottom: 8px !important; } .qzvue .field.compact .qp { margin-top: 4px; } }
@container ecran (min-height: 640px) { .qzvue .chips { gap: 9px; } .qzvue .qzact { margin-top: 16px; } }

/* le quiz de l'accueil est gratuit, et le dit : les parcours, eux, mènent vite à aket+ */
.hero-quiz { position: relative; }
.hero-quiz .gratuit { position: absolute; top: 15px; right: 16px; background: var(--a-free-bg); color: var(--a-free-ink); border-radius: var(--r-pill); padding: 4px 10px; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }

/* Comprendre : les trois portes d'entrée se lisent toutes comme des boutons, choisie ou non */
.seg.trois { background: transparent; padding: 0; gap: 8px; }
.seg.trois button { background: var(--a-sur); color: var(--a-ink); border: 1.5px solid var(--a-line); box-shadow: 0 3px 0 var(--a-line); border-radius: var(--r-lg); padding: 12px 4px 10px; gap: 2px; }
.seg.trois button[data-rtab="situations"] { --t: var(--a-plum); }
.seg.trois button[data-rtab="essentiel"] { --t: var(--a-green); }
.seg.trois button[data-rtab="guides"] { --t: var(--a-red); }
.seg.trois button i { background: var(--t); margin-bottom: 6px; }   /* le picto respire au-dessus du libellé */
.seg.trois button i svg { stroke: #fff; }
.seg.trois button span { color: var(--a-ink2); }
.seg.trois button.on { background: var(--a-navy); color: #fff; border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy-dark); }
.seg.trois button.on i { background: rgba(255,255,255,.16); }
.seg.trois button.on span { color: var(--a-yellow); }

/* l'étoile des épinglés, en haut à droite de l'accueil */
.hometop .pinbtn { width: 44px; height: 44px; flex: none; }
.hometop .pinbtn svg { width: 20px; height: 20px; }
/* la feuille réponse porte son étoile, à droite du verdict */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qwhy { margin-top: 16px; }

/* Comprendre : depuis un thème filtré, le chemin vers ses parcours */
.versparcours { display: flex; align-items: center; gap: 11px; width: 100%; margin: 10px 0 2px; padding: 10px 12px; background: var(--a-sur); border: 1.5px solid var(--a-line); border-left: 5px solid var(--c); border-radius: var(--r-lg); box-shadow: 0 2px 0 var(--a-line); font: inherit; color: var(--a-ink); text-align: left; cursor: pointer; }
.versparcours .ic { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--c); display: grid; place-items: center; flex: none; }
.versparcours .ic svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.versparcours .tx { flex: 1; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.versparcours > svg { width: 18px; height: 18px; stroke: var(--a-ink3); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Nue-propriété : le barème de l'article 669, la tranche de l'usufruitier en évidence */
.b669 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.b669 div { display: flex; flex-direction: column; gap: 1px; background: var(--a-sur); border-radius: var(--r-md); box-shadow: var(--a-sh); padding: 7px 8px; font-size: var(--fs-2xs); line-height: 1.25; }
.b669 div b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; }
.b669 div.on { background: var(--a-navy); color: #fff; }

/* Outil annoncé mais fermé : visible, non cliquable */
.ttile.ferme { cursor: default; opacity: .72; }
.ttile.ferme:active { transform: none; }
.bientot { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--a-bg); box-shadow: 0 2px 0 var(--a-line); font-family: 'Outfit', sans-serif; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A3B5C; }

/* mode abonné (simulation) : le mécanisme sous la réponse, la vue aket+ */
.meca { background: var(--a-sur); border-radius: var(--r-xl); padding: 14px 15px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--a-sh); }
.meca[hidden] { display: none; }
.meca .sous { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--a-ink3); font-weight: 700; }
.meca .part .cap { display: block; margin-bottom: 4px; color: var(--a-free-ink); }
.meca .part p { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--a-navy); font-weight: 500; }
.meca.vide { display: block; font-size: var(--fs-sm); color: var(--a-ink3); font-weight: 700; }
.meca.vide .cap { display: block; margin-bottom: 3px; }
.hook[aria-expanded="true"] .t { -webkit-line-clamp: unset; }
.pw .later li i { background: var(--a-line); }
.simabo { display: block; margin: 16px auto 0; font-size: var(--fs-xs); color: var(--a-ink3); }

/* parcours aket+ : le contenu de chaque étape s'ouvre sur place */
.stepopen { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; width: 100%; border: 0; background: var(--a-line2); border-radius: var(--r-md); padding: 9px 10px; font: inherit; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); text-align: left; cursor: pointer; }
.stepopen .lk { font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; color: #fff; background: var(--a-navy); border-radius: var(--r-pill); padding: 4px 7px; }
.stepopen .p { color: var(--a-free-ink); font-weight: 900; }
.step-card .sm { display: flex; flex-direction: column; gap: 8px; }
.step-card .sm[hidden] { display: none; }
.step-card .sm .cap { color: var(--a-free-ink); margin-top: 4px; }
.step-card .sm p { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--a-navy); }

/* ---- les questions à manipuler (Découverte) : déposer dans un pot, toucher le cran d'une réglette ---- */
.jeu .ji { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.jtray { display: flex; justify-content: center; align-items: center; min-height: 52px; margin: 0 0 10px; }
.jtok { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 14px; background: var(--a-sur); border: 2.5px solid var(--a-navy); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--a-navy); color: var(--a-navy); font-weight: 900; font-size: var(--fs-base); line-height: 1.2; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .25s cubic-bezier(.2,.9,.3,1.2); position: relative; z-index: 2; }
.jtok.tenu { cursor: grabbing; transition: none; z-index: 20; box-shadow: 0 14px 26px -8px rgba(18,64,58,.45), 0 4px 0 var(--a-navy); }
.jtok.invite { animation: jeu-invite 1.6s ease-in-out .5s 2; }
.jtok.secoue { animation: jeu-secoue .45s; }
.jvide { border: 2.5px dashed var(--a-line); border-radius: var(--r-lg); padding: 9px 14px; font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink3); text-align: center; }
.jeu.fini .jvide { border-style: solid; }
.jaide { text-align: center; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); margin-top: 8px; }
.jpots { display: grid; gap: 10px; }
.jpots.n2 { grid-template-columns: 1fr 1fr; }
.jpots.n3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jpot { --pc: var(--a-blue); --pb: #E3EEF4; --pd: #1F4E66; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 136px; padding: 0 8px 11px; background: var(--pb); color: var(--pd); border: 2.5px solid var(--pc); border-radius: var(--r-md) var(--r-md) var(--r-3xl) var(--r-3xl); box-shadow: 0 4px 0 var(--pc); font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .3s; }
.jpot.vert { --pc: var(--a-green); --pb: var(--a-green-soft); --pd: var(--a-green2); }
.jpot.prune { --pc: var(--a-plum); --pb: #ECE3F2; --pd: #4B3260; }
.jpot.ocre { --pc: var(--a-red); --pb: var(--a-yellow-soft); --pd: #8A5E10; }
.jpot.bleu { --pc: var(--a-blue); --pb: #E3EEF4; --pd: #1F4E66; }
.jlid { height: 9px; margin: 0 -8px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--pc); }
.jin { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.jin .jtok { font-size: var(--fs-xs); padding: 7px 9px; gap: 6px; box-shadow: 0 3px 0 var(--a-navy); }
.jin .jtok .ji { width: 16px; height: 16px; }
.jin .jtok.pose { animation: jeu-tombe .45s cubic-bezier(.2,.8,.2,1); }
.jlab { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.jlab .ji { width: 24px; height: 24px; }
.jlab b { font-size: var(--fs-md); font-weight: 900; line-height: 1.15; }
.jlab small { font-size: var(--fs-2xs); font-weight: 700; line-height: 1.25; opacity: .85; }
.jpots.n3 .jpot { min-height: 132px; padding: 0 6px 10px; }
.jpots.n3 .jlid { margin: 0 -6px; }
.jpots.n3 .jlab b { font-size: var(--fs-sm); }
.jpots.n3 .jlab small { font-size: var(--fs-2xs); }
.jpot.vise { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(46,110,142,.22), 0 4px 0 var(--pc); }
.jpot.choisi { border-width: 3.5px; }
.jpot:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--pc); }
.jpot:disabled { cursor: default; }
.jpot.ok { --pc: var(--a-green); --pb: var(--a-green-soft); --pd: var(--a-green2); }
.jpot.ok .jtok { border-color: var(--a-green); color: var(--a-green2); box-shadow: 0 3px 0 var(--a-green); }
.jpot.ok .jtok.arrive { animation: jeu-arrive .6s cubic-bezier(.2,.9,.3,1.3) .15s both; }
.jpot.ko { --pc: var(--a-err); --pb: var(--a-err-soft); --pd: var(--a-err2); }
.jtok.fantome { opacity: .5; border-style: dashed; box-shadow: none; text-decoration: line-through; }
.jpot.eteint { opacity: .45; }
/* la réglette à butées : on touche le cran, ou on glisse jusqu'à lui ; le choix vaut réponse */
.jreg { background: var(--a-sur); border-radius: var(--r-2xl); padding: 14px 16px 10px; box-shadow: var(--a-sh); }
.jobj { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; color: var(--a-navy); font-size: var(--fs-md); text-align: center; }
.jval { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 900; line-height: 1.1; text-align: center; color: var(--a-navy); margin: 6px 0 8px; }
.jval.vide { color: var(--a-ink3); }
.jval.pop { animation: jeu-pop .25s; }
.jval.ok { color: var(--a-green2); }
.jval.ko { color: var(--a-err2); text-decoration: line-through; text-decoration-thickness: 3px; }
.jbon { text-align: center; font-size: var(--fs-sm); font-weight: 800; color: var(--a-green2); margin: -6px 0 10px; }
.jrail { position: relative; height: 84px; margin: 16px 40px 0; touch-action: none; cursor: pointer; }
.jrail .jbar { position: absolute; left: 0; right: 0; top: 13px; height: 10px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--a-navy) var(--p, 0%), var(--a-line) var(--p, 0%)); pointer-events: none; }
.jbut { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: var(--a-ink2); pointer-events: none; }
.jbut i { display: block; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3.5px solid var(--a-line); box-shadow: 0 3px 0 var(--a-line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.jbut span { font-size: var(--fs-sm); font-weight: 800; line-height: 1.2; text-align: center; }
.jbut.on { color: var(--a-navy); }
.jbut.on i { border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy-dark); transform: scale(1.15); }
.jbut.ok { color: var(--a-green2); }
.jbut.ok i { border-color: var(--a-green); background: var(--a-green); box-shadow: 0 3px 0 var(--a-green2); transform: scale(1.15); }
.jbut.ko { color: var(--a-err2); }
.jbut.ko i { border-color: var(--a-err); box-shadow: 0 3px 0 var(--a-err2); }
.jbut.ko span { text-decoration: line-through; }
.jeu.fini .jrail { cursor: default; }
.jeu.fini .jrail .jbar { background: var(--a-line); }
.jreg .jval { margin: 8px 0 6px; }
.jreg .jbon { margin: -2px 0 4px; }
@keyframes jeu-invite { 0%, 100% { transform: none; } 20% { transform: translateY(-4px) rotate(-3deg); } 40% { transform: translateY(0) rotate(3deg); } 60% { transform: translateY(-2px) rotate(-1.5deg); } }
@keyframes jeu-secoue { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes jeu-tombe { from { transform: translateY(-26px) scale(.9); opacity: .4; } 70% { transform: translateY(3px); } to { transform: none; opacity: 1; } }
@keyframes jeu-arrive { from { transform: translateY(-40px) scale(.7); opacity: 0; } 70% { transform: translateY(2px) scale(1.08); opacity: 1; } to { transform: none; } }
@keyframes jeu-pop { from { transform: scale(.85); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .jtok.invite, .jtok.secoue, .jin .jtok.pose, .jpot.ok .jtok.arrive, .jval.pop { animation: none; } }
@container ecran (max-height: 640px) { .jpot { min-height: 108px; padding-bottom: 8px; } .jpots.n3 .jpot { min-height: 104px; } .jin { min-height: 34px; } .jlab .ji { width: 20px; height: 20px; } .jtray { min-height: 44px; margin-bottom: 6px; } .jtok { padding: 8px 12px; font-size: var(--fs-md); } .jaide { display: none; } .jcur { padding: 10px 14px 8px; } .jval { font-size: var(--fs-2xl); margin: 4px 0 6px; } }

/* ---- le mécanisme mis en scène : chiffres en relief, une idée par carte, « Et si… » à découvrir ---- */
.ch { font-weight: 900; background: var(--a-yellow-soft); color: #7A4F08; border-radius: var(--r-sm); padding: 0 4px; white-space: nowrap; }
b.kk { font-weight: 800; color: inherit; box-shadow: inset 0 -2px 0 var(--a-yellow); }   /* garde la couleur du texte : lisible sur fond clair comme sur fond sombre */
.expert .pt b.kk { color: #fff; box-shadow: inset 0 -2px 0 var(--a-yellow); }
.expert .pt.clair b.kk { color: var(--a-navy-dark); }
.step-card .sm .mhead { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.step-card .sm .mhead .cap { margin: 0; }
.mcount { font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); }
.mcards { position: relative; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.mcards::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 88%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: var(--a-navy); border-radius: var(--r-xl); padding: 14px 15px 16px; box-shadow: 0 4px 0 var(--a-navy-dark); cursor: pointer; }
.mcard .mn { font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 900; color: var(--a-yellow); }
.mcard .mn i { font-style: normal; opacity: .6; }
.step-card .sm .mcard p { color: rgba(255, 255, 255, .82); font-size: var(--fs-md); line-height: 1.55; }
.step-card .sm .mcard p:not(.lead) { text-align: left; hyphens: auto; -webkit-hyphens: auto; }
.step-card .sm .mcard p.lead { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); line-height: 1.28; font-weight: 800; color: #fff; }
.mcard .ch { background: var(--a-yellow); color: var(--a-navy-dark); }
.mcard .msuite { margin-top: auto; align-self: flex-end; font-size: var(--fs-xs); font-weight: 900; color: var(--a-yellow); }
.mdots { display: flex; justify-content: center; gap: 6px; margin-top: -2px; }
.mdots i { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--a-line); transition: width .2s, background .2s; }
.mdots i.on { width: 18px; background: var(--a-navy); }
.etsi { display: flex; flex-direction: column; gap: 8px; }
.esq { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); background: var(--a-sur); border: 2px solid var(--a-line); border-radius: var(--r-lg); padding: 11px 12px; cursor: pointer; box-shadow: 0 3px 0 var(--a-line); }
.esq i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: var(--fs-lg); color: #fff; background: var(--a-red); transition: transform .2s; }
.esq[aria-expanded="true"] { border-color: var(--a-red); box-shadow: none; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.esq[aria-expanded="true"] i { transform: rotate(45deg); }
.step-card .sm .esr { margin: -10px 0 0; background: var(--a-yellow-soft); border: 2px solid var(--a-red); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 10px 12px 12px; font-size: var(--fs-md); }
.esr[hidden] { display: none; }
.meca .part { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.meca .pn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--a-navy); color: #fff; font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 900; }
.meca .part p.lead { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); line-height: 1.3; font-weight: 800; margin-bottom: 4px; }
.meca .mpts { list-style: none; margin: 4px 0 0; padding: 0; }
.meca .mpts li { position: relative; padding: 9px 0 9px 14px; border-top: 1px solid var(--a-line); font-size: var(--fs-sm); line-height: 1.55; color: var(--a-navy); font-weight: 500; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.meca .mpts li:first-child { border-top: 0; padding-top: 4px; }
.meca .mpts li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 5px; height: 5px; border-radius: 50%; background: var(--a-red); }
.meca .mpts li:first-child::before { top: calc(1.05em - 5px); }
@media (prefers-reduced-motion: reduce) { .esq i, .mdots i { transition: none; } }
/* l'idée reçue et le cas concret, aux deux bouts du carrousel */
.mcard.croit { background: var(--a-err-soft); box-shadow: 0 4px 0 #EBC2BC; }
.mcard.ex { background: var(--a-yellow-soft); box-shadow: 0 4px 0 #EAD79C; }
.mcard.croit .mn { color: var(--a-err2); }
.mcard.ex .mn { color: #8A5E10; }
.step-card .sm .mcard.croit p, .step-card .sm .mcard.ex p { color: var(--a-navy); }
.step-card .sm .mcard.croit p.lead { color: var(--a-err2); }
.step-card .sm .mcard.ex p.lead { color: var(--a-navy); }
.mcard.croit .msuite { color: var(--a-err2); }
.mcard.ex .ch { background: #fff; color: #7A4F08; }

/* Schéma répartition ou capitalisation */
.rc { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 12px; }
.rc .rl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rc .rl b { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink2); }
.rc .rl span { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink3); text-align: right; }
.rc .ppl { display: flex; justify-content: space-around; gap: 4px; }
.rc .pp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--a-navy); box-shadow: 0 2px 0 var(--a-line); transition: background .4s, color .4s; }
.rc .ret .pp { background: var(--a-line); color: var(--a-ink2); }
.rc .ret .pp.paye { background: var(--a-red); color: var(--a-ink); box-shadow: 0 2px 0 var(--a-red2); }
.rc .flux { position: relative; height: 46px; }
.rc .flux i { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--a-red); box-shadow: inset 0 -2px 0 var(--a-red2); transition: left .9s cubic-bezier(.4, 0, .2, 1), top .9s cubic-bezier(.4, 0, .2, 1), opacity .3s .9s; }
.rc .flux i.go { opacity: 0; }
.rc .ratio { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed #D9CFBC; }
.rc .ratio b { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; color: var(--a-red2); line-height: 1; }
.rc .ratio span { font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink2); }
.rc .ratio em { margin-left: auto; display: flex; gap: 6px; font-style: normal; }
.rc .ratio .chip { border: 2px solid var(--a-line); background: #fff; color: var(--a-ink); border-radius: var(--r-pill); padding: 8px 12px; font: inherit; font-size: var(--fs-xs); font-weight: 900; cursor: pointer; }
.rc .ratio .chip.on { background: var(--a-navy); border-color: var(--a-navy); color: #fff; }
.rc .hyp { margin: 0 0 6px; padding: 8px 10px; border-radius: var(--r-md); background: #fff; font-size: var(--fs-xs); line-height: 1.45; font-weight: 700; color: var(--a-ink2); }
.rc .hyp b { color: var(--a-ink); font-weight: 900; }
.rc .cc { display: flex; gap: 16px; align-items: flex-end; height: 150px; }
.rc .col { position: relative; width: 74px; height: 100%; border-radius: var(--r-md); background: var(--a-line); overflow: hidden; flex: none; }
.rc .col i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .35s, bottom .35s; }
.rc .col .v { background: var(--a-navy); }
.rc .col .g { background: var(--a-red); }
.rc .cv { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.rc .cv div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink2); }
.rc .cv b { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-sm); color: var(--a-ink); }
.rc .cv div:nth-child(1) span::before, .rc .cv div:nth-child(2) span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: var(--r-xs); margin-right: 6px; background: var(--a-navy); }
.rc .cv div:nth-child(2) span::before { background: var(--a-red); }
.rc .cv .tot { border-top: 1px dashed #D9CFBC; padding-top: 6px; }
.rc .cv .tot b { font-size: var(--fs-base); color: var(--a-red2); }
.rc .curs { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.rc .face { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rc .fc { background: #fff; border-radius: var(--r-md); padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rc .fc span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.rc .fc b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; color: var(--a-red2); }
.rc .fc.rp b { color: var(--a-navy); }
.rc .fc small { font-size: var(--fs-2xs); font-weight: 700; line-height: 1.35; color: var(--a-ink2); }
.rc .curs span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.rc .curs b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-red2); }
@media (prefers-reduced-motion: reduce) { .rc .flux i, .rc .col i, .rc .pp { transition: none; } }

/* ---- Enfants & argent : un habillage plus joueur ---- */
.fhero.kid { background: linear-gradient(135deg, var(--c), #7A8BD6); border-radius: var(--r-3xl); position: relative; overflow: hidden; }
.fhero.kid::after { content: ""; position: absolute; right: -34px; top: -34px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.13); }
.fhero.kid::before { content: ""; position: absolute; right: 44px; bottom: -56px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.1); }
.fhero.kid > * { position: relative; }
.steps.kid .step-card { --kc: #4C5FB0; --kb: #EEF0FA; border: 2.5px solid var(--kb); box-shadow: 0 4px 0 var(--kb); border-radius: var(--r-2xl); }
.steps.kid .step-card:nth-child(4n+1) { --kc: var(--a-red); --kb: var(--a-free-bg); }
.steps.kid .step-card:nth-child(4n+2) { --kc: var(--a-green); --kb: #DDF2E6; }
.steps.kid .step-card:nth-child(4n+3) { --kc: var(--a-blue); --kb: #DFECF3; }
.steps.kid .step-card:nth-child(4n+4) { --kc: #8A3B5C; --kb: #F5E3EA; }
.steps.kid .step-card .sh { grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.steps.kid .step-card .n { width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--kc); color: #fff; font-size: var(--fs-lg); transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.steps.kid .step-card .n svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps.kid .step-card.ok .n { background: var(--a-green); }
.steps.kid .step-card .t { font-size: var(--fs-lg); }
.ensemble { background: #FFF9EA; border: 2px dashed var(--a-red); border-radius: var(--r-lg); padding: 11px 13px 12px; font-size: var(--fs-sm); line-height: 1.5; color: var(--a-navy); }
.ensemble .cap { display: flex; align-items: center; gap: 6px; color: var(--a-red2); margin-bottom: 4px; }
.ensemble .cap svg { width: 15px; height: 15px; stroke: var(--a-red2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ensemble .dur { margin-left: auto; font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; background: var(--a-red); color: var(--a-navy-dark); border-radius: var(--r-pill); padding: 3px 8px; }
.ensemble > b { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; margin-bottom: 3px; }
.ensemble p { margin: 0; color: var(--a-ink2); font-weight: 600; }
.badge-kid { display: flex; align-items: center; gap: 14px; background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 14px 16px; }
.badge-kid .ki { width: 58px; height: 58px; border-radius: var(--r-xl); background: var(--kc, #4C5FB0); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.18); flex: none; animation: badge-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.badge-kid .ki svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-kid .cap { display: block; margin-bottom: 2px; }
.badge-kid b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; }
@keyframes badge-pop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }
.glist.kid .gnum { border-radius: var(--r-lg); transform: rotate(-4deg); }
/* ---- le schéma de la tirelire ---- */
.sch .objs { margin-bottom: 2px; }
.tlr { display: grid; grid-template-columns: 1fr 118px; gap: 12px; align-items: end; padding: 14px 12px 10px; min-height: 186px; }
.tlr .but { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.tlr .but .obj { display: flex; align-items: baseline; justify-content: space-between; }
.tlr .but .obj b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); color: var(--a-ink); }
.tlr .but .obj span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.tlr .jauge { height: 14px; border-radius: var(--r-pill); background: var(--a-line); overflow: hidden; }
.tlr .jauge i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--a-red); transition: width .5s cubic-bezier(.2,.9,.3,1.2); }
.tlr .sem { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; color: var(--a-navy); line-height: 1; }
.tlr .sem small { display: block; font-family: 'Nunito', sans-serif; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); margin-top: 5px; }
.tlr .pig { position: relative; width: 118px; height: 148px; }
.tlr .pig svg.corps { position: absolute; inset: 0; width: 100%; height: 100%; }
.tlr .pieces { position: absolute; left: 26px; right: 26px; bottom: 30px; height: 72px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 3px; overflow: hidden; }
.tlr .pieces i { width: 14px; height: 14px; border-radius: 50%; background: #F2C14E; border: 2px solid #C9932A; box-sizing: border-box; animation: tl-tombe .5s cubic-bezier(.2,.9,.3,1.2) both; }
.tlr .pieces i.b { background: #7ED3A5; border-color: var(--a-green); }
.tlr.plein .pig { animation: tl-danse .7s ease-in-out 2; transform-origin: 50% 90%; }
.tlr .fete { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font-family: 'Outfit', sans-serif; font-weight: 900; font-size: var(--fs-base); color: var(--a-red2); }
@keyframes tl-tombe { from { transform: translateY(-70px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tl-danse { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ---- l'outil de fin de parcours : un vrai bouton quand il existe ---- */
.card.outil { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; font: inherit; color: inherit; text-align: left; }
.card.outil .cap { display: block; margin-bottom: 3px; }
.card.outil b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.2; display: block; }
.card.outil.go { border: 2px solid var(--a-green); box-shadow: 0 3px 0 var(--a-green2); cursor: pointer; }
.card.outil.go:active { transform: translateY(3px); box-shadow: none; }
.card.outil.go .p { color: var(--a-green2); font-weight: 900; font-size: var(--fs-sm); flex: none; }
.card.outil.go .cap { color: var(--a-green2); }
.card.outil.soon { opacity: .8; }
.card.outil.soon .bientot { flex: none; font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; background: var(--a-line2); color: var(--a-ink3); border-radius: var(--r-pill); padding: 4px 8px; }
.ensemble .cap { white-space: nowrap; }
.ensemble .dur { white-space: nowrap; font-size: var(--fs-2xs); padding: 3px 7px; }
.qh .tree.sans-enf { grid-template-rows: repeat(2, 84px); }
.qh .tree.sans-enf .tp.e { display: none; }

/* ---- barème par tranches, deux compteurs, entrée-sortie ---- */
.sbt { padding: 12px 12px 10px; }
.sbt .row { display: grid; grid-template-columns: 40px 1fr 74px; gap: 8px; align-items: center; margin: 5px 0; }
.sbt .tx { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-md); text-align: right; color: var(--a-ink); }
.sbt .bd { position: relative; height: 26px; border-radius: var(--r-sm); background: #EDE6D8; overflow: hidden; }
.sbt .bd i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--r-sm); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.sbt .bd em { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 8px; font-style: normal; font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink); white-space: nowrap; }
.sbt .im { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-xs); text-align: right; color: var(--a-ink2); }
.sbt .tot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #D8CFBD; }
.sbt .tot span { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.sbt .tot b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); color: var(--a-ink); letter-spacing: 0; text-transform: none; }
.sdc { display: flex; flex-direction: column; gap: 14px; padding: 16px 12px 14px; }
.sdc .cl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.sdc .cl span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink2); }
.sdc .cl b { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); color: var(--a-ink); white-space: nowrap; }
.sdc .trk { position: relative; height: 16px; border-radius: var(--r-sm); background: #EDE6D8; margin-bottom: 16px; }
.sdc .trk i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: var(--r-sm); background: var(--a-terra); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.sdc .trk.ps i { background: var(--a-blue); }
.sdc .trk em { position: absolute; top: 20px; transform: translateX(-50%); font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); color: var(--a-ink3); white-space: nowrap; }
.sdc .trk em:last-child { transform: translateX(-100%); }
.sdc .ex { display: flex; justify-content: space-between; align-items: baseline; background: #fff; border-radius: var(--r-md); padding: 10px 12px; }
.sdc .ex span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink2); }
.sdc .ex b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-terra); }
.sch .ctrl.lbl { align-items: center; }
.sch .ctrl.lbl span { flex: 1 0 100%; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); margin-bottom: -2px; }
.ses { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 8px; align-items: end; padding: 16px 12px 14px; }
.ses .col { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.ses .k { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.ses .pile { width: 76px; display: flex; flex-direction: column-reverse; gap: 3px; }
.ses .pile i { display: block; width: 100%; height: 60px; border-radius: var(--r-sm); background: var(--a-navy); transition: height .5s cubic-bezier(.2,.8,.2,1); }
.ses .pile i.g { background: var(--a-red); height: 0; }
.ses b { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); color: var(--a-ink); }
.ses .eco, .ses .tax { font-size: var(--fs-2xs); font-weight: 900; border-radius: var(--r-pill); padding: 4px 9px; line-height: 1.25; }
.ses .eco { background: #DDEFE4; color: var(--a-green2); }
.ses .tax { background: var(--a-err-soft); color: var(--a-err2); }
.ses .fl { font-size: var(--fs-2xl); color: #C9BFAE; text-align: center; padding-bottom: 46px; }

/* ---- animations au service du chiffre : relief, anneau, proportion ---- */
.sheet .why .ch { background: var(--a-yellow-soft); color: var(--a-navy-dark); border-radius: var(--r-sm); padding: 0 4px; font-weight: 900; white-space: nowrap; }
.note { position: relative; }
.note .ring { position: absolute; right: 16px; top: 16px; width: 74px; height: 74px; transform: rotate(-90deg); }
.note .ring circle { fill: none; stroke-width: 4; }
.note .ring .bg { stroke: rgba(255,255,255,.14); }
.note .ring .fg { stroke: var(--e); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: calc(97.4 * (1 - var(--p, 0))); animation: ring-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ring-in { from { stroke-dashoffset: 97.4; } }
.result .prop { display: flex; height: 26px; border-radius: var(--r-sm); overflow: hidden; gap: 2px; margin: 2px 0 10px; }
.result .prop i { display: grid; place-items: center; min-width: 0; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; color: #fff; transition: flex .4s cubic-bezier(.2,.8,.2,1); }
.result .prop i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; max-width: 100%; }
/* ---- le jeu « remettre dans l'ordre » ---- */
.jord { background: var(--a-sur); border-radius: var(--r-2xl); padding: 14px 14px 12px; box-shadow: var(--a-sh); }
.jitems { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.jit { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; border: 2.5px solid var(--a-line); background: #fff; border-radius: var(--r-lg); padding: 11px 12px 11px 50px; font: inherit; font-size: var(--fs-md); font-weight: 800; color: var(--a-navy); text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--a-line); transition: border-color .2s, box-shadow .2s; }
.jit .num { position: absolute; left: 10px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--a-line2); color: var(--a-ink3); display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 900; transition: background .2s, color .2s; }
.jit .ji { width: 20px; height: 20px; flex: none; }
.jit.pris { border-color: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy); }
.jit.pris .num { background: var(--a-navy); color: #fff; animation: jeu-pop .25s; }
.jit.ok { border-color: var(--a-green); box-shadow: 0 3px 0 var(--a-green); }
.jit.ok .num { background: var(--a-green); color: #fff; }
.jit.ko { border-color: var(--a-err); box-shadow: 0 3px 0 var(--a-err); }
.jit.ko .num { background: var(--a-err); color: #fff; }
.jit em { margin-left: auto; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; color: var(--a-err2); white-space: nowrap; }
.jit:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { .note .ring .fg, .jit.pris .num { animation: none; } }

/* ---- la boule de neige : animation explicative ---- */
.pos { width: 100%; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.pos .foule { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; width: 100%; }
.pos .foule i { display: block; aspect-ratio: 1; border-radius: var(--r-xs); background: var(--a-line); transition: background .3s, transform .3s, border-radius .3s; }
.pos .foule i.d { background: var(--a-navy); }
.pos .foule i.moi { background: var(--a-red); border-radius: 50%; transform: scale(1.45); box-shadow: 0 0 0 2px #fff; position: relative; z-index: 1; }
.pos .verdict { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.pos .verdict b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; color: var(--a-red2); line-height: 1.1; }
.pos .verdict span { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); }
.pos .echelle { position: relative; height: 40px; margin: 14px 4px 0; border-top: 2px solid #D9CFBC; }
.pos .echelle span { position: absolute; top: 6px; transform: translateX(-50%); font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink2); white-space: nowrap; text-align: center; line-height: 1.15; }
.pos .echelle span::before { content: ""; position: absolute; top: -8px; left: 50%; width: 2px; height: 7px; margin-left: -1px; background: var(--a-red2); }
.pos .echelle span.typ, .pos .echelle span.bas { top: 27px; }
.pos .echelle span.typ { color: var(--a-green2); }
.pos .echelle span.bas::before { top: -29px; height: 28px; width: 1px; opacity: .5; }
.pos .echelle span.typ::before { top: -29px; height: 28px; width: 1px; background: var(--a-green); opacity: .5; }
.pos .echelle span.moi { top: -20px; color: var(--a-red2); font-size: var(--fs-2xs); font-weight: 900; transition: left .3s; }
.pos .echelle span.moi::before { top: 12px; height: 8px; background: var(--a-red); }
@media (prefers-reduced-motion: reduce) { .pos .foule i, .pos .echelle span.moi { transition: none; } }
.sbn { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.sbn svg { width: 100%; height: auto; display: block; border-radius: var(--r-md); background: linear-gradient(180deg, #EAF2F8, #F6F0E4); }
.sbn .pente { fill: var(--a-sur); opacity: .9; }
.sbn .boule .c { stroke: #B9CBDD; stroke-width: 1.5; }
.sbn .boule .v { fill: var(--a-navy); opacity: .85; }
.sbn .an { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-md); fill: var(--a-ink); }
.bn-pile { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bn-pile .lig { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border-radius: var(--r-md); padding: 8px 10px; }
.bn-pile .lig i { width: 22px; height: 6px; border-radius: var(--r-xs); background: var(--a-navy); }
.bn-pile .lig i.g { background: var(--a-red); }
.bn-pile .lig b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); color: var(--a-ink); }
.bn-pile .lig span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.scb { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.scb .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scb .duo div { background: #fff; border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.scb .duo div.re { border-color: var(--a-red); background: var(--a-bg); }
.scb .duo span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.scb .duo b { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); letter-spacing: -.02em; line-height: 1.1; color: var(--a-ink); }
.scb .duo em { font-style: normal; font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink2); }
.scb .per { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); }
.scb .grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.scb .grid div { background: #fff; border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.scb .grid b { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); line-height: 1.2; color: var(--a-ink); }
.scb .grid b.neg { color: var(--a-terra); }
.scb .grid span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.scb .ans { font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); margin-top: 2px; }
.scb svg { width: 100%; height: auto; display: block; background: #fff; border-radius: var(--r-md); }
.scb svg .up { fill: var(--a-navy); }
.scb svg .dn { fill: var(--a-terra); }
.scb svg .axe { stroke: #DCE7F2; stroke-width: 1; }
.scb svg text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 9px; fill: var(--a-ink2); }
.bn-pile .lig.tot { background: var(--a-navy); } .bn-pile .lig.tot b { color: #fff; } .bn-pile .lig.tot span { color: rgba(255,255,255,.7); }
.bn-dots { display: flex; justify-content: center; gap: 6px; }
.bn-dots i { width: 8px; height: 8px; border-radius: 50%; background: #D8CFBD; transition: background .3s, transform .3s; }
.bn-dots i.on { background: var(--a-red); transform: scale(1.3); }

/* ---- le lexique ---- */
.seg.trois.quatre { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg.trois.quatre button { padding: 11px 2px 9px; font-size: var(--fs-2xs); }
.lettres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lettres a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--a-sur); box-shadow: var(--a-sh); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-sm); color: var(--a-navy); text-decoration: none; }
.lexliens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lexliens .linkbtn { margin: 0; }

/* ---- audit UX : cibles, étiquettes, tronçons ---- */
.linkbtn { padding: 12px 0; min-height: 44px; margin-bottom: 4px; }
.search { padding: 6px 14px; }
.search input { height: 40px; }
.ttile .s { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.step-card .n { color: var(--a-ink2); }
.sdc .trk em { color: var(--a-ink2); }

.barrow .pc { white-space: nowrap; min-width: 44px; text-align: right; }
.result .rows2 div { gap: 12px; align-items: baseline; }
.result .rows2 .amt { white-space: nowrap; flex: none; }

/* ---- audit UX, second lot ---- */
.app .tabbar[hidden] { display: none; }
.pgrid { grid-auto-rows: 1fr; }
.tgrid > .ttile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tgrid.bgrid > .ttile:last-child:nth-child(odd) { grid-column: auto; }
/* les six volets : titre sur deux lignes, sous-titre sur deux lignes, pastille alignée */
.tgrid.bgrid > .ttile:not(.wide) .t { min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tgrid.bgrid > .ttile:not(.wide) .s { min-height: 2.56em; }
.tgrid.bgrid > .ttile:not(.wide) .lk { margin-top: 8px; }
.fhero h2, .fitem h3, .grow .t, .plusloin .tx > b { text-wrap: balance; }
.rc .ratio { flex-wrap: wrap; row-gap: 8px; }
.chips.liste { flex-direction: column; align-items: stretch; }
.chips.liste .chip { width: 100%; text-align: left; }
.mini-res { position: absolute; left: 14px; right: 14px; bottom: 104px; z-index: 3; display: none; justify-content: space-between; align-items: center; gap: 12px; background: var(--a-navy); color: #fff; border-radius: var(--r-lg); padding: 10px 14px; box-shadow: 0 8px 24px rgba(10,43,39,.28); border: 0; font: inherit; text-align: left; cursor: pointer; }
.mini-res.on { display: flex; }
.mini-res span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-yellow); }
.mini-res b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; text-align: right; }
@media (prefers-reduced-motion: no-preference) { .mini-res.on { animation: mini-in .25s ease-out; } @keyframes mini-in { from { transform: translateY(12px); opacity: 0; } } }

/* ---- audit UX, troisième lot ---- */
.sheet-foot .lvl-row { flex-wrap: wrap; justify-content: space-between; row-gap: 6px; }
.sheet-foot .lvl-row > span { white-space: nowrap; }
.sheet-foot .lvl-row .dots { order: 3; width: 100%; flex-wrap: wrap; gap: 4px; }
.sheet-foot .lvl-row .dots i { width: 7px; height: 7px; }
.sheet.ko .verdict i svg { stroke: #fff; }
.result .rows2 .amt { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: var(--fs-md); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ==== design system : décisions transversales ==== */
:root { --t-vie: var(--a-plum); --t-trans: var(--a-teal); --t-immo: var(--a-terra); --t-retraite: var(--a-blue); --t-epargne: #2F7D4F; --t-chef: #8A3B5C; --t-enfants: #4C5FB0; --t-budget: #86791F; }
/* un seul badge aket+ : pilule vert nuit, texte crème, Outfit ; inversé sur fond sombre */
.lk, .grow .lk, .ttile .lk, .sect .lk, .sbtn .lk, .stepopen .lk, .slock .lk, .hook .p.mq { background: var(--a-navy); color: var(--a-bg); border: 0; box-shadow: none; font-family: 'Outfit', sans-serif; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: 0; text-transform: none; padding: 4px 9px; border-radius: var(--r-pill); display: inline-flex; align-items: center; line-height: 1.2; }
.sbtn.plus .lk, .hook .p.mq, .hero .cap .mq, .fhero .cap .mq, .phero .cap .mq { background: var(--a-bg); color: var(--a-navy); }
.cap .mq { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); margin-left: 4px; font-size: var(--fs-2xs); font-weight: 800; line-height: 1.3; background: var(--a-navy); color: var(--a-bg); vertical-align: middle; }
/* un seul badge Gratuit : pilule paille, texte ocre foncé, icône cadeau */
.free, .sect .free, .ttile .free, .sbtn .free, .schemalink .free, .hero-quiz .gratuit { background: var(--a-free-bg); color: var(--a-free-ink); font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; border-radius: var(--r-pill); padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; }
.free svg, .hero-quiz .gratuit svg { width: 12px; height: 12px; stroke: var(--a-free-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* pastille numérotée : pleine vert nuit quand elle guide, contour quand l'étape n'est pas commencée */
.spoints .n { width: 28px; height: 28px; }
.step-card .n { background: transparent; border: 2px solid var(--a-navy); color: var(--a-navy); width: 28px; height: 28px; font-size: var(--fs-sm); }
.step-card.ok .n { background: var(--a-green); border-color: var(--a-green); color: #fff; }
.step-card.cur .n { background: var(--a-red); border-color: var(--a-red); color: var(--a-onacc); }
/* carte d'étape : un seul rayon interne, un seul niveau de relief */
.step-card .sfree, .step-card .schemalink, .step-card .stepopen, .step-card .ensemble, .step-card .sm .mcard, .step-card .sm .esr { border-radius: var(--r-md); }
.schemalink { border: 2px solid var(--a-navy); box-shadow: none; background: var(--a-sur); }
.schemalink .ic { background: var(--a-navy); }
.schemalink .cap { color: var(--a-navy); }
.schemalink:active { transform: none; opacity: .85; }
/* liseré de carte : une barre intérieure qui suit le rayon, plus de croissant */
.score, .sitp, .note, .card.ind.etat { border-left: 0; position: relative; overflow: hidden; }
.score::before, .sitp::before, .note::before, .card.ind.etat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 var(--r-xs) var(--r-xs) 0; background: var(--e, var(--c)); }
.sitp::before { background: var(--c); }
/* listes cliquables : un chevron */
.rline { position: relative; padding-right: 28px; }
.rline::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: var(--fs-2xl); line-height: 1; color: var(--a-ink3); }
h2 + .avert { margin-top: 16px; }
/* fin de l'accueil */
.obresume, .obthemes { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.obresume .chips { flex-wrap: wrap; }
.obth { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: var(--a-sur); border-radius: var(--r-lg); box-shadow: var(--a-sh); padding: 10px 12px; text-align: left; }
.obth .ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; }
.obth .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.obth b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; display: block; line-height: 1.2; }
.obth .sub { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); display: block; }
.ob-fin .btn { margin-top: auto; }

/* ==== offre unique et calculateurs aket+ ==== */
.plans.un { grid-template-columns: 1fr; }
.plans.un .plan { display: flex; flex-direction: column; align-items: flex-start; }
.plans.un .plan .p { font-size: var(--fs-4xl); }
.verrou { position: relative; margin: 6px 0 14px; }
.verrou-contenu { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.verrou-cta { position: absolute; left: 6px; right: 6px; top: 34px; background: var(--a-sur); border-radius: var(--r-xl); box-shadow: 0 10px 30px rgba(10,43,39,.18), var(--a-sh); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; }
.verrou-cta b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; color: var(--a-ink); }
.verrou-cta > span:not(.lk) { font-size: var(--fs-sm); line-height: 1.45; color: var(--a-ink2); font-weight: 600; }
.verrou-cta .btn { width: 100%; margin-top: 4px; }
.ttile .lk { margin-top: 6px; }
/* fin de la première ouverture : thèmes à composer */
.obth { grid-template-columns: 44px 1fr 24px; border: 2px solid transparent; font: inherit; color: inherit; width: 100%; cursor: pointer; }
.obth.on { border-color: var(--a-navy); }
.obth .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--a-line); display: grid; place-items: center; background: var(--a-sur); }
.obth.on .tick { background: var(--a-navy); border-color: var(--a-navy); }
.obth .tick svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.obth.on .tick svg { opacity: 1; }
.obth:not(.on) .ic { opacity: .55; }
.obthemes .sect .cap { margin: 0; }

/* ==== design system, suite : Comprendre et schémas ==== */
.seg.trois button[data-rtab] { --t: var(--a-navy); }
.seg.trois button i { background: var(--a-navy); }
.seg.trois.quatre { margin: 10px 0 8px; }
.seg.trois.quatre button { padding: 9px 2px 8px; gap: 1px; }
.seg.trois.quatre button i { width: 30px; height: 30px; margin-bottom: 4px; }
.seg.trois.quatre button i svg { width: 17px; height: 17px; }
.sdc .cl { flex-wrap: wrap; }

/* ---- Go pour tout : tampon LFSS 2026, liste pour le notaire, mécanisme offert, impression ---- */
.stamp { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0 0 14px; padding: 10px 12px; border: 0; border-radius: var(--r-lg); background: var(--a-sur); box-shadow: var(--a-sh); text-align: left; cursor: pointer; font: inherit; color: var(--a-ink); }
.stamp .lk { margin: 0; flex: none; }
.stamp .t { flex: 1; font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; line-height: 1.25; }
.stamp svg { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stamp:active { transform: translateY(2px); }
.pw .stamp { margin-top: 12px; }
.chg { display: grid; gap: 10px; }
.chgi { background: var(--a-sur); border-radius: var(--r-lg); padding: 12px 14px 12px 16px; box-shadow: var(--a-sh); border-left: 5px solid var(--c); display: grid; gap: 4px; }
.chgi .cap { color: var(--c); }
.chgi b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.25; color: var(--a-ink); text-wrap: balance; }
.chgi p { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--a-ink2); font-weight: 600; }
.chgi .linkbtn { justify-self: start; padding: 4px 0 0; min-height: 0; margin: 0; }
.nactions { margin: -2px 0 14px; }
.nactions .btn { width: 100%; }
.ngroupe { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 12px 12px 6px; margin-bottom: 10px; }
.ngroupe .nh { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 6px; }
.ngroupe .nh .gnum { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; }
.ngroupe .nh .gnum svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ngroupe .nh .t { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; line-height: 1.25; }
.ngroupe .nh .s { display: block; font-size: var(--fs-2xs); font-weight: 700; color: var(--c); margin-top: 2px; }
.ngroupe .nh .linkbtn { padding: 0; min-height: 0; margin: 0; font-size: var(--fs-xs); }
.ngroupe ul { list-style: none; margin: 0; padding: 0; }
.ngroupe li { border-top: 1px solid var(--a-line); }
.nq { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; width: 100%; padding: 10px 2px; background: none; border: 0; text-align: left; font: inherit; color: var(--a-ink); cursor: pointer; }
.nq i { width: 22px; height: 22px; border-radius: var(--r-sm); border: 2px solid var(--a-ink3); display: grid; place-items: center; margin-top: 1px; }
.nq i svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nq.fait i { background: var(--a-green); border-color: var(--a-green); }
.nq span { font-size: var(--fs-md); line-height: 1.45; font-weight: 600; }
.nq.fait span { color: var(--a-ink3); text-decoration: line-through; text-decoration-thickness: 1px; }
.offert-suite { display: grid; gap: 6px; justify-items: start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--a-bg); font-size: var(--fs-sm); line-height: 1.45; color: var(--a-ink2); font-weight: 600; }
.offert-suite .linkbtn { padding: 0; min-height: 0; margin: 0; }
@media print {
  html, body, .phone, .app, .screen { height: auto !important; max-height: none !important; overflow: visible !important; background: #fff !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; position: static !important; transform: none !important; border: 0 !important; }
  body * { visibility: hidden; }
  .print-zone, .print-zone * { visibility: visible; }
  .print-zone { position: absolute; left: 0; top: 0; width: 100%; padding: 12mm; }
  .print-zone .fhero { background: none !important; color: #000 !important; box-shadow: none !important; padding: 0 0 6mm; }
  .print-zone .fhero h2, .print-zone .fhero .small, .print-zone .fhero .cap { color: #000 !important; }
  .print-zone .nactions, .print-zone .linkbtn, .print-zone .mq { display: none !important; }
  .print-zone .ngroupe { box-shadow: none !important; border: 1px solid #999; break-inside: avoid; page-break-inside: avoid; }
  .print-zone .nq i { border-color: #000; }
  .print-zone .nq.fait i { background: #000; }
}

/* ---- quatre onglets par verbe : Quiz, Parcours, Comprendre, Outils ; aket+ en en-tête ---- */
.hright { display: flex; align-items: center; gap: 8px; flex: none; }
.plusbtn { border: 0; cursor: pointer; font: inherit; font-family: 'Outfit', sans-serif; font-size: var(--fs-xs); font-weight: 900; padding: 7px 14px; border-radius: var(--r-pill); min-height: 44px; margin: 0; }
.plusbtn:active { transform: translateY(2px); }
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hrow h2 { flex: 1; min-width: 0; }
.hrow .plusbtn { margin-bottom: 8px; }
.qchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qchip { display: flex; align-items: center; gap: 9px; background: var(--a-sur); border: 0; border-radius: var(--r-lg); padding: 8px 10px; box-shadow: var(--a-sh); font: inherit; font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 800; line-height: 1.15; color: var(--a-ink); text-align: left; cursor: pointer; min-height: 44px; }
.qchip .ic { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.qchip .ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qchip:active { transform: translateY(2px); box-shadow: none; }
.homev.parc .hometop { margin-bottom: 8px; }
.homev.parc > .pgrid { margin-bottom: 0; }
.homev.parc > .disc { margin-top: auto; padding-top: 14px; }
.ligne-prog .chev { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.homev.parc > .ligne-prog { margin-top: 12px; }

/* ---- Outils sur un écran : tuiles compactes en trois colonnes ---- */
.ttile.mini { position: relative; padding: 9px 8px 10px; gap: 5px; min-height: 76px; justify-content: flex-start; }
.ttile.mini .t { font-size: var(--fs-sm); line-height: 1.12; text-wrap: balance; }
.ttile.mini .lk { position: absolute; top: 7px; right: 7px; margin: 0; padding: 3px 6px; font-size: var(--fs-2xs); letter-spacing: .04em; }
.toolspage .tlead { margin: 0 0 10px; }
.toolspage .tcap { display: block; margin-top: 2px; }
.toolspage .ttile.wide { padding: 9px 12px; }
.toolspage .ttile.wide .s { -webkit-line-clamp: 1; }
.toolspage .ttile.wide .lk { margin-top: 3px; }
/* ---- Quiz et Parcours remplissent l'écran ---- */
.qchips { flex: 1 1 0; min-height: 0; grid-auto-rows: 1fr; align-content: stretch; margin-bottom: 4px; }
.qchip { align-items: center; min-height: 68px; }
.qchip .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qchip .t { font-size: var(--fs-sm); line-height: 1.12; }
.qchip .s { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink3); line-height: 1.2; font-family: 'Nunito', sans-serif; }
.qchip .s b { color: var(--a-navy2); font-weight: 900; }
.homev.parc > .pgrid { flex: 1 0 auto; grid-auto-rows: minmax(min-content, 1fr); align-content: start; }
.homev.parc .ptile .d { display: none; }
.homev.parc > .disc { margin-top: 12px; }

.toolspage .tgrid.trois { flex: none; grid-auto-rows: auto; align-content: start; }
.toolspage .ttile.wide .col { gap: 2px; }
.toolspage .ttile.wide .lk { position: absolute; top: 9px; right: 10px; margin: 0; }
.toolspage .ttile.wide { position: relative; padding-right: 64px; }


/* onze calculateurs : grille à six colonnes, chaque tuile en occupe deux ; les deux orphelines de fin en prennent trois */
.ttile.wide.lien { margin-top: 12px; }
.ttile.wide.lien .lk { position: static; margin: 0 0 0 auto; align-self: center; }
/* Quiz : de l'air entre les thèmes et les résultats */
.homev .sect.resu { margin-top: 22px; margin-bottom: 8px; align-items: center; }
.homev .sect.resu .linkbtn { padding: 0; min-height: 0; margin: 0; }
.homev > .ligne-prog { margin-top: 0; }
.qchips { margin-bottom: 0; }
.qchips { flex: 1 1 auto; min-height: auto; }
.qchip { min-height: 62px; padding: 7px 10px; }
.homev .sect.resu { margin-top: 16px; margin-bottom: 8px; }
.quizv .hero-quiz { padding: 15px 16px 14px; }
.homev .sect.resu { margin-top: 10px; }
.qchips { gap: 7px; }
/* Quiz : l espace libre des grands écrans va entre les thèmes et les résultats */
.qchips { flex: none; }
.homev .sect.resu { margin-top: auto; padding-top: 12px; }
/* le titre de l'onglet reste sur une ligne à côté du bouton aket+ */
.hrow h2 { font-size: clamp(20px, 6vw, 24px); white-space: nowrap; }
.plusbtn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.plusbtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* moins de vide au-dessus de la barre d onglets */
.app .screen { padding-bottom: 18px; }
/* Parcours : deux colonnes, les tuiles prennent la hauteur libre */
.homev.parc > .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.homev .ptile .t { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
/* texte agrandi sur l'iPhone : le picto passe au-dessus, le titre prend toute la largeur au lieu d'être coupé */
.texte-grand .homev.parc .ptile { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: start; row-gap: 4px; }
.texte-grand .homev.parc .ptile .top { grid-row: 1; grid-column: 1; }
.texte-grand .homev.parc .ptile .t, .texte-grand .homev.parc .ptile .s { grid-column: 1; align-self: start; }
.texte-grand .homev.parc .ptile .ic { width: 34px; height: 34px; }
.homev.parc .ptile { padding: 12px 12px; min-height: 70px; }
.homev.parc .ptile .t { font-size: var(--fs-base); }
.homev.parc .ptile .s { font-size: var(--fs-xs); }
/* la carte « Se termine par un outil » respire entre les étapes et le guide */
.card.outil { margin: 14px 0 10px; }

/* ---- crédit : amortissement en quatre jalons ---- */
.card.amort { padding: 10px 14px; display: grid; gap: 8px; }
.card.amort > div { display: grid; grid-template-columns: 82px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.card.amort .y { font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); text-transform: uppercase; letter-spacing: .04em; }
.card.amort .b { height: 8px; border-radius: var(--r-pill); background: var(--a-line); overflow: hidden; }
.card.amort .b i { display: block; height: 100%; background: var(--a-navy); border-radius: var(--r-pill); }
.card.amort .crd { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 800; }
.card.amort .int { grid-column: 2 / -1; font-size: var(--fs-2xs); color: var(--a-ink3); font-weight: 700; }
/* ---- SCI ou indivision : le tableau ---- */
.card.cmpt { padding: 6px 12px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--a-line); font-size: var(--fs-xs); line-height: 1.35; font-weight: 600; color: var(--a-ink2); }
.cmp:first-child { border-top: 0; }
.cmp .k { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--a-ink); }
.cmp.head { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--a-ink3); text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-2xs); }

/* ---- Techniques avancées ---- */
.expert { background: var(--a-navy); color: var(--a-bg); border-radius: var(--r-xl); padding: 14px 16px 12px; margin: 14px 0; box-shadow: 0 4px 0 var(--a-navy-dark); }
.expert .cap { display: flex; align-items: center; gap: 8px; color: var(--a-yellow); margin-bottom: 6px; }
.expert .cap .lk { margin: 0; }
.expert .in { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.45; color: rgba(252,247,238,.8); font-weight: 600; }
.expert .pt { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.expert .pt b { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.expert .pt p { margin: 0 0 8px; font-size: var(--fs-sm); line-height: 1.55; font-weight: 500; color: rgba(252,247,238,.92); }
.expert .pt .src { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-2xs); color: rgba(252,247,238,.55); letter-spacing: .02em; }
.expert.locked ul { margin: 0 0 8px; padding-left: 18px; }
.expert.locked li { font-family: 'Outfit', sans-serif; font-size: var(--fs-md); font-weight: 700; margin: 3px 0; }
.expert.locked .linkbtn { color: var(--a-yellow); padding: 4px 0 0; min-height: 0; margin: 0; }

/* Outils par thème */
.toolspage .filters { margin-top: 0; }
.toolspage .tcap { margin: 10px 2px 6px; }

/* ---- bilan : relief dans les textes longs, parcours séparés ---- */
.card.ind .m b.ch { font-weight: 800; color: var(--a-navy); background: var(--a-free-bg); border-radius: var(--r-xs); padding: 0 4px; white-space: nowrap; }
.card.ind .m i.ref { font-style: normal; font-size: var(--fs-xs); color: var(--a-ink3); font-weight: 700; }
.hooks { display: grid; gap: 10px; }
.hooks .cap { margin-bottom: 0; }
.hooks .hook { margin: 0; }

/* ---- Outils : deux colonnes de largeur égale partout ; une tuile seule en fin de groupe prend la ligne, en format ligne ---- */
.toolspage .tgrid.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tgrid.trois > .ttile { grid-column: auto; }
.tgrid.trois > .ttile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; min-height: 0; padding: 9px 10px; }
.tgrid.trois > .ttile:last-child:nth-child(odd) .ic { margin: 0; }
.tgrid.trois > .ttile:last-child:nth-child(odd) .lk { position: static; margin-left: auto; }
.ttile.mini { min-height: 82px; }
.ttile.mini .t { font-size: var(--fs-md); }
/* ---- Outils : tous les blocs à la même hauteur, en format ligne ---- */
.ttile.mini { flex-direction: row; align-items: center; gap: 10px; min-height: 62px; padding: 8px 10px; }
.ttile.mini .ic { margin: 0; flex: none; }
.ttile.mini .t { font-size: var(--fs-sm); line-height: 1.15; min-width: 0; }
.ttile.mini:has(.lk) .t { padding-right: 34px; }
.ttile.mini .lk { position: absolute; top: 6px; right: 6px; margin: 0; }
.tgrid.trois > .ttile:last-child:nth-child(odd) { padding: 8px 10px; }
.tgrid.trois > .ttile:last-child:nth-child(odd) .lk { position: absolute; margin: 0; }
.toolspage .ttile.wide { min-height: 62px; padding: 8px 12px; align-items: center; }
.toolspage .ttile.wide:has(.lk) { padding-right: calc(64px * var(--ts)); }
.toolspage .ttile.wide .col { justify-content: center; gap: 1px; }
.toolspage .ligne-donnees { min-height: 62px; max-height: 62px; margin-top: 8px; }
/* ---- Outils : la rangée de filtres reste visible en défilant ---- */

/* ---- Techniques avancées : alternance foncé / clair, termes en relief ---- */
.expert { padding: 14px 12px 10px; }
.expert .cap, .expert .in { padding: 0 4px; }
.expert .pt { padding: 12px 12px; border-top: 0; border-radius: var(--r-lg); margin-bottom: 8px; background: rgba(255,255,255,.06); }
.expert .pt.clair { background: var(--a-bg); color: var(--a-ink); }
.expert .pt.clair b { color: var(--a-navy); }
.expert .pt.clair p { color: var(--a-ink2); }
.expert .pt.clair .src { color: var(--a-ink3); }
.expert .pt b.k { display: inline; font-family: inherit; font-size: inherit; font-weight: 800; color: var(--a-yellow); margin: 0; }
.expert .pt.clair b.k { color: var(--a-navy); background: var(--a-yellow-soft); border-radius: var(--r-xs); padding: 0 3px; }
.expert .pt .ch { background: var(--a-yellow); color: var(--a-navy-dark); border-radius: var(--r-xs); padding: 0 4px; font-weight: 900; white-space: nowrap; }
.expert .pt.clair .ch { background: var(--a-yellow-soft); color: #7A4F08; }
.expert .pt p b { display: inline; font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; }

/* ---- bilan : scénarios, date, impression ---- */
.refaire { margin: 0 2px 10px; color: var(--a-ink3); font-weight: 700; font-size: var(--fs-xs); }
.scen { display: grid; gap: 10px; margin-bottom: 6px; }
.card.sc { padding: 13px 15px; display: grid; gap: 2px; border-left: 5px solid var(--a-navy); }
.card.sc .cap { color: var(--a-ink3); }
.card.sc .v { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; line-height: 1.1; color: var(--a-navy); }
.card.sc .u { font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); text-transform: uppercase; letter-spacing: .04em; }
.card.sc .m { font-size: var(--fs-sm); line-height: 1.45; font-weight: 600; color: var(--a-ink2); margin-top: 4px; }
.card.sc .m b.ch { font-weight: 800; color: var(--a-navy); background: var(--a-free-bg); border-radius: var(--r-xs); padding: 0 4px; white-space: nowrap; }
@media print {
  .print-zone .hook, .print-zone .chips, .print-zone .btn, .print-zone .ttile, .print-zone .nactions, .print-zone .linkbtn { display: none !important; }
  .print-zone .card, .print-zone .score { box-shadow: none !important; border: 1px solid #bbb; break-inside: avoid; page-break-inside: avoid; }
  .print-zone .gauge i { background: #000 !important; }
}

/* ---- en-tête figé : titre et sélecteurs restent en haut, le contenu défile dessous ---- */
.shead { position: sticky; top: 0; z-index: 6; background: var(--a-bg); margin: 0 -18px 10px; padding: 0 18px 6px; }
.shead::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; background: var(--a-bg); }
.shead .hrow { margin-bottom: 2px; }
.shead .hrow h2 { font-size: var(--fs-2xl); }
.shead .hrow .plusbtn { margin-bottom: 4px; }
.shead .filters { margin: 0 -18px 0; padding: 4px 18px 6px; }
.shead .seg { margin: 6px 0 8px; }
.shead .seg button { padding: 8px 6px; }
.toolspage .stamp { margin-top: 2px; }
.search { margin-bottom: 12px; }
.app .screen > .shead, .toolspage > .shead, .shead { max-width: none; width: calc(100% + 36px); box-sizing: border-box; }

/* ---- guides : chiffres, durées et termes qui décident, en relief ---- */
.fitem .ch { font-weight: 800; color: #7A4F08; background: var(--a-yellow-soft); border-radius: var(--r-xs); padding: 0 4px; white-space: nowrap; }
.fitem .fdet .ch.qui { background: var(--a-green-soft); color: var(--a-green2); }
.fitem .fdet .ch.imp { background: color-mix(in srgb, var(--a-terra) 16%, #fff); color: var(--a-terra); }
.fitem .fdet .ch.ret { background: color-mix(in srgb, var(--a-plum) 16%, #fff); color: var(--a-plum); }
.fitem .c .ch.cond { background: var(--a-line2); color: var(--a-ink); }
.fitem b.kk { font-weight: 800; color: var(--a-navy); box-shadow: inset 0 -2px 0 var(--a-yellow); }
.fitem .fdet b.kk { font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--a-ink); box-shadow: inset 0 -2px 0 var(--a-yellow); }
/* ---- Techniques avancées : fond plus sombre, les cartes d'explication ressortent ---- */
.expert { background: var(--a-navy-dark); box-shadow: 0 4px 0 #051816; }
.expert .pt { background: var(--a-navy2); }
.expert .pt.clair { background: var(--a-bg); }
.expert .in { color: rgba(252,247,238,.78); }

/* ---- bilan : les objectifs, en constats, sans note ---- */
.objcard { display: grid; gap: 6px; width: 100%; text-align: left; padding: 13px 15px; border: 0; font: inherit; color: var(--a-ink); cursor: pointer; margin-bottom: 10px; }
.objcard.on { box-shadow: 0 0 0 2px var(--a-navy), var(--a-sh); }
.objcard .t { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--a-line); }
.dots i.ok { background: var(--a-green); } .dots i.partiel { background: var(--a-red); } .dots i.absent { background: var(--a-err); }
.dots.big i { width: 16px; height: 16px; }
.objcard .lst { font-size: var(--fs-sm); line-height: 1.45; font-weight: 600; color: var(--a-ink2); }
.objcard .lst b { font-weight: 900; margin-right: 4px; }
.objcard .lst.ok b { color: var(--a-green2); } .objcard .lst.partiel b { color: var(--a-red2); } .objcard .lst.absent b { color: var(--a-err2); }
.objcard .more { font-size: var(--fs-xs); font-weight: 900; color: var(--a-blue); margin-top: 2px; }
.score .dots { margin: 8px 0 6px; }

/* ---- objectifs : des constats, pas un score. Le gris pour ce qui n'est pas en
   place, jamais le rouge. Depuis que les pilules ont disparu, la barre porte seule
   l'information : le gris doit donc se voir, et « pour information » n'en porte
   aucune — sans quoi les deux se confondaient sur le fond clair. ---- */
.objcard .lst.absent b { color: var(--a-ink3); }
.card.ind.etat.absent { --e: #D9D2C3; }
.card.ind.etat.info::before { display: none; }
.card.ind.etat.partiel { --e: var(--a-yellow); }
.objcard .lst.partiel b { color: #7A4F08; }
.score { border-left: 0; }
.score .m { margin-top: 4px; }

/* ---- schémas comparatifs : trois statuts, quatre régimes ---- */
.sch .ctrl .chip small { display: block; font-size: var(--fs-2xs); font-weight: 700; opacity: .7; }
.sch .stage.ts .grid { display: grid; grid-template-columns: 1fr repeat(3, 44px); gap: 4px 6px; align-items: center; }
.sch .stage.ts .hd { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xs); font-weight: 800; color: #6B7F7A; text-align: center; line-height: 1.1; padding-bottom: 4px; }
.sch .stage.ts .hd.on { color: var(--a-navy); }
.sch .stage.ts .q { font-size: var(--fs-sm); font-weight: 700; color: var(--a-ink); line-height: 1.25; padding: 6px 0; border-top: 1px solid var(--a-line); }
.sch .stage.ts .n { border: 0; background: transparent; font-size: var(--fs-xl); line-height: 1; padding: 6px 0; cursor: pointer; color: #B9B1A3; border-top: 1px solid var(--a-line); border-radius: var(--r-sm); }
.sch .stage.ts .n.n2 { color: #2F7D4F; } .sch .stage.ts .n.n1 { color: #D9962B; } .sch .stage.ts .n.n0 { color: #B9B1A3; }
.sch .stage.ts .n.on { background: rgba(18,64,58,.06); }
.sch .stage.ts .n.sel { outline: 2px solid var(--a-navy); outline-offset: -2px; background: #fff; }
.sch .leg { display: flex; gap: 12px; flex-wrap: wrap; font-size: var(--fs-2xs); font-weight: 700; color: #6B7F7A; }
.sch .stage.qr { display: grid; gap: 6px; }
.sch .stage.qr .row { display: grid; gap: 3px; text-align: left; border: 0; background: #fff; border-radius: var(--r-md); padding: 9px 11px; font: inherit; cursor: pointer; box-shadow: 0 2px 0 var(--a-line); }
.sch .stage.qr .row.on { outline: 2px solid var(--a-navy); }
.sch .stage.qr .q { font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 800; color: var(--a-navy); }
.sch .stage.qr .a { font-size: var(--fs-xs); line-height: 1.4; color: #3F5651; font-weight: 600; }

/* ---- la pyramide de l'épargne ---- */
.sch .stage.py { padding: 14px 12px 8px; }
.sch .pyr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sch .pyr .et { border: 0; color: #fff; cursor: pointer; font: inherit; text-align: center; padding: 8px 10px; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); transition: transform .15s; display: grid; gap: 1px; }
.sch .pyr .et b { font-family: 'Outfit', sans-serif; font-size: var(--fs-sm); font-weight: 800; }
.sch .pyr .et span { font-size: var(--fs-2xs); font-weight: 700; opacity: .85; }
.sch .pyr .et.r4 { width: 46%; background: #B3402A; } .sch .pyr .et.r3 { width: 64%; background: var(--a-terra); } .sch .pyr .et.r1 { width: 82%; background: var(--a-blue); } .sch .pyr .et.r0 { width: 100%; background: var(--a-navy); }
.sch .pyr .et.on { transform: scale(1.03); outline: 3px solid var(--a-red); outline-offset: 2px; }
.sch .axe { display: flex; justify-content: space-between; font-size: var(--fs-2xs); font-weight: 800; color: #6B7F7A; margin-top: 8px; text-transform: uppercase; letter-spacing: .05em; }
.sch .pydet { background: #fff; border-radius: var(--r-lg); padding: 12px 14px; box-shadow: 0 2px 0 var(--a-line); display: grid; gap: 8px; }
.sch .pydet .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sch .pydet .ph b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-navy); }
.sch .pydet .rk { font-size: var(--fs-2xs); font-weight: 800; color: #B3402A; letter-spacing: .1em; }
.sch .pydet .row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: var(--fs-sm); line-height: 1.4; color: #3F5651; font-weight: 600; border-top: 1px solid var(--a-line); padding-top: 7px; }
.sch .pydet .row .k { font-size: var(--fs-2xs); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #6B7F7A; padding-top: 2px; }

/* pyramide du patrimoine : les deux piliers côte à côte */
.sch .pyr .rang { display: flex; gap: 4px; width: 82%; }
.sch .pyr .rang .et { flex: 1; width: auto; }
.sch .pyr .rang .et:first-child { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
.sch .pyr .rang .et:last-child { clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%); }
.sch .pyr .et.r2 { background: var(--a-blue); }

/* ---- écran d'ouverture : le logo se forme, le nom puis la baseline apparaissent, la vue du jour prend la place ---- */
.app { position: relative; }
.intro { position: absolute; inset: 0; z-index: 60; background: var(--a-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border-radius: inherit; overflow: hidden; cursor: pointer; }
.intro::after { content: ""; position: absolute; inset: auto -40% -55% -40%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(226,154,42,.22), transparent); pointer-events: none; }
.intro.out { animation: intro-out .45s ease forwards; }
@keyframes intro-out { to { opacity: 0; transform: scale(1.04); } }
.intro .ilogo { width: 96px; height: 96px; border-radius: var(--r-3xl); background: var(--a-red); box-shadow: 0 8px 0 var(--a-red2); display: grid; place-items: center; animation: intro-pop .6s cubic-bezier(.2, .9, .3, 1.25) both; }
.intro .ilogo svg { width: 56px; height: 56px; fill: none; stroke: var(--a-onacc); stroke-width: 3.2; overflow: visible; }
.intro .ilogo .c1 { animation: intro-c1 .9s cubic-bezier(.4, 0, .2, 1) .4s both; }
.intro .ilogo .c2 { animation: intro-c2 .9s cubic-bezier(.4, 0, .2, 1) .4s both; }
.intro .ilogo .f { fill: var(--a-onacc); stroke: none; transform-box: fill-box; transform-origin: center; animation: intro-f .5s cubic-bezier(.2, .9, .3, 1.3) 1.2s both; }
@keyframes intro-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-c1 { from { transform: translateX(-11px); } to { transform: none; } }
@keyframes intro-c2 { from { transform: translateX(11px); } to { transform: none; } }
@keyframes intro-f { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.intro .iword { position: relative; margin-top: 6px; font-family: 'Outfit', 'Nunito', Arial, sans-serif; font-size: 54px; font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--a-bg); animation: intro-up .6s ease 1.35s both; }
.intro .iword .glose { position: absolute; left: 100%; bottom: 6px; margin-left: 8px; white-space: nowrap; font-family: 'Nunito', sans-serif; font-style: italic; font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0; color: var(--a-yellow); animation: intro-fade .5s ease 1.7s both; }
.intro .ibase { margin: 0; max-width: 30ch; text-align: center; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--a-yellow); animation: intro-up .6s ease 1.8s both; }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro, .intro * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ---- bilan complet : les volets défilent à l'horizontale, onglets collants et glissement ---- */
/* Le bilan thématique est un rail : un grand bloc teinté, des compartiments bordés
   qui défilent dedans, une piste qui dit lequel est en vue. */
.brail { background: var(--a-rail); border-radius: var(--r-2xl); padding: 0 10px 10px; margin: 0 -6px 4px; }
.btabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 0; padding: 12px 14px 8px; background: var(--a-rail); border-radius: var(--r-2xl) var(--r-2xl) 0 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.btabs::-webkit-scrollbar { display: none; }
.btab { flex: none; border: 2px solid var(--a-line); background: var(--a-sur); color: var(--a-ink2); font: inherit; font-size: var(--fs-sm); font-weight: 800; padding: 7px 12px; border-radius: var(--r-pill); cursor: pointer; }
.btab.on { border-color: var(--c); background: var(--c); color: #fff; }
.btrack { display: flex; gap: 4px; margin: 0 4px 10px; height: 5px; }
.btrack i { flex: 1; border-radius: var(--r-pill); background: rgba(0,0,0,.09); transition: background .25s; }
.btrack i.on { background: var(--c); }
.bpanes { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; transition: height .25s ease; -webkit-overflow-scrolling: touch; }
.bpanes::-webkit-scrollbar { display: none; }
.bpane { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; box-sizing: border-box; background: var(--a-bg); border: 2px solid var(--a-line); border-top: 5px solid var(--c); border-radius: var(--r-xl); padding: 0 10px 2px; }
.bpos { display: flex; justify-content: space-between; font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; font-weight: 900; color: var(--c); padding: 9px 2px 0; }
.bpane .sect { margin-top: 6px !important; }
.bsous { margin: 12px 2px 8px; font-weight: 900; color: var(--a-ink3); font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
.bswipe { text-align: center; margin: 10px 0 0; color: var(--a-ink3); }
.osynth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 2px 10px; }
.otile { display: flex; align-items: center; gap: 9px; text-align: left; border: 2px solid transparent; background: var(--a-sur); border-radius: var(--r-lg); padding: 9px 10px; font: inherit; color: var(--a-ink); cursor: pointer; --e: var(--a-ink3); }
.otile.dec { border-color: var(--a-line); } .otile.on { border-color: var(--a-navy); box-shadow: 0 0 0 1px var(--a-navy); }
.otile .odots { display: flex; gap: 3px; margin: 3px 0 2px; }
.otile .odots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--a-navy); background: var(--a-sur); box-sizing: border-box; }
.otile .odots i.ok { background: var(--a-navy); }
.otile .odots i.partiel { background: linear-gradient(90deg, var(--a-navy) 50%, var(--a-sur) 50%); }
.otile .tx { display: grid; gap: 1px; min-width: 0; }
.otile .t { font-size: var(--fs-xs); font-weight: 900; line-height: 1.2; }
.otile .s { font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); }
.otile.dec .t { color: var(--a-navy); }
.orail .objres { margin-top: 8px; }
.brepli { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border: 0; font: inherit; color: var(--a-ink); cursor: pointer; background: var(--a-rail); box-shadow: none; }
.brepli .bp { font-size: var(--fs-xs); font-weight: 900; color: #fff; background: var(--c); border-radius: var(--r-pill); padding: 4px 9px; }
.brepli .s { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink3); margin-top: 2px; }

/* ---- saisie des calculateurs : montants tactiles, « Affiner », hypothèses ---- */
.amtrow .v.edit { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px dashed var(--a-red); cursor: text; padding-bottom: 1px; }
.amtrow .vedit { font: inherit; font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-red2); width: 140px; border: 0; border-bottom: 2px solid var(--a-red); background: transparent; text-align: right; outline: none; -moz-appearance: textfield; }
.amtrow .vedit::-webkit-outer-spin-button, .amtrow .vedit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.affiner { margin: 2px 0 14px; }
.affiner > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px dashed var(--a-line); border-radius: var(--r-lg); padding: 10px 14px; font-weight: 800; color: var(--a-navy); background: var(--a-sur); }
.affiner > summary::-webkit-details-marker { display: none; }
.affiner > summary .t::before { content: "+  "; color: var(--a-red2); font-weight: 900; }
.affiner[open] > summary .t::before { content: "–  "; }
.affiner > summary .n { font-size: var(--fs-xs); font-weight: 800; background: var(--a-yellow-soft); color: #7A4F08; border-radius: var(--r-pill); padding: 2px 9px; white-space: nowrap; }
.affiner[open] > summary { border-style: solid; border-color: var(--a-navy); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.affiner .agrp { padding: 10px 12px 2px; border: 2px solid var(--a-navy); border-top: 0; background: var(--a-sur); }
.affiner .agrp:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); padding-bottom: 4px; }
.affiner .agrp .gt { display: block; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-red2); margin: 4px 0 10px; }
.affiner .agrp .field.compact:last-child { margin-bottom: 8px; }
.hyp { margin: 0 2px 10px; font-size: var(--fs-sm); color: var(--a-ink2); }
.hyp > summary { cursor: pointer; font-weight: 800; color: var(--a-navy); list-style: none; }
.hyp > summary::-webkit-details-marker { display: none; }
.hyp > summary::before { content: "›  "; color: var(--a-red2); font-weight: 900; }
.hyp[open] > summary::before { content: "⌄  "; }
.hyp p { margin: 6px 0; line-height: 1.5; }
.hyp .linkbtn { padding: 0; font-size: var(--fs-sm); }

/* ---- schéma : la clause bénéficiaire, sept rédactions ---- */
.sch .ctrl.cl-niv { gap: 6px; }
.sch .ctrl.cl-niv .chip { padding: 8px 0; width: 38px; text-align: center; font-family: 'Outfit', sans-serif; font-size: var(--fs-md); }
.sch .stage.cl { padding: 14px 14px 10px; display: grid; gap: 12px; }
.sch .cl .clh { display: grid; gap: 2px; }
.sch .cl .clh .niv { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8A5A10; }
.sch .cl .clh b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-navy); line-height: 1.15; }
.sch .cl .clh .s { font-size: var(--fs-sm); color: var(--a-ink2); font-weight: 700; }
.sch .cl .acte { margin: 0; background: #fff; border-left: 4px solid var(--a-navy); border-radius: var(--r-xs) var(--r-lg) var(--r-lg) var(--r-xs); padding: 12px 14px; font-size: var(--fs-md); line-height: 1.55; font-style: italic; color: var(--a-ink); box-shadow: 0 2px 0 var(--a-line); }
.sch .cl .avert { margin: 0; padding: 9px 12px; border-radius: var(--r-md); background: var(--a-red-soft); border: 1.5px solid var(--a-red); font-size: var(--fs-xs); line-height: 1.45; color: #5A3E0A; }
.sch .cl .avert b { color: #8A5A10; font-weight: 900; }
.sch .cl .axes { display: grid; gap: 6px; }
.sch .cl .ax { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); font-weight: 800; color: #3F5651; }
.sch .cl .ax .d { font-style: normal; letter-spacing: 2px; color: var(--a-terra); font-size: var(--fs-sm); }
.sch .cl .mots { display: grid; gap: 8px; }
.sch .cl .mot { display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.45; color: #3F5651; padding-left: 10px; border-left: 2px solid var(--a-red); }
.sch .cl .mot b { color: var(--a-navy); font-weight: 800; }
.sch .cl .bloc { background: #fff; border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fs-sm); line-height: 1.5; color: #3F5651; box-shadow: 0 2px 0 var(--a-line); }
.sch .cl .bloc .k { display: block; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #6B7F7A; margin-bottom: 3px; }
.sch .cl .bloc.pge { border-left: 4px solid var(--a-terra); }
.sch .cl .bloc.pge .k { color: var(--a-terra); }
.sch .cl .bloc.srcs { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-2xs); }
.sch .cl .nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.sch .cl .nav button { border: 0; border-radius: var(--r-pill); padding: 9px 14px; font: inherit; font-size: var(--fs-sm); font-weight: 900; cursor: pointer; background: var(--a-red); color: var(--a-ink); box-shadow: 0 3px 0 var(--a-red2); }
.sch .cl .nav button.alt { background: #fff; color: var(--a-ink); box-shadow: 0 3px 0 var(--a-line); border: 2px solid var(--a-line); }
.sch .cl .nav button:disabled { opacity: .4; cursor: default; }

.sch .cl .acte .ex { display: block; font-style: normal; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #8A5A10; margin-bottom: 6px; }

/* Le mot qui passe : ce que l'achat, la restauration ou une panne viennent de faire. */
.app .note { position: absolute; left: 14px; right: 14px; bottom: 96px; z-index: 40; background: var(--a-navy); color: #fff; border-radius: var(--r-lg); padding: 12px 14px; font-size: var(--fs-sm); font-weight: 800; line-height: 1.4; box-shadow: 0 6px 0 var(--a-navy-dark); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.app .note.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .app .note { transition: none; } }
.app .majapp { position: absolute; left: 14px; right: 14px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 45; display: flex; align-items: center; gap: 10px; background: var(--a-navy); color: #fff; border-radius: var(--r-lg); padding: 10px 10px 10px 14px; font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; box-shadow: 0 6px 0 var(--a-navy-dark); }
.app .majapp span { flex: 1; }
.app .majapp a { color: var(--a-navy); background: #fff; border-radius: var(--r-md); padding: 8px 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.app .majapp button { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }

/* Le bilan : le plan de surface des poches, et le rail des volets à l'impression */
.tmap { position: relative; height: 230px; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 8px; background: var(--a-line2); }
.tcell { position: absolute; box-shadow: inset 0 0 0 2px var(--a-bg); display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 9px; color: #fff; overflow: hidden; box-sizing: border-box; }
.tcell.sombre { color: var(--a-navy); }
.tcell .tn { font-size: var(--fs-xs); font-weight: 800; line-height: 1.15; }
.tcell .tp { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; }
.tcell.small .tn, .tcell.tiny .tn, .tcell.tiny .tp { display: none; }
.tlegende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); margin: 0 2px 10px; }
.tlegende i { display: inline-block; width: 9px; height: 9px; border-radius: var(--r-xs); margin-right: 5px; vertical-align: -1px; }
/* ---- L'auto-diagnostic imprimé : un document à part, invisible à l'écran.
   Tout est en pixels, la page comprise (1122 × 616 pour 297 × 163 mm) : sur l'appareil, le
   moteur d'Apple compte un pixel pour un point et garde les millimètres physiques ; un
   document qui mêle les deux se déforme. Sur l'appareil, le moteur met en page à 1,25 fois
   la largeur de la feuille puis dessine à 0,8 : le greffon demande donc une feuille de
   898 × 505 points, et les deux moteurs rendent la même page. ---- */
.adoc { display: none; }
@media print {
  @page { size: 297mm 167mm; margin: 0; }
  .print-zone.remplace { display: none !important; }
  .adoc, .adoc * { visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app .screen > .adoc, .adoc { display: block; position: absolute; left: 0; top: 0; width: 1122px; max-width: none; background: #fff; color: var(--a-ink); font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; font-size: 10.5px; line-height: 1.4; }
  .adoc .cap { display: block; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; color: var(--a-red2); }
  .adoc b.ch { background: var(--a-free-bg); border-radius: 4px; padding: 0 3px; color: var(--a-navy); font-weight: 800; white-space: nowrap; }
  .adoc .ref, .adoc i.ref { color: var(--a-ink3); font-style: normal; }
  /* couverture pleine page, vert profond */
  /* 163 mm sur une feuille de 167 : la marge absorbe les arrondis du moteur d'Apple, qui
     sinon fait déborder chaque page d'un cheveu sur la suivante. Le vert des couvertures
     est prolongé par un contour, pour que la bande basse soit verte et non blanche. */
  .acover { height: 616px; box-sizing: border-box; background: var(--a-navy); box-shadow: 0 15px 0 0 var(--a-navy); color: var(--a-bg); padding: 53px 68px 38px 76px; display: grid; grid-template-columns: 1fr 242px; gap: 45px; align-items: stretch; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
  .acouv { display: flex; flex-direction: column; min-width: 0; }
  .afinale { break-before: page; page-break-before: always; }
  .acover { break-after: avoid; }
  .asuite { font-size: var(--fs-xs); line-height: 1.55; font-weight: 600; margin: 38px 0 0; max-width: 567px; opacity: .9; }
  .aqr { display: flex; align-items: center; gap: 26px; margin-top: auto; padding-top: 30px; }
  .aqrcode { flex: none; width: 129px; height: 129px; background: #fff; border-radius: var(--r-lg); padding: 11px; box-sizing: border-box; }
  .aqrcode svg { width: 100%; height: 100%; display: block; fill: var(--a-navy-dark); }
  .aqr > div { display: grid; gap: 6px; max-width: 359px; }
  .aqr .cap { color: var(--a-red); }
  .aqr b { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; line-height: 1; }
  .aqr span:not(.cap) { font-size: var(--fs-2xs); font-weight: 600; opacity: .85; line-height: 1.45; }
  /* la maquette : un téléphone, l'écran d'accueil rendu à l'échelle 0,58 */
  .amock { display: flex; align-items: center; justify-content: center; }
  .aphone { width: 234px; height: 484px; border-radius: var(--r-3xl); background: var(--a-navy-dark); padding: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 12px 30px rgba(0,0,0,.35); }
  .aecran { width: 100%; height: 100%; border-radius: var(--r-3xl); overflow: hidden; background: var(--a-bg); position: relative; }
  /* zoom plutôt que transform : la mise en page elle-même est réduite, rien ne déborde sur la page suivante */
  .aecran .aclone { position: absolute; left: 0; top: 0; width: 390px; height: 840px; zoom: 0.5544; padding: 18px 18px 0; box-sizing: border-box; overflow: hidden; color: var(--a-ink); font-size: var(--fs-md); }
  .aecran .tabbar { position: absolute; left: 0; bottom: 0; width: 390px; zoom: 0.5544; }
  .aecran .homev { min-height: 0; display: block; }
  .aecran .homev > .esp { display: none; }
  .aecran .homev .sect.resu { margin-top: 14px; }
  /* l'accueil de la 1.0.4 remplit le téléphone comme sur un vrai écran : même
     colonne, mêmes écarts, au-dessus de la barre d'onglets */
  .aecran .homev.accueil { display: flex; flex-direction: column; height: 730px; }
  .aecran .homev.accueil > .esp { display: block; }
  .alogo { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.01em; }
  .alogo svg { width: 40px; height: 40px; } .alogo svg circle { fill: none; stroke: var(--a-bg); stroke-width: 2.4; } .alogo svg .f { fill: var(--a-red); }
  .abase { font-family: 'Outfit', sans-serif; font-size: var(--fs-4xl); font-weight: 800; line-height: 1.12; margin: 53px 0 0; max-width: 643px; letter-spacing: -.01em; }
  .abase b { color: var(--a-red); }
  .atitre { margin-top: auto; padding-top: 38px; }
  .atitre .cap { color: var(--a-red); margin-bottom: 8px; }
  .atitre h1 { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; margin: 0 0 6px; }
  .atitre p { margin: 0; font-weight: 700; opacity: .75; font-size: var(--fs-xs); }
  .anote { font-size: 8px; line-height: 1.4; opacity: .62; max-width: 813px; margin: 30px 0 0; }
  /* chaque page est une page : 167 mm, son en-tête, son corps, son pied ; rien ne déborde */
  .apage { height: 616px; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; break-before: page; page-break-before: always; break-inside: avoid; page-break-inside: avoid; }
  .acorps { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 19px 53px 15px; display: flex; flex-direction: column; }
  /* les cartes se répartissent sur la hauteur de la page au lieu de se tasser en haut */
  .acorps > .agrid, .acorps > .atiles { flex: 1 1 auto; align-content: space-evenly; }
  .acorps > .acols { flex: 1 1 auto; align-content: center; }
  .ahead { flex: none; display: flex; align-items: center; gap: 7px; margin: 0 53px; padding: 26px 0 9px; border-bottom: 1px solid var(--a-line); font-size: 9px; font-weight: 800; color: var(--a-ink3); letter-spacing: .06em; text-transform: uppercase; }
  .ahead b { color: var(--a-navy); font-family: 'Outfit', sans-serif; font-size: 13px; text-transform: none; letter-spacing: 0; margin-right: auto; }
  .ahead svg { width: 15px; height: 15px; } .ahead svg circle { fill: none; stroke: var(--a-navy); stroke-width: 2.4; } .ahead svg .f { fill: var(--a-red); }
  .afoot { flex: none; margin: 0 53px; padding: 9px 0 23px; border-top: 1px solid var(--a-line); font-size: 7.2px; color: var(--a-ink3); line-height: 1.35; font-weight: 600; }
  .ahead2 { display: flex; gap: 19px; align-items: flex-start; margin-bottom: 19px; break-after: avoid; }
  .ahead2 .num { font-family: 'Outfit', sans-serif; font-size: var(--fs-4xl); font-weight: 800; color: var(--c); line-height: 1; padding-top: 1px; }
  .ahead2 h2 { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; margin: 1px 0 2px; color: var(--a-navy); line-height: 1.1; }
  .ahead2 p { margin: 0; font-size: var(--fs-2xs); color: var(--a-ink2); font-weight: 600; }
  .acols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
  .apatri { display: grid; grid-template-columns: 234px 1fr; gap: 23px; align-items: stretch; margin-bottom: 11px; }
  .apatri .anet { display: flex; flex-direction: column; justify-content: center; }
  .adoc .apatri .tmap { height: 136px; margin: 0 0 6px; }
  .apatri .abig { font-size: var(--fs-3xl); }
  .afiche { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .afiche > div { border: 1px solid var(--a-line); border-radius: 10px; padding: 11px 15px; display: grid; gap: 1px; break-inside: avoid; }
  .afiche .l { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--a-ink3); }
  .afiche .v { font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 800; color: var(--a-navy); }
  .alire p { font-size: var(--fs-2xs); color: var(--a-ink2); font-weight: 600; margin: 8px 0; }
  .alire .acard { margin-bottom: 9px; }
  /* les cartes : trois par rangée, six par page au plus */
  .agrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; align-content: start; }
  .acard { border: 1px solid var(--a-line); border-radius: 11px; padding: 12px 15px; display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; align-items: baseline; break-inside: avoid; page-break-inside: avoid; }
  .acard .l { font-size: 10.5px; font-weight: 900; }
  .acard .v { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; color: var(--a-navy); text-align: right; line-height: 1.1; }
  .acard .gauge { grid-column: 1 / -1; height: 5px; margin: 0; }
  .acard .m { grid-column: 1 / -1; font-size: 9.3px; color: var(--a-ink2); font-weight: 600; line-height: 1.4; }
  .acard.etat { border-left: 4px solid var(--e); --e: var(--a-line); }
  .acard.etat.ok { --e: var(--a-green); } .acard.etat.partiel { --e: var(--a-yellow); } .acard.etat.absent { --e: #D9D2C3; }
  .acard.etat.info { border-left-color: transparent; }
  .ascen { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 19px; }
  .acard.sc { grid-template-columns: 1fr; gap: 6px; border-left: 5px solid var(--a-navy); padding: 34px 26px; align-content: start; min-height: 295px; }
  .acard.sc .cap { color: var(--a-ink3); font-size: 9px; } .acard.sc .v { font-size: 40px; text-align: left; margin: 8px 0 4px; }
  .acard.sc .u { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--a-ink3); }
  .acard.sc .m { margin-top: 15px; font-size: 10.5px; line-height: 1.5; }
  .abig { font-family: 'Outfit', sans-serif; font-size: var(--fs-4xl); font-weight: 800; color: var(--a-navy); line-height: 1; margin: 4px 0 8px; }
  .adoc p.m { font-size: 9.5px; color: var(--a-ink2); font-weight: 600; margin: 0; }
  .adoc .tmap { position: relative; height: 249px; border-radius: 10px; overflow: hidden; margin: 15px 0 8px; }
  .adoc .tlegende { font-size: 9px; margin: 0; }
  .adoc .cap.sous { margin: 0 0 9px; color: var(--a-ink3); }
  .atiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 19px; }
  .atile { border: 1px solid var(--a-line); border-radius: 12px; padding: 13px 15px; display: grid; gap: 6px; break-inside: avoid; }
  .atile.dec { border: 2px solid var(--a-navy); }
  .atile .t { font-size: 11px; font-weight: 900; line-height: 1.2; } .atile .s { font-size: 8.5px; font-weight: 800; color: var(--a-ink3); }
  .atile .odots { display: flex; gap: 3px; } .atile .odots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--a-navy); box-sizing: border-box; }
  .atile .odots i.ok { background: var(--a-navy); } .atile .odots i.partiel { background: linear-gradient(90deg, var(--a-navy) 50%, #fff 50%); }
  .afin p { font-size: var(--fs-2xs); line-height: 1.5; color: var(--a-ink2); font-weight: 600; margin: 0 0 11px; }
  .ahors { font-size: 9.3px; color: var(--a-ink2); margin: 15px 0 0; font-weight: 600; }
}

/* Le jeu de la marchande (parcours 4-6 ans) */
.mrc .etal { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--a-sur); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--a-sh); margin-bottom: 12px; }
.mrc .etal .obj { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; }
.mrc .etal .prix { font-family: 'Outfit', sans-serif; font-size: var(--fs-3xl); font-weight: 800; color: var(--a-navy); white-space: nowrap; }
.mrc .pieces { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 12px; }
.mrc .piece { width: 58px; height: 58px; border-radius: 50%; border: 0; font: inherit; font-weight: 900; font-size: var(--fs-base); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18); color: #3B2A0A; background: radial-gradient(circle at 35% 30%, #FBE7A1, #D9A93A 70%); }
.mrc .piece.arg { background: radial-gradient(circle at 35% 30%, #F5F5F5, #B9B9B9 70%); color: #333; }
.mrc .piece.bi { background: radial-gradient(circle at 35% 30%, #FBE7A1, #D9A93A 55%, #C9C9C9 56%); }
.mrc .piece:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.mrc .main { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 8px; }
.mrc .main b { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); color: var(--a-navy); }
.mrc .verdict { min-height: 44px; border-radius: var(--r-lg); padding: 10px 12px; font-weight: 700; background: var(--a-line2); color: var(--a-ink2); }
.mrc .verdict.ok { background: var(--a-free-bg); color: var(--a-free-ink); }
.mrc .verdict.trop { background: var(--a-yellow-soft); color: #7A4F08; }
.mrc .actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---- L'accueil : votre situation, « Et si… demain », puis la porte du quiz. Tout
   l'air disponible va entre les blocs, jusqu'à 64 px chacun, et rien sous le quiz :
   sur un grand téléphone, un vide de 90 px en bas faisait croire l'écran inachevé.
   Sur un petit écran, les écarts se resserrent à 10 px et la page défile. ---- */
.homev.accueil > .sect { margin-top: 0; }
.homev.accueil > .esp { display: block; flex: 1 1 0; min-height: 10px; max-height: 64px; }
.homev.accueil > .esp.fin { flex: 0 0 0; min-height: 0; }
/* sous la salutation, l'écart reste court : « Bonjour » introduit la suite, il ne s'en détache pas */
.homev.accueil > .esp.e1 { max-height: 30px; }
.situcarte { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; border: 0; border-radius: var(--r-2xl); padding: 20px 16px 20px 20px; background: var(--c); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.25); font: inherit; text-align: left; cursor: pointer; }
.situcarte:active { transform: translateY(3px); box-shadow: none; }
.situcarte .cap { display: block; color: rgba(255,255,255,.72); }
.situcarte .t { display: block; margin-top: 3px; font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1.15; color: #fff; text-wrap: balance; }
.situcarte .go { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.situcarte .go svg { width: 22px; height: 22px; fill: none; stroke: var(--a-navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qchips.etsi { gap: 12px; }
.qchip.tout { background: transparent; box-shadow: none; border: 2px dashed #C9C2B3; }
.qchip.tout .ic { background: var(--a-navy); }

/* La porte du quiz : le thème choisi porte un liseré de sa couleur ; les résultats
   passent sous le bouton, là où ils ont un sens. */
.qzthemes .chips { margin-bottom: 10px; }
.qzthemes .qchips { margin-bottom: 4px; }
.qzthemes .qchip.on { box-shadow: 0 0 0 2.5px var(--c), var(--a-sh); }
.qzvue .sect.resu { margin: 24px 0 8px; align-items: center; }
.qzvue .sect.resu .linkbtn { padding: 0; min-height: 0; margin: 0; }

/* La flèche revient, la croix abandonne : ‹ a besoin d'un corps plus grand que ×. */
.lhead .x.ret { font-size: var(--fs-4xl); line-height: 1; padding-bottom: 4px; }

/* Réponses : deux sous-onglets, une question et le lexique, sous la recherche. */
.seg.trois.quatre.duo { grid-template-columns: repeat(2, 1fr); }
.seg.trois.quatre.trio { grid-template-columns: repeat(3, 1fr); }

/* « Pour aller plus loin » d'une fiche : un simulateur, un guide, un parcours, en
   rangées de même forme — la catégorie en capitales, le titre, une ligne de détail. */
.plusloin { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; text-align: left; border: 0; background: var(--a-sur); border-radius: var(--r-lg); padding: 12px 12px 12px 14px; box-shadow: var(--a-sh); font: inherit; color: var(--a-navy); cursor: pointer; }
.plusloin:active { transform: translateY(2px); box-shadow: none; }
.plusloin .ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; }
.plusloin .ic svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plusloin .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plusloin .cap { color: var(--a-free-ink); }
.plusloin b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; line-height: 1.2; }
.plusloin .s { font-size: var(--fs-xs); font-weight: 600; color: var(--a-ink2); line-height: 1.3; }
.plusloin .chev { flex: none; width: 18px; height: 18px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.plusloin.ferme { opacity: .6; cursor: default; }

/* Le lien vers le profil, à droite d'un titre de section : discret, mais une vraie
   cible de doigt — la marge négative rend les 44 px sans pousser la mise en page. */
.lienprofil { background: none; border: 0; font: inherit; font-size: var(--fs-xs); font-weight: 900; color: var(--a-red2); padding: 12px 0; margin: -12px 0; cursor: pointer; }
.ob.profil { padding-top: 4px; }

/* ---- la réponse en pleine page ----
   Elle recouvre la question au lieu de monter par-dessus : même fond, même en-tête,
   la question rappelée en tête, puis « Pour aller plus loin ». Les coins restent
   droits quel que soit le cadre (les règles du cadre arrondissent .sheet). */
.sheet.pleine { top: 0; max-height: none; border-radius: 0 !important; border-top: 0; box-shadow: none; background: var(--a-bg); }
.sheet.pleine.ko { background: var(--a-bg); }
.sheet.pleine .sheet-head { display: block; padding: 58px 18px 0; }
.sheet.pleine .lhead { margin-bottom: 14px; }
.sheet.pleine .sheet-body { padding: 0 18px 18px; gap: 12px; flex: 1; }
.sheet.pleine .sheet-foot { padding-left: 18px; padding-right: 18px; }
.sheet.pleine .verdict { font-size: var(--fs-3xl); }
.sheet.pleine .verdict:focus { outline: none; }
.sheet.pleine .verdict i { width: 32px; height: 32px; }
.sheet.pleine .verdict .star { margin-left: auto; }
.sheet.pleine .rappel { background: var(--a-navy); color: #fff; border-radius: var(--r-xl); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 0 var(--a-navy-dark); flex: none; }
.sheet.pleine .rappel .cap { color: #F2C14E; }
.sheet.pleine .rappel b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; }
.sheet.pleine .reps { display: flex; flex-direction: column; gap: 6px; flex: none; }
.sheet.pleine .reps .lab { font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--a-ink3); margin: 2px 0 -2px 2px; }
.sheet.pleine .reps .opt { cursor: default; padding: 10px 14px; font-size: var(--fs-base); }
.sheet.pleine .why { font-size: var(--fs-base); line-height: 1.55; margin-top: 4px; }
.sheet.pleine .sect { margin: 8px 0 -2px; }
.sheet.pleine .plusloin { flex: none; }
.sheet.pleine .plusloin .mq, .sheet.pleine .plusloin .p { flex: none; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-xs); background: var(--a-navy); color: #fff; border-radius: var(--r-pill); padding: 4px 9px; }
.sheet.pleine .sheet-foot { background: var(--a-bg); }
.sheet.pleine .sheet-foot .lvl-row .dots { order: 0; width: auto; justify-content: flex-end; }
.sheet.pleine .verdict .star svg { width: 19px; height: 19px; stroke: var(--a-ink3); fill: none; stroke-width: 2; }
.sheet.pleine .verdict .star.on svg { stroke: var(--a-red); fill: var(--a-red); }
/* « Votre situation » : ce que la personne a dit, et combien de contenus en parlent. Ton sur ton avec le
   fond : le vert foncé est réservé au bloc du quiz, plus bas, pour que l'accueil ne pèse pas deux fois. */
.situcarte.moi { background: #F3EBDC; border: 1.5px solid #E6DAC3; box-shadow: 0 4px 0 #E3D6BD; }
.situcarte.moi .cap { color: var(--a-ink3); }
.situcarte.moi .t { font-size: var(--fs-xl); color: var(--a-navy); }
.situcarte.moi .s { display: block; margin-top: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--a-free-ink); }
.situcarte.moi .go { background: var(--a-navy); box-shadow: 0 3px 0 var(--a-navy-dark); }
.situcarte.moi .go svg { stroke: #fff; }
.fhero.moi .linkbtn { color: #F2C14E; text-decoration-color: rgba(242,193,78,.5); }
/* pourquoi un exemple est proposé, sous chaque ligne de « Votre situation » */
.plusloin .pq { font-size: var(--fs-xs); font-weight: 700; color: var(--a-green2); line-height: 1.3; margin-top: 2px; }
/* le profil et l'auto-diagnostic ne disent pas la même chose */
.card.ecart { background: var(--a-yellow-soft); border-radius: var(--r-lg); padding: 12px 14px; font-size: var(--fs-md); line-height: 1.45; font-weight: 600; color: var(--a-navy); display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.card.ecart .linkbtn { align-self: flex-start; }
/* la pastille aket+ et « Lire » : partout où une ligne « Un mécanisme » apparaît */
.plusloin > .mq, .plusloin > .p { flex: none; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-xs); background: var(--a-navy); color: #fff; border-radius: var(--r-pill); padding: 4px 9px; }
/* « Tous les thèmes » : une tuile comme les autres thèmes, sur toute la largeur */
.qzthemes .qchip.tous { grid-column: 1 / -1; }

/* ---- Accueil : un seul bloc, ce que vous avez dit → ce qui en parle → ce qui peut arriver ----
   Beige ton sur ton : le vert foncé reste au quiz. Le bouton blanc à flèche dit qu'on ouvre les contenus. */
.accbloc { background: #F3EBDC; border: 1.5px solid #E6DAC3; box-shadow: 0 4px 0 #E3D6BD; border-radius: var(--r-2xl); padding: 16px; }
.accsect { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.accsect h3 { margin: 0; font-size: var(--fs-lg); }
.accsect .cap { color: var(--a-ink3); }
.acct { display: block; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-xl); line-height: 1.15; color: var(--a-navy); margin: 2px 0 12px; text-wrap: balance; }
.accgo { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: #fff; border: 0; border-radius: var(--r-lg); padding: 12px 12px 12px 14px; box-shadow: 0 3px 0 #E3D6BD; font: inherit; text-align: left; cursor: pointer; }
.accgo:active { transform: translateY(2px); box-shadow: none; }
.accgo b { display: block; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-base); color: var(--a-navy); }
.accgo .tx > span { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--a-free-ink); margin-top: 2px; }
.accgo .go { width: 38px; height: 38px; border-radius: 50%; background: var(--a-navy); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--a-navy-dark); }
.accgo .go svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.accsep { height: 1.5px; background: #E6DAC3; margin: 14px -16px 12px; }
.accall { background: none; border: 0; font: inherit; font-size: var(--fs-sm); font-weight: 800; color: var(--a-free-ink); cursor: pointer; padding: 10px 0; margin: -10px 0; }
.accall.bas { display: block; margin: 8px 0 0; padding: 6px 0; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid #EFE6D3; border-radius: var(--r-lg); padding: 9px 12px; margin-top: 6px; font: inherit; text-align: left; cursor: pointer; }
.srow:active { transform: translateY(1px); }
.srow .ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; flex: none; }
.srow .ic svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.srow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.srow .t { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-base); line-height: 1.15; color: var(--a-navy); }
.srow .s { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink3); }
.srow .chev { width: 16px; height: 16px; stroke: var(--a-ink3); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* La question du jour, en bas de l'accueil : un vrai cas, et « Répondre » ouvre le quiz sur elle.
   L'écart avec le bloc du dessus est fixe ; le reste de la hauteur va sous le quiz, qui ne colle plus au bas. */
.homev.accueil > .esp.e2 { flex: 0 0 22px; min-height: 22px; max-height: 22px; }
.homev.accueil > .esp.fin { flex: 1 1 0; max-height: 48px; }
.hero-quiz.qdj { gap: 8px; }
.hero-quiz.qdj .per { font-size: var(--fs-sm); line-height: 1.45; font-weight: 600; color: rgba(255,255,255,.8); padding-right: 64px; }
.hero-quiz.qdj .dqq { font-size: var(--fs-xl); }
.hero-quiz.qdj .qdjact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.hero-quiz.qdj .pill, .hero-quiz.qdj .qdjlien { justify-content: center; margin: 0; min-height: 46px; padding: 10px 12px; border-radius: var(--r-pill); font: inherit; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); cursor: pointer; white-space: nowrap; }
.hero-quiz.qdj .pill { border: 0; font-weight: 900; }
.hero-quiz.qdj .qdjlien { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.6); color: #fff; font-weight: 800; }
.hero-quiz.qdj .qdjlien svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; flex: none; }
.hero-quiz.qdj .pill:active, .hero-quiz.qdj .qdjlien:active { transform: translateY(2px); }
/* Deux sous-blocs de même forme : les contenus qui parlent du profil, puis les situations avec deux exemples. */
.accsitu { margin-top: 10px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 3px 0 #E3D6BD; overflow: hidden; }
.accsitu > .accgo { box-shadow: none; border-radius: 0; }
.accsitu > .accgo:active { transform: none; background: #FBF7EF; }
.accsitu .srow { border: 0; border-top: 1.5px solid var(--a-rail); border-radius: 0; margin: 0; padding: 10px 14px; }
.accsitu .srow .ic { width: 30px; height: 30px; border-radius: var(--r-sm); }
.accsitu .srow .ic svg { width: 16px; height: 16px; }
.accsitu .srow:active { transform: none; background: #FBF7EF; }
/* iPhone SE et autres écrans bas : l'accueil se resserre pour tenir sans défiler. */
@media (max-height: 700px) {
  .accbloc { padding: 13px; }
  .acct { font-size: var(--fs-lg); margin-bottom: 9px; }
  .accgo { padding-top: 9px; padding-bottom: 9px; }
  .accsitu { margin-top: 8px; }
  .accsitu .srow { padding-top: 8px; padding-bottom: 8px; }
  .hero-quiz.qdj { padding-top: 14px; padding-bottom: 13px; }
  .hero-quiz.qdj .dqq { font-size: var(--fs-xl); }
  .hero-quiz.qdj .qdjact .pill, .hero-quiz.qdj .qdjlien { min-height: 42px; }
}
/* Trois respirations égales : en-tête → bloc, bloc → question du jour, question du jour → onglets.
   Elles se partagent la hauteur libre ; la marge ajoutée compense l'ombre portée sous chaque bloc. */
.homev.accueil > .hometop { margin-bottom: 0; }
.homev.accueil > .esp.e1, .homev.accueil > .esp.e2, .homev.accueil > .esp.fin { flex: 1 1 0; min-height: 12px; max-height: none; }
.homev.accueil > .esp.e2 { margin-top: 4px; }
.homev.accueil > .esp.fin { margin-top: 5px; margin-bottom: -18px; }   /* l'écran garde 18 px de marge basse : on les reprend ici */
/* Page de réponse : l'aperçu de « Pour aller plus loin » tient en trois lignes au plus, pour éviter de défiler. */
.sheet.pleine .plusloin b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* Les pots, redessinés : même structure partout (pastille, titre, précision), alignée en haut, et un creux
   de dépôt de hauteur fixe en bas où l'étiquette vient se loger. Le pot ne change plus de taille au dépôt. */
.jpots { align-items: stretch; }
.jpot, .jpots.n3 .jpot { justify-content: flex-start; gap: 10px; min-height: 0; padding: 12px 8px 8px; background: var(--pb); border: 2px solid transparent; border-radius: var(--r-xl); box-shadow: 0 4px 0 var(--pc); }
.jpots.n3 .jpot { padding: 12px 6px 6px; }
.jpot .jlid { display: none; }
.jlab { flex: 1; justify-content: flex-start; gap: 4px; }
.jch { width: 36px; height: 36px; border-radius: 50%; background: var(--pc); color: #fff; display: grid; place-items: center; margin-bottom: 4px; box-shadow: 0 2px 0 var(--pd); }
.jch .ji, .jlab .jch .ji { width: 19px; height: 19px; stroke: #fff; }
.jpots.n3 .jch { width: 32px; height: 32px; }
.jpots.n3 .jch .ji { width: 17px; height: 17px; }
.jlab b { text-wrap: balance; }
.jlab small { text-wrap: balance; }
.jin { flex: none; min-height: 58px; padding: 5px; border: 2px dashed color-mix(in srgb, var(--pc) 45%, transparent); border-radius: var(--r-lg); background: rgba(255,255,255,.55); }
.jpot.choisi { border-width: 2px; border-color: var(--pc); }
.jpot.choisi .jin, .jpot.ok .jin, .jpot.ko .jin { border-style: solid; border-color: var(--pc); background: #fff; }
.jin .jtok { width: 100%; justify-content: center; text-align: left; font-size: var(--fs-xs); line-height: 1.2; padding: 7px 8px; border-width: 2px; border-radius: var(--r-md); text-wrap: balance; }
.jpots.n3 .jin .jtok { font-size: var(--fs-xs); padding: 6px 6px; gap: 5px; }
.jpots.n3 .jin .jtok .ji { width: 14px; height: 14px; }
.jin .jtok.fantome { background: transparent; }
/* après le dépôt : une phrase discrète, plus de cadre en pointillés */
.jvide, .jeu.fini .jvide { border: 0; padding: 0; font-size: var(--fs-sm); }
@container ecran (max-height: 640px) { .jpot, .jpots.n3 .jpot { padding-top: 9px; gap: 7px; } .jch, .jpots.n3 .jch { width: 28px; height: 28px; margin-bottom: 2px; } .jin { min-height: 46px; } }
.jpots.n3 .jin { min-height: 64px; }
.jpots.n3 .jin .jtok { justify-content: center; text-align: center; }
.jpots.n3 .jin .jtok .ji { display: none; }
@container ecran (max-height: 640px) { .jpots.n3 .jin { min-height: 54px; } }
.jpots.n3 .jin { min-height: 70px; }
.jaide.cache { visibility: hidden; }   /* garde sa place : rien ne saute au dépôt */
/* Page de réponse compactée : l'explication, qui est le cœur de la réponse, remonte de trois à quatre lignes. */
.sheet.pleine .lhead { margin-bottom: 8px; }
.sheet.pleine .sheet-body { gap: 10px; }
.sheet.pleine .verdict { font-size: var(--fs-2xl); }
.sheet.pleine .verdict i { width: 28px; height: 28px; }
.sheet.pleine .verdict .star { width: 38px; height: 38px; }
.sheet.pleine .rappel { padding: 10px 14px 12px; gap: 3px; border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--a-navy-dark); }
.sheet.pleine .rappel b { font-size: var(--fs-lg); }
.sheet.pleine .reps .opt { padding: 8px 12px; font-size: var(--fs-md); }
.sheet.pleine .reps .opt small.lab { display: block; margin: 0 0 1px; font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 900; opacity: .75; }
.sheet.pleine .why { margin-top: 0; }
/* L'accueil s'adapte à la taille de l'écran, jamais au contenu du jour : un même téléphone montre toujours le
   même agencement. Écrans bas (mini) : sans la mise en situation ; très bas (SE) : un seul exemple. */
@media (max-height: 820px) { .homev.accueil .qdj .per { display: none; } }
@media (max-height: 800px) { .homev.accueil .accsitu .srow ~ .srow { display: none; } }
@media (max-height: 820px) { .homev.accueil > .esp.e1, .homev.accueil > .esp.e2, .homev.accueil > .esp.fin { min-height: 8px; } }
/* La question du jour déjà jouée : l'étiquette le dit, « Revoir la réponse » rouvre l'explication. */
.hero-quiz .gratuit.faite { background: #DDF1E5; color: var(--a-green2); }
/* Contraste (AA, 4,5:1) et cible tactile (44 pt) sur l'accueil */
.accsect .cap { color: #5F6B67; }
.homev.accueil .lienprofil { color: #8A560C; min-height: 44px; display: inline-flex; align-items: center; margin: -12px 0; }
/* La page aket+ commence par ce qu'on voulait ouvrir, le prix et le bouton : l'argumentaire vient après. */
.pwmotif { display: flex; flex-direction: column; gap: 6px; background: var(--a-navy); color: #fff; border-radius: var(--r-xl); padding: 16px 16px 14px; box-shadow: 0 4px 0 var(--a-navy-dark); margin-top: 4px; }
.pwmotif .cap { color: #F2C14E; }
.pwmotif b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1.2; }
.pwmotif .small { color: rgba(255,255,255,.82); }
.pwmotif .btn { margin-top: 8px; }
.moigratuit { margin: 12px 2px 0; color: var(--a-ink2); }
/* Outils, vue « Tous » : les gratuits en tête, puis une seule section aket+ */
.tcap.tlibres { display: flex; align-items: center; gap: 8px; }
.tplus { display: flex; align-items: center; gap: 10px; margin: 22px 0 2px; padding-top: 16px; border-top: 1.5px solid var(--a-line); }
.tplus .small { margin: 0; }
/* Taille de texte agrandie : un titre d'onglet passe à la ligne plutôt que de passer sous aket+. */
.hrow h2 { white-space: normal; text-wrap: balance; }
/* Le texte minimal passe à 11 pt : l'accueil regagne ces pixels sur ses marges, pas sur le texte. */
.accbloc { padding: 14px; }
.acct { margin-bottom: 10px; }
.accsitu { margin-top: 8px; }
.homev.accueil > .esp.e1, .homev.accueil > .esp.e2, .homev.accueil > .esp.fin { min-height: 10px; }
.lienprofil, .accall { white-space: nowrap; }
/* Les deux boutons de la question du jour gardent leur moitié, même avec « Revoir la réponse » : le texte passe à la ligne plutôt que de déborder. */
.hero-quiz.qdj .qdjact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-quiz.qdj .pill, .hero-quiz.qdj .qdjlien { white-space: normal; text-align: center; line-height: 1.15; min-width: 0; }
/* « Choisir un thème » est plus long que « Répondre » : un peu plus de place pour lui, les deux tiennent sur une ligne. */
.hero-quiz.qdj .qdjact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
/* « Qui hérite » : ceux qui n'ont rien sont en retrait, en gris, sans l'alarme du rouge ; les héritiers seuls ont la couleur. */
.qh .tp.zero .av { background: #F4EFE6; border: 2px solid var(--a-line); color: #B9B1A3; box-shadow: none; }
.qh .tp.zero .nm { color: var(--a-ink3); }
.qh .tp.zero .pt { color: var(--a-ink3); font-weight: 800; }
.qh .part { margin-bottom: 4px; }
.qh .ctrl { margin-top: 14px; }
/* ---- « Qui hérite », refait : la famille en cartes, la succession en une barre ---- */
.qh2 { display: flex; flex-direction: column; gap: 12px; --qc: var(--a-navy); }
.qh2 .qh-cas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.qh2 .qh-cas::-webkit-scrollbar { display: none; }
.qh2 .qh-cas .chip { flex: none; border: 2px solid var(--a-line); background: #fff; color: var(--a-ink); border-radius: var(--r-pill); padding: 8px 13px; font: inherit; font-size: var(--fs-xs); font-weight: 900; box-shadow: 0 3px 0 var(--a-line); cursor: pointer; white-space: nowrap; }
.qh2 .qh-cas .chip.on { background: var(--a-navy); border-color: var(--a-navy); color: #fff; box-shadow: 0 3px 0 var(--a-navy-dark); }
.qh2 .qh-st { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.qh2 .pl { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--a-ink3); }
.qh2 .pl + .qh-bar { margin-bottom: 2px; }
.qh2 .qh-fam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.qh2 .qp { --qc: var(--a-navy); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border-radius: var(--r-lg); padding: 10px 6px 9px; box-shadow: 0 3px 0 var(--a-line); text-align: center; animation: qh-pop .35s cubic-bezier(.3,1.4,.5,1) both; }
.qh2 .qp.e { --qc: var(--a-green); } .qh2 .qp.p { --qc: #D9962B; } .qh2 .qp.f { --qc: var(--a-blue); }
.qh2 .qp .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--qc); color: #fff; }
.qh2 .qp .av .si { width: 20px; height: 20px; }
.qh2 .qp .nm { font-size: var(--fs-2xs); font-weight: 900; color: var(--a-ink); line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.qh2 .qp .tag { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 900; color: var(--a-green2); background: var(--a-green-soft); border-radius: var(--r-pill); padding: 2px 6px; }
.qh2 .qp .pt { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; line-height: 1; color: var(--qc); }
.qh2 .qp.zero { background: transparent; box-shadow: none; border: 2px dashed var(--a-line); padding: 8px 4px 7px; }
.qh2 .qp.zero .av { background: #EDE6D8; color: #B3AB9C; }
.qh2 .qp.zero .nm { color: var(--a-ink3); }
.qh2 .qp.zero .pt { font-family: inherit; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink3); }
.qh2 .qh-bar { display: flex; gap: 3px; min-height: 76px; }
.qh2 .qh-bar i { --qc: var(--a-navy); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; min-width: 0; font-style: normal; color: #fff; background: var(--qc); padding: 6px 4px; text-align: center; transition: flex .45s cubic-bezier(.3,1,.4,1); }
.qh2 .qh-bar i:first-child { border-radius: var(--r-md) 0 0 var(--r-md); } .qh2 .qh-bar i:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; } .qh2 .qh-bar i:only-child { border-radius: var(--r-md); }
.qh2 .qh-bar i.e { --qc: var(--a-green); } .qh2 .qh-bar i.e + i.e { --qc: #3BB77E; } .qh2 .qh-bar i.p { --qc: #D9962B; } .qh2 .qh-bar i.p + i.p { --qc: #E7AE52; } .qh2 .qh-bar i.f { --qc: var(--a-blue); }
.qh2 .qh-bar b { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1; }
.qh2 .qh-bar span { font-size: var(--fs-2xs); font-weight: 900; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh2 .qh-bar em { font-style: normal; font-size: var(--fs-2xs); font-weight: 700; opacity: .85; white-space: nowrap; }
/* le sélecteur de famille */
.qh2 .qh-sel { display: flex; flex-direction: column; gap: 5px; }
.qh2 .qh-sel[hidden] { display: none; }
.qh2 .seg { display: flex; gap: 4px; background: #F1EADB; border-radius: var(--r-md); padding: 3px; }
.qh2 .seg button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; border-radius: 9px; padding: 8px 4px; font: inherit; font-size: var(--fs-xs); font-weight: 900; color: var(--a-ink2); cursor: pointer; white-space: nowrap; }
.qh2 .seg button.on { background: #fff; color: var(--a-navy); box-shadow: 0 2px 0 var(--a-line); }
.qh2 .qh-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qh2 .qp.x { --qc: #8C8374; }
.qh2 .qh-bar i.x { --qc: #8C8374; }
.qh2 .qp .pt sup, .qh2 .qh-bar b sup { font-size: .72em; vertical-align: .38em; }
.qh2 .qp .pt sub, .qh2 .qh-bar b sub { font-size: .72em; vertical-align: -.1em; }
.qh2 .qp .tag { position: static; margin-top: -2px; }
/* sélecteur compact : compteurs − / + */
.qh2 .qh-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qh2 .qh-trio.un { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.qh2 .qh-cpt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qh2 .qh-cpt[hidden] { display: none; }
.qh2 .qh-cpt .pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh2 .cpt { display: flex; align-items: center; justify-content: space-between; background: #F1EADB; border-radius: var(--r-md); padding: 3px; }
.qh2 .cpt button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: #fff; color: var(--a-navy); font: inherit; font-size: var(--fs-lg); font-weight: 900; line-height: 1; box-shadow: 0 2px 0 var(--a-line); cursor: pointer; }
.qh2 .cpt button:disabled { opacity: .35; box-shadow: none; cursor: default; }
.qh2 .cpt b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-navy); }
.qh2 .qh-duo { align-items: end; }
/* la famille : les héritiers en cartes, les autres sur une ligne */
.qh2 .qh-fam { margin-bottom: 0; }
.qh2 .qp .pt { font-size: var(--fs-xl); }
.qh2 .qh-rien { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 2px 0 10px; }
.qh2 .qh-rien:empty { display: none; }
.qh2 .qh-rien span { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink3); margin-right: 2px; }
.qh2 .qh-rien i { font-style: normal; font-size: var(--fs-xs); font-weight: 800; color: var(--a-ink2); background: #EDE6D8; border-radius: var(--r-pill); padding: 4px 10px; }
.qh2 .qh-rien i small { font-size: var(--fs-2xs); font-weight: 700; color: var(--a-ink3); }
/* les compteurs en lignes : le libellé entier à gauche, − n + à droite */
.qh2 .qh-trio, .qh2 .qh-trio.un { display: flex; flex-direction: column; gap: 4px; background: #F1EADB; border-radius: var(--r-md); padding: 4px 4px 4px 12px; }
.qh2 .qh-trio .qh-cpt { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.qh2 .qh-trio .qh-cpt .pl { font-size: var(--fs-xs); letter-spacing: 0; text-transform: none; color: var(--a-ink); font-weight: 800; }
.qh2 .qh-trio .cpt { background: transparent; padding: 0; gap: 6px; }
.qh2 .qh-trio .cpt b { min-width: 18px; text-align: center; }
/* ---- Auto-diagnostic, l'écran de résultat refondu : résumé, objectifs, volets en tableau de bord ---- */
.bres { display: flex; flex-direction: column; gap: 10px; }
.bres .sect { margin-top: 14px; }
.bhero { display: flex; flex-direction: column; gap: 3px; background: var(--a-navy); color: #fff; border-radius: var(--r-2xl); padding: 16px 16px 15px; box-shadow: 0 4px 0 var(--a-navy-dark); }
.bhero .cap { color: #F2C14E; }
.bhero .big { font-family: 'Outfit', sans-serif; font-size: var(--fs-4xl); font-weight: 800; line-height: 1.05; }
.bhero .small { color: rgba(255,255,255,.8); margin: 0; }
.bhero .bsum { align-self: flex-start; margin-top: 8px; background: rgba(255,255,255,.14); border-radius: var(--r-pill); padding: 4px 11px; font-size: var(--fs-xs); font-weight: 900; }
.btmap .tmap { height: 190px; margin-bottom: 0; }
.bpill { align-self: flex-start; flex: none; font-size: var(--fs-2xs); font-weight: 900; border-radius: var(--r-pill); padding: 3px 9px; white-space: nowrap; }
.bpill.ok { background: var(--a-green-soft); color: var(--a-green2); }
.bpill.partiel { background: var(--a-red-soft); color: #8A5E10; }
.bpill.absent, .bpill.info { background: #EFEAE0; color: var(--a-ink2); }
.bpt { display: flex; align-items: center; gap: 9px; width: 100%; font-size: var(--fs-sm); line-height: 1.3; text-align: left; }
.bpt i, .bpc .h i, .blegende i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #CFC7B8; }
.bpt.ok i, .bpc.ok .h i, .blegende i.ok { background: var(--a-green); }
.bpt.partiel i, .bpc.partiel .h i, .blegende i.partiel { background: #E9B434; }
.bpt.absent i, .bpc.absent .h i, .blegende i.absent { background: #B9B1A3; }
.bpt.info i, .bpc.info .h i, .blegende i.info { background: transparent; border: 2px solid #CFC7B8; }
.bpt .l { flex: 1; min-width: 0; font-weight: 700; color: var(--a-ink2); }
.bpt b { flex: none; max-width: 48%; text-align: right; font-weight: 900; color: var(--a-ink); }
.bobj { display: flex; flex-direction: column; gap: 8px; width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 13px 14px; }
.bobj .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.bobj .h b { font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.bobj .plus { font-size: var(--fs-xs); font-weight: 900; color: var(--a-red2); }
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bgrid.un { grid-template-columns: 1fr; }
.btile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 12px 12px 11px; }
.btile .t { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); }
.btile .t i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.btile .k { font-family: 'Outfit', sans-serif; font-size: var(--fs-xl); font-weight: 800; line-height: 1.1; color: var(--a-ink); overflow-wrap: anywhere; }
.btile .l { font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink2); line-height: 1.3; flex: 1; }
.btile .bpill { margin-top: 4px; }
.bobj:active, .btile:active { transform: translateY(2px); box-shadow: none; }
.blegende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 2px 0; }
.blegende i { margin-left: 4px; }
.blegende i:first-child { margin-left: 0; }
/* la page d'un volet ou d'un objectif */
.bvhead { display: flex; flex-direction: column; gap: 4px; border-top: 5px solid var(--c); margin-bottom: 10px; }
.bvhead .k { font-family: 'Outfit', sans-serif; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.1; }
.bvhead .small { margin: 0; }
.bvhead .bpill { margin-top: 6px; }
.bpc { margin-bottom: 9px; }
.bpc .h { display: flex; align-items: center; gap: 9px; }
.bpc .h .l { flex: 1; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; }
.bpc .h b { flex: none; max-width: 45%; text-align: right; font-size: var(--fs-sm); font-weight: 900; color: var(--a-ink2); }
.bpc p { margin: 6px 0 0 19px; font-size: var(--fs-sm); line-height: 1.5; color: var(--a-ink2); }
.bdetail { margin-top: 14px; }
.bdetail summary { cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-base); color: var(--a-navy); padding: 12px 14px; background: #fff; border-radius: var(--r-lg); box-shadow: 0 3px 0 var(--a-line); list-style: none; }
.bdetail summary::after { content: ' ›'; }
.bdetail[open] summary::after { content: ' ⌄'; }
.bdetail .bdet { margin-top: 10px; }
.bdet .bpane { display: none; }
.bdet[data-show="civil"] .bpane[data-bpane="civil"], .bdet[data-show="financier"] .bpane[data-bpane="financier"], .bdet[data-show="budget"] .bpane[data-bpane="budget"],
.bdet[data-show="fiscal"] .bpane[data-bpane="fiscal"], .bdet[data-show="protection"] .bpane[data-bpane="protection"], .bdet[data-show="retraite"] .bpane[data-bpane="retraite"] { display: block; }
.bdet .sect, .bdet .card.etat, .bdet p.small { display: none; }
/* Ma liste pour mes conseillers : un bloc par conseiller, les documents à apporter, le reste replié */
.cfiltres { margin: 4px 0 2px; }
.cgroupe { background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 14px 14px 10px; margin-top: 12px; }
.cgroupe .cgh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.cgroupe .cgh .t { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); font-weight: 800; color: var(--a-navy); }
.cgroupe .cgh .s { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--a-ink3); }
.cgroupe .cgh .n { flex: none; min-width: 28px; text-align: center; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-sm); background: var(--a-rail); color: var(--a-navy); border-radius: var(--r-pill); padding: 3px 8px; }
.cgroupe ul { list-style: none; margin: 0; padding: 0; }
.cgroupe .nq small { display: block; margin-top: 3px; font-size: var(--fs-2xs); font-weight: 800; color: var(--a-ink3); }
.cgroupe .capp { background: var(--a-bg); border-radius: var(--r-md); padding: 10px 12px; margin: 8px 0 4px; }
.cgroupe .capp .cap { color: var(--a-red2); }
.cgroupe .capp li { position: relative; padding-left: 14px; font-size: var(--fs-sm); line-height: 1.4; margin-top: 5px; color: var(--a-ink); }
.cgroupe .capp li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--a-red); }
.cgroupe .cplus summary { cursor: pointer; list-style: none; font-size: var(--fs-xs); font-weight: 900; color: var(--a-red2); padding: 8px 0 4px; }
.cgroupe .cplus summary::after { content: ' ›'; }
.cgroupe .cplus[open] summary::after { content: ' ⌄'; }
.card.notaire small.qui { display: inline-block; font-size: var(--fs-2xs); font-weight: 900; color: var(--a-ink3); background: var(--a-rail); border-radius: var(--r-pill); padding: 1px 7px; margin-left: 4px; }
.card.notaire .cap + ul { margin-top: 6px; }
/* ---- Le document imprimé, refait dans l'esprit de l'écran : tuiles, jauges, points, questions ---- */
@media print {
  .adoc .apill { display: inline-block; align-self: flex-start; font-size: 8.5px; font-weight: 900; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
  .adoc .apill.ok { background: var(--a-green-soft); color: var(--a-green2); } .adoc .apill.partiel { background: var(--a-red-soft); color: #8A5E10; } .adoc .apill.absent, .adoc .apill.info { background: #EFEAE0; color: var(--a-ink2); }
  .adoc .aico { width: 34px; height: 34px; border-radius: 11px; background: var(--c); display: grid; place-items: center; flex: none; }
  .adoc .aico svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .adoc .abig { font-family: 'Outfit', sans-serif; font-size: 34px; font-weight: 800; color: var(--a-navy); line-height: 1.05; }
  .adoc .aref { font-size: 8px; color: var(--a-ink3); font-weight: 600; margin: 4px 0 0; line-height: 1.35; }
  .adoc .ajauge { margin-top: 8px; }
  .adoc .ajauge .h { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; font-weight: 800; color: var(--a-ink2); margin-bottom: 3px; }
  .adoc .ajauge .h b { font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--a-navy); }
  .adoc .ajauge .g { position: relative; height: 8px; border-radius: 99px; background: #EFEAE0; }
  .adoc .ajauge .g i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
  .adoc .ajauge .g em { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--a-ink); border-radius: 1px; }
  .adoc .astack { display: flex; height: 38px; border-radius: 9px; overflow: hidden; gap: 2px; margin-top: 6px; }
  .adoc .astack i { display: flex; flex-direction: column; justify-content: center; padding: 0 8px; color: #fff; font-style: normal; font-size: 8px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; }
  .adoc .astack i b { font-family: 'Outfit', sans-serif; font-size: 11px; }
  /* en un coup d'œil */
  .asyn { flex: 1 1 auto; display: grid; grid-template-columns: 36% 1fr; gap: 26px; align-items: start; }
  .asyn-g { display: flex; flex-direction: column; gap: 4px; }
  .asyn-g .tmap { height: 190px; margin: 8px 0 8px; }
  .asyn-d { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
  .atuile { border: 1px solid var(--a-line); border-top: 4px solid var(--c); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 150px; }
  .atuile .t { font-size: 8.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-ink3); margin-top: 3px; }
  .atuile .k { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 800; color: var(--a-navy); line-height: 1.1; }
  .atuile .l { font-size: 9px; font-weight: 600; color: var(--a-ink2); line-height: 1.35; flex: 1; }
  .atuile .aico { width: 28px; height: 28px; border-radius: 9px; } .atuile .aico svg { width: 16px; height: 16px; }
  /* trois situations */
  .ascen2 { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
  .ascn { border: 1px solid var(--a-line); border-top: 5px solid var(--c); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 5px; }
  .ascn .cap { color: var(--a-ink3); margin-top: 6px; } .ascn .v { font-family: 'Outfit', sans-serif; font-size: 34px; font-weight: 800; color: var(--a-navy); line-height: 1; margin-top: 4px; }
  .ascn .u { font-size: 8.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--a-ink3); }
  .ascn p.m { margin-top: 10px; font-size: 9.5px; line-height: 1.5; }
  /* une page par volet */
  .avol { flex: 1 1 auto; display: grid; grid-template-columns: 27% 1fr 30%; gap: 22px; align-items: start; min-height: 0; }
  .avol-g { display: flex; flex-direction: column; gap: 5px; background: #FAF6EE; border-radius: 14px; padding: 14px; }
  .avol-g .k { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: var(--a-navy); line-height: 1.1; margin-top: 6px; }
  .avol-g .l { font-size: 9px; font-weight: 600; color: var(--a-ink2); line-height: 1.35; }
  .avol-g .avis { margin-top: 6px; } .avol-g .avis .cap { color: var(--a-ink3); margin-top: 4px; }
  .avol-g .tmap { height: 120px; margin: 4px 0 4px; } .avol-g .tlegende { font-size: 7.5px; }
  .avol-m { display: flex; flex-direction: column; gap: 7px; min-width: 0; } .avol-m .cap, .avol-d .cap { color: var(--a-ink3); margin-bottom: 1px; }
  .apt { border-left: 3px solid var(--e); padding: 1px 0 1px 9px; --e: #D9D2C3; }
  .apt.ok { --e: var(--a-green); } .apt.partiel { --e: #E9B434; } .apt.absent { --e: #CFC7B8; } .apt.info { --e: transparent; }
  .apt .h { display: flex; align-items: baseline; gap: 8px; } .apt .h i { display: none; }
  .apt .h span { flex: 1; font-size: 10px; font-weight: 900; color: var(--a-ink); } .apt .h b { font-family: 'Outfit', sans-serif; font-size: 10.5px; font-weight: 800; color: var(--a-navy); text-align: right; max-width: 50%; }
  .apt p { margin: 2px 0 0; font-size: 8.8px; color: var(--a-ink2); font-weight: 600; line-height: 1.38; }
  .avol-d { display: flex; flex-direction: column; gap: 12px; }
  .achif { border: 1px solid var(--a-line); border-radius: 11px; padding: 4px 11px; }
  .achif div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--a-line2); font-size: 9px; font-weight: 700; color: var(--a-ink2); }
  .achif div:last-child { border-bottom: 0; } .achif b { font-family: 'Outfit', sans-serif; font-size: 10px; color: var(--a-navy); text-align: right; }
  .aqbox { background: var(--a-navy); color: #fff; border-radius: 13px; padding: 12px 13px; }
  .aqbox .cap { color: #F2C14E; }
  .aqs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
  .aqs li { font-size: 9.3px; font-weight: 700; line-height: 1.38; padding-left: 12px; position: relative; }
  .aqs li::before { content: '?'; position: absolute; left: 0; top: 0; font-family: 'Outfit', sans-serif; font-weight: 800; color: #F2C14E; }
  .aqs li em { display: block; font-style: normal; font-size: 7.8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 1px; }
  .adoc p.ahors { font-size: 8.5px; margin-top: 8px; }
  /* vos objectifs */
  .aobjs { flex: 1 1 auto; display: grid; gap: 14px; align-items: start; } .aobjs.n1 { grid-template-columns: 1fr; } .aobjs.n2 { grid-template-columns: 1fr 1fr; } .aobjs.n3 { grid-template-columns: repeat(3, 1fr); } .aobjs.n4 { grid-template-columns: repeat(4, 1fr); }
  .aobj { border: 1px solid var(--a-line); border-radius: 13px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; }
  .aobj .t { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; color: var(--a-navy); }
  .apt.court { padding-top: 3px; padding-bottom: 3px; }
  /* pour le rendez-vous */
  .arecap { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .arq { border: 1px solid var(--a-line); border-radius: 13px; padding: 13px 14px; }
  .arq .t { display: block; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: var(--a-navy); margin-bottom: 6px; }
  .arq ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
  .arq li { display: flex; gap: 8px; font-size: 9.3px; font-weight: 700; line-height: 1.38; color: var(--a-ink); }
  .arq li i { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--a-ink3); border-radius: 3px; margin-top: 1px; }
  .arq.adocs { background: #FAF6EE; border-color: transparent; } .arq.adocs li i { border-radius: 50%; }
}
@media print {
  .arecap { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
  .ascen2 { align-items: start; align-content: center; }
  .ascn { min-height: 0; padding: 22px 22px 20px; }
  .ascn .v { font-size: 38px; }
  .ascn p.m { font-size: 10.5px; }
}
@media print {
  .alim { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; background: #FAF6EE; border-radius: 12px; padding: 12px 16px; }
  .alim .cap { color: var(--a-ink3); }
}
.pdfchoix { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pdfchoix .small { margin: 0; }
.pdfchoix .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
@media print {
  .ascen2.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; } .ascen2.n2 { grid-template-columns: 1fr 1fr; }
  .ascen2.n4 { grid-template-columns: 1fr 1fr; gap: 12px; } .ascen2.n5 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ascen2.n4 .ascn, .ascen2.n5 .ascn { padding: 12px 16px; gap: 3px; } .ascen2.n4 .ascn .v, .ascen2.n5 .ascn .v { font-size: 26px; }
  .ascen2.n4 .ascn p.m, .ascen2.n5 .ascn p.m { font-size: 8.8px; margin-top: 4px; line-height: 1.4; } .ascen2.n4 .aico, .ascen2.n5 .aico { width: 26px; height: 26px; }
}
@media print {
  .aphone { box-shadow: none !important; border: 1.5px solid rgba(255,255,255,.22); }   /* WebKit imprime une ombre floue en rectangle */
  .aobjpills { margin-top: 10px; } .aobjpills > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
  .aobjpills span:not(.cap) { background: var(--a-red); color: var(--a-navy); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 10.5px; border-radius: 99px; padding: 5px 12px; }
  .asyn-g p.m { font-size: 9px; line-height: 1.45; margin-top: 2px; }
  .asyn-d .alire2 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 9px; color: var(--a-ink2); font-weight: 600; line-height: 1.45; }
  .achif div { flex-wrap: wrap; } .achif div em { flex-basis: 100%; font-style: normal; font-size: 8px; font-weight: 600; color: var(--a-ink3); line-height: 1.35; margin-top: 1px; }
  .atuile { min-height: 0; }
}
.pdfchoix .row2 { margin-top: 10px; }
@media print {
  .ascen2 { align-content: start; }
  .ascn { padding: 14px 18px 14px; gap: 3px; } .ascn .v { font-size: 30px; } .ascn .aico { width: 28px; height: 28px; }
  .ascn p.m { font-size: 9px; line-height: 1.42; margin-top: 6px; }
  .alim { margin-top: 10px; padding: 9px 14px; } .alim p.m { font-size: 8.5px; }
}
@media print {
  .aexpl { margin: 0 0 6px; font-size: 9.3px; line-height: 1.5; color: var(--a-ink); font-weight: 600; background: #FAF6EE; border-radius: 10px; padding: 9px 11px; }
  .amots { border-top: 1px solid var(--a-line); padding-top: 8px; }
  .amots p { margin: 3px 0 0; font-size: 8.6px; line-height: 1.4; color: var(--a-ink2); font-weight: 600; } .amots b { color: var(--a-navy); }
  .avol { gap: 18px; } .avol-d { gap: 10px; } .avol-m { gap: 6px; }
  /* la barre d'onglets de la maquette suit l'arrondi de l'écran */
  .aecran { isolation: isolate; }
  .aecran .tabbar { border-radius: 0 0 50px 50px; overflow: hidden; }
}
@media print {
  .avol-g .amots { margin-top: 10px; }
  .apt p { font-size: 8.6px; line-height: 1.36; }
}
@media print {
  /* un volet sur deux pages : la situation, puis le point par point */
  .avolA { flex: 1 1 auto; display: grid; grid-template-columns: 24% 1fr 29%; gap: 20px; align-items: start; min-height: 0; }
  .avolA-m, .avolA-d { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .avolA .cap, .avolB .cap { color: var(--a-ink3); }
  .anarr p { margin: 0 0 7px; font-size: 10px; line-height: 1.55; color: var(--a-ink); font-weight: 600; }
  .asch { background: #FAF6EE; border-radius: 12px; padding: 10px 12px; }
  .ameca { background: var(--a-navy); color: #fff; border-radius: 13px; padding: 12px 14px; }
  .ameca .cap { color: #F2C14E !important; } .ameca p { margin: 4px 0 0; font-size: 9.2px; line-height: 1.52; font-weight: 600; }
  .acasc div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 9.2px; font-weight: 700; color: var(--a-ink2); border-bottom: 1px dashed var(--a-line); }
  .acasc div b { font-family: 'Outfit', sans-serif; font-size: 10.5px; color: var(--a-navy); white-space: nowrap; }
  .acasc div.m span { padding-left: 10px; } .acasc div.t { border-bottom: 0; border-top: 2px solid var(--a-navy); margin-top: 2px; color: var(--a-ink); } .acasc div.t b { font-size: 12px; }
  .abarres { display: flex; flex-direction: column; gap: 6px; margin-top: 5px; }
  .abarres .ab { display: grid; grid-template-columns: 34% 1fr auto; gap: 2px 8px; align-items: center; }
  .abarres .ab .l { font-size: 8.8px; font-weight: 800; color: var(--a-ink2); line-height: 1.2; }
  .abarres .ab .g { height: 11px; background: #EFEAE0; border-radius: 99px; overflow: hidden; } .abarres .ab .g i { display: block; height: 100%; border-radius: 99px; }
  .abarres .ab b { font-family: 'Outfit', sans-serif; font-size: 10px; color: var(--a-navy); white-space: nowrap; }
  .abarres .ab em { grid-column: 2 / -1; font-style: normal; font-size: 7.8px; color: var(--a-ink3); font-weight: 700; margin-top: -1px; }
  .avolB { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 29%; gap: 22px; align-items: start; min-height: 0; }
  .apts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; margin-top: 6px; }
  .apts2 .apt p { font-size: 8.8px; }
  .apt p.aimp { margin-top: 3px; color: #7A4E0B; } .apt p.aimp b { color: #7A4E0B; }
  .ajauge.avecref { margin-bottom: 12px; } .ajauge .g em u { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); text-decoration: none; font-size: 7.5px; font-weight: 900; color: var(--a-ink); white-space: nowrap; }
}
@media print { .anarr p { font-size: 9.5px; line-height: 1.5; margin-bottom: 6px; } .acasc div { padding: 3px 0; } .asch { padding: 8px 11px; } }
@media print {
  .acasc div.s { border-top: 1px solid var(--a-ink3); color: var(--a-ink); } .acasc div.s b { font-size: 11px; }
  .alev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
  .alv { border: 1px solid var(--a-line); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; }
  .alv .t { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; color: var(--a-navy); }
  .alv p { margin: 0; font-size: 9px; line-height: 1.45; color: var(--a-ink2); font-weight: 600; }
  .alv p.alchez { background: #FAF6EE; border-radius: 8px; padding: 6px 8px; color: var(--a-ink); }
  .alv p.alchez em.lab { display: block; font-style: normal; font-size: 7.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--a-red2); margin-bottom: 1px; }
  .alv p.mini { font-size: 8.3px; color: var(--a-ink3); } .alv p.mini b { color: var(--a-ink2); }
  .aref2 { font-size: 8px; color: var(--a-ink3); font-weight: 600; margin: 8px 0 0; }
  .achk { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 10px; }
  .achk div { display: flex; align-items: baseline; gap: 6px; font-size: 8.6px; font-weight: 700; color: var(--a-ink2); }
  .achk i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #CFC7B8; } .achk .ok i { background: var(--a-green); } .achk .partiel i { background: #E9B434; } .achk .info i { background: transparent; border: 1.5px solid #CFC7B8; }
  .achk span { flex: 1; } .achk b { font-family: 'Outfit', sans-serif; font-size: 9px; color: var(--a-navy); text-align: right; max-width: 48%; }
}
@media print {
  .alev { gap: 9px; } .alv { padding: 9px 11px; gap: 3px; } .alv p { font-size: 8.6px; line-height: 1.4; } .alv p.mini { font-size: 8px; }
  .avolA-m .anarr p { margin-bottom: 5px; }
}
@media print {
  /* ce qui ressort : les constats, rangés par montant en jeu */
  .acst { display: grid; gap: 12px; align-items: stretch; } .acst.n1 { grid-template-columns: minmax(0, 360px); } .acst.n2 { grid-template-columns: 1fr 1fr; } .acst.n3 { grid-template-columns: repeat(3, 1fr); } .acst.n4 { grid-template-columns: repeat(4, 1fr); }
  .acs { border: 1px solid var(--a-line); border-radius: 13px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; position: relative; }
  .acs .rk { position: absolute; top: 8px; right: 11px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 22px; color: #E9E2D2; }
  .acs .o { font-size: 7.5px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--a-red2); padding-right: 22px; }
  .acs .t { font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 800; color: var(--a-navy); line-height: 1.2; padding-right: 18px; }
  .acs .v { font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 800; color: #9A3B1B; line-height: 1.1; margin-top: 2px; }
  .acs .u { font-size: 8.4px; font-weight: 800; color: var(--a-ink2); line-height: 1.35; }
  .acs p { margin: 2px 0 0; font-size: 8.6px; line-height: 1.42; color: var(--a-ink); font-weight: 600; }
  .acs .ej { font-size: 7.8px; font-weight: 700; color: var(--a-ink3); line-height: 1.35; margin-top: auto; padding-top: 4px; border-top: 1px dashed var(--a-line); }
  .acs .ach { font-size: 8.5px; font-weight: 900; color: var(--a-red2); }
  .acst2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 12px; }
  .aplace { background: var(--a-green-soft); border-radius: 12px; padding: 10px 14px; } .aplace .cap { color: var(--a-green2) !important; }
  .aplace ul { margin: 2px 0 0; padding-left: 14px; columns: 2; column-gap: 18px; } .aplace li, .aplace p { font-size: 8.8px; line-height: 1.45; font-weight: 600; color: var(--a-ink); margin: 0; }
  .aplace p.aautres { margin-top: 6px; color: var(--a-ink2); }
  .aclass { background: #FAF6EE; border-radius: 12px; padding: 10px 14px; } .aclass .cap { color: var(--a-ink3) !important; } .aclass p { margin: 2px 0 0; font-size: 8.8px; line-height: 1.5; font-weight: 600; color: var(--a-ink); }
  .adoc sup { font-size: .75em; line-height: 0; }
  /* un chapitre : le tableau en haut, puis trois colonnes */
  .achap { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .atab { width: 100%; border-collapse: collapse; }
  .atab th { font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-ink3); text-align: right; padding: 4px 8px 5px; border-bottom: 2px solid var(--a-navy); vertical-align: bottom; }
  .atab th:first-child { text-align: left; } .atab th small { display: block; text-transform: none; letter-spacing: 0; font-size: 8px; font-weight: 700; color: var(--a-ink2); margin-top: 1px; }
  .atab td { font-size: 9px; font-weight: 700; color: var(--a-ink2); text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--a-line); vertical-align: top; line-height: 1.3; }
  .atab td:first-child { text-align: left; color: var(--a-ink); } .atab td b { font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--a-navy); white-space: nowrap; }
  .atab td small { display: block; font-size: 7.6px; font-weight: 700; color: var(--a-ink3); line-height: 1.3; margin-top: 1px; }
  .atab tr.ast td { border-top: 1px solid var(--a-ink3); color: var(--a-ink); } .atab tr.atot td { border-top: 2px solid var(--a-navy); border-bottom: 0; color: var(--a-ink); } .atab tr.atot td b { font-size: 12.5px; color: #9A3B1B; }
  .achap.deux { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
  .achap-g, .achap-d { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .atab td:first-child small { max-width: 92%; }
  .achap-h .asch .aref { font-size: 8px; color: var(--a-ink3); font-weight: 700; margin: 6px 0 0; }
  .achap-b { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: start; }
  .acl { display: flex; flex-direction: column; gap: 3px; } .acl .cap { color: var(--a-ink3); margin-top: 4px; } .acl .cap:first-child { margin-top: 0; }
  .acl p { margin: 0; font-size: 8.9px; line-height: 1.48; font-weight: 600; color: var(--a-ink); }
  .alevc { display: flex; flex-direction: column; gap: 5px; } .alevc p { background: #FAF6EE; border-radius: 9px; padding: 6px 9px; font-size: 8.6px; } .alevc b { color: var(--a-navy); }
  .aqbox .cap.adoc2 { margin-top: 8px; } .adl { margin: 3px 0 0; padding-left: 13px; } .adl li { font-size: 8.8px; font-weight: 700; line-height: 1.4; }
  /* le calendrier */
  .atl { position: relative; display: flex; gap: 14px; margin: 10px 4px 16px; padding-top: 26px; }
  .atl::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--a-line); border-radius: 4px; }
  .atl > div { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .atl > div::before { content: ''; position: absolute; top: -22px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--a-red); }
  .atl b { font-family: 'Outfit', sans-serif; font-size: 16px; color: var(--a-navy); } .atl .t { font-size: 9px; font-weight: 900; color: var(--a-ink); line-height: 1.3; }
  .atl span:not(.t) { font-size: 8.6px; font-weight: 600; color: var(--a-ink2); line-height: 1.42; }
  .acal2 { grid-template-columns: 1.2fr 1fr; }
  .afiab { font-size: 8.4px; line-height: 1.45; color: var(--a-ink2); font-weight: 600; margin-top: 8px; }
}
.pdfko { margin-top: 10px; } .pdfko .small { margin: 4px 0 0; }
@media print {
  .aetsi { margin-top: 4px; background: #fff; border-radius: 10px; padding: 7px 9px; display: flex; flex-direction: column; gap: 4px; }
  .aetsi .cap { color: var(--a-red2) !important; margin: 0; }
  .aetsi p { margin: 0; font-size: 8.2px; line-height: 1.38; font-weight: 600; color: var(--a-ink2); } .aetsi p b { display: block; color: var(--a-navy); font-weight: 800; }
  .arenv { margin: 4px 0 0; font-size: 8.2px; font-weight: 800; color: var(--a-red2); }
}
@media print {
  /* la couverture dit que le rapport est en bêta */
  .abeta { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(242,193,78,.45); border-radius: 12px; padding: 9px 12px; max-width: 470px; }
  .abeta .pill { flex: none; background: #F2C14E; color: var(--a-navy); font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 3px 9px; margin-top: 1px; }
  .abeta p { margin: 0; font-size: 9.2px; line-height: 1.45; font-weight: 600; opacity: .92; }
}
/* l'aperçu de l'auto-diagnostic : ce qui ressort se lit, les montants restent voilés */
.verrou-cta .vcst { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.verrou-cta .vcst li { background: var(--a-sur); border: 1px solid var(--a-line); border-radius: var(--r-md); padding: 8px 11px; font-size: var(--fs-sm); font-weight: 800; color: var(--a-ink); line-height: 1.35; }
.verrou-cta .vcst li .o { display: block; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--a-red2); margin-bottom: 2px; }
.verrou-cta .linkbtn { display: block; margin: 10px auto 0; }
.pw .pwdiag { margin: 4px 0 18px; padding: 14px 16px 12px; border-radius: var(--r-xl); background: var(--a-sur); border: 1.5px solid var(--a-red); display: flex; flex-direction: column; gap: 6px; }
.pw .pwdiag b { font-family: 'Outfit', sans-serif; font-size: var(--fs-lg); color: var(--a-navy); line-height: 1.25; }
.pw .pwdiag .small { margin: 0; }
.pw .pwdiag .linkbtn { align-self: flex-start; padding-left: 0; }

/* Texte courant justifié partout (demande du 4 octobre 2026). Sélecteur sans poids (:where) : tout alignement déjà
   donné par une classe (titres, boutons, textes centrés) l'emporte. Coupure des mots en fin de ligne (html lang="fr"). */
:where(.app) :where(p, li) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Le justifié est pour le texte courant seulement (décision du 4 octobre, 21 h). Restent à gauche, sans césure : la
   question d'un exercice, les phrases d'introduction en gras (.lead, dont la citation en tête de carte) et les titres des
   techniques avancées sous verrou. Le texte des cartes étroites des parcours est à gauche plus haut (.mcard). Les phrases
   des blocs centrés (ouverture de l'onboarding, fin d'étape) reprennent le centrage de leur bloc. */
.app :is(.qtext, p.lead, .expert.locked li) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.app :is(.splash, .end .hero) p { text-align: inherit; hyphens: manual; -webkit-hyphens: manual; }

/* Accueil : le profil en quatre lignes courtes avec picto */
.accprof { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.accprof li { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); line-height: 1.3; font-weight: 700; color: var(--a-navy); text-align: left; }
.accprof .pic { flex: 0 0 22px; height: 22px; border-radius: var(--r-sm); background: var(--a-line); display: grid; place-items: center; }
.accprof .pic svg { width: 14px; height: 14px; fill: none; stroke: var(--a-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Parcours : les étapes en frise (fil vertical, une ligne par étape, l'étape touchée se déplie) */
.steps.frise { gap: 0; padding-top: 2px; }
.steps.frise .step-card { background: none; box-shadow: none; padding: 0 0 16px; gap: 10px; position: relative; }
.steps.frise .step-card::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--a-line2); }
.steps.frise .step-card:last-child { padding-bottom: 4px; }
.steps.frise .step-card:last-child::before { display: none; }
.steps.frise .sh { appearance: none; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; width: 100%; display: grid; grid-template-columns: 32px 1fr 18px; gap: 12px; align-items: start; }
.steps.frise .sh > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.steps.frise .n { width: 32px; height: 32px; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--a-bg); }
.steps.frise .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.steps.frise .open .s { -webkit-line-clamp: unset; }
.steps.frise .fchev { width: 18px; height: 18px; margin-top: 7px; fill: none; stroke: var(--a-ink3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.steps.frise .open .fchev { transform: rotate(90deg); }
.steps.frise .fbody { margin-left: 44px; background: var(--a-sur); border-radius: var(--r-xl); box-shadow: var(--a-sh); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.steps.frise .fbody[hidden] { display: none; }
.steps.frise .step-card.cur .fbody { box-shadow: 0 3px 0 var(--a-red); }
@media (prefers-reduced-motion: reduce) { .steps.frise .fchev { transition: none; } }

/* L'explication gratuite d'une question, en courts paragraphes */
.why.suite { margin-top: 10px !important; }

/* Les bases : la réponse en courts paragraphes */
.base .ans p + p { margin-top: 10px; }

/* Cartes de résultat (simulateurs, auto-diagnostic) : le texte en courts paragraphes justifiés ; une valeur longue
   garde le montant en grand et passe son complément (« en ordre de grandeur », « par mois ») en petit dessous. */
.ind .m p + p { margin-top: 8px; }
.ind .v .vc { display: block; margin-top: 4px; font-family: 'Nunito', sans-serif; font-size: var(--fs-xs); font-weight: 700; line-height: 1.25; letter-spacing: 0; color: var(--a-ink2); }

/* Carte des biens : une case « small » ne doit pas prendre le style du texte .small de l'app (gris, 13 px). */
.app .tcell.small { font-size: inherit; line-height: inherit; color: #fff; }
.app .tcell.small.sombre { color: var(--a-navy); }

/* Guides : textes en courts paragraphes justifiés */
.fdet > div > p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--a-ink2); font-weight: 600; }
.fdet > div > p + p, .fitem p.m + p.m { margin-top: 8px; }
.fitem p.s { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

/* Accueil : deux onglets, « Pour vous » et « Situations », trois exemples chacun */
.acc-liste { background: #fff; border-radius: var(--r-lg); box-shadow: 0 3px 0 #E3D6BD; overflow: hidden; }
.acc-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin: 6px; background: #F3ECDD; border-radius: 12px; }
.acc-onglets button { appearance: none; border: 0; font: inherit; cursor: pointer; background: none; border-radius: 9px; padding: 7px; font-weight: 800; font-size: var(--fs-sm); color: var(--a-ink2); }
.acc-onglets button.on { background: #fff; color: var(--a-navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.acc-l { appearance: none; border: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; background: none; display: grid; grid-template-columns: 34px 1fr 16px; gap: 12px; align-items: center; padding: 8px 12px; color: var(--a-navy); border-top: 1px solid #EFE6D3; }
.acc-liste > .acc-l:first-child { border-top: 0; }
.acc-l:active { background: #FBF7EF; }
.acc-l .ic { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--c); display: grid; place-items: center; }
.acc-l .ic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-l .tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acc-l .k { font-size: var(--fs-xs); font-weight: 800; color: var(--c); }
.acc-l .t { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: var(--fs-base); line-height: 1.15; }
.accbloc.serre .acc-l .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-l .chev { width: 16px; height: 16px; fill: none; stroke: var(--a-ink3); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-tout { appearance: none; border: 0; background: none; font: inherit; width: 100%; padding: 9px; font-weight: 900; font-size: var(--fs-sm); color: #8A560C; border-top: 1px solid #EFE6D3; cursor: pointer; }
.texte-grand .homev.parc .ptile { padding: 9px 11px; row-gap: 2px; min-height: 0; }
.texte-grand .homev.parc .ptile .ic { width: 28px; height: 28px; border-radius: var(--r-sm); }
.texte-grand .homev.parc .ptile .ic svg { width: 16px; height: 16px; }
.texte-grand .homev.parc > .pgrid { gap: 8px; }
/* Techniques avancées : une carte par technique, en carrousel */
.ex-b .exb-tete { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.ex-b .exb-n { font-size: var(--fs-xs); font-weight: 800; color: rgba(252,247,238,.7); }
.ex-b .exb-rang { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px; scroll-padding-left: 12px; align-items: stretch; }
.ex-b .exb-rang::-webkit-scrollbar { display: none; }
.ex-b .exb-rang.seule .exb { flex-basis: 100%; }
.ex-b .exb-rang > .exb:only-child { flex-basis: 100%; }
.ex-b .exb { flex: 0 0 86%; scroll-snap-align: start; background: var(--a-bg); color: var(--a-ink); border-radius: var(--r-lg); padding: 12px 14px; }
/* toutes les cartes à la hauteur de la plus longue, la référence calée en bas */
.ex-b .exb { display: flex; flex-direction: column; }
.ex-b .exb .src { margin-top: auto; padding-top: 4px; }
.ex-b .exb-k { font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .06em; color: var(--a-free-ink); }
.ex-b .exb b { display: block; font-family: 'Outfit', sans-serif; font-size: var(--fs-base); font-weight: 800; color: var(--a-navy); margin: 2px 0 6px; line-height: 1.25; }
.ex-b .exb p { margin: 0 0 8px; font-size: var(--fs-sm); line-height: 1.55; color: var(--a-ink2); }
.ex-b .exb p b { display: inline; font-family: inherit; font-size: inherit; margin: 0; }
.ex-b .exb .src { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--fs-2xs); color: var(--a-ink3); }
.ex-b .exb .ch, .ex-b .exb b.k { background: var(--a-yellow-soft); color: #7A4F08; border-radius: var(--r-xs); padding: 0 4px; font-weight: 900; white-space: nowrap; }

/* Le contenu aket+ d'une étape, encadré de l'en-tête à la fin des exercices : on voit où il commence et où il finit */
.plusz { border: 1.5px solid var(--a-navy); border-radius: var(--r-md); overflow: hidden; background: #F5F2EA; }
.plusz > .stepopen { background: var(--a-navy); color: #fff; border-radius: 0; padding: 10px 12px; font-size: var(--fs-sm); }
.plusz > .stepopen .lk { background: var(--a-yellow); color: var(--a-navy-dark); }
.plusz > .stepopen .p { width: 18px; height: 18px; stroke: var(--a-yellow); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.plusz > .stepopen[aria-expanded="true"] .p { transform: rotate(180deg); }
.plusz > .sm { padding: 12px 10px 12px; }
/* l'étape ouverte prend toute la largeur : le retrait sous le numéro coûtait 44 px au contenu */
.steps.frise .fbody { margin-left: 0; padding-left: 10px; padding-right: 10px; position: relative; z-index: 1; }
.plusz { margin: 0 -4px; }
.plusz > .sm { padding: 12px 8px; }

/* Guides : le numéro à côté du titre seulement ; le texte prend toute la largeur de la carte */
.fitem { display: block; position: relative; }
.fitem > .num { position: absolute; top: 14px; left: 14px; }
.fitem > div > h3 { min-height: 34px; padding-left: 46px; display: flex; align-items: center; }

/* Lisibilité : les chiffres qui suivent le premier d'un paragraphe en simple gras ; plus de mots coupés en fin de ligne */
.app b.ch2 { font-weight: 800; color: inherit; white-space: nowrap; background: none; padding: 0; }
:where(.app) :where(p, li) { hyphens: manual; -webkit-hyphens: manual; }
.app .meca .mpts li, .app .step-card .sm .mcard p:not(.lead) { hyphens: manual; -webkit-hyphens: manual; }
