/* ==========================================================================
   lyric-lotus — Maison connectée
   Archetype: SPLIT-SCREEN MODERN
   Layout: Flexbox only (no grid), external CSS, no inline styles
   ========================================================================== */

:root {
  --ink: #141a2e;
  --ink-2: #232a45;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-tint: #eef1fa;
  --band: #0f1527;
  --band-2: #171f3a;
  --accent: #f0a93c;
  --accent-ink: #5a3d07;
  --blue: #3a63e8;
  --blue-soft: #e5ecff;
  --muted: #5c657f;
  --muted-2: #8a92a8;
  --line: #e2e7f3;
  --line-dark: #2a3356;
  --fallback: #d7deef;
  --ok: #2fa96b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(20, 26, 46, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(20, 26, 46, 0.4);
  --maxw: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.lead { font-size: 1.12rem; color: var(--muted); }

.eyebrow.on-dark { color: var(--accent); }
.mt-sm { margin-top: 22px; }

/* ---------- Buttons / CTA engine ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 14px 30px -14px rgba(240, 169, 60, 0.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
}
.link-cta::after { content: "\2192"; transition: transform 0.15s ease; }
.link-cta:hover { text-decoration: none; }
.link-cta:hover::after { transform: translateX(4px); }

/* ---------- Header: split nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.adbar {
  background: var(--band);
  color: #cdd5ee;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.adbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 24px; text-align: center; }
.adbar strong { color: var(--accent); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--ink));
  display: flex; align-items: center; justify-content: center;
}
.brand .mark svg { width: 20px; height: 20px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 0.97rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a.active { color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px; width: 44px; height: 42px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; transition: 0.2s; }

/* ---------- Hero (split-screen) ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: flex; align-items: stretch; gap: 0; }
.hero-text { flex: 1 1 50%; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { margin: 18px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats .stat strong { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -0.03em; }
.hero-stats .stat span { font-size: 0.82rem; color: var(--muted); }
.hero-media { flex: 1 1 50%; position: relative; min-height: 420px; background: var(--fallback); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 28px; bottom: 28px;
  background: rgba(15, 21, 39, 0.85); color: #fff; backdrop-filter: blur(6px);
  padding: 14px 18px; border-radius: 14px; font-size: 0.85rem; max-width: 240px;
}
.hero-badge strong { color: var(--accent); }

/* ---------- Split sections ---------- */
.split { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 7vw, 104px) 0; }
.split.reverse { flex-direction: row-reverse; }
.split-media { flex: 1 1 48%; position: relative; }
.split-copy { flex: 1 1 52%; }
.split-copy h2 { margin: 14px 0 16px; }
.framed { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--fallback); box-shadow: var(--shadow); }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed.tall { aspect-ratio: 4 / 5; }
.framed.wide { aspect-ratio: 5 / 4; }
.media-tag {
  position: absolute; top: 18px; left: 18px;
  background: #fff; color: var(--ink); font-size: 0.78rem; font-weight: 700;
  padding: 8px 14px; border-radius: 30px; box-shadow: var(--shadow-soft);
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .tick { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.check-list p { margin: 0; }
.check-list strong { display: block; }

/* ---------- Band (dark full-width) ---------- */
.band { background: var(--band); color: #e9edfb; position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band::after { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(58,99,232,0.4), transparent 70%); }
.band .wrap { position: relative; z-index: 1; padding: clamp(56px, 7vw, 96px) 24px; }
.band .lead { color: #b8c1e0; }

.feature-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; }
.feature { flex: 1 1 220px; background: var(--band-2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 28px 24px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(240,169,60,0.14); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: #aab4d4; font-size: 0.95rem; margin: 0; }

/* ---------- Section heading ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 14px 0 12px; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-tint); }

/* ---------- Service / pricing cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 300px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft); transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.card:focus-within, .card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; height: 180px; background: var(--fallback); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.95rem; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 18px; }
.price { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.price-unit { font-size: 0.85rem; color: var(--muted); }
.card .link-cta { margin-top: auto; }

.price-note { font-size: 0.8rem; color: var(--muted-2); }

/* ---------- Pricing split reveal ---------- */
.reveal-tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; margin-bottom: 18px; }

/* ---------- Testimonials ---------- */
.quotes { display: flex; flex-wrap: wrap; gap: 24px; }
.quote { flex: 1 1 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.quote .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 12px; }
.quote p { font-style: italic; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.quote .who span { font-size: 0.85rem; color: var(--muted); }
.quote .who strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 22px; counter-reset: step; }
.step { flex: 1 1 240px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--band-2)); color: #fff; border-radius: 22px; padding: clamp(36px, 5vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8c1e0; margin: 8px 0 0; max-width: 460px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.form-shell { display: flex; flex-wrap: wrap; gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.form-aside { flex: 1 1 320px; background: var(--band); color: #dfe5f7; padding: clamp(32px, 4vw, 48px); position: relative; }
.form-aside h2 { color: #fff; margin-bottom: 14px; }
.form-aside .lead { color: #aeb8d8; }
.form-aside ul { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.form-aside li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.form-aside li .d { color: var(--accent); font-weight: 800; }
.form-main { flex: 2 1 420px; padding: clamp(32px, 4vw, 48px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--ink-2); }
.field .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink); transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 200px; }
.form-error { color: #c0392b; font-size: 0.85rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field.invalid .form-error { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.form-submit { margin-top: 10px; width: 100%; }

/* ---------- Contact blocks ---------- */
.info-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.info-card { flex: 1 1 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-soft); }
.info-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.no-link { color: var(--ink-2); font-weight: 600; }

/* ---------- Legal / article pages ---------- */
.page-head { background: var(--band); color: #fff; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { color: #fff; margin-bottom: 12px; }
.page-head .lead { color: #aeb8d8; }
.breadcrumb { font-size: 0.82rem; color: #8b96bc; margin-bottom: 16px; }
.breadcrumb a { color: #b8c1e0; }
.doc { max-width: 820px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) 24px; }
.doc h2 { margin: 34px 0 12px; font-size: 1.4rem; }
.doc h3 { margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 7px; }
.doc .updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 30px; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 10px; margin: 22px 0; }
.callout p { margin: 0; }

/* ---------- Thanks ---------- */
.thanks { min-height: 62vh; display: flex; align-items: center; }
.thanks-card { max-width: 620px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.thanks-mark { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; }
.thanks-mark svg { width: 42px; height: 42px; }
.thanks .svc { display: inline-block; background: var(--blue-soft); color: var(--blue); font-weight: 700; padding: 8px 16px; border-radius: 30px; margin: 10px 0 24px; }
.thanks .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: #aab4d4; padding: clamp(50px, 6vw, 76px) 0 30px; font-size: 0.93rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; max-width: 340px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #97a2c4; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: #aab4d4; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact p { margin-bottom: 6px; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.09); margin-top: 40px; padding-top: 26px; color: #8893b5; font-size: 0.84rem; }
.footer-disclaimer .ad-note { background: rgba(240,169,60,0.1); border: 1px solid rgba(240,169,60,0.25); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; color: #d9c29a; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 22px; color: #8893b5; font-size: 0.82rem; }

/* ---------- Floating CTA ---------- */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 40; box-shadow: 0 16px 36px -14px rgba(20,26,46,0.6); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(20,26,46,0.5);
  padding: 22px 24px; display: none; flex-wrap: wrap; align-items: center; gap: 18px;
  max-width: 940px; margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 340px; font-size: 0.9rem; color: var(--muted); }
.cookie-banner a { font-weight: 600; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .hero-inner { flex-direction: column; }
  .hero-media { min-height: 320px; width: 100%; }
  .split, .split.reverse { flex-direction: column; }
  .split-media, .split-copy { flex: 1 1 100%; width: 100%; }
  .cta-band { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { gap: 20px; }
  .adbar .wrap { font-size: 0.68rem; }
  .float-cta { right: 14px; bottom: 14px; }
}
