/* hue-beaver — Maison connectée
   Archetype: Split-Screen Modern (flexbox only) */

:root {
  --ink: #15171c;
  --ink-soft: #3b414f;
  --muted: #6c7280;
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --paper-3: #e7dfd1;
  --card: #ffffff;
  --accent: #d8623a;
  --accent-deep: #b24c2a;
  --teal: #1c7c6b;
  --teal-deep: #15604f;
  --line: rgba(21, 23, 28, 0.12);
  --line-soft: rgba(21, 23, 28, 0.07);
  --shadow: 0 18px 40px -24px rgba(21, 23, 28, 0.45);
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Advertising disclosure bar ---------- */
.ad-bar {
  background: var(--ink);
  color: #f3ede2;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 16px;
}
.ad-bar strong { color: #f3b78f; font-weight: 600; }

/* ---------- Header / split navigation ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent-deep); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-cta:hover { background: var(--accent-deep); text-decoration: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.link-inline {
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 2px solid rgba(216, 98, 58, 0.3);
}
.link-inline:hover { border-color: var(--accent-deep); text-decoration: none; }

/* ---------- Sections / split layout ---------- */
section { position: relative; }
.pad { padding: 84px 0; }
.pad-lg { padding: 110px 0; }
.pad-sm { padding: 56px 0; }

.split {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.split > * { flex: 1 1 360px; }
.split.reverse { flex-direction: row-reverse; }
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: var(--shadow);
}
.split-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.split-text { max-width: 520px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper), var(--paper-2)); overflow: hidden; }
.hero .split-media img { height: 540px; }
.hero h1 { margin-bottom: 0.4em; }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--ink); }
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Narrow editorial intro ---------- */
.narrow { max-width: 680px; margin: 0 auto; text-align: center; }
.narrow p { font-size: 1.22rem; color: var(--ink-soft); }
.narrow .big-quote {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- Dark problem section ---------- */
.dark { background: var(--ink); color: #e9e6df; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: #c3c0b8; }
.dark .eyebrow { color: #f3b78f; }
.dark .eyebrow::before { background: #f3b78f; }
.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}
.problem-list .pitem {
  flex: 1 1 240px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 24px;
}
.problem-list .pitem span { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.problem-list .pitem h3 { font-size: 1.1rem; }
.problem-list .pitem p { margin: 0; font-size: 0.95rem; }

/* ---------- Insight / how it works ---------- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
}
.step {
  flex: 1 1 260px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step .num {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { font-size: 0.97rem; margin: 0; }

/* ---------- Trust band / stats ---------- */
.band { background: var(--teal-deep); color: #eafaf6; }
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  text-align: center;
}
.stats .stat { flex: 1 1 180px; }
.stats .stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: #fff;
}
.stats .stat span { font-size: 0.95rem; color: #bfe6dd; }

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 44px; }
.quote {
  flex: 1 1 300px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.5);
}
.quote p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.quote .who b { display: block; font-size: 0.95rem; }
.quote .who span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Benefits cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; }
.card {
  flex: 1 1 300px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 34px -28px rgba(0, 0, 0, 0.55);
}
.card .card-media { background: var(--paper-3); }
.card .card-media img { width: 100%; height: 190px; object-fit: cover; }
.card .card-body { padding: 24px 24px 28px; }
.card .card-body h3 { font-size: 1.2rem; }
.card .card-body p { font-size: 0.97rem; margin-bottom: 0; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}

/* ---------- Pricing (reveal) ---------- */
.price-intro { max-width: 640px; }
.plans { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; }
.plan {
  flex: 1 1 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.plan .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(216, 98, 58, 0.12);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .price {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  color: var(--ink);
  margin: 6px 0 2px;
}
.plan .price small { font-size: 0.9rem; color: var(--muted); font-family: "Inter", sans-serif; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan ul li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.plan .btn { margin-top: auto; }

/* ---------- Form ---------- */
.form-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: stretch;
}
.form-aside { flex: 1 1 320px; }
.form-aside ul { list-style: none; padding: 0; margin: 24px 0 0; }
.form-aside ul li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.form-aside ul li b { color: var(--ink); }
.form-card {
  flex: 1 1 400px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 98, 58, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-steps {
  display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap;
}
.form-steps span {
  flex: 1 1 80px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--line);
}
.form-steps span.on { color: var(--accent-deep); border-color: var(--accent); }
.field-error { color: var(--accent-deep); font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input,
.field.invalid select { border-color: var(--accent-deep); }
.field.invalid .field-error { display: block; }

/* ---------- Soft CTA band ---------- */
.cta-soft {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-soft h2 { color: #fff; margin: 0; max-width: 560px; }
.cta-soft .btn-light { background: #fff; color: var(--accent-deep); }
.cta-soft .btn-light:hover { background: var(--ink); color: #fff; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--paper-2);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 22px 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.disclaimer b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink);
  color: #bdbab2;
  padding: 64px 0 28px;
}
.site-foot h4 { color: #fff; font-family: "Inter", sans-serif; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.foot-col { flex: 1 1 200px; }
.foot-col.about { flex: 2 1 320px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col ul li { margin-bottom: 10px; }
.foot-col ul li a { color: #bdbab2; font-size: 0.93rem; }
.foot-col ul li a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-family: "Fraunces", serif; font-size: 1.25rem; margin-bottom: 14px; }
.foot-email { color: #f3b78f; font-weight: 500; user-select: all; }
.foot-refs { font-size: 0.82rem; color: #8f8d87; margin-top: 18px; }
.foot-refs a { color: #bdbab2; }
.foot-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8f8d87;
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, background 0.2s ease;
}
.sticky-cta:hover { transform: translateY(-2px); background: var(--accent-deep); text-decoration: none; }

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

/* ---------- Generic page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.page-hero .wrap { max-width: 820px; }
.page-hero p { font-size: 1.15rem; max-width: 640px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.prose th { background: var(--paper-2); }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.contact-card {
  flex: 1 1 240px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 14px 34px -30px rgba(0, 0, 0, 0.5);
}
.contact-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--paper-2); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.15rem; }
.contact-card p { margin: 0; font-size: 0.98rem; }
.contact-email { color: var(--accent-deep); font-weight: 600; user-select: all; }

/* ---------- Thanks page ---------- */
.thanks-hero { min-height: 72vh; display: flex; align-items: center; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.thanks-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--card); border-radius: var(--radius);
  padding: 54px 44px; box-shadow: var(--shadow); border: 1px solid var(--line-soft);
}
.thanks-check {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; margin: 0 auto 24px;
}
.thanks-card .ref {
  display: inline-block; margin: 8px 0 22px;
  background: var(--paper-2); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; color: var(--teal-deep);
}

/* ---------- Utilitaires (évite tout CSS en ligne) ---------- */
.eyebrow.center { justify-content: center; }
.measure { max-width: 620px; }
.measure-wide { max-width: 640px; }
.section-alt { background: var(--paper-2); }
.mt-22 { margin-top: 22px; }
.mt-34 { margin-top: 34px; }
.mt-40 { margin-top: 40px; }
.mt-44 { margin-top: 44px; }
.mb-4 { margin-bottom: 4px; }
.muted-note { font-size: 0.9rem; color: var(--muted); }
.fine-note { font-size: 0.82rem; color: var(--muted); }
.actions-center { justify-content: center; }
.foot-label { color: #fff; }
.foot-sub { display: block; font-size: 0.8rem; color: #8f8d87; }
.foot-brand .mark { width: 30px; height: 30px; border-radius: 9px; }
.foot-bottom.flush { margin: 0; padding: 0; border: none; }
.foot-bottom a { color: #bdbab2; }
.foot-bottom a:hover { color: #fff; }
.card-price { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; color: var(--ink); margin: 12px 0 6px; }
.card-price small { font-size: 0.85rem; color: var(--muted); font-family: "Inter", sans-serif; }
.small-muted { font-size: 0.85rem; color: var(--muted); }
.muted-95 { font-size: 0.95rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .site-head.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .split-media img, .hero .split-media img { height: 340px; }
  .pad, .pad-lg { padding: 64px 0; }
  .cta-soft { padding: 36px 26px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .sticky-cta { left: 20px; right: 20px; justify-content: center; }
  .plan, .form-card { padding: 26px 22px; }
}
