:root {
  --bg: #FBF8F3;
  --card: #FFFFFF;
  --line: #ECE5DB;
  --line-strong: #DDD5CB;
  --text: #1A1A1A;
  --muted: #5C5650;
  --orange: #B4500A;
  --orange-dark: #8A3D08;
  --orange-soft: #FCE6D4;
  --green: #0B6B42;
  --green-soft: #E7F4EC;
  --red: #B42318;
  --red-soft: #FDECEA;
  --chip: #F3EEE7;
  --radius: 18px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .num { font-family: "Space Grotesk", Inter, sans-serif; margin: 0; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--orange); }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Écran de démarrage */
#splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--orange); color: #fff;
  font: 700 26px "Space Grotesk", sans-serif;
  transition: opacity .35s ease;
}
#splash img { border-radius: 24px; }
#splash.hide { opacity: 0; pointer-events: none; }

/* Structure */
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font: 700 20px "Space Grotesk", sans-serif; color: var(--text); text-decoration: none; }
.logo img { width: 30px; height: 30px; border-radius: 9px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); }
main.content { flex: 1; padding: 20px 20px calc(var(--nav-h) + 28px); display: flex; flex-direction: column; gap: 18px; }
main.content.no-nav { padding-bottom: 32px; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav .inner { display: flex; justify-content: space-around; width: 100%; max-width: 520px; }
.bottomnav a {
  flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; color: var(--muted); text-decoration: none;
}
.bottomnav a.on { color: var(--orange); font-weight: 600; }
.bottomnav svg { width: 22px; height: 22px; }

/* Composants */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.link { text-decoration: none; color: inherit; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.money { color: var(--green); font-weight: 600; }
.center { text-align: center; }

.avatar {
  width: 48px; height: 48px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font: 700 17px "Space Grotesk", sans-serif; background: var(--orange-soft); color: var(--orange);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--chip); color: var(--muted); }
.tag.green { background: var(--green-soft); color: var(--green); font-weight: 600; }
.tag.orange { background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.tag.red { background: var(--red-soft); color: var(--red); font-weight: 600; }

.progress { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.progress > span { display: block; height: 100%; background: #D9620F; border-radius: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 500;
}
.chip.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--orange); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; width: 100%;
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #08502F; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--chip); color: var(--text); }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #F1C4BF; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 14px; width: auto; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 16px; font-weight: 400;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(180, 80, 10, .35); outline-offset: 2px;
}
.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw .eye {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 44px; border: none; background: transparent; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
}
.pw .eye:hover { color: var(--text); }
.pw .eye svg { width: 22px; height: 22px; }

.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice label {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; font-weight: 600;
}
.choice label span { font-weight: 400; font-size: 12px; color: var(--muted); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.choice label:has(input:focus-visible) { outline: 3px solid rgba(180, 80, 10, .35); }

.hero { background: var(--orange); color: #fff; border-radius: 24px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: 34px; }
.hero p { color: #FFE9DA; }
.hero .btn { background: #fff; color: var(--orange-dark); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

.balance { background: var(--green); color: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.balance .num { font-size: 38px; }
.balance .sub { color: #D4EDDF; font-size: 13px; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 19px; font-weight: 700; }
.stat .xs { color: var(--muted); }

.estimate { background: var(--orange-soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.estimate .num { font-size: 26px; font-weight: 700; }
.estimate .small { color: #4A2104; }

.notice { background: var(--chip); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-size: 14px;
}
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.loading { display: flex; justify-content: center; padding: 48px 0; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.install {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 20;
  max-width: 496px; margin: 0 auto;
  background: var(--text); color: #fff; border-radius: 16px; padding: 12px 12px 12px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.install p { flex: 1; font-size: 14px; }
.install .btn { width: auto; min-height: 44px; padding: 8px 14px; font-size: 14px; }
.install .close { background: transparent; border: none; color: #fff; width: 44px; height: 44px; cursor: pointer; font-size: 20px; }

#toast {
  position: fixed; left: 50%; top: 16px; transform: translate(-50%, -120%); z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--text); color: #fff; font-size: 14px; font-weight: 500;
  transition: transform .25s ease, visibility .25s; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  visibility: hidden;
}
#toast.show { transform: translate(-50%, 0); visibility: visible; }
#toast.error { background: var(--red); }
#toast.success { background: var(--green); }

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

/* ---------- Page d'accueil publique ---------- */
.lp { background: var(--bg); min-height: 100vh; }
.lp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lp-narrow { max-width: 760px; }
.lp h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.lp h1 span { color: var(--orange); }
.lp h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 8px 0 24px; letter-spacing: -.01em; }
.lp h3 { font-size: 17px; margin-bottom: 6px; }
.lp-header { position: sticky; top: 0; z-index: 20; background: rgba(251,248,243,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.lp-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 64px; }
.lp section[id] { scroll-margin-top: 110px; }
.lp-links { display: flex; gap: 24px; margin-left: auto; }
.lp-links a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.lp-links a:hover { color: var(--orange); }
.lp-header-cta { display: flex; gap: 8px; align-items: center; }
.lp-header-cta .btn { width: auto; }
.lp-hero { padding: 56px 0 64px; background: radial-gradient(ellipse at 85% 10%, #FCE6D4 0%, rgba(252,230,212,0) 55%); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-hero-text { display: flex; flex-direction: column; gap: 20px; }
.lp-lead { font-size: 18px; color: #3E3A36; max-width: 560px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-cta .btn { width: auto; padding: 14px 24px; }
.lp-live { display: flex; gap: 32px; padding-top: 8px; }
.lp-live > div { display: flex; flex-direction: column; }
.lp-live .num { font-size: 26px; font-weight: 700; }
.lp-phone { justify-self: center; width: 300px; padding: 12px; border-radius: 40px; background: #1A1A1A; box-shadow: 0 30px 60px rgba(90,40,5,.25); }
.lp-phone-screen { background: var(--bg); border-radius: 30px; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 16px; min-height: 380px; }
.lp-phone-gain { background: var(--green); color: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.lp-phone-gain .xs { color: #D4EDDF; }
.lp-phone-gain .num { font-size: 26px; font-weight: 700; }
.lp-phone-nav { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--muted); }
.lp-phone-nav .on { color: var(--orange); font-weight: 600; }
.lp-section { padding: 72px 0; }
.lp-alt { background: #F5EFE6; }
.lp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-feature { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.lp-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.lp-ico svg { width: 22px; height: 22px; }
.lp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.lp-steps li { display: flex; gap: 16px; }
.lp-step-n { flex: none; font: 700 22px "Space Grotesk", sans-serif; color: var(--orange); width: 40px; }
.lp-sim { position: sticky; top: 90px; }
.lp-sim-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lp-sim-total { background: var(--orange-soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.lp-sim-total .num { font-size: 32px; font-weight: 700; }
.lp-cat-chips { margin-bottom: 24px; }
.lp-camps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-camp { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lp-camp[hidden] { display: none; }
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.lp-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq details p { padding-bottom: 16px; }
.lp-final { background: var(--orange); color: #fff; padding: 72px 0; }
.lp-final p { color: #FFE9DA; margin-bottom: 24px; font-size: 17px; }
.lp-final .btn { background: #fff; color: var(--orange-dark); }
.lp-final .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lp-pay { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.lp-pay span { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.lp-footer { padding: 24px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .lp-header-inner { padding-top: 10px; }
  .lp-header-cta { margin-left: auto; }
  .lp-links { order: 3; width: 100%; margin: 0; justify-content: center; gap: 22px; padding: 2px 0 10px; }
  .lp-links a { font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }
  .lp-hero-grid, .lp-two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-features, .lp-camps { grid-template-columns: minmax(0, 1fr); }
  .lp-sim { position: static; }
  .lp-section { padding: 52px 0; }
  .lp-hero { padding: 36px 0 48px; }
}
@media (max-width: 480px) {
  .lp-header-cta .btn:not(.ghost):not(:only-child) { display: none; }
  .lp-header-cta .btn { padding: 8px 12px; }
  .lp-live .num { font-size: 22px; }
  .lp-cta .btn { width: 100%; }
  .lp-live { gap: 20px; }
  .lp-phone { width: 260px; }
}

/* TikTok : choix d'une vidéo */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tt-video { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tt-video img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--chip); }
.tt-video[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.tt-video:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
details summary { cursor: pointer; margin-top: 4px; }
