/* ── Site public & blog — feuille dédiée ─────────────────────────────
   Sert les pages marketing (investissement locatif, marchand de biens,
   analyse de rentabilité, guides) et le blog. Ne dépend que des tokens
   de design-system.css, volontairement indépendante de landing.css. */

:root {
  --font: 'DM Sans', sans-serif;
  --font-d: 'Manrope', sans-serif;
  --font-m: 'Roboto Mono', monospace;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ── Header / footer communs ─────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .96);
  color: #102a2d;
  border-bottom: 1px solid #dbe3de;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 4px;
  background: #102a2d;
  color: #d8f06a;
  font-size: 12px;
}
.logo-dot { color: var(--go); }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #17383a;
  transition: color .15s ease;
}
.site-nav a:hover { color: #397161; }
a.site-nav-mobile-only { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dbe3de;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-bar { width: 16px; height: 2px; background: #102a2d; border-radius: 1px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-actions > a:first-child {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #17383a;
  transition: color .15s;
}
.header-actions > a:first-child:hover { color: #397161; }
.header-cta {
  padding: 9px 16px;
  border-radius: 4px;
  background: #102a2d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}
.header-cta:hover { background: #17383a; transform: translateY(-1px); }

.public-main { min-height: 60vh; }

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(180px, .7fr) minmax(420px, 1.7fr);
  align-items: start;
  gap: 24px clamp(24px, 4vw, 64px);
  padding: 40px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
}
.site-footer .site-logo { color: var(--text); }
.site-footer > p { line-height: 1.55; }
.footer-nav { display: flex; justify-content: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--text-2); font-size: 13px; }
.footer-nav a:hover { color: var(--text); }

/* ── Pages marketing statiques ───────────────────────────────────── */
.page-hero {
  padding: clamp(56px, 7vw, 88px) clamp(20px, 8vw, 120px) clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-eyebrow {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 900px;
  margin-bottom: 20px;
}
.page-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 680px;
}
.page-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ── Documents juridiques ───────────────────────────────────────── */
.legal-page { max-width: 920px; margin: 0 auto; padding: 56px 32px 80px; }
.legal-header { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--border); }
.legal-header h1 { font-family: var(--font-d); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 10px 0 14px; }
.legal-updated { color: var(--muted); font-size: 13px; }
.legal-content { max-width: 760px; }
.legal-content section { margin: 0 0 34px; }
.legal-content h2 { font-family: var(--font-d); font-size: 22px; margin-bottom: 12px; color: var(--text); }
.legal-content h3 { font-family: var(--font-d); font-size: 17px; margin: 20px 0 8px; }
.legal-content p, .legal-content li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.legal-content p + p { margin-top: 10px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-top: 10px; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-note { padding: 16px 18px; border-left: 3px solid var(--go); background: var(--surface); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 44px;
  justify-content: center;
  line-height: 1.25;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--go); color: #fff; }
.btn-primary:hover { background: #0f4824; }
.btn-ghost { border-color: var(--border-hi); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }

.section-block { padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 40px); max-width: 1040px; margin: 0 auto; }
.section-block + .section-block { padding-top: 0; }
.section-block h2 {
  font-family: var(--font-d);
  font-size: 24px;
  margin-bottom: 14px;
}
.section-block p { line-height: 1.7; color: var(--text-2); margin-bottom: 12px; }
.section-block ul { padding-left: 20px; line-height: 1.8; color: var(--text-2); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(20px, 2.5vw, 28px);
}
.info-card h3 { font-family: var(--font-d); font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: clamp(22px, 3vw, 30px);
  text-decoration: none;
  color: var(--text);
}
.guide-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--border-hi); box-shadow: 0 16px 36px rgba(22, 21, 15, .07); transform: translateY(-2px); }
.guide-card .guide-tag {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--go);
  margin-bottom: 8px;
  display: block;
}
.guide-card h3 { font-family: var(--font-d); font-size: 18px; margin-bottom: 8px; }
.guide-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Blog ─────────────────────────────────────────────────────────── */
.blog-list { padding: 40px 32px; max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.blog-card {
  display: block;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}
.blog-card:hover { border-color: var(--border-hi); }
.blog-card-date {
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
  display: block;
}
.blog-card h2 { font-family: var(--font-d); font-size: 20px; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.blog-empty { color: var(--text-2); font-size: 14px; }

.article {
  padding: 48px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.article-eyebrow {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.article h1 {
  font-family: var(--font-d);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.article-meta { font-size: 13px; color: var(--text-2); margin-bottom: 28px; }
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body h2 { font-family: var(--font-d); font-size: 22px; margin: 32px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul { padding-left: 22px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--go);
  padding-left: 16px;
  color: var(--text-2);
  margin: 20px 0;
}
.article-back { display: inline-block; margin-top: 32px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.article-back:hover { color: var(--text); }

@media (max-width: 720px) {
  .site-header { min-height: 64px; padding: 12px 16px; gap: 12px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 18px;
    background: #fff;
    border-bottom: 1px solid #dbe3de;
    box-shadow: 0 16px 28px rgba(16, 42, 45, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid #edf0ed; font-size: 14px; }
  a.site-nav-mobile-only { display: block; }
  .site-nav .header-cta { display: inline-flex; margin-top: 8px; border-bottom: none; }
  .header-actions > a:first-child { display: none; }
  .site-logo { white-space: nowrap; }
  .header-actions { margin-left: auto; }
  .header-cta { padding: 9px 12px; font-size: 12px; text-align: center; }
  .page-hero { padding: 48px 20px 40px; }
  .page-hero h1 { font-size: clamp(32px, 9.5vw, 42px); overflow-wrap: anywhere; }
  .page-actions { flex-direction: column; }
  .page-actions .btn { width: 100%; }
  .section-block { padding-inline: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-footer { grid-template-columns: 1fr; padding: 36px 20px; }
  .footer-nav { justify-content: flex-start; gap: 14px 22px; }
  .footer-nav a { min-height: 28px; display: inline-flex; align-items: center; }
  .legal-page, .article, .blog-list { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 721px) and (max-width: 1040px) {
  .site-header { padding-inline: 24px; gap: 20px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .header-actions > a:first-child { display: none; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer > p { text-align: right; }
  .footer-nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.error-page{width:min(760px,calc(100% - 40px));margin:72px auto;padding:clamp(32px,7vw,72px);border:1px solid #d9d4c7;background:#fffdf8;box-shadow:0 24px 70px rgba(24,23,17,.08)}
.error-page .error-code{margin:0 0 12px;color:#d4772f;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.error-page h1{margin:0;font-size:clamp(34px,7vw,58px);line-height:1.02}
.error-page p:not(.error-code){margin:22px 0 32px;color:#69665c;line-height:1.65}

/* ── Système éditorial des pages d'acquisition ─────────────────── */
.marketing-hero {
  background: linear-gradient(125deg, #fff 45%, #edf3ed);
  border-bottom-color: #dbe3de;
}
.marketing-hero h1 { color: #102a2d; max-width: 960px; }
.page-proof {
  margin-top: 14px;
  color: #647778;
  font: 500 10px/1.6 var(--font-m);
  letter-spacing: .02em;
}
.marketing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}
.marketing-section + .marketing-section { border-top: 1px solid #dbe3de; }
.marketing-section h2,
.public-final-cta h2,
.article-product-cta h2 {
  color: #102a2d;
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.marketing-section p,
.public-final-cta p,
.article-product-cta p { color: #647778; line-height: 1.75; }
.section-label {
  display: block;
  margin-bottom: 16px;
  color: #397161;
  font: 600 10px var(--font-m);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pain-section,
.method-section,
.comparison-fit { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); }
.pain-section > div:last-child p + p,
.plugin-note > div:last-child p + p { margin-top: 16px; }
.decision-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.decision-example h2 { margin-bottom: 18px; }
.text-link { display: inline-block; margin-top: 20px; color: #102a2d; font-weight: 700; text-underline-offset: 4px; }
.decision-panel { display: flex; flex-direction: column; padding: clamp(26px, 4vw, 42px); border: 1px solid #dbe3de; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(16, 42, 45, .1); }
.decision-panel strong { margin: 24px 0 6px; color: #102a2d; font: 700 20px var(--font-d); }
.decision-panel > b { color: #102a2d; font: 800 34px var(--font-d); }
.decision-panel ul { list-style: none; margin-top: 24px; }
.decision-panel li { padding: 10px 0; border-top: 1px solid #dbe3de; color: #647778; font-size: 13px; }
.decision-panel li::before { content: '✓'; margin-right: 9px; color: #397161; font-weight: 700; }
.decision-tag { align-self: flex-start; padding: 7px 11px; border-radius: 20px; font: 700 9px var(--font-m); text-transform: uppercase; }
.decision-go { color: #35663c; background: #e6f5d5; }
.decision-condition { color: #8a5b12; background: #fff0d6; }
.marketing-stack > div:first-child { max-width: 760px; margin-bottom: 38px; }
.outcome-grid,
.metric-grid,
.fit-grid { display: grid; gap: 18px; }
.outcome-grid { grid-template-columns: repeat(3, 1fr); }
.metric-grid { grid-template-columns: repeat(4, 1fr); }
.fit-grid { grid-template-columns: 1fr 1fr; }
.outcome-grid article,
.metric-grid article,
.fit-grid article { padding: 26px; border: 1px solid #dbe3de; border-radius: 10px; background: #fff; }
.outcome-grid span,
.metric-grid span { color: #e9673f; font: 700 10px var(--font-m); }
.outcome-grid h3,
.metric-grid h3,
.fit-grid h3 { margin: 18px 0 10px; color: #102a2d; font: 700 19px var(--font-d); }
.outcome-grid p,
.metric-grid p,
.fit-grid p { font-size: 13px; }
.check-list { list-style: none; }
.check-list li { padding: 16px 0; border-bottom: 1px solid #dbe3de; color: #17383a; }
.check-list li::before { content: '✓'; margin-right: 11px; color: #397161; font-weight: 700; }
.public-final-cta,
.article-product-cta { padding: clamp(64px, 8vw, 96px) max(20px, calc((100vw - 1120px) / 2)); background: #f7f8f3; border-top: 1px solid #dbe3de; }
.public-final-cta h2,
.article-product-cta h2 { max-width: 820px; }
.public-final-cta > p,
.article-product-cta > p { max-width: 680px; margin-top: 16px; }
.article-product-cta .btn { margin-top: 24px; }
.professional-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 7vw, 80px) max(20px, calc((100vw - 1120px) / 2));
  background: #102a2d;
  color: #fff;
}
.professional-cta .section-label { grid-column: 1 / -1; margin: 0; color: #d8f06a; }
.professional-cta h2 { font: 700 clamp(28px, 4vw, 44px)/1.12 var(--font-d); letter-spacing: -.035em; }
.professional-cta p { max-width: 720px; color: rgba(255,255,255,.72); line-height: 1.7; }
.professional-cta .btn { grid-column: 2; grid-row: 2 / span 2; background: #d8f06a; color: #102a2d; }
.professional-cta .btn:hover { background: #e5f58e; }
.table-scroll { overflow-x: auto; }
.comparison-table-wrap .feature-comparison { margin: 0 0 28px; }
.comparison-note a { text-underline-offset: 3px; }

@media (max-width: 760px) {
  .marketing-section { width: min(100% - 40px, 1120px); padding: 58px 0; }
  .pain-section, .method-section, .decision-example, .comparison-fit { grid-template-columns: 1fr; gap: 28px; }
  .outcome-grid, .metric-grid, .fit-grid { grid-template-columns: 1fr; }
  .decision-panel { padding: 24px 20px; }
  .public-final-cta, .article-product-cta { padding: 58px 20px; }
  .public-final-cta .page-actions { align-items: stretch; }
  .professional-cta { grid-template-columns: 1fr; padding: 58px 20px; }
  .professional-cta .section-label,
  .professional-cta .btn { grid-column: auto; grid-row: auto; }
  .professional-cta .btn { width: 100%; margin-top: 10px; }
}
