:root {
  --ink: #0d1b2a;
  --ink-2: #33455a;
  --muted: #5d6b7c;
  --line: #e2e7ee;
  --line-2: #cfd7e2;
  --bg: #f6f7f9;
  --card: #ffffff;
  --brand: #0c6b52;
  --brand-ink: #084c3a;
  --brand-soft: #e5f3ee;
  --accent: #f2b23a;
  --ok: #0f7a57;
  --ok-soft: #e3f4ec;
  --warn: #9a5b00;
  --warn-soft: #fdf1d8;
  --bad: #b3261e;
  --bad-soft: #fce8e6;
  --todo: #52606f;
  --todo-soft: #eceff3;
  --new: #5b3fd1;
  --new-soft: #eeeafc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px rgba(13, 27, 42, .06);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); font-family: var(--serif); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
mark { background: #fff1b8; color: inherit; padding: 0 .15em; border-radius: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section.tight { padding: 40px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }

/* En-tête */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.14rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 11px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.on { background: var(--bg); color: var(--ink); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { background: var(--brand-ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; font: inherit; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; margin: 0; padding: 6px 0 12px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .top .wrap { flex-wrap: wrap; }
}

.band { background: var(--ink); color: #fff; font-size: .92rem; padding: 9px 0; }
.band .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.band b { color: var(--accent); }
.band a { color: #fff; }

/* Boutons et formulaires */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.lg { padding: 14px 22px; font-size: 1.05rem; }
.btn.sm { padding: 7px 12px; font-size: .9rem; border-radius: 8px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg); color: var(--ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #2b1c00; }
.btn.gold:hover { background: #e3a328; color: #2b1c00; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.help { font-size: .86rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; line-height: 1.35;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(12, 107, 82, .28); outline-offset: 1px; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; margin-bottom: 8px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check span small { display: block; color: var(--muted); font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .35em; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }

.notice { border-radius: 12px; padding: 13px 16px; border: 1px solid var(--line); background: #fff; font-size: .95rem; }
.notice.ok { background: var(--ok-soft); border-color: #bfe3d2; color: #0b4f3a; }
.notice.warn { background: var(--warn-soft); border-color: #f1d79c; color: #6a3f00; }
.notice.bad { background: var(--bad-soft); border-color: #f3c4bf; color: #7d1a14; }
.notice.info { background: #eef3fb; border-color: #cfdcf2; color: #1c3760; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--todo-soft); color: var(--todo); white-space: nowrap; letter-spacing: .01em; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.new { background: var(--new-soft); color: var(--new); }
.tag.brand { background: var(--brand-soft); color: var(--brand-ink); }

/* Accueil */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dff1ea 0%, rgba(223, 241, 234, 0) 60%), #fff; border-bottom: 1px solid var(--line); padding: 56px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } .hero { padding: 36px 0 44px; } }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.scanform { display: flex; gap: 8px; margin-top: 22px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 7px; box-shadow: var(--shadow); max-width: 560px; }
.scanform input { border: 0; padding: 12px 12px; min-width: 0; flex: 1; background: transparent; }
.scanform input:focus { outline: none; }
.scanform:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12, 107, 82, .18); }
@media (max-width: 520px) { .scanform { flex-direction: column; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.ticks li { margin: 0; display: flex; gap: 6px; align-items: center; }
.ticks li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.6L12 5.6'/%3E%3C/svg%3E") center/11px no-repeat; flex: none; }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 4px rgba(13,27,42,.05), 0 24px 60px rgba(13,27,42,.12); padding: 18px; }
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .n { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.mock-row .t { flex: 1; min-width: 0; }

.ring { --p: 50; --c: var(--brand); width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex: none; }
.ring::before { content: ""; grid-area: 1/1; width: 66px; height: 66px; border-radius: 50%; background: #fff; }
.ring span { grid-area: 1/1; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.ring.big { width: 132px; height: 132px; }
.ring.big::before { width: 106px; height: 106px; }
.ring.big span { font-size: 2rem; }
.ring.sm { width: 56px; height: 56px; }
.ring.sm::before { width: 44px; height: 44px; }
.ring.sm span { font-size: .9rem; }

.changes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 900px) { .changes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .changes { grid-template-columns: 1fr; } }
.change { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.change .num { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--brand); line-height: 1; }
.change p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.change a { font-size: .9rem; font-weight: 600; margin-top: auto; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; position: relative; padding-top: 46px; }
.step::before { content: counter(s); position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; }
.step p { color: var(--ink-2); margin: 0; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.price.best { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.price.best::after { content: "Recommandé"; position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }
.price .amount { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; margin: 10px 0 4px; letter-spacing: -.02em; }
.price .amount small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.price li { padding-left: 24px; position: relative; margin-bottom: 9px; font-size: .95rem; }
.price li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230c6b52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.4l3.2 3.1L13 4.8'/%3E%3C/svg%3E") center/contain no-repeat; }

details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 16px; color: var(--ink-2); }

.cta-final { background: var(--ink); color: #fff; border-radius: 20px; padding: 40px 28px; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #c9d3df; }
.cta-final .scanform { margin: 22px auto 0; }

.foot { border-top: 1px solid var(--line); background: #fff; padding: 34px 0 44px; font-size: .9rem; color: var(--muted); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 6px; }
.foot a:hover { text-decoration: underline; }
.foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 10px; }

/* Scan */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
.scan-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.items { list-style: none; padding: 0; margin: 0; }
.item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.item.ok .ico { background: var(--ok-soft); color: var(--ok); }
.item.ko .ico { background: var(--bad-soft); color: var(--bad); }
.item .ttl { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.item .ext { font-size: .86rem; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.item .adv { font-size: .92rem; color: var(--ink-2); margin-top: 4px; }
.blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked { position: relative; }
.locked .lock-cta { position: absolute; left: 0; right: 0; bottom: 0; height: 520px; display: grid; place-items: center; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.96) 42%); border-radius: var(--radius); text-align: center; padding: 16px; }

/* Application */
.app { display: grid; grid-template-columns: 232px 1fr; gap: 26px; padding-top: 26px; padding-bottom: 60px; align-items: start; }
.app > * { min-width: 0; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; gap: 14px; } }
.side { position: sticky; top: 82px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
@media (max-width: 900px) { .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; } .side .sep, .side .plan { display: none; } }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap; }
.side a:hover { background: var(--bg); color: var(--ink); }
.side a.on { background: var(--brand-soft); color: var(--brand-ink); }
.side .sep { height: 1px; background: var(--line); margin: 8px 4px; }
.side .plan { padding: 10px 12px; font-size: .86rem; color: var(--muted); }
.page-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.kpi span { font-size: .86rem; color: var(--muted); }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn); } .kpi.ok b { color: var(--ok); }

.crit { margin-top: 22px; }
.crit > h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1rem; color: var(--ink-2); margin-bottom: 8px; }
.crit > h3 b { color: var(--ink); font-size: 1.05rem; }
.indrow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: inherit; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.indrow:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.indrow .n { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-weight: 750; }
.indrow.majeure .n { background: var(--bad-soft); color: var(--bad); }
.indrow.mineure .n { background: var(--warn-soft); color: var(--warn); }
.indrow.conforme .n { background: var(--ok-soft); color: var(--ok); }
.indrow .t b { display: block; font-weight: 620; }
.indrow .t small { color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.indrow.na { opacity: .55; }
@media (max-width: 560px) { .indrow { grid-template-columns: 36px 1fr; } .indrow .st { grid-column: 2; } }

.official { background: #fbfaf5; border: 1px solid #ebe5d2; border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-family: var(--serif); font-size: 1.04rem; }
.official cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; font-weight: 620; cursor: pointer; height: 100%; }
.choice span small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(12,107,82,.12); }
.choice input:focus-visible + span { outline: 3px solid rgba(12, 107, 82, .28); }
.choice.bad input:checked + span { border-color: var(--bad); background: var(--bad-soft); box-shadow: 0 0 0 3px rgba(179,38,30,.1); }
.choice.warn input:checked + span { border-color: #c98a16; background: var(--warn-soft); box-shadow: 0 0 0 3px rgba(201,138,22,.12); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); margin: 0; font-size: .95rem; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li::before { content: "•"; position: absolute; left: 6px; color: var(--brand); font-weight: 800; }
.verdict { border-radius: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.verdict.conforme { border-color: #bfe3d2; background: var(--ok-soft); }
.verdict.mineure { border-color: #f1d79c; background: var(--warn-soft); }
.verdict.majeure { border-color: #f3c4bf; background: var(--bad-soft); }
.verdict h4 { margin-bottom: 6px; font-size: 1rem; }
.verdict ul { margin: 6px 0 10px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }

.doclist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 820px) { .doclist { grid-template-columns: 1fr; } }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc p { margin: 0; color: var(--ink-2); font-size: .93rem; flex: 1; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 46px 52px; font-family: var(--serif); font-size: 1rem; line-height: 1.55; color: #111; overflow-wrap: anywhere; }
@media (max-width: 640px) { .paper { padding: 22px 18px; } }
.paper h1 { font-size: 1.55rem; margin: 0 0 .4em; }
.paper h2 { font-size: 1.2rem; margin: 1.5em 0 .5em; padding-bottom: 4px; border-bottom: 1px solid #ddd; }
.paper h3 { font-size: 1.04rem; margin: 1.2em 0 .4em; font-family: var(--serif); }
.paper table { width: 100%; border-collapse: collapse; margin: .8em 0 1.2em; font-size: .92rem; font-family: var(--sans); }
.paper th, .paper td { border: 1px solid #bbb; padding: 6px 8px; vertical-align: top; text-align: left; }
.paper th { background: #f1f1f1; }
.paper[contenteditable]:focus { outline: 3px solid rgba(12,107,82,.2); }

table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose blockquote { margin: 1em 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Impression (rapport et documents) */
@media print {
  .top, .band, .foot, .side, .noprint, .pager { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .app { display: block; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .card, .paper, .kpi, .indrow { box-shadow: none; }
  .paper { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  .card, .indrow, tr { break-inside: avoid; }
}

@media (max-width: 640px) {
  table.data, .paper table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .section { padding: 44px 0; }
  .cta-final { padding: 28px 18px; }
  .price .amount { font-size: 2rem; }
}

/* Champ piège du formulaire de contact et bouton présenté comme un lien */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* Relevé chiffré de la page d'accueil */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; letter-spacing: -.02em; color: var(--bad); margin-bottom: 8px; }
.stat span { font-size: .95rem; color: var(--ink-2); }
.doc h3 a, .change h3 a { color: inherit; text-decoration: none; }
.doc h3 a:hover { color: var(--brand); text-decoration: underline; }

/* Blocs repliables du profil */
details.fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details.fold[open] > summary::after { content: "–"; }
details.fold > summary h3 { margin: 0; }

/* Mention « facultatif » dans un libellé */
.opt { font-weight: 400; color: var(--muted); font-size: .84rem; margin-left: 4px; }

/* Première saisie du profil : une seule colonne, étapes en tête */
.app.solo { grid-template-columns: 1fr; max-width: 860px; }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0 0 16px; font-size: .9rem; color: var(--muted); counter-reset: st; }
.stepper li { counter-increment: st; display: flex; align-items: center; gap: 7px; margin: 0; }
.stepper li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--todo-soft); color: var(--todo); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.stepper li + li { padding-left: 10px; border-left: 1px solid var(--line-2); }
.stepper li.done { color: var(--ok); }
.stepper li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.stepper li.on { color: var(--ink); font-weight: 650; }
.stepper li.on::before { background: var(--brand); color: #fff; }

/* Tableau de bord : fil conducteur */
.etapes { list-style: none; padding: 0; margin: 10px 0 0; }
.etapes li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); margin: 0; }
.etapes li:first-child { border-top: 0; }
.etapes .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .9rem; }
.etapes li.done .num { background: var(--ok-soft); color: var(--ok); }
.etapes .t b { display: block; font-weight: 640; }
.etapes .t small { display: block; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .etapes li { grid-template-columns: 34px 1fr; } .etapes li > .btn { grid-column: 2; justify-self: start; } }

/* Audit blanc : position dans la série, aide repliée, constats du site */
.progress.thin { height: 5px; }
details.hint { margin: 2px 0 8px; font-size: .93rem; }
details.hint summary { cursor: pointer; color: var(--brand); font-weight: 600; }
details.hint > div { margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.sitebox { border-color: #cfdcf2; background: #f6f9fe; }
.item.part .ico { background: var(--warn-soft); color: var(--warn); }
#audit-form, .item[id] { scroll-margin-top: 84px; }
.choices.need .choice span { border-color: #c98a16; }

/* Rapport d'analyse : ce qu'il reste à faire, dès l'en-tête */
.afaire { margin-top: 14px; display: grid; gap: 8px; }
.afaire .row { gap: 6px 8px; }
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }

/* Documents : mode d'emploi, barre d'actions, zones à compléter */
.howto { margin: 6px 0 0; padding-left: 1.3em; }
.howto li { margin-bottom: 4px; }
.docbar { position: sticky; top: 62px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.todo-count { font-weight: 650; font-size: .92rem; background: #fff1b8; color: #5c4300; border-radius: 999px; padding: 4px 11px; }
.todo-count.done { background: var(--ok-soft); color: var(--ok); }
.paper mark.todo { background: #fff1b8; border-radius: 3px; padding: 0 .1em; cursor: text; box-shadow: inset 0 -1px 0 #e0b93a; }
.paper mark.todo.cur { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 900px) { .docbar { top: 0; position: static; } }
@media print { .paper mark.todo { background: none; box-shadow: none; padding: 0; } }
/* Tableaux des documents : un mot n'est jamais coupé en deux dans une cellule étroite (le tableau défile sur téléphone) */
.paper table { overflow-wrap: break-word; }
.price .btn.block { padding-left: 10px; padding-right: 10px; }

/* Texte officiel long : trois lignes, le reste à la demande */
.official .txt { display: block; }
.official.clamped .txt { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.official .linklike { font-family: var(--sans); display: inline-block; margin-top: 6px; }
.items.compact .item { padding: 7px 0; align-items: center; }
.items.compact .ico { margin-top: 0; }

/* Quatrième réponse de l'audit blanc : « je ne sais pas » */
.choices { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .choices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.choice.ask input:checked + span { border-color: #7a93c4; background: #eef3fb; box-shadow: 0 0 0 3px rgba(28, 55, 96, .1); }
.tag.ask { background: #eef3fb; color: #1c3760; }
.kpi.ask b { color: #1c3760; }
.indrow.averifier .n { background: #eef3fb; color: #1c3760; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* Barre de réponse de l'audit blanc, fixe en bas d'écran pendant la lecture */
.answerbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line-2); box-shadow: 0 -6px 20px rgba(13, 27, 42, .08); padding: 10px 0; }
.answerbar[hidden] { display: none; }
.answerbar .wrap { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.answerbar .lbl { font-weight: 650; font-size: .95rem; }
.quick { display: flex; gap: 6px; flex: 1; min-width: 0; }
.quick button { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 9px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.quick button:hover { background: var(--bg); }
.quick button.on { border-color: var(--brand); background: var(--brand-soft); }
.quick button.warn.on { border-color: #c98a16; background: var(--warn-soft); }
.quick button.bad.on { border-color: var(--bad); background: var(--bad-soft); }
.quick button.ask.on { border-color: #7a93c4; background: #eef3fb; }
.quick .sm { display: none; }
body.has-answerbar .foot { padding-bottom: 120px; }
@media (max-width: 760px) {
  .answerbar a.small { display: none; }
  .answerbar .lbl { order: 1; flex: 1; font-size: .88rem; }
  #quick-state { order: 2; }
  #quick-next { order: 3; }
  .quick { order: 4; flex: 1 1 100%; }
  .quick button { flex: 1; padding: 9px 4px; font-size: .84rem; }
  .quick .lg { display: none; }
  .quick .sm { display: inline; }
}

/* Documents : fenêtre de saisie d'une zone à compléter */
.docwrap { position: relative; }
.zonepop { position: absolute; z-index: 15; width: min(380px, 100%); background: #fff; border: 1.5px solid var(--brand); border-radius: 12px; box-shadow: 0 10px 30px rgba(13, 27, 42, .18); padding: 12px 14px; font-family: var(--sans); }
.zonepop[hidden] { display: none; }
.zonepop input[type=text] { margin-bottom: 8px; }
.zone-twins { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: .9rem; margin-bottom: 8px; cursor: pointer; }
.zone-twins input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

/* En-tête du rapport d'audit blanc : le score reste à droite du nom sur grand écran, passe dessous sur téléphone */
.rap-head { flex-wrap: nowrap; align-items: flex-start; }
@media (max-width: 640px) { .rap-head { flex-wrap: wrap; } .rap-head > div:first-child { flex-basis: 100%; } }
