:root {
  --vert: #2E7D32;
  --vert-sombre: #0D2311;
  --brun: #72563d;
  --surface: #F8FAF8;
  --beige: #EDE6D6;
  --rouge-balise: #C62828;
  --texte: #1c241c;
  --texte-doux: #5a6a5a;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--texte);
  background: #fff;
  line-height: 1.6;
}

h1, h2, .premium-price {
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--vert-sombre);
  color: #fff;
  overflow: hidden;
  padding: 48px 24px 72px;
}

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.topo path {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.06;
  stroke-width: 1.5;
}

.hero-inner {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-text {
  max-width: 560px;
  text-align: center;
}

.hero-logo {
  width: 150px;
  height: auto;
  margin-bottom: 4px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige);
  border: 1px solid rgba(237, 230, 214, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

/* ---------- Formulaire waitlist ---------- */

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.waitlist input[type="email"] {
  flex: 1 1 240px;
  max-width: 340px;
  font: inherit;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--texte);
}
.waitlist input[type="email"]:focus-visible,
.chip:focus-visible, .btn-primary:focus-visible,
.btn-outline:focus-visible, #waitlist-btn:focus-visible,
textarea:focus-visible {
  outline: 3px solid #FFD54F;
  outline-offset: 2px;
}

#website { display: none; }

#waitlist-btn, .btn-primary {
  font: inherit;
  font-weight: 700;
  padding: 14px 26px;
  border: none;
  border-radius: 12px;
  background: var(--vert);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
#waitlist-btn:hover, .btn-primary:hover { background: #256b29; transform: translateY(-1px); }
#waitlist-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.waitlist-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
}
.waitlist-note.error { color: #FFAB91; }

.waitlist-alt {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}
.waitlist-alt a { color: var(--beige); }

/* ---------- Questionnaire ---------- */

.questionnaire {
  margin-top: 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 24px;
}

.q-thanks { font-weight: 600; margin-bottom: 18px; }

.q-block {
  border: none;
  margin-bottom: 18px;
}
.q-block legend {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 10px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font: inherit;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chip:hover { border-color: #fff; }
.chip.on {
  background: var(--vert);
  border-color: var(--vert);
  font-weight: 600;
}

.questionnaire textarea {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--texte);
  resize: vertical;
}

.q-done { margin-top: 14px; font-weight: 600; color: #A5D6A7; }

/* ---------- Page sondage ---------- */

.sondage-hero {
  min-height: 100vh;
  max-width: none;
  padding: 48px 24px 64px;
}
.sondage-hero .hero-inner { justify-content: center; }
.sondage-logo { width: 110px; }
.sondage-hero .questionnaire { margin-top: 8px; }

.q-email {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--texte);
}
.q-email-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.sondage-link { margin-top: 24px; }
.sondage-link a { color: var(--beige); }

/* ---------- Mockup téléphone ---------- */

.hero-phone { flex-shrink: 0; }

.phone {
  position: relative;
  width: 270px;
  border-radius: 36px;
  background: #101810;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #101810;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  color: var(--texte);
}

.app-header {
  background: var(--vert);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 26px 0 10px;
  font-size: 0.95rem;
}

.app-map {
  position: relative;
  height: 110px;
  background:
    radial-gradient(circle at 20% 30%, #c8dcc8 0 18%, transparent 18%),
    radial-gradient(circle at 75% 60%, #cfe0cf 0 22%, transparent 22%),
    linear-gradient(160deg, #dcebdc, #cfe3cf);
}
.pin {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--vert);
  border: 2.5px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.pin-1 { top: 30%; left: 28%; }
.pin-2 { top: 52%; left: 60%; }
.pin-3 { top: 20%; left: 72%; background: var(--brun); }

.app-card {
  background: #fff;
  margin: 10px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.app-card-title { font-weight: 700; font-size: 0.9rem; }
.app-card-meta { font-size: 0.74rem; color: var(--texte-doux); margin: 2px 0 8px; }

.app-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.app-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brun);
}
.chip-level { background: #FFF3E0; color: #E65100; }

.app-join {
  background: var(--vert);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  border-radius: 10px;
}

.app-card-ghost { opacity: 0.55; margin-bottom: 16px; }

/* ---------- L'app en images (carrousel façon App Store) ---------- */

.screens {
  background: var(--surface);
  padding: 64px 0 56px;
}

.screens-title {
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--vert-sombre);
}

.screens-sub {
  text-align: center;
  color: var(--texte-doux);
  margin: 8px 24px 36px;
}

.screens-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 24px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens-track::-webkit-scrollbar { display: none; }

.screen-card {
  flex: 0 0 min(80vw, 340px);
  scroll-snap-align: center;
  border-radius: 32px;
  padding: 36px 28px 40px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(13, 35, 17, 0.14);
}

.screen-card h3 {
  font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.card-vert { background: var(--vert); }
.card-sombre { background: var(--vert-sombre); }
.card-brun { background: var(--brun); }
.card-beige { background: var(--beige); color: var(--vert-sombre); }

.screen-phone {
  width: min(100%, 250px);
  margin: 0 auto;
  background: #101810;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 9px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.screen-crop {
  border-radius: 28px;
  overflow: hidden;
}
.screen-crop img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -13%;
}

.screens-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--vert-sombre);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 35, 17, 0.22);
  transition: transform 0.12s ease, background 0.12s ease;
}
.screens-btn:hover { background: var(--vert); color: #fff; transform: translateY(-50%) scale(1.06); }
.screens-btn:focus-visible { outline: 3px solid #FFD54F; outline-offset: 2px; }
.screens-btn.prev { left: -8px; }
.screens-btn.next { right: -8px; }

@media (min-width: 900px) {
  .screens-btn { display: grid; place-items: center; }
  .screens-btn.prev { left: 16px; }
  .screens-btn.next { right: 16px; }
}

/* ---------- Sentier balisé (sections) ---------- */

main {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.trail {
  position: absolute;
  top: 0;
  bottom: 420px;
  left: 43px;
  border-left: 3px dashed #d3ddd3;
}

.waypoint {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 56px;
}

.blaze {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 38px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg);
  background: #fff;
  position: relative;
  z-index: 1;
}
.blaze i { display: block; height: 11px; }
.blaze i:first-child { background: #fff; border: 1px solid #eee; border-bottom: none; }
.blaze i:last-child { background: var(--rouge-balise); }

.waypoint h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--vert-sombre);
  margin-bottom: 8px;
}
.waypoint p { color: var(--texte-doux); }

/* ---------- Premium ---------- */

.premium { margin: 72px 0; }

.premium-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid #dfe8df;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
}

.premium-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brun);
  margin-bottom: 6px;
}

