/* Polices hébergées localement (licence SIL OFL) : aucune requête vers Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #74746f;
  --line: #e3e3df;
  --accent: #111111;
  --ok: #157a3c;
  --warn: #9a5b00;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
em.s, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; border-radius: 999px; padding: .8em 1.4em; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: #f0c7c2; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .45em .9em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* Navigation site */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: rgba(242,242,240,.78); border-bottom: 1px solid rgba(0,0,0,.05); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.04em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink-2); margin-bottom: 22px; }
.pill b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1fb25a; box-shadow: 0 0 0 4px rgba(31,178,90,.15); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-2); max-width: 620px; margin: 0 auto 28px; }
.hero .cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-visual { margin: 56px auto 0; display: flex; justify-content: center; gap: 28px; align-items: flex-end; flex-wrap: wrap; }

/* Téléphone */
.phone { width: 270px; height: 550px; border-radius: 46px; background: #0d0d0d; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.18), inset 0 0 0 2px #2a2a2a; position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 36px; background: linear-gradient(180deg, #3b3b3b 0%, #1a1a1a 60%, #0d0d0d 100%); overflow: hidden; color: #fff; padding: 46px 12px 12px; position: relative; }
.phone .island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }
.lock-date { text-align: center; font-size: .85rem; opacity: .85; font-weight: 500; }
.lock-time { text-align: center; font-size: 4rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; }
.notif { background: rgba(245,245,245,.88); color: #111; border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.3; margin-bottom: 8px; animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.notif:nth-child(2) { animation-delay: .9s; }
.notif:nth-child(3) { animation-delay: 1.8s; }
.notif .ico { width: 30px; height: 30px; border-radius: 8px; background: #111; flex: none; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; }
.notif b { display: block; font-size: .8rem; }
.notif .when { margin-left: auto; color: #777; font-size: .7rem; white-space: nowrap; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

/* Carte de fidélité (aperçu Wallet) */
.wcard { width: 320px; max-width: 100%; border-radius: 16px; padding: 16px 16px 18px; color: var(--fg, #fff); background: var(--bg-card, #111); box-shadow: 0 18px 40px rgba(0,0,0,.18); font-size: .9rem; }
.wcard .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.wcard .logo { height: 30px; max-width: 120px; object-fit: contain; }
.wcard .biz { font-weight: 700; letter-spacing: -0.01em; }
.wcard .lbl { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lbl, #a3a3a3); font-weight: 600; }
.wcard .big { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.wcard .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 4px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--fg, #fff) 35%, transparent); display: grid; place-items: center; }
.stamp.on { background: var(--fg, #fff); border-color: var(--fg, #fff); color: var(--bg-card, #111); }
.stamp.gift { border-style: dashed; }
.stamp svg { width: 55%; height: 55%; }
.wcard .qr { background: #fff; border-radius: 10px; padding: 10px; width: 150px; margin: 16px auto 0; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.feature .num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--muted); line-height: 1; margin-bottom: 12px; }
.feature p { color: var(--ink-2); margin: 0; }
.stat-big { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* Graphique « clients qui reviennent » */
.chart-card { max-width: 520px; margin: 0 auto; }
.chart-card svg { width: 100%; height: auto; overflow: visible; }

/* Tarifs */
.price-card { max-width: 440px; margin: 0 auto; text-align: center; padding: 36px 28px; }
.price { font-size: 4.2rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.checks li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.toggle button.on { background: var(--ink); color: #fff; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 12px 0 0; color: var(--ink-2); }

.dark-band { background: #0f0f0f; color: #fff; border-radius: 28px; padding: 64px 24px; text-align: center; }
.dark-band .btn-dark { background: #fff; color: #111; }

footer.site { padding: 48px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }

/* Formulaires */
.form-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.form-card { width: 100%; max-width: 440px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .8em .95em; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #999; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
textarea { min-height: 110px; resize: vertical; }
input[type=color] { width: 48px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 3px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; margin-top: 14px; }
.check input { margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin: 12px 0; }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-ok { background: #e7f6ec; color: var(--ok); }
.alert-warn { background: #fff4e0; color: var(--warn); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-foot { margin-top: 18px; font-size: .9rem; color: var(--muted); text-align: center; }

/* Application (dashboard) */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 4px 10px 20px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--ink); color: #fff; }
.side nav svg { width: 18px; height: 18px; flex: none; }
.side .bottom { margin-top: auto; font-size: .85rem; }
.main { padding: 28px clamp(16px, 4vw, 44px) 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.kpi .lbl { color: var(--muted); font-size: .85rem; font-weight: 500; }
.kpi .val { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 14px; justify-content: space-between; align-items: center; }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .mobile-nav a { flex: none; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-size: .88rem; background: var(--surface-2); }
  .mobile-nav a.on { background: var(--ink); color: #fff; }
}
@media (min-width: 861px) { .mobile-nav { display: none; } }

table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
table.list a.row-link { text-decoration: none; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.badge.ok { background: #e7f6ec; color: var(--ok); border-color: transparent; }
.badge.warn { background: #fff4e0; color: var(--warn); border-color: transparent; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; font-size: .85rem; }
.feed .t { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.editor { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.editor .preview { position: sticky; top: 24px; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } .editor .preview { position: static; order: -1; } }
.tier-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.colors { display: flex; gap: 18px; flex-wrap: wrap; }
.colors label { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.banner { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.banner .btn { background: #fff; color: #111; }
.copy { display: flex; gap: 8px; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }

/* Scanner */
.scanner-page { min-height: 100vh; background: #0b0b0b; color: #fff; }
.scanner-page .top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.scanner-page .top .btn-light { background: #1d1d1d; color: #fff; border-color: #2c2c2c; }
.viewfinder { position: relative; width: min(92vw, 420px); aspect-ratio: 1; margin: 8px auto; border-radius: 28px; overflow: hidden; background: #161616; }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.viewfinder .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #bbb; font-size: .95rem; }
.scan-search { width: min(92vw, 420px); margin: 14px auto; }
.scan-search input { background: #161616; border-color: #2c2c2c; color: #fff; }
.results { width: min(92vw, 420px); margin: 0 auto; }
.results button { width: 100%; text-align: left; background: #161616; color: #fff; border: 1px solid #2c2c2c; padding: 12px 14px; border-radius: 12px; margin-bottom: 6px; font: inherit; cursor: pointer; }
.sheet { position: fixed; inset: auto 0 0 0; background: var(--surface); color: var(--ink); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px rgba(0,0,0,.3); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.9,.3,1); max-width: 520px; margin: 0 auto; z-index: 30; }
.sheet.open { transform: none; }
.sheet .who { display: flex; justify-content: space-between; align-items: baseline; }
.sheet .who h2 { font-size: 1.5rem; margin: 0; }
.sheet .count { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; }
.sheet .stamps .stamp { border-color: #cfcfcf; }
.sheet .stamps .stamp.on { background: #111; border-color: #111; color: #fff; }
.stepper { display: flex; align-items: stretch; background: #111; color: #fff; border-radius: 16px; overflow: hidden; margin-top: 16px; }
.stepper button { background: transparent; color: #fff; border: 0; font: inherit; font-size: 1.3rem; padding: 0 20px; cursor: pointer; }
.stepper .main-btn { flex: 1; font-size: 1.05rem; font-weight: 600; padding: 16px; border-left: 1px solid #333; border-right: 1px solid #333; }
.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -150%); background: #fff; color: #111; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); transition: transform .3s; z-index: 50; }
.toast.show { transform: translate(-50%, 0); }

/* Page client */
.client-page { min-height: 100vh; padding: 28px 16px 48px; display: flex; flex-direction: column; align-items: center; }
.client-page .wcard { width: 100%; max-width: 360px; }
.wallet-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; margin-top: 22px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 13px; text-decoration: none; font-weight: 600; }
.wallet-btn svg { width: 22px; height: 22px; }

/* Affiche imprimable */
.poster { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; padding: 22mm 18mm; text-align: center; display: flex; flex-direction: column; align-items: center; }
.poster h1 { font-size: 46pt; }
.poster .qr { width: 110mm; margin: 12mm 0; }
@media print { body { background: #fff; } .no-print { display: none !important; } .poster { margin: 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .notif { animation: none; } }

/* Correctifs */
.notif, .wcard { text-align: left; }
.nav-links a.btn-dark { color: #fff; }
.viewfinder .frame { display: none; }
.viewfinder.live .frame { display: block; }
.choice { gap: 12px; }
.choice .opt { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.choice .opt > span { display: flex; flex-direction: column; gap: 4px; }
.choice .opt .p { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.choice .opt input { margin-top: 4px; accent-color: #111; }
.choice .opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: .35em; }
.legal ul.legal-id { list-style: none; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface-2); }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 16px 38px; font-size: .92rem; }
.choice .opt .badge { align-self: flex-start; }

/* Carte installable (écran d'accueil) */
.notif-box { width: 100%; max-width: 360px; margin-top: 18px; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.notif-box .notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-box.on { background: #e7f6ec; border-color: transparent; }
.install { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.install[hidden] { display: none; }
.install-card { width: 100%; max-width: 420px; margin: auto 0 0; background: var(--surface); border-radius: 26px; padding: 26px 22px 14px; display: flex; flex-direction: column; gap: 14px; text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: sheetUp .35s cubic-bezier(.2,.9,.3,1) both; }
.install-card h2 { font-size: 1.45rem; margin: 0; }
.install-card p { margin: 0; }
.install-icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 14px; padding: 12px; font-size: .95rem; }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.steps .ico { width: 20px; height: 20px; vertical-align: -4px; color: #0a7aff; }
.steps-alt { display: flex; flex-direction: column; gap: 12px; }
.install-arrow { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: #fff; animation: bob 1.2s ease-in-out infinite; }
.install-arrow svg { width: 34px; height: 34px; }
.install.ios { align-items: center; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .install-card, .install-arrow { animation: none; } }
body.standalone .client-page { padding-top: calc(28px + env(safe-area-inset-top)); }
body.standalone .hide-standalone { display: none !important; }

/* ---------- Accueil animé ---------- */
.pill .dot { display: none; }
.intro { display: inline-block; opacity: 0; transform: translateY(18px); animation: introUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.hero .cta.intro, .hero .lead.intro { display: flex; }
.hero .lead.intro { display: block; }
@keyframes introUp { to { opacity: 1; transform: none; } }
.hero-visual { perspective: 1200px; position: relative; }
.hero-visual .phone { animation: phoneIn 1.1s cubic-bezier(.2,.8,.2,1) .45s both; will-change: transform; }
.hero-card { position: relative; animation: cardIn 1.1s cubic-bezier(.2,.8,.2,1) .7s both; will-change: transform; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(90px) rotateX(18deg) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateX(70px) rotate(6deg); } to { opacity: 1; transform: none; } }
.hero-visual .notif { animation-delay: 1.4s; }
.hero-visual .notif:nth-child(5) { animation-delay: 2.2s; }
.hero-visual .notif:nth-child(6) { animation-delay: 3s; }
.stamp.pop { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.toast-demo { position: absolute; top: -14px; right: -10px; background: #1fb25a; color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.18); opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast-demo.show { opacity: 1; transform: none; }
.scroll-hint { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: introUp .8s ease 1.6s forwards; }
.scroll-hint span { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.marquee { padding: 18px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Apparition au défilement, décalée pour les éléments voisins */
.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.from-left { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in.from-left, .reveal.in.from-right, .reveal.in.zoom { transform: none; }
.chart-card .draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1) .2s; }
.chart-card.in .draw { stroke-dashoffset: 0; }

@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .hero-visual { gap: 18px; margin-top: 40px; }
  .hero-visual .phone { width: 230px; height: 470px; border-radius: 40px; }
  .hero-visual .phone .screen { border-radius: 30px; padding-top: 40px; }
  .hero-visual .lock-time { font-size: 3.3rem; }
  .hero-card .wcard { width: 300px; }
  .marquee-track span { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .hero-visual .phone, .hero-card, .scroll-hint { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .chart-card .draw { stroke-dashoffset: 0; transition: none; }
}
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.name-row > div { min-width: 0; }
@media (max-width: 360px) { .name-row { grid-template-columns: 1fr; } }
.install-card .btn { white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 640px) {
  .hero-visual .notif { font-size: .72rem; padding: 9px 10px; gap: 8px; }
  .hero-visual .notif .when { display: none; }
  .hero-visual .notif .ico { width: 26px; height: 26px; }
  .hero-visual .notif b { display: inline; margin-right: 4px; }
}
