/* ══════════════════════════════════════════════════════════
   site.css — الموقع العام (الواجهة، الدخول، الشروط، التقرير)
   يعتمد على ui.css و يزيد كان اللي يخص الصفحات العامة.
   ══════════════════════════════════════════════════════════ */
.site {
  --paper: #f0f2f5; --paper-2: #e4e6eb; --hero-a: #e7f0ff; --hero-b: #fde8f1; --phone: #1c1e21;
  --night: #0b1a3a; --night-2: #132a5c; --night-ink: #e8eefc; --night-mute: #aebbdb; --night-hi: #ffb3d0; --night-line: rgba(255, 255, 255, .1);
  --display: var(--font);
  background: var(--paper); overflow-x: clip;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site { --paper: #18191a; --paper-2: #242526; --hero-a: #16284a; --hero-b: #3d1a2d; --phone: #000000; --night: #0b1a33; --night-2: #132a52; } }
:root[data-theme="dark"] .site { --paper: #18191a; --paper-2: #242526; --hero-a: #16284a; --hero-b: #3d1a2d; --phone: #000000; --night: #0b1a33; --night-2: #132a52; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 10px; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.site h1, .site h2, .site h3 { font-family: var(--display); }
.site h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); letter-spacing: -.01em; line-height: 1.35; }

/* ── Header ───────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(18, 33, 28, .05); }
.hdr-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.hdr .brand { padding: 0; font-size: 1.02rem; white-space: nowrap; font-family: var(--display); }
.hdr .logo, .ftr .logo { width: 34px; height: 34px; border-radius: 10px; }
.hnav { display: flex; gap: 2px; margin-inline-start: auto; }
.hnav a { color: var(--ink-2); font-weight: 500; font-size: .93rem; padding: 8px 11px; border-radius: 10px; }
.hnav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.hact { display: flex; gap: 8px; align-items: center; }
.hact .btn.icon { width: 38px; min-height: 38px; }
.i-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-dark { display: none; } :root:not([data-theme="light"]) .i-light { display: inline; } }
:root[data-theme="dark"] .i-dark { display: none; } :root[data-theme="dark"] .i-light { display: inline; }
.only-m { display: none !important; }
@media (max-width: 920px) {
  .hnav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .hnav.open { display: flex; }
  .hnav a { padding: 12px; font-size: 1rem; }
  .hact { margin-inline-start: auto; }
  .only-m { display: inline-flex !important; }
  .hide-m { display: none !important; }
}
.mtheme { font: inherit; font-size: 1rem; color: var(--ink-2); background: none; border: 0; border-top: 1px solid var(--line); margin-top: 6px; padding: 14px 12px 6px; text-align: start; gap: 10px; align-items: center; cursor: pointer; }
@media (max-width: 560px) { .hide-s { display: none !important; } }
@media (max-width: 380px) { .hdr .brand { font-size: .94rem; gap: 8px; } .hact { gap: 6px; } }

/* ── Hero : le problème ───────────────────────── */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden;
  background: radial-gradient(55% 65% at 8% 20%, var(--hero-a), transparent 70%), radial-gradient(45% 55% at 95% 85%, var(--hero-b), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px); background-size: 100% 34px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px 6px 12px; border-radius: 999px; box-shadow: var(--shadow); margin: 0; }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; background: radial-gradient(circle at 50% 50%, #fff 0 3.4px, transparent 3.6px), #e70013; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.1rem); line-height: 1.28; margin: 20px 0 14px; letter-spacing: -.02em; font-weight: 700; }
.h-q { display: block; }
.h-mark { position: relative; white-space: nowrap; color: var(--brand); }
.h-mark::after { content: ""; position: absolute; inset-inline: -4px; bottom: -.12em; height: .32em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 5 80 4 120 8s55 6 77-2' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f77737'/%3E%3Cstop offset='.5' stop-color='%23e1306c'/%3E%3Cstop offset='1' stop-color='%23c13584'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.h-answer { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(1.12rem, 2.4vw, 1.38rem); color: var(--ink); margin: 0 0 14px; }
.h-answer .ico { width: 1.5em; height: 1.5em; padding: .28em; border-radius: 12px; background: var(--brand-fill); color: var(--brand-ink); stroke-width: 2.2; flex: none; box-shadow: -2px -2px 0 var(--tt-cyan), 2px 2px 0 var(--tt-red); }
.h-answer b { color: var(--brand); }
.lead { font-size: clamp(1rem, 1.9vw, 1.1rem); color: var(--ink-2); max-width: 35em; margin-bottom: 26px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row .ico { width: 1.1em; height: 1.1em; }
.cta-row.center { justify-content: center; }
.mini-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: .9rem; }
.mini-facts li { display: flex; align-items: center; gap: 6px; }
.mini-facts .ico { color: var(--ok); stroke-width: 2.6; width: 1em; height: 1em; }

/* Écran verrouillé + notifications */
.hero-art { position: relative; display: grid; place-items: center; padding: 10px 0 26px; }
.halo { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 160deg, color-mix(in srgb, var(--brand) 45%, transparent), color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--brand) 45%, transparent)); filter: blur(50px); opacity: .4; }
.lock { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 17.5; border-radius: 46px; padding: 12px; background: var(--phone); box-shadow: 0 50px 90px -30px rgba(10, 30, 24, .55), inset 0 0 0 2px rgba(255, 255, 255, .07); display: flex; flex-direction: column; }
.lock::before { content: ""; position: absolute; inset: 12px; border-radius: 36px; pointer-events: none;
  background: radial-gradient(80% 50% at 80% 10%, var(--accent-hi), transparent 60%), radial-gradient(90% 60% at 10% 90%, var(--brand-hi), transparent 65%), linear-gradient(170deg, var(--brand-deep), var(--brand-deeper) 55%, #1c2a4a); }
.lock > * { position: relative; }
.lock-top { display: flex; flex-direction: column; align-items: center; color: #fff; padding-top: 38px; text-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
.lock-time { font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-family: var(--display); }
.lock-day { font-size: .9rem; opacity: .85; margin-top: 6px; }
.notifs { list-style: none; margin: 26px 0 0; padding: 0 8px; display: grid; gap: 8px; }
.nt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .8); color: #1c1e21; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); animation: ntIn .7s cubic-bezier(.2, .8, .2, 1.1) both; }
.nt p { margin: 2px 0 0; font-size: .78rem; line-height: 1.5; color: #4b4f56; }
.nt-h { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.nt-h small { color: #65676b; font-size: .7rem; }
.nt-i { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; }
.nt-i .ico { width: 17px; height: 17px; stroke-width: 2.2; }
.nt-i.ai { background: linear-gradient(135deg, var(--brand-solid), var(--accent)); }
.nt-i.ok { background: var(--ok-solid); }
.nt-i.guard { background: var(--brand-solid); }
.n1 { animation-delay: .5s; } .n2 { animation-delay: 1.4s; } .n3 { animation-delay: 2.3s; box-shadow: 0 0 0 2px var(--accent), 0 10px 26px rgba(0, 0, 0, .25); }
@keyframes ntIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.lock-bar { margin: auto auto 8px; width: 110px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .7); }
.art-note { margin: 10px 0 0; font-size: .74rem; color: var(--muted); text-align: center; }
.hero-art > .art-note { position: absolute; bottom: 0; }

@media (max-width: 920px) {
  .hero { padding: 28px 0 44px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 1.95rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .lock { width: 270px; border-radius: 40px; }
  .lock::before { border-radius: 30px; }
  .lock-time { font-size: 3rem; }
}

/* ── Sections ─────────────────────────────────── */
.sec { padding: 88px 0; }
.sec-tint { background: var(--paper-2); }
.sec-h { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.sec-h p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }
.kicker { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 560px) { .sec { padding: 60px 0; } .sec-h { margin-bottom: 28px; } }

/* Problèmes → solutions */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pain { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.pain p { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.pain .ico { flex: none; margin-top: 3px; }
.pain-p { padding: 18px 18px 16px; color: var(--ink-2); font-size: .95rem; background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); border-bottom: 1px dashed color-mix(in srgb, var(--bad) 30%, var(--line)); min-height: 94px; }
.pain-p .ico { color: var(--bad); }
.pain-s { position: relative; padding: 22px 18px 20px; font-size: .98rem; flex: 1; }
.pain-s::before { content: ""; position: absolute; top: -15px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7a63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pain-s .ico { color: var(--brand); stroke-width: 2.2; }
.pain-s b { color: var(--ink); }
@media (max-width: 980px) { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pains { grid-template-columns: minmax(0, 1fr); gap: 10px; } .pain-p { min-height: 0; } }

/* Démo assistant */
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; max-width: 960px; margin: 0 auto; }
.chat { padding: 0; overflow: hidden; border-radius: var(--r-lg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-h > div { flex: 1; min-width: 0; }
.chat-h .badge { align-self: center; }
.chat-h b { display: block; line-height: 1.3; }
.chat-h small { color: var(--ok); font-size: .78rem; display: inline-flex; gap: 6px; align-items: center; }
.chat-h .dot { width: 7px; height: 7px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-solid), var(--brand-deep)); flex: none; }
.msgs { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; height: 430px; overflow-y: auto; scrollbar-width: none;
  background: radial-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1.2px) 0 0 / 16px 16px, var(--surface-2); }
.msgs::-webkit-scrollbar { display: none; }
.m { max-width: 82%; padding: 9px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.55; align-self: flex-start; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border-start-start-radius: 6px; }
.m.me { align-self: flex-end; background: var(--brand-fill); color: var(--brand-ink); border-start-start-radius: 18px; border-start-end-radius: 6px; }
.m.pick { background: none; box-shadow: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 92%; }
.chipx { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--brand); background: var(--surface); }
.chipx.on { background: var(--brand-fill); color: var(--brand-ink); }
.m.ad-bubble { background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); max-width: 90%; }
.m.ad-bubble small { display: block; font-size: .72rem; font-weight: 700; color: var(--accent-text); margin-bottom: 2px; }
.play .m { display: none; }
.play .m.show { display: block; animation: pop .35s cubic-bezier(.2, .8, .2, 1.2) both; }
.play .m.pick.show { display: flex; }
.m.typing { display: none; gap: 4px; align-items: center; padding: 12px 14px; }
.m.typing.show { display: inline-flex; }
.m.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.m.typing i:nth-child(2) { animation-delay: .15s; } .m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.chat-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px; padding: 6px 6px 6px 6px; padding-inline-start: 16px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.chat-in .send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-fill); color: var(--brand-ink); }
.chat-in .send .ico { width: 17px; height: 17px; transform: scaleX(-1); }

.demo-phone { position: relative; display: grid; justify-items: center; gap: 14px; }
.phone { position: relative; width: 280px; border-radius: 42px; padding: 10px; background: var(--phone); box-shadow: 0 40px 80px -24px rgba(10, 30, 24, .45), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 12px; background: var(--phone); z-index: 2; }
.screen { border-radius: 33px; overflow: hidden; background: var(--surface-2); padding: 42px 8px 16px; min-height: 470px; }
.feedbar { display: flex; justify-content: space-between; align-items: center; direction: ltr; padding: 0 8px 8px; color: #1877f2; font-size: 1.05rem; letter-spacing: -.02em; }
.fb-dots { display: flex; gap: 4px; } .fb-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); }
.preview.mock { font-size: .8rem; border-radius: 16px; box-shadow: var(--shadow); transition: opacity .5s, transform .5s; }
.play .preview.mock { opacity: .35; transform: scale(.97); filter: saturate(.3); }
.play .preview.mock.show { opacity: 1; transform: none; filter: none; }
.preview.mock .ph { padding: 10px; } .preview.mock .pa { width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent-text); }
.preview.mock .pt { padding: 0 10px 8px; line-height: 1.55; min-height: 5.2em; }
.art-sweets { position: relative; aspect-ratio: 1 / .78 !important; background: linear-gradient(150deg, #f7d9a8, #eeb66b 55%, #e39a4a) !important; }
.art-sweets svg { width: 86%; }
.art-sweets .plate { fill: #fff7ea; opacity: .95; } .art-sweets .plate2 { fill: #f3e2c6; }
.art-sweets .bq { fill: #c9812c; stroke: #8f5415; stroke-width: 2; } .art-sweets .b2 { fill: #d8943b; }
.art-sweets .kk { fill: #fbf1df; stroke: #e2c392; stroke-width: 2; } .art-sweets .kh { fill: #eeb66b; }
.art-sweets .pis { fill: #6d9a3a; }
.preview.mock .pf { padding: 8px 10px; }
.preview.mock .pf .btn { min-height: 30px; padding: 4px 10px; font-size: .76rem; background: var(--surface-3); }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 4px 12px; border-radius: 999px; }
.live-tag .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.demo-points { list-style: none; padding: 0; margin: 40px auto 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink-2); font-size: .93rem; }
.demo-points .ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
@media (max-width: 860px) {
  .demo { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .msgs { height: 380px; }
  .demo-points { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
}
@media (max-width: 560px) { .phone { width: 256px; } .screen { min-height: 0; } .m { font-size: .9rem; } }

/* ── Gardien (panneau nuit) ─────────────────── */
.guard-sec { position: relative; background: radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), linear-gradient(160deg, var(--night-2), var(--night)); color: var(--night-ink); overflow: hidden; }
.guard-sec::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(60% 70% at 70% 40%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 70% 40%, #000, transparent 80%); }
.guard { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.guard h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.guard-copy > p { color: var(--night-mute); font-size: 1.05rem; max-width: 34em; }
.guard-copy > p b { color: #fff; }
.on-dark-k { background: rgba(255, 255, 255, .1); color: var(--night-hi); }
.g-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.g-steps li { display: flex; gap: 14px; align-items: flex-start; }
.gs-n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--night-hi); border: 1px solid rgba(255, 255, 255, .16); }
.g-steps b { display: block; color: #fff; }
.g-steps span { color: var(--night-mute); font-size: .95rem; }
.gauge-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; padding: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.gc-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: .93rem; }
.gc-state { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; transition: background .3s; }
.gsvg { width: 100%; max-width: 330px; display: block; margin: 12px auto 4px; overflow: visible; }
.g-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 22; }
.g-seg { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-ok { stroke: #5ac26a; } .g-mid { stroke: #f5c451; } .g-bad { stroke: #ff6b81; }
.needle { transform-box: view-box; transform-origin: 120px 120px; transform: rotate(-70deg); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.needle line { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.needle circle { fill: #fff; stroke: var(--night); stroke-width: 4; }
.g-lb { fill: var(--night-mute); font-size: 12px; font-family: var(--font); }
.gc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.gc-kv > div { background: rgba(0, 0, 0, .18); border-radius: 14px; padding: 10px 12px; }
.gc-kv dt { font-size: .78rem; color: var(--night-mute); }
.gc-kv dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.3; font-family: var(--display); }
.gc-bar { position: relative; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
.gc-bar i { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 9px; background: linear-gradient(270deg, #f77737, #e1306c); transition: width .25s; }
.gc-line { position: absolute; top: -5px; bottom: -5px; width: 2px; background: #fff; border-radius: 2px; opacity: .7; }
.gc-out { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); transition: background .3s, color .3s; min-height: 50px; }
.gc-out .ico { flex: none; }
[data-st="bad"] .gc-out { background: #ff6b81; color: #2a0710; } [data-st="bad"] .gc-state { background: #ff6b81; color: #2a0710; }
[data-st="refund"] .gc-out { background: #f5c451; color: #2b1d00; } [data-st="refund"] .gc-state { background: #f5c451; color: #2b1d00; }
[data-st="ok"] .gc-out { background: #5ac26a; color: #062410; } [data-st="ok"] .gc-state { background: #5ac26a; color: #062410; }
.gauge-card .art-note { color: var(--night-mute); }
@media (max-width: 860px) { .guard { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* ── Parcours (4 étapes) ─────────────────────── */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.path::before { content: ""; position: absolute; top: 30px; inset-inline: 8%; height: 2px; background: repeating-linear-gradient(to left, color-mix(in srgb, var(--brand) 50%, transparent) 0 8px, transparent 8px 16px); }
.path li { position: relative; display: flex; flex-direction: column; gap: 14px; }
.p-n { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-family: var(--display); font-size: 1.6rem; font-weight: 700; background: var(--surface); color: var(--brand); border: 2px solid var(--brand); box-shadow: 0 0 0 8px var(--paper); }
.path li:last-child .p-n { background: var(--brand-fill); color: var(--brand-ink); }
.path h3 { font-size: 1.12rem; margin-bottom: 4px; }
.path p { color: var(--ink-2); font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path::before { top: 20px; bottom: 20px; inset-inline: auto; inset-inline-start: 25px; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--brand) 50%, transparent) 0 8px, transparent 8px 16px); }
  .path li { flex-direction: row; gap: 16px; padding-bottom: 22px; }
  .p-n { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 16px; flex: none; }
}

/* ── Estimateur ─────────────────────────────── */
.sim { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.sim-in { padding: 24px; display: flex; flex-direction: column; gap: 26px; border-radius: var(--r-lg); }
.sim fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.goal { display: flex; align-items: center; gap: 8px; text-align: start; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-height: 48px; transition: border-color .15s, background .15s; }
.goal:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.goal .ico { color: var(--brand); }
.goal.on { background: var(--brand-soft); border-color: var(--brand); }
.goal small { display: block; font-weight: 500; font-size: .72rem; color: var(--warn); }
.goal-desc { color: var(--ink-2); font-size: .9rem; margin: 10px 0 0; min-height: 3em; }
.pill { font-weight: 700; background: var(--brand-soft); color: var(--brand); padding: 2px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.sl input[type="range"] { margin: 8px 0 2px; direction: rtl; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { font: inherit; font-size: .83rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.quick button.on, .quick button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sim-out { position: relative; border-radius: var(--r-lg); padding: 24px; color: var(--night-ink); overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), linear-gradient(160deg, var(--brand-solid), var(--brand-deeper)); box-shadow: var(--shadow-lg); }
.so-top { position: relative; }
.warn-l { background: rgba(255, 255, 255, .16); color: var(--night-hi); }
.so-l { margin-top: 12px; opacity: .8; }
.so-range { display: flex; align-items: baseline; gap: 8px; direction: ltr; justify-content: flex-end; font-size: clamp(2.2rem, 6vw, 3.1rem); font-weight: 700; line-height: 1.1; font-family: var(--display); }
.so-dash { opacity: .5; }
.so-unit { font-weight: 600; opacity: .9; }
.so-meter { position: relative; height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .14); margin-top: 14px; overflow: hidden; }
.so-meter i { position: absolute; top: 0; bottom: 0; border-radius: 9px; background: linear-gradient(270deg, #f77737, #e1306c); transition: inset-inline-start .4s, width .4s; }
.so-kv { margin: 0; display: grid; gap: 0; background: rgba(0, 0, 0, .16); border-radius: 14px; padding: 4px 14px; }
.so-kv > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; }
.so-kv > div + div { border-top: 1px solid rgba(255, 255, 255, .1); }
.so-kv dt { opacity: .78; } .so-kv dd { margin: 0; font-weight: 700; }
.so-kv .so-tip, .so-kv .so-bonus { justify-content: flex-start; align-items: flex-start; font-size: .86rem; }
.so-tip .ico, .so-bonus .ico { flex: none; margin-top: 3px; color: var(--night-hi); }
.so-bonus { color: var(--night-hi); font-weight: 600; }
.so-note { font-size: .84rem; opacity: .88; margin: auto 0 0; display: flex; gap: 8px; }
.so-note .ico { flex: none; margin-top: 2px; }
.sim-out .btn.accent { box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.sim-foot { display: flex; gap: 8px; justify-content: center; margin: 16px auto 0; max-width: 720px; text-align: center; }
.sim-foot .ico { flex: none; margin-top: 3px; }
@media (max-width: 860px) { .sim { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sim-in, .sim-out { padding: 18px; } .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goal { font-size: .84rem; padding: 9px 10px; } .sim-foot { text-align: start; } }

/* ── Tarifs / transparence ─────────────────── */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tiers list" "pay list"; gap: 18px 40px; align-items: start; }
.tiers { grid-area: tiers; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.tier.best { border-color: var(--brand); background: linear-gradient(170deg, var(--brand-soft), var(--surface) 75%); }
.t-tag { position: absolute; top: -11px; inset-inline-start: 18px; font-size: .75rem; font-weight: 700; background: var(--brand-fill); color: var(--brand-ink); padding: 2px 10px; border-radius: 999px; }
.t-l { color: var(--ink-2); font-size: .92rem; }
.t-v { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.t-v b { font-size: 1.9rem; color: var(--ink); }
.t-v small { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.tier.best .t-v b { color: var(--brand); }
.p-list { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.p-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.p-list li:last-child { border-bottom: 0; }
.p-list b { display: block; font-size: 1.02rem; }
.p-list span { color: var(--ink-2); font-size: .95rem; }
.p-list span b { display: inline; font-size: inherit; color: var(--ink); }
.pl-i { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pl-i.gift { background: var(--accent-soft); color: var(--accent-text); }
.pay-box { grid-area: pay; }
.pb-t { font-weight: 700; margin: 6px 0 10px; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.method .mi { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .82rem; direction: ltr; background: var(--accent-soft); color: var(--accent); letter-spacing: .02em; }
.method:nth-child(2n) .mi { background: var(--brand-soft); color: var(--brand); }
.method b { display: block; line-height: 1.35; font-size: .92rem; }
.method small { color: var(--muted); }
.method small.fee { color: var(--warn); }
@media (max-width: 860px) { .price { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tiers" "list" "pay"; gap: 18px; } }
@media (max-width: 400px) { .methods { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tier { padding: 18px 14px 16px; } .t-v { font-size: 1rem; } .t-v b { font-size: 1.45rem; } .t-l { font-size: .84rem; } }

/* ── Parrainage ─────────────────────────────── */
.refer-sec { padding: 0 0 88px; }
.refer { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px 32px; border-radius: 28px; color: #1c1e21;
  background: radial-gradient(70% 140% at 100% 0%, #ffe7d9, transparent 60%), linear-gradient(120deg, #ffe2ee, #f3e6ff); border: 1px solid #f6cfe0; box-shadow: var(--shadow); }
.r-gift { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .45); flex: none; }
.r-gift .ico { width: 32px; height: 32px; color: var(--accent-text); }
.r-copy { flex: 1 1 320px; }
.refer h2 { margin: 0 0 4px; color: #1c1e21; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.refer p { margin: 0; }
.refer .btn.on-dark { background: var(--ig); color: #fff; }
@media (max-width: 560px) { .refer { padding: 22px 18px; } .refer .btn { width: 100%; } .refer-sec { padding-bottom: 60px; } }

/* ── Sécurité ───────────────────────────────── */
.safe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.safe-copy p { color: var(--ink-2); font-size: 1.02rem; }
.safe-copy .help-tip { margin-top: 18px; }
.perm { padding: 0; overflow: hidden; border-radius: var(--r-lg); }
.perm-h { display: flex; gap: 12px; align-items: center; padding: 18px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.perm-h small { display: block; }
.sm-logo { width: 40px; height: 40px; border-radius: 12px; }
.perm ul { list-style: none; margin: 0; padding: 8px 20px 14px; }
.perm li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.perm li:last-child { border-bottom: 0; }
.perm li .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 2.8; flex: none; }
.perm .yes .ico { background: var(--ok-soft); color: var(--ok); }
.perm .no { color: var(--ink-2); } .perm .no .ico { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 860px) { .safe { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* FAQ */
.faq-wrap { max-width: 800px; }
.faq-wrap details.faq summary { font-size: 1rem; }

/* CTA final */
.final { padding: 30px 0 80px; background: linear-gradient(var(--paper-2) 50%, var(--paper) 50%); }
.final-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-radius: 28px; padding: 44px 40px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 0% 100%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%), linear-gradient(135deg, var(--brand-deep), var(--brand-deeper)); box-shadow: var(--shadow-lg); }
.final-in::after { content: ""; position: absolute; width: 260px; height: 300px; top: -90px; right: -60px; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.final-in > * { position: relative; z-index: 1; }
.final h2 { margin: 0 0 6px; color: #fff; }
.final p { margin: 0; opacity: .85; max-width: 34em; }
.btn.on-dark { background: #fff; color: var(--brand-deep); }
.btn.on-dark:hover { background: #e7f0ff; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost-dark:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 560px) { .final-in { padding: 30px 20px; } .final .cta-row { width: 100%; } }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 34px 0 24px; background: var(--paper); }
.ftr-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.ftr .brand { padding: 0 0 8px; font-family: var(--display); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr-links a { color: var(--ink-2); font-weight: 500; }
.ftr-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ftr-legal.flush { margin-top: 0; padding-top: 0; border-top: 0; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ══ Auth page ══════════════════════════════════ */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { display: flex; flex-direction: column; padding: 20px 24px 30px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.auth-top .brand { padding: 0; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: 30px 0; }
.auth-box h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-box .sub { color: var(--ink-2); margin-bottom: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; margin-bottom: 24px; }
.seg a { text-align: center; padding: 9px; border-radius: 11px; font-weight: 600; color: var(--ink-2); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-form { display: grid; gap: 16px; }
.auth-form #phone { text-align: left; letter-spacing: .04em; }
.auth-top .logo { width: 34px; height: 34px; border-radius: 10px; }
.pw { position: relative; }
.pw .input { padding-left: 52px; }
.pw button { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.pw button:hover { color: var(--ink); background: var(--surface-2); }
.pw button[aria-pressed="true"] { color: var(--brand); }
.auth-form .check { font-size: .92rem; color: var(--ink-2); }
.auth-alt { text-align: center; color: var(--ink-2); margin-top: 18px; font-size: .93rem; }
.g-box { margin-bottom: 18px; }
.g-btn { gap: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.g-btn:hover { text-decoration: none; background: var(--surface-2); }
.g-logo { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.f-err { color: var(--bad); font-size: .83rem; margin-top: 5px; }
.input[aria-invalid="true"], .input-group:has(.input[aria-invalid="true"]) { border-color: var(--bad); }
.auth-side { position: relative; overflow: hidden; color: var(--night-ink); padding: 48px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(80% 60% at 100% 100%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%), linear-gradient(160deg, var(--brand-solid), var(--brand-deeper)); }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.2px); background-size: 22px 22px; }
.auth-side > * { position: relative; max-width: 440px; }
.auth-side h2 { color: #fff; font-size: 1.8rem; margin-bottom: 26px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.auth-side li { display: flex; gap: 14px; }
.auth-side li .i { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--night-hi); }
.auth-side li b { display: block; color: #fff; }
.auth-side li span { opacity: .8; font-size: .93rem; }
.auth-side .quote { margin-top: 34px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .18); font-size: .88rem; opacity: .9; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } .auth-main { padding: 14px 16px 24px; } .auth-box { padding: 26px 0 10px; margin: 0 auto; } }

/* ══ Terms page ═════════════════════════════════ */
.doc { max-width: 780px; margin: 0 auto; padding: 34px 16px 60px; }
.doc h1 { margin-bottom: 6px; }
.doc h2 { font-size: 1.2rem !important; margin-top: 30px; padding-top: 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 6px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.doc .toc a { font-size: .85rem; background: var(--surface-2); padding: 4px 12px; border-radius: 999px; color: var(--ink-2); }
.ref-banner { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 12px 14px; border-radius: 16px; color: #1c1e21;
  background: radial-gradient(80% 140% at 100% 0%, #ffe7d9, transparent 60%), linear-gradient(120deg, #ffe2ee, #f3e6ff); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent); animation: pop .4s both; }
.ref-banner .rb-i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 1.35rem; border-radius: 12px; background: rgba(255, 255, 255, .5); }
.ref-banner b { display: block; font-family: var(--display); }
.ref-banner span { font-size: .88rem; }
.ref-banner span b { display: inline; font-family: var(--font); letter-spacing: .06em; }
.auth-box h1, .auth-side h2 { font-family: var(--display); }

/* ══ Public report page (/r/<token>) ════════════ */
.rp { max-width: 980px; padding-top: 26px; padding-bottom: 50px; display: grid; gap: 16px; }
.rp-skel { display: grid; gap: 16px; }
.rp-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; color: #fff;
  background: radial-gradient(60% 90% at 0% 100%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 60%), linear-gradient(150deg, var(--brand-deep), var(--brand-deeper)); box-shadow: var(--shadow-lg); }
.rp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(60% 80% at 20% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 20% 30%, #000, transparent 75%); }
.rp-hero > * { position: relative; z-index: 1; }
.rp-hero-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rp-hero .kicker { background: rgba(255, 255, 255, .12); color: var(--night-hi); margin: 0; }
.rp-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.4rem); margin: 14px 0 8px; overflow-wrap: anywhere; }
.rp-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--night-ink); font-size: .93rem; }
.rp-meta li { display: flex; align-items: center; gap: 6px; }
.rp-meta .ico { color: var(--night-hi); }
.rp-big { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.rb-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rb-v { font-family: var(--display); font-size: clamp(2.8rem, 9vw, 4.4rem); font-weight: 700; line-height: 1; }
.rb-u { font-size: 1.2rem; font-weight: 600; color: var(--night-ink); }
.rb-cpr { margin: 0; font-size: 1.05rem; color: var(--night-ink); }
.rb-cpr b { color: #fff; font-size: 1.3rem; }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.skel.rp-sk-hero { height: 150px; border-radius: 24px; } .skel.rp-sk-kpi { height: 96px; } .skel.rp-sk-chart { height: 280px; border-radius: 24px; }
.rp-note { margin: -6px 4px 0; }
.rp-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.rk-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.rk-l { color: var(--muted); font-size: .85rem; }
.rk-v { font-family: var(--display); font-size: 1.45rem; justify-self: start; }
@media (max-width: 720px) { .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .rp-hero { padding: 22px 18px; border-radius: 22px; } }
.rp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.rp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-card-h h2 { font-size: 1.1rem !important; margin: 0; display: flex; gap: 8px; align-items: center; }
.rp-card-h h2 .ico { color: var(--accent-text); }
.rp-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-fill); flex: none; }
.sw.best { background: var(--accent); }
.rp-chart { position: relative; width: 100%; min-height: 200px; }
.rp-chart svg { display: block; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-base { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.c-yl, .c-xl { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.c-bar { fill: var(--brand); transition: opacity .15s; }
.c-bar.best { fill: var(--accent); }
.rp-chart:hover .c-bar:not(.on) { opacity: .55; }
.c-hit { fill: transparent; cursor: pointer; }
.c-tip { position: absolute; z-index: 2; pointer-events: none; min-width: 150px; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: .82rem; display: grid; gap: 2px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.c-tip span { display: flex; align-items: center; gap: 6px; }
.c-tip .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.rp-table { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rp-table summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: .9rem; padding: 4px 0; }
.rp-tw { overflow-x: auto; margin-top: 8px; }
.rp-table table { font-size: .88rem; min-width: 420px; }
.rp-table tr.is-best td:first-child { box-shadow: inset -3px 0 0 var(--accent); }
.rp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.rp-best, .rp-advice { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-best li { display: flex; gap: 12px; align-items: center; }
.rp-best li > div { display: grid; }
.rb-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.rp-best li:first-child .rb-n { background: var(--accent); color: var(--accent-ink); }
.rp-advice li { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.rp-advice p { margin: 0; }
.rp-advice small { font-weight: 700; font-size: .75rem; }
.ra-i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.lv-ok .ra-i { background: var(--ok-soft); color: var(--ok); } .lv-ok small { color: var(--ok); }
.lv-info .ra-i { background: var(--info-soft); color: var(--info); } .lv-info small { color: var(--info); }
.lv-warn .ra-i { background: var(--warn-soft); color: var(--warn); } .lv-warn small { color: var(--warn); }
.rp-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: 24px; color: #1c1e21;
  background: radial-gradient(70% 140% at 100% 0%, #ffe7d9, transparent 60%), linear-gradient(120deg, #ffe2ee, #f3e6ff); border: 1px solid #f6cfe0; }
.rp-cta h2 { color: #1c1e21; font-size: clamp(1.2rem, 3vw, 1.55rem) !important; margin: 0 0 4px; }
.rp-cta p { margin: 0; }
.rp-cta .btn.on-dark { background: var(--ig); color: #fff; }
@media (max-width: 560px) { .rp-cta { padding: 20px 18px; } .rp-cta .btn { width: 100%; } }
.rp-empty { text-align: center; padding: 48px 20px; border-radius: 24px; max-width: 560px; margin: 40px auto; }
.rp-empty-i { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 12px; }
.rp-empty-i .ico { width: 30px; height: 30px; }
.rp-empty p { color: var(--ink-2); }
.rp-ftr { padding-top: 0; border-top: 0; }

@media print {
  @page { margin: 14mm; }
  :root, :root[data-theme="dark"] { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f4f5f2; --ink: #111; --ink-2: #333; --muted: #666; --line: #ddd; --brand: #0a5ce6; --brand-soft: #e3f2ec; --accent: #d9831c; --accent-soft: #fbeedb; }
  .site, body { background: #fff !important; }
  .no-print, .hdr .hact, .c-tip, .rp-cta .btn, .skip { display: none !important; }
  .hdr { position: static; background: none; backdrop-filter: none; box-shadow: none; border: 0; }
  .rp { padding-top: 0; max-width: none; }
  .rp-hero, .rp-cta { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-card, .rp-kpi { box-shadow: none; break-inside: avoid; }
  .rp-chart .c-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; opacity: 1 !important; }
  .rp-table[open] summary, .rp-table summary { color: #333; }
  a { color: inherit; }
}
@media print { .rp-chart svg { width: 100%; height: auto; } .rp-ftr { background: none; } }

/* ── Performance : les sections sous la ligne de flottaison ne sont ni
   mises en page ni peintes tant qu'elles restent loin de l'écran
   (moins de « Layout » au chargement et à chaque arrivée de police).
   contain-intrinsic-size « auto » : le navigateur retient la vraie
   hauteur une fois la section affichée → pas de saut de défilement. ── */
@media screen {
  .home main > .sec, .home main > .refer-sec, .home main > .final, .home .ftr { content-visibility: auto; contain-intrinsic-size: auto 900px; }
  .home #how, .home .refer-sec, .home .final, .home .ftr { contain-intrinsic-size: auto 400px; }
  @media (max-width: 720px) {
    .home #assistant, .home #sim { contain-intrinsic-size: auto 1550px; }
    .home #guard, .home #price { contain-intrinsic-size: auto 1150px; }
    .home #how { contain-intrinsic-size: auto 660px; }
  }
}
/* site.js pose .cv-off avant un saut d'ancre : rendu complet, position exacte */
.cv-off .home main > .sec, .cv-off .home main > .refer-sec, .cv-off .home main > .final, .cv-off .home .ftr { content-visibility: visible; }

/* ── /login et /register : le serveur pose <body data-page="…"> → le bon
   formulaire est affiché dès le 1er rendu (pas de saut quand auth.js arrive) ── */
body[data-page="login"] .reg-only, body[data-page="register"] .login-only { display: none; }
/* Page de connexion : chaque bloc déclare ses modes (data-modes="login register…") ; dès le 1er rendu, sans JS */
body[data-page="login"] [data-modes]:not([data-modes~="login"]), body[data-page="register"] [data-modes]:not([data-modes~="register"]),
body[data-page="forgot"] [data-modes]:not([data-modes~="forgot"]), body[data-page="reset"] [data-modes]:not([data-modes~="reset"]),
body[data-page="google"] [data-modes]:not([data-modes~="google"]) { display: none; }
/* Icônes remplacées par auth.js : on réserve déjà leur place */
.site [data-i] { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.2em; flex: none; }
/* Rapport public : le pied de page reste sous la ligne de flottaison
   pendant le chargement (sinon il « saute » quand le rapport arrive) */
@media screen { .report-page .rp { min-height: 100vh; min-height: 100svh; } }


/* Bandeau des réglages admin (maintenance / annonce) — voir siteNotice() dans site.js */
.site-notice { padding: 10px 16px; text-align: center; font-size: .92rem; font-weight: 600; background: var(--info-soft, var(--surface-2)); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-notice.warn { background: var(--warn-soft, var(--surface-2)); }
.site-notice.ok { background: var(--ok-soft, var(--surface-2)); }
/* Bouton WhatsApp flottant (numéro : réglage admin support_whatsapp, affiché par site.js via [data-wa]) */
.wa-float { --wa: #25d366; position: fixed; z-index: 50; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.wa-float:hover { filter: brightness(1.05); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float.hidden { display: none; }
