:root {
  --bg: #f6f7f3; --surface: #ffffff; --text: #18211c; --muted: #5b6760; --line: #dfe4de;
  --accent: #0f7a4f; --accent-ink: #ffffff; --accent-soft: #e2f2ea; --sun: #f2b632; --sun-soft: #fff4d6;
  --warn: #9a4b00; --dot: #8a958f; --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1512; --surface: #17201b; --text: #e7ede9; --muted: #9caba2; --line: #26322c;
          --accent: #43c48b; --accent-ink: #06130c; --accent-soft: #163126; --sun: #f5c451; --sun-soft: #3a2f12;
          --warn: #f2a65a; --dot: #6d7a73; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
main { overflow-x: clip; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--text); letter-spacing: -.01em; }
.brand img { border-radius: 7px; margin-right: 8px; }
.brand span { color: var(--accent); }
.top .btn { padding: 8px 14px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 480px) { .hide-sm { display: none; } }

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 18px; }
.hero-home { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; position: relative; }
.hero-home::before { content: ""; position: absolute; inset: -40px -200px auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: -1; pointer-events: none; }
.hero-visual { position: relative; margin: 6px 0 0; }
.hero-visual .photo { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px -28px rgba(0,0,0,.45); }
.hero-badge { position: absolute; left: 12px; bottom: -18px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .85rem; color: var(--muted);
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.4); }
.hero-badge strong { display: block; color: var(--text); font-size: 1rem; }
.hero-art { width: 64px; height: 52px; flex: none; }
@media (min-width: 820px) { .hero-home { grid-template-columns: 1.35fr 1fr; gap: 32px; } .hero-visual .photo { height: 360px; } .hero-badge { left: -24px; bottom: 28px; } }
.hero-art .blades { transform-origin: 268px 203px; animation: spin 2.4s linear infinite; }
.hero-art .coin { animation: float 3.2s ease-in-out infinite; }
.hero-art .c2 { animation-delay: -1.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.stats { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: .9rem; }
.stats strong { display: block; color: var(--text); font-size: 1.5rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .stats { display: none; }  /* sur téléphone, le calculateur passe avant les chiffres */
  .hero .lead { font-size: 1.02rem; margin-bottom: 12px; }
  .pills { gap: 6px; } .pills li { font-size: .8rem; padding: 3px 10px; }
}
.cards3 div { border-top: 4px solid var(--accent) !important; }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-art .blades, .hero-art .coin { animation: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.pills li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .9rem; }

.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 22px 0 30px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); scroll-margin-top: 70px; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--sun)); transition: width .35s ease; }
.step-n { font-size: .85rem; color: var(--muted); margin: 0; }
.q { font-size: 1.45rem; margin: 6px 0 12px; line-height: 1.25; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { text-align: left; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
.field { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field input { flex: 1 1 220px; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--text); }
.field input:focus { border-color: var(--accent); outline: none; }
.unit { color: var(--muted); }
.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.link { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 10px 0; text-decoration: underline; display: block; }
.back { color: var(--muted); }
.err { color: var(--warn); min-height: 1.2em; }
.muted { color: var(--muted); }

.reveal { position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ask-box { border: 1px dashed var(--accent); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--surface); }
.ask-box .ask-title { margin-top: 0; } .ask-box .ask-title .ic { color: var(--accent); }
.ask-box blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; font-size: .93rem; color: var(--muted); }
.ask-box .btn { margin: 4px 6px 4px 0; }
.rank { text-align: center; background: var(--sun-soft); border-radius: 99px; padding: 8px 16px; margin: -4px auto 14px; max-width: 640px; font-size: .95rem; }
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; text-align: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35);
  transform: translateY(140%); transition: transform .3s ease; }
