/* 3615 Windows — feuille principale. Clair, chaleureux, lisible : texte de base 18 px, contrastes AA, focus visible. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface2: #f3eee5;
  --line: #e4ddd0;
  --ink: #1f2328;
  --muted: #535a66;
  --accent: #2456a6;
  --accent-dark: #1a417f;
  --accent-soft: #e7eefa;
  --warm: #e9a23b;
  --warm-soft: #fdf1dc;
  --ok: #2b7a4b;
  --ok-soft: #e4f3ea;
  --err: #b3261e;
  --err-soft: #fbe9e7;
  --sage: #7d9b86;
  --focus: #e9a23b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 35, 40, .06), 0 6px 20px rgba(31, 35, 40, .06);
  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs: 18px;
  --maxw: 1180px;
}
html.ts-1 { --fs: 21px; }
html.ts-2 { --fs: 24px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; scroll-padding-bottom: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1rem; line-height: 1.6; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .9em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .02em .45em; border: 1px solid #c9c1b2; border-bottom-width: 3px;
  border-radius: 6px; background: var(--surface); font: 700 .85em var(--font); text-align: center; line-height: 1.35;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
main { display: block; max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 64px; }
main:focus { outline: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: .55em 1.1em;
  border-radius: 999px; border: 2px solid transparent; font: 700 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--accent); border-color: #c8d5ec; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-lg { min-height: 54px; padding: .7em 1.4em; font-size: 1.02rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-lost { background: var(--warm-soft); color: #6b4510; border-color: #f0cf95; }
.btn-lost:hover { background: #fbe4bb; color: #4d300a; }
.link { font-weight: 700; }
.link-line { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* En-tête */
.hd { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hd-in { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand-mark { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; padding: .25em .55em; border-radius: 8px; }
.hd-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.hd-nav a { padding: .45em .7em; font-size: .95rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.hd-nav a:hover { background: var(--surface2); }
.hd-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.hd-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hd-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); padding-left: 12px; }
.hd-search input { border: 0; background: transparent; font: inherit; font-size: .9rem; width: 120px; padding: .45em 0; color: var(--ink); }
.hd-search input:focus { outline: none; }
.hd-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.hd-search button { border: 0; background: none; width: 40px; height: 38px; cursor: pointer; color: var(--ink); }
.hd-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.textsize { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.textsize button { border: 0; background: var(--surface); padding: 0 .55em; min-height: 38px; font: 700 .8rem var(--font); cursor: pointer; color: var(--ink); }
.textsize button + button { border-left: 1px solid var(--line); }
.textsize button[data-size="1"] { font-size: .95rem; }
.textsize button[data-size="2"] { font-size: 1.1rem; }
.textsize button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.hd-acc { min-height: 40px; }

/* Pied de page */
.ft { background: #1f2a3c; color: #e9edf4; margin-top: 40px; }
.ft a { color: #fff; }
.ft-in { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 28px; }
.ft-col { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.ft-brand { font-weight: 800; font-size: 1.1rem; margin: 0; }
.ft-note { color: #c6cfdc; font-size: .85rem; }
.ft-nl label { font-weight: 700; }
.ft-nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-nl input { flex: 1; min-width: 160px; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; }
.ft-nl-msg { color: #d9f2e3; }
.ft-credit { text-align: center; padding: 14px 24px 26px; margin: 0; font-size: .85rem; color: #c6cfdc; border-top: 1px solid #33415a; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 26px 0 30px; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--accent); margin-bottom: .6em; }
.hero h1 { font-size: 2.6rem; }
.lead { font-size: 1.15rem; color: #353a42; max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.hero-note { color: var(--muted); font-size: .9rem; }
.hero-pic img { border-radius: 22px; box-shadow: var(--shadow); display: block; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 10px 0 46px; }
.door { display: grid; grid-template-columns: 180px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.door:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.door-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.door-body { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.door-title { font-size: 1.35rem; font-weight: 800; }
.door-text { color: #3a3f47; }
.door-cta { margin-top: auto; font-weight: 800; color: var(--accent); }
.band { margin: 0 0 52px; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.band-how { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.how li { display: flex; flex-direction: column; gap: 6px; }
.how span:not(.how-n) { color: #3a3f47; font-size: .95rem; }
.how-n { width: 40px; height: 40px; border-radius: 50%; background: var(--warm-soft); color: #6b4510; display: grid; place-items: center; font-weight: 800; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.card:focus-within, .card:hover { border-color: var(--accent); }
.card-pic { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card-body p:last-child { margin: 0; color: #3a3f47; font-size: .95rem; }
.card-kicker { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .35em; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.needs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.needs-grid a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.needs-grid a:hover { border-color: var(--accent); color: var(--accent-dark); }
.band-sim { background: var(--accent-soft); border-radius: 22px; padding: 30px; }
.band-sim p { max-width: 75ch; }

/* En-têtes de page, listes */
.page-head { margin: 10px 0 30px; }
.page-head-pic { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.head-pic { border-radius: 18px; display: block; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.parcours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.parcours-row { display: grid; grid-template-columns: 240px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.parcours-row .card-pic { height: 100%; aspect-ratio: auto; }
.parcours-body { padding: 18px 22px 18px 0; }
.parcours-row.is-planned { background: var(--surface2); }
.parcours-row.is-planned .card-pic { filter: grayscale(.7); opacity: .75; }
.planned { color: var(--muted); font-style: italic; }
.mini-lessons { margin: 0; padding-left: 1.2em; }
.mini-lessons li { margin: .2em 0; }
.lesson-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.lesson-row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.lesson-row h2 { font-size: 1.15rem; margin-bottom: .3em; }
.lesson-row p { margin: 0 0 .3em; }
.lesson-n { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.lesson-list-compact .lesson-row { padding: 10px 14px; align-items: center; }
.lesson-list-compact .lesson-n { width: 36px; height: 36px; font-size: .9rem; }
.meta { color: var(--muted); font-size: .88rem; }
.status-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12em .6em; border-radius: 999px; background: var(--surface2); color: #4a4f58; border: 1px solid var(--line); white-space: nowrap; }
.status-chip:empty { display: none; }
.status-chip[data-s="in_progress"] { background: var(--warm-soft); color: #6b4510; border-color: #f0cf95; }
.status-chip[data-s="done_help"] { background: var(--accent-soft); color: var(--accent-dark); border-color: #c8d5ec; }
.status-chip[data-s="done_auto"] { background: var(--ok-soft); color: #1d5a37; border-color: #b7dcc5; }
.status-chip[data-s="review"] { background: var(--err-soft); color: #8a1d16; border-color: #f0c2bd; }
.status-chip[data-s="done_auto"]::before { content: "✓ "; }
.status-chip[data-s="review"]::before { content: "↻ "; }
.legend .status-chip { margin: 0 .2em .3em 0; }

/* Lecteur de leçon */
.lesson { max-width: 860px; margin: 0 auto; }
.lesson-head h1 { font-size: 2rem; }
.objective { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 10px; padding: 10px 14px; }
.objective-label { font-weight: 800; color: var(--accent); margin-right: .3em; }
.winver { font-size: .85rem; color: var(--muted); }
.lesson-bar { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; }
.progress { flex: 1; height: 10px; border-radius: 999px; background: var(--surface2); overflow: hidden; border: 1px solid var(--line); }
.progress-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s; }
.progress-text { margin: 0; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin: 18px 0; box-shadow: var(--shadow); }
.js .step { display: none; }
.js .step.is-current { display: block; }
.step-title { font-size: 1.4rem; }
.step-pic { border-radius: 14px; margin: 0 0 16px; display: block; width: 100%; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.prose p:last-child { margin-bottom: 0; }
.term { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); text-decoration: underline dotted; text-underline-offset: .2em; text-decoration-thickness: 2px; cursor: help; }
.term:hover { background: var(--accent-soft); border-radius: 4px; }
.term-list .term { margin-right: .6em; }
.prereq { margin-top: 18px; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.prereq summary { cursor: pointer; font-weight: 700; }
.analogy { display: grid; gap: 14px; }
.analogy > .prose { font-size: 1.05rem; }
.analogy-limit { background: var(--warm-soft); border-radius: 12px; padding: 12px 16px; }
.analogy-limit-title { font-weight: 800; color: #6b4510; margin-bottom: .3em; }
.defcard { background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; }
.defcard-term { font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); }
.defcard-more { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #b8c8e6; }
.tip { background: var(--warm-soft); border-left: 5px solid var(--warm); border-radius: 10px; padding: 14px 18px; }
.tip-title { font-weight: 800; color: #6b4510; }
.fig { margin: 0; }
.fig-svg { background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fig-svg svg { display: block; width: 100%; height: auto; max-height: 520px; }
.fig figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.fig-desc { margin-top: 10px; font-size: .92rem; }
.fig-desc summary { cursor: pointer; color: var(--accent); }
.fig-missing { padding: 30px; text-align: center; color: var(--muted); background: var(--surface2); border-radius: 12px; }
.demo-steps { padding-left: 1.3em; }
.demo-step { margin: .5em 0; }
.js .demo[data-ready] .demo-step { display: none; }
.js .demo[data-ready] .demo-step.is-current { display: list-item; }
.demo-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.demo-count { color: var(--muted); font-size: .9rem; }
.demo-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.summary { font-size: 1.08rem; }
.summary li { margin: .4em 0; }
.result { margin: 16px 0; }
.result-card { border-radius: 14px; padding: 16px 18px; background: var(--ok-soft); }
.result-card.is-help { background: var(--accent-soft); }
.result-card.is-review { background: var(--warm-soft); }
.result-card h3 { margin-bottom: .3em; }
.review-note { color: var(--muted); font-size: .92rem; }
.end-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lesson-nav { display: none; position: sticky; bottom: 0; z-index: 20; background: rgba(251, 248, 243, .96); border-top: 1px solid var(--line); padding: 12px 0; gap: 10px; justify-content: space-between; }
.js .lesson-nav { display: flex; }
.lesson-nav .btn-lost { margin: 0 auto; }
.store-warning { background: var(--warm-soft); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.notice { background: var(--warm-soft); border-radius: 10px; padding: 12px 16px; }
.ex-kicker { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .4em; }
.ex-prompt { font-size: 1.05rem; margin-bottom: 14px; }

/* Panneaux : glossaire et « Je suis perdu » */
.term-pop { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 2px solid var(--accent); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .2); }
.term-pop-in { padding: 18px 20px; }
.term-pop-kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0; }
.term-pop-title { font-size: 1.25rem; margin: .2em 0 .4em; }
.term-pop-more { color: #3a3f47; font-size: .95rem; margin-top: 8px; }
.term-pop-more:empty { display: none; }
.term-pop-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.lost-panel { position: fixed; inset: 0; z-index: 70; background: rgba(20, 24, 32, .45); display: grid; place-items: center; padding: 16px; }
.lost-panel[hidden] { display: none; }
.lost-in { background: var(--surface); border-radius: 20px; max-width: 620px; width: 100%; padding: 26px; max-height: 90vh; overflow: auto; }
.lost-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }

/* Exercices */
.ex { margin-top: 6px; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.ex-feedback { margin-top: 16px; border-radius: 14px; padding: 0; }
.ex-feedback:not(:empty) { padding: 14px 18px; }
.ex-feedback.is-ok { background: var(--ok-soft); border-left: 5px solid var(--ok); }
.ex-feedback.is-err { background: var(--err-soft); border-left: 5px solid var(--err); }
.ex-feedback.is-info { background: var(--accent-soft); border-left: 5px solid var(--accent); }
.ex-feedback .fb-title { font-weight: 800; margin-bottom: .3em; }
.ex-feedback ul { margin: .4em 0 0; padding-left: 1.2em; }
.ex-hints { margin-top: 14px; display: grid; gap: 8px; }
.ex-hint { background: var(--warm-soft); border-radius: 10px; padding: 10px 14px; }
.ex-hint b { color: #6b4510; }
.ex-done { font-weight: 800; color: var(--ok); }
.mark-ok, .mark-err { font-weight: 800; margin-left: .35em; }
.mark-ok { color: var(--ok); }
.mark-err { color: var(--err); }
.ex-help-line { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
/* classement */
.cz-pool, .cz-cat-items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.cz-pool { padding: 12px; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg); margin-bottom: 14px; }
.cz-pool:empty::after { content: "Tout est placé. Vous pouvez vérifier."; color: var(--muted); font-size: .9rem; align-self: center; }
.chip { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: .4em .85em; border-radius: 12px; border: 2px solid #c8d5ec; background: var(--surface); font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.chip.is-err { border-color: var(--err); background: var(--err-soft); }
.chip.is-dragging { opacity: .5; }
.cz-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cz-cat { border: 2px solid var(--line); border-radius: 14px; background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cz-cat.is-target { border-color: var(--accent); background: var(--accent-soft); }
.cz-cat-btn { border: 0; background: var(--surface2); border-radius: 10px; padding: .5em .7em; font: 800 1rem var(--font); color: var(--ink); cursor: pointer; text-align: left; min-height: 44px; }
.cz-cat-btn:hover { background: var(--accent-soft); }
.has-pick .cz-cat-btn { background: var(--accent-soft); color: var(--accent-dark); }
.has-pick .cz-cat-btn::after { content: " ← placer ici"; font-weight: 600; font-size: .85rem; }
/* association */
.mt-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mt-left { font-weight: 700; }
.mt-row select, .field select { width: 100%; min-height: 46px; font: inherit; font-size: .95rem; padding: .3em .6em; border-radius: 10px; border: 2px solid #c8d5ec; background: var(--surface); color: var(--ink); }
/* choix */
.ch-list { display: grid; gap: 10px; }
.ch-opt { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.ch-opt:hover { border-color: #c8d5ec; }
.ch-opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.ch-opt.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.ch-opt.is-err { border-color: var(--err); background: var(--err-soft); }
.ch-explain { grid-column: 2; font-size: .93rem; margin-top: 6px; }
/* ordre */
.or-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: or; }
.or-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.or-item::before { counter-increment: or; content: counter(or); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.or-item.is-err { border-color: var(--err); }
.or-item.is-ok { border-color: var(--ok); }
.or-btns { display: flex; gap: 6px; }
.or-btns button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #c8d5ec; background: var(--surface); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.or-btns button:hover { border-color: var(--accent); }
.or-btns button:disabled { opacity: .3; cursor: default; }
/* zone à montrer */
.hs-ask { font-weight: 800; font-size: 1.1rem; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; }
.hs-fig .zlabel { display: none; }
.hs-fig .zone { cursor: pointer; }
.hs-fig .zone:hover > *, .hs-fig .zone:focus > * { opacity: .82; }
.hs-fig .zone:focus { outline: none; }
.hs-fig .zone:focus-visible .hit, .hs-fig .zone:focus-visible { outline: none; }
.hs-fig .zone.is-focus .hit, .hs-fig .zone:focus .hit { fill: rgba(233, 162, 59, .25); stroke: var(--focus); stroke-width: 4; }
.hs-fig .zone.is-found .zlabel { display: inline; }
.hs-fig .zone.is-found .hit { fill: rgba(43, 122, 75, .15); stroke: var(--ok); stroke-width: 3; }
.hs-fig .zone.is-wrong .hit { fill: rgba(179, 38, 30, .12); stroke: var(--err); stroke-width: 3; }
.hs-progress { color: var(--muted); font-size: .9rem; }
/* diagnostic */
.dg-symptom { background: var(--err-soft); border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.dg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.dg-checks { display: grid; gap: 8px; }
.dg-check { text-align: left; }
.dg-check[aria-pressed="true"] { background: var(--accent-soft); }
.dg-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-log li { background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.dg-log li b { display: block; }
.dg-causes { margin-top: 16px; }
.dg-causes[aria-disabled="true"] { opacity: .55; }

/* Simulations */
.sim { border: 2px solid #c8d5ec; border-radius: 18px; overflow: hidden; background: var(--surface); }
.sim-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #1f2a3c; color: #fff; padding: 8px 14px; font-size: .9rem; }
.sim-banner strong { background: var(--warm); color: #2b1d05; border-radius: 6px; padding: .05em .5em; }
.sim-banner .sim-tools { margin-left: auto; display: flex; gap: 8px; }
.sim-banner button { background: #33415a; color: #fff; border: 0; border-radius: 999px; min-height: 36px; padding: 0 .9em; font: 700 .85rem var(--font); cursor: pointer; }
.sim-banner button:hover { background: #45577a; }
.sim-mission { background: var(--accent-soft); padding: 12px 16px; display: grid; gap: 4px; }
.sim-mission-title { font-weight: 800; }
.sim-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.sim-steps li::before { content: "○ "; color: var(--muted); }
.sim-steps li.is-done { color: var(--ok); }
.sim-steps li.is-done::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.sim-stage { position: relative; }
.sim-live { padding: 10px 16px; min-height: 0; }
.sim-live:empty { display: none; }
.sim-foot { padding: 0 16px 16px; }
/* bureau simulé — volontairement générique, sans logo ni marque */
.desk { position: relative; height: 470px; background: linear-gradient(160deg, #3d6fb3 0%, #6c9ad0 55%, #a9c6e6 100%); overflow: hidden; user-select: none; }
.desk-icons { position: absolute; left: 14px; top: 14px; display: grid; gap: 10px; }
.desk-icon { width: 92px; border: 0; background: transparent; color: #fff; font: 600 .78rem var(--font); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.desk-icon:hover, .desk-icon:focus-visible { background: rgba(255, 255, 255, .22); }
.desk-icon .ico { width: 40px; height: 40px; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: rgba(245, 247, 251, .94); border-top: 1px solid rgba(0, 0, 0, .08); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.tb-btn { height: 42px; min-width: 42px; border: 0; background: transparent; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font: 600 .82rem var(--font); color: var(--ink); cursor: pointer; position: relative; }
.tb-btn:hover { background: rgba(36, 86, 166, .1); }
.tb-btn .ico { width: 24px; height: 24px; }
.tb-btn.is-open::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 3px; height: 3px; border-radius: 2px; background: #8b97aa; }
.tb-btn.is-active::after { background: var(--accent); left: 22%; right: 22%; }
.tb-start .start-dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent); display: grid; place-items: center; }
.tb-start .start-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tb-tray { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: .8rem; color: #333; }
.start-menu { position: absolute; left: 10px; bottom: 60px; width: 300px; max-width: calc(100% - 20px); background: rgba(250, 251, 253, .98); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 14px; z-index: 50; }
.start-menu h3 { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.start-app { border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; display: grid; justify-items: center; gap: 4px; font: 600 .78rem var(--font); color: var(--ink); cursor: pointer; }
.start-app:hover, .start-app:focus-visible { background: var(--accent-soft); }
.start-app .ico { width: 32px; height: 32px; }
.win { position: absolute; background: var(--surface); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #c9d2e0; min-width: 260px; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 52px) !important; border-radius: 0; }
.win.is-min { display: none; }
.win.is-active { border-color: var(--accent); }
.win-bar { display: flex; align-items: center; height: 40px; background: #eef2f8; padding-left: 12px; gap: 8px; cursor: move; touch-action: none; }
.win.is-active .win-bar { background: #e1e9f6; }
.win-title { font-weight: 700; font-size: .85rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-ctrl { display: flex; height: 100%; }
.win-ctrl button { width: 46px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.win-ctrl button:hover { background: rgba(0, 0, 0, .08); }
.win-ctrl button.wc-close:hover { background: #c42b1c; color: #fff; }
.win-ctrl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.win-body { flex: 1; overflow: auto; padding: 12px; font-size: .9rem; }
.win-body textarea { width: 100%; height: 100%; min-height: 120px; border: 0; resize: none; font: inherit; }
/* explorateur simulé */
.xp { display: grid; grid-template-columns: 200px 1fr; height: 100%; min-height: 330px; font-size: .9rem; }
.xp-side { background: #f6f8fb; border-right: 1px solid #dfe5ee; padding: 8px; overflow: auto; }
.xp-side ul { list-style: none; margin: 0; padding: 0 0 0 10px; }
.xp-side > ul { padding-left: 0; }
.xp-node { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: transparent; border-radius: 6px; padding: 5px 6px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.xp-node:hover { background: #e6edf8; }
.xp-node[aria-current="true"] { background: var(--accent-soft); font-weight: 700; }
.xp-node.is-drop { outline: 2px dashed var(--accent); }
.xp-main { display: flex; flex-direction: column; min-width: 0; }
.xp-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #dfe5ee; background: #fbfcfe; }
.xp-tools button { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px 8px; font: 600 .82rem var(--font); color: var(--ink); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; min-height: 34px; }
.xp-tools button:hover:not(:disabled) { background: #e6edf8; border-color: #c8d5ec; }
.xp-tools button:disabled { opacity: .4; cursor: default; }
.xp-addr { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #dfe5ee; }
.xp-path { flex: 1; background: #fff; border: 1px solid #dfe5ee; border-radius: 6px; padding: 4px 8px; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-find { width: 150px; border: 1px solid #dfe5ee; border-radius: 6px; padding: 4px 8px; font: inherit; font-size: .82rem; }
.xp-list { list-style: none; margin: 0; padding: 6px; overflow: auto; flex: 1; }
.xp-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 6px 8px; font: inherit; color: var(--ink); cursor: default; text-align: left; }
.xp-item:hover { background: #eef3fa; }
.xp-item[aria-selected="true"] { background: #d9e6f8; border-color: #9cb8e2; }
.xp-item.is-cut { opacity: .5; }
.xp-item small { color: var(--muted); }
.xp-empty { color: var(--muted); padding: 20px; text-align: center; }
.xp-status { border-top: 1px solid #dfe5ee; padding: 4px 10px; font-size: .78rem; color: var(--muted); }
.ico { display: inline-block; flex: none; width: 20px; height: 20px; }
.win-bar .ico { width: 20px; height: 20px; }
.xp-item .ico, .xp-node .ico { width: 20px; height: 20px; }
.ctx { position: absolute; z-index: 80; background: #fff; border-radius: 10px; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); padding: 6px; min-width: 190px; border: 1px solid #dfe5ee; }
.ctx button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 6px; font: 600 .86rem var(--font); color: var(--ink); cursor: pointer; }
.ctx button:hover, .ctx button:focus-visible { background: var(--accent-soft); }
.ctx button:disabled { opacity: .4; }
.dlg-back { position: absolute; inset: 0; background: rgba(15, 20, 30, .35); display: grid; place-items: center; z-index: 90; padding: 12px; }
.dlg { background: #fff; border-radius: 12px; padding: 18px; width: min(420px, 100%); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); font-size: .92rem; }
.dlg h4 { margin: 0 0 8px; font-size: 1rem; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.dlg input[type="text"] { width: 100%; min-height: 40px; font: inherit; padding: 0 10px; border: 2px solid #c8d5ec; border-radius: 8px; }
/* messagerie simulée */
.mail { display: grid; grid-template-columns: 170px 1fr; height: 100%; min-height: 360px; font-size: .9rem; }
.mail-side { background: #f6f8fb; border-right: 1px solid #dfe5ee; padding: 10px; display: grid; align-content: start; gap: 6px; }
.mail-main { padding: 12px 16px; overflow: auto; }
.mail-form { display: grid; gap: 8px; }
.mail-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; }
.mail-row label { font-weight: 700; color: var(--muted); }
.mail-row input, .mail-body textarea { width: 100%; min-height: 38px; font: inherit; padding: 4px 10px; border: 1px solid #c9d2e0; border-radius: 8px; }
.mail-body textarea { min-height: 110px; resize: vertical; }
.mail-attach { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.att { display: inline-flex; align-items: center; gap: 6px; background: #eef3fa; border: 1px solid #c8d5ec; border-radius: 8px; padding: 4px 6px 4px 10px; font-size: .85rem; }
.att button { border: 0; background: transparent; cursor: pointer; width: 28px; height: 28px; border-radius: 6px; }
.att button:hover { background: #d9e6f8; }
.mail-sent { background: var(--ok-soft); border-radius: 10px; padding: 12px; }
.contacts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
/* composants et branchements (schémas) */
.explore { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 14px; }
.explore .fig-svg { padding: 6px; }
.explore .zone { cursor: pointer; }
.explore .zone:focus { outline: none; }
.explore .zone:focus .hit, .explore .zone.is-sel .hit { fill: rgba(36, 86, 166, .15); stroke: var(--accent); stroke-width: 4; }
.explore .zone.is-seen .hit { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 6 4; }
.explore.is-quiz .zlabel { display: none; }
.explore.is-quiz .zone.is-found .zlabel { display: inline; }
.info-card { background: var(--bg); border-radius: 12px; padding: 14px; }
.info-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.plug-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plug { width: 100%; justify-content: space-between; }
.plug small { font-weight: 500; color: var(--muted); }
.plug.is-done { border-color: var(--ok); background: var(--ok-soft); }
.ports-fig .zone { cursor: pointer; }
.ports-fig .zone:focus { outline: none; }
.ports-fig .zone:focus .hit, .ports-fig.has-plug .zone:hover .hit { fill: rgba(36, 86, 166, .15); stroke: var(--accent); stroke-width: 4; }
.ports-fig .zone.is-used .hit { fill: rgba(43, 122, 75, .15); stroke: var(--ok); stroke-width: 3; }
.port-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sim-small { display: none; background: var(--warm-soft); padding: 10px 14px; font-size: .9rem; }

/* Tableau de bord, révisions, divers */
.dash-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.dash-card h2 { font-size: 1.05rem; color: var(--muted); }
.dash-big { font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.1; }
.dash-import { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin-bottom: 24px; }
.dash-parcours { margin-top: 18px; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); max-width: 860px; }
.review-meta { color: var(--muted); font-size: .9rem; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.start-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.placement { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-top: 24px; max-width: 820px; }
.pl-q { border: 0; margin: 0 0 18px; padding: 0; }
.pl-q legend { font-weight: 800; margin-bottom: 8px; }
.need-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.need-steps { padding-left: 1.4em; }
.need-steps li { margin: .5em 0; padding-left: .2em; }
.need-steps li p { margin: 0; }
.need-aside { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.aside-list { padding-left: 1.1em; }
.needs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.need-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.need-card h2 { font-size: 1.15rem; }
.need-card p { color: #3a3f47; font-size: .95rem; margin: 0; }
.big-search { max-width: 720px; display: grid; gap: 6px; }
.big-search label { font-weight: 700; }
.big-search-row { display: flex; gap: 10px; }
.big-search input { flex: 1; min-height: 52px; border: 2px solid #c8d5ec; border-radius: 999px; padding: 0 18px; font: inherit; }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.hits li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.hits h2 { font-size: 1.15rem; margin-bottom: .2em; }
.hits p { margin: 0; }
.hit-kind { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.gl-letter h2 { font-size: 1.6rem; color: var(--accent); border-bottom: 2px solid var(--line); padding-bottom: 4px; margin-top: 28px; }
.gl-list { margin: 0; }
.gl-item { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gl-item:target { background: var(--warm-soft); border-radius: 10px; padding: 14px; }
.gl-item dt { font-weight: 800; font-size: 1.1rem; }
.gl-syn { font-weight: 500; color: var(--muted); font-size: .85rem; }
.gl-item dd { margin: 6px 0 0; }
.gl-more { color: #3a3f47; margin-top: 6px; }
.gl-lessons { font-size: .9rem; color: var(--muted); margin-top: 6px; }
article.prose, .page-narrow { max-width: 780px; }
.legal-dl dt { font-weight: 700; margin-top: 10px; }
.legal-dl dd { margin: 0; }

/* Écrans moyens et petits */
@media (max-width: 1200px) {
  .hd-tools { margin-left: 0; width: 100%; justify-content: flex-end; }
}
@media (max-width: 1080px) {
  .how { grid-template-columns: 1fr 1fr; }
  .ft-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero, .page-head-pic, .need-grid, .doors, .start-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .hero-pic { order: -1; }
  .dash-top { grid-template-columns: 1fr; }
  .explore, .dg-grid { grid-template-columns: 1fr; }
  .hd-tools { margin-left: 0; width: 100%; }
  .hd-search { flex: 1; }
  .hd-search input { width: 100%; }
}
@media (max-width: 700px) {
  main { padding: 16px 16px 48px; }
  .hd-in { padding: 8px 16px; gap: 10px; }
  .hd-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hd-nav a { white-space: nowrap; }
  h1, .lesson-head h1 { font-size: 1.7rem; }
  .door { grid-template-columns: 1fr; }
  .door-pic { aspect-ratio: 16 / 9; height: auto; }
  .parcours-row { grid-template-columns: 1fr; }
  .parcours-row .card-pic { aspect-ratio: 16 / 9; }
  .parcours-body { padding: 0 18px 18px; }
  .step { padding: 18px 16px; border-radius: 16px; }
  .mt-row { grid-template-columns: 1fr; gap: 6px; }
  .ft-in { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .lesson-nav .btn { padding: .5em .8em; font-size: .88rem; }
  .xp, .mail { grid-template-columns: 1fr; }
  .xp-side, .mail-side { border-right: 0; border-bottom: 1px solid #dfe5ee; max-height: 150px; }
  .desk { height: 560px; }
  .sim-small { display: block; }
  .win { min-width: 0; }
  .textsize { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .ft, .lesson-nav, .ex-actions { display: none; }
  .js .step { display: block; }
}

/* Figures SVG (dessins originaux, classes communes) */
.f-line { fill: none; stroke: #2b2f36; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.f-thin { fill: none; stroke: #7a8190; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.f-surface { fill: #fffdf8; }
.f-surface2 { fill: #efe8db; }
.f-accent { fill: #2456a6; }
.f-accent-soft { fill: #dbe6f7; }
.f-accent-line { fill: none; stroke: #2456a6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.f-warm { fill: #e9a23b; }
.f-ok { fill: #3a8f5c; }
.f-alert { fill: #c8473d; }
.f-shadow { fill: #e3ddd0; }
.f-label { font: 700 19px var(--font); fill: #22252b; }
.f-small { font: 500 15px var(--font); fill: #4a4f58; }
.f-title { font: 800 26px var(--font); fill: #22252b; }
.hit { fill: transparent; }
.zone.is-hl > :not(.zlabel) { filter: drop-shadow(0 0 6px rgba(233, 162, 59, .9)); }
.zone.is-hl .hit { fill: rgba(233, 162, 59, .22); stroke: #e9a23b; stroke-width: 4; }
.demo .zone { transition: opacity .2s; }
.demo.is-playing .zone:not(.is-hl) { opacity: .45; }

/* Compte (repris de KilaTalk, couleurs de ce site) */
.acc-wrap { position: relative; max-width: 620px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0px clamp(64px, 8vw, 110px); }
.acc-page { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) 0px clamp(64px, 8vw, 110px); }
.acc-card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 30px 60px -40px rgba(60,40,10,.3); min-width: 0; }
.acc-title { font-family: var(--font); font-weight: 800; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 14px; }
.acc-h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 20px; }
.acc-h2 { font-family: var(--font); font-weight: 400; font-size: 26px; margin: 0 0 16px; }
.acc-lede { font-size: 16px; line-height: 1.6; color: #3a3f47; margin: 0 0 20px; }
.acc-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.acc-note a, .acc-lede a { border-bottom: 1px solid currentColor; }
.acc-form { display: grid; gap: 10px; }
.acc-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.acc-row > label { font-size: 14px; color: #3a3f47; }
.acc-opt { color: var(--muted); font-size: 12px; }
.acc-row input[type=text], .acc-row input[type=email], .acc-row input[type=password], .acc-row input:not([type]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c8d5ec; border-radius: 999px; background: #fff; color: var(--ink); font: 16px var(--font); }
.acc-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.acc-row-check { align-items: start; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #3a3f47; cursor: pointer; }
.acc-check input, .acc-checks input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.acc-submit, .acc-btn { justify-self: start; min-height: 48px; padding: 14px 26px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--bg); font: 16px var(--font); cursor: pointer; margin-top: 8px; }
.acc-submit:hover, .acc-btn:hover { background: var(--ink); border-color: var(--ink); }
.acc-btn { font-size: 15px; padding: 12px 20px; background: var(--ink); border-color: var(--ink); }
.acc-btn:hover { background: var(--accent); border-color: var(--accent); }
.acc-btn-danger { background: var(--accent); border-color: var(--accent); }
.acc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.acc-links a { color: #3a3f47; border-bottom: 1px solid #c8d5ec; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 18px 0 0; }
.acc-alert { margin: 0 0 18px; padding: 12px 14px; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-left-width: 3px; background: var(--bg); }
.acc-ok { border-left-color: #3d7a4a; }
.acc-err { border-color: var(--accent); color: #8f2c1b; }
.acc-info { border-left-color: var(--muted); }
.acc-sr, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.acc-tabs { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.acc-tabs a[aria-current="page"] { color: var(--accent); border-bottom: 1px solid var(--accent); }
.acc-logout { background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 4px 0; font: 15px var(--font); color: var(--ink); cursor: pointer; }
.acc-logout:hover { color: var(--accent); border-color: var(--accent); }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.5vw, 28px); align-items: start; margin-top: 32px; }
.acc-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.acc-tile p { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; color: #3a3f47; }
.acc-big { font-family: var(--font); font-size: 44px !important; line-height: 1 !important; color: var(--ink) !important; margin: 14px 0 8px !important; }
.acc-big small { font-size: 17px; color: var(--muted); font-family: var(--font); }
.acc-danger { border-color: #d9b3aa; }
.acc-danger summary { cursor: pointer; color: var(--accent); margin-bottom: 14px; }
.acc-onboarding { display: grid; gap: 26px; max-width: 760px; margin-top: 28px; }
.acc-onboarding-sm { margin-top: 0; gap: 20px; }
.acc-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.acc-choice legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.acc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-option input { position: absolute; opacity: 0; pointer-events: none; }
.acc-option span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border: 1px solid #c8d5ec; border-radius: 999px; font-size: 15px; cursor: pointer; background: transparent; }
.acc-option-sm span { min-width: 72px; justify-content: center; }
.acc-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.acc-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-checks { display: grid; gap: 10px; }
.acc-checks label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
@media (max-width: 520px) {
  .acc-row { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 8px; }
  .acc-row > label { font-size: 13px; }
  .acc-row-check > span:first-child { display: none; }
  .acc-row-check > .acc-check { grid-column: 1 / -1; }
}

/* Champ mot de passe + puzzle anti-robot (repris de sditech, aux couleurs du site) */
.pw-field { position: relative; }
.pw-field input { padding-right: 50px !important; }
.pw-toggle { position: absolute; top: 1px; bottom: 1px; right: 1px; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle[hidden] { display: none; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .pw-ico-hide, .pw-toggle.is-shown .pw-ico-show { display: none; }
.pw-toggle.is-shown .pw-ico-hide { display: block; }
.pw-field input::-ms-reveal { display: none; }
.pw-match-msg { margin: 6px 0 0; font-size: 13px; color: #8f2c1b; }
.slcap { margin: 8px 0 6px; }
.slcap [hidden] { display: none !important; }
.slcap-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.slcap-stage { position: relative; width: 100%; aspect-ratio: 2/1; overflow: hidden; background: #e9e2d3; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; }
.slcap-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.slcap-piece { position: absolute; left: 0; top: 0; width: 17.35%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.slcap-refresh { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(29,27,24,.7); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slcap-refresh svg { width: 17px; height: 17px; }
.slcap-track { position: relative; height: 48px; margin-top: 10px; overflow: hidden; background: var(--bg); border: 1px solid #c8d5ec; }
.slcap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(178,58,38,.12); }
.slcap-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 56px; font-size: 13px; color: var(--muted); pointer-events: none; }
.slcap-handle { position: absolute; top: 0; left: 0; height: 100%; width: 59px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--bg); cursor: grab; touch-action: none; }
.slcap-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.slcap-handle svg { width: 22px; height: 22px; }
.slcap-handle .slcap-ico-check { display: none; }
.slcap.is-dragging .slcap-handle { cursor: grabbing; }
.slcap.is-busy .slcap-handle { opacity: .7; }
.slcap-status { min-height: 1.25em; margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.slcap-status.is-error { color: #8f2c1b; }
.slcap.is-solved .slcap-track { border-color: #3d7a4a; }
.slcap.is-solved .slcap-fill { background: rgba(61,122,74,.18); }
.slcap.is-solved .slcap-hint { visibility: hidden; }
.slcap.is-solved .slcap-handle { background: #3d7a4a; cursor: default; }
.slcap.is-solved .slcap-handle .slcap-ico-arrow { display: none; }
.slcap.is-solved .slcap-handle .slcap-ico-check { display: block; }
.slcap.is-solved .slcap-status { color: #2f6139; font-weight: 600; }
.slcap.is-error .slcap-track { border-color: var(--accent); animation: slcap-shake .45s ease; }
.slcap-alt { margin: 10px 0 0; grid-template-columns: 1fr; }
.slcap-switch { margin-top: 6px; padding: 0; border: 0; background: none; font: 13px var(--font); color: var(--muted); text-decoration: underline; cursor: pointer; }
.slcap-done { margin: 6px 0; font-size: 14px; font-weight: 600; color: #2f6139; }
.slcap-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .slcap.is-error .slcap-track { animation: none; } }
.acc-card { border-radius: 20px; }
.acc-row input[type=text], .acc-row input[type=email], .acc-row input[type=password] { border-radius: 10px; }
.acc-tabs a { text-decoration: none; font-weight: 700; }
.acc-h1, .acc-title { letter-spacing: -.01em; }
