/* =====================================================================
   Étincelle — feuille de style
   Police : Plus Jakarta Sans (SIL OFL 1.1), intégrée à l'app (aucun CDN)
   ===================================================================== */
@font-face {
  font-family: 'Jakarta';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/jakarta-latin.woff2) format('woff2-variations');
  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: 'Jakarta';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/jakarta-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f3fb;
  --surface: #ffffff;
  --surface-2: #f2ebf9;
  --surface-3: #e9e0f4;
  --text: #1f1530;
  --muted: #6f6382;
  --border: #e5dcef;
  --brand: #ff5a6e;
  --brand-2: #ffb347;
  --plum: #24103d;
  --violet: #7b4dff;
  --ok: #18b47b;
  --danger: #e5484d;
  --gold: #f5b83d;
  --on-brand: #fff;
  --brand-shadow: rgba(255, 90, 110, .35);
  --grad: linear-gradient(135deg, #ff5a6e 0%, #ff8a5c 50%, #ffb347 100%);
  --grad-night: linear-gradient(160deg, #24103d 0%, #4b1d6e 60%, #7b2f7a 100%);
  --grad-gold: linear-gradient(135deg, #ffe08a 0%, #f5b83d 45%, #e8893b 100%);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(36, 16, 61, .10);
  --shadow-lg: 0 24px 60px rgba(36, 16, 61, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Jakarta', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Zones sûres : variables injectées par Capacitor (Android edge-to-edge), sinon env() */
  --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --sal: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --sar: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
/* Thème sombre : automatique (réglage du téléphone) ou forcé dans Mon profil › Réglages */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120a1d; --surface: #1c1230; --surface-2: #261a3d; --surface-3: #32244d;
    --text: #f3ecfb; --muted: #a898bd; --border: #34264d;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120a1d; --surface: #1c1230; --surface-2: #261a3d; --surface-3: #32244d;
  --text: #f3ecfb; --muted: #a898bd; --border: #34264d;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  font-feature-settings: "ss01";
}
.nav, .bottom-nav, .actions, .seg, .chip, .btn, .round, .tile, .swipe-card, .plan { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: .6rem; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Icônes ---------- */
.i { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.big-ico { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--surface-2); color: var(--brand); margin-bottom: .6rem; }
.big-ico .i { width: 34px; height: 34px; }

/* ---------- Boutons & champs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; background: var(--surface-2); color: var(--text); transition: transform .15s var(--ease), filter .15s, box-shadow .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 8px 22px var(--brand-shadow); }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); }
.btn.danger { background: transparent; color: var(--danger); border: 1.5px solid currentColor; }
.btn.link { background: transparent; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn.block { width: 100%; white-space: normal; text-align: center; }
.btn.sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-plus { background: var(--grad-gold); color: #3a2200; box-shadow: 0 8px 24px rgba(245, 184, 61, .45); }
.spinner-inline { width: 1em; height: 1em; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 700; color: var(--muted); display: block; }
#bio-count { float: right; font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 110, .12); }
textarea.input { resize: vertical; min-height: 96px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .4rem; border-radius: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: .9rem; font-weight: 600; transition: transform .12s var(--ease), background .15s;
  display: inline-flex; align-items: center; gap: .35rem;
}
.chip:active { transform: scale(.95); }
.chip.on { background: var(--grad); color: var(--on-brand); border-color: transparent; }
.chip.static { cursor: default; }
.chip.shared { border-color: var(--brand); color: var(--brand); }

.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: .55rem .8rem; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: background .2s, color .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.notice { background: var(--surface-2); padding: .75rem .95rem; border-radius: 14px; font-size: .88rem; color: var(--muted); margin-bottom: .8rem; display: flex; gap: .55rem; align-items: center; }
.section-title { margin-top: 2rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- Animations ---------- */
.view-in { animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0 } }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Squelettes de chargement ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-card { position: absolute; inset: 0; border-radius: 26px; }
.sk-tile { aspect-ratio: 3/4; border-radius: 18px; }
.sk-list { padding: .4rem 0; }
.sk-row { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; }
.sk-avatar { width: 50px; height: 50px; border-radius: 50%; }
.sk-line { height: 12px; border-radius: 6px; margin: .3rem 0; }
.sk-line.short { width: 60%; }

/* ---------- Accueil guidé ---------- */
.onboarding {
  min-height: 100vh; min-height: 100dvh; background: var(--grad-night); color: #fff; display: flex; flex-direction: column;
  padding: calc(1rem + var(--sat)) 1.4rem calc(1.4rem + var(--sab)); position: relative; overflow: hidden;
}
.onboarding .skip { align-self: flex-end; color: rgba(255,255,255,.8); }
.ob-viewport { flex: 1; overflow: hidden; display: flex; }
.ob-track { display: flex; width: 100%; transition: transform .45s var(--ease); touch-action: pan-y; }
.ob-slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.ob-slide h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 1.8rem 0 .8rem; max-width: 14ch; }
.ob-slide p { opacity: .85; max-width: 32ch; font-size: 1.08rem; margin: 0; }
.ob-art {
  width: 150px; height: 150px; border-radius: 48px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px rgba(0,0,0,.25);
  color: #ffd2b0; animation: float 4s ease-in-out infinite;
}
.ob-art .i { width: 68px; height: 68px; stroke-width: 1.6; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.ob-dots { display: flex; justify-content: center; gap: 8px; margin: 1rem 0 1.4rem; }
.ob-dots i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.35); transition: width .3s var(--ease), background .3s; }
.ob-dots i.on { width: 26px; background: #fff; }
.ob-actions { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: .4rem; }

/* ---------- Connexion / inscription ---------- */
.auth {
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--grad-night); color: #fff;
}
.auth-hero { padding: calc(3rem + var(--sat)) 4rem 3rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-hero h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.05; margin: .6rem 0 1rem; }
.auth-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { font-size: 1.15rem; opacity: .85; max-width: 32rem; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .4rem; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.features { display: grid; gap: .9rem; margin-top: 2rem; max-width: 30rem; }
.feature { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,255,255,.07); padding: .9rem 1rem; border-radius: 16px; }
.feature > .i { width: 1.6rem; height: 1.6rem; color: #ffb38a; margin-top: .1rem; }
.feature strong { display: block; }
.feature span { opacity: .75; font-size: .92rem; }
.spark { position: absolute; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .45; pointer-events: none; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); color: var(--text); border-radius: 28px; padding: 2rem; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.auth-card h2 { margin: 0 0 .3rem; }
.steps { display: flex; gap: 6px; margin: 0 0 1.4rem; }
.steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--border); transition: background .3s; }
.steps i.on { background: var(--grad); }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: .2rem 0 .6rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .2rem 0 .8rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.legal { margin-top: 1rem; line-height: 1.8; }
.legal a { color: var(--muted); }

