/* vision-ravine — Domotique / Maison intelligente
   Archetype: SIDEBAR LAYOUT (navigation verticale fixe à gauche)
   Flexbox uniquement — aucune grille CSS. */

:root {
  --ink: #0f141b;
  --panel: #161e29;
  --panel-2: #1d2733;
  --paper: #f5f2ec;
  --paper-2: #ece7dc;
  --line: #e0dacd;
  --line-dark: #2a3542;
  --accent: #d98a2b;
  --accent-soft: #f0c789;
  --teal: #3d7d8a;
  --teal-soft: #cfe0e2;
  --muted: #6a7482;
  --muted-light: #9aa3af;
  --ok: #3f8f6b;
  --img-fallback: #27323f;
  --img-fallback-light: #d6cfc1;
  --shadow: 0 18px 50px rgba(15, 20, 27, 0.12);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }

/* ============ SHELL ============ */
.app-shell { display: flex; align-items: stretch; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 288px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 26px 26px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
}
.brand { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.brand-mark {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-dot {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-dot svg { width: 30px; height: 30px; }
.brand-sub { font-size: 0.74rem; color: var(--muted-light); letter-spacing: 0.14em; text-transform: uppercase; padding-left: 41px; }

.ad-disclosure {
  margin-top: 20px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 600;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 9px;
  color: var(--muted-light); font-weight: 600; font-size: 0.98rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.side-nav a .nav-ic { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); transition: background 0.18s; }
.side-nav a:hover { background: var(--panel); color: var(--paper); transform: translateX(3px); }
.side-nav a:hover .nav-ic { background: var(--accent); }
.side-nav a.is-active { background: var(--panel-2); color: #fff; }
.side-nav a.is-active .nav-ic { background: var(--accent); }

.side-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--accent);
  color: #1a1206;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
  margin-top: 26px;
  transition: background 0.18s, transform 0.18s;
}
.side-cta:hover { background: var(--accent-soft); transform: translateY(-2px); }

.side-legal { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.side-legal a { font-size: 0.74rem; color: var(--muted); transition: color 0.18s; }
.side-legal a:hover { color: var(--accent-soft); }
.side-copy { margin-top: 14px; font-size: 0.7rem; color: var(--muted); }

/* Mobile top bar + toggle */
.mobile-bar { display: none; }

/* ---- Main ---- */
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.main > section { padding: 72px clamp(24px, 6vw, 92px); }
.section-tight { padding-top: 46px; padding-bottom: 46px; }

/* ============ BUTTONS / CTA ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-primary:hover { background: #c67c22; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--panel-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; border-color: rgba(245,242,236,0.5); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.link-inline {
  font-weight: 700; color: var(--teal);
  border-bottom: 2px solid var(--teal-soft); padding-bottom: 1px;
  transition: border-color 0.18s, color 0.18s;
}
.link-inline:hover { color: var(--accent); border-color: var(--accent); }

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

/* ============ HERO (visual-first within section) ============ */
.hero {
  background: var(--ink); color: var(--paper);
  display: flex; align-items: stretch; gap: 0;
  padding: 0 !important;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 440px; padding: clamp(40px, 6vw, 86px) clamp(24px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p.lead { font-size: 1.12rem; color: #cfd5dd; max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 8px; }
.hero-stat strong { display: block; font-size: 1.7rem; color: var(--accent-soft); }
.hero-stat span { font-size: 0.82rem; color: var(--muted-light); }
.hero-media { flex: 1 1 360px; background: var(--img-fallback); position: relative; min-height: 340px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(15,20,27,0.82); color: var(--paper);
  padding: 12px 18px; border-radius: 10px; font-size: 0.86rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; backdrop-filter: blur(3px);
}

/* ============ SPLIT SECTIONS ============ */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 64px); }
.split-rev { flex-direction: row-reverse; }
.split-text { flex: 1 1 360px; min-width: 0; }
.split-media { flex: 1 1 340px; min-width: 0; }
.media-frame {
  background: var(--img-fallback-light);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--paper); color: var(--ink);
  font-size: 0.76rem; font-weight: 700; padding: 7px 13px; border-radius: 30px;
}

.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .section-head p { color: #c4ccd5; }
.bg-ink h2, .bg-ink h3 { color: var(--paper); }

/* ============ FEATURE LIST (check rows) ============ */
.feature-rows { display: flex; flex-direction: column; gap: 16px; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; }
.feature-row .fr-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.feature-row h4 { font-size: 1.02rem; margin-bottom: 2px; }
.feature-row p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ============ CARDS ============ */
.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.card {
  flex: 1 1 280px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.card-media { height: 170px; background: var(--img-fallback-light); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 0.95rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.card-foot .link-inline { font-size: 0.9rem; }

/* ============ SERVICE / PRICE LIST ============ */
.price-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.price-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.price-num { font-size: 1.1rem; font-weight: 800; color: var(--accent); width: 42px; flex-shrink: 0; }
.price-main { flex: 1 1 280px; min-width: 0; }
.price-main h3 { margin-bottom: 4px; }
.price-main p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price-tag { flex-shrink: 0; text-align: right; }
.price-tag .amount { font-size: 1.5rem; font-weight: 800; }
.price-tag .from { display: block; font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-item .btn { flex-shrink: 0; }

.price-card-wrap { display: flex; flex-wrap: wrap; gap: 22px; }
.price-card {
  flex: 1 1 240px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column;
}
.price-card.is-featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card.is-featured p { color: #c4ccd5; }
.price-card .pc-name { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); font-weight: 700; }
.price-card.is-featured .pc-name { color: var(--accent-soft); }
.price-card .pc-price { font-size: 2rem; font-weight: 800; margin: 10px 0 4px; }
.price-card ul { list-style: none; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 0.92rem; display: flex; gap: 9px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ============ STEPS (process) ============ */
.steps { display: flex; flex-wrap: wrap; gap: 20px; }
.step { flex: 1 1 200px; padding: 26px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step .step-n { font-size: 2.4rem; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.step h3 { margin: 10px 0 6px; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ============ STATS BAND ============ */
.stat-band { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.stat-cell { flex: 1 1 180px; text-align: center; padding: 10px; }
.stat-cell strong { display: block; font-size: 2.4rem; color: var(--accent-soft); }
.stat-cell span { color: #c4ccd5; font-size: 0.92rem; }

/* ============ TESTIMONIAL / QUOTE ============ */
.quotes { display: flex; flex-wrap: wrap; gap: 22px; }
.quote {
  flex: 1 1 300px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 12px; padding: 26px 24px;
}
.quote p { font-size: 1.02rem; font-style: italic; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.quote .who b { display: block; font-size: 0.92rem; }
.quote .who span { font-size: 0.82rem; color: var(--muted); }

/* ============ FORM ============ */
.form-wrap { display: flex; flex-wrap: wrap; gap: clamp(30px, 5vw, 60px); align-items: flex-start; }
.form-aside { flex: 1 1 300px; }
.form-aside ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.form-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.form-aside li .fa-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: #5a3c11; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.contact-form { flex: 1 1 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.86rem; font-weight: 700; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper);
  color: var(--ink); transition: border-color 0.18s, background 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.form-error { display: none; background: #fbe9e4; color: #a23b22; border-radius: 8px; padding: 10px 13px; font-size: 0.86rem; margin-bottom: 16px; }
.form-error.show { display: block; }

/* ============ CONTACT INFO BLOCKS ============ */
.info-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.info-card { flex: 1 1 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.info-card .ic-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.info-card .plain-email { color: var(--ink); font-weight: 600; }

/* ============ THANKS ============ */
.thanks-hero { background: var(--ink); color: var(--paper); text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks-check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.thanks-check svg { width: 40px; height: 40px; }
.thanks-hero p { color: #cfd5dd; max-width: 52ch; }
.thanks-ref { display: inline-block; margin: 8px 0 26px; background: var(--panel-2); border-radius: 10px; padding: 12px 20px; }
.thanks-ref span { color: var(--muted-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.thanks-ref strong { color: var(--accent-soft); font-size: 1.15rem; }

/* ============ LEGAL / ARTICLE ============ */
.legal { max-width: 74ch; }
.legal h2 { margin: 36px 0 14px; }
.legal h3 { margin: 24px 0 8px; }
.legal p, .legal li { color: #3a434f; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 7px; }
.legal .updated { color: var(--muted); font-size: 0.86rem; margin-bottom: 26px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 30px; }
.toc h3 { margin: 0 0 10px; font-size: 1rem; }
.toc ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.toc a { color: var(--teal); font-weight: 600; font-size: 0.9rem; }
.toc a:hover { color: var(--accent); }

/* ============ DISCLAIMER / FOOTER ============ */
.disclaimer-band { background: var(--panel); color: #c4ccd5; }
.disclaimer-band .section-head { max-width: none; margin-bottom: 0; }
.disclaimer-band h3 { color: var(--accent-soft); margin-bottom: 10px; }
.disclaimer-band p { font-size: 0.92rem; margin-bottom: 8px; }

.site-foot { background: var(--ink); color: var(--muted-light); padding: 48px clamp(24px,6vw,92px) 36px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; border-bottom: 1px solid var(--line-dark); padding-bottom: 28px; margin-bottom: 20px; }
.foot-col { flex: 1 1 180px; }
.foot-col h4 { color: var(--paper); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.foot-col a, .foot-col p { display: block; color: var(--muted-light); font-size: 0.9rem; margin-bottom: 8px; transition: color 0.18s; }
.foot-col a:hover { color: var(--accent-soft); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; font-size: 0.82rem; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 32px));
  background: var(--panel-2); color: var(--paper);
  border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 20px 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  z-index: 200; transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 280px; color: #d4dae1; }
.cookie-banner p a { color: var(--accent-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: 16px 20px; gap: 10px 20px;
  }
  .brand { margin-bottom: 0; flex: 1 1 auto; }
  .brand-sub, .side-cta, .side-legal, .side-copy { display: none; }
  .ad-disclosure { order: 3; flex-basis: 100%; margin-top: 4px; }
  .mobile-bar { display: flex; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2);
    color: var(--paper); border: none; font-family: inherit; font-weight: 700;
    padding: 10px 16px; border-radius: 9px; cursor: pointer; font-size: 0.92rem;
  }
  .side-nav {
    order: 4; flex-basis: 100%; margin-top: 8px; gap: 2px;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .side-nav.open { max-height: 420px; }
  .main > section { padding: 50px 22px; }
  .hero-copy { padding: 44px 24px; }
}
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}
