/* Feuille de style partagee des pages d'intention SEO (generees par
 * scripts/build-intent-pages.mjs). Reprend le systeme « ps- » brique/papier
 * de comparatif.html pour rester coherent avec le reste du site public. */

:root {
  --paper: #f2eee5;
  --paper-deep: #e9e2d2;
  --raised: #ffffff;
  --ink: #1a1a18;
  --ash: #6b6862;
  --mist: #c6c0b2;
  --accent: #a6452f;
  --accent-deep: #8f3924;
  --accent-soft: rgba(166, 69, 47, 0.08);
  --ink-72: rgba(26, 26, 24, 0.72);
  --ink-56: rgba(26, 26, 24, 0.56);
  --line: rgba(26, 26, 24, 0.1);
  --line-strong: rgba(26, 26, 24, 0.18);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }

.ps-wrap { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.ps-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-56);
}

/* Nav */
.ps-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ps-nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ps-brand .bar {
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
}
.ps-nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.ps-nav-links a { color: var(--ink-72); transition: color 0.15s; }
.ps-nav-links a:hover { color: var(--ink); }

.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s;
}
.ps-cta:hover { background: #000; }

/* Hero */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 760px;
  margin: 14px 0 18px;
}
.hero h1 .underline { border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.hero .sub { font-size: 17px; color: var(--ink-72); max-width: 640px; }
.hero-cta { margin-top: 26px; }

/* Prose */
.prose { padding: 48px 0; border-bottom: 1px solid var(--line); }
.prose h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 36px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: var(--ink-72); margin-bottom: 14px; line-height: 1.65; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: none; margin: 14px 0; }
.prose li {
  font-size: 16px;
  color: var(--ink-72);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}
.prose a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--mist); }
.prose a:hover { text-decoration-color: var(--accent); }

/* Regimes en jeu (cards) */
.regimes { padding: 48px 0; border-bottom: 1px solid var(--line); }
.regimes h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.regimes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.regime-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.regime-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.regime-card h3 .bar { width: 3px; height: 15px; background: var(--accent); border-radius: 1px; display: inline-block; }
.regime-card p { font-size: 13.5px; color: var(--ink-72); line-height: 1.5; }

/* FAQ */
.faq { padding: 48px 0; border-bottom: 1px solid var(--line); }
.faq h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--ink-72); line-height: 1.6; }

/* Liens connexes */
.related-links { padding: 48px 0; border-bottom: 1px solid var(--line); }
.related-links h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.related-links ul { list-style: none; }
.related-links li { margin-bottom: 10px; }
.related-links a { color: var(--accent-deep); font-weight: 500; }
.related-links a:hover { text-decoration: underline; }

/* Disclaimer */
.disclaimer-band { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.disclaimer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-72);
}
.disclaimer-inner .i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA */
.cta-section { padding: 64px 0; text-align: center; }
.cta-section h2 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-section p { font-size: 16px; color: var(--ink-72); max-width: 540px; margin: 0 auto 28px; }

/* Footer */
.ps-footer { background: var(--paper-deep); padding: 32px 0; font-size: 12.5px; color: var(--ink-72); }
.ps-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.ps-footer-links { display: flex; gap: 18px; }

@media (max-width: 768px) {
  .ps-wrap, .ps-nav-inner, .ps-footer-inner, .disclaimer-inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 28px; }
  .prose h2, .regimes h2, .faq h2 { font-size: 21px; }
  .cta-section h2 { font-size: 24px; }
  .ps-nav-links a:not(.ps-cta) { display: none; }
}

/* Mini-simulateur interactif (pages d'intention avec widget).
   Vert positif reserve aux etats LMP, conforme a la palette pos/neg v3. */
:root { --pos: #4a7a3f; --pos-soft: rgba(74, 122, 63, 0.1); }

.lmp-widget { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.lmp-widget h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.lmp-widget-intro { font-size: 15px; color: var(--ink-72); margin-bottom: 22px; max-width: 660px; line-height: 1.6; }
.lmp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.lmp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-72); font-weight: 500; }
.lmp-form input, .lmp-form select {
  font-family: var(--mono); font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); color: var(--ink);
}
.lmp-form input:focus, .lmp-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Déficit foncier : ventilation chiffrée + barre imputé / reporté */
.df-rows { list-style: none; margin: 14px 0 0; display: grid; gap: 8px; }
.df-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--ink-72); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.df-rows li:last-child { border-bottom: 0; }
.df-rows b { font-family: var(--mono); font-size: 16px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.df-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; margin-top: 16px; background: var(--mist); }
.df-bar-seg.g { background: var(--pos); }
.df-bar-seg.r { background: var(--mist); }
.df-legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-72); margin-top: 10px; }
.df-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.df-legend .sw.g { background: var(--pos); }
.df-legend .sw.r { background: var(--mist); }

.lmp-result { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.lmp-verdict {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 5px; margin-bottom: 12px;
}
.lmp-verdict.lmp { background: var(--pos-soft); color: var(--pos); border: 1px solid var(--pos); }
.lmp-verdict.lmnp { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid var(--line-strong); }
.lmp-explain { font-size: 15px; color: var(--ink-72); line-height: 1.6; }
.lmp-conditions { list-style: none; margin: 14px 0 0; display: grid; gap: 7px; }
.lmp-conditions li { font-size: 13.5px; color: var(--ink-72); }
.lmp-conditions .mark {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 1px 7px; border-radius: 4px; margin-right: 8px;
}
.lmp-conditions li.ok .mark { background: var(--pos-soft); color: var(--pos); }
.lmp-conditions li.ko .mark { background: var(--accent-soft); color: var(--accent-deep); }

.lmp-tl-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-56); margin: 20px 0 8px; }
.lmp-timeline { display: flex; gap: 2px; align-items: stretch; }
.lmp-cell { flex: 1; height: 28px; border-radius: 2px; min-width: 3px; }
.lmp-cell.lmp { background: var(--pos); }
.lmp-cell.lmnp { background: var(--mist); }
.lmp-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-56); margin-top: 6px; }
.lmp-legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-72); margin-top: 12px; }
.lmp-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.lmp-legend .sw.lmp { background: var(--pos); }
.lmp-legend .sw.lmnp { background: var(--mist); }
.lmp-widget-cta { margin-top: 18px; }
.lmp-note { font-family: var(--mono); font-size: 11px; color: var(--ink-56); line-height: 1.55; margin-top: 16px; }
