/* Tête Claire — feuille de style commune
   Concept : une page aérée, une seule idée forte (le tri), le reste calme.
   Palette : ciel froid, encre bleu-nuit, bleu-vert d'action, jaune "priorité". */
:root {
  --bg: #f1f6f8;
  --surface: #ffffff;
  --ink: #0f2230;
  --muted: #4a6270;
  --line: #d3e0e6;
  --action: #0b5563;
  --action-ink: #ffffff;
  --sun: #ffcb3d;
  --sun-ink: #1a1400;
  --soft: #e3eef2;
  --focus: #0b5563;
  --c-fixed: #2f4b5c;
  --c-goal: #0b5563;
  --c-long: #86bcc6;
  --c-short: #d4553a;

  --font-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem);
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1a22;
    --surface: #122630;
    --ink: #e8f1f4;
    --muted: #9bb3bf;
    --line: #25404d;
    --action: #67c6d6;
    --action-ink: #06232b;
    --sun: #ffcb3d;
    --sun-ink: #1a1400;
    --soft: #163240;
    --focus: #67c6d6;
    --c-fixed: #7f9bab;
    --c-goal: #67c6d6;
    --c-long: #3f7f8c;
    --c-short: #ff8a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1a22;
  --surface: #122630;
  --ink: #e8f1f4;
  --muted: #9bb3bf;
  --line: #25404d;
  --action: #67c6d6;
  --action-ink: #06232b;
  --sun: #ffcb3d;
  --sun-ink: #1a1400;
  --soft: #163240;
  --focus: #67c6d6;
  --c-fixed: #7f9bab;
  --c-goal: #67c6d6;
  --c-long: #3f7f8c;
  --c-short: #ff8a6b;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img, svg { max-width: 100%; }
a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

/* En-tête */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); box-shadow: inset -5px -5px 0 rgba(0,0,0,0.08); flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: var(--step--1); }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }

/* Typographie */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 48ch; }
.small { font-size: var(--step--1); color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(28px, 6vw, 64px) clamp(36px, 6vw, 72px); display: grid; gap: clamp(24px, 4vw, 40px); }
.hero-text { display: grid; gap: 18px; max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { font: inherit; font-weight: 650; font-size: var(--step--1); padding: 13px 22px; border-radius: 999px; border: 2px solid var(--action); background: var(--action); color: var(--action-ink); text-decoration: none; cursor: pointer; display: inline-block; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--action); }

/* Le tri : la seule animation de la page, déclenchée par un clic */
.tri { position: relative; height: clamp(330px, 46vw, 400px); border: 2px solid var(--line); border-radius: 28px; background: var(--surface); overflow: hidden; }
.tri-chip { position: absolute; left: 0; top: 0; max-width: 78%; padding: 9px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: var(--step--1); font-weight: 600; line-height: 1.25; white-space: nowrap; will-change: transform; transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.6s ease, background-color 0.4s; }
.tri-chip.prio.is-sorted { background: var(--sun); color: var(--sun-ink); font-size: 1rem; padding: 12px 22px; }
.tri-chip.is-sorted:not(.prio) { opacity: 0; }
.tri-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-top: 2px solid var(--line); background: var(--surface); }
.tri-caption { font-size: var(--step--1); color: var(--muted); margin: 0; max-width: none; flex: 1 1 220px; }

