/* Dites — feuille de style unique. Thème clair par défaut, sombre via le système ou data-theme. */

:root {
  --bg: #fbf8f4;
  --bg-alt: #f3eee7;
  --surface: #ffffff;
  --text: #1d1a21;
  --text-muted: #5b5561;
  --border: #e4ddd3;
  --accent: #c2410c;
  --accent-hover: #a3360a;
  --accent-contrast: #ffffff;
  --accent-soft: #fde7dc;
  --violet: #6d4bd8;
  --shadow: 0 1px 2px rgb(29 26 33 / 6%), 0 12px 32px rgb(29 26 33 / 8%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131a;
    --bg-alt: #1d1922;
    --surface: #24202a;
    --text: #f4f0f7;
    --text-muted: #b3abbb;
    --border: #37313f;
    --accent: #ff8a5c;
    --accent-hover: #ffa47f;
    --accent-contrast: #1d1a21;
    --accent-soft: #3b2620;
    --violet: #a58bff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #16131a;
  --bg-alt: #1d1922;
  --surface: #24202a;
  --text: #f4f0f7;
  --text-muted: #b3abbb;
  --border: #37313f;
  --accent: #ff8a5c;
  --accent-hover: #ffa47f;
  --accent-contrast: #1d1a21;
  --accent-soft: #3b2620;
  --violet: #a58bff;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }

.site-header nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

.lang-switch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.lang-switch a { padding: 6px 4px; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: none; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: block; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.cta-note { color: var(--text-muted); font-size: 0.95rem; }

.hero-visual { position: relative; padding: 24px 0 56px; }
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-body { padding: 24px 26px 32px; }
.mock-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
.mock-text { font-size: 1.1rem; margin: 0; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
.mock-pill {
  position: absolute;
  right: 8%;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.mic-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); }
.wave { display: flex; align-items: center; gap: 4px; height: 24px; }
.wave i { width: 4px; height: 30%; border-radius: 4px; background: currentColor; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -1.0s; }
.wave i:nth-child(3) { animation-delay: -0.8s; }
.wave i:nth-child(4) { animation-delay: -0.6s; }
.wave i:nth-child(5) { animation-delay: -0.4s; }
.wave i:nth-child(6) { animation-delay: -0.2s; }
.wave i:nth-child(7) { animation-delay: -0.9s; }
.pill-label { font-size: 0.9rem; font-weight: 600; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 40em; margin-bottom: 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step p { color: var(--text-muted); margin: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tier { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tier-plus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier-plus .tag { background: var(--accent-soft); color: var(--accent); }
.tier-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tier-list li { position: relative; padding-left: 26px; color: var(--text-muted); }
.tier-list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tier-list strong { color: var(--text); font-weight: 600; }
.tier-note { margin: 24px 0 64px; color: var(--text-muted); font-size: 0.95rem; }
.install-req { margin: -4px 0 20px; color: var(--text-muted); font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: 1fr 1fr 0.5fr; gap: 24px; align-items: start; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--text-muted); text-align: center; }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.privacy-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.privacy-card:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.privacy-card p:last-child { color: var(--text-muted); margin: 0; }
.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.soon { margin: 32px 0 0; color: var(--text-muted); }
.soon .tag { margin: 0 10px 0 0; background: var(--accent-soft); color: var(--accent); }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.split p { font-size: 1.15rem; color: var(--text-muted); }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.install-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.install-card .btn { align-self: flex-start; margin-top: auto; }
.install-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.install-steps li { position: relative; padding-left: 42px; counter-increment: s; }
.install-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
}

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--text-muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* Pied de page */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 12px; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot-phone { grid-column: 1 / -1; max-width: 280px; justify-self: center; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .tier { padding: 24px; }
  .steps, .privacy-grid, .install-grid, .gallery, .tiers { grid-template-columns: 1fr; }
  .install-card { padding: 24px; }
  .btn { width: 100%; }
  .install-card .btn { align-self: stretch; }
  .mock-pill { right: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .wave i { animation: none; }
  .wave i { height: 60%; }
  .btn { transition: none; }
}

.not-found { display: grid; gap: 48px; margin-top: 48px; }
.not-found section + section { padding-top: 40px; border-top: 1px solid var(--border); }
