/* Nuvo — styles de l'application.
   Couleurs tirées du logo : bleu nuit #040E33, dégradé lilas #E5D1FC → #9E8CFC, crème #FEF2E8. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/atkinson-latin.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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/atkinson-latin-ext.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: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/atkinson-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/quicksand-latin.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: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/quicksand-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Twemoji Country Flags"; font-display: swap;
  src: url(fonts/twemoji-flags.woff2) format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; }

:root {
  --navy: #040E33;
  --navy-2: #0A1742;
  --navy-3: #112156;
  --navy-4: #1A2C6C;
  --deep: #020822;
  --line: rgba(229, 209, 252, .12);
  --line-2: rgba(229, 209, 252, .22);
  --cream: #FEF2E8;
  --mist: #ABAFD6;
  --mist-2: #8A8FBF;
  --lilac-hi: #E5D1FC;
  --lilac: #B8A6FC;
  --lilac-2: #9E8CFC;
  --violet: #826BE2;
  --grad: linear-gradient(135deg, #E5D1FC 0%, #B8A6FC 50%, #9E8CFC 100%);
  --mint: #5BE3A8;
  --coral: #FF6F7E;
  --amber: #FFCB7D;
  --font-ui: "Twemoji Country Flags", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Quicksand", "Twemoji Country Flags", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-panel: 22px;
  --r-input: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 66px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy);
  color: var(--cream);
  font: 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.has-sheet, body.in-call { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: var(--lilac-hi); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lilac-hi); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(184, 166, 252, .45); color: var(--cream); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.fine { color: var(--mist); font-size: 14px; }
.flag { font-family: "Twemoji Country Flags", var(--font-ui); line-height: 1; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ icônes */
.ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic-inline { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: .3em; }

/* ------------------------------------------------------------------ écran de chargement */
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.splash-mark { width: 104px; height: auto; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.94); opacity: .75; } }
.noscript { padding: 24px; text-align: center; }

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 700 16px/1.1 var(--font-head); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .12s ease, filter .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent; position: relative;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: var(--navy); box-shadow: 0 10px 26px -12px rgba(158, 140, 252, .8); }
.btn-primary:hover { color: var(--navy); filter: brightness(1.06); }
.btn-quiet { background: rgba(229, 209, 252, .07); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { color: var(--cream); background: rgba(229, 209, 252, .13); }
.btn-danger { background: var(--coral); color: #2B0610; }
.btn-danger:hover { color: #2B0610; filter: brightness(1.06); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: var(--navy) transparent var(--navy) transparent; animation: spin .8s linear infinite;
}
.btn-quiet.is-busy::after { border-color: var(--cream) transparent var(--cream) transparent; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.actions-start { justify-content: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(229, 209, 252, .1); color: var(--cream); }
.icon-btn-call { background: rgba(184, 166, 252, .16); color: var(--lilac-hi); }
.link-btn {
  display: inline-flex; align-items: center; gap: .35em; padding: 6px 2px; border: 0; background: none;
  color: var(--lilac); font: 600 15px var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--lilac-hi); }
.link-danger { color: var(--coral); }
.link-danger:hover { color: #FF9AA4; }

/* ------------------------------------------------------------------ champs */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-tight { display: flex; flex-direction: column; gap: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .label { font-size: 14.5px; font-weight: 600; color: var(--mist); }
.field-hint { font-size: 13.5px; color: var(--mist-2); }
.counter { float: right; font-weight: 400; color: var(--mist-2); font-size: 13px; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-input);
  border: 1px solid var(--line-2); background: var(--navy); color: var(--cream);
  font: 16px/1.4 var(--font-ui); transition: border-color .15s ease;
}
.input::placeholder { color: var(--mist-2); }
.input:hover { border-color: rgba(229, 209, 252, .34); }
.input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(184, 166, 252, .25); }
textarea.input { padding: 12px 14px; resize: vertical; min-height: 96px; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ABAFD6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-sm { min-height: 40px; font-size: 15px; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--mist); }
.dob { display: grid; grid-template-columns: 1fr 1.5fr 1.2fr; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--lilac); }
.form-error {
  padding: 12px 14px; border-radius: 14px; font-size: 15px;
  background: rgba(255, 111, 126, .12); border: 1px solid rgba(255, 111, 126, .45); color: var(--cream);
}
.inline-field { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 14.5px; }
.inline-field .input { width: auto; }

/* Interrupteur */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.switch-text { display: flex; flex-direction: column; gap: 2px; }
.switch-text small { color: var(--mist); font-size: 13.5px; line-height: 1.4; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: var(--navy-4); transition: background .18s ease; }
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream); transition: transform .18s ease;
}
.switch input:checked + .switch-ui { background: var(--lilac-2); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--lilac-hi); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: .5; }

/* Choix segmentés */
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--line); max-width: 100%; }
.seg-btn {
  min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent;
  color: var(--mist); font: 600 14.5px var(--font-ui); cursor: pointer; white-space: nowrap;
}
.seg-btn:hover { color: var(--cream); }
.seg-btn.is-on { background: var(--cream); color: var(--navy); }

/* Puces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--cream); font: 600 14px var(--font-ui); cursor: pointer;
}
.chip.is-on { background: rgba(184, 166, 252, .17); border-color: var(--lilac); color: var(--lilac-hi); }
.chip-more { color: var(--mist); border-style: dashed; }
.chips-static .chip { cursor: default; }
.chip-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist-2); }
.chip-toggle.is-on .dot { background: var(--lilac-hi); box-shadow: 0 0 0 3px rgba(229, 209, 252, .25); }

/* ------------------------------------------------------------------ bulles photo (motif du logo) */
.bub { position: relative; width: 100%; padding-bottom: 12%; }
.bub-frame {
  position: relative; z-index: 1; aspect-ratio: 3 / 4; padding: 3px;
  border-radius: 26% / 19.5%; background: rgba(229, 209, 252, .12); overflow: hidden;
}
.bub-frame > .av { width: 100%; height: 100%; border-radius: calc(26% - 1px) / calc(19.5% - 1px); object-fit: cover; }
.bub-tail {
  position: absolute; z-index: 0; left: 9%; bottom: 0; width: 17%; height: 15%;
  background: rgba(229, 209, 252, .12);
  clip-path: polygon(20% 0, 100% 0, 6% 100%, 0 94%);
}
.bub.tail-right .bub-tail { left: auto; right: 9%; clip-path: polygon(0 0, 80% 0, 100% 94%, 94% 100%); }
.bub.is-lit .bub-frame { background: var(--grad); box-shadow: 0 14px 34px -14px rgba(158, 140, 252, .75); }
.bub.is-lit .bub-tail { background: var(--lilac-2); }
.bub:not(.is-lit) .bub-frame > .av { filter: saturate(.82) brightness(.84); }
.bub-sm { width: 52px; padding-bottom: 8px; flex: none; }
.bub-sm .bub-frame { padding: 2px; }
.bub-md { width: 100%; }
.bub-lg { width: min(230px, 60vw); margin: 0 auto; }
.bub-lg .bub-frame { padding: 4px; }

.av { display: block; background: var(--navy-3); }
.av-empty {
  display: flex; align-items: center; justify-content: center; color: var(--lilac-hi);
  background: radial-gradient(120% 90% at 30% 15%, var(--navy-4) 0%, var(--navy-3) 55%, var(--navy-2) 100%);
  font: 700 clamp(18px, 7vw, 54px)/1 var(--font-head);
}
.bub-sm .av-empty { font-size: 20px; }
.bub-lg .av-empty { font-size: 72px; }

