/* revenu-cadastral.be — design sobre moderne */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-card: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d1d5db;
  --text: #1a1d24;
  --text-soft: #5c6370;
  --text-mute: #8b919c;
  --accent: #1e3a5f;          /* bleu nuit administratif */
  --accent-soft: #e8eef5;
  --accent-hover: #2a4d7a;
  --positive: #1a7f5a;
  --warning: #b8761c;
  --negative: #b03a3a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 25px -5px rgba(15,23,42,.08), 0 4px 10px -4px rgba(15,23,42,.06);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo svg { color: var(--accent); }
.logo-tld { color: var(--text-mute); font-weight: 500; }

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  background: var(--bg-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b919c' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat 12px center;
  transition: all .15s;
  font-family: inherit;
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

.nav-links {
  display: flex;
  gap: 4px;
  font-size: .92rem;
}
.nav-links a {
  padding: 7px 12px;
  color: var(--text-soft);
  border-radius: 6px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

/* Autocomplete */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}
.ac-dropdown.open { display: block; }
.ac-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover { background: var(--bg-soft); text-decoration: none; }
.ac-nom { font-weight: 500; }
.ac-commune { font-size: .82rem; color: var(--text-mute); }

/* Breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-mute);
  padding: 14px 0 0;
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb .bc-sep { margin: 0 8px; color: var(--text-mute); }

/* Hero */
.hero {
  padding: 56px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.025em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c6370' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat 18px center;
  box-shadow: var(--shadow);
  font-family: inherit;
}
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,58,95,.12), var(--shadow);
}

