/* ============================================================
   ScaperSnap — site vitrine
   Palette : verts de conifères + tons de pavé (pierre, sable)
   ============================================================ */
:root {
  --ink: #16281e;        /* vert-noir profond (texte) */
  --pine: #2c5e3f;       /* vert principal (actions) */
  --pine-deep: #1e4630;  /* survol */
  --moss: #5d7c69;       /* texte secondaire */
  --stone: #efece4;      /* fond clair « pierre » */
  --sand: #c9b48f;       /* accent chaleureux « sable/pavé » */
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(22, 40, 30, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }

h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", sans-serif; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.section { padding: 84px 0; }
.section-lead { color: var(--moss); max-width: 620px; margin-top: 12px; font-size: 1.06rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 14px 28px; font-size: 1rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-outline { border: 2px solid var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: var(--white); }
.btn-ghost { color: var(--ink); padding: 10px 16px; }
.btn-ghost:hover { color: var(--pine); }
.btn-sm { font-size: .92rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ---------- Entête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22, 40, 30, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.35rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em;
}
.brand span { color: var(--pine); }
.header-nav { display: flex; gap: 22px; margin-left: 8px; }
.header-nav a { text-decoration: none; color: var(--moss); font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--pine); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-pill {
  display: flex; border: 1.5px solid rgba(22, 40, 30, .2);
  border-radius: 999px; overflow: hidden;
}
.lang-pill button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font: 600 .82rem "Figtree", sans-serif; color: var(--moss);
}
.lang-pill button.active { background: var(--ink); color: var(--white); }

@media (max-width: 720px) { .header-nav { display: none; } }

/* ---------- Héros ---------- */
.hero { padding: 72px 0 48px; background:
  linear-gradient(180deg, var(--stone) 0%, var(--white) 78%); }
.eyebrow {
  font-weight: 700; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pine);
}
.hero-title {
  font-size: clamp(3rem, 9vw, 5.6rem); font-weight: 800;
  letter-spacing: -.03em; margin: 10px 0 18px;
}
.hero-sub { font-size: 1.15rem; color: var(--moss); max-width: 560px; }
.hero-cta { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { color: var(--moss); font-size: .92rem; }
.slider-wrap { margin-top: 48px; }
.slider-caption { text-align: center; color: var(--moss); font-size: .9rem; margin-top: 12px; }
.slider-caption.on-dark { color: rgba(255, 255, 255, .75); }

/* ---------- Curseur avant/après (élément signature) ---------- */
.ba-slider {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.ba-after-clip {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba-after-clip img { position: absolute; inset: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: var(--white); transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(22, 40, 30, .18);
}
.ba-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--white); color: var(--ink); border-radius: 999px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; letter-spacing: -.05em;
  box-shadow: 0 4px 14px rgba(22, 40, 30, .3);
}
.ba-tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 14px; background: rgba(22, 40, 30, .75); color: var(--white); }
.ba-tag-after { right: 14px; background: var(--white); color: var(--pine); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step {
  background: var(--stone); border-radius: var(--radius); padding: 28px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--pine);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--moss); font-size: .97rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Boucle de leads ---------- */
.section-dark { background: var(--ink); color: var(--white); }
.leads-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
.leads-text p { color: rgba(255, 255, 255, .82); margin-top: 14px; }
.leads-list { list-style: none; margin: 22px 0 30px; }
.leads-list li {
  padding: 10px 0 10px 34px; position: relative;
  color: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.leads-list li:last-child { border-bottom: 0; }
.leads-list li::before {
  content: "→"; position: absolute; left: 4px; color: var(--sand); font-weight: 700;
}
@media (max-width: 900px) { .leads-grid { grid-template-columns: 1fr; } }

/* ---------- Forfaits ---------- */
.billing-toggle {
  display: inline-flex; margin-top: 30px; border-radius: 999px;
  background: var(--stone); padding: 5px;
}
.billing-toggle button {
  border: 0; background: transparent; padding: 9px 22px; border-radius: 999px;
  font: 600 .95rem "Figtree", sans-serif; color: var(--moss); cursor: pointer;
}
.billing-toggle button.active { background: var(--ink); color: var(--white); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.plan {
  border: 1.5px solid rgba(22, 40, 30, .12); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  background: var(--white);
}
.plan-featured { border-color: var(--pine); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; left: 26px; background: var(--pine); color: var(--white);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.plan-price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount {
  font-family: "Bricolage Grotesque", sans-serif; font-size: 2.3rem; font-weight: 800;
}
.plan-price .per { color: var(--moss); font-size: .95rem; }
.plan-desc { color: var(--moss); font-size: .95rem; min-height: 44px; }
.plan ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan ul li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--pine); font-weight: 700; }
.plan ul li.off { color: rgba(22, 40, 30, .45); }
.plan ul li.off::before { content: "—"; color: rgba(22, 40, 30, .3); }
.pricing-note { margin-top: 22px; color: var(--moss); font-size: .88rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.section-tint { background: var(--stone); }
#faq details {
  background: var(--white); border-radius: var(--radius); padding: 4px 22px;
  margin-top: 14px; border: 1px solid rgba(22, 40, 30, .08);
}
#faq details:first-of-type { margin-top: 32px; }
#faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative;
  padding-right: 30px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--pine); font-size: 1.4rem; font-weight: 600;
}
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 0 18px; color: var(--moss); }

/* ---------- Appel final ---------- */
.final-cta { text-align: center; }
.final-cta .section-lead { margin: 12px auto 30px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand-footer { color: var(--white); font-size: 1.2rem; }
.brand-footer span { color: var(--sand); }
.footer-tag { color: rgba(255, 255, 255, .6); font-size: .88rem; }
.footer-links { margin-left: auto; display: flex; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--sand); }
.footer-copy { width: 100%; color: rgba(255, 255, 255, .45); font-size: .82rem; }
