/* ===========================================================
   IMMOCONFIANCE — Design tokens & base
   =========================================================== */
:root {
  --emerald: #14a06b;
  --teal: #0e7c8f;
  --grad: linear-gradient(120deg, #15b87a 0%, #0e8fa8 100%);
  --navy: #16213a;
  --navy-deep: #0e1626;
  --ink: #1b2433;
  --muted: #6b7686;
  --bg: #f6f8fa;
  --card: #ffffff;
  --line: #e6eaee;
  --success-bg: #e9f8f0;
  --success-text: #14a06b;
  --danger: #e34b4b;
  --gold: #f0b429;

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Lexend", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1180px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -10px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 20px 50px -20px rgba(14, 33, 58, 0.25);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--emerald);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-right: auto;
  white-space: nowrap;
}
.nav__brand-accent { color: var(--emerald); }
.nav__mark { color: var(--navy); flex-shrink: 0; }

.nav__links {
  display: flex;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__links a:hover { background: var(--bg); }
.nav__links a.is-active {
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 600;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}

@media (max-width: 880px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 0.6rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0.5rem; border-radius: 8px; }
  .nav__toggle { display: block; }
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(20, 160, 107, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(20, 160, 107, 0.55); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--navy); }
.btn-white {
  background: #fff;
  color: var(--emerald);
}
.btn-white:hover { transform: translateY(-1px); }
.btn-ghost-light {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ===========================================================
   SHARED: eyebrow / section head
   =========================================================== */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success-text);
  background: var(--success-bg);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.8rem; line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===========================================================
   CARDS — feature
   =========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--success-bg);
  border-radius: 14px;
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer__brand-accent { color: #4fd99a; }
.footer p.footer__desc { font-size: 0.88rem; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer h4 {
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__list a, .footer__list span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.footer__list a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.4rem 0 1.6rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom .tag {
  display: block;
  margin-top: 0.4rem;
  color: #4fd99a;
  font-weight: 500;
}

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