/* ------------------------------------------------------------------ cadre de l'application */
.shell { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(58px + var(--safe-t)); padding: var(--safe-t) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(4, 14, 51, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 34px; height: auto; }
.brand-word { width: 62px; height: auto; }
.topnav { display: none; gap: 4px; }
.topnav-item, .tab-item { position: relative; text-decoration: none; color: var(--mist); -webkit-tap-highlight-color: transparent; }
.topnav-item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font: 700 15px var(--font-head); }
.topnav-item:hover { color: var(--cream); background: rgba(229, 209, 252, .07); }
.topnav-item.is-on { color: var(--navy); background: var(--cream); }
.nav-ic { position: relative; display: inline-flex; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: #2B0610; font: 800 11.5px/1 var(--font-ui);
}
.nav-ic .badge { position: absolute; top: -6px; right: -10px; box-shadow: 0 0 0 2px var(--navy-2); }
.topnav-item { gap: 10px; }
.topnav-item .nav-ic .badge { top: -9px; right: -11px; min-width: 17px; height: 17px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--navy); }
.topnav-item.is-on .nav-ic .badge { box-shadow: 0 0 0 2px var(--cream); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 6px 8px var(--safe-b);
  background: rgba(10, 23, 66, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tab-item { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; font: 700 12px var(--font-head); }
.tab-item .ic { width: 24px; height: 24px; }
.tab-item.is-on { color: var(--lilac-hi); }
.tab-item.is-on .nav-ic::before {
  content: ""; position: absolute; inset: -5px -14px; border-radius: 999px; background: rgba(184, 166, 252, .16); z-index: -1;
}
.notices:empty { display: none; }
.banner {
  display: flex; gap: 12px; align-items: flex-start; max-width: 1120px; margin: 12px auto 0; padding: 12px 16px;
  border-radius: 16px; background: rgba(184, 166, 252, .12); border: 1px solid rgba(184, 166, 252, .3); font-size: 15px;
}
.notices { padding: 0 16px; }
.banner .ic { color: var(--lilac-hi); margin-top: 1px; }
.banner-warn { background: rgba(255, 203, 125, .1); border-color: rgba(255, 203, 125, .35); }
.banner-warn .ic { color: var(--amber); }
.banner .link-btn { padding: 0; }

.view { outline: none; }
.view:not(.view-full) { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px); }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 16px 24px; }
.page-narrow { max-width: 640px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-title { font-size: 30px; letter-spacing: -.01em; }
.page-sub { color: var(--mist); margin-top: 4px; font-size: 15px; min-height: 1.5em; }
.section-title { font-size: 19px; margin: 28px 0 12px; }
.panel { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px 18px; }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 18px; margin-bottom: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 15px; text-align: left; }
.notice .ic { margin-top: 1px; }
.notice-info { background: rgba(184, 166, 252, .11); border: 1px solid rgba(184, 166, 252, .28); }
.notice-info .ic { color: var(--lilac-hi); }
.notice-ok { background: rgba(91, 227, 168, .1); border: 1px solid rgba(91, 227, 168, .35); }
.notice-ok .ic { color: var(--mint); }
.notice-error { background: rgba(255, 111, 126, .1); border: 1px solid rgba(255, 111, 126, .4); }
.notice-error .ic { color: var(--coral); }
.kv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > span { color: var(--mist); min-width: 150px; font-size: 14.5px; }
.kv > strong { font-weight: 600; word-break: break-word; }
.kv .link-btn { margin-left: auto; }
.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 203, 125, .14); color: var(--amber); font: 700 12.5px var(--font-ui); white-space: nowrap;
}
.tag-urgent { background: rgba(255, 111, 126, .16); color: #FF9AA4; }
.tag-soft { background: rgba(229, 209, 252, .1); color: var(--mist); }

/* Chargement, vide */
.loading { display: flex; justify-content: center; padding: 40px 0; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(229, 209, 252, .18); border-top-color: var(--lilac); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 16px; }
.empty-mark { width: 72px; height: auto; opacity: .85; margin-bottom: 6px; }
.empty h2 { font-size: 21px; }
.empty p { color: var(--mist); max-width: 40ch; }
.empty .actions { margin-top: 10px; }

/* ------------------------------------------------------------------ Découvrir */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.filters-row { display: flex; gap: 10px; align-items: center; }
.filters-row select { flex: 1; min-width: 0; max-width: 320px; }
.filters .seg { display: flex; flex-wrap: nowrap; width: 100%; }
.filters .seg-btn { flex: 1 1 auto; min-width: 0; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.grid-foot { padding: 24px 0 8px; }
.card { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: inherit; text-decoration: none; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.card:hover { color: inherit; }
.card:hover .bub-frame { transform: translateY(-2px); }
.card .bub-frame { transition: transform .18s ease; }
.card:focus-visible { outline-offset: 4px; }
.card-name { display: flex; min-width: 0; font: 700 16.5px/1.3 var(--font-head); padding: 0 4px; }
.card-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.card-age { flex: none; color: var(--mist); font-weight: 600; }
.card-meta { display: flex; align-items: center; gap: 7px; padding: 0 4px; font-size: 13.5px; color: var(--mist); min-width: 0; }
.card-meta .flag { font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist-2); flex: none; }
.status.is-online { color: var(--lilac-hi); }
.status.is-online .dot { background: var(--lilac-hi); box-shadow: 0 0 0 3px rgba(229, 209, 252, .22); }
.status.is-busy { color: var(--amber); }
.status.is-busy .dot { background: var(--amber); box-shadow: none; }
.where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.where-time { color: var(--mist); }

/* ------------------------------------------------------------------ Profil */
.profile-top { display: flex; margin: -6px 0 6px -10px; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.profile .bub-lg { margin-bottom: 6px; }
.profile-name { font-size: 32px; letter-spacing: -.01em; margin-top: 4px; }
.profile-age { color: var(--mist); font-weight: 600; }
.profile-where { font-size: 16px; color: var(--cream); }
.profile-where .flag { font-size: 20px; }
.profile-time { color: var(--mist); font-size: 14.5px; }
.profile-call { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 6px; width: 100%; }
.btn-call { min-width: 230px; }
.profile-why { color: var(--mist); font-size: 14.5px; max-width: 36ch; }
.profile-section { width: 100%; text-align: left; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-section h2 { font-size: 15px; color: var(--mist); margin-bottom: 10px; }
.profile-bio { white-space: pre-line; font-size: 16.5px; line-height: 1.55; max-width: 62ch; }
.profile-more { margin-top: 26px; }

/* ------------------------------------------------------------------ Moi */
.me-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 18px; }
.me-name { font-size: 18px; }
.me-name strong { font-family: var(--font-head); }
.me-head .notice { max-width: 460px; }
.push-row { min-height: 52px; display: flex; flex-direction: column; justify-content: center; }
.push-row .loading { padding: 10px 0; }
.me-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }

/* ------------------------------------------------------------------ listes (Récents, administration) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 6px 4px; color: inherit; text-decoration: none; border-radius: 14px; }
.row-main[aria-disabled="true"] { pointer-events: none; }
a.row-main:hover { background: rgba(229, 209, 252, .05); color: inherit; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-text strong { font: 700 16.5px var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--mist); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-time { color: var(--mist-2); font-size: 13.5px; white-space: nowrap; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row.is-missed .row-sub, .row.is-missed .row-text strong { color: #FF9AA4; }
.row.is-new .row-text strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
.row .bub-sm { padding-bottom: 6px; }

/* ------------------------------------------------------------------ Accueil (non connecté) */
.landing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 16px calc(20px + var(--safe-b)); }
.landing-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; max-width: 1120px; width: 100%; margin: 0 auto; }
.landing-top .input { width: auto; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 0 28px; gap: 14px; }
.hero-mark { width: 150px; height: auto; animation: hero-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-word { width: 124px; height: auto; margin-bottom: 18px; animation: fade-in .7s .25s ease both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-title { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.12; letter-spacing: -.02em; max-width: 17ch; }
.hero-sub { font-size: clamp(17px, 2.6vw, 20px); color: var(--mist); max-width: 42ch; margin-bottom: 14px; }
.hero-age { display: inline-flex; align-items: center; color: var(--mist); font-size: 14.5px; margin-top: 8px; }
.hero-age .ic { color: var(--lilac); }
.features { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 14px; max-width: 1040px; width: 100%; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-panel); background: var(--navy-2); border: 1px solid var(--line); }
.feature-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 16px 16px 16px 4px; background: rgba(184, 166, 252, .16); color: var(--lilac-hi); }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--mist); font-size: 15px; }
.landing-foot { margin-top: 28px; display: flex; justify-content: center; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 14px; }
.legal-links a { color: var(--mist); }
.legal-links a:hover { color: var(--cream); }

/* ------------------------------------------------------------------ Connexion / inscription */
.auth { min-height: 100vh; min-height: 100dvh; padding: calc(10px + var(--safe-t)) 16px calc(28px + var(--safe-b)); }
.auth-top { display: flex; justify-content: space-between; align-items: center; max-width: 480px; margin: 0 auto; }
.auth-top .input { width: auto; }
.auth-card { max-width: 480px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 14px; }
.auth-mark { width: 64px; height: auto; margin: 6px auto 4px; }
.auth-card > h1 { text-align: center; font-size: 30px; letter-spacing: -.01em; }
.auth-sub { text-align: center; color: var(--mist); }
.auth-card form { margin-top: 10px; }
.auth-foot { text-align: center; color: var(--mist); margin-top: 8px; }

