/* ===================================================================
   ImmoDeals — Design System de la vitrine publique
   Source unique de styles pour landing.html, fonctionnalites.html,
   tarifs.html, mentions-legales.html, confidentialite.html.
   Charte alignée sur l'app Flutter (bleu seed #1976D2) + plaquette PDF.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand-50:  #eef4ff;
  --brand-100: #dbe8ff;
  --brand-500: #1763d6;
  --brand-600: #1454bd;
  --brand-700: #1144a0;

  --ink:    #0f172a;   /* slate-900 — titres */
  --body:   #334155;   /* slate-700 — texte courant */
  --muted:  #64748b;   /* slate-500 — secondaire */
  --line:   #e2e8f0;   /* bordures */
  --bg:     #ffffff;
  --bg-soft:#f8fafc;   /* sections alternées */
  --bg-ink: #0b1220;   /* footer / sections sombres */

  --green:  #059669;   /* cash-flow positif (charte métier) */
  --green-bg:#ecfdf5;
  --amber:  #d97706;   /* alertes prudence */
  --amber-bg:#fffbeb;
  --red:    #dc2626;   /* red flags */

  --radius:   16px;
  --radius-sm:10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);

  --maxw: 1140px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #cbd5e1; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; font-weight: 800; box-shadow: var(--shadow-sm); }
.brand b { color: var(--brand-600); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--body); font-weight: 600; font-size: .98rem; }
.nav__links a:hover { color: var(--brand-700); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); background: radial-gradient(1200px 500px at 80% -10%, var(--brand-50), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 span { color: var(--brand-600); }
.hero__lead { font-size: 1.2rem; color: var(--body); max-width: 36ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__note svg { color: var(--green); }

/* mockup carte flottante */
.mock { position: relative; }
.mock__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.mock__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mock__row:last-child { border-bottom: 0; }
.mock__row span { color: var(--muted); font-size: .95rem; }
.mock__row b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.mock__pill { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--green); background: var(--green-bg); border-radius: 12px; padding: 14px 18px; text-align: center; margin-top: 10px; }
.mock__float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 16px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.mock__float--tl { top: -18px; left: -22px; color: var(--brand-700); }
.mock__float--br { bottom: -18px; right: -16px; color: var(--red); }
.dot { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- Bande de confiance ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; padding: 36px 0; }
.trust__num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); }
.trust__lbl { color: var(--muted); font-size: .95rem; }

/* ---------- Grille features ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-600); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Split (texte + visuel alterné) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split__media { background: linear-gradient(160deg, var(--brand-50), #fff); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 26px; min-height: 240px; }
.split__media--rev { order: -1; }
.ulist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ulist li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.ulist svg { flex: 0 0 auto; color: var(--green); margin-top: 3px; }

/* ---------- Tarifs ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 860px; margin-inline: auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan--pro { border-color: var(--brand-500); box-shadow: var(--shadow-lg); position: relative; }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-600); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.plan__name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.plan__price { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--ink); margin: 10px 0 4px; }
.plan__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 13px; flex: 1; }
.plan__list li { display: flex; gap: 10px; color: var(--body); font-size: .98rem; }
.plan__list svg { flex: 0 0 auto; color: var(--green); margin-top: 3px; }
.plan__list li.off { color: var(--muted); }
.plan__list li.off svg { color: #cbd5e1; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); border-radius: 24px; padding: clamp(40px, 6vw, 72px); color: #fff; box-shadow: var(--shadow-lg); }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.85); max-width: 46ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-ink); color: #94a3b8; padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #e2e8f0; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer a { color: #94a3b8; display: block; padding: 5px 0; font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer__desc { font-size: .95rem; max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #64748b; }

/* ---------- Pages légales / prose ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .92rem; }

/* ---------- Badges métier ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; font-family: var(--font-head); padding: 4px 11px; border-radius: 999px; }
.badge--green { color: var(--green); background: var(--green-bg); }
.badge--amber { color: var(--amber); background: var(--amber-bg); }
.badge--red { color: var(--red); background: #fef2f2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .trust__grid { grid-template-columns: 1fr; }
  .hero__grid .mock { order: -1; }
  .grid--3, .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split__media--rev { order: 0; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 22px; box-shadow: var(--shadow-md); }
  .grid--3, .grid--2, .steps, .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
}