.premium-price {
  font-size: 1.3rem;
  color: var(--texte-doux);
  margin-bottom: 18px;
}
.premium-price strong {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--vert-sombre);
}

.premium-card ul {
  list-style: none;
  text-align: left;
  max-width: 380px;
  margin: 0 auto 24px;
}
.premium-card li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid #e8efe8;
}
.premium-card li:last-child { border-bottom: none; }
.premium-card li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--vert);
  font-weight: 700;
}

.premium-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--vert);
  font-weight: 600;
}

/* ---------- Interview ---------- */

.interview {
  text-align: center;
  margin-bottom: 72px;
}
.interview h2 {
  font-size: 1.45rem;
  color: var(--vert-sombre);
  margin-bottom: 10px;
}
.interview p {
  color: var(--texte-doux);
  max-width: 460px;
  margin: 0 auto 22px;
}

.btn-outline {
  display: inline-block;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  border: 2px solid var(--vert);
  color: var(--vert);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.btn-outline:hover { background: var(--vert); color: #fff; }

/* ---------- Footer ---------- */

footer {
  background: var(--vert-sombre);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9rem;
}
footer img { opacity: 0.9; margin-bottom: 10px; }
footer a { color: var(--beige); }
.footer-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .hero { padding: 72px 40px 96px; }
  .hero-inner { flex-direction: row; justify-content: space-between; }
  .hero-text { text-align: left; }
  .waitlist { justify-content: flex-start; }
  .hero-phone { transform: rotate(2.5deg); }
}