.sticky-cta.on { transform: none; }
@media (min-width: 821px) { .sticky-cta { display: none; } }
@media print {
  .top, .foot, .share, .sticky-cta, #map, .legend, .ranking, .faq, .guides, .stats, .hero-art, .confetti { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; } .calc { box-shadow: none; border: 0; padding: 0; }
  .fade-in { opacity: 1 !important; transform: none !important; } a { color: #000; }
}
.reveal { text-align: center; padding: 18px 10px 22px; margin: 6px 0 14px; border-radius: var(--radius); background: radial-gradient(120% 100% at 50% 0%, var(--sun-soft), transparent 70%); }
.reveal .lbl { display: block; color: var(--muted); }
.reveal strong { display: block; font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.breakdown { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 10px; margin: 12px 0; }
.breakdown h3 { font-size: 1rem; margin: 12px 0 6px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.row span:last-child { white-space: nowrap; font-weight: 600; }
.row.total { border-bottom: 0; font-weight: 800; font-size: 1.1rem; }
.note { font-size: .92rem; color: var(--muted); }
.badge-box { border-radius: 12px; padding: 12px 14px; margin: 14px 0; background: var(--bg); border: 1px solid var(--line); }
.badge-box.good { background: var(--accent-soft); border-color: transparent; }
.warn-list { padding-left: 20px; } .warn-list li { margin: 6px 0; }
.timeline { counter-reset: s; list-style: none; padding: 0; margin: 8px 0 14px; }
.timeline li { counter-increment: s; position: relative; padding: 6px 0 12px 42px; border-left: 2px solid var(--line); margin-left: 14px; }
.timeline li::before { content: counter(s); position: absolute; left: -15px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.timeline li:last-child { border-left-color: transparent; }
.share { background: var(--bg); border-radius: 12px; padding: 14px; margin: 16px 0; }
.share .btn { margin: 4px 6px 4px 0; }
.disclaimer { font-size: .82rem; color: var(--muted); }

section h2 { font-size: 1.5rem; letter-spacing: -.01em; }
.map { height: 440px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.ranking { list-style: none; padding: 0; display: grid; gap: 8px; }
.ranking a { display: flex; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); }
.ranking a:hover { border-color: var(--accent); }
.ranking b { color: var(--accent); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cards3 div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cards3 strong { display: block; font-size: 1.6rem; color: var(--accent); }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: h; }
.how li { counter-increment: h; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; color: var(--muted); font-size: .95rem; }
.how li::after { content: counter(h); position: absolute; top: 12px; right: 14px; font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--accent-soft); }
.how span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.how span .ic { width: 22px; height: 22px; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex: none; }
.pills .ic, .badge-box > .ic, h2 .ic, h3 .ic, .rank .ic { color: var(--accent); }
.badge-box.warn h2 .ic, h3 .w .ic { color: var(--warn); }
.choice { display: flex; align-items: center; gap: 12px; }
.choice .ic { width: 22px; height: 22px; color: var(--accent); }
.btn .ic { vertical-align: -.2em; }
.how strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.guides a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.guides a:hover { border-color: var(--accent); transform: translateY(-2px); }
.guides strong { display: block; color: var(--accent); margin-bottom: 6px; line-height: 1.3; }
.guides a { padding: 0 0 16px; overflow: hidden; } .guides strong, .guides span { padding: 0 16px; display: block; }
.guides .thumb { display: block; width: 100%; height: 140px; object-fit: cover; margin-bottom: 14px; transition: transform .4s ease; }
.guides a:hover .thumb { transform: scale(1.04); }
.cover { display: block; width: 100%; height: clamp(180px, 34vw, 320px); object-fit: cover; border-radius: 16px; margin: 6px 0 22px; }
.banner { display: block; width: 100%; height: clamp(140px, 24vw, 240px); object-fit: cover; border-radius: 16px; margin: 10px 0 18px; }
.guides span { font-size: .9rem; color: var(--muted); }
.guide { max-width: 720px; }
.guide h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; }
.allc { columns: 3 180px; font-size: .92rem; padding-left: 18px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; font-size: .88rem; color: var(--muted); }