/* ------------------------------------------------------------------ fenêtres */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(2, 8, 34, .66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s ease;
}
.sheet-wrap.in { opacity: 1; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 14px 18px calc(22px + var(--safe-b));
  transform: translateY(24px); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet-wrap.in .sheet { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-title { font-size: 21px; padding-right: 44px; margin-bottom: 14px; }
.sheet-close { position: absolute; top: 12px; right: 10px; color: var(--mist); }
.sheet-text { color: var(--mist); margin-bottom: 4px; }
.sheet-actions { margin-top: 18px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; }
.choice:hover { border-color: var(--line-2); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--lilac); }
.choice-text { display: flex; flex-direction: column; gap: 2px; }
.choice-text small { color: var(--mist); font-size: 13.5px; }
.choice:has(input:checked) { border-color: var(--lilac); background: rgba(184, 166, 252, .09); }

/* Messages éphémères */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.in-call .toasts { bottom: calc(150px + var(--safe-b)); }
.toast {
  max-width: 520px; padding: 12px 18px; border-radius: 16px; background: var(--cream); color: var(--navy);
  font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast-error { background: #FFD9DD; color: #3A0812; }

/* ------------------------------------------------------------------ Appel */
.call { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--deep); color: var(--cream); overflow: hidden; animation: fade-in .18s ease both; }
.call.out { opacity: 0; transition: opacity .18s ease; }
.call-stage { position: absolute; inset: 0; }
.call-remote, .call-stage video { width: 100%; height: 100%; object-fit: cover; background: var(--deep); }
.call-remote.is-hidden { visibility: hidden; }
.call-stage-self video { opacity: .38; filter: blur(3px) saturate(.9); transform: scale(1.04); }
.call-stage-self video.mirror { transform: scale(1.04) scaleX(-1); }
.mirror { transform: scaleX(-1); }
.call-backdrop { position: absolute; inset: -60px; background-color: var(--navy-3); background-size: cover; background-position: center; filter: blur(34px) brightness(.42) saturate(1.2); }
.call-center { position: relative; z-index: 2; margin: auto; padding: calc(24px + var(--safe-t)) 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 100%; max-width: 520px; }
.call-center .bub-lg { width: min(190px, 46vw); margin-bottom: 6px; }
.call-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.call-center .call-who { align-items: center; }
.call-who strong { font: 700 22px/1.2 var(--font-head); }
.call-center .call-who strong { font-size: 28px; }
.call-where { color: var(--mist); font-size: 15px; }
.call-sub { color: var(--mist); font-size: 16px; }
.is-ringing .bub-frame, .is-calling .bub-frame { animation: lamp 1.6s ease-in-out infinite; }
.is-ringing .bub-frame { background: var(--grad); }
.is-calling .bub-frame { background: rgba(229, 209, 252, .2); }
@keyframes lamp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 166, 252, .55), 0 16px 40px -16px rgba(158, 140, 252, .8); }
  50% { box-shadow: 0 0 0 16px rgba(184, 166, 252, 0), 0 16px 40px -16px rgba(158, 140, 252, .8); }
}
.call-answer { position: relative; z-index: 2; display: flex; justify-content: center; gap: 64px; padding: 0 16px calc(46px + var(--safe-b)); }
.call-answer-item { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; font-size: 15px; }
.rb {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex: none;
  border: 0; border-radius: 50%; background: rgba(229, 209, 252, .17); color: var(--cream); cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .12s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rb:active { transform: scale(.94); }
.rb:hover { background: rgba(229, 209, 252, .26); }
.rb.is-off { background: var(--cream); color: var(--navy); }
.rb-lg { width: 68px; height: 68px; }
.rb-lg .ic { width: 28px; height: 28px; }
.rb-decline, .rb-decline:hover { background: var(--coral); color: #fff; }
.rb-accept, .rb-accept:hover { background: var(--mint); color: #03271A; }
.call-controls { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 4px; }
[data-mode="outgoing"] .call-controls { padding: 0 0 calc(46px + var(--safe-b)); }
.call-top {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: calc(12px + var(--safe-t)) 14px 40px 18px; background: linear-gradient(rgba(2, 8, 34, .78), rgba(2, 8, 34, 0));
}
.call-top-side { display: flex; align-items: center; gap: 4px; }
.call-time { font: 600 15px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--cream); padding: 0 6px; }
.call-report { color: var(--cream); }
.call-peer-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(90% 60% at 50% 40%, var(--navy-3), var(--deep)); }
.call-peer-ph .bub-lg { width: min(170px, 42vw); }
.call-pip {
  position: absolute; z-index: 4; top: calc(76px + var(--safe-t)); right: 14px; width: clamp(92px, 24vw, 150px);
  touch-action: none; cursor: grab; transition: top .2s ease, left .2s ease, right .2s ease, bottom .2s ease;
}
.call-pip video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26% / 19.5%; background: var(--navy-3); box-shadow: 0 0 0 2px rgba(229, 209, 252, .55), 0 10px 26px -8px rgba(0, 0, 0, .6); }
.call-pip-off { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; border-radius: 26% / 19.5%; background: var(--navy-3); box-shadow: 0 0 0 2px rgba(229, 209, 252, .4); }
.call-pip-off .av { width: 56%; aspect-ratio: 3 / 4; height: auto; border-radius: 26% / 19.5%; object-fit: cover; }
.call-pip.cam-off .call-pip-off { display: flex; }
.call-pip[data-corner="tl"] { right: auto; left: 14px; }
.call-pip[data-corner="bl"] { top: auto; right: auto; left: 14px; bottom: calc(220px + var(--safe-b)); }
.call-pip[data-corner="br"] { top: auto; bottom: calc(220px + var(--safe-b)); }
.call-note { position: absolute; z-index: 4; top: calc(78px + var(--safe-t)); left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(10, 23, 66, .85); color: var(--cream); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.call-note:empty { display: none; }
.call-unmute { position: absolute; z-index: 5; top: 45%; left: 50%; transform: translate(-50%, -50%); }
.call-bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 40px 12px calc(14px + var(--safe-b)); background: linear-gradient(rgba(2, 8, 34, 0), rgba(2, 8, 34, .7) 34%);
}
.call-msgs {
  list-style: none; margin: 0; padding: 0 2px; max-height: 30vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  -webkit-mask-image: linear-gradient(transparent, #000 22px); mask-image: linear-gradient(transparent, #000 22px);
}
.msg {
  max-width: min(82%, 420px); align-self: flex-start; padding: 8px 13px; border-radius: 18px 18px 18px 6px;
  background: rgba(10, 23, 66, .8); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere;
}
.msg-me { align-self: flex-end; background: rgba(184, 166, 252, .94); color: var(--navy); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg-text { white-space: pre-wrap; }
.msg-meta { display: block; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--mist); font: 600 12.5px var(--font-ui); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
span.msg-meta { text-decoration: none; cursor: default; }
.call-form { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border-radius: 999px; background: rgba(10, 23, 66, .82); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.call-input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; color: var(--cream); font: 16px var(--font-ui); }
.call-input:focus { outline: none; }
.call-input::placeholder { color: var(--mist); }
.call-form:focus-within { border-color: var(--lilac); }
.call-tr { color: var(--mist); width: 42px; height: 42px; }
.call-tr.is-on { color: var(--navy); background: var(--lilac); }
.call-send { width: 42px; height: 42px; background: var(--grad); color: var(--navy); }
.call-send:hover { background: var(--grad); color: var(--navy); filter: brightness(1.06); }
.call-ended { gap: 12px; }
.call-ended-title { font-size: 24px; max-width: 24ch; }
.call-ended .actions { margin-top: 10px; }
.is-ended .bub-frame > .av { filter: saturate(.7) brightness(.7); }

/* ------------------------------------------------------------------ Administration */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; color: var(--mist); text-decoration: none; font: 700 15px var(--font-head); border: 1px solid var(--line); }
.tab:hover { color: var(--cream); }
.tab .ic { width: 18px; height: 18px; }
.tab.is-on { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.admin-tools .input { flex: 1; min-width: 220px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
a.tile:hover { border-color: var(--line-2); color: inherit; }
.tile strong { font: 700 30px/1.1 var(--font-head); color: var(--lilac-hi); }
.tile span { color: var(--mist); font-size: 14px; }
.health-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.health { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--navy-2); border: 1px solid rgba(255, 203, 125, .3); }
.health > .ic { color: var(--amber); }
.health.is-ok { border-color: var(--line); }
.health.is-ok > .ic { color: var(--mint); }
.health > div { flex: 1; min-width: 0; }
.health p { color: var(--mist); font-size: 14.5px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.report-who { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.report-who > span { display: flex; flex-direction: column; min-width: 0; }
.report-who small { color: var(--mist); overflow: hidden; text-overflow: ellipsis; }
.report.is-urgent { border-color: rgba(255, 111, 126, .5); }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--mist); font-size: 14px; margin-bottom: 8px; }
.report-comment { margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--lilac); background: rgba(229, 209, 252, .05); border-radius: 0 12px 12px 0; white-space: pre-line; }
.excerpt { margin-bottom: 10px; }
.excerpt summary { cursor: pointer; color: var(--lilac); font-weight: 600; font-size: 14.5px; }
.excerpt pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.5 var(--font-ui); background: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0 0; max-height: 280px; overflow-y: auto; }
.report .actions { margin-top: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 12px; }
.photo-item { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); }
.photo-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.photo-item figcaption { text-align: center; font-weight: 600; }
.photo-item .actions { gap: 8px; }
.member-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.member-head .bub-md { width: 110px; flex: none; }
.member-head h2 { font-size: 22px; }
.member-head p { color: var(--mist); }
.member-pending { margin: 8px 0 12px; }
.member-pending img { width: 120px; border-radius: 12px; margin-top: 6px; }
.member-bio { padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-bio p { white-space: pre-line; margin-top: 4px; }
.member .actions { margin-top: 16px; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log li { padding: 10px 14px; border-radius: 14px; background: var(--navy-2); border: 1px solid var(--line); font-size: 14.5px; }
.log li p { margin-top: 6px; color: var(--mist); }
.sub-fields { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: rgba(229, 209, 252, .04); border: 1px dashed var(--line-2); }
.settings .panel { display: flex; flex-direction: column; gap: 14px; }
.settings .panel + .panel { margin-top: 0; }
.settings .panel-title { margin-bottom: 0; }
.test-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 4px; }
.test-row .input { width: auto; flex: 1; min-width: 200px; max-width: 320px; }
.test-row .fine { flex-basis: 100%; text-align: center; }
.settings-save { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 5; }
.settings-save .btn { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }

/* ------------------------------------------------------------------ pages légales */
.legal-body { padding: 0 16px calc(32px + var(--safe-b)); }
.legal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 0 8px; }
.legal-brand img { width: 92px; height: auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; color: var(--mist); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.legal-nav a[aria-current="page"] { background: var(--cream); color: var(--navy); }
.legal { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.legal h1 { font-size: 34px; margin-bottom: 18px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: #E9E1EE; line-height: 1.65; max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .note { padding: 12px 16px; border-radius: 14px; background: rgba(255, 203, 125, .1); border: 1px solid rgba(255, 203, 125, .35); color: var(--cream); font-size: 15px; }
.legal-back { margin-top: 40px; text-align: center; }

/* ------------------------------------------------------------------ tailles d'écran */
@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .filters .seg { width: auto; }
  .filters .seg-btn { flex: none; padding: 0 15px; }
  .filters-row { flex: 1; justify-content: flex-end; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { flex-direction: column; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .sheet-grip { display: none; }
  .page { padding: 30px 24px 24px; }
}
@media (min-width: 860px) {
  .topnav { display: flex; }
  .tabbar { display: none; }
  .view:not(.view-full) { padding-bottom: 48px; }
  .toasts { bottom: 24px; }
  .settings-save { bottom: 16px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-title { font-size: 34px; }
  .hero-title { max-width: 21ch; }
  .call-remote { object-fit: contain; }
  .call-bottom {
    display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "msgs msgs ." "form controls .";
    align-items: end; column-gap: 24px; row-gap: 10px; padding: 70px 24px calc(22px + var(--safe-b));
  }
  .call-msgs { grid-area: msgs; width: min(440px, 100%); max-height: 46vh; }
  .call-form { grid-area: form; width: min(440px, 100%); }
  .call-controls { grid-area: controls; padding-top: 0; }
  .call-pip { width: 180px; top: calc(80px + var(--safe-t)); right: 24px; }
  .call-pip[data-corner="bl"], .call-pip[data-corner="br"] { bottom: calc(120px + var(--safe-b)); }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .grid { gap: 18px 10px; }
  .card-name { font-size: 15px; }
  .seg-btn { padding: 0 11px; }
  .call-answer { gap: 44px; }
}
@media (hover: none) {
  .card:hover .bub-frame { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================================================================== Tokens (version 1.1) */

/* Pièce et montants */
.coin { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.coin svg { display: block; width: 100%; height: 100%; }
.amount { display: inline-flex; align-items: center; gap: .32em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount-n { font-weight: 700; }
.amount-sm { font-size: 13.5px; }
.amount-lg { font: 700 22px/1.1 var(--font-head); }
.amount-xl { font: 700 34px/1 var(--font-head); letter-spacing: -.01em; }
.coin-art { display: block; }
.coin-art svg { display: block; width: 100%; height: auto; }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(12px); } to { opacity: 1; transform: none; } }

/* Barre du haut : solde, tâches, offre */
.topbar-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-wallet { display: flex; align-items: center; gap: 6px; }
.wallet-pill {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px 0 7px; border-radius: 999px;
  background: rgba(229, 209, 252, .1); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cream); text-decoration: none; font-size: 15.5px;
}
.wallet-pill .coin { width: 25px; height: 25px; }
.wallet-pill:hover { background: rgba(229, 209, 252, .17); color: var(--cream); }
.wallet-pill.is-on { background: var(--cream); color: var(--navy); box-shadow: none; }
.top-tasks { position: relative; width: 40px; height: 40px; color: var(--lilac-hi); }
.top-dot {
  position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--coral); color: #2B0610; font: 800 10.5px/17px var(--font-ui); text-align: center; box-shadow: 0 0 0 2px var(--navy);
}
.offer-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px 0 8px; border: 0; border-radius: 999px;
  background: var(--grad); color: var(--navy); font: 800 14px var(--font-ui); font-variant-numeric: tabular-nums; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(158, 140, 252, .9);
}
.offer-chip .ic { width: 18px; height: 18px; }
@media (max-width: 420px) { .topbar:has(.top-wallet) .brand-word { display: none; } }

/* Boutique */
.shop .page-head { align-items: center; }
.shop .page-sub { display: flex; align-items: center; gap: 6px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 14px 6px 12px;
  border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: var(--navy-2); color: var(--cream);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.pack:hover { border-color: var(--line-2); }
.pack:active { transform: scale(.97); }
.pack.is-on { border-color: var(--lilac); background: rgba(184, 166, 252, .15); box-shadow: 0 0 0 1px var(--lilac), 0 14px 30px -16px rgba(158, 140, 252, .95); }
.pack-n { font: 700 19px/1.15 var(--font-head); letter-spacing: -.01em; }
.pack-art { width: 100%; max-width: 112px; margin: 4px 0 2px; }
.pack-price { font-weight: 700; font-size: 15.5px; }
.pack-bonus {
  position: absolute; top: -9px; right: -3px; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: #03271A;
  font: 800 11.5px/1.5 var(--font-ui); box-shadow: 0 0 0 2px var(--navy);
}
.packs-compact { gap: 10px 8px; }
.packs-compact .pack { padding: 12px 4px 10px; }
.packs-compact .pack-art { max-width: 78px; }
.packs-compact .pack-n { font-size: 17px; }
.quick-balance { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--mist); margin: -4px 0 14px; }

.timer-boxes { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.timer-box {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 34px; padding: 0 4px;
  border-radius: 8px; background: var(--navy); color: var(--cream); font: 700 19px/1 var(--font-head);
}
.timer-sep { font: 700 18px var(--font-head); }

.offer-banner {
  display: grid; grid-template-columns: auto 1fr; width: 100%; margin: 0 0 16px; padding: 0; border: 0; overflow: hidden;
  border-radius: 22px 22px 22px 6px; color: var(--cream); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(90% 150% at 32% 55%, rgba(184, 166, 252, .38), rgba(184, 166, 252, 0) 62%), var(--navy-3);
  box-shadow: inset 0 0 0 1.5px rgba(229, 209, 252, .55), 0 18px 38px -20px rgba(158, 140, 252, .95);
}
.offer-banner.is-on { outline: 3px solid var(--cream); outline-offset: 3px; }
.ob-timer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; background: var(--deep); color: var(--cream); }
.ob-timer-label { font: 700 12.5px/1.2 var(--font-ui); color: var(--lilac-hi); text-align: center; max-width: 11ch; }
.ob-timer .timer-box { background: var(--navy-3); }
.ob-main { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 14px 8px 2px; }
.ob-art { width: 84px; flex: none; }
.ob-amounts { display: flex; flex-direction: column; line-height: 1.1; }
.ob-amounts strong { font: 700 24px/1.05 var(--font-head); }
.ob-plus { font: 800 16px var(--font-ui); color: var(--mint); }
.ob-price { margin-left: auto; font: 700 22px var(--font-head); white-space: nowrap; }

.shop-actions { margin: 22px 0 8px; }
.shop-buy { min-width: min(320px, 100%); }
.shop-trust { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; text-align: center; }
.shop-trust > p > a { color: var(--mint); }
.shop-secure { display: inline-flex; align-items: center; font-weight: 600; }
.shop-trust .notice { margin-top: 6px; }
.shop-uses { margin-top: 26px; }
.uses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.uses li { display: flex; align-items: center; gap: 12px; }
.uses li > .ic { color: var(--lilac-hi); }
.shop-result:empty { display: none; }
.result { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-align: center; }
.result h2 { font-size: 22px; }
.result p { color: var(--mist); max-width: 42ch; }
.result-paid { border-color: rgba(91, 227, 168, .45); background: radial-gradient(120% 90% at 50% 0%, rgba(184, 166, 252, .2), var(--navy-2) 62%); }
.result-art { width: 190px; animation: pop .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.result .result-n { display: flex; align-items: center; gap: 4px; color: var(--cream); font: 700 30px var(--font-head); }
.result-spin { margin: 8px 0; }
.result-ic { width: 40px; height: 40px; color: var(--lilac-hi); }
.result .actions { margin-top: 6px; }

/* Montant libre */
.stepper-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-btn { background: rgba(229, 209, 252, .1); }
.stepper-input { width: 150px; text-align: center; font: 700 22px var(--font-head); }
.stepper-price { font: 700 26px var(--font-head); }

/* Confirmation d'achat */
.buy-summary { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--navy); border: 1px solid var(--line); }
.buy-art { width: 108px; flex: none; }
.buy-lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.buy-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.buy-unit { color: var(--mist); font-weight: 600; }
.buy-note { color: var(--mist); font-size: 14px; }
.buy-price strong { font: 700 21px var(--font-head); }
.buy-price span { color: var(--mist); font-size: 13.5px; }
.buy-consent { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(229, 209, 252, .05); font-size: 14.5px; }
.buy .notice { margin-top: 12px; }
.buy-status:empty { display: none; }
.buy-status { margin-top: 12px; }
.buy-foot { margin-top: 12px; }

/* Fenêtres de l'offre et de bienvenue */
.sheet-offer, .sheet-welcome { background: radial-gradient(140% 70% at 50% 0%, rgba(184, 166, 252, .28), var(--navy-2) 62%); }
.offer { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.offer-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; color: var(--lilac-hi); font-weight: 700; }
.offer-card {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px 12px 8px; border-radius: 22px 22px 22px 6px; color: var(--cream);
  background: radial-gradient(90% 140% at 25% 55%, rgba(184, 166, 252, .4), rgba(184, 166, 252, 0) 65%), var(--navy-3);
  box-shadow: inset 0 0 0 1.5px rgba(229, 209, 252, .55);
}
.offer-art { width: 124px; flex: none; }
.offer-figures { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.offer-amounts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-plus { padding: 2px 10px; border-radius: 999px; background: rgba(91, 227, 168, .16); color: var(--mint); font: 800 16px var(--font-ui); }
.offer-price { font: 700 26px var(--font-head); }
.offer-text { color: var(--mist); max-width: 40ch; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.welcome-art { width: 210px; animation: pop .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.welcome-n { display: inline-flex; align-items: center; gap: 4px; }
.welcome-plus { font: 700 30px var(--font-head); color: var(--lilac-hi); }
.welcome-text { color: var(--mist); max-width: 34ch; }

/* Historique */
.order-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none;
  border-radius: 14px 14px 14px 4px; background: rgba(184, 166, 252, .14); color: var(--lilac-hi);
}
.order-price { color: var(--mist); font: 600 14.5px var(--font-ui); }
.order-row { flex-wrap: wrap; }
.order-row .row-main { flex-basis: 100%; }
.order-row .row-text strong, .order-row .row-sub { white-space: normal; overflow: visible; }
.order-actions { width: 100%; padding: 2px 0 8px; }
.admin-order .row-text strong { white-space: normal; }
.move-label { white-space: normal !important; font-size: 15.5px !important; }
.move-delta { font: 700 16px var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; }
.move-delta.is-plus { color: var(--mint); }
.tag-ok { background: rgba(91, 227, 168, .14); color: var(--mint); }

/* Tâches quotidiennes */
.tasks-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tasks-art { width: 104px; flex: none; }
.tasks-sub { color: var(--mist); margin-top: 6px; max-width: 46ch; }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: var(--navy-2);
}
.task-reward {
  display: inline-flex; align-items: center; justify-content: center; min-width: 66px; padding: 7px 9px; border-radius: 14px;
  background: rgba(184, 166, 252, .12); color: var(--lilac-hi); font: 700 16px var(--font-head);
}
.task-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.task-title .ic { color: var(--lilac); }
.task.is-ready { border-color: rgba(184, 166, 252, .55); }
.task.is-ready .task-reward { background: var(--grad); color: var(--navy); }
.task.is-done { opacity: .6; }
.task.just-claimed .task-reward { animation: pop .5s ease both; }
.task-done { display: inline-flex; align-items: center; color: var(--mint); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.task-progress { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.bar { flex: 1; height: 6px; border-radius: 999px; background: var(--navy-4); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.task-count { color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-offer { border-color: rgba(184, 166, 252, .5); background: linear-gradient(120deg, rgba(229, 209, 252, .16), rgba(158, 140, 252, .06)); }
.task-timer { margin-top: 6px; }
.task-timer .timer-box { min-width: 26px; height: 28px; font-size: 16px; background: var(--deep); }
.task-btn { white-space: nowrap; }

/* Profil et Moi */
.profile-price { color: var(--lilac-hi); font-size: 14.5px; font-weight: 600; }
.gifts-got { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gifts-got li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(229, 209, 252, .05); }
.gifts-got-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.me-tokens { text-align: center; }
.me-tokens .panel-title { text-align: left; }
.me-balance { display: flex; justify-content: center; margin: 0 0 16px; }

/* Prix d'un appel */
.callpay { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.callpay-rate { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px; }
.callpay-per { color: var(--mist); font-weight: 600; }
.callpay-bal { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; color: var(--mist); }

/* Pendant l'appel : facturation, cadeaux */
.call-bill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px 0 7px; border-radius: 999px;
  background: rgba(10, 23, 66, .72); font: 700 14px var(--font-ui); font-variant-numeric: tabular-nums;
}
.call-bill .coin { width: 18px; height: 18px; }
.call-warn {
  align-self: center; display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border-radius: 999px;
  background: rgba(255, 111, 126, .95); color: #2B0610; font-weight: 700; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
.call-warn > .ic { width: 18px; height: 18px; }
.call-warn .btn { min-height: 34px; padding: 0 14px; background: var(--cream); color: var(--navy); box-shadow: none; }
.rb-gift, .rb-gift:hover { background: var(--grad); color: var(--navy); }
.gift-art { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 42% 42% 42% 14%; color: var(--navy); }
.gift-md { width: 54px; height: 54px; }
.gift-md .ic { width: 26px; height: 26px; }
.gift-sm { width: 38px; height: 38px; }
.gift-sm .ic { width: 19px; height: 19px; }
.gift-xs { width: 26px; height: 26px; border-radius: 9px 9px 9px 3px; }
.gift-xs .ic { width: 15px; height: 15px; }
.gift-xl { width: 116px; height: 116px; }
.gift-xl .ic { width: 56px; height: 56px; }
.gift-t1 { background: linear-gradient(135deg, #FBF6FF, #CBBBFD); }
.gift-t2 { background: var(--grad); }
.gift-t3 { background: linear-gradient(135deg, #BDF8DD 0%, #9E8CFC 100%); }
.gift-t4 { background: linear-gradient(135deg, #FFE9BE 0%, #FFB57F 45%, #FF7D8A 100%); }
.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gift-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 4px 8px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--navy); color: var(--cream); font: inherit; cursor: pointer;
}
.gift-tile.is-on { border-color: var(--lilac); background: rgba(184, 166, 252, .14); box-shadow: 0 0 0 1px var(--lilac); }
.gift-name { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.gift-balance { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; color: var(--mist); }
.gift-fly {
  position: absolute; z-index: 6; left: 50%; bottom: 34%; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: translateX(-50%); pointer-events: none; animation: gift-fly 3s cubic-bezier(.2, .8, .2, 1) both;
}
.gift-fly .gift-art { box-shadow: 0 18px 50px -12px rgba(158, 140, 252, .9); }
.gift-fly-cap { padding: 8px 16px; border-radius: 999px; background: rgba(10, 23, 66, .9); color: var(--cream); font-weight: 700; font-size: 15px; white-space: nowrap; }
@keyframes gift-fly {
  0% { opacity: 0; transform: translate(-50%, 40px) scale(.4); }
  14% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  22% { transform: translate(-50%, 0) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -28px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -90px) scale(.92); }
}
.msg-gift {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(10, 23, 66, .82); border: 1px solid rgba(184, 166, 252, .4); font-size: 14px; font-weight: 600;
}

/* Page de retour du paiement (onglet séparé) */
.pay-card { padding-top: 32px; }

/* Administration de la boutique */
.shop-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy-code {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--navy);
  font: 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere;
}
.pack-rows { display: flex; flex-direction: column; gap: 8px; }
.pack-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto auto; align-items: end; gap: 8px;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(229, 209, 252, .04);
}
.pack-row-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mist); }
.pack-row-bonus { display: inline-flex; align-items: center; min-height: 40px; color: var(--mint); font-weight: 700; font-size: 14px; }
.pack-row-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; color: var(--mist); }
.pack-row-act input { width: 18px; height: 18px; accent-color: var(--lilac); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gift-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.gift-price { display: grid; grid-template-columns: auto minmax(0, 1fr) 96px; align-items: center; gap: 10px; font-size: 14.5px; }
.member-wallet { margin-top: 16px; }

@media (min-width: 600px) {
  .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .packs-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .call-bottom { grid-template-areas: "warn warn warn" "msgs msgs ." "form controls ."; }
  .call-warn { grid-area: warn; justify-self: center; }
}
@media (max-width: 520px) {
  .pack-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-2, .gift-prices { grid-template-columns: minmax(0, 1fr); }
  .offer-art { width: 96px; }
  .tasks-art { width: 84px; }
}
@media (max-width: 360px) {
  .packs { gap: 10px 7px; }
  .pack-n { font-size: 17px; }
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task-btn, .task-done { grid-column: 1 / -1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gift-fly { animation: none !important; }
}

/* ================================================================== Rencontres et messages (version 1.2) */

/* Premières impressions : présentation */
.mi { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 26px; }
.mi-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; width: min(360px, 94%); margin-bottom: 4px; }
.mi-me { transform: rotate(-6deg); }
.mi-them { transform: rotate(6deg); }
.mi-me .bub, .mi-them .bub { width: 100%; }
.mi-link { margin: 0 -6px; position: relative; z-index: 2; }
.mi-link svg { display: block; width: 100%; height: auto; overflow: visible; }
.mi-pulse-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pulse-draw 1.8s .25s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }
.mi-unknown .bub-frame { background: var(--grad); }
.mi-unknown .bub-tail { background: var(--lilac-2); }
.mi-q { display: flex !important; align-items: center; justify-content: center; color: var(--lilac-hi);
  background: radial-gradient(110% 80% at 30% 20%, var(--navy-4), var(--navy-2) 70%); }
.mi-q .ic { width: 40%; height: auto; aspect-ratio: 1; }
.mi-title { font-size: 32px; letter-spacing: -.01em; }
.mi-text { color: var(--mist); max-width: 34ch; font-size: 16.5px; }
.mi-steps { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: min(430px, 100%); text-align: left; }
.mi-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); font-size: 15px; }
.mi-step-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(184, 166, 252, .16); color: var(--lilac-hi); }
.mi-step-ic .ic { width: 20px; height: 20px; }
.mi-want { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.mi-fine { max-width: 40ch; }
.mi-why { max-width: 430px; }

/* Premières impressions : écran plein */
.mx { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--deep); color: var(--cream); overflow: hidden; animation: fade-in .18s ease both; }
.mx.out { opacity: 0; transition: opacity .18s ease; }
.mx-stage { position: absolute; inset: 0; }
.mx-stage video { width: 100%; height: 100%; object-fit: cover; background: var(--deep); }
.mx-stage-self video { opacity: .34; filter: blur(6px) saturate(.9); transform: scale(1.06) scaleX(-1); }
.mx-center { position: relative; z-index: 2; margin: auto; padding: calc(30px + var(--safe-t)) 24px 130px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; max-width: 520px; }
.mx[data-mode="paused"] .mx-center, .mx[data-mode="error"] .mx-center, .mx[data-mode="starting"] .mx-center { padding-bottom: 30px; }
.mx-title { font: 700 24px/1.25 var(--font-head); max-width: 22ch; }
.mx-sub { color: var(--mist); font-size: 15.5px; max-width: 34ch; }
.mx-close { position: absolute; z-index: 5; top: calc(10px + var(--safe-t)); right: 10px; background: rgba(10, 23, 66, .6); }
.mx-radar { position: relative; width: 128px; margin-bottom: 10px; }
.mx-radar .bub { width: 128px; position: relative; z-index: 1; }
.mx-ring { position: absolute; left: 50%; top: 44%; width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 50%; border: 2px solid rgba(184, 166, 252, .55); opacity: 0; animation: radar 2.7s ease-out infinite; }
.mx-ring:nth-child(2) { animation-delay: .9s; }
.mx-ring:nth-child(3) { animation-delay: 1.8s; }
@keyframes radar { 0% { transform: scale(.75); opacity: .85; } 100% { transform: scale(2.4); opacity: 0; } }
.mx-peer-bub { width: 150px; }
.mx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mx-who strong { font: 700 22px/1.2 var(--font-head); }
.mx-where { color: var(--mist); font-size: 15px; }
.mx-center .mx-who { align-items: center; }
.mx-center .mx-who strong { font-size: 26px; }
.mx-top {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: calc(12px + var(--safe-t)) 12px 44px 18px; background: linear-gradient(rgba(2, 8, 34, .78), rgba(2, 8, 34, 0));
}
.mx-pip { position: absolute; z-index: 4; top: calc(80px + var(--safe-t)); right: 14px; width: clamp(84px, 22vw, 140px); }
.mx-pip video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26% / 19.5%; background: var(--navy-3); box-shadow: 0 0 0 2px rgba(229, 209, 252, .55), 0 10px 26px -8px rgba(0, 0, 0, .6); }
.mx-bottom {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 44px 16px calc(26px + var(--safe-b)); background: linear-gradient(rgba(2, 8, 34, 0), rgba(2, 8, 34, .8) 42%);
}
.mx-controls { display: flex; align-items: flex-end; justify-content: center; gap: 30px; }
.mx-ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cream); }
.mx-hint { font-weight: 600; font-size: 15px; text-align: center; max-width: 30ch; min-height: 1.4em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.mx-result-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(184, 166, 252, .16); color: var(--lilac-hi); }
.mx-result-ic .ic { width: 30px; height: 30px; }

/* Le cœur est aussi le minuteur : l'anneau se vide pendant la rencontre */
.heart-btn {
  position: relative; width: 98px; height: 98px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--cream);
  background: rgba(10, 23, 66, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent;
}
.heart-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(229, 209, 252, .2); stroke-width: 5; }
.ring-fg { fill: none; stroke: var(--lilac-hi); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.heart-btn.is-late .ring-fg { stroke: var(--coral); }
.heart-core {
  position: absolute; inset: 11px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: var(--navy); box-shadow: 0 10px 26px -10px rgba(158, 140, 252, .95); transition: transform .14s ease;
}
.heart-core .ic { width: 34px; height: 34px; }
.heart-btn:active .heart-core { transform: scale(.93); }
.heart-btn.is-liked { cursor: default; }
.heart-btn.is-liked .heart-core { background: var(--cream); color: var(--coral); animation: heart-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.heart-btn.is-liked .heart-core svg { fill: currentColor; }
@keyframes heart-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.heart-secs { font: 700 15px var(--font-ui); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; }

/* C'est un match ! */
.mx[data-mode="matched"] { background-image: radial-gradient(120% 70% at 50% 16%, rgba(184, 166, 252, .34), rgba(2, 8, 34, 0) 64%); }
.mm { position: relative; z-index: 2; margin: auto; padding: calc(40px + var(--safe-t)) 24px calc(30px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; width: 100%; max-width: 480px; }
.mm-art { position: relative; width: min(320px, 86vw); height: 220px; margin-bottom: 6px; }
.mm-card { position: absolute; top: 6px; width: 46%; }
.mm-card .bub { width: 100%; }
.mm-them { left: 3%; transform: rotate(-9deg); animation: mm-left .7s cubic-bezier(.2, .9, .25, 1.15) both; }
.mm-me { right: 3%; transform: rotate(8deg); animation: mm-right .7s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes mm-left { from { transform: translateX(-70px) rotate(-22deg); opacity: 0; } to { transform: rotate(-9deg); opacity: 1; } }
@keyframes mm-right { from { transform: translateX(70px) rotate(22deg); opacity: 0; } to { transform: rotate(8deg); opacity: 1; } }
.mm-heart {
  position: absolute; z-index: 3; left: 50%; top: 56%; width: 66px; height: 66px; margin: -33px 0 0 -33px; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--coral); box-shadow: 0 0 0 6px rgba(4, 14, 51, .65), 0 16px 30px -10px rgba(0, 0, 0, .7);
  animation: heart-pop .6s .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.mm-heart .ic { width: 30px; height: 30px; }
.mm-heart svg { fill: currentColor; }
.mm-title { font: 700 42px/1.1 var(--font-head); letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: mm-title .5s .3s ease both; }
@keyframes mm-title { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.mm-sub { color: var(--mist); font-size: 16.5px; margin-bottom: 8px; }
.mm-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(320px, 100%); }
.mm-more { margin-top: 4px; }

/* Messages : liste */
.inbox-tabs { display: flex; justify-content: center; margin: -4px 0 18px; }
.seg-label { display: inline-flex; align-items: center; gap: 6px; }
.seg-badge { min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
.new-matches { margin-bottom: 14px; }
.new-matches .section-title { margin: 0 0 10px; font-size: 16px; color: var(--mist); }
.nm-list { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.nm-list::-webkit-scrollbar { display: none; }
.nm { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; color: inherit; text-decoration: none; }
.nm .bub-sm { width: 64px; }
.nm-name { font: 700 13.5px var(--font-head); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.conv-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--grad); color: var(--navy); font: 800 12px/22px var(--font-ui); text-align: center; }
.conv.is-unread .row-sub { color: var(--cream); font-weight: 600; }
.conv-match { color: var(--coral); margin-left: 6px; }
.conv-match .ic-inline { margin-right: 0; }
.conv-match svg, .profile-matched svg, .chat-matched svg { fill: currentColor; }
.conv-you { color: var(--mist-2); }
.inbox-hint { margin-top: 8px; }

/* Messages : conversation */
body.is-chat .tabbar { display: none; }
body.is-chat .shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body.is-chat .shell > .view { flex: 1; min-height: 0; padding-bottom: 0; }
body.is-chat .toasts { bottom: calc(96px + var(--safe-b)); }
.chat { display: flex; flex-direction: column; height: 100%; width: 100%; max-width: 760px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 6px; border-bottom: 1px solid var(--line); }
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 2px 4px; color: inherit; text-decoration: none; border-radius: 14px; }
.chat-who .bub-sm { width: 44px; padding-bottom: 6px; }
.chat-who-text { display: flex; flex-direction: column; min-width: 0; }
.chat-who-text strong { font: 700 17px/1.25 var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status { font-size: 13.5px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 8px; }
.chat-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-matched { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(184, 166, 252, .12); color: var(--lilac-hi); font-size: 14px; font-weight: 600; text-align: center; }
.chat-first { background: none; color: var(--mist); }
.chat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cm { max-width: min(80%, 460px); align-self: flex-start; padding: 8px 12px 5px; border-radius: 18px 18px 18px 6px; background: var(--navy-3); border: 1px solid var(--line); overflow-wrap: anywhere; }
.cm-me { align-self: flex-end; background: var(--lilac); color: var(--navy); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.cm-text { white-space: pre-wrap; font-size: 15.5px; line-height: 1.4; }
.cm-meta { display: block; margin-top: 2px; text-align: right; font-size: 11.5px; color: var(--mist-2); font-variant-numeric: tabular-nums; }
.cm-me .cm-meta { color: rgba(4, 14, 51, .62); }
.cm.is-pending { opacity: .6; }
.cm-tr { display: block; margin-top: 1px; padding: 0; border: 0; background: none; color: var(--lilac); font: 600 12.5px var(--font-ui); text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
span.cm-tr { color: var(--mist); text-decoration: none; cursor: default; }
.cm-day { align-self: center; margin: 12px 0 6px; padding: 3px 12px; border-radius: 999px; background: rgba(229, 209, 252, .08); color: var(--mist); font-size: 12.5px; font-weight: 600; }
.cm-seen { align-self: flex-end; display: inline-flex; align-items: center; color: var(--mist); font-size: 12.5px; margin-top: 2px; }
.chat-foot { padding: 8px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--navy); }
.chat-note { display: flex; flex-direction: column; gap: 8px; }
.chat-note:not(:empty) { margin-bottom: 8px; }
.chat-price { color: var(--mist); font-size: 13.5px; text-align: center; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; padding: 5px 5px 5px 16px; border-radius: 24px; background: var(--navy-2); border: 1px solid var(--line-2); }
.chat-form:focus-within { border-color: var(--lilac); }
.chat-input { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; padding: 10px 0; border: 0; background: transparent; color: var(--cream); font: 16px/1.4 var(--font-ui); resize: none; }
.chat-input:focus { outline: none; }
.chat-input::placeholder { color: var(--mist); }
.chat-send { width: 42px; height: 42px; background: var(--grad); color: var(--navy); }
.chat-send:hover { background: var(--grad); color: var(--navy); filter: brightness(1.06); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; }

/* Menu d'une conversation */
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: 14px;
  background: transparent; color: var(--cream); font: 600 16px var(--font-ui); text-align: left; text-decoration: none; cursor: pointer;
}
.menu-row:hover { background: rgba(229, 209, 252, .08); color: var(--cream); }
.menu-danger, .menu-danger:hover { color: #FF9AA4; }
.menu .switch-row { padding: 8px 12px; }

/* Profil, alertes */
.profile-matched { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: rgba(255, 111, 126, .12); color: #FF9AA4; font-weight: 600; font-size: 14px; }
.toast-link { display: flex; flex-direction: column; gap: 1px; color: var(--navy); text-decoration: none; pointer-events: auto; }
.toast-link:hover { color: var(--navy); }
.toast-link span { font-weight: 500; opacity: .8; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 860px) {
  .chat { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .mx-remote { object-fit: contain; }
  .mx-stage video:not(.mx-local) { object-fit: contain; }
  .mx-pip { width: 170px; right: 24px; }
  .mx-controls { gap: 44px; }
}
@media (max-width: 360px) {
  .mi-title { font-size: 28px; }
  .mm-title { font-size: 34px; }
  .mx-controls { gap: 20px; }
}
/* Écrans moyens : la barre du haut ne garde que les icônes (le nom reste lu par les lecteurs d'écran) */
@media (min-width: 860px) and (max-width: 1099px) {
  .topnav-item { padding: 9px 11px; }
  .topnav-item .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------------------------------ Paiements (version 1.3) */
/* Choix du moyen de paiement */
.pay-methods { margin: 14px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pay-methods legend { padding: 0; margin-bottom: 8px; }
.pay-method { align-items: center; background: rgba(229, 209, 252, .03); transition: border-color .15s ease, background .15s ease; }
.pay-method.is-on { border-color: var(--lilac); background: rgba(184, 166, 252, .12); box-shadow: 0 0 0 1px var(--lilac); }
.pay-method input { margin: 0; }
.pay-method-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--navy); border: 1px solid var(--line-2); color: var(--lilac-hi); }
.pay-method strong { font-weight: 700; }
.pay-method .fine { font-size: 13.5px; }
.buy-test:empty { display: none; }

/* Fenêtre de paiement Stripe dans l'application */
.buy.is-embed .pay-methods, .buy.is-embed .buy-consent, .buy.is-embed .buy-test { display: none; }
.buy.is-embed .buy-summary { padding: 8px 12px; }
.buy.is-embed .buy-art { width: 64px; }
.pay-embed { margin-top: 14px; min-height: 360px; border-radius: 18px; overflow: hidden; background: #FFFFFF; color: var(--navy); }
.pay-embed iframe { display: block; width: 100%; border: 0; }
.pay-embed-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 360px; font-weight: 600; }
.pay-embed-wait .spin { border-color: rgba(130, 107, 226, .2); border-top-color: var(--violet); }
.pay-done { margin-top: 14px; }
.pay-done .result { margin-bottom: 0; }

/* Moyens acceptés, sur la page de la boutique */
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0; padding: 0; list-style: none; }
.pay-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(229, 209, 252, .05); font-size: 14px; font-weight: 600; }
.pay-badge .ic { width: 17px; height: 17px; color: var(--lilac-hi); }

/* Administration : connexion de Stripe et de PayPal */
.pay-next:empty { display: none; }
.pay-next { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pay-provider { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(229, 209, 252, .035); }
.pay-provider + .pay-provider { margin-top: 12px; }
.pay-provider + .switch-row { margin-top: 10px; }
.pay-provider .switch-row { padding: 8px 0; }
.pay-provider-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pay-provider-head h3 { font-size: 18px; }
.pay-checks { display: flex; flex-direction: column; gap: 6px; margin: 2px 0; padding: 0; list-style: none; }
.pay-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.pay-check .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pay-check.is-ok .ic { color: var(--mint); }
.pay-check.is-warn { color: var(--amber); }
.pay-check.is-info .ic, .pay-check.is-time .ic { color: var(--mist); }
.pay-check.is-time { color: var(--mist); font-size: 13.5px; }
.pay-keys { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.pay-keys[hidden] { display: none; }
.pay-keys a, .pay-manual a { color: var(--mint); }
.pay-err:empty { display: none; }
.pay-tools { margin-top: 2px; }
.btn-danger-quiet { color: #FF9AA4; }
.btn-danger-quiet:hover { color: #FFB3BB; }
.pay-manual { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.pay-manual summary { cursor: pointer; color: var(--lilac); font-weight: 600; font-size: 14.5px; }
.pay-manual[open] summary { margin-bottom: 10px; }
.pay-manual > * + * { margin-top: 10px; }
@media (max-width: 420px) {
  .pay-provider { padding: 14px 12px; }
  .pay-method-ic { width: 34px; height: 34px; }
}

/* ================================================================== Comptes Privé (version 1.4) */

/* Pastille Privé : nom du programme et prix par minute */
.prive-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px;
  background: var(--cream); color: var(--navy); font: 800 13px/1.2 var(--font-ui); white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .8);
}
.prive-pill-name { padding: 2px 8px; border-radius: 999px; background: var(--navy); color: var(--lilac-hi); font: 700 11.5px/1.35 var(--font-head); }
.prive-pill-rate { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.prive-pill .coin { width: 15px; height: 15px; }
.card { position: relative; }
.card-prive { position: absolute; z-index: 2; top: 7px; left: 50%; transform: translateX(-50%); }
.chip-prive .ic { width: 16px; height: 16px; color: var(--lilac-hi); }
.tag-prive { background: var(--cream); color: var(--navy); }

/* Profil et appel */
.profile-prive { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--cream); color: var(--navy); font-weight: 700; font-size: 14px; }
.profile-prive .ic { color: var(--violet); }
.callpay-prive { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(229, 209, 252, .1); color: var(--lilac-hi); font-weight: 600; font-size: 14.5px; }
.call-bill-per { color: var(--mist); font-weight: 600; }
.call-bill .ic-inline { color: var(--lilac-hi); }

/* Moi */
.me-prive-text { color: var(--mist); margin-bottom: 14px; }
.delete-earn:empty { display: none; }

/* Espace Privé : présentation */
.prive-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.prive-how-list li { display: flex; gap: 14px; align-items: flex-start; }
.prive-how-list li > span:last-child { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.prive-how-list small { color: var(--mist); font-size: 13.5px; line-height: 1.45; }
.prive-how-ic, .prive-status-ic, .payout-to-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: 14px 14px 14px 4px; background: rgba(184, 166, 252, .14); color: var(--lilac-hi);
}
.prive-status { display: flex; gap: 14px; align-items: flex-start; }
.prive-status-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prive-status h2 { font-size: 19px; }
.prive-status p { color: var(--mist); }
.prive-status.is-pending .prive-status-ic, .prive-status.is-paused .prive-status-ic { background: rgba(255, 203, 125, .13); color: var(--amber); }
.prive-status.is-rejected .prive-status-ic, .prive-status.is-revoked .prive-status-ic { background: rgba(255, 111, 126, .13); color: var(--coral); }
.prive-reason { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--line-2); border-radius: 0 12px 12px 0; background: rgba(229, 209, 252, .05); white-space: pre-line; overflow-wrap: anywhere; }
.prive-active { display: flex; gap: 16px; align-items: center; background: radial-gradient(130% 160% at 0% 0%, rgba(184, 166, 252, .22), var(--navy-2) 58%); }
.prive-active h2 { font-size: 19px; }
.prive-active p { color: var(--mist); margin-top: 3px; }
.prive-active-pill { font-size: 16px; padding: 4px 12px 4px 4px; }
.prive-active-pill .prive-pill-name { font-size: 13px; padding: 3px 10px; }
.prive-active-pill .coin { width: 19px; height: 19px; }
@media (max-width: 420px) { .prive-active { flex-direction: column; align-items: flex-start; } }

/* Espace Privé : demande */
.prive-apply-intro { margin: -6px 0 14px; }
.prive-step { font-size: 16.5px; color: var(--lilac-hi); padding-top: 8px; border-top: 1px solid var(--line); }
.prive-step:first-child { padding-top: 0; border-top: 0; }
.doc-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.doc-slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.doc-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 18px 18px 18px 6px;
  background: rgba(229, 209, 252, .04); color: var(--cream); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.doc-tile:hover { border-color: var(--lilac); background: rgba(229, 209, 252, .07); }
.doc-tile.is-ready { border-style: solid; border-color: rgba(91, 227, 168, .55); }
.doc-tile.is-error { border-style: solid; border-color: var(--coral); }
.doc-tile.is-loading { opacity: .65; cursor: progress; }
.doc-preview { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; flex: none; border-radius: 14px; background: var(--navy); color: var(--lilac-hi); overflow: hidden; }
.doc-preview .ic { width: 28px; height: 28px; }
.doc-preview img { width: 100%; height: 100%; object-fit: cover; }
.doc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-hint { color: var(--mist); font-size: 13px; line-height: 1.35; }
.doc-state { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--lilac); font-weight: 600; font-size: 13.5px; }
.doc-tile.is-ready .doc-state { color: var(--mint); }
.doc-err:empty { display: none; }
.doc-err { color: #FF9AA4; font-size: 13.5px; }
.prive-consent { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(229, 209, 252, .05); font-size: 14.5px; }
@media (min-width: 600px) {
  .doc-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-tile { flex-direction: column; align-items: stretch; text-align: center; height: 100%; padding: 12px 10px 14px; }
  .doc-preview { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .doc-state { justify-content: center; }
}

/* Espace Privé : prix */
.prive-rate { text-align: center; }
.prive-rate .panel-title { text-align: left; }
.prive-rate > .fine:first-of-type { text-align: left; }
.prive-stepper { justify-content: center; margin: 16px 0 6px; }
.rate-field { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 16px; background: var(--navy); border: 1px solid var(--line-2); transition: border-color .15s ease; }
.rate-field:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(184, 166, 252, .25); }
.rate-field .coin { width: 26px; height: 26px; }
.rate-field .rate-input { width: 104px; min-height: 58px; padding: 0; border: 0; background: transparent; text-align: center; font: 700 30px var(--font-head); font-variant-numeric: tabular-nums; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.rate-input::-webkit-outer-spin-button, .rate-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rate-unit { color: var(--mist); font-weight: 600; }
.rate-earn { margin: 12px 0 4px; font: 700 18px var(--font-head); color: var(--mint); }
.rate-earn.is-error { color: #FF9AA4; }
.prive-rate .actions { margin-top: 14px; }

/* Espace Privé : gains et versements */
.prive-tiles { margin-bottom: 14px; }
.prive-tiles .tile { background: var(--navy); }
.prive-tiles .tile strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.tile small { color: var(--mist-2); font-size: 12.5px; line-height: 1.35; }
.tile-hi { border-color: rgba(91, 227, 168, .45); background: linear-gradient(160deg, rgba(91, 227, 168, .13), var(--navy) 72%) !important; }
.tile-hi strong { color: var(--mint) !important; }
.payout-to { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--navy); }
.payout-to > .btn { grid-column: 1 / -1; justify-self: center; }
.payout-to-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.payout-to-text .label { font-size: 13px; }
.payout-to-text strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.prive-request { margin: 18px 0 6px; }
.prive-sub { font-size: 15.5px; color: var(--mist); margin: 8px 0 2px; }
.prive-row .row-text strong, .prive-row .row-sub { white-space: normal; overflow: visible; }
.prive-row .row-text strong { font-size: 15.5px; }
.prive-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.prive-amount strong { font: 700 16px var(--font-head); font-variant-numeric: tabular-nums; }
.prive-row.is-void .prive-amount strong { text-decoration: line-through; color: var(--mist); }
.prive-note { color: var(--mist); font-size: 13px; }
.prive-terms { margin-top: 16px; }
.input-iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; text-transform: uppercase; }

/* Administration : demandes Privé et versements */
.kyc.is-pending, .payout.is-pending { border-color: rgba(255, 203, 125, .42); }
.kyc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.kyc .kv > span { min-width: 130px; }
.pre { white-space: pre-line; }
.kyc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-content: start; }
.kyc-doc { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kyc-doc a { display: block; border-radius: 12px; }
.kyc-doc img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); }
.kyc-doc figcaption { font-size: 13px; color: var(--mist); text-align: center; }
.kyc-nodocs { display: flex; align-items: center; gap: 6px; }
.kyc .notice { margin-top: 12px; }
.kyc > .actions { margin-top: 14px; }
.prive-member .row-sub { white-space: normal; }
.prive-example { margin-top: 2px; }
.member-prive { margin-top: 16px; }
.payout-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.payout-amount { font: 700 26px var(--font-head); font-variant-numeric: tabular-nums; }
.payout-who { margin-bottom: 10px; overflow-wrap: anywhere; }
.payout .copy-row { margin-bottom: 8px; }
.payout > .actions { margin-top: 12px; }
.payouts-help { margin: 12px 0 16px; }
.payouts-export { margin-top: 24px; }
.payouts-export select { width: auto; }
@media (min-width: 860px) {
  .kyc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .tabs { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 600px) {
  .payout-to { grid-template-columns: auto minmax(0, 1fr) auto; }
  .payout-to > .btn { grid-column: auto; }
}
.choice-chips .chip .ic { width: 16px; height: 16px; }

/* Clés secrètes de l'administration : masquées à l'écran, bouton pour les afficher */
.secret-wrap { position: relative; display: flex; }
.secret-wrap > .input { flex: 1; min-width: 0; padding-right: 52px; }
.input-secret:not(.is-shown):not(:placeholder-shown) { -webkit-text-security: disc; }
.secret-eye { position: absolute; top: 50%; right: 3px; width: 42px; height: 42px; transform: translateY(-50%); color: var(--mist); }
.secret-eye:hover { color: var(--cream); }
.secret-eye .ic { width: 20px; height: 20px; }