/* Sections */
section.page-section { padding: 56px 0; }
section.page-section + section.page-section { border-top: 1px solid var(--border); }
h2 { font-size: 1.6rem; letter-spacing: -.015em; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
p.section-lead { color: var(--text-soft); margin: 0 0 32px; max-width: 720px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Card with icon */
.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all .15s;
}
.card-icon:hover .card-icon-box {
  background: var(--accent);
  color: #fff;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--text-soft); margin: 0; font-size: .94rem; }

a.card { color: var(--text); display: block; }
a.card:hover { text-decoration: none; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kpi {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi-label { font-size: .8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.kpi-value { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; color: var(--text); }
.kpi-sub { font-size: .8rem; color: var(--text-mute); margin-top: 2px; }

/* Hero KPI variant — fond accent */
.kpi.kpi-accent { background: var(--accent); border-color: var(--accent); }
.kpi.kpi-accent .kpi-label, .kpi.kpi-accent .kpi-sub { color: rgba(255,255,255,.7); }
.kpi.kpi-accent .kpi-value { color: #fff; }

/* Page commune / voirie header */
.page-head {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 6px 0 8px;
  letter-spacing: -.02em;
}
.page-head .meta { color: var(--text-mute); font-size: .92rem; }

/* Rues details (longue traine SEO) */
.rues-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 14px 18px;
}
.rues-details summary {
  cursor: pointer;
  font-size: .92rem;
  color: var(--accent);
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.rues-details summary::-webkit-details-marker { display: none; }
.rues-details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--text-mute);
  font-size: 1.3rem;
  font-weight: 300;
}
.rues-details[open] summary::after { content: '−'; }

/* Data tags : différencier officiel vs estimé */
.data-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.data-tag-official {
  background: #d8ebde;
  color: #0d6b48;
}
.data-tag-estimated {
  background: #fbeed6;
  color: #8a5511;
  margin-top: 28px;
}
.data-tag svg { flex-shrink: 0; }

/* Bloc données officielles */
.official-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #0d6b48;
  border-radius: var(--radius-lg);
}
.official-item { display: flex; flex-direction: column; gap: 3px; }
.official-label {
  font-size: .72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}
.official-value {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #0d6b48;
}
.official-sub { font-size: .78rem; color: var(--text-soft); }

/* Hero summary (réponse synthétique sous le H1 page commune) */
.hero-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hero-summary-item { display: flex; align-items: center; gap: 14px; }
.hero-summary-item > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.hero-summary-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-summary-icon-accent { background: var(--accent); color: #fff; }
.hero-summary-label {
  font-size: .72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.hero-summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.hero-summary-value-accent { color: var(--accent); }
.hero-summary-hint {
  font-size: .78rem;
  color: var(--text-mute);
  font-weight: 400;
  font-style: italic;
}

.hero-glossary {
  margin-top: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.6;
}
.hero-glossary p { margin: 0; color: var(--text-soft); }
.hero-glossary strong { color: var(--text); }
.inline-icon { display: inline-block; vertical-align: -3px; color: var(--accent); margin-right: 2px; }

/* H2 icon */
.h2-icon {
  display: inline-block;
  vertical-align: -4px;
  color: var(--accent);
  margin-right: 4px;
}

/* RC card icon + variantes couleurs par type */
.rc-card-head { display: flex; align-items: center; gap: 12px; }
.rc-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-card-blue .rc-card-icon { background: #e8eef5; color: #1e3a5f; }
.rc-card-blue .rc-card-precompte { background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7a 100%); }
.rc-card-blue .rc-card-precompte-label,
.rc-card-blue .rc-card-precompte-value,
.rc-card-blue .rc-card-precompte-period { color: #fff; }

.rc-card-amber .rc-card-icon { background: #fbeed6; color: #b8761c; }
.rc-card-amber .rc-card-precompte { background: linear-gradient(135deg, #b8761c 0%, #d4892a 100%); }
.rc-card-amber .rc-card-precompte-label,
.rc-card-amber .rc-card-precompte-value,
.rc-card-amber .rc-card-precompte-period { color: #fff; }

.rc-card-green .rc-card-icon { background: #d8ebde; color: #1a7f5a; }
.rc-card-green .rc-card-precompte { background: linear-gradient(135deg, #1a7f5a 0%, #2a9970 100%); }
.rc-card-green .rc-card-precompte-label,
.rc-card-green .rc-card-precompte-value,
.rc-card-green .rc-card-precompte-period { color: #fff; }

/* Content sections inside page */
.content-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.content-block:last-child { border-bottom: none; }

/* Tableau RC */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
table.data-table th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-strong);
  color: var(--text-soft);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
table.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.data-table tr:hover td { background: var(--bg-soft); }
table.data-table td.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Tri tableau */
.th-sort { cursor: pointer; user-select: none; position: relative; padding-right: 22px !important; }
.th-sort::after {
  content: '⇅';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  opacity: .4;
  font-size: .85rem;
}
.th-sort:hover::after { opacity: 1; }
.th-sort.sorted-asc::after { content: '↑'; opacity: 1; color: var(--accent); }
.th-sort.sorted-desc::after { content: '↓'; opacity: 1; color: var(--accent); }

.communes-table tr.commune-row:hover { background: var(--bg-soft); }
.communes-table td { padding: 8px 12px; font-size: .92rem; }

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.badge-warn { background: #fff3e0; color: var(--warning); }
.badge.badge-info { background: #e8f4f8; color: #226286; }

/* Info / alert boxes */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 18px 0;
  font-size: .94rem;
}
.callout.callout-warn { border-color: var(--warning); background: #fff8ec; }
.callout strong { color: var(--text); }

/* Liste de rues */
.rues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}
.rue-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--text);
  border: 1px solid transparent;
  font-size: .92rem;
}
.rue-link:hover {
  background: var(--bg-soft);
  border-color: var(--border);
  text-decoration: none;
}
.rue-link .rue-nb { font-size: .78rem; color: var(--text-mute); }

/* Map */
.map { height: 360px; border-radius: var(--radius); border: 1px solid var(--border); }

/* RC cards (hero direct page commune/voirie) */
.rc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .15s;
}
.rc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.rc-card-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.rc-card-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.rc-card-sub { display: block; font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
.rc-card-rc {
  padding: 18px 22px 14px;
  border-bottom: 1px dashed var(--border);
}
.rc-card-rc-label, .rc-card-precompte-label {
  font-size: .72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.rc-card-rc-value {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.rc-card-rc-sub { font-size: .78rem; color: var(--text-mute); margin-top: 2px; }
.rc-card-precompte {
  padding: 16px 22px 20px;
  background: var(--accent-soft);
  margin-top: auto;
}
.rc-card-precompte-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.025em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.rc-card-precompte-period { font-size: .85rem; font-weight: 500; color: var(--accent); margin-left: 4px; opacity: .7; }

.callout-meta {
  font-size: .82rem;
  color: var(--text-mute);
  margin-top: 18px;
  padding: 0;
}

/* Mini-estimateur RC interactif */
.estimator {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 16px;
}
.est-form { display: flex; flex-direction: column; gap: 18px; }
.est-row { display: flex; flex-direction: column; gap: 8px; }
.est-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.est-options { display: flex; flex-wrap: wrap; gap: 6px; }
.est-opt {
  padding: 8px 14px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  border-radius: 7px;
  font-size: .88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
  color: var(--text-soft);
}
.est-opt:hover { border-color: var(--accent); color: var(--accent); }
.est-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 500;
}
.est-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}
.est-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .12s;
}
.est-check:hover { border-color: var(--accent); }
.est-check input { margin: 0; accent-color: var(--accent); }
.est-check input:checked + * { font-weight: 500; }

.est-result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.est-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.est-result-label {
  font-size: .72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  margin-bottom: 4px;
}
.est-result-value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.est-result-highlight {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin: -14px -18px -14px 0;
}
.est-result-highlight .est-result-label { color: rgba(255,255,255,.7); }
.est-result-highlight .est-result-value { color: #fff; }
.est-breakdown {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.7;
}
.est-breakdown strong { color: var(--text); }
.est-breakdown .est-factor {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px 4px 2px 0;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

/* Info tiles (facteurs RC) */
.info-tile {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.info-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.info-tile h3 { font-size: 1rem; margin: 0 0 6px; }
.info-tile p { font-size: .88rem; color: var(--text-soft); margin: 0; line-height: 1.5; }

/* Calcul stepper */
.calcul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.calcul-step {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.calcul-step-n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
}
.calcul-step strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.calcul-step p { margin: 0; font-size: .88rem; color: var(--text-soft); }

/* Simulateur */
.simulateur {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.simulateur-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 18px;
}
.sim-tab {
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: 5px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  font-family: inherit;
}
.sim-tab.active { background: var(--accent); color: #fff; }
.sim-input-group { margin-bottom: 18px; }
.sim-input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: .9rem;
}
.sim-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 16px;
  max-width: 320px;
}
.sim-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}
.sim-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1.1rem;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  background: transparent;
}
.sim-suffix { color: var(--text-mute); font-weight: 500; }
.simulateur-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 0;
}
.sim-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.sim-result-row:last-child { border-bottom: none; }
.sim-result-label { color: var(--text-soft); }
.sim-result-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.sim-result-row.sim-total {
  background: var(--accent-soft);
  font-weight: 600;
  padding: 14px 18px;
}
.sim-total .sim-result-label, .sim-total .sim-result-value { color: var(--accent); font-size: 1.05rem; }

/* Parc bars */
.parc-bars { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.parc-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-bottom: 6px;
}
.parc-bar-label span:last-child { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.parc-bar-track {
  width: 100%;
  height: 12px;
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
}
.parc-bar-fill { height: 100%; border-radius: 6px; transition: width .3s; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: .95rem;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 1.3rem;
  font-weight: 300;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: #eef0f3; }
.faq-answer {
  padding: 0 18px 16px;
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .15s;
}
.blog-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); transform: translateY(-2px); }
.blog-card-link { display: block; padding: 24px 28px; color: var(--text); }
.blog-card-link:hover { text-decoration: none; }
.blog-card-meta { font-size: .82rem; color: var(--text-mute); margin-bottom: 8px; }
.blog-card-title { font-size: 1.3rem; margin: 0 0 10px; letter-spacing: -.015em; line-height: 1.25; }
.blog-card-excerpt { color: var(--text-soft); margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
}

.blog-article {
  max-width: 880px;
  margin: 40px auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.blog-header-inner { max-width: 880px; }
.blog-article h2 {
  font-size: 1.5rem;
  margin: 36px 0 12px;
  letter-spacing: -.015em;
}
.blog-article h3 {
  font-size: 1.15rem;
  margin: 26px 0 10px;
}
.blog-article p { margin: 0 0 16px; }
.blog-article ul, .blog-article ol { margin: 0 0 16px; padding-left: 24px; }
.blog-article li { margin-bottom: 6px; }
.blog-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blog-article a:hover { text-decoration-thickness: 2px; }
.blog-article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 20px;
  margin: 20px 0;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .92rem;
}
.blog-article th { background: var(--bg-soft); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border-strong); }
.blog-article td { padding: 10px 12px; border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer {
  background: #0f1419;
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  margin-top: 64px;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col strong { color: #fff; font-size: 1rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.footer-col p { color: rgba(255,255,255,.55); font-size: .88rem; margin: 8px 0 0; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  font-size: .9rem;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { gap: 12px; flex-wrap: wrap; }
  .header-search { order: 3; width: 100%; max-width: none; }
  .nav-links { font-size: .85rem; }
  .nav-links a { padding: 6px 8px; }
  .hero { padding: 40px 0 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
