:root {
  --green: #2D6D5C;
  --green-dark: #225140;
  --copper: #B4864B;
  --copper-dark: #825128;
  --bg: #F1F4F8;
  --surface: #FFFFFF;
  --text: #14181B;
  --muted: #57636C;
  --line: #E0E3E7;
  --tint: #E4EFEB;
  --shadow: 0 1px 2px rgba(20, 24, 27, .06), 0 12px 32px rgba(20, 24, 27, .08);
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #4E9C86;
    --green-dark: #3B8270;
    --copper: #D0A66E;
    --copper-dark: #E2BE8C;
    --bg: #101413;
    --surface: #1A201E;
    --text: #EEF2F0;
    --muted: #9AA8A3;
    --line: #2A3330;
    --tint: #1E2D29;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(45, 109, 92, .3); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); background: var(--surface); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  padding: .3em .9em;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--green); }
.lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }

/* ---------- Maquette de téléphone ---------- */
.phone {
  width: 300px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: #14181B;
  box-shadow: 0 30px 60px rgba(20, 24, 27, .25);
}
.screen {
  border-radius: 34px;
  overflow: hidden;
  background: #F1F4F8;
  color: #14181B;
  padding: 22px 16px 20px;
  font-size: 13px;
  line-height: 1.4;
}
.screen-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #B4864B;
  color: #fff;
  font-weight: 700;
}
.screen-top strong { display: block; font-size: 14px; }
.screen-top span { color: #57636C; font-size: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; padding: 7px 0; border-radius: 10px; font-weight: 700; font-size: 12px; color: #57636C; background: #fff; }
.tab.on { background: #2D6D5C; color: #fff; }
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 24, 27, .06);
}
.thumb { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; }
.item b { display: block; font-size: 13px; }
.item small { color: #57636C; font-size: 11.5px; }
.secret {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #F6EEE3;
  color: #825128;
  font-size: 10.5px;
  font-weight: 700;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.step p { margin-top: 8px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--green);
}
.feature .icon svg { width: 24px; height: 24px; }
.feature p { margin-top: 8px; color: var(--muted); }

/* ---------- Bloc « surprise » ---------- */
.surprise .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.surprise ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.surprise li { display: flex; gap: 12px; color: var(--muted); }
.surprise li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.compare { display: grid; gap: 16px; }
.view { padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.view-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.view .item { margin: 0; background: var(--bg); box-shadow: none; color: var(--text); }
.view .item small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Appel final ---------- */
.final { padding: 0 0 96px; }
.final-card {
  padding: 64px 32px;
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(135deg, #2D6D5C, #225140);
  color: #fff;
}
.final-card p { margin: 14px auto 0; max-width: 32em; opacity: .85; }
.final-card .btn { margin-top: 28px; background: #fff; color: #225140; }

/* ---------- Pied de page ---------- */
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Pages légales ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text); }
.todo { background: #FDF3D0; color: #6B5300; padding: 0 .3em; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .surprise .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 32px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .final-card { padding: 48px 20px; border-radius: 24px; }
}

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