:root {
  --navy: #0f2a44;
  --navy-2: #173a5c;
  --ink: #1b2430;
  --muted: #5b6878;
  --line: #e3e8ee;
  --bg-soft: #f5f8fb;
  --green: #18a36b;
  --green-light: #3ddc97;
  --crit: #c62828;
  --high: #e65100;
  --mid: #b28704;
  --info: #546e7a;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--navy-2); }
code { background: var(--bg-soft); padding: 0 4px; border-radius: 4px; font-size: .92em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.9rem; text-align: center; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
section, #r-full { scroll-margin-top: 88px; }

.btn {
  display: inline-block; border: 2px solid var(--green); background: var(--green); color: #fff;
  font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-small { padding: 6px 14px; font-size: .9rem; }

.top { position: sticky; top: 0; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--navy); color: var(--green-light); font-weight: 800; }

.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 80px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero .accent { color: var(--green-light); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: #a9c1d9; }
.lead { max-width: 760px; margin: 0 auto 32px; font-size: 1.12rem; color: #d7e3ef; }
.scan-form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.scan-form input { flex: 1; font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 10px; border: 0; }
.hint { color: #a9c1d9; font-size: .9rem; }
.form-error { color: #ffb4b4; font-weight: 600; }
.result .form-error, dialog .form-error { color: var(--crit); }
.progress { margin: 24px auto 0; max-width: 420px; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
.progress ol { margin: 0; padding-left: 18px; color: #d7e3ef; }
.progress li { opacity: .5; animation: lit 8s infinite; }
.progress li:nth-child(2) { animation-delay: 2s; }
.progress li:nth-child(3) { animation-delay: 4s; }
.progress li:nth-child(4) { animation-delay: 6s; }
@keyframes lit { 0%, 20% { opacity: 1; } 30%, 100% { opacity: .5; } }
.spinner { width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.3); border-top-color: var(--green-light); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { padding: 56px 0; background: var(--bg-soft); }
.result-head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.result-head h2 { text-align: left; font-size: 1.6rem; }
.grade { width: 96px; height: 96px; border-radius: 20px; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: #fff; background: var(--info); flex: none; }
.grade-A { background: #2e7d32; } .grade-B { background: #689f38; } .grade-C { background: #f9a825; }
.grade-D { background: #ef6c00; } .grade-E { background: #d84315; } .grade-F { background: var(--crit); }
.issues { list-style: none; padding: 0; margin: 0 0 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.issues li { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.issues li:last-child { border-bottom: 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--info); }
.badge.sev-critique { background: var(--crit); } .badge.sev-elevee { background: var(--high); }
.badge.sev-moyenne { background: var(--mid); } .badge.sev-info { background: var(--info); }
.finding { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--info); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.finding.sev-critique { border-left-color: var(--crit); } .finding.sev-elevee { border-left-color: var(--high); }
.finding.sev-moyenne { border-left-color: var(--mid); }
.finding p { margin: .35em 0; }
.finding-meta { margin-bottom: 8px !important; }
.prompt { background: var(--navy); color: #e6eef6; padding: 14px; border-radius: 8px; white-space: pre-wrap; font-size: .85rem; max-height: 260px; overflow: auto; }
.unlock { background: #fff; border: 2px solid var(--green); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.inline-form { display: flex; gap: 10px; margin: 12px 0; }
.inline-form input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.passes { margin: 20px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; }
.passes summary { cursor: pointer; font-weight: 600; }
.notice { background: #fff8e1; border: 1px solid #ffe08a; border-radius: var(--radius); padding: 16px 18px; font-size: .95rem; }
.result-cta { text-align: center; margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.result-cta p { width: 100%; font-weight: 600; margin: 0; }

.why, .checks, .how, .offers, .faq { padding: 72px 0; }
.checks, .offers { background: var(--bg-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e8eef5; color: var(--navy-2); margin-bottom: 10px; }
.tag-live { background: #dff5ea; color: #0e7a4f; }
.step { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--green-light); font-weight: 800; margin-bottom: 10px; }
.offer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; }
.offer ul { padding-left: 18px; flex: 1; }
.offer .btn { text-align: center; }
.offer-hl { border: 2px solid var(--green); }
.ribbon { position: absolute; top: -12px; left: 20px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2rem; font-weight: 800; margin: 0; color: var(--navy); }
.price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.foot { background: var(--navy); color: #c7d6e5; padding: 32px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.foot a { color: #fff; margin-right: 18px; }
.foot .muted { color: #8fa6bd; width: 100%; margin: 0; }

dialog { border: 0; border-radius: 16px; padding: 28px; max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(15,42,68,.6); }
dialog h2 { text-align: left; font-size: 1.4rem; }
dialog label:not(.check) { display: block; font-weight: 600; margin: 12px 0; }
dialog input[type=email], dialog input[type=text], dialog textarea { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.check { margin: 10px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 2rem; }
.legal h2 { text-align: left; font-size: 1.3rem; margin-top: 1.6em; }
.todo { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .scan-form, .inline-form { flex-direction: column; }
  .result-head { flex-direction: column; text-align: center; }
  .result-head h2 { text-align: center; }
}
.trust { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; color: #d7e3ef; font-size: .9rem; }
.trust li::before { content: "✓ "; color: var(--green-light); font-weight: 700; }
.lead-dark { font-size: 1.12rem; color: var(--muted); max-width: 820px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.ref { border-collapse: collapse; width: 100%; min-width: 900px; font-size: .92rem; }
table.ref th, table.ref td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.ref thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.ref tbody tr:nth-child(even) { background: var(--bg-soft); }
table.ref td.num { color: var(--muted); font-weight: 700; }
table.ref .tag { margin: 0 4px 4px 0; }
.tag-off { background: #eceff1; color: var(--muted); }
.cta-bottom { margin-top: 32px; }
.trust a { color: inherit; }
