:root {
  /* Akwa Rewards : nuit violette, or, fuchsia, mangue */
  --ink: #1B0B33;
  --night-2: #2A1550;
  --indigo: #5B21D6;
  --indigo-soft: #EFE8FF;
  --bissap: #FF2E88;
  --saffron: #FFD23F;
  --mango: #FF8A00;
  --cyan: #22D3EE;
  --paper: #F7F3FF;
  --card: #FFFFFF;
  --line: #E4DCF4;
  --muted: #655C7C;
  --mint: #138A62;
  --mint-soft: #DDF4EA;
  --amber: #B86200;
  --amber-soft: #FFF1D6;
  --red: #C21F36;
  --red-soft: #FBE3E6;
  --brand: #B5179E;
  --brand-ink: #FFFFFF;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 1px 2px rgba(27,11,51,.06), 0 8px 24px rgba(27,11,51,.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--body);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--indigo); }
img { max-width: 100%; }
.boot { padding: 40px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--bissap); outline-offset: 2px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- formulaires et boutons ---------- */
label { display: block; font-weight: 700; font-size: .95rem; margin: 14px 0 6px; }
label .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
input:focus, select:focus { border-color: var(--indigo); outline: none; }
input[type=color] { padding: 4px; height: 48px; }
input[type=checkbox] { width: auto; transform: scale(1.3); margin-right: 8px; }
.check { display: flex; align-items: center; font-weight: 400; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  background: var(--indigo); color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--indigo); border: 2px solid var(--indigo-soft); }
.btn.soft { background: var(--indigo-soft); color: var(--indigo); }
.btn.wa { background: #17924F; }
.btn.gold { background: var(--saffron); color: var(--ink); }
.btn.danger { background: transparent; color: var(--red); border: 2px solid var(--red-soft); }
.btn.big { min-height: 64px; font-size: 1.15rem; border-radius: 18px; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.btn.brand { background: var(--brand); color: var(--brand-ink); }

.notice { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-size: .95rem; }
.notice.warn { background: var(--amber-soft); color: #6B3A00; }
.notice.bad { background: var(--red-soft); color: #7A1020; }
.notice.good { background: var(--mint-soft); color: #0B5A3F; }
.notice.info { background: var(--indigo-soft); color: var(--indigo); }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  max-width: calc(100% - 32px); transition: transform .25s, opacity .25s; z-index: 50; font-weight: 700;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

dialog {
  border: 0; border-radius: 22px; padding: 22px; width: min(460px, calc(100% - 32px));
  color: var(--ink); box-shadow: 0 30px 80px rgba(27,11,51,.4);
}
dialog::backdrop { background: rgba(27,11,51,.6); backdrop-filter: blur(3px); }

/* ---------- espace pro ---------- */
.topbar {
  background: linear-gradient(100deg, var(--ink) 0%, var(--night-2) 100%); color: #fff; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10;
}
.topbar .mark { flex: none; display: block; }
.topbar .title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .title small { display: block; font-family: var(--body); font-weight: 400; font-size: .8rem; opacity: .7; }
.topbar a, .topbar button.link { color: #fff; background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.topbar .btn { min-height: 42px; background: var(--saffron); color: var(--ink); text-decoration: none; }

.tabs { display: flex; gap: 4px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 0 8px; scrollbar-width: none; }
.tabs a { padding: 14px 12px; text-decoration: none; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--indigo); }

.page { max-width: 880px; margin: 0 auto; padding: 20px 16px 80px; }
.panel { background: var(--card); border-radius: 20px; padding: 20px; margin: 0 0 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font: 800 2rem/1 var(--display); margin-bottom: 6px; }
.stat span { font-size: .9rem; color: var(--muted); }
.stat.hot { background: linear-gradient(140deg, var(--indigo), var(--ink)); color: #fff; border-color: transparent; }
.stat.hot b { color: var(--saffron); }
.stat.hot span { color: #D9CEF5; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .name { font-weight: 700; }
.list .meta { font-size: .88rem; color: var(--muted); }
.list li.stack { flex-wrap: wrap; }
.list li.stack .grow { flex: 1 1 100%; }
.list .acts { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.list .acts .btn { flex: 1 1 auto; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 700 .9rem var(--body); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge { display: inline-block; margin: 2px 0; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.badge.good { background: var(--mint-soft); color: #0B5A3F; }
.badge.warn { background: var(--amber-soft); color: #6B3A00; }
.badge.bad { background: var(--red-soft); color: #7A1020; }
.badge.info { background: var(--indigo-soft); color: var(--indigo); }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--bissap); }

/* éditeur de roue */
.wheel-editor { display: grid; gap: 18px; }
@media (min-width: 760px) { .wheel-editor { grid-template-columns: 300px 1fr; align-items: start; } .wheel-editor .preview { position: sticky; top: 80px; } }
.seg { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; background: #fff; border-left: 10px solid var(--seg, var(--line)); }
.seg .head { display: flex; gap: 10px; align-items: center; }
.seg .head input { font-weight: 700; flex: 1; min-width: 0; }
.seg .pct { font: 800 1.2rem var(--display); min-width: 58px; text-align: right; }
.seg .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; align-items: end; }
.seg .grid label { margin: 0 0 4px; font-size: .85rem; }
.seg.off { opacity: .55; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 3px var(--ink); }

/* ---------- écran staff ---------- */
.staff { min-height: 100dvh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(120% 60% at 50% 0%, #3A1878 0%, var(--ink) 60%); }
.staff .page { width: 100%; }
.staff .actions { display: grid; gap: 12px; }
.staff .btn.big.scan { background: linear-gradient(135deg, var(--saffron), #FFB020); color: var(--ink); min-height: 132px; font-size: 1.6rem; font-family: var(--display); font-weight: 800; box-shadow: 0 14px 40px rgba(255,210,63,.25); }
.staff .btn.big.alt { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.staff .panel { background: #fff; color: var(--ink); border: 0; }
#reader { width: 100%; border-radius: 18px; overflow: hidden; background: #000; }
#reader video { border-radius: 18px; }
.result { border-radius: 24px; padding: 26px 20px; text-align: center; color: var(--ink); margin-bottom: 14px; }
.result h2 { font-size: 1.8rem; margin-bottom: 4px; }
.result .who { font: 700 1.25rem var(--display); }
.result.good { background: var(--mint-soft); }
.result.party { background: linear-gradient(135deg, var(--saffron), #FFB020); }
.result.warn { background: var(--amber-soft); }
.result.bad { background: var(--red-soft); }
.result .big-icon { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; }
.result .dots i { width: 16px; height: 16px; background: rgba(27,11,51,.15); }
.result .dots i.on { background: var(--ink); }

/* ---------- pages client ---------- */
.client { min-height: 100dvh; background: var(--paper); }
.hero {
  background: var(--brand); color: var(--brand-ink);
  background-image: radial-gradient(140% 90% at 50% 0%, rgba(255,255,255,.22), transparent 60%);
  padding: 30px 20px 74px; text-align: center; position: relative; overflow: hidden;
}
.hero img.logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: 10px; }
.hero h1 { margin: 0; }
.hero p { opacity: .9; margin: 6px 0 0; }
.ticket {
  position: relative; max-width: 440px; margin: -50px auto 18px; background: #fff;
  border-radius: 24px; padding: 24px 20px; box-shadow: 0 18px 50px rgba(27,11,51,.16);
}
.ticket.perf { padding-bottom: 30px; }
.ticket.perf::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -8px; height: 16px;
  background: radial-gradient(circle at 8px 8px, var(--paper) 6px, transparent 6.5px) 0 0 / 16px 16px repeat-x;
}
.client .wrap { max-width: 440px; margin: 0 auto; padding: 0 16px 40px; }
.greet { font: 800 1.6rem var(--display); margin: 0 0 4px; }

.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0 8px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed var(--line); display: grid; place-items: center; color: var(--line); font: 800 1rem var(--display); }
.stamp.on { border: 0; color: var(--brand); }
.stamp.on svg { width: 100%; height: 100%; }
.stamp.goal { border-style: solid; border-color: var(--saffron); color: var(--ink); font-size: 1.3rem; background: #FFF8DB; }
.stamp.new svg { animation: stampIn .55s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stampIn { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.progress-line { font-weight: 700; }

.qrbox { text-align: center; margin-top: 8px; }
.qrbox svg { width: 230px; height: 230px; max-width: 100%; }
.qrbox p { margin: 4px 0 0; }

.wheel-zone { text-align: center; padding: 6px 0 4px; }
.wheel-wrap { position: relative; width: min(320px, 100%); margin: 0 auto 14px; aspect-ratio: 1; }
.wheel-wrap svg.wheel { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 30px rgba(27,11,51,.3)); }
.wheel-wrap .bulb { animation: bulb 1.2s steps(1) infinite; }
.wheel-wrap .bulb.alt { animation-delay: .6s; }
.wheel-wrap.spinning .bulb { animation-duration: .25s; }
.wheel-wrap.won .bulb { animation-duration: .18s; }
@keyframes bulb { 0% { fill: #FFF6C9; } 50% { fill: #B08A1A; } }
.wheel-wrap.won svg.wheel { filter: drop-shadow(0 0 30px rgba(255,210,63,.8)); }
.wheel-wrap .rot { transform-origin: 160px 160px; transition: transform 5.2s cubic-bezier(.12, .7, .08, 1); }
.wheel-wrap .pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 34px; height: 42px; z-index: 2; }
.wheel-wrap.locked svg.wheel { filter: grayscale(.7) opacity(.55); }
.lockmsg { position: absolute; inset: 0; display: grid; place-items: center; }
.lockmsg span { background: rgba(27,11,51,.92); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .wheel-wrap .rot { transition-duration: 1.2s; } }

.voucher { border: 2px dashed var(--brand); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 12px; background: #fff; }
.voucher .code { font: 800 1.6rem var(--display); letter-spacing: .08em; }
.voucher svg { width: 96px; height: 96px; flex: none; }

.poweredby { text-align: center; font-size: .8rem; color: var(--muted); padding: 10px 0 30px; }

/* ---------- affiche à imprimer ---------- */
.poster { background: #fff; border-radius: 22px; text-align: center; border: 1px solid var(--line); overflow: hidden; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); }
.poster .p-band { background: var(--brand); color: var(--brand-ink); padding: 26px 20px 22px;
  background-image: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.25), transparent 60%); }
.poster .p-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.poster .pname { font: 800 2.2rem/1.05 var(--display); letter-spacing: -.02em; }
.poster .p-tag { font-weight: 700; opacity: .9; margin-top: 4px; }
.poster .p-body { padding: 18px 24px 8px; }
.poster .lead { font: 800 1.6rem var(--display); margin: 0 0 10px; }
.poster .lead .serif { color: var(--bissap); }
.poster .p-qr { display: inline-block; padding: 10px; border-radius: 18px; border: 4px solid var(--ink); }
.poster .p-qr svg { width: 250px; height: 250px; display: block; }
.poster .p-scan { font-weight: 700; margin: 10px 0 12px; }
.poster .p-steps { text-align: left; max-width: 330px; margin: 0 auto 10px; padding-left: 22px; }
.poster .p-steps li { margin-bottom: 4px; }
.poster .p-url { font-size: .8rem; color: var(--muted); word-break: break-all; }
.poster .p-foot { border-top: 1px solid var(--line); padding: 12px; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body * { visibility: hidden; }
  .poster, .poster * { visibility: visible; }
  .poster { position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; border: 0; box-shadow: none; max-width: 640px; }
  .poster .p-qr svg { width: 320px; height: 320px; }
}

/* ---------- connexion ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #3A1878 0%, var(--ink) 65%); }
.login .panel { width: min(420px, 100%); position: relative; z-index: 1; }
.login .deco { position: absolute; width: 520px; right: -200px; bottom: -200px; opacity: .5; animation: slowspin 60s linear infinite; }
@keyframes slowspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login .deco, .vitrine .hero-wheel { animation: none; } }

/* ---------- V2 : parrainage ---------- */
.invite { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.invite-ic { font-size: 2rem; }
.refer { border: 2px dashed var(--brand); }
.refcode { font-size: 1.05rem; margin: 6px 0 12px; }
.refcode b { font: 800 1.5rem var(--display); letter-spacing: .1em; color: var(--brand); }
select { width: 100%; }

/* ---------- V2.1 ---------- */
.list li.clickable { cursor: pointer; }
.list li.clickable:hover { background: #FAF9FD; }
.stepper { display: flex; align-items: stretch; }
.stepper input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; min-width: 0; }
.stepper button { width: 44px; flex: none; border: 2px solid var(--line); background: var(--indigo-soft); color: var(--indigo); font: 800 1.3rem var(--display); cursor: pointer; }
.stepper button:first-child { border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.stepper.big { gap: 8px; margin-top: 8px; }
.stepper.big button { width: 56px; height: 48px; border-radius: 12px; }
.adj { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.adj > div { background: var(--paper); border-radius: 14px; padding: 12px; text-align: center; }
.adj span { display: block; font-size: .85rem; color: var(--muted); }
.adj b { display: block; font: 800 1.9rem var(--display); }
.adj .stepper { justify-content: center; }
.pct.changed { color: var(--bissap); }
summary { cursor: pointer; padding: 6px 0; }
.vid { margin: 0 0 16px; }
.vid-title { font: 800 1.05rem var(--display); margin-bottom: 8px; }
.vid-el { width: 100%; max-height: 70vh; border-radius: 16px; background: #000; display: block; }
.vid-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border-radius: 16px; overflow: hidden; background: #000; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-details summary { font: 800 1.05rem var(--display); }
.vid-details[open] summary { margin-bottom: 10px; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.vid-frame.wide { aspect-ratio: 16 / 9; }

/* ---------- Design Akwa ---------- */
.akwa-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.akwa-word { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.akwa-word .serif { color: var(--saffron); font-size: 1.05em; }
.akwa-logo.dark .akwa-word { color: var(--ink); }
.akwa-logo.dark .akwa-word .serif { color: var(--indigo); }
.akwa-logo.light .akwa-word { color: #fff; }
.poweredby a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.poweredby b { color: var(--ink); font-family: var(--display); }
.poweredby .serif { color: var(--indigo); font-size: 1.05em; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.pop-in { animation: popIn .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.wheel-wrap .pointer { width: 40px; height: 50px; top: -10px; filter: drop-shadow(0 4px 6px rgba(27,11,51,.35)); }
.login .panel h1 { margin: 14px 0 4px; font-size: 1.6rem; }
.topbar .title small { color: #CDBEF5; opacity: 1; }
.stamp.new svg { animation-delay: var(--d, 0s); }

/* ---------- Page vitrine ---------- */
.vitrine { background: var(--paper); }
.btn.ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
.v-hero { color: #fff; padding: 16px 16px 56px; overflow: hidden;
  background: radial-gradient(90% 70% at 80% 30%, #4B1C9A 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #5A1450 0%, transparent 55%), var(--ink); }
.v-nav { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.v-hero-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 24px; align-items: center; padding-top: 30px; }
@media (min-width: 860px) { .v-hero-grid { grid-template-columns: 1.1fr .9fr; padding-top: 50px; } }
.v-copy h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; max-width: 14ch; }
.v-copy h1 .serif { display: block; color: var(--saffron); font-size: .92em; margin-top: 6px; letter-spacing: -.01em; }
.v-lead { font-size: 1.15rem; color: #DCD0F7; max-width: 46ch; }
.v-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.v-note { font-size: .9rem; color: #B9A9E6; }
.v-visual { position: relative; width: min(420px, 100%); margin: 0 auto; aspect-ratio: 1; }
.hero-wheel { position: absolute; inset: 6%; animation: slowspin 40s linear infinite; }
.hero-wheel svg.wheel { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-wheel .pointer { display: none; }
.v-chip { position: absolute; background: #fff; color: var(--ink); font: 800 .95rem var(--display); padding: 10px 14px; border-radius: 999px; box-shadow: 0 14px 30px rgba(0,0,0,.3); white-space: nowrap; }
.v-chip.c1 { left: -2%; top: 14%; transform: rotate(-5deg); }
.v-chip.c2 { right: -2%; bottom: 12%; transform: rotate(4deg); background: var(--saffron); }
.v-sec { max-width: 1080px; margin: 0 auto; padding: 56px 16px 8px; }
.v-sec h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 22px; }
.v-video .vid-el, .v-video .vid-frame { max-width: 420px; margin: 0 auto; }
.v-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 860px) { .v-steps { grid-template-columns: repeat(3, 1fr); } }
.v-steps li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.v-steps li::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--saffron); font: 800 1.3rem var(--display); margin-bottom: 14px; }
.v-steps b { display: block; font: 800 1.2rem var(--display); margin-bottom: 6px; }
.v-steps span { color: var(--muted); }
.v-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 700px) { .v-grid { grid-template-columns: 1fr 1fr; } }
.v-grid > div { background: #fff; padding: 22px; }
.v-grid b { font: 800 1.15rem var(--display); display: block; margin-bottom: 6px; }
.v-grid p { margin: 0; color: var(--muted); }
.v-team { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .v-team { grid-template-columns: 1fr 260px; } }
.v-team p { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.v-phone { width: 220px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 36px; background: var(--ink); box-shadow: var(--shadow); }
.v-screen { background: #DDF4EA; border-radius: 26px; aspect-ratio: 9 / 16; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--ink); }
.v-screen b { font: 800 1.4rem var(--display); }
.v-ok { font-size: 3rem; }
.v-final { max-width: 1080px; margin: 56px auto 0; padding: 40px 20px; text-align: center; color: #fff; border-radius: 28px 28px 0 0;
  background: radial-gradient(80% 90% at 50% 0%, #4B1C9A 0%, var(--ink) 70%); }
.v-final h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.v-final p { color: #DCD0F7; }
.v-foot { background: var(--ink); color: #B9A9E6; text-align: center; padding: 24px 16px 40px; display: grid; gap: 8px; justify-items: center; }
.v-foot p { margin: 0; } .v-foot a { color: #fff; }

/* ---------- tableau de bord & réglages ---------- */
.chart svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.chart .cbar { cursor: pointer; }
.chart .cbar.on path { opacity: .75; }
.chart-tip { font-size: .9rem; color: var(--muted); min-height: 1.4em; margin: 6px 0 4px; }
.sect { padding: 0; overflow: hidden; }
.sect > summary { list-style: none; padding: 18px 20px; font: 800 1.15rem var(--display); display: flex; justify-content: space-between; align-items: center; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary::after { content: "+"; font-size: 1.5rem; color: var(--indigo); line-height: 1; }
.sect[open] > summary::after { content: "−"; }
.sect[open] > summary { border-bottom: 1px solid var(--line); }
.sect > :not(summary) { margin-left: 20px; margin-right: 20px; }
.sect[open] { padding-bottom: 18px; }
.savebar { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 30%); z-index: 5; }
.sect > input, .sect > select, .sect > textarea { width: calc(100% - 40px); }
.login .deco { width: 460px; right: -210px; bottom: -190px; top: auto; opacity: .35; }
.login .deco svg.wheel { width: 100%; height: auto; display: block; }
.login .deco .pointer { display: none; }
