/* Sellkia : page de vente + pages légales.
   Mise en page : bandes pleine largeur, contenu centré à 1120 px, une seule identité claire (vert + doré). */
:root {
  --green: #08663E;
  --green-deep: #054A2D;
  --green-mid: #0B7A4B;
  --green-soft: #E3F2EA;
  --gold: #F2B33D;
  --gold-soft: #FDF1DC;
  --gold-ink: #7A4A00;
  --ink: #10201A;
  --muted: #3D5247;
  --muted-2: #4A5F54;
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --line: #E2E8E4;
  --alert: #B3261E;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 72px; }
.band--white { background: var(--surface); }
.band--green { background: var(--green); color: #FFFFFF; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.band--green .eyebrow { color: var(--gold); }
.h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.8px; font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); }
.band--green .lead { color: #E3F2EA; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 22px; border-radius: 12px;
  font-weight: 700; font-size: 17px; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--green-deep); color: #FFFFFF; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #E0A12C; color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green-soft); }
.btn--ghost-dark { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.6); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.btn svg { flex: none; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.logo:hover { color: var(--green); }
.logo-mark { width: 40px; height: 40px; flex: none; object-fit: contain; }
.logo-img { display: block; height: 48px; width: auto; }
.logo-img--footer { height: 40px; }
.logo b, .wordmark b { color: var(--gold); font-weight: 800; }
.wordmark { color: var(--green); font-size: 18px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--green); }
.nav .btn { min-height: 44px; padding: 10px 16px; font-size: 16px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.07; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 span { color: var(--green); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--muted-2); list-style: none; padding: 0; margin: 0; }
.reassure li { display: inline-flex; align-items: center; gap: 6px; }
.reassure li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero { padding-block: 40px 56px; } }

/* Téléphone d'exemple */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 40px; padding: 12px; }
.phone-screen { background: var(--bg); border-radius: 30px; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-2); }
.phone-top strong { color: var(--green); font-size: 17px; }
.tile { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tile--green { background: var(--green); color: #FFFFFF; }
.tile .k { font-size: 12px; color: var(--muted-2); }
.tile--green .k { color: #D5EBDF; }
.tile .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles2 .v { font-size: 16px; }
.row { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.low { color: var(--alert); font-weight: 700; }
.example-tag { align-self: center; font-size: 12px; color: var(--muted-2); }

/* Situations */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .grid--2 { grid-template-columns: minmax(0, 1fr); } }
.situation { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.situation svg { flex: none; margin-top: 2px; }
.transition { font-size: 20px; font-weight: 700; color: var(--green); }

/* Démonstration */
.demo-step { display: flex; flex-direction: column; gap: 14px; }
.demo-step h3 { font-size: 19px; line-height: 1.3; display: flex; gap: 10px; align-items: center; }
@media (min-width: 861px) { .demo-step h3 { min-height: calc(2 * 1.3em); } }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 16px; }
.mini { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.mini .title { font-weight: 700; }
.mini .muted { color: var(--muted-2); font-size: 13px; }
.mini .big { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill--ok { background: var(--green-soft); color: var(--green); }
.pill--warn { background: var(--gold-soft); color: var(--gold-ink); }
.strike { text-decoration: line-through; color: var(--muted-2); }

/* Fonctionnalités */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 19px; line-height: 1.3; }
.feature p { color: var(--muted); }
.feature svg { width: 30px; height: 30px; }

/* Shop */
.shop { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 40px 32px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.shop h2 { color: #FFFFFF; }
.shop p { color: #C9D6CF; }
.shop ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.shop li { display: flex; gap: 10px; align-items: flex-start; color: #E8EFEB; }
.shop li svg { flex: none; margin-top: 3px; }
@media (max-width: 760px) { .shop { grid-template-columns: minmax(0, 1fr); padding: 32px 22px; } }

/* Étapes */
.step { background: var(--green-mid); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font-size: 20px; color: #FFFFFF; }
.step p { color: #E3F2EA; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan--featured { border: 2px solid var(--green); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.badge--gold { background: var(--gold-soft); color: var(--gold-ink); }
.plan h3 { font-size: 24px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; }
.price strong { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.price span { color: var(--muted); font-size: 17px; }
.price-note { font-size: 16px; color: var(--muted); }
.price-note b { color: var(--ink); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { flex: none; margin-top: 4px; }
.offer { background: var(--gold-soft); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.offer strong { color: var(--gold-ink); }
.offer ul { margin: 0; padding-left: 20px; color: var(--ink); }
.plans-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: var(--muted); }

/* Confiance */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: center; }
.trust-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.trust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-card { background: var(--green-soft); border-radius: 20px; padding: 22px; font-size: 16px; line-height: 1.45; color: var(--ink); display: flex; align-items: center; }
.trust-tagline { font-size: 20px; font-weight: 700; color: var(--green); }
.trust-icon { width: 220px; height: 220px; }
.trust-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.trust-phone { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust-icon { width: 120px; height: 120px; order: -1; } }
@media (max-width: 680px) { .trust-cards { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq > * { max-width: 820px; width: 100%; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--green); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Appel final */
.final { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: 44px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.final h2 { color: #FFFFFF; }
.final p { color: #C9D6CF; font-size: 18px; }
.final > div:first-child { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 15px; color: var(--muted-2); }
.site-footer .who { display: flex; flex-direction: column; gap: 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }

/* Barre d'action mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 10px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar .btn { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 16px; }
  .mobile-bar .btn--wa { flex: 0 0 52px; padding: 0; }
  body.has-bar { padding-bottom: 76px; }
  body.has-bar .consent { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Bandeau cookies */
.consent {
  position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(16, 32, 26, 0.18);
  display: flex; flex-direction: column; gap: 12px; font-size: 15px;
}
.consent .cta-row .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; flex: 1 1 140px; }

/* Pages légales */
.legal { padding-block: 48px 72px; }
.legal .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.8px; }
.legal h2 { font-size: 22px; margin-top: 8px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .updated { font-size: 15px; color: var(--muted-2); }
.table-scroll { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--green-soft); color: var(--ink); }
.todo { background: #FFF2B3; color: var(--ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }
