@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype"); }

:root {
  --brand: #2E9E3A;
  --brand-dark: #23862F;
  --brand-soft: #E8F5EA;
  --ink: #1A1A1A;
  --text: #2C322E;
  --muted: #5F6B62;
  --bg: #FFFFFF;
  --bg-alt: #F5F8F5;
  --surface: #FFFFFF;
  --line: #E3E8E4;
  --map: #EEF2EE;
  --map-road: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(26, 26, 26, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-dark: #5CC468;
    --brand-soft: #16301A;
    --ink: #F1F5F2;
    --text: #DCE3DE;
    --muted: #A2ADA5;
    --bg: #0F1210;
    --bg-alt: #151A16;
    --surface: #1A1F1B;
    --line: #2A302C;
    --map: #1F2620;
    --map-road: #2C352E;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.accent { color: var(--brand); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 600 1rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: #23862F; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) {
  .brand { background: #fff; border-radius: 10px; padding: 4px 8px; }
  .brand img { height: 30px; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* Accueil : bandeau */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.hero-visual { display: flex; justify-content: center; }
.phone { width: 280px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 40px; background: #1A1A1A; box-shadow: var(--shadow), 0 30px 60px rgba(46, 158, 58, .18); }
.phone-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: var(--map); }
.map { width: 100%; height: 100%; }
.map-bg { fill: var(--map); }
.map-road { stroke: var(--map-road); stroke-width: 12; fill: none; }
.map-route { stroke: var(--brand); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 1 0; }
.map-start { fill: #1A1A1A; }
.map-end { fill: var(--brand); }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: 0 -4px 20px rgba(0, 0, 0, .12); }
.sheet-title { font-weight: 600; color: var(--ink); font-size: .85rem; margin: 2px 4px 8px; }
.offer { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); font-size: .8rem; }
.offer + .offer { margin-top: 6px; }
.offer.is-picked { border-color: var(--brand); background: var(--brand-soft); }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; }
.offer-body { display: flex; flex-direction: column; line-height: 1.3; flex: 1; color: var(--ink); }
.offer-body small { color: var(--muted); font-size: .72rem; }
.price { font-weight: 600; color: var(--ink); }

/* Boutons des stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #1A1A1A; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.15; border: 1px solid #1A1A1A; }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; }
.store small { font-weight: 400; font-size: .72rem; opacity: .8; }
.store:not(.is-soon):hover { background: #000; }
.store.is-soon { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; }
@media (prefers-color-scheme: dark) { .store:not(.is-soon) { border-color: #3a423c; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin: 0 0 36px; }
.section-title.left { text-align: left; margin-bottom: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 600; margin-bottom: 14px; }
.steps p, .feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks strong { color: var(--ink); }

.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-title { font-size: 1.15rem; margin: 0 0 12px; }
.docs-card ul { margin: 10px 0 0; padding-left: 20px; }
.docs-card li { margin-bottom: 6px; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }

.cta { background: var(--ink); color: #DCE3DE; text-align: center; }
.cta h2 { color: #fff; margin: 14px 0 8px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { background: #fff; border-radius: 18px; padding: 8px; }
.cta .stores { justify-content: center; }
.cta .store:not(.is-soon) { background: #fff; color: #1A1A1A; border-color: #fff; }
.cta .store.is-soon { color: #A2ADA5; border-color: #3a423c; }
@media (prefers-color-scheme: dark) { .cta { background: #050605; } }

/* Pages de contenu */
.legal { padding-top: 48px; padding-bottom: 72px; }
.legal h2 { margin: 36px 0 12px; font-size: 1.35rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 14px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-label { min-width: 110px; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-brand img { margin-bottom: 12px; border-radius: 10px; background: #fff; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text); text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps, .features, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .phone { width: 240px; }
  .store { flex: 1 1 160px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