/* ---------- Coquille de l'app ---------- */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.side {
  background: var(--grad-night); color: #fff; padding: calc(1.4rem + var(--sat)) 1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem;
  position: sticky; top: 0; height: 100vh;
}
.side .logo { padding: 0 .6rem 1.2rem; }
.nav a {
  display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 14px;
  text-decoration: none; color: rgba(255,255,255,.78); font-weight: 650; position: relative; transition: background .2s;
}
.nav a .i { width: 1.3rem; height: 1.3rem; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.badge {
  margin-left: auto; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.side-plus {
  margin-top: auto; display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--grad-gold); color: #3a2200; font-weight: 800; box-shadow: 0 10px 24px rgba(245, 184, 61, .3);
}
.side-plus.active { background: rgba(255,255,255,.1); color: #ffd36b; box-shadow: none; }
.side .me { margin-top: .6rem; display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 16px; background: rgba(255,255,255,.07); text-decoration: none; }
.main { min-width: 0; padding: 1.6rem 2rem 6rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.75rem; }
.head-tools { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--grad); flex-shrink: 0; position: relative; }
.avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.dot { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.verified { color: #3aa0ff; display: inline-flex; }
.verified .i { width: 1em; height: 1em; }

/* ---------- Étincelle+ ---------- */
.plus-badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--grad-gold); color: #3a2200; font-weight: 800; font-size: .82rem;
}
.mini-plus { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--grad-gold); color: #3a2200; vertical-align: middle; }
.mini-plus .i { width: .8rem; height: .8rem; }
.quota { display: flex; gap: .4rem; }
.pill-q { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: .85rem; }
.pill-q .i { color: var(--brand); }
.pill-q.low { background: #ffe6e9; color: #b4233a; }
.pill-q.plus { background: var(--grad-gold); color: #3a2200; }
.pill-q.plus .i { color: inherit; }
.boost { background: linear-gradient(135deg, #7b4dff, #b44dff); color: #fff; box-shadow: 0 8px 20px rgba(123, 77, 255, .35); }
.boost.on { animation: glow 1.6s ease-in-out infinite; opacity: 1; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(123, 77, 255, .18), 0 8px 20px rgba(123, 77, 255, .35); } }

.plus-card { background: var(--grad-night); color: #fff; position: relative; overflow: hidden; }
.plus-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--grad-gold); filter: blur(70px); opacity: .35; top: -90px; right: -70px; pointer-events: none; }
.plus-card h3 { margin: .8rem 0 .4rem; }
.plus-card .btn.link { color: rgba(255,255,255,.8); }
.plus-mini { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.plus-mini li { display: flex; gap: .55rem; align-items: center; opacity: .92; }
.plus-mini .i { color: #ffd36b; }
.plus-banner {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  background: var(--grad-night); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow);
}
.plus-banner b { display: block; font-size: 1.05rem; }
.plus-banner span { opacity: .8; font-size: .9rem; }

/* page d'abonnement */
.paywall-modal { max-width: 480px; display: block; padding: 0; overflow-x: hidden; }
.paywall { padding: 0 1.4rem 1.4rem; }
.pw-hero { margin: 0 -1.4rem 1.2rem; padding: 2.4rem 1.4rem 1.6rem; background: var(--grad-night); color: #fff; text-align: center; position: relative; overflow: hidden; }
.pw-hero::before { content: ""; position: absolute; inset: auto -40px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: var(--grad-gold); filter: blur(80px); opacity: .4; }
.pw-hero h2 { margin: .8rem 0 .4rem; font-size: 1.6rem; position: relative; }
.pw-hero p { margin: 0; opacity: .85; position: relative; }
.pw-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--grad-gold); color: #3a2200; font-weight: 800; position: relative; }
.pw-badge.big { font-size: 1.15rem; padding: .5rem 1.1rem; }
.pw-icon { width: 76px; height: 76px; margin: 1rem auto 0; border-radius: 26px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #ffd36b; position: relative; animation: float 4s ease-in-out infinite; }
.pw-icon .i { width: 38px; height: 38px; }
.pw-features { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.pw-features li { display: flex; gap: .8rem; align-items: flex-start; }
.pw-features li > .i { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 12px; background: var(--surface-2); color: var(--brand); flex-shrink: 0; }
.pw-features b { display: block; }
.pw-features span { color: var(--muted); font-size: .88rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.plan {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.2rem .6rem .9rem;
  border-radius: 18px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .15s var(--ease);
}
.plan:active { transform: scale(.97); }
.plan.on { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 184, 61, .18); }
.plan-tag { position: absolute; top: -11px; padding: .15rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; background: var(--grad-gold); color: #3a2200; white-space: nowrap; }
.plan-tag.save { background: var(--ok); color: #fff; }
.plan-len { font-size: 1rem; }
.plan-price { font-size: 1.15rem; font-weight: 800; }
.plan-month { font-size: .78rem; color: var(--muted); }
.plan-trial { font-size: .75rem; font-weight: 700; color: var(--ok); }
.pw-legal { font-size: .74rem; color: var(--muted); line-height: 1.5; margin: 1rem 0 0; text-align: center; }
.pw-legal a { color: var(--muted); }
.celebrate h2 { margin: 1rem 0 .5rem; }

/* ---------- Rencontres (pile de cartes) ---------- */
.deck-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.deck { position: relative; width: 100%; aspect-ratio: 3 / 4.3; max-height: 72vh; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: #333; box-shadow: var(--shadow-lg);
  touch-action: none; cursor: grab; transition: transform .35s var(--ease);
}
.swipe-card.top { z-index: 2; }
.swipe-card.under { transform: scale(.94) translateY(12px); filter: brightness(.92); transition: transform .3s var(--ease), filter .3s; }
.swipe-card.dragging, .swipe-card.dragging ~ * { transition: none; cursor: grabbing; }
.swipe-card.leaving { transition: transform .45s cubic-bezier(.5, 0, .75, 0); }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.swipe-card .bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); }
.swipe-card .bars i.on { background: #fff; }
.swipe-card .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 5rem 1.2rem 1.2rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.swipe-card h2 { margin: 0; font-size: 1.9rem; display: flex; align-items: center; gap: .4rem; }
.swipe-card .meta { opacity: .9; font-size: .95rem; margin-top: .2rem; display: flex; align-items: center; gap: .3rem; }
.swipe-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.swipe-card .tags span { background: rgba(255,255,255,.2); backdrop-filter: blur(6px); padding: .25rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.stamp {
  position: absolute; top: 40px; padding: .3rem .9rem; font-size: 2rem; font-weight: 800; border: 4px solid; border-radius: 12px;
  opacity: 0; z-index: 3; text-transform: uppercase; letter-spacing: .05em;
}
.stamp.like { left: 24px; color: #31e08f; transform: rotate(-15deg); }
.stamp.nope { right: 24px; color: #ff4d6d; transform: rotate(15deg); }
.stamp.super { left: 50%; transform: translateX(-50%); color: #4dc4ff; top: auto; bottom: 170px; }
.affinity {
  position: absolute; top: 24px; right: 14px; z-index: 2; background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  color: #fff; border-radius: 999px; padding: .35rem .75rem; font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: .3rem;
}
.burst { position: absolute; left: 50%; top: 45%; z-index: 10; color: #fff; pointer-events: none; animation: burst .7s var(--ease) forwards; }
.burst .i { width: 110px; height: 110px; fill: currentColor; filter: drop-shadow(0 10px 30px rgba(255, 90, 110, .6)); }
.burst.like { color: #ff5a6e; }
.burst.super { color: #4dc4ff; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 40% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.actions { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.round {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .15s var(--ease); position: relative;
}
.round .i { width: 28px; height: 28px; }
.round:hover { transform: scale(1.07); }
.round:active { transform: scale(.9); }
.round.sm { width: 50px; height: 50px; }
.round.sm .i { width: 22px; height: 22px; }
.round.nope { color: #ff4d6d; }
.round.super { color: #2fb4f5; }
.round.super .i { fill: currentColor; }
.round.like { background: var(--grad); color: var(--on-brand); width: 72px; height: 72px; box-shadow: 0 12px 28px var(--brand-shadow); }
.round.like .i { fill: currentColor; width: 32px; height: 32px; }
.round .lock { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad-gold); color: #3a2200; display: grid; place-items: center; }
.round .lock .i { width: 11px; height: 11px; }
.why { position: sticky; top: 1.5rem; }
.why h3 { margin-top: 0; display: flex; align-items: center; gap: .4rem; }
.meter { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; margin: .5rem 0 1rem; }
.meter i { display: block; height: 100%; background: var(--grad); border-radius: 10px; transition: width .6s var(--ease); }
.reasons { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.reasons li { background: var(--surface-2); padding: .55rem .8rem; border-radius: 12px; font-size: .92rem; display: flex; gap: .45rem; align-items: center; }
.reasons .i { color: var(--ok); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Grilles de profils ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tile { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; background: #333; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.tile:active { transform: scale(.97); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 2.2rem .8rem .7rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.tile .cap b { font-size: 1.05rem; }
.tile .cap div { font-size: .8rem; opacity: .9; display: flex; align-items: center; gap: .25rem; }
.tile .pill { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.5); color: #fff; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); display: flex; align-items: center; gap: .25rem; z-index: 2; }
.tile .pill.right { left: auto; right: 8px; }
.tile .online { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.tile.locked .ph.blur { filter: blur(10px) saturate(1.2); transform: scale(1.2); }
.lock-center { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.lock-center .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }

/* ---------- Question du jour ---------- */
.qotd { background: var(--grad-night); color: #fff; border-radius: 26px; padding: 2rem; position: relative; overflow: hidden; }
.qotd h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .3rem 0 1.4rem; position: relative; }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; position: relative; }
.answer {
  position: relative; overflow: hidden; text-align: left; padding: 1rem 1.1rem; border-radius: 16px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 1rem; transition: border-color .2s, transform .15s var(--ease);
}
.answer:active { transform: scale(.98); }
.answer:hover { border-color: rgba(255,255,255,.6); }
.answer.mine { border-color: var(--brand-2); }
.answer .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255,179,71,.28); transition: width .8s var(--ease); }
.answer span { position: relative; display: flex; justify-content: space-between; }

/* ---------- Messages ---------- */
.chat-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; height: calc(100vh - 7rem); }
.conv-list { background: var(--surface); border-radius: var(--radius); overflow-y: auto; box-shadow: var(--shadow); }
.conv { display: flex; gap: .8rem; padding: .85rem 1rem; align-items: center; cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--border); transition: background .15s; }
.conv:hover, .conv.active { background: var(--surface-2); }
.conv .txt { min-width: 0; flex: 1; }
.conv .txt div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .9rem; }
.conv.unread .txt div { color: var(--text); font-weight: 700; }
.matches-title { padding: 1rem 1rem 0; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.matches-row { display: flex; gap: .8rem; overflow-x: auto; padding: .8rem 1rem 1rem; border-bottom: 1px solid var(--border); }
.matches-row a { text-decoration: none; text-align: center; font-size: .8rem; font-weight: 600; }
.matches-row .avatar { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }
.chat { background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.bubble { position: relative; max-width: 74%; padding: .65rem .95rem; border-radius: 20px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; animation: bubbleIn .25s var(--ease); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.bubble.them { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.me { background: var(--grad); color: var(--on-brand); align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: .2rem; text-align: right; }
.bubble time[data-read]::after { content: ' · Vu'; font-weight: 700; }
.bubble .react { position: absolute; bottom: -14px; right: 12px; background: var(--surface); border: 2px solid var(--bg); border-radius: 999px; padding: .05rem .35rem; font-size: .9rem; line-height: 1.3; box-shadow: var(--shadow); }
.bubble.them .react { right: auto; left: 12px; }
.bubble .react.pop { animation: popIn .35s var(--ease); }
.bubble:has(.react) { margin-bottom: .9rem; }
.receipts-hint { align-self: flex-end; border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; padding: .2rem 0; }
.day-sep { align-self: center; font-size: .75rem; font-weight: 700; color: var(--muted); margin: .6rem 0; background: var(--surface-2); padding: .2rem .7rem; border-radius: 999px; }
.typing { align-self: flex-start; background: var(--surface-2); border-radius: 18px; padding: .7rem .9rem; display: flex; gap: 4px; }
.typing i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-foot { padding: .8rem; border-top: 1px solid var(--border); }
.chat-foot form { display: flex; gap: .6rem; }
.send-btn { width: 50px; height: 50px; padding: 0; flex-shrink: 0; }
.icebreakers { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; }
.icebreakers button { flex-shrink: 0; max-width: 280px; text-align: left; border: 1.5px dashed var(--brand); color: var(--text); background: transparent; border-radius: 14px; padding: .5rem .75rem; cursor: pointer; font-size: .85rem; }
.react-picker { display: flex; justify-content: space-around; gap: .3rem; }
.react-picker button { font-size: 2rem; border: 0; background: var(--surface-2); border-radius: 16px; width: 54px; height: 54px; cursor: pointer; transition: transform .15s var(--ease); }
.react-picker button:active { transform: scale(1.3); }
.picker-modal { padding: 1.2rem !important; }

/* ---------- Fenêtres (modales) ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 6, 28, .62); backdrop-filter: blur(8px); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: calc(1rem + var(--sat)) 1rem calc(1rem + var(--sab)); animation: fade .2s;
}
.overlay.closing { animation: fade .18s reverse forwards; }
.modal { min-width: 0; background: var(--surface); border-radius: 28px; width: 100%; max-width: 880px; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; position: relative; animation: pop .3s var(--ease); box-shadow: var(--shadow-lg); }
.modal .gallery { position: relative; background: #222; min-height: 420px; }
.modal .gallery img, .modal .gallery > .ph { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal .gallery .bars { position: absolute; top: 10px; left: 12px; right: 56px; display: flex; gap: 4px; z-index: 2; }
.modal .gallery .bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); }
.modal .gallery .bars i.on { background: #fff; }
.modal .body { padding: 1.6rem; }
.modal h2 { margin: 0; font-size: 1.8rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.modal h4 { margin: 1.2rem 0 .5rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.modal .body > .muted { display: flex; align-items: center; gap: .35rem; margin-top: .2rem; }
.close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.small-modal { max-width: 440px; display: block; padding: 1.6rem; }
.small-modal h2 { font-size: 1.45rem; margin-bottom: .4rem; }
.modal.match-modal { background: transparent; box-shadow: none; }

/* ---------- Match ---------- */
.match-screen { text-align: center; color: #fff; }
.match-screen h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.match-pair { display: flex; justify-content: center; align-items: center; margin: 1.6rem 0; position: relative; }
.match-pair img, .match-pair .ph { width: 140px; height: 140px; border-radius: 50%; border: 5px solid #fff; object-fit: cover; }
.match-pair > :first-child { transform: rotate(-8deg) translateX(14px); animation: slideL .6s var(--ease); }
.match-pair > :last-child { transform: rotate(8deg) translateX(-14px); animation: slideR .6s var(--ease); }
@keyframes slideL { from { transform: translateX(-80px) rotate(-30deg); opacity: 0; } }
@keyframes slideR { from { transform: translateX(80px) rotate(30deg); opacity: 0; } }
.match-heart { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255, 90, 110, .6); animation: popIn .6s .3s var(--ease) backwards; }
.match-heart .i { fill: #fff; stroke: #fff; width: 26px; height: 26px; }

/* ---------- Mon profil ---------- */
.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.2rem; align-items: start; }
.profile-grid .col { display: grid; gap: 1.2rem; align-content: start; }
.complete .meter { margin: .6rem 0 .7rem; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.photo-slot { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; position: relative; background: var(--surface-2); border: 2px dashed var(--border); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.photo-slot.add .i { width: 34px; height: 34px; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot .tools { position: absolute; bottom: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; }
.photo-slot .tools button { border: 0; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.photo-slot .main-tag { position: absolute; top: 6px; left: 6px; background: var(--grad); color: #fff; font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; font-weight: 800; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.toggle b { display: inline-flex; align-items: center; gap: .4rem; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: .25s var(--ease); }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(20px); }
.range-row { display: flex; gap: .6rem; align-items: center; }

/* ---------- Notifications ---------- */
#toasts { position: fixed; top: calc(1rem + var(--sat)); right: 1rem; z-index: 300; display: grid; gap: .6rem; }
.toast {
  display: flex; align-items: center; gap: .7rem; background: var(--surface); box-shadow: var(--shadow-lg); border-radius: 18px; padding: .75rem 1rem;
  min-width: 260px; max-width: 380px; cursor: pointer; animation: slide .35s var(--ease); border-left: 4px solid var(--brand); font-weight: 600; font-size: .92rem;
}
.toast > .i { color: var(--brand); width: 1.4rem; height: 1.4rem; }
.toast.error { border-left-color: var(--danger); }
.toast.out { opacity: 0; transform: translateX(20px); transition: .3s; }
.toast-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.toast-ico .i { fill: #fff; }
@keyframes slide { from { transform: translateX(30px); opacity: 0 } }
.offline {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(.6rem + var(--sat)); z-index: 320;
  background: #1f1530; color: #fff; padding: .55rem 1rem; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow);
}
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 3rem auto; }
.splash-loader { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--grad-night); color: #fff; padding: 1rem; }
.splash-loader .logo { font-size: 2rem; }
.splash-loader .spinner { border-color: rgba(255,255,255,.2); border-top-color: #fff; margin: 1rem auto; }
.back-btn { display: none; }

/* ---------- Mobile ---------- */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: calc(2rem + var(--sat)) 1.4rem 0; }
  .auth-hero .features { display: none; }
  .auth-panel { padding: 1.2rem 1.2rem calc(1.2rem + var(--sab)); }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: calc(.8rem + var(--sat)) calc(1rem + var(--sar)) calc(5.8rem + var(--sab)) calc(1rem + var(--sal)); }
  .hide-mobile { display: none; }
  .page-head { margin-bottom: .9rem; gap: .6rem; }
  .page-head h1 { font-size: 1.5rem; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px); border-top: 1px solid var(--border); padding: .45rem calc(.2rem + var(--sar)) calc(.45rem + var(--sab)) calc(.2rem + var(--sal));
  }
  .bottom-nav a { flex: 1; text-align: center; text-decoration: none; font-size: .66rem; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; padding-top: 2px; }
  .bottom-nav a .i { width: 1.45rem; height: 1.45rem; transition: transform .2s var(--ease); }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav a.active .i { transform: translateY(-1px) scale(1.08); stroke-width: 2.4; }
  .bottom-nav .badge { position: absolute; top: -3px; left: 55%; margin: 0; }
  .deck-wrap { grid-template-columns: 1fr; }
  .why { display: none; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100dvh - 7.2rem - var(--sat) - var(--sab)); }
  body.in-chat .bottom-nav { display: none; }
  body.in-chat .main { padding-bottom: calc(.6rem + var(--sab)); }
  body.in-chat .chat-layout { height: calc(100dvh - 1.4rem - var(--sat) - var(--sab)); }
  .deck { max-height: calc(100dvh - 16rem - var(--sat) - var(--sab)); }
  .modal { grid-template-columns: 1fr; max-height: calc(100dvh - 2rem - var(--sat) - var(--sab)); }
  .modal .gallery { min-height: 52vh; }
  .chat-layout.has-chat .conv-list { display: none; }
  .chat-layout:not(.has-chat) .chat { display: none; }
  .back-btn { display: inline-flex; }
  .profile-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  /* bandeau opaque sous la barre d'état : le contenu ne défile plus derrière l'heure et les icônes */
  .shell::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--sat); background: var(--bg); z-index: 45; pointer-events: none; }
  #toasts { left: 1rem; }
  .toast { min-width: 0; max-width: none; }
  .actions { gap: .8rem; }
  .paywall-modal { max-height: calc(100dvh - 1rem - var(--sat) - var(--sab)); }
  .page-head .seg { min-width: 0 !important; width: 100%; }
  .seg button { padding: .55rem .5rem; }
}
@media (max-width: 380px) {
  .round { width: 56px; height: 56px; }
  .round.like { width: 64px; height: 64px; }
  .round.sm { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* =====================================================================
   v3 — Thèmes de couleurs (Étincelle+ pour les thèmes Premium)
   ===================================================================== */
:root[data-palette="aurore"] {
  --brand: #ff4fa3; --brand-2: #b06bff; --violet: #b06bff; --brand-shadow: rgba(255, 79, 163, .38);
  --grad: linear-gradient(135deg, #ff4fa3 0%, #d35cff 50%, #b06bff 100%);
  --grad-night: linear-gradient(160deg, #2a0f3f 0%, #5b1a6e 60%, #9c2f8f 100%);
}
:root[data-palette="ocean"] {
  --brand: #0aa7c2; --brand-2: #4d7cff; --violet: #4d7cff; --brand-shadow: rgba(10, 167, 194, .38);
  --grad: linear-gradient(135deg, #00b3c7 0%, #2b9be6 50%, #4d7cff 100%);
  --grad-night: linear-gradient(160deg, #071b33 0%, #0e3a5c 60%, #14607a 100%);
}
:root[data-palette="emeraude"] {
  --brand: #13a86f; --brand-2: #c6e36b; --violet: #13a86f; --brand-shadow: rgba(19, 168, 111, .38);
  --grad: linear-gradient(135deg, #13a86f 0%, #5cc77a 50%, #b8dc5f 100%);
  --grad-night: linear-gradient(160deg, #0b2a22 0%, #11473a 60%, #1f6b4f 100%);
}
:root[data-palette="orrose"] {
  --brand: #c9746a; --brand-2: #f5c6a5; --violet: #b0607a; --brand-shadow: rgba(201, 116, 106, .38);
  --grad: linear-gradient(135deg, #c9746a 0%, #e09a7c 50%, #f2c09c 100%);
  --grad-night: linear-gradient(160deg, #3a1f2b 0%, #5e3040 60%, #8a4b57 100%);
}
:root[data-palette="minuit"] {
  --brand: #e3a530; --brand-2: #ffe08a; --violet: #6f74ff; --on-brand: #2a1a00; --brand-shadow: rgba(227, 165, 48, .4);
  --grad: linear-gradient(135deg, #e8a83d 0%, #f5c04f 50%, #ffe08a 100%);
  --grad-night: linear-gradient(160deg, #0d1030 0%, #1b1f55 60%, #2c2f7a 100%);
}
.palettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.palette { position: relative; border: 2px solid var(--border); background: var(--surface); border-radius: 16px; padding: .5rem .4rem .45rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .3rem; transition: border-color .2s, transform .15s var(--ease); }
.palette:active { transform: scale(.96); }
.palette.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-shadow); }
.palette .sw { width: 100%; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--p3) 0 34%, var(--p1) 34% 67%, var(--p2) 67%); }
.palette small { font-weight: 700; font-size: .75rem; }
.palette .mini-plus { position: absolute; top: -6px; right: -6px; }

/* ---------- Champ de ville (autocomplétion mondiale) ---------- */
.place-row { display: flex; gap: .5rem; align-items: stretch; }
.place-wrap { position: relative; flex: 1; min-width: 0; }
.place-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; }
.place-list button { width: 100%; display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 0; background: transparent; text-align: left; cursor: pointer; }
.place-list button:hover, .place-list button.on { background: var(--surface-2); }
.place-list button .i { color: var(--brand); }
.place-list small { display: block; color: var(--muted); font-size: .78rem; }
.place-empty { padding: .8rem; color: var(--muted); font-size: .88rem; }
.locate { flex-shrink: 0; padding: .6rem .9rem; }
.spinner-inline.dark { border-color: var(--border); border-top-color: var(--brand); }

/* ---------- Robustesse du mot de passe ---------- */
.pw-meter { display: flex; align-items: center; gap: .5rem; min-height: 1rem; margin-top: .3rem; }
.pw-meter i { display: block; height: 5px; border-radius: 5px; transition: width .3s var(--ease); max-width: 60%; }
.pw-meter span { font-size: .75rem; font-weight: 700; color: var(--muted); }
.pw-meter .s0 { background: var(--danger); }
.pw-meter .s1 { background: #f08c3a; }
.pw-meter .s2 { background: #e8c23a; }
.pw-meter .s3 { background: #6cc24a; }
.pw-meter .s4 { background: var(--ok); }

/* ---------- Étincelles ---------- */
.credit-chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .75rem; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #fff1c9, #ffd88a); color: #6b4300; font-weight: 800; font-size: .88rem; box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.credit-chip .i { color: #e0a000; }
.credit-chip.bump { animation: popIn .4s var(--ease); }
.balance-card { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(135deg, #fff1c9, #ffd88a); color: #4a2e00; margin-bottom: 1rem; }
.balance-card > .i { width: 2.2rem; height: 2.2rem; color: #e0a000; }
.balance-card small { display: block; font-weight: 700; opacity: .7; }
.balance-card b { font-size: 1.6rem; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1.2rem .4rem .8rem; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; }
.pack.hot { border-color: var(--gold); }
.pack:disabled { opacity: .6; cursor: default; }
.pack-ico .i { width: 1.8rem; height: 1.8rem; color: #e0a000; }
.pack b { font-size: 1.4rem; }
.pack small { color: var(--muted); font-size: .75rem; }
.pack-price { margin-top: .3rem; font-weight: 800; }
.dev-zone { border: 1.5px dashed var(--border); border-radius: 16px; padding: .7rem .8rem; margin-top: 1rem; display: grid; gap: .5rem; }
.pass-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; border-radius: 16px; background: var(--surface-2); margin-bottom: 1rem; }
.pass-card > div { display: flex; gap: .6rem; align-items: center; }
.pass-card > div > .i { width: 1.8rem; height: 1.8rem; color: var(--violet); }
.pass-card b { display: block; }
.pass-card span { color: var(--muted); font-size: .82rem; }
.pw-tabs { margin: 0 0 1rem; }
.compare { width: 100%; border-collapse: collapse; margin: .2rem 0 1rem; font-size: .88rem; }
.compare th, .compare td { padding: .55rem .4rem; border-bottom: 1px solid var(--border); text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.compare .plus { font-weight: 800; color: var(--brand); }
.compare th.plus { color: #b37700; }

/* ---------- Bonus quotidien ---------- */
.daily h2 { margin: .8rem 0 .3rem; }
.daily h2 { text-align: center; }
.daily-orb { width: 86px; height: 86px; border-radius: 30px; margin: 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, #fff1c9, #ffc65a); color: #b37700; box-shadow: 0 16px 40px rgba(245, 184, 61, .45); animation: float 3.5s ease-in-out infinite; }
.daily-orb .i { width: 44px; height: 44px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin: 1.2rem 0; }
.st-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .1rem; border-radius: 12px; background: var(--surface-2); font-size: .8rem; }
.st-day small { color: var(--muted); font-weight: 700; font-size: .66rem; }
.st-day .i { width: .9rem; height: .9rem; color: #e0a000; }
.st-day.done { background: linear-gradient(135deg, #fff1c9, #ffd88a); color: #6b4300; }
.st-day.today { outline: 2px solid var(--brand); outline-offset: 1px; transform: scale(1.06); }

/* ---------- Cadeaux ---------- */
.round.gift { color: #e0861a; }
.gift-btn { background: linear-gradient(135deg, #fff1c9, #ffd88a); color: #6b4300; }
.gifted-badge { position: absolute; top: 62px; right: 14px; z-index: 2; background: linear-gradient(135deg, #fff1c9, #ffd88a); color: #6b4300; border-radius: 999px; padding: .3rem .7rem; font-weight: 800; font-size: .8rem; display: flex; gap: .3rem; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.gift-modal { max-width: 460px; }
.gp-head h2 { margin-bottom: .3rem; }
.gp-balance { display: flex; align-items: center; gap: .4rem; font-size: .9rem; margin: .4rem 0 .8rem; flex-wrap: wrap; }
.gp-balance .i { color: #e0a000; }
.gp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: .9rem; }
.gp-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .3rem .6rem; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.gp-item:active { transform: scale(.94); }
.gp-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-shadow); }
.gp-item.dim { opacity: .5; }
.gp-emoji { font-size: 2rem; line-height: 1.1; }
.gp-item b { font-size: .78rem; }
.gp-cost { font-size: .75rem; font-weight: 800; color: #b37700; display: inline-flex; gap: .15rem; align-items: center; }
.gp-cost .i { width: .85rem; height: .85rem; }
.gift-fly { position: fixed; left: 50%; top: 55%; z-index: 400; font-size: 6rem; pointer-events: none; animation: giftFly 1.3s var(--ease) forwards; }
@keyframes giftFly { 0% { transform: translate(-50%, 0) scale(.3); opacity: 0; } 30% { transform: translate(-50%, -40px) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -260px) scale(.8); opacity: 0; } }
.gift-shelf { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0; }
.gs-total { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; font-size: .85rem; color: #b37700; }
.gs-item { background: var(--surface-2); border-radius: 999px; padding: .15rem .5rem; font-size: 1.05rem; }
.gs-item small { font-size: .7rem; font-weight: 700; color: var(--muted); margin-left: .1rem; }
.gift-bubble { align-self: center; display: flex; gap: .7rem; align-items: center; max-width: 86%; padding: .7rem 1rem; border-radius: 18px; background: linear-gradient(135deg, #fff6dc, #ffe5ad); color: #4a2e00; box-shadow: var(--shadow); animation: bubbleIn .3s var(--ease); margin: .3rem 0; }
.gift-bubble .gb-emoji { font-size: 2.2rem; }
.gift-bubble p { margin: .15rem 0 0; font-style: italic; }
.gift-bubble time { font-size: .7rem; opacity: .7; }
.gift-list { display: grid; gap: .7rem; }
.gift-card { display: flex; gap: .8rem; align-items: center; background: var(--surface); border-radius: 18px; padding: .9rem 1rem; box-shadow: var(--shadow); cursor: pointer; }
.gift-card .gc-emoji { font-size: 2.2rem; width: 3rem; text-align: center; }
.gift-card p { margin: .2rem 0; font-style: italic; }
.toast-emoji { font-size: 1.8rem; }
.credits-card .gift-shelf { margin: .4rem 0 .8rem; }
.email-notice { margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .head-tools { width: 100%; justify-content: flex-start; }
  .place-row { flex-direction: column; }
  .locate { justify-content: center; }
}
@media (max-width: 380px) {
  .gp-grid, .packs { grid-template-columns: repeat(2, 1fr); }
  .palettes { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   v4 — identité visuelle, radar « Autour », système d'animations commun
   ===================================================================== */
:root {
  --dur-1: .18s; --dur-2: .32s; --dur-3: .5s;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Dessins de la marque (emblème, pièce, cadeaux) ---------- */
.art { display: inline-block; width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -.27em; }
.logo .mark { width: 1.45em; height: 1.45em; filter: drop-shadow(0 4px 10px rgba(255, 70, 110, .35)); }
.splash-loader .logo .mark, .auth-hero .logo .mark { animation: heartbeat 2.8s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes heartbeat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.12); } 20% { transform: scale(.98); } 30% { transform: scale(1.07); } }
.side .logo .mark { transition: transform var(--dur-3) var(--spring); }
.side .logo:hover .mark { transform: rotate(-8deg) scale(1.1); }
.big-ico.art-ico { background: none; width: auto; height: auto; }
.big-ico.art-ico .art { width: 76px; height: 76px; animation: float 4s ease-in-out infinite; }

/* pièce « étincelle » */
.credit-chip .art { width: 1.25rem; height: 1.25rem; }
.credit-chip.bump .art { animation: coinFlip .6s var(--ease); }
@keyframes coinFlip { from { transform: rotateY(0) scale(1.2); } to { transform: rotateY(360deg) scale(1); } }
.balance-card > .art { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 4px 8px rgba(224, 120, 0, .35)); animation: float 3.6s ease-in-out infinite; }
.pack-ico .art { width: 2rem; height: 2rem; }
.pack:hover .pack-ico .art { animation: coinFlip .7s var(--ease); }
.gp-cost .art, .st-day .art { width: .95rem; height: .95rem; vertical-align: -.15em; }
.pw-tabs .art, .btn .art { width: 1.15em; height: 1.15em; }

/* cadeaux illustrés */
.gp-emoji .art { width: 2.6rem; height: 2.6rem; transition: transform var(--dur-2) var(--spring); }
.gp-item:hover .gp-emoji .art { transform: translateY(-3px) scale(1.06); }
.gp-item.on .gp-emoji .art { animation: wiggle .55s var(--ease); transform: scale(1.12); }
@keyframes wiggle { 0% { transform: scale(1); } 30% { transform: scale(1.2) rotate(-8deg); } 60% { transform: scale(1.1) rotate(6deg); } 100% { transform: scale(1.12) rotate(0); } }
.gb-emoji .art, .gc-emoji .art { width: 2.7rem; height: 2.7rem; }
.gift-bubble .gb-emoji .art { animation: popIn .5s var(--spring); }
.gs-item .art { width: 1.35em; height: 1.35em; }
.toast-emoji .art { width: 2.1rem; height: 2.1rem; }
.gift-fly .art { width: 1.5em; height: 1.5em; filter: drop-shadow(0 12px 30px rgba(255, 90, 110, .45)); }

/* ---------- Animations communes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(48px); } }
@keyframes navPop { 0% { transform: scale(1); } 40% { transform: scale(1.28) translateY(-2px); } 100% { transform: scale(1.08) translateY(-1px); } }
/* entrée en cascade des listes et grilles */
.grid > *, .gift-list > *, .gp-grid > *, .packs > *, .plans > *, .palettes > *, .streak > *, .reasons > li, .profile-grid .card {
  animation: rise var(--dur-3) var(--ease) both;
}
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(2) { animation-delay: 40ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(3) { animation-delay: 80ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(4) { animation-delay: 120ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(5) { animation-delay: 160ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(6) { animation-delay: 200ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(7) { animation-delay: 240ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(8) { animation-delay: 280ms; }
:is(.grid, .gift-list, .gp-grid, .packs, .plans, .palettes, .streak, .reasons) > :nth-child(n+9) { animation-delay: 320ms; }
.profile-grid .col > .card:nth-child(2) { animation-delay: 60ms; }
.profile-grid .col > .card:nth-child(3) { animation-delay: 120ms; }
.profile-grid .col > .card:nth-child(n+4) { animation-delay: 180ms; }
.page-head h1 { animation: rise var(--dur-2) var(--ease) both; }
.empty .big-ico:not(.art-ico) { animation: float 4s ease-in-out infinite; }

/* retours tactiles harmonisés */
.chip, .seg button, .palette, .pack, .plan, .gp-item, .gift-card { transition: transform var(--dur-1) var(--ease), background var(--dur-2), color var(--dur-2), box-shadow var(--dur-2), border-color var(--dur-2); }
.seg button:active, .palette:active, .pack:active, .plan:active, .gp-item:active, .gift-card:active { transform: scale(.96); }
.badge:not(.hidden) { animation: popIn .4s var(--spring); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .gift-card:hover, .pack:hover, .plan:hover { transform: translateY(-2px); }
}
.btn-plus, .side-plus:not(.active) { background-size: 200% 100%; animation: goldShine 3.5s ease-in-out infinite; }
@keyframes goldShine { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.round.spinning .i { animation: spin .7s linear infinite; }

/* barre de navigation mobile : pastille animée derrière l'onglet actif */
@media (max-width: 900px) {
  .bottom-nav a::before {
    content: ""; position: absolute; top: -3px; left: 50%; width: 3.4rem; height: 2rem; border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 16%, transparent); transform: translateX(-50%) scaleX(.3); opacity: 0;
    transition: transform var(--dur-2) var(--spring), opacity var(--dur-1);
  }
  .bottom-nav a.active::before { transform: translateX(-50%) scaleX(1); opacity: 1; }
  .bottom-nav a .i, .bottom-nav a > span:not(.badge) { position: relative; z-index: 1; }
  .bottom-nav a.active .i { animation: navPop .45s var(--spring) forwards; }
  .overlay .modal { animation: sheetUp .38s var(--ease) both; }
  .page-head .row .btn.sm { padding: .5rem .8rem; }
}

/* ---------- Aperçu de mon profil ---------- */
.preview-banner {
  display: flex; align-items: center; gap: .55rem; margin: -.2rem 0 .9rem; padding: .6rem .85rem; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); font-weight: 700; font-size: .88rem;
  animation: rise var(--dur-2) var(--ease) both;
}

/* ---------- Radar « Autour » ---------- */
.nb-head .nb-actions { margin-left: auto; gap: .5rem; }
.nb-head .seg { min-width: 220px; }
.nb-head .chip, .nb-range .chip { white-space: nowrap; }
.nb-range { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: .6rem; }
.nb-range:empty { display: none; }
.nb-range::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .nb-head .nb-actions .round.sm { width: 42px; height: 42px; }
  .nb-head .nb-actions .round.sm .i { width: 19px; height: 19px; }
  .nb-range { justify-content: center; }
}
.radar-wrap { display: grid; justify-items: center; gap: .8rem; margin: .4rem 0 1rem; }
.radar { position: relative; width: min(100%, 440px); aspect-ratio: 1; --spin: 4s; }
.radar-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, var(--surface)) 0%, color-mix(in srgb, var(--brand) 6%, var(--surface)) 55%, var(--surface) 72%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 22%, var(--border)), var(--shadow);
  animation: radarIn .7s var(--spring) both;
}
@keyframes radarIn { from { transform: scale(.6); opacity: 0; } }
.radar .ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--f) * 100%); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); border: 1.5px dashed color-mix(in srgb, var(--brand) 30%, transparent);
}
.radar .ring span {
  position: absolute; top: -.6rem; left: 50%; transform: translateX(-50%); padding: 0 .4rem; border-radius: 999px;
  font-size: .66rem; font-weight: 800; color: var(--muted); background: var(--surface);
}
.radar .axis { position: absolute; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.radar .axis.h { left: 4%; right: 4%; top: 50%; height: 1px; }
.radar .axis.v { top: 4%; bottom: 4%; left: 50%; width: 1px; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, color-mix(in srgb, var(--brand) 4%, transparent) 300deg, color-mix(in srgb, var(--brand) 42%, transparent) 359.4deg, transparent 360deg);
  animation: radarSpin var(--spin) linear infinite;
}
.radar-sweep::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--brand), transparent); box-shadow: 0 0 12px var(--brand);
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; }
.radar-me .avatar-wrap { position: relative; z-index: 1; }
.radar-me .avatar { border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--brand), 0 8px 24px var(--brand-shadow); }
.radar-me .wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: wave 2.6s ease-out infinite; }
.radar-me .wave + .wave { animation-delay: 1.3s; }
@keyframes wave { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }
.rdot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 0; padding: 0; background: none; cursor: pointer; color: inherit;
  display: grid; justify-items: center; gap: 2px; animation: rdotIn .55s var(--spring) both; animation-delay: calc(.35s + var(--i) * 45ms);
}
@keyframes rdotIn { from { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
.rdot .avatar-wrap { border-radius: 50%; position: relative; }
.rdot .avatar { border: 2.5px solid var(--surface); box-shadow: 0 4px 14px rgba(36, 16, 61, .25); animation: ping var(--spin, 4s) ease-out infinite; animation-delay: var(--ping); transition: transform var(--dur-2) var(--spring); }
.rdot:hover .avatar, .rdot:focus-visible .avatar { transform: scale(1.15); }
.rdot:active .avatar { transform: scale(.92); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 70%, transparent), 0 4px 14px rgba(36, 16, 61, .25); transform: scale(1.14); }
  14% { box-shadow: 0 0 0 9px transparent, 0 4px 14px rgba(36, 16, 61, .25); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 transparent, 0 4px 14px rgba(36, 16, 61, .25); }
}
.rdot.online .avatar { border-color: var(--ok); }
.rdot.hot .avatar { border-color: var(--gold); }
.rdot.gifted .avatar-wrap::after { content: ""; position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad-gold); border: 2px solid var(--surface); }
.rdot-km { font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); white-space: nowrap; }
.radar-caption { text-align: center; margin: 0; line-height: 1.5; }
.radar-caption .i { width: 1em; height: 1em; }
@media (max-width: 900px) {
  .radar { width: min(100%, 360px); }
  .rdot .avatar { width: 38px !important; height: 38px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .rdot .avatar, .radar-me .wave, .logo .mark, .btn-plus, .side-plus, .big-ico, .big-ico .art, .balance-card > .art { animation: none !important; }
}

/* accueil et bonus du jour : emblème et pièce de la marque */
.ob-art .art { width: 108px; height: 108px; filter: drop-shadow(0 10px 24px rgba(255, 70, 110, .45)); animation: heartbeat 2.8s ease-in-out infinite; }
.daily-orb .art { width: 52px; height: 52px; animation: coinFlip 1.2s var(--ease) .2s both; }
.email-notice { flex-wrap: wrap; }
.email-notice .grow { min-width: 12rem; }
.chat-head .row.grow { min-width: 0; }
.chat-who { min-width: 0; line-height: 1.25; }
.chat-who b, .chat-who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who .small { display: block; }
.chat-who .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: .3rem; vertical-align: 1px; animation: glow 1.8s ease-in-out infinite; }
@media (max-width: 900px) { .chat-head { gap: .4rem; padding: .7rem .6rem; } .chat-head .btn.sm { padding: .45rem .6rem; } }

/* =====================================================================
   v5 — « Dites-en plus sur toi » et questions-clés
   ===================================================================== */
.fill-pill { font-size: .75rem; font-weight: 800; padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.fill-pill.full { background: var(--grad); color: var(--on-brand); }
.meter.thin { height: 6px; margin: .7rem 0 .2rem; }
.detail-list { display: grid; margin: .4rem -.4rem 0; }
.detail-row {
  display: grid; grid-template-columns: 1.6rem auto 1fr auto; align-items: center; gap: .75rem; width: 100%;
  padding: .85rem .4rem; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer; text-align: left;
  border-radius: 12px; transition: background var(--dur-1, .18s);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row:hover { background: var(--surface-2); }
.detail-row:active { transform: scale(.985); }
.detail-row > .i:first-child { width: 1.45rem; height: 1.45rem; color: var(--brand); }
.dl-label { font-weight: 700; white-space: nowrap; }
.dl-value { justify-self: end; text-align: right; color: var(--muted); font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-value.unset { color: var(--brand); font-weight: 700; }
.dl-chev { width: 1.1rem; height: 1.1rem; color: var(--muted); }

.prompt-card {
  position: relative; margin: .7rem 0; padding: .9rem 1rem; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), color-mix(in srgb, var(--brand-2) 9%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
  animation: rise var(--dur-3, .5s) var(--ease) both;
}
.prompt-card small { display: block; font-weight: 800; color: var(--brand); font-size: .78rem; letter-spacing: .01em; }
.prompt-card p { margin: .3rem 0 0; font-size: 1.05rem; font-weight: 650; line-height: 1.35; }
.prompt-card.editable { padding-right: 5.6rem; }
.pc-tools { position: absolute; top: .5rem; right: .5rem; display: flex; gap: .2rem; }
.pc-tools .btn { padding: .4rem .5rem; border: 0; }
.add-prompt { margin-top: .6rem; border-style: dashed; }

.detail-picker h2, .prompt-editor h2, .prompt-choose h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.detail-picker h2 .i { color: var(--brand); }
.dp-chips { gap: .5rem; }
.dp-chips .chip { font-size: .95rem; padding: .55rem .9rem; }
.chip.suggested:not(.on) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.height-pick { display: grid; gap: .8rem; justify-items: center; padding: .6rem 0; }
.height-pick b { font-size: 2.4rem; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.height-pick input { width: 100%; }
.prompt-editor textarea { min-height: 110px; margin-top: .4rem; }
.prompt-options { display: grid; gap: .45rem; max-height: 60vh; overflow: auto; }
.prompt-option {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; text-align: left; cursor: pointer;
  padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 650;
  transition: border-color var(--dur-1, .18s), transform var(--dur-1, .18s);
}
.prompt-option:hover { border-color: var(--brand); }
.prompt-option:active { transform: scale(.98); }
.prompt-option .i { color: var(--muted); flex-shrink: 0; }
.detail-chip .i { width: 1em; height: 1em; color: var(--brand); }
.detail-chip.shared { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
:is(.prompt-options) > * { animation: rise var(--dur-3, .5s) var(--ease) both; }

/* =====================================================================
   v6 — réglages à chaud : annonce, maintenance, mise à jour, nouveautés, avis
   ===================================================================== */
/* Fonctions coupées depuis l'administration (le serveur les refuse aussi) */
.no-gifts :is(#b-gift, #pm-gift, #chat-gift, .credit-chip, .credits-card, .pw-tabs [data-t="credits"], [data-t="gifts"]),
.no-dailyBonus #cr-daily,
.no-boost #b-boost,
.no-prompts :is(#prompts-card, .prompt-card),
.no-radar #nb-mode { display: none !important; }

#announce:empty { display: none; }
#announce { display: grid; gap: .5rem; margin-bottom: 1rem; }
.announce {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem .7rem 1rem; border-radius: 16px; font-weight: 650; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  animation: rise var(--dur-2, .32s) var(--ease) both;
}
.announce > .i { color: var(--brand); flex-shrink: 0; }
.announce.warning { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.announce.warning > .i { color: var(--danger); }
.announce.promo { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, var(--brand-2) 18%, var(--surface))); }
.announce.update > .i { color: var(--violet); }
.announce .btn { flex-shrink: 0; }
.ann-close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .25rem; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.ann-close:hover { background: var(--surface-2); }

.splash-loader.gate { text-align: center; padding: 2rem 1.5rem; }
.splash-loader.gate h2 { margin: 1.2rem 0 .3rem; color: #fff; }
.splash-loader.gate p { max-width: 320px; opacity: .85; margin: 0 auto 1.2rem; }
.splash-loader.gate .btn + .btn { margin-top: .6rem; }

.whats-new .wn-mark .art { width: 72px; height: 72px; animation: heartbeat 2.8s ease-in-out infinite; }
.whats-new h2 { margin: .4rem 0 0; }
.wn-list { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .55rem; text-align: left; }
.wn-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; border-radius: 14px; background: var(--surface-2); animation: rise var(--dur-3, .5s) var(--ease) both; }
.wn-list li:nth-child(2) { animation-delay: 60ms; } .wn-list li:nth-child(3) { animation-delay: 120ms; } .wn-list li:nth-child(n+4) { animation-delay: 180ms; }
.wn-list .i { color: var(--brand); flex-shrink: 0; margin-top: .15rem; }

.feedback-form h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; }
.feedback-form .seg { margin: .8rem 0; }
.feedback-form textarea { min-height: 120px; }
.stars { display: flex; gap: .3rem; justify-content: center; margin: .2rem 0 .8rem; }
.stars button { border: 0; background: none; cursor: pointer; padding: .2rem; color: var(--border); transition: transform var(--dur-1, .18s) var(--spring, ease); }
.stars button .i { width: 2rem; height: 2rem; }
.stars button.on { color: var(--gold); }
.stars button.on .i { fill: currentColor; }
.stars button:active { transform: scale(.85); }

/* =====================================================================
   v7 — interface nouvelle génération : verre dépoli, halos « aurore », bordures lumineuses,
   transitions natives entre pages, feuilles modales, critères en sous-options
   ===================================================================== */
/* Aucun contenu ne doit élargir la page : sinon le téléphone dézoome et le menu du bas sort de l'écran */
.shell, .auth, .onboarding { overflow-x: clip; }
.seg button { min-width: 0; }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll button { flex: 1 0 auto; }
@media (max-width: 900px) {
  .tabs-scroll button { padding: .5rem .6rem; font-size: .86rem; gap: .28rem; }
  .tabs-scroll .i { width: 1.05em; height: 1.05em; }
}

/* ---------- Fond « aurore » : halos aux couleurs du thème, qui dérivent lentement ---------- */
body::after {
  content: ""; position: fixed; inset: -25vmax; z-index: -1; pointer-events: none; will-change: transform;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
    radial-gradient(34vmax 34vmax at 88% 28%, color-mix(in srgb, var(--violet) 11%, transparent), transparent 70%),
    radial-gradient(44vmax 44vmax at 55% 95%, color-mix(in srgb, var(--brand-2) 11%, transparent), transparent 70%);
  animation: aurora 30s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(4vmax, -3vmax, 0) rotate(7deg) scale(1.06); } }

/* ---------- Surfaces : bordures fines lumineuses, verre dépoli là où le contenu défile dessous ---------- */
.card { border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.plus-card {
  border: 1px solid transparent;
  background: var(--grad-night) padding-box, linear-gradient(135deg, #ffd166, #ff5a8a 45%, #7b4dff) border-box;
}
.toast {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); border-left: 4px solid var(--brand);
}
.toast.error { border-left-color: var(--danger); }
.tile .pill {
  background: rgba(18, 8, 32, .42); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.page-head h1::after { content: ""; display: block; width: 2.2rem; height: 4px; border-radius: 4px; background: var(--grad); margin-top: .35rem; }

/* Bouton principal : reflet qui balaie au survol et à l'appui */
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn.primary:hover::after, .btn.primary:active::after { transform: translateX(120%); }
/* Badges Étincelle+ : reflet holographique */
.pill-q.plus, .mini-plus { background-size: 200% 100%; animation: goldShine 4s ease-in-out infinite; }
.verified .i { filter: drop-shadow(0 0 4px rgba(58, 160, 255, .45)); }

/* ---------- Menu du bas flottant en verre dépoli ---------- */
@media (max-width: 900px) {
  .bottom-nav {
    left: 10px; right: 10px; bottom: calc(8px + var(--sab)); border-radius: 26px; padding: .42rem .2rem;
    border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
    background: color-mix(in srgb, var(--surface) 74%, transparent);
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 12px 34px rgba(36, 16, 61, .2), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
  .main { padding-bottom: calc(6.8rem + var(--sab)); }
  .page-head .head-tools { order: 3; width: 100%; }
}

/* ---------- Fenêtres : feuilles qui montent du bas sur téléphone ---------- */
@media (max-width: 900px) {
  .overlay:has(> .small-modal:not(.match-modal)) { align-items: flex-end; padding: var(--sat) 0 0; }
  .overlay > .small-modal:not(.match-modal) {
    max-width: none; border-radius: 28px 28px 0 0; max-height: 90dvh;
    padding: 1.9rem 1.3rem calc(1.4rem + var(--sab));
  }
  .overlay > .small-modal:not(.match-modal)::before {
    content: ""; position: sticky; top: -1.3rem; display: block; width: 44px; height: 5px; border-radius: 5px;
    margin: -1.1rem auto 1rem; background: var(--border);
  }
}

/* ---------- Transitions natives entre les pages (View Transitions API) ---------- */
::view-transition-old(root) { animation: vtOut .18s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .3s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
.bottom-nav { view-transition-name: bottom-nav; }
.side { view-transition-name: side-nav; }

/* ---------- Apparition des vignettes au défilement (animations pilotées par le scroll) ---------- */
@supports (animation-timeline: view()) {
  .grid > .tile { animation: tileIn linear both; animation-delay: 0s; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes tileIn { from { opacity: 0; transform: translateY(26px) scale(.95); } }
}

/* ---------- « Mes critères » ---------- */
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0; margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform var(--dur-1, .18s) var(--ease);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .i { width: 1.25rem; height: 1.25rem; }
.fbadge {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px;
  background: var(--grad); color: var(--on-brand); font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--surface); animation: popIn .35s var(--spring, ease);
}
.nb-actions .icon-btn { margin-left: 0; width: 40px; height: 40px; }
.criteria-card .crit-summary { margin: .7rem 0 0; font-weight: 650; color: var(--muted); }
.criteria-sheet h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .4rem; }
.criteria-sheet h2 .i { color: var(--brand); }
.criteria-sheet section { padding: .95rem 0; border-bottom: 1px solid var(--border); }
.criteria-sheet section:last-of-type { border-bottom: 0; }
.criteria-sheet h4 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .75rem; font-size: .95rem; }
.criteria-sheet h4 b { color: var(--brand); font-size: .92rem; }
.criteria-sheet .toggle { cursor: pointer; padding: .55rem 0; }
.criteria-sheet .toggle .i { color: var(--brand); }
.dual-range { position: relative; height: 30px; }
.dr-track { position: absolute; left: 13px; right: 13px; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 6px; background: var(--surface-3); }
.dr-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--grad); }
.dual-range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; z-index: 2;
}
.dual-range input[type="range"]::-webkit-slider-runnable-track { background: none; height: 30px; }
.dual-range input[type="range"]::-moz-range-track { background: none; }
.solo-range { width: 100%; height: 6px; margin: .7rem 0 0; border-radius: 6px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--brand) 0 var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
:is(.dual-range input[type="range"], .solo-range)::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; cursor: grab;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 3px 10px var(--brand-shadow); margin-top: 2px;
}
.solo-range::-webkit-slider-thumb { margin-top: 0; }
:is(.dual-range input[type="range"], .solo-range)::-moz-range-thumb {
  pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 3px 10px var(--brand-shadow);
}
.dr-scale { display: flex; justify-content: space-between; margin-top: .45rem; font-size: .75rem; color: var(--muted); }
.cr-count {
  display: flex; align-items: center; gap: .5rem; margin: .9rem 0; padding: .7rem .9rem; border-radius: 14px; min-height: 2.9rem;
  background: color-mix(in srgb, var(--ok) 11%, var(--surface)); font-weight: 650; font-size: .9rem;
}
.cr-count .i { color: var(--ok); flex-shrink: 0; }
.cr-count.none { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.cr-count.none .i { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  body::after, .pill-q.plus, .mini-plus { animation: none !important; }
  .grid > .tile { animation: none !important; }
}

/* Messages : titre de page comme les autres onglets ; hauteurs ajustées au menu flottant */
.msg-head + .chat-layout { height: calc(100vh - 11rem); }
@media (max-width: 900px) {
  .chat-layout { height: calc(100dvh - 8.2rem - var(--sat) - var(--sab)); }
  .msg-head + .chat-layout { height: calc(100dvh - 11.8rem - var(--sat) - var(--sab)); }
  body.in-chat .msg-head { display: none; }
  body.in-chat .msg-head + .chat-layout { height: calc(100dvh - 1.4rem - var(--sat) - var(--sab)); }
}
.criteria-sheet h4 b { text-transform: none; letter-spacing: 0; }

/* =====================================================================
   v7 bis — fond 3D d'étincelles, marque mise en valeur, gerbes de match
   ===================================================================== */
.fx-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx-app { position: fixed; z-index: -1; }
.fx-burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 500; }
.auth, .onboarding, .splash-loader { position: relative; isolation: isolate; overflow: hidden; }
.auth > :not(.fx-bg), .onboarding > :not(.fx-bg), .splash-loader > :not(.fx-bg) { position: relative; z-index: 1; }
/* halo profond derrière le contenu des écrans de marque */
.auth::before, .onboarding::before, .splash-loader::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 30%, rgba(255, 90, 140, .22), transparent 70%),
              radial-gradient(50% 40% at 80% 90%, rgba(123, 77, 255, .2), transparent 70%);
}

/* ---------- Bloc de marque : emblème en relief + nom ---------- */
.brand-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.auth-hero .brand-hero { align-items: flex-start; text-align: left; }
.brand-3d { perspective: 700px; --tx: 0; --ty: 0; }
.mark3d {
  width: 104px; height: 104px; display: block; transform-style: preserve-3d;
  transform: rotateY(calc(var(--tx) * 18deg)) rotateX(calc(var(--ty) * -14deg));
  filter: drop-shadow(0 18px 28px rgba(255, 60, 120, .45)) drop-shadow(0 0 22px rgba(255, 190, 90, .35));
  animation: float3d 6s ease-in-out infinite; transition: transform .2s ease-out;
}
@keyframes float3d { 50% { translate: 0 -8px; scale: 1.04; } }
.ob-art.brand-3d { background: none; border: 0; box-shadow: none; width: auto; height: auto; animation: none; }
.ob-art.brand-3d .mark3d { width: 132px; height: 132px; animation: float3d 6s ease-in-out infinite; }
.brand-word {
  font-weight: 800; font-size: clamp(2.5rem, 9vw, 4.2rem); letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(100deg, #fff 0%, #ffd0dc 25%, #ffb347 45%, #fff 60%, #ff8fb1 80%, #fff 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordShine 7s linear infinite; text-shadow: 0 0 40px rgba(255, 120, 150, .25);
}
@keyframes wordShine { to { background-position: -220% 0; } }
.brand-tag { margin: .5rem 0 0; opacity: .82; font-weight: 600; letter-spacing: .01em; }
.auth-hero .brand-hero { margin-bottom: 1rem; }
.auth-hero .mark3d { width: 84px; height: 84px; }
.splash-loader .brand-hero { margin-bottom: .5rem; }
.splash-loader.gate .mark3d { width: 88px; height: 88px; }
.splash-loader.gate .brand-word { font-size: 2.6rem; }
/* nom de l'app en titre de l'écran Rencontres (téléphone) */
.only-mobile { display: none; }
.brand-inline { align-items: center; gap: .45rem; }
.brand-inline .mark { width: 1.35em; height: 1.35em; filter: drop-shadow(0 4px 10px rgba(255, 70, 110, .35)); animation: heartbeat 3.2s ease-in-out infinite; }
.brand-inline b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
@media (max-width: 900px) {
  .only-mobile { display: inline-flex; }
  .auth-hero .brand-hero { align-items: center; text-align: center; margin-bottom: .4rem; }
  .auth-hero { text-align: center; align-items: center; }
  .auth-hero .mark3d { width: 76px; height: 76px; }
  .auth-hero .brand-word { font-size: 2.6rem; }
  .auth-hero h1 { font-size: 1.7rem; margin: .5rem 0 .4rem; }
  .auth-hero p { font-size: 1rem; margin: 0 auto; }
}

/* ---------- Match : le cœur central bat au rythme des étincelles ---------- */
.match-heart { animation: popIn .6s .3s var(--ease) backwards, matchBeat 1.2s var(--spring, ease) 1s 2; }
@keyframes matchBeat { 30% { transform: scale(1.35); } 60% { transform: scale(.95); } }
.match-screen h1 { background-size: 200% 100%; animation: wordShine 5s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .mark3d, .brand-word, .brand-inline .mark, .match-heart, .match-screen h1 { animation: none !important; }
}

/* Écrans très étroits : onglets sans icône, pour tenir sur une ligne */
@media (max-width: 389px) { .tabs-scroll .i { display: none; } }

/* États vides présentés en carte (Rencontres) : contenu centré */
.empty.card { align-items: center; }

/* =====================================================================
   v8 — photos et vidéos dans les conversations
   ===================================================================== */
.chat-foot form { align-items: center; }
.attach-btn {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); cursor: pointer;
  background: var(--surface-2); color: var(--brand); display: grid; place-items: center; position: relative;
  transition: transform var(--dur-1, .18s) var(--ease), background var(--dur-2, .3s);
}
.attach-btn .i { width: 1.35rem; height: 1.35rem; }
.attach-btn:active { transform: scale(.9); }
.attach-btn:disabled { opacity: .45; cursor: not-allowed; }
.attach-btn.locked { color: var(--muted); }
.attach-btn.locked::after {
  content: ""; position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 2px solid var(--surface);
}

/* bulles photo / vidéo */
.bubble.media { padding: 4px; max-width: min(74%, 300px); white-space: normal; }
.bubble.media time { position: absolute; right: 12px; bottom: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); opacity: .95; }
.bubble.media:has(.mb-caption) time { position: static; display: block; text-align: right; color: inherit; text-shadow: none; padding: 0 .55rem .3rem; }
.mb-frame {
  position: relative; width: 100%; min-width: 180px; max-height: 360px; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: linear-gradient(110deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
.mb-frame.loaded, .mb-frame.missing { animation: none; }
.mb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .35s var(--ease), transform .35s var(--ease); }
.mb-frame.blurred img { filter: blur(22px) saturate(1.2); transform: scale(1.12); }
.mb-reveal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem;
  color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  background: rgba(18, 8, 32, .25);
}
.mb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(18, 8, 32, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .35);
}
.mb-play .i { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.mb-frame.blurred .mb-play { display: none; }
.mb-dur {
  position: absolute; left: 8px; bottom: 8px; padding: .1rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, .5);
}
.mb-ph { width: 100%; height: 100%; min-height: 160px; }
.mb-frame.missing::after { content: "Média indisponible"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; color: var(--muted); background: var(--surface-2); }
.mb-caption { margin: .4rem .55rem .2rem; white-space: pre-wrap; word-wrap: break-word; }

/* fenêtre d'envoi */
.media-composer h2 { display: flex; align-items: center; gap: .5rem; margin-top: 0; font-size: 1.25rem; }
.media-composer h2 .i { color: var(--brand); }
.mc-preview {
  position: relative; border-radius: 18px; overflow: hidden; background: #0d0718; display: grid; place-items: center;
  min-height: 200px; max-height: 46vh; margin-bottom: .8rem;
}
.mc-preview img, .mc-preview video { width: 100%; max-height: 46vh; object-fit: contain; display: block; }
.mc-progress { display: flex; align-items: center; gap: .6rem; margin: .7rem 0 0; font-weight: 700; font-size: .85rem; }
.mc-progress > div { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.mc-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }
.mc-note { display: flex; gap: .4rem; align-items: flex-start; margin: .7rem 0 1rem; }
.mc-note .i { flex-shrink: 0; margin-top: .1rem; }

/* visionneuse plein écran */
.overlay:has(> .viewer-modal) { padding: 0; background: rgba(5, 2, 10, .94); align-items: center; }
.modal.viewer-modal {
  display: block; max-width: none; width: 100%; height: 100dvh; max-height: none; border-radius: 0;
  background: transparent; box-shadow: none; animation: fade .2s both;
}
.media-viewer, .mv-stage { width: 100%; height: 100%; display: grid; place-items: center; }
.mv-stage img, .mv-stage video { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.mv-close {
  position: absolute; z-index: 2; top: calc(12px + var(--sat)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 900px) {
  .bubble.media { max-width: 78%; }
  .attach-btn { width: 44px; height: 44px; }
}
