[hidden] { display: none !important; }
:root {
  --bg: #f6f7f4; --surface: #ffffff; --sunk: #eef0eb; --line: #dfe3dc; --text: #17201a; --muted: #56615a;
  --accent: #1f6b4f; --accent-strong: #185a42; --accent-ink: #ffffff; --accent-soft: #e6f2ec;
  --err: #b3261e; --err-soft: #fbeceb; --warn: #8a5a00; --warn-soft: #fdf3e0;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 18, .06), 0 8px 24px rgba(16, 24, 18, .06);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1311; --surface: #171c19; --sunk: #1e2420; --line: #2c342f; --text: #e8ece9; --muted: #a2aca5;
    --accent: #5fbf95; --accent-strong: #7fd1ab; --accent-ink: #0d1712; --accent-soft: #1b3027;
    --err: #ff8a80; --err-soft: #3a1f1d; --warn: #f2c26b; --warn-soft: #35291a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* En-tête */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.hero-note { font-size: 14px; color: var(--muted); }

/* Maquette du rapport */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.mock-bar span:last-child { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 12px; }
.mock-body { padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.mock-sum { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ring { width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--err) 0 62%, var(--line) 0); display: grid; place-items: center; flex: none; }
.ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 14px; }
.mock-item { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.mock-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.mock-fix { margin-top: 6px; display: flex; gap: 8px; align-items: center; background: var(--sunk); border-radius: 7px; padding: 6px 8px; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-fix span { flex: 1; }
.mock-fix em { font-style: normal; font-family: system-ui, sans-serif; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--surface); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.tag.err { color: var(--err); background: var(--err-soft); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.tag.ok { color: var(--accent); background: var(--accent-soft); }

/* Grilles */
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.stat { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat.err { color: var(--err); }
.source { font-size: 13px; color: var(--muted); margin-top: 20px; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f6b4f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 14px; }

/* Tarifs */
.billing { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin: 20px 0 8px; }
.billing button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.billing small { color: var(--accent); font-weight: 800; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; margin-bottom: 2px; }
.plan .for { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.price b { font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.price-note { font-size: 13px; color: var(--muted); min-height: 2.6em; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 15px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%231f6b4f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: none; content: "–"; top: -1px; text-align: center; }
.promo { margin: 28px auto 0; max-width: 720px; background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 14px; padding: 16px 20px; text-align: center; }
.promo code { font-weight: 800; font-size: 1.05em; background: var(--surface); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* FAQ */
.faq { max-width: 780px; margin: 28px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Pages de texte (légal, merci) */
.page { padding: 40px 0 72px; }
.page .wrap { max-width: 800px; }
.prose h2 { font-size: 21px; margin-top: 2em; }
.prose h3 { font-size: 17px; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.updated { color: var(--muted); font-size: 14px; }
.todo { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 700; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.keybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.key { flex: 1 1 280px; font: 700 clamp(18px, 3.4vw, 24px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 14px 16px; border: 2px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--text); text-align: center; word-break: break-all; }
.status-box { padding: 12px 14px; border-radius: 10px; background: var(--sunk); }
.status-box.err { background: var(--err-soft); color: var(--err); }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .6em; }

/* Pied de page */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* Accueil 4devanduse */
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.product { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
a.product:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.product .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.product p { color: var(--muted); margin: 0; }
.product .go { margin-top: auto; font-weight: 700; color: var(--accent); }
.product.soon { border-style: dashed; background: transparent; }
.values { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.values div { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.values b { display: block; margin-bottom: 4px; }
.values span { color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.prose td, .prose th { overflow-wrap: anywhere; }
@media (max-width: 560px) { .prose table, .prose tbody, .prose tr { display: block; } .prose th, .prose td { display: block; padding: 2px 0; border: 0; } .prose tr { border-bottom: 1px solid var(--line); padding: 8px 0; } .prose thead, .prose tr:first-child:has(th[scope="col"]) { display: none; } }
