:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --ink: #1a1f24;
  --muted: #5d646c;
  --line: #e4ddcf;
  --green: #1f5c45;
  --green-dark: #164534;
  --green-soft: #e3eee8;
  --amber: #f2a541;
  --amber-soft: #fdf0dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 31, 36, .06), 0 8px 24px rgba(26, 31, 36, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--green); }

h1, h2, h3 { line-height: 1.2; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 40px; }

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 16px/1 var(--font);
  padding: 16px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* En-tête */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 242, 234, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }

/* Hero */

.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a5200;
  font-size: 14px;
  font-weight: 600;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 em { font-style: italic; color: var(--green); }

.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 32px 0 0; color: var(--muted); font-size: 15px; }
.hero-facts li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Téléphone de démonstration */

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 290px;
  padding: 14px;
  border-radius: 44px;
  background: #1c2126;
  box-shadow: 0 30px 60px rgba(26, 31, 36, .25);
  transform: rotate(2deg);
}
.phone-notch { width: 90px; height: 22px; margin: 0 auto 8px; border-radius: 0 0 14px 14px; background: #0e1114; }
.phone-screen { border-radius: 32px; background: var(--bg); padding: 22px 18px 26px; font-size: 14px; }

.ph-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ph-day { color: var(--muted); font-size: 13px; }
.ph-child { font-weight: 700; font-size: 18px; }

.ph-budget { background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.ph-budget-top { display: flex; align-items: baseline; gap: 6px; }
.ph-big { font-size: 26px; font-weight: 700; }
.ph-of { color: var(--muted); }
.ph-bar { height: 8px; border-radius: 99px; background: var(--green-soft); margin: 10px 0 8px; overflow: hidden; }
.ph-bar span { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.ph-range { color: var(--muted); font-size: 12.5px; }

.ph-cats { list-style: none; padding: 0; margin: 14px 0; }
.ph-cats li { display: grid; grid-template-columns: 68px 1fr 46px; align-items: center; gap: 8px; padding: 5px 2px; font-size: 13px; }
.ph-cats li span:last-child { text-align: right; color: var(--muted); }
.ph-cat-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ph-cat-bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }

.ph-request { background: var(--surface); border: 1.5px solid var(--amber); border-radius: 16px; padding: 12px 14px; }
.ph-request p { margin: 0 0 10px; line-height: 1.4; }
.ph-request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-request-actions span { text-align: center; padding: 7px 0; border-radius: 99px; font-weight: 600; font-size: 13px; }
.ph-no { background: var(--bg); color: var(--muted); }
.ph-yes { background: var(--green); color: #fff; }

.toast {
  position: absolute;
  top: -18px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.3;
}
.toast strong { display: block; }
.toast span { color: var(--muted); font-size: 13px; }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }

/* Sections */

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-title { font-family: var(--font-title); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; }
.section-lead { color: var(--muted); font-size: 18px; margin: 14px 0 44px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.feature-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; background: var(--amber-soft); border-color: #f3dcb6; }
.feature-wide svg { flex: none; width: 52px; height: 52px; padding: 10px; background: var(--surface); }
.feature-wide h3 { margin-top: 0; }
.feature-wide > div { flex: 1; }
.platforms { flex: none; display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.platforms li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid #f3dcb6; font-weight: 600; font-size: 15px; }

.privacy { background: var(--green); color: #eef4f0; border-top: 0; }
.privacy .section-title { color: #fff; }
.privacy-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.privacy-inner p { font-size: 18px; margin: 18px 0 0; }
.privacy-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-points li { padding: 14px 18px 14px 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); position: relative; }
.privacy-points li::before { content: "✓"; position: absolute; left: 18px; color: var(--amber); font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber-soft); color: #8a5200; font-weight: 700; }
.steps h3 { font-size: 18px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { margin-top: 28px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; gap: 22px; }
.footer a { color: var(--muted); }

/* Popup d'inscription */

.signup {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 34px 30px 30px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(26, 31, 36, .3);
}
.signup::backdrop { background: rgba(26, 31, 36, .5); backdrop-filter: blur(2px); }
.signup h2 { font-family: var(--font-title); font-size: 28px; font-weight: 600; }

.signup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.signup-close:hover { background: var(--bg); }

.signup-intro { color: var(--muted); margin: 10px 0 14px; font-size: 16px; }
.signup-requirement { margin: 0 0 22px; padding: 10px 14px; border-radius: 10px; background: var(--amber-soft); color: #6b4200; font-size: 14.5px; line-height: 1.45; }

.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 17px var(--font);
}
.field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field[aria-invalid="true"] { border-color: #c0392b; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }

.form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbeae8; color: #9b2c20; font-size: 15px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup-done { text-align: center; padding: 10px 0 0; }
.signup-done p { color: var(--muted); margin: 10px 0 24px; }
.done-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Page de texte (confidentialité) */

.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #353b42; }
.doc .updated { color: var(--muted); font-size: 15px; }
.todo { background: var(--amber-soft); padding: 0 4px; border-radius: 4px; }

/* Page de repli du lien d'adhésion /join/<code> (join-family.html) */

.join-code {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--green-dark);
  font: 700 clamp(32px, 6vw, 44px)/1.1 var(--font);
  letter-spacing: .08em;
}
.join-steps { padding-left: 22px; }
.join-steps li { margin-bottom: 8px; }
.doc .join-store { margin-top: 28px; }

/* Page d'installation /install (install.html) */

.install-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }

/* Petits écrans */

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .privacy-inner { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .toast { left: 0; top: -22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .feature-wide { flex-direction: column; align-items: flex-start; gap: 16px; }
  .phone { width: 260px; transform: none; }
  .topbar .btn-small { padding: 9px 14px; font-size: 14px; }
  .signup { padding: 30px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
