/* ============================================================
   spire-summit — Maison connectée / Domotique
   Archetype : LONG-FORM FUNNEL
   Mise en page : Flexbox uniquement
   ============================================================ */

:root {
  --ink: #10213a;
  --ink-2: #1b2b45;
  --slate: #42526a;
  --muted: #697587;
  --line: #e2e7ef;
  --paper: #ffffff;
  --mist: #f5f7fb;
  --mist-2: #eef2f8;
  --teal: #1fae9a;
  --teal-dk: #178576;
  --amber: #e79a2b;
  --amber-dk: #c67f14;
  --fallback-1: #cdd7e6;
  --fallback-2: #dfe6f0;
  --fallback-3: #c7d4d0;
  --shadow: 0 18px 40px -22px rgba(16, 33, 58, 0.45);
  --shadow-sm: 0 8px 22px -16px rgba(16, 33, 58, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.3px; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal-dk);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dk); }
.btn-amber { background: var(--amber); color: #2a1c05; }
.btn-amber:hover { background: var(--amber-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dk); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }

.inline-link {
  font-weight: 700;
  color: var(--teal-dk);
  border-bottom: 2px solid rgba(31, 174, 154, .4);
}
.inline-link:hover { text-decoration: none; border-color: var(--teal); }

/* ---------- Ad disclosure ---------- */
.ad-flag {
  background: var(--amber);
  color: #2a1c05;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-align: center;
  padding: 7px 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: var(--wrap);
  margin: 0 auto;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--ink));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--teal-dk); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--ink);
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 760px;
  padding: 118px 22px 120px;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.22rem; color: #d6deeb; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; color: #aeb9cc; font-size: .92rem; }
.hero-meta strong { color: #fff; display: block; font-size: 1.5rem; }

/* ---------- Generic section ---------- */
.section { padding: 86px 0; }
.section.tight { padding: 58px 0; }
.section.mist { background: var(--mist); }
.section.mist-2 { background: var(--mist-2); }
.section.ink { background: var(--ink); color: #e7ecf4; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink .eyebrow { color: var(--amber); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Curiosity / editorial block ---------- */
.curio { text-align: center; }
.curio p { font-size: 1.28rem; color: var(--slate); }
.curio .big-q { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--ink); max-width: 760px; margin: 0 auto 18px; }

/* ---------- Split / scenario ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 54px; }
.split > div { flex: 1 1 340px; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--fallback-2);
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 420px; object-fit: cover; }
.split.reverse { flex-direction: row-reverse; }

.timeline { list-style: none; margin: 18px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--teal);
}
.timeline li::after {
  content: ""; position: absolute; left: 12px; top: 16px;
  width: 2px; height: 100%; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; color: var(--ink); }

/* ---------- Cards (flex) ---------- */
.card-row { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mist-2); color: var(--teal-dk);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: 4px;
}
.card.pain .ic { background: #fbeedd; color: var(--amber-dk); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }

.card-media {
  flex: 1 1 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.card-media .thumb { background-color: var(--fallback-1); }
.card-media .thumb img { width: 100%; height: 200px; object-fit: cover; }
.card-media .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-media .body h3 { margin: 0; }
.card-media .body p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ---------- Stats / trust ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 20px; }
.stat {
  flex: 1 1 200px; text-align: center;
  padding: 28px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.section.ink .stat .num { color: var(--amber); }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--teal-dk); display: block; }
.stat .lab { font-size: .92rem; color: inherit; opacity: .85; }

