/* Guide IA Immo : design system du site.
   Référence : fond blanc, encre quasi noire, cartes à liseré fin, boutons noirs
   arrondis, chips pastel, zéro ombre sauf surfaces flottantes. */

:root {
  --ink: #101014;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #f7f8f9;
  --border: #e6e7ea;
  --navy: #1a1a2e;          /* la couverture du guide */
  --gold: #e3b655;          /* la fenêtre allumée */
  --radius: 16px;
  --radius-s: 10px;

  /* Familles pastel (accent / fond) */
  --sky: #2f6ea5;    --sky-bg: #e3eff9;
  --green: #3e7a33;  --green-bg: #e4f2dc;
  --peach: #a05325;  --peach-bg: #fbe8da;
  --teal: #1f6e75;   --teal-bg: #ddf0f1;
  --pink: #a53572;   --pink-bg: #fae3f0;
  --yellow: #8a6414; --yellow-bg: #faeecd;
  --lilac: #5f3fa6;  --lilac-bg: #ece4fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.022em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead  { font-size: 1.14rem; color: var(--muted); max-width: 46ch; }

a { color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: #2a2a33; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--surface); }
.btn.large { padding: 16px 30px; font-size: 1.06rem; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .84rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
}
.chip.gold  { background: #fdf3dd; border-color: #f0ddb0; color: #7a5a10; }
.chip.green { background: var(--green-bg); border-color: #cde5c0; color: var(--green); }
.chip.gray  { background: var(--surface); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.logo svg { display: block; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 550; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 760px) { .nav a.nav-link { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 880px) {
  .hero { padding: 40px 0 32px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { font-size: .88rem; color: var(--muted); }

.hero-cover { display: flex; justify-content: center; }
.hero-cover img {
  width: min(360px, 78vw); height: auto; border-radius: 10px;
  box-shadow: 0 24px 60px -18px rgba(26,26,46,.38), 0 4px 14px rgba(26,26,46,.14);
  transform: rotate(1.6deg);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker {
  display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}

/* ---------- Cartes ---------- */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}

/* KPI / gains */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stats { grid-template-columns: 1fr; } }
.stat .stat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.stat .stat-label { font-size: .95rem; font-weight: 600; color: var(--muted); max-width: 17ch; }
.stat .icon-tile {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.05rem;
}
.stat .stat-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.stat .stat-value small { font-size: 1.05rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }

/* Avant / après */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .compare { grid-template-columns: 1fr; } }
.annonce { font-size: .98rem; }
.annonce .chip { margin-bottom: 14px; }
.annonce blockquote {
  margin: 0; padding: 0; color: #3f3f46; font-style: normal;
}
.annonce.avant blockquote { color: var(--muted); }

/* Chapitres */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .chapters { grid-template-columns: 1fr; } }
.chapter { padding: 22px; }
.chapter .num {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 750; font-size: .95rem; margin-bottom: 14px;
}
.chapter h3 { margin-bottom: 6px; font-size: 1.03rem; }
.chapter p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Feuilletage */
.pages-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .pages-row { grid-template-columns: 1fr; } }
.pages-row img {
  width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px;
  background: #fff;
}
.pages-row figure { margin: 0; }
.pages-row figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Auteur */
.author { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .author { grid-template-columns: 1fr; } }
.avatar {
  width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em;
}

/* Tarif */
.pricing-wrap { display: flex; justify-content: center; }
.pricing {
  width: min(480px, 100%); padding: 34px;
  border: 1.5px solid var(--ink); border-radius: 20px; background: #fff;
}
.pricing .price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing .price small { font-size: 1rem; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.pricing ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 11px; }
.pricing li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.pricing li svg { flex: none; margin-top: 4px; }
.pricing .btn { width: 100%; }
.pricing .pay-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; margin-bottom: 0; }

/* Formulaire extrait */
.extrait-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .extrait-box { grid-template-columns: 1fr; gap: 28px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff;
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form-note { font-size: .84rem; color: var(--muted); }
.form-success {
  display: none; border: 1px solid #cde5c0; background: var(--green-bg);
  border-radius: var(--radius-s); padding: 16px; color: var(--green); font-weight: 550;
}
.form-success a { color: inherit; font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 0 20px; margin-bottom: 10px; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 650; padding: 17px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #3f3f46; padding-bottom: 17px; margin: 0; }

/* Bandeau final */
.final-cta { text-align: center; padding: 80px 0; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta .lead { margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: .9rem; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Pages légales / contenu ---------- */
.page-content { max-width: 720px; padding: 56px 0 72px; }
.page-content h1 { font-size: 2rem; margin-bottom: 1em; }
.page-content h2 { font-size: 1.25rem; margin-top: 2em; }
.page-content { font-size: 1rem; }
.todo { background: var(--yellow-bg); border: 1px solid #ecd9a4; border-radius: 8px; padding: 2px 8px; font-size: .88rem; color: var(--yellow); font-weight: 600; }
