:root {
  --bg: oklch(0.28 0.02 70);
  --bg2: oklch(0.32 0.022 70);
  --surface: oklch(0.955 0.008 250);
  --hero-bg: oklch(0.985 0.006 92);
  --card: oklch(0.995 0.004 92);
  --ink: oklch(0.22 0.02 250);
  --muted: oklch(0.48 0.02 250);
  --line: oklch(0.88 0.012 250);
  --brand: oklch(0.42 0.11 155);
  --brand-d: oklch(0.36 0.10 155);
  --brand-fg: oklch(0.99 0.005 92);
  --accent: oklch(0.58 0.14 45);
  --accent-text: oklch(0.44 0.13 45);
  --danger: oklch(0.55 0.18 25);
  --radius: 14px;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  /* couleurs étiquettes DPE officielles */
  --A: #319834; --B: #33cc31; --C: #cbfc34; --D: #fbfe06; --E: #fbcc05; --F: #fc9935; --G: #fc0205;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--surface); line-height: 1.55; }
h1, h2, h3, .lp-section-title, .lp-hero h1, .article h1, .article h2 { font-family: var(--font-display); font-weight: 700; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--brand); color: var(--brand-fg);
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.site-header { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { font-weight: 800; letter-spacing: -.5px; font-size: 20px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); }
.brand-icon { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; }
.site-header nav a, .site-nav a { color: var(--muted); cursor: pointer; text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .site-nav a:hover { color: var(--ink); }
.site-nav a + a { margin-left: 16px; }
.site-nav .nav-cta, .site-header .nav-cta { background: var(--brand); color: var(--brand-fg) !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.site-nav .nav-cta:hover, .site-header .nav-cta:hover { background: var(--brand-d); color: var(--brand-fg) !important; }
.nav-btn, #nav .nav-cta { background: var(--brand); color: var(--brand-fg) !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
#nav { font-size: 14px; display: flex; align-items: center; gap: 14px; }
.nav-link { color: var(--muted); cursor: pointer; text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-btn:hover, #nav .nav-cta:hover { background: var(--brand-d); }
.nav-badge { background: var(--accent); color: oklch(0.25 0.04 75); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .btn:focus-visible, .find-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Modal connexion */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,27,42,.55); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 380px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h3 { margin: 0 0 16px; }
.modal .modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal input { margin-bottom: 10px; }
.modal .btn { width: 100%; margin-top: 4px; }
.modal .acct-alt { display: inline-block; margin-top: 12px; }

.hero { padding: 44px 0; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -1px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.lead { color: var(--muted); font-size: 17px; max-width: 660px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 24px rgba(13,27,42,.06); }
.form-card { margin-top: 24px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: #f7fafc; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.hint-inline { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.form-engine-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(165deg, #f0f9f4 0%, #e8f5ee 100%);
  border: 1px solid #c8e6d6;
}

/* Mode Expert — import XML (secours si API indisponible) */
.expert-mode {
  margin: 16px 0 0;
  border: 1px solid #d4e8de;
  border-radius: 14px;
  background: linear-gradient(165deg, #f6fbf8 0%, #f0f7f4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.expert-mode summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-d);
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.expert-mode summary::-webkit-details-marker { display: none; }
.expert-mode summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand-d);
  border-bottom: 2px solid var(--brand-d);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.expert-mode[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.expert-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(27,156,107,.14);
  color: var(--brand-d);
  border: 1px solid rgba(27,156,107,.25);
}
.expert-body { padding: 0 16px 16px; }
.expert-lead { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.expert-lead a { color: var(--brand-d); font-weight: 700; }

.xml-dropzone {
  position: relative;
  border: 2px dashed #b8d9cb;
  border-radius: 14px;
  background: #fff;
  padding: 22px 18px;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.xml-dropzone:hover,
.xml-dropzone:focus-visible {
  border-color: var(--brand);
  background: #fafffd;
  box-shadow: 0 8px 28px rgba(27,156,107,.1);
  outline: none;
}
.xml-dropzone.is-dragover {
  border-color: var(--brand);
  background: #edf9f3;
  box-shadow: 0 0 0 4px rgba(27,156,107,.12);
  transform: scale(1.01);
}
.xml-dropzone.has-file {
  border-style: solid;
  border-color: #b8e6d2;
  background: #f3fbf7;
  padding: 16px;
}
.xml-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.xml-dropzone.has-file .xml-dropzone-input { pointer-events: none; }
.xml-dropzone-icon { color: var(--brand); margin: 0 auto 10px; display: flex; justify-content: center; }
.xml-dropzone-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.xml-dropzone-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.xml-dropzone-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(27,156,107,.28);
  pointer-events: none;
}
.xml-dropzone-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

.xml-dropzone-filled { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xml-file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.xml-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(27,156,107,.12);
  color: var(--brand-d);
  flex-shrink: 0;
}
.xml-file-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xml-file-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xml-file-size { font-size: 12px; color: var(--muted); }
.xml-dropzone-remove {
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.xml-dropzone-remove:hover { color: var(--danger); border-color: #f3b4ae; background: #fff5f4; }

.engine-row { margin-top: 8px; }
.engine-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.engine-open3cl { background: #e9f8f1; color: var(--brand-d); border: 1px solid #b8e6d2; }
.engine-delta { background: #eef3f8; color: oklch(0.38 0.04 250); border: 1px solid #cdd8e3; }
.engine-fallback { background: #fff6e8; color: oklch(0.42 0.12 55); border: 1px solid #f3d49a; }
.engine-inline { font-size: 12px; font-weight: 600; color: var(--brand-d); }
.callout.warn { border-color: rgba(220, 160, 60, .45); background: rgba(220, 160, 60, .08); }
.error { color: var(--danger); font-weight: 600; min-height: 20px; }

.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--brand); color: var(--brand-fg); margin-top: 14px; }
.btn.primary:hover { background: var(--brand-d); }
.btn.accent { background: oklch(0.42 0.13 45); color: #fff; }
.btn.accent:hover { background: oklch(0.36 0.12 45); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Résultat */
#result { padding: 10px 0 50px; }
.res-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.badge-class { width: 92px; height: 92px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: #1a1a1a; }
.axes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.axis { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.axis .k { font-size: 13px; color: var(--muted); }
.axis .v { font-size: 24px; font-weight: 800; }
.axis .pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #1a1a1a; }
.axis.limiting { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(214,69,63,.12) inset; }
.axis.limiting .tag { color: var(--danger); font-weight: 700; font-size: 12px; }

.callout { background: #fff6e8; border: 1px solid #f3d49a; border-radius: 12px; padding: 16px; margin: 16px 0; }
.callout.good { background: #e9f8f1; border-color: #b8e6d2; }

h2.section { font-size: 20px; margin: 30px 0 10px; }
.dep-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; }
.dep-bar .lab { width: 200px; color: var(--muted); }
.dep-bar .track { flex: 1; background: #eef2f6; border-radius: 6px; overflow: hidden; height: 16px; }
.dep-bar .fill { height: 100%; background: var(--brand); }

.reco { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 10px 0; background: #fff; }
.reco h3 { margin: 0 0 6px; font-size: 16px; }
.reco .meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.reco .meta b { color: var(--ink); }
.tag-fam { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.fam-papier { background: #e9f8f1; color: var(--brand-d); }
.fam-equipement { background: #eef3ff; color: #2d5bd6; }
.fam-travaux { background: #fff1e6; color: #c2651a; }
.tag-unblock { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-notdpe { background: #2a1c00; color: var(--accent); font-size: 11px; padding: 2px 8px; border-radius: 999px; }

.paywall { background: linear-gradient(165deg, #f0f9f4 0%, #e8f5ee 100%); color: var(--ink); border: 1px solid #c8e6d6; border-radius: var(--radius); padding: 26px; margin-top: 20px; text-align: center; }
.paywall h3 { margin: 0 0 8px; font-size: 22px; color: var(--ink); }
.paywall ul { text-align: left; max-width: 460px; margin: 14px auto; padding-left: 20px; color: var(--muted); }
.locked-list { color: var(--muted); font-size: 14px; max-width: 460px; margin: 8px auto; }

/* Alerte réforme (DPE périmé) */
.reform-alert { background: oklch(0.96 0.03 25); border: 1px solid oklch(0.85 0.06 25); border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; }
.reform-h { font-weight: 800; color: var(--danger); font-size: 16px; margin-bottom: 6px; }
.reform-alert p { margin: 6px 0; }
.reform-action { background: #fff; border-radius: 8px; padding: 8px 10px; }

/* Lien "où trouver mon DPE" */
.find-link { color: var(--brand-d); font-weight: 700; cursor: pointer; text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; font-family: inherit; }
.find-link:hover { text-decoration: underline; }
.modal code { background: #eef3f8; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* Panneau d'analyse "scan" */
.scan { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; max-width: 580px; margin: 34px auto; box-shadow: 0 8px 28px oklch(0.22 0.02 250 / 0.08); position: relative; }
.scan-top { font-weight: 800; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); }
.scan-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(27,156,107,.6); animation: pulse 1.4s infinite; flex: 0 0 auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(27,156,107,.55); } 70% { box-shadow: 0 0 0 12px rgba(27,156,107,0); } 100% { box-shadow: 0 0 0 0 rgba(27,156,107,0); } }
.scan-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 16px; line-height: 1.5; }
.scan-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.scan-bar-fill { height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), oklch(0.65 0.12 155)); transition: transform .35s ease-out; }
.scan-steps { list-style: none; margin: 0; padding: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; }
.scan-steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); opacity: .65; transition: opacity .3s, color .3s; }
.scan-steps li .scan-ic::before { content: "○"; }
.scan-steps li.active { opacity: 1; color: var(--ink); }
.scan-steps li.active .scan-ic::before { content: "▸"; color: var(--accent); }
.scan-steps li.done { opacity: 1; color: var(--brand-d); }
.scan-steps li.done .scan-ic::before { content: "✓"; color: var(--brand); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 50px; top: -50px; background: linear-gradient(180deg, transparent, oklch(0.42 0.11 155 / 0.08), transparent); animation: scanline 2.6s linear infinite; pointer-events: none; }
@keyframes scanline { to { transform: translateY(760px); } }

/* Analyse animée */
.analyzing { text-align: center; padding: 40px 0; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ana-steps { list-style: none; padding: 0; max-width: 380px; margin: 16px auto 0; text-align: left; }
.ana-steps li { color: var(--muted); padding: 6px 0 6px 28px; position: relative; opacity: .5; transition: opacity .3s; }
.ana-steps li::before { content: "○"; position: absolute; left: 4px; }
.ana-steps li.done { opacity: 1; color: var(--ink); }
.ana-steps li.done::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* Paywall screen (pay-first) */
.paywall-screen { padding: 8px 0 40px; }
.pw-found { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.pw-found h2 { margin: 0; }
.pw-found p { margin: 4px 0 0; color: var(--muted); }
.back { margin-top: 18px; }
.back a { color: var(--muted); text-decoration: none; }

/* Bandeau compte / facture */
.acct { background: #eef3ff; border: 1px solid #cfe; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.acct.good { background: #e9f8f1; border-color: #b8e6d2; }
.acct-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.acct-form input { width: auto; flex: 1; min-width: 180px; }
.acct-alt { color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; }
.share-analyze { background: #f3fbf7; border-color: #b8e6d2; }
.share-analyze-lead { margin: 6px 0 14px; color: var(--muted); font-size: 14px; font-weight: 400; }
.share-analyze-form .situation { margin-bottom: 12px; padding-bottom: 12px; }
.share-analyze-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-analyze-row input { flex: 1; min-width: 200px; }
.share-analyze-row .btn { flex-shrink: 0; }
.btn.sm { padding: 8px 14px; font-size: 14px; margin: 0; }
.btn.ghost.sm { color: var(--muted); border-color: var(--line); background: transparent; }
.btn.ghost.sm:hover { color: var(--ink); border-color: var(--muted); background: var(--surface); }
.invoice { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; font-size: 14px; }
.invoice > div { margin: 2px 0; }

/* Situation (optionnel, après n° DPE) */
.situation-details {
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: oklch(0.98 0.006 88);
}
.situation-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  padding: 12px 14px;
  list-style: none;
}
.situation-details summary::-webkit-details-marker { display: none; }
.situation-optional { font-weight: 500; color: var(--muted); font-size: 13px; }
.situation-details .situation { margin: 0; padding: 0 14px 14px; border-bottom: 0; }
.situation { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.sit-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sit-row select { width: auto; flex: 1; min-width: 220px; }
.chk { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; color: var(--ink); }
.chk input { width: auto; }
.ctx-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; min-height: 2.8em; }

/* Exceptions (Volet 1) */
.exc { margin-top: 10px; }
.exc summary { cursor: pointer; font-weight: 700; color: var(--brand-d); }
.exc-item { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: oklch(0.98 0.005 250); border: 1px solid var(--line); }
.exc-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.disc { font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* Scénario (Volet 3) */
.step { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0; background: var(--card); box-shadow: inset 0 3px 0 var(--brand); }
.step.cross { background: oklch(0.99 0.02 85); box-shadow: inset 0 3px 0 var(--accent); }
.step-h { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-n { background: var(--ink); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.cross-badge { background: oklch(0.42 0.13 45); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.step-meta { font-size: 13px; color: var(--muted); margin: 6px 0; }
/* Simulateur interactif (Volet 3) */
.sim-live { position: sticky; top: 8px; z-index: 5; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: 0 6px 20px oklch(0.22 0.02 250 / 0.06); }
.live-pair { display: flex; align-items: center; gap: 12px; }
.live-from, .live-to { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.live-arrow { font-size: 24px; color: var(--muted); }
.badge-class.sm { width: 46px; height: 46px; border-radius: 10px; font-size: 26px; }
.live-info { font-size: 14px; line-height: 1.5; color: var(--ink); }
.live-info b { color: var(--ink); }

.sim-measures { display: flex; flex-direction: column; gap: 8px; }
.sim-m { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.sim-m:hover { border-color: #cdd8e3; }
.sim-m.on { border-color: var(--brand); background: #f3fbf7; }
.sim-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sim-m input { width: 20px; height: 20px; flex: 0 0 auto; cursor: pointer; accent-color: var(--brand); }
.sim-title { flex: 1; }
.sim-current { font-size: 13.5px; background: #eef3f8; border-radius: 8px; padding: 7px 10px; margin: 6px 0; }
.sim-pct { background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; min-width: 44px; text-align: center; }
.sim-m:not(.on) .sim-pct { background: var(--muted); }
.sim-meta { font-size: 13px; color: var(--muted); margin: 4px 0; }
.sizing { font-size: 13px; background: #fff6e8; border: 1px solid #f3d49a; border-radius: 8px; padding: 6px 9px; margin: 6px 0; color: #7a5a1a; }

.mat { background: #f4f8fb; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.mat-sim { margin-top: 8px; padding: 10px 12px; background: #f0faf5; border-radius: 8px; border: 1px solid #c8e6d4; }
.mat-alt-block { margin-top: 10px; opacity: 0.92; }
.mat-alt-block > b { color: var(--muted); font-size: 13px; }
.mat-sim-tag { font-size: 11px; background: #d4edda; color: #1a6b3c; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.sim-sim-note { font-size: 12px; color: var(--muted); font-style: italic; margin: 6px 0 4px; line-height: 1.4; }
.mat-spec { color: var(--muted); }
.mat-note { font-size: 13px; color: var(--muted); margin-top: 4px; font-style: italic; }
.mat-list { list-style: none; padding: 0; margin: 8px 0 0; }
.mat-list li { padding: 10px 0; border-top: 1px solid #e2e9f0; }
.mat-list li:first-child { border-top: 0; }
.mat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.mat-name { font-weight: 600; flex: 1; }
.mat-top .mat-best, .mat-top .mat-budget, .mat-top .mat-alt, .mat-top .err-el { flex: 0 0 auto; }
.mat-top .mat-best, .mat-top .mat-budget, .mat-top .mat-alt { margin-left: 0; white-space: nowrap; flex: 0 0 auto; }
.err-el { background: #fdecea; color: var(--danger); font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }

/* Checklist "à faire vérifier" (section 2) */
h3.sub { font-size: 16px; margin: 22px 0 10px; }
.check-item { padding: 10px 12px; margin: 8px 0; border-radius: 8px; background: oklch(0.98 0.005 250); border: 1px solid var(--line); }
.check-item b { color: var(--ink); }

/* Bloc fiabilité & recours */
.reli { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 26px 0 8px; }
.reli summary { cursor: pointer; font-weight: 800; padding: 14px 0; font-size: 16px; color: var(--ink); }
.reli ul, .reli ol { padding-left: 20px; }
.reli li { margin: 6px 0; }
.mat-best { font-size: 11px; background: #e9f8f1; color: var(--brand-d); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.mat-budget { font-size: 11px; background: #fff1e6; color: #c2651a; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.mat-alt { font-size: 11px; background: #eef3ff; color: #2d5bd6; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.mat-link { display: inline-block; margin-top: 4px; color: var(--brand-d); font-weight: 700; text-decoration: none; }
.mat-link:hover { text-decoration: underline; }

/* Back-office admin */
.admin-scroll { overflow-x: auto; }
.admin-tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-tbl th { text-align: left; background: #f3f6fa; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; }
.admin-tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-tbl tr:hover td { background: #f9fbfd; }
.rep-link { color: var(--brand-d); font-weight: 700; cursor: pointer; text-decoration: none; }
.rep-link:hover { text-decoration: underline; }

/* Page article SEO */
.article { max-width: 760px; margin: 0 auto; padding: 30px 0 20px; }
.article h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.5px; margin: 0 0 12px; }
.article h2 { font-size: 23px; margin: 34px 0 10px; }
.article h3 { font-size: 18px; margin: 22px 0 6px; }
.article p, .article li { font-size: 16.5px; line-height: 1.65; color: #2b3947; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 8px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.article th, .article td { border: 1px solid #d8e2ec; padding: 10px 12px; text-align: left; vertical-align: top; }
.article th { background: #f4f8fb; font-weight: 700; }
.article a { color: var(--brand-d); }
.guides-list li { margin: 18px 0; }
.guides-list-desc { color: var(--muted); font-size: 15px; }
.cta-band { background: linear-gradient(165deg, #f0f9f4 0%, #e8f5ee 100%); color: var(--ink); border: 1px solid #c8e6d6; border-radius: var(--radius); padding: 28px; margin: 34px 0; text-align: center; }
.cta-band h3 { margin: 0 0 8px; font-size: 22px; color: var(--ink); }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 16px; }

.site-footer { background: var(--surface); color: var(--muted); font-size: 13px; margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { padding: 22px 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: 720px; line-height: 1.6; }
.footer-links a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer > .wrap > p:not(.footer-links) { max-width: 65ch; line-height: 1.6; margin-top: 12px; }
@media (max-width: 640px) { .grid2, .axes { grid-template-columns: 1fr; } .hero h1 { font-size: 27px; } .btn.sm, .btn.ghost.sm { min-height: 44px; padding: 10px 16px; } }

@media (prefers-reduced-motion: reduce) {
  .scan-dot, .spinner, .scan::after, .lp-to { animation: none !important; }
  .scan::after { display: none; }
  .expert-mode summary::after { transition: none; }
  .scan-bar-fill, .scan-steps li, .ana-steps li, .sim-m, .share-btn { transition: none; }
}

/* =========================================================================
   Landing page marketing
   ========================================================================= */
.lp-hero {
  background: var(--hero-bg);
  color: var(--ink);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}
.lp-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent-text);
  margin: 0 0 14px;
}
.lp-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  font-weight: 800;
}
.lp-hero h1 strong { color: var(--brand-d); }
.lp-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 65ch;
}
.lp-trust { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.lp-hero-form { margin: 0 0 12px; max-width: 520px; }
.lp-hero-form label { color: var(--ink); font-size: 14px; }
.lp-hero-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.lp-hero-form-row input { flex: 1; min-width: 200px; margin: 0; }
.lp-hero-form-row .btn { margin-top: 0; flex-shrink: 0; }
.lp-hero-form-hint { margin-top: 8px; }
.lp-hero-cta-secondary { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-hero-visual { position: sticky; top: 16px; }
.lp-sim-demo {
  padding: 16px;
  max-width: 420px;
  margin: 0 auto;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px oklch(0.22 0.02 250 / 0.06);
}
.lp-sim-demo-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin: 0 0 10px; text-align: center; }

/* Sections communes */
.lp-section { padding: 56px 0; }
.lp-section-title { font-size: 28px; letter-spacing: -.6px; margin: 0 0 10px; text-align: center; }
.lp-section-lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 65ch; margin: 0 auto 36px; }

.lp-section-title-left { text-align: left; max-width: 640px; }

/* Pain — editorial */
.lp-pain { background: var(--surface); }
.lp-pain-inner { max-width: 720px; }
.lp-pain-quote {
  margin: 20px 0 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.lp-pain-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-pain-points li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.lp-pain-points strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Steps */
.lp-steps { background: var(--card); }
.lp-steps-sub { font-size: 20px; text-align: center; margin: 28px 0 0; font-family: var(--font-display); color: var(--ink); }
.lp-steps-list {
  list-style: none; margin: 32px auto 0; padding: 0;
  max-width: 680px; counter-reset: step;
}
.lp-steps-list li {
  counter-increment: step;
  padding: 0 0 28px 56px;
  position: relative;
  margin-left: 0;
}
.lp-steps-list li:last-child { padding-bottom: 0; }
.lp-steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.lp-steps-list li strong { display: block; font-size: 17px; margin-bottom: 4px; }
.lp-steps-list li span { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Comparison table */
.lp-compare { background: var(--surface); }
.lp-compare-lead { text-align: center; color: var(--muted); font-size: 16px; max-width: 680px; margin: 0 auto 24px; line-height: 1.6; }
.lp-compare-disc { text-align: center; font-size: 13px; color: var(--muted); max-width: 680px; margin: 16px auto 0; line-height: 1.55; font-style: italic; }
.lp-compare-table-wrap { overflow-x: auto; margin-top: 28px; }
.lp-compare-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); font-size: 15px;
}
.lp-compare-table th, .lp-compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.lp-compare-table th { background: #f7fafc; font-size: 15px; }
.lp-th-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.lp-th-highlight { background: #e9f8f1 !important; color: var(--brand-d); }
.lp-td-yes { color: var(--brand-d); font-weight: 700; }
.lp-td-no { color: var(--muted); }
.lp-td-mid { color: var(--muted); }

/* CTA + form */
.lp-cta { background: var(--card); padding-top: 32px; padding-bottom: 40px; }
.lp-cta-solo { max-width: 640px; margin: 0 auto; }
.lp-form-title { margin: 0 0 6px; font-size: 20px; font-family: var(--font-display); }
.lp-form-lead { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.lp-cta-solo form > .expert-mode { margin-top: 12px; }
#analyse #numero-label,
#analyse #dpe-numero { display: none; }
.lp-form-error { text-align: center; margin-top: 12px; }

/* FAQ */
.lp-faq { background: #fff; padding-bottom: 64px; }
.lp-faq-list { max-width: 720px; margin: 28px auto 0; }
.lp-faq-item {
  border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; background: #f8fafc;
}
.lp-faq-item summary {
  cursor: pointer; font-weight: 700; padding: 16px 18px;
  font-size: 15px; list-style: none;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; float: right; color: var(--muted); font-size: 18px; }
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p { margin: 0; padding: 0 18px 16px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.lp-faq-item p a { color: var(--brand-d); font-weight: 700; }

/* Nav CTA on landing */
#nav .nav-cta { background: var(--brand); color: var(--brand-fg) !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; }

.btn.lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; text-decoration: none; }

/* Sticky mobile CTA */
.lp-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}
.lp-sticky-btn { width: 100%; text-align: center; text-decoration: none; margin: 0; }
.lp-sim-demo .lp-live {
  margin: 0 0 10px; padding: 12px 14px;
  background: #f3f6fa; color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.lp-sim-demo .live-from, .lp-sim-demo .live-to { color: var(--muted); }
.lp-sim-demo .live-arrow { color: var(--muted); }
.lp-sim-demo .live-info { color: var(--ink); }
.lp-sim-demo .live-info b { color: var(--ink); }
.lp-sim-demo .lp-items { display: flex; flex-direction: column; gap: 6px; }
.lp-sim-demo .lp-item {
  pointer-events: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .35s, background .35s;
}
.lp-sim-demo .lp-item.on { border-color: var(--brand); background: #f3fbf7; }
.lp-sim-demo .lp-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lp-sim-demo .lp-item input { pointer-events: none; width: 20px; height: 20px; }
.lp-sim-demo .lp-pct { background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; padding: 2px 9px; border-radius: 999px; min-width: 44px; text-align: center; }
.lp-sim-demo .lp-item:not(.on) .lp-pct { background: var(--muted); }
.lp-sim-demo .lp-title { font-size: 13.5px; color: var(--ink); flex: 1; }
.lp-sim-demo .lp-meta { font-size: 12px; color: var(--muted); margin: 4px 0; }
.lp-to { animation: lp-letter-pop .5s ease; }
@keyframes lp-letter-pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* Bloc partage viral (bas du rapport) */
.share-block { margin-top: 24px; text-align: center; }
.share-block h2 { margin: 0 0 8px; font-size: 20px; }
.share-lead { color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
.share-grid {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.share-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 88px; padding: 12px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: #f7fafc; color: var(--ink);
  text-decoration: none; font-size: 12px; font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.share-btn svg { width: 24px; height: 24px; }
.share-btn:hover { border-color: var(--brand); background: #eef8f3; transform: translateY(-1px); }
.share-btn[data-share="whatsapp"]:hover { color: #25d366; }
.share-btn[data-share="telegram"]:hover { color: #229ed9; }
.share-btn[data-share="x"]:hover { color: #000; }
.share-btn[data-share="facebook"]:hover { color: #1877f2; }
.share-btn[data-share="email"]:hover { color: var(--brand-d); }
.share-btn[data-share="link"]:hover { color: var(--brand-d); }
.share-hint { margin: 14px 0 0; font-size: 14px; }
.share-hint.share-ok { color: var(--brand-d); font-weight: 600; }

/* Responsive landing */
@media (max-width: 800px) {
  .lp-hero-inner, .lp-cta-inner { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 30px; }
  .lp-hero-visual { position: static; }
  .lp-sim-demo { max-width: 100%; }
  .lp-compare-table { font-size: 14px; }
  .lp-compare-table th, .lp-compare-table td { padding: 10px 12px; }
  .lp-sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}