.badge-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: .92rem; color: var(--slate);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* ---------- Testimonials ---------- */
.quote-row { display: flex; flex-wrap: wrap; gap: 24px; }
.quote {
  flex: 1 1 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
}
.quote p { font-style: italic; color: var(--ink-2); margin: 0; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .who .pic {
  width: 50px; height: 50px; border-radius: 50%;
  overflow: hidden; background-color: var(--fallback-3); flex: 0 0 auto;
}
.quote .who .pic img { width: 50px; height: 50px; object-fit: cover; }
.quote .who .name { font-weight: 700; font-size: .95rem; }
.quote .who .loc { font-size: .82rem; color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: .9rem; }

/* ---------- Benefits (zig) ---------- */
.benefit-list { display: flex; flex-wrap: wrap; gap: 22px; }
.benefit {
  flex: 1 1 260px;
  display: flex; gap: 15px; align-items: flex-start;
  padding: 22px; background: var(--mist); border-radius: var(--radius-sm);
}
.benefit .chk {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.benefit h3 { font-size: 1.05rem; margin: 0 0 4px; }
.benefit p { margin: 0; font-size: .95rem; color: var(--slate); }

/* ---------- Pricing ---------- */
.reveal-note {
  text-align: center; max-width: 620px; margin: 0 auto 40px; color: var(--slate);
}
.price-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.price-card {
  flex: 1 1 300px; max-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.price-card.feature { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.price-card .tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--teal-dk); background: var(--mist-2);
  padding: 5px 12px; border-radius: 999px;
}
.price-card h3 { margin: 0; }
.price-card .price { font-size: 2.1rem; font-weight: 800; color: var(--ink); }
.price-card .price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-card ul li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--slate); }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800;
}
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- Business model ---------- */
.model-box {
  display: flex; flex-wrap: wrap; gap: 30px; align-items: center;
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px;
}
.model-box > div { flex: 1 1 320px; }

/* ---------- Form ---------- */
.form-wrap { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.form-intro { flex: 1 1 300px; }
.form-card {
  flex: 1 1 380px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--mist); transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.steps { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mist-2);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--slate);
}
.step.on .n { background: var(--teal); color: #fff; }
.form-error { color: #c0392b; font-size: .85rem; margin: 2px 0 10px; display: none; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--slate); }
.consent input { width: 18px; height: 18px; margin-top: 3px; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 20px; z-index: 55;
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: #fff;
  padding: 12px 14px 12px 22px; border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(16,33,58,.7);
  max-width: calc(100% - 32px);
  transition: opacity .25s ease, transform .25s ease;
}
.sticky-cta.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 120%); }
.sticky-cta span { font-weight: 600; font-size: .95rem; }
.sticky-cta .btn { padding: 11px 20px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d0df; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1627; color: #9fabbf; padding: 64px 0 30px; font-size: .92rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-col { flex: 1 1 200px; min-width: 180px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .4px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #9fabbf; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-brand { max-width: 300px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.no-click { color: #c3cedd; }
.footer-disclaimer {
  margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; line-height: 1.7; color: #7f8da3;
}
.footer-bottom {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between; font-size: .8rem; color: #6b7a90;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -18px rgba(16,33,58,.6);
  padding: 22px 24px; max-width: 520px; margin: 0 auto;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .9rem; color: var(--slate); margin: 0 0 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { padding: 11px 22px; font-size: .92rem; }

/* ---------- Legal / inner pages ---------- */
.page-hero { background: var(--mist); padding: 60px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { color: var(--teal-dk); }
.legal { padding: 60px 0 80px; }
.legal .narrow h2 { margin-top: 38px; font-size: 1.4rem; }
.legal .narrow h3 { margin-top: 26px; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--slate); line-height: 1.9; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 30px; }
.contact-card {
  flex: 1 1 260px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card p { color: var(--slate); margin: 0; }

/* ---------- Thanks ---------- */
.thanks-wrap { text-align: center; max-width: 620px; margin: 0 auto; padding: 96px 22px; }
.thanks-mark {
  width: 84px; height: 84px; border-radius: 50%; background: var(--teal);
  color: #fff; font-size: 2.6rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px; box-shadow: var(--shadow);
}
.thanks-wrap .ref {
  display: inline-block; background: var(--mist-2); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; color: var(--ink); margin: 10px 0 24px;
}

/* ---------- Utilities (remplacent les styles en ligne) ---------- */
.eyebrow-amber { color: var(--amber) !important; }
.lead-left { margin-left: 0; margin-right: 0; }
.mt-18 { margin-top: 18px; }
.mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; }
.mt-30 { margin-top: 30px; }
.mt-44 { margin-top: 44px; }
.btn-block { width: 100%; justify-content: center; margin-top: 18px; }
.center-x { justify-content: center; }
.card-lead { color: var(--slate); font-size: .95rem; margin: 0; }
.muted-light { color: #aeb9cc; font-size: .95rem; }
.footnote-light { font-size: .82rem; color: #9fb0c6; margin-top: 14px; }
.field-hint { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.section.band-ink { background: var(--ink); }
.section.band-teal { background: var(--teal-dk); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 24px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .split-media img { height: 300px; }
  .hero-inner { padding: 84px 22px 90px; }
  .section { padding: 60px 0; }
  .sticky-cta span { display: none; }
}
