/* 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; }
}