/* Sections */
section { padding-block: clamp(28px, 5vw, 56px); }
.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.principes { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.principes > div { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--sun); padding-top: 14px; }
.profils { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.profil { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.profil:hover { border-color: var(--action); }
.profil .go { color: var(--action); font-weight: 650; font-size: var(--step--1); }
.profil.soon { background: transparent; border-style: dashed; }
.outil { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: var(--action); color: var(--action-ink); }
.outil p, .outil h2 { color: var(--action-ink); }
.outil .btn { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); justify-self: start; }

/* Pages de contenu */
.page { padding-block: clamp(24px, 5vw, 56px); display: grid; gap: 22px; max-width: 760px; }
.page h2 { margin-top: 18px; }
.page ul, .page ol { margin: 0; padding-left: 1.2em; max-width: var(--measure); display: grid; gap: 10px; }
.note { padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: var(--step--1); max-width: var(--measure); }
.note strong { font-weight: 700; }
.todo { background: var(--sun); color: var(--sun-ink); padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* Calculateur */
.calc { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; padding-block: 8px 48px; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 650; font-size: var(--step--1); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input[type="number"], input[type="text"] { font: inherit; width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--action); }
.goal { display: grid; gap: 10px 12px; grid-template-columns: 1fr 1fr; padding-top: 14px; border-top: 2px solid var(--line); }
.goal .full { grid-column: 1 / -1; }
.link-btn { font: inherit; font-size: 0.8rem; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
#goals { display: grid; gap: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sep { height: 0; border: 0; border-top: 2px solid var(--line); margin: 0; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: none; }
.result-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.bar { display: flex; gap: 3px; height: 46px; }
.seg { display: block; min-width: 4px; border-radius: 6px; transition: flex-grow 0.5s cubic-bezier(.2,.8,.2,1); }
.seg:first-child { border-radius: 14px 6px 6px 14px; }
.seg:last-child { border-radius: 6px 14px 14px 6px; }
.seg:only-child { border-radius: 14px; }
.s-fixed { background: var(--c-fixed); }
.s-goal { background: var(--c-goal); }
.s-long { background: var(--c-long); }
.s-left { background: var(--sun); }
.s-short { background: var(--c-short); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 10px; flex: none; transform: translateY(1px); }
.result-list li .lab { display: flex; align-items: baseline; min-width: 0; }
.result-list li .amt { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.result-list li.live { background: var(--sun); color: var(--sun-ink); }
.result-list li.live.short { background: var(--c-short); color: #1c0600; }
.result-list li.live .dot { box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35); background: transparent; }
.result-list li small { display: block; font-size: 0.8rem; opacity: 0.8; font-weight: 500; }
.alert { padding: 14px 16px; border-radius: 14px; background: #ffe2dc; color: #5a1608; font-size: var(--step--1); font-weight: 600; }
:root[data-theme="dark"] .alert { background: #4a1e16; color: #ffd8cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert { background: #4a1e16; color: #ffd8cf; } }
.alert[hidden] { display: none; }

/* Pied de page */
.site-foot { border-top: 2px solid var(--line); padding-block: 32px 48px; display: grid; gap: 14px; font-size: var(--step--1); color: var(--muted); }
.site-foot p { max-width: 70ch; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .seg { transition: none; }
  .tri-chip { transition: opacity 0.2s ease, background-color 0.2s; }
}
@media (max-width: 560px) {
  .tri { height: 470px; }
}


/* Faire le point */
.fp-wrap { display: grid; gap: 20px; max-width: 760px; padding-bottom: 48px; }
#fp { display: grid; gap: 20px; }
.wiz { gap: 20px; }
.wiz h2 { font-size: var(--step-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; max-width: none; }
.stepper li { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.stepper li.done { background: var(--c-goal); }
.stepper li.now { background: var(--sun); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.opt:hover { border-color: var(--action); }
.opt.on { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.opt.st-done.on { background: var(--c-goal); border-color: var(--c-goal); }
.opt.st-better.on { background: var(--c-long); border-color: var(--c-long); color: #0a2530; }
.opt.st-same.on { background: var(--muted); border-color: var(--muted); color: var(--bg); }
.opt.st-worse.on { background: var(--c-short); border-color: var(--c-short); color: #1c0600; }
.review, .items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: none; }
.review li, .items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.rv-t, .it-t { font-weight: 600; min-width: 0; overflow-wrap: anywhere; flex: 1 1 200px; }
.addrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { font: inherit; font-weight: 600; padding: 12px 18px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.pick.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.energy { display: flex; gap: 10px; }
.e { font: inherit; font-weight: 750; font-size: 1.3rem; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.e.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.prios { display: flex; flex-wrap: wrap; gap: 8px; }
.prio-chip { background: var(--sun); color: var(--sun-ink); padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: var(--step--1); overflow-wrap: anywhere; }
.threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: none; }
.threads li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.th-t { font-weight: 600; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot2 { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.dot2.st-done { background: var(--c-goal); }
.dot2.st-better { background: var(--c-long); }
.dot2.st-same { background: var(--muted); }
.dot2.st-worse { background: var(--c-short); }
.dot2.st-new { background: transparent; box-shadow: inset 0 0 0 3px var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: var(--muted); max-width: none; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot2 { width: 12px; height: 12px; }
.chart { width: 100%; height: auto; max-width: 100%; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-lab { fill: var(--muted); font-size: 11px; }
.c-line { fill: none; stroke: var(--action); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--sun); stroke: var(--action); stroke-width: 2.5; }
select { font: inherit; width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.file-btn { cursor: pointer; }

/* sujets et conseils de profil */
.subjects { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subj { font: inherit; font-weight: 600; font-size: 0.92rem; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.subj.on { background: var(--action); border-color: var(--action); color: #fff; }
.subj.add { border-style: dashed; color: var(--muted); }
.subj:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.tip { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--sun); font-size: 0.95rem; }
.theme { padding: 20px 0; border-top: 2px solid var(--line); scroll-margin-top: 16px; }
.theme h2 { margin-top: 0; }

/* ===== Thème v2 : bleu sobre, plus de relief et de mouvement ===== */
:root {
  --bg: #f4f7fd; --surface: #ffffff; --ink: #0c1b3d; --muted: #52618a; --line: #dbe3f5;
  --action: #2457f5; --action-2: #5b8dff; --action-ink: #ffffff; --sun: #ffd166; --sun-ink: #2a1d00;
  --soft: #e8eefc; --focus: #2457f5;
  --c-fixed: #3b4b7a; --c-goal: #2457f5; --c-long: #8fb0ff; --c-short: #e0553a;
  --grad: linear-gradient(135deg, #2457f5 0%, #5b8dff 100%);
  --shadow: 0 1px 2px rgba(12,27,61,.06), 0 8px 24px rgba(36,87,245,.08);
  --shadow-up: 0 2px 4px rgba(12,27,61,.08), 0 16px 36px rgba(36,87,245,.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1126; --surface: #111b38; --ink: #e9eeff; --muted: #9fb0dd; --line: #24315a;
    --action: #7aa2ff; --action-2: #a9c2ff; --action-ink: #07122e; --sun: #ffd166; --soft: #172447; --focus: #7aa2ff;
    --c-fixed: #8a9bd0; --c-goal: #7aa2ff; --c-long: #4a68b8; --c-short: #ff8f73;
    --grad: linear-gradient(135deg, #3f6dff 0%, #86aaff 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25); --shadow-up: 0 2px 4px rgba(0,0,0,.5), 0 16px 36px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0a1126; --surface: #111b38; --ink: #e9eeff; --muted: #9fb0dd; --line: #24315a;
  --action: #7aa2ff; --action-2: #a9c2ff; --action-ink: #07122e; --sun: #ffd166; --soft: #172447; --focus: #7aa2ff;
  --c-fixed: #8a9bd0; --c-goal: #7aa2ff; --c-long: #4a68b8; --c-short: #ff8f73;
  --grad: linear-gradient(135deg, #3f6dff 0%, #86aaff 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25); --shadow-up: 0 2px 4px rgba(0,0,0,.5), 0 16px 36px rgba(0,0,0,.35);
}
body { background: var(--bg); }
body::before { content: ""; position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 30%, rgba(36,87,245,.16), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(91,141,255,.18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: url(icon.svg) center/cover no-repeat; box-shadow: 0 4px 12px rgba(36,87,245,.35); }
.site-head { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); transition: box-shadow .25s; }
.site-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(12,27,61,.06); }
.btn:not(.ghost) { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(36,87,245,.3); transition: transform .2s, box-shadow .2s; }
.btn:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(36,87,245,.4); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { transition: transform .2s, border-color .2s, background .2s; }
.btn.ghost:hover { transform: translateY(-2px); }
.panel, .profil, .tri { box-shadow: var(--shadow); }
.profil { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.profil:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
.profil .go::after { content: " →"; display: inline-block; transition: transform .2s; }
.profil:hover .go::after { transform: translateX(4px); }
.profil h3::before { content: ""; display: block; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 12px; background: var(--grad); opacity: .95; }
.profil:nth-child(2n) h3::before { background: linear-gradient(135deg, #5b8dff, #9fd0ff); }
.profil:nth-child(3n) h3::before { background: linear-gradient(135deg, #ffd166, #ffb066); }
.hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outil { background: var(--grad); box-shadow: var(--shadow-up); }
.tri-chip.prio { background: var(--sun); color: var(--sun-ink); }
.subj.on, .stepper li.now, .stepper li.done { background: var(--action); border-color: var(--action); }
.e.on { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.08); }
.e, .pick, .opt, .subj { transition: transform .15s, background .2s, border-color .2s; }
.pick:hover, .opt:hover, .e:hover, .subj:hover { transform: translateY(-1px); border-color: var(--action); }
.chart .c-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.principes > div, .profils > .profil { transition-delay: calc(var(--i, 0) * 70ms); }
.vault { border-left: 4px solid var(--action); }
.lock-screen { text-align: center; }
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .site-head { position: static; backdrop-filter: none; background: transparent; }
  .site-head .nav { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-up); margin: 0; }
  .site-head .nav a { text-align: center; padding: 10px 2px; font-size: .78rem; border-radius: 16px; white-space: normal; }
  .site-head .nav a[aria-current="page"] { background: var(--grad); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .chart .c-line { animation: none; stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Correctifs en-tête et bandeau ===== */
html, body { overflow-x: clip; }
.site-head { background: none; backdrop-filter: none; padding-block: 14px; }
.site-head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .25s; }
.site-head.scrolled { box-shadow: none; }
.site-head.scrolled::before { box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(12,27,61,.07); }
@media (min-width: 641px) {
  .nav { gap: 4px; flex-wrap: nowrap; }
  .nav a { padding: 9px 16px; border: 0; border-radius: 999px; font-weight: 550; transition: background .2s, color .2s; }
  .nav a:hover { background: var(--soft); color: var(--action); }
  .nav a[aria-current="page"] { background: var(--soft); color: var(--action); }
}
.outil .btn:not(.ghost) { background: #fff; color: var(--action); box-shadow: 0 6px 18px rgba(0,0,0,.18); justify-self: end; }
.outil .btn:not(.ghost):hover { box-shadow: 0 10px 26px rgba(0,0,0,.28); }
@media (max-width: 640px) { .outil .btn:not(.ghost) { justify-self: start; } .site-head::before { display: none; } }

/* compte */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--action); vertical-align: middle; margin-left: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; margin: 4px 0 14px; cursor: pointer; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--action); }
/* section « Pourquoi » */
.why { display: grid; gap: 20px; padding: clamp(22px, 4vw, 36px); border-radius: 28px; background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); }
.why h2 { margin-top: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why-list li { padding: 16px 18px; border-radius: 18px; background: var(--soft); line-height: 1.45; }
.go-link { font-weight: 650; color: var(--action); text-decoration: none; }
.go-link::after { content: " →"; }
.go-link:hover { text-decoration: underline; }
