/* ===================== Swoopy — espace membre ===================== */
body.app { min-height: 100svh; display: flex; flex-direction: column; }
.app h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; margin-bottom: 10px; }
.app h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.muted { color: var(--mute); }
.small { font-size: .85rem; }
.app a:not(.btn):not(.logo) { color: var(--orange); }
.big-heart svg { width: 64px; height: 64px; margin: 0 auto 20px; display: block; filter: drop-shadow(0 12px 30px rgba(255,77,109,.55)); animation: beat 2.4s ease-in-out infinite; }

/* Barre du haut + onglets */
.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(251,246,241,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--stroke); }
.app .appbar .logo { color: var(--ink); }
.tabs { display: flex; gap: 6px; }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--mute) !important; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--ink) !important; }
.tabs a.on { background: rgba(42,24,56,.08); color: var(--ink) !important; }
.tabs .ti { font-size: 1rem; }
.badge { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.guest { display: flex; align-items: center; gap: 18px; }
.guest a:not(.btn) { color: var(--mute) !important; text-decoration: none; }
.app-main { flex: 1; width: 100%; }
.app-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 30px 20px 40px; font-size: .82rem; }
.app-foot a { color: var(--dim) !important; text-decoration: none; }
@media (max-width: 720px) {
  .app:not(.admin) .appbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FBF6F1; }
  .app:not(.admin) .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(42,24,56,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--stroke); }
  .app:not(.admin) .tabs a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 14px; }
  .app:not(.admin) .tabs .ti { font-size: 1.25rem; }
  .app .app-foot { padding-bottom: 100px; }
  .guest a:not(.btn) { display: none; }
}

/* Messages flash */
.flash { max-width: 760px; margin: 18px auto 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--card); width: calc(100% - 32px); }
.flash-ok { border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); }
.flash-err { border-color: rgba(229,72,77,.45); background: rgba(229,72,77,.1); }
.flash-match { border: 0; background: var(--grad); color: #fff; font-size: 1.05rem; box-shadow: 0 20px 50px -20px rgba(255,77,109,.8); animation: pop .6s var(--ease); }
.flash-match a { color: #fff !important; font-weight: 700; }

/* Pages */
.page { max-width: 760px; padding: clamp(28px, 5vw, 56px) 16px 40px; }
.page.wide { max-width: 1180px; }
.panel { background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 24px; padding: clamp(20px, 3vw, 30px); margin-top: 18px; }
.panel h2 { margin-bottom: 10px; }
.panel .btn { margin-top: 6px; }
.notice { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: rgba(255,154,60,.1); border: 1px solid rgba(255,154,60,.3); }
.sub { margin: 34px 0 14px; font-size: 1.3rem !important; }
.back-link { display: inline-block; margin-bottom: 14px; text-decoration: none; }

/* Formulaires sur fond sombre */
.app .panel label, .app .panel legend { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; color: var(--ink); }
.app .panel input:not([type=radio]):not([type=checkbox]):not([type=file]), .app .panel textarea, .app .panel select, .report select, .report textarea, .end-box textarea, .menu select, .menu textarea {
  display: block; width: 100%; margin-top: 7px; padding: 13px 15px; font: 500 1rem var(--sans); color: var(--ink);
  background: rgba(42,24,56,.04); border: 1.5px solid var(--stroke); border-radius: 14px; transition: border-color .2s; }
.app .panel textarea, .end-box textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.app .panel input:focus, .app .panel textarea:focus, .app .panel select:focus { border-color: var(--pink); outline: none; }
.app .panel .seg span { background: rgba(42,24,56,.03); border-color: var(--stroke); color: var(--ink); }
.app .panel .seg input:checked + span { background: rgba(255,77,109,.14); border-color: var(--pink); color: #fff; }
.app .panel fieldset { margin-bottom: 18px; }
.row.three { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.form .row.three input { margin-top: 0 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0 !important; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--stroke); font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: rgba(255,77,109,.14); border-color: var(--pink); }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.quiz-title { margin: 26px 0 16px; font-size: 1.15rem; }
.quiz fieldset legend { font-size: .95rem; }
.btn-danger { font: 600 .92rem var(--sans); color: #fff; background: #C62A2F; border: 0; padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.btn-ghost { background: none; border: 0; border-bottom: 1px solid var(--stroke); color: var(--ink); font: 500 1rem var(--sans); cursor: pointer; padding: 8px 2px; }
.danger details { margin-top: 18px; }
.danger summary { cursor: pointer; color: #FF7A7F; font-weight: 500; }

/* Profil : en-tête + progression */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.progress-card { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 20px; }
.progress-card ul { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--dim); }
.progress-card li.ok { color: #3DDC97; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#FF4D6D calc(var(--p) * 1%), rgba(42,24,56,.08) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg-2); }
.ring b { position: relative; font-size: .95rem; }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.ph { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: rgba(42,24,56,.04); border: 1px solid var(--stroke); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag { position: absolute; top: 8px; left: 8px; font-size: .7rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.ph-tag.main { background: var(--grad); color: #fff; }
.ph-tag.wait { top: auto; bottom: 8px; background: rgba(0,0,0,.6); color: #FFC08A; }
.ph-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.ph-actions button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: .85rem; }
.ph.add label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--mute); font-size: .85rem; margin: 0; border: 2px dashed var(--stroke); border-radius: 18px; transition: border-color .2s; }
.ph.add label:hover { border-color: var(--pink); }
.ph.add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph.add .plus { font-size: 2rem; color: var(--pink); line-height: 1; }

/* Partage */
.app .share { display: flex; gap: 8px; margin: 16px 0 10px; }
.app .share input { flex: 1; min-width: 0; padding: 12px 14px !important; margin: 0 !important; border-radius: 12px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.04); color: var(--ink); font: 500 .9rem var(--sans); }

/* Authentification */
.auth .app-main { display: flex; align-items: center; }
.auth-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; max-width: 1100px; padding-top: 50px; padding-bottom: 50px; }
.auth-wrap.narrow { max-width: 900px; grid-template-columns: 1fr 1fr; }
.auth-intro .checks { margin-top: 26px; }
.auth .form .field-msg a { color: #C62A2F !important; font-weight: 700; }
.auth .form a { color: #E2405D !important; }
.auth-alt { text-align: center; margin: 18px 0 0; color: #5C5066; font-size: .92rem; }
.form fieldset.invalid input { border-color: #E5484D !important; }
.center-card { max-width: 560px; text-align: center; padding-top: 70px; }
.center-card p { color: var(--mute); }
@media (max-width: 860px) { .auth-wrap, .auth-wrap.narrow { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; } }

/* Découvrir */
.disc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.dots { display: flex; gap: 8px; }
.dots span { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--stroke); opacity: .45; transition: all .3s; }
.dots span img { width: 100%; height: 100%; object-fit: cover; }
.dots span.cur { opacity: 1; border-color: var(--pink); transform: scale(1.08); }
.dots span.liked { opacity: .8; border-color: #3DDC97; }
.profile-card { max-width: 480px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 30px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9); animation: pop .6s var(--ease); }
.pc-photos { position: relative; aspect-ratio: 4 / 5; background: #EDE4EC; cursor: pointer; user-select: none; }
.pc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.pc-photos img.on { opacity: 1; }
.pc-photos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0, transparent 18%, transparent 55%, rgba(10,6,16,.92) 100%); pointer-events: none; }
.pc-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 5px; }
.pc-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.pc-bars i.on { background: #fff; }
.pc-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; pointer-events: none; }
.pc-overlay .chip-v { display: inline-block; margin-bottom: 10px; }
.pc-body { padding: 20px 22px 8px; }
.pc-body .why { background: rgba(255,154,60,.1); border-color: rgba(255,154,60,.25); color: var(--ink); font-size: .95rem; }
.bio { margin: 18px 0 0; color: var(--mute); line-height: 1.6; }
.answers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.answers span { padding: 7px 12px; border-radius: 999px; background: rgba(42,24,56,.06); font-size: .83rem; color: var(--mute); }
.report { margin: 18px 0 6px; }
.report summary { cursor: pointer; font-size: .8rem; color: var(--dim); }
.report form { display: grid; gap: 8px; margin-top: 10px; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 22px 22px; position: sticky; bottom: 0; }
.act { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 999px; font: 600 1.05rem var(--sans); cursor: pointer; transition: transform .2s; border: 0; }
.act:hover { transform: translateY(-2px); }
.act:active { transform: scale(.96); }
.act span { font-size: 1.2rem; }
.act.pass { background: rgba(42,24,56,.07); color: var(--ink); border: 1px solid var(--stroke); }
.act.like { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -12px rgba(255,77,109,.8); }
@media (max-width: 720px) { .pc-actions { bottom: 74px; background: linear-gradient(180deg, transparent, var(--bg-2) 30%); } }
.empty { text-align: center; max-width: 520px; margin: 30px auto 0; padding: 40px 24px; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 30px; }
.empty h2 { margin-bottom: 14px; }
.empty p { color: var(--mute); }
.empty .btn { margin-top: 8px; }

/* Matchs */
.fresh { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.fresh-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink) !important; font-weight: 500; font-size: .9rem; flex: none; }
.fresh-item img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; padding: 3px; background: var(--grad); }
.conv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke); }
.conv-list li { border-bottom: 1px solid var(--stroke); }
.conv-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 6px; text-decoration: none; color: var(--ink) !important; transition: background .2s; border-radius: 14px; }
.conv-list a:hover { background: rgba(42,24,56,.03); }
.conv-list img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.conv-list b { display: block; font-weight: 600; }
.conv-list span { display: block; color: var(--mute); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-list small { color: var(--dim); font-size: .78rem; text-align: right; display: grid; gap: 4px; justify-items: end; }
.conv-list small i { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .72rem; padding: 0 5px; }
.conv-list li.unread b, .conv-list li.unread span { color: var(--ink); }
.conv-list li.closed { opacity: .55; }

/* Conversation */
.chat-page .app-foot { display: none; }
.conv { max-width: 760px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; height: calc(100svh - 64px); }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.conv-head .back { font-size: 1.4rem; text-decoration: none; color: var(--ink) !important; }
.conv-head .who { display: flex; align-items: center; gap: 12px; flex: 1; text-decoration: none; color: var(--ink) !important; min-width: 0; }
.conv-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.conv-head b { display: block; }
.conv-head span { display: block; font-size: .82rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-menu { position: relative; }
.conv-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 12px; color: var(--mute); }
.conv-menu summary::-webkit-details-marker { display: none; }
.conv-menu .menu { position: absolute; right: 0; top: 44px; z-index: 10; width: 280px; padding: 12px; display: grid; gap: 10px; background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.menu button { width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; border: 0; background: rgba(42,24,56,.05); color: var(--ink); font: 500 .92rem var(--sans); cursor: pointer; }
.menu .report-form { display: grid; gap: 8px; }
.menu .report-form button { color: #FF7A7F; }
.conv-body { flex: 1; overflow-y: auto; padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.conv-body .bub { max-width: 80%; }
.conv-body .bub time { display: block; font-size: .7rem; opacity: .6; margin-top: 4px; text-align: right; }
.conv-body .bub.end { border: 1px dashed rgba(42,24,56,.35); }
.conv-body .bub.end small { display: block; font-size: .72rem; opacity: .75; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.conv-body .bub.sys { max-width: 90%; font-size: .82rem; color: var(--dim); text-align: center; align-self: center; }
.conv-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--stroke); }
.conv-input textarea { flex: 1; resize: none; max-height: 140px; padding: 13px 16px; border-radius: 22px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.04); color: var(--ink); font: 500 1rem/1.4 var(--sans); }
.conv-input textarea:focus { outline: none; border-color: var(--pink); }
.conv-input .btn { width: 48px; height: 48px; padding: 0; flex: none; }
.end-box { padding: 4px 16px 16px; }
.end-box summary { cursor: pointer; font-size: .88rem; color: var(--mute); list-style: none; text-align: center; padding: 6px; }
.end-box summary b { color: var(--orange); font-weight: 600; }
.end-box form { display: grid; gap: 8px; margin-top: 10px; }
.end-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stroke); cursor: pointer; font-size: .9rem; color: var(--mute); }
.end-opt input { accent-color: var(--pink); margin-top: 3px; }
.end-opt span { flex: 1; }
.conv-closed { padding: 18px; text-align: center; color: var(--dim); border-top: 1px solid var(--stroke); font-size: .9rem; }
@media (max-width: 720px) { .conv { height: calc(100svh - 64px - 70px); } }

/* Admin */
.admin .tabs { flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 22px 0 10px; }
.kpi { background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 18px; padding: 16px 18px; color: var(--mute); font-size: .9rem; }
.kpi b { display: block; font-size: 2rem; color: var(--ink); letter-spacing: -.03em; }
.kpi.alert { border-color: rgba(255,154,60,.6); }
.tbl { width: 100%; border-collapse: collapse; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 16px; overflow: hidden; margin-bottom: 26px; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.tbl .n { text-align: right; }
.tbl tr.off { opacity: .45; }
.tbl .mini { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.link, .link-danger { background: none; border: 0; cursor: pointer; font: 500 .88rem var(--sans); color: var(--orange); }
.link-danger { color: #FF7A7F; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.mod { margin: 0; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 18px; overflow: hidden; }
.mod img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mod figcaption { padding: 10px 12px 4px; font-size: .88rem; }
.mod form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 14px; }
.mod button { padding: 10px; border-radius: 12px; border: 0; cursor: pointer; font: 600 .88rem var(--sans); }
.mod .ok { background: #1F8A5B; color: #fff; }
.mod .no { background: rgba(229,72,77,.18); color: #FF7A7F; }
.report-item .inline { display: inline-block; margin-right: 12px; }
.tag { padding: 2px 8px; border-radius: 6px; background: rgba(42,24,56,.08); font-size: .8rem; }
.end-box summary, .report summary, .del summary { list-style: none; }
.panel .del { margin-top: 16px; }
.panel .del form { margin-top: 14px; }
@media (max-width: 860px) {
  .auth-intro { text-align: center; }
  .auth-intro .label { justify-content: center; }
  .auth-intro .checks { display: none; }
  .auth-intro h1 { font-size: 2.1rem; }
  .auth-wrap { padding-top: 18px; gap: 18px; }
  .auth .form { padding: 22px 18px; border-radius: 26px; }
}
.auth .label::before { display: none; }
.auth .label { letter-spacing: .14em; }

/* ===================== v5 — Tableau de bord + profil premium ===================== */
.btn-glass { background: rgba(42,24,56,.1); color: var(--ink); border: 1px solid rgba(42,24,56,.18); box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.center { text-align: center; }

/* Pastilles de choix (critères, intention, questionnaire) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pills label { margin: 0 !important; position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.03); font-weight: 500; font-size: .92rem; color: var(--ink); cursor: pointer; transition: all .2s var(--ease); }
.pills span:hover { border-color: rgba(42,24,56,.28); }
.pills input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(255,77,109,.9); }
.pills input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Découvrir = tableau de bord */
.discover { padding-top: clamp(18px, 4vw, 40px); }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dash-hello { margin: 0 0 6px; color: var(--mute); font-weight: 500; }
.dash-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }
.me-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 2px; background: var(--grad); }
.me-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: var(--bg-2); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 12px; }
.dash-stats a { display: block; padding: 14px 14px 12px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--stroke); text-decoration: none; color: var(--ink) !important; transition: border-color .2s; }
.dash-stats a:hover { border-color: rgba(42,24,56,.22); }
.dash-stats b { display: block; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.dash-stats b small { font-size: .9rem; color: var(--dim); font-weight: 500; }
.dash-stats span { font-size: .8rem; color: var(--mute); }
.dash-stats a.hot { border-color: rgba(255,77,109,.5); background: rgba(255,77,109,.08); }
.crit-bar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; margin-bottom: 18px; border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(180deg, rgba(42,24,56,.05), rgba(42,24,56,.02)); color: var(--ink); font: inherit; cursor: pointer; text-align: left; transition: border-color .2s; }
.crit-bar:hover { border-color: rgba(255,77,109,.5); }
.crit-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.crit-ico svg { width: 20px; height: 20px; }
.crit-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.crit-chips i { font-style: normal; white-space: nowrap; font-size: .82rem; padding: 6px 10px; border-radius: 999px; background: rgba(42,24,56,.07); color: var(--mute); }
.crit-edit { flex: none; font-size: .85rem; font-weight: 600; color: var(--orange); }
.discover .dots { justify-content: center; margin: 0 0 16px; }
.dots span { position: relative; overflow: visible; }
.dots span img { border-radius: 50%; }
.dot-ic { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: #3DDC97; color: #0E0A14; font: normal 700 .65rem/18px var(--sans); text-align: center; -webkit-text-fill-color: #0E0A14; }
.chip-on { display: inline-block; font-size: .75rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(14,10,20,.6); color: #3DDC97; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Feuille « Mes critères » */
.sheet { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: 520px; width: 100%; max-height: 92svh; margin: auto; }
.sheet::backdrop { background: rgba(31,20,41,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetUp .35s var(--ease); }
.sheet-in { background: #FFFFFF; border: 1px solid var(--stroke); border-radius: 28px; padding: 22px 22px 18px; overflow-y: auto; max-height: 92svh; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-top h2 { margin: 0; font-size: 1.6rem; }
.sheet-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(42,24,56,.08); color: var(--ink); cursor: pointer; font-size: 1rem; }
.crit-label { margin: 18px 0 10px; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.crit-label output { color: var(--orange); font-weight: 600; }
.age-row { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.age-row select { flex: 1; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.04); color: var(--ink); font: 600 1rem var(--sans); }
.sheet .btn-full { margin: 24px 0 10px; }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 720px) {
  .sheet { margin: auto 0 0; max-width: none; }
  .sheet-in { border-radius: 28px 28px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Profil premium */
.me { padding-top: clamp(16px, 3vw, 36px); }
.me-hero { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--stroke);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,77,109,.28), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(255,154,60,.18), transparent 60%), var(--bg-2); }
.me-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: .35; }
.me-hero > * { position: relative; }
.me-id { display: flex; align-items: center; gap: clamp(16px, 3vw, 26px); }
.me-pic { position: relative; flex: none; width: clamp(96px, 22vw, 124px); aspect-ratio: 1; border-radius: 50%; display: block; }
.me-pic img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; object-fit: cover; background: #EDE4EC; }
.me-ring { --p: 0; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#FF4D6D, #FF9A3C calc(var(--p) * 1%), rgba(42,24,56,.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.me-pct { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--grad); color: #fff; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(255,77,109,.9); }
.me-hero .label { margin-bottom: 8px; }
.me-hero .label::before { display: none; }
.me-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin: 0 0 10px; }
.me-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.me-meta span { font-size: .82rem; padding: 6px 11px; border-radius: 999px; background: rgba(42,24,56,.08); color: var(--ink); }
.me-meta .ok { color: #3DDC97; background: rgba(61,220,151,.1); }
.me-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.me-actions .btn { flex: 1 1 180px; }
.me-next { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; margin-top: 14px; padding: 16px 18px; border-radius: 20px; border: 1px solid rgba(255,154,60,.35); background: rgba(255,154,60,.08); text-decoration: none; color: var(--ink) !important; font-size: .92rem; }
.me-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(42,24,56,.1); overflow: hidden; }
.me-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.me-next .arr { color: var(--orange); font-size: 1.2rem; }
.me-nav { position: sticky; top: 64px; z-index: 30; display: flex; gap: 6px; margin: 18px -16px 0; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, var(--bg) 75%, transparent); }
.me-nav::-webkit-scrollbar { display: none; }
.me-nav a { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--stroke); text-decoration: none; color: var(--mute) !important; font-size: .88rem; font-weight: 500; transition: all .2s; }
.me-nav a.on { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.me .card { scroll-margin-top: 130px; margin-top: 14px; padding: clamp(20px, 3.4vw, 28px); border-radius: 26px; background: var(--bg-2); border: 1px solid var(--stroke); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.card-h h2 { margin: 0; font-size: clamp(1.35rem, 3.6vw, 1.7rem); }
.count { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(42,24,56,.07); color: var(--mute); }
.hint { color: var(--mute); font-size: .9rem; margin: 0 0 16px; line-height: 1.5; }
.field-t { font-weight: 600; font-size: .9rem; margin: 18px 0 10px; }

/* Grille photos type appli */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-grid .ph { aspect-ratio: 3 / 4; border-radius: 18px; }
.ph-grid .ph.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ph-grid .ph img { transition: transform .5s var(--ease); }
.ph-grid .ph:hover img { transform: scale(1.03); }
.ph.empty-slot { display: grid; place-items: center; border: 2px dashed rgba(42,24,56,.08); background: transparent; color: rgba(42,24,56,.15); font-size: 1.6rem; }
.ph.add { background: rgba(255,77,109,.06); }
.ph.add label { border-color: rgba(255,77,109,.45); text-align: center; padding: 8px; }
.ph.add .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.5rem; }
.ph.big .ph-actions button { width: 36px; height: 36px; }
.ph-actions button { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Présentation + questionnaire */
.bio-box { position: relative; }
.me .bio-box textarea { width: 100%; min-height: 120px; padding: 14px 16px 30px; border-radius: 18px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.04); color: var(--ink); font: 500 1rem/1.55 var(--sans); resize: vertical; }
.me .bio-box textarea:focus { outline: none; border-color: var(--pink); }
.bio-box small { position: absolute; right: 14px; bottom: 10px; font-size: .75rem; color: var(--dim); }
.qlist { border-top: 1px solid var(--stroke); }
.qrow { border-bottom: 1px solid var(--stroke); }
.qrow summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 2px; cursor: pointer; }
.qrow summary::-webkit-details-marker { display: none; }
.qq { font-weight: 600; font-size: .95rem; }
.qa { font-size: .85rem; color: var(--orange); text-align: right; display: flex; align-items: center; gap: 8px; }
.qa::after { content: "›"; font-size: 1.2rem; color: var(--dim); transition: transform .2s; }
.qrow[open] .qa::after { transform: rotate(90deg); }
.qa.todo { color: var(--dim); }
.qrow .pills { padding: 0 0 16px; }
.savebar { position: sticky; bottom: 16px; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(42,24,56,.96); border: 1px solid rgba(255,77,109,.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); font-size: .88rem; color: var(--mute); }
.savebar .btn { margin: 0; padding: 12px 22px; }
form.dirty .savebar { transform: none; opacity: 1; pointer-events: auto; }

/* Réglages façon appli */
.settings { list-style: none; margin: 4px 0 0; padding: 0; }
.settings li { border-bottom: 1px solid var(--stroke); }
.settings li:last-child { border-bottom: 0; }
.settings a, .settings summary, .settings button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-decoration: none; color: var(--ink) !important; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; list-style: none; }
.settings summary::-webkit-details-marker { display: none; }
.si { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(42,24,56,.06); font-size: 1.05rem; }
.settings b { display: block; font-weight: 600; font-size: .95rem; }
.settings small { display: block; color: var(--mute); font-size: .82rem; margin-top: 1px; }
.settings span:nth-child(2) { flex: 1; min-width: 0; }
.go { color: var(--dim); font-size: 1.3rem; transition: transform .2s; }
.settings details[open] .go { transform: rotate(90deg); }
.set-form { padding: 4px 0 18px 54px; }
.set-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 12px; }
.set-form input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--stroke); background: rgba(42,24,56,.04); color: var(--ink); font: 500 1rem var(--sans); }
.settings .share { margin: 0 0 16px 54px; }
.danger-row b { color: #FF7A7F; }
.preview-note { margin: 0 auto 14px; max-width: 480px; padding: 12px 16px; border-radius: 16px; background: rgba(255,154,60,.1); border: 1px solid rgba(255,154,60,.3); font-size: .9rem; }
@media (max-width: 720px) {
  .me-nav { top: 62px; }
  .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .set-form, .settings .share { padding-left: 0; margin-left: 0; }
  .me-id { align-items: flex-start; }
  .crit-edit { display: none; }
}
@media (max-width: 720px) {
  .me-id { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .me-meta { justify-content: center; }
  .me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .me-actions .btn { padding: 12px 10px; font-size: .85rem; }
  .me-actions .btn:only-child { grid-column: span 2; }
}
.savebar { position: fixed; left: 50%; bottom: 20px; width: min(520px, calc(100% - 32px)); margin: 0; transform: translate(-50%, 20px); }
form.dirty .savebar { transform: translate(-50%, 0); }
.qa { max-width: 55%; }
.me-nav a { padding: 8px 13px; font-size: .84rem; }
@media (max-width: 720px) { .savebar { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* v6 — Le café de 10 minutes */
.coffee { display: flex; align-items: center; gap: 12px; margin: 10px 16px 0; padding: 10px 10px 10px 14px; border-radius: 18px; border: 1px solid rgba(255,154,60,.3); background: linear-gradient(110deg, rgba(255,77,109,.1), rgba(255,154,60,.08)); }
.coffee.ready { border-color: rgba(61,220,151,.35); background: linear-gradient(110deg, rgba(61,220,151,.1), rgba(255,154,60,.06)); }
.cf-txt { flex: 1; min-width: 0; }
.cf-txt b { display: block; font-size: .9rem; font-weight: 600; }
.cf-txt small { display: block; font-size: .78rem; color: var(--mute); line-height: 1.35; }
.cf-btns { display: flex; gap: 8px; }
.cf-go, .cf-call { flex: none; border: 0; cursor: pointer; font: 600 .85rem var(--sans); color: #fff; background: var(--grad); padding: 10px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(255,77,109,.9); }
.cf-call { background: rgba(42,24,56,.1); box-shadow: none; padding: 10px 12px; }
.cf-call.vid { background: #22B573; }
.cf-link { border: 0; background: none; color: var(--mute); font: 500 .82rem var(--sans); cursor: pointer; text-decoration: underline; }
.ring-in { position: fixed; z-index: 90; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 24px;
  background: rgba(42,24,56,.97); border: 1px solid rgba(42,24,56,.14); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px -16px rgba(0,0,0,.9); animation: pop .4s var(--ease); }
.ring-in[hidden] { display: none; }
.ring-in img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ring-in > span { flex: 1; min-width: 0; }
.ring-in b { display: block; }
.ring-in small { color: var(--mute); font-size: .82rem; }
.r-see { border: 0; background: none; color: var(--mute); font: 500 .82rem var(--sans); cursor: pointer; padding: 8px; }
.r-ok { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #22B573; text-decoration: none; font-size: 1.3rem; animation: ring 1.6s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34,181,115,.6); } 70% { box-shadow: 0 0 0 16px rgba(34,181,115,0); } 100% { box-shadow: 0 0 0 0 rgba(34,181,115,0); } }
@media (max-width: 720px) { .conv { height: calc(100svh - 64px - 70px); } }

/* v8 — Découvrir façon appli (cartes à glisser) */
.swipe-page .app-foot { display: none; }
.swipe { max-width: 480px; padding: 12px 14px 0; }
.sw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sw-title b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.sw-title span { font-size: .82rem; color: var(--mute); }
.sw-filter { flex: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(42,24,56,.05); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.sw-filter svg { width: 22px; height: 22px; }
.deck { position: relative; height: min(calc(100svh - 64px - 74px - 62px - 104px), 660px); min-height: 380px; }
.swc { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: #EDE4EC; box-shadow: 0 30px 70px -30px rgba(0,0,0,.95); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; }
.swc:not(:last-child) { transform: scale(.95) translateY(14px); filter: brightness(.7); }
.swc:last-child { transition: transform .3s var(--ease), filter .3s; }
.swc-ph, .swc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.swc-ph img { object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none; }
.swc-ph img.on { opacity: 1; }
.swc-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0, transparent 16%, transparent 50%, rgba(8,5,12,.95) 100%); }
.swc .pc-bars { z-index: 3; }
.stamp { position: absolute; z-index: 4; top: 54px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font: 800 1.9rem/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; opacity: 0; pointer-events: none; }
.stamp.like { left: 22px; color: #3DDC97; border-color: #3DDC97; transform: rotate(-16deg); }
.stamp.nope { right: 22px; color: #FF5A6E; border-color: #FF5A6E; transform: rotate(16deg); }
.swc.is-like .stamp.like, .swc.is-nope .stamp.nope { opacity: 1 !important; }
.swc-info { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 20px 64px 20px 20px; color: #fff; }
.swc-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.swc-name { margin: 0; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.swc-name span { font-weight: 400; }
.swc-meta { margin: 6px 0 0; font-size: .92rem; color: rgba(255,255,255,.85); }
.swc-why { margin: 10px 0 0; font-size: .86rem; line-height: 1.4; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.swc-more { position: absolute; right: 16px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.swc-detail { position: absolute; z-index: 5; inset: 0; padding: 22px 20px 30px; overflow-y: auto; background: #FFFFFF; transform: translateY(100%); transition: transform .4s var(--ease); cursor: auto; touch-action: pan-y; user-select: text; -webkit-user-select: text; }
.swc.open .swc-detail { transform: none; }
.swc-detail .swc-name { font-size: 1.8rem; }
.swc-detail .swc-meta { color: var(--mute); margin-bottom: 16px; }
.swc-detail .why { background: rgba(255,154,60,.1); border-color: rgba(255,154,60,.25); color: var(--ink); }
.swc-close { position: sticky; top: 0; float: right; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(42,24,56,.1); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.sw-actions { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 16px 0 8px; }
.sw-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.7rem; transition: transform .2s var(--ease); background: #FFFFFF; box-shadow: 0 12px 30px -12px rgba(0,0,0,.9), inset 0 0 0 1px rgba(42,24,56,.08); }
.sw-btn:active { transform: scale(.88); }
.sw-btn.nope { color: #FF5A6E; }
.sw-btn.like { color: #fff; background: var(--grad); box-shadow: 0 16px 36px -12px rgba(255,77,109,.9); font-size: 1.9rem; }
.sw-btn.info { width: 48px; height: 48px; font-size: 1.1rem; color: var(--mute); }
.done .deck, .done .sw-actions { display: none; }

/* Écran d’attente « radar » */
.radar { text-align: center; padding: 30px 10px 20px; }
.radar.later { display: none; }
.radar-ph { position: relative; width: 120px; height: 120px; margin: 40px auto 34px; }
.radar-ph img { position: relative; z-index: 2; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #241a30; }
.radar-ph i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,77,109,.7); animation: radar 3s ease-out infinite; }
.radar-ph i:nth-child(2) { animation-delay: 1s; }
.radar-ph i:nth-child(3) { animation-delay: 2s; }
@keyframes radar { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.radar h2 { font-size: 2rem; margin-bottom: 10px; }
.radar p { color: var(--mute); max-width: 340px; margin: 0 auto 22px; }
.radar-btns { display: grid; gap: 10px; max-width: 300px; margin: 0 auto; }
.radar-link { display: inline-block; margin-top: 18px; font-weight: 600; }

/* « C’est un match ! » */
.its-match { position: fixed; z-index: 95; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px 24px; text-align: center;
  background: radial-gradient(80% 60% at 50% 35%, rgba(255,77,109,.45), transparent 70%), rgba(251,246,241,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: pop .5s var(--ease); }
.its-match[hidden] { display: none; }
.im-t { margin: 0; font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.im-s { margin: 0 0 18px; color: var(--mute); }
.im-ph { display: flex; margin-bottom: 26px; }
.im-ph img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); }
.im-ph img + img { margin-left: -24px; }
.its-match .btn { max-width: 320px; }
@media (min-width: 721px) { .deck { height: min(calc(100svh - 64px - 62px - 110px), 660px); } }
.swc-why { padding: 0 4px; border: 8px solid transparent; }
.radar-ph { margin-bottom: 48px; }

/* v10 — Likes reçus */
.likes h1 { font-size: clamp(2rem, 6vw, 3rem); }
.like-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
@media (min-width: 721px) { .like-grid { grid-template-columns: repeat(3, 1fr); } }
.lk { position: relative; border-radius: 22px; overflow: hidden; background: #EDE4EC; aspect-ratio: 3 / 4.4; box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); animation: pop .5s var(--ease); }
.lk-ph { position: absolute; inset: 0; display: block; color: #fff !important; text-decoration: none; }
.lk-ph img { width: 100%; height: 100%; object-fit: cover; }
.lk-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,5,12,.92) 100%); }
.lk-on { position: absolute; z-index: 2; top: 10px; right: 12px; color: #3DDC97; font-size: .9rem; text-shadow: 0 0 8px rgba(61,220,151,.8); }
.lk-txt { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 66px; }
.lk-txt b { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.lk-txt small { display: block; font-size: .75rem; color: rgba(255,255,255,.75); }
.lk-txt i { display: inline-block; margin-top: 6px; font-style: normal; font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,154,60,.25); color: #FFC08A; }
.lk-act { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk-act button { height: 44px; border-radius: 999px; border: 0; cursor: pointer; font-size: 1.2rem; transition: transform .2s; }
.lk-act button:active { transform: scale(.92); }
.lk-no { background: rgba(255,255,255,.14); color: #FF7A8A; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lk-yes { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,77,109,.9); }
@media (max-width: 720px) { .app:not(.admin) .tabs a { padding: 6px 10px; } }

/* ===================== v11 — Thème clair (crème chaud) ===================== */
body.app {
  --bg: #FBF6F1; --bg-2: #FFFFFF; --card: #FFFFFF;
  --stroke: rgba(42,24,56,.1); --ink: #1F1429; --mute: #675C72; --dim: #9A8FA4; --orange: #E0592A;
  --shadow: 0 1px 2px rgba(42,24,56,.04), 0 14px 34px -20px rgba(42,24,56,.22);
  background: var(--bg); color: var(--ink);
}
body.app.call { --ink: #fff; }
.app .panel, .me .card, .dash-stats a, .empty, .progress-card, .crit-bar, .profile-card, .kpi, .mod, .tbl, .conv-list a:hover { box-shadow: var(--shadow); }
.app .panel, .me .card, .empty, .profile-card { border-color: rgba(42,24,56,.07); }
.app .appbar { border-bottom-color: rgba(42,24,56,.07); }
.app .bub.them { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(42,24,56,.06), 0 6px 18px -12px rgba(42,24,56,.25); }
.app .bub.end { border-color: rgba(255,255,255,.55); }
.app .bub.them.end { border-color: rgba(42,24,56,.25); }
.app .why { background: rgba(224,89,42,.07); border-color: rgba(224,89,42,.2); color: var(--ink); backdrop-filter: none; }
.app .why b { color: var(--ink); }
.app .btn-outline { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(42,24,56,.16); color: var(--ink); }
.app .btn-glass { background: #fff; border-color: rgba(42,24,56,.12); color: var(--ink); backdrop-filter: none; box-shadow: 0 6px 16px -10px rgba(42,24,56,.3); }
.app .flash-ok { background: #EAF8F1; border-color: #BDE8D3; }
.app .flash-err { background: #FDECEC; border-color: #F5C2C3; }
.app .notice { background: #FFF3E8; border-color: #F7D2B4; }
.app .me-next { background: #FFF6EE; border-color: #F7D9C2; }
.app .me-hero { background: radial-gradient(120% 90% at 0% 0%, rgba(255,77,109,.16), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(255,154,60,.16), transparent 60%), #fff; box-shadow: var(--shadow); border-color: rgba(42,24,56,.06); }
.app .me-bg { opacity: .12; }
.app .me-pic img { border: 3px solid #fff; }
.app .me-meta .ok { color: #13915C; background: #E6F6EE; }
.app .me-nav { background: linear-gradient(180deg, var(--bg) 75%, transparent); }
.app .me-nav a { background: #fff; }
.app .me-nav a.on { background: var(--ink); color: #fff !important; }
.app .coffee { background: linear-gradient(110deg, #FFF0F2, #FFF5EA); border-color: #F8D3C4; }
.app .coffee.ready { background: linear-gradient(110deg, #EAF8F1, #FFF5EA); border-color: #BDE8D3; }
.app .chips span, .app .pills span { background: #fff; }
.app .answers span { background: #F4EDF2; color: var(--ink); }
.app .settings li { border-color: rgba(42,24,56,.07); }
.app .si { background: #F6EFF3; }
.app .sw-btn { background: #fff; box-shadow: 0 12px 28px -12px rgba(42,24,56,.35), inset 0 0 0 1px rgba(42,24,56,.06); }
.app .sw-btn.like { background: var(--grad); box-shadow: 0 16px 36px -12px rgba(255,77,109,.75); }
.app .swc, .app .lk { box-shadow: 0 30px 60px -30px rgba(42,24,56,.55); }
.app .swc-detail .why { color: var(--ink); }
.app .radar-ph img { border-color: #fff; box-shadow: 0 16px 36px -14px rgba(42,24,56,.5); }
.app .ring-in, .app .savebar, .app .sheet-in, .app .conv-menu .menu { box-shadow: 0 24px 60px -20px rgba(42,24,56,.45); }
.app .its-match { background: radial-gradient(80% 60% at 50% 35%, rgba(255,77,109,.22), transparent 70%), rgba(251,246,241,.97); }
.app .im-ph img { border-color: #fff; }
.app .conv-head, .app .conv-input { background: #fff; }
.app .conv-body { background: var(--bg); }
.app .dots span { border-color: rgba(42,24,56,.12); }
.app .ph.empty-slot { color: rgba(42,24,56,.2); border-color: rgba(42,24,56,.12); }
.app .label { color: var(--orange); }
.app .act.pass { background: #fff; }
.app .big-heart svg { filter: drop-shadow(0 12px 26px rgba(255,77,109,.35)); }
.app .app-foot a { color: var(--dim) !important; }

/* Icônes du menu (dessinées) */
.tabs .ti { display: grid; place-items: center; }
.tabs .ti svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.tabs a.on .ti svg { stroke: url(#tabgrad); fill: url(#tabgrad); fill-opacity: .14; transform: scale(1.06); }
.app .tabs a.on { background: transparent; color: var(--ink) !important; font-weight: 600; }
.app .tabs a { color: var(--dim) !important; }
.badge { box-shadow: 0 0 0 2px #fff; }
@media (min-width: 721px) {
  .app .tabs a.on { background: #fff; box-shadow: var(--shadow); }
}
@media (max-width: 720px) {
  .app:not(.admin) .tabs { background: rgba(255,255,255,.94); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-top: 1px solid rgba(42,24,56,.07); box-shadow: 0 -10px 30px -20px rgba(42,24,56,.25); }
  .app:not(.admin) .tabs a { gap: 3px; font-size: .68rem; letter-spacing: .01em; padding: 6px 10px; }
  .app:not(.admin) .tabs a.on::before { content: ""; position: absolute; top: -8px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .tabs .ti svg { width: 24px; height: 24px; }
  .badge { top: 0; right: 6px; }
}
html:has(body.app:not(.call)) { background: #FBF6F1; }
.app .form { background: #fff; border: 1px solid rgba(42,24,56,.07); box-shadow: 0 1px 2px rgba(42,24,56,.04), 0 24px 50px -30px rgba(42,24,56,.35); }

/* v12 — finitions thème clair */
.app .label { gap: 0; margin-bottom: 10px; font-size: .74rem; letter-spacing: .14em; }
.app .label::before { display: none; }
.app .logo { gap: 10px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.055em; }
.app .logo svg { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(255,77,109,.35)); }
.app .appbar { padding-top: 14px; padding-bottom: 14px; }
.app .page > h1 { margin-bottom: 18px; }
.app .page { padding-top: clamp(22px, 4vw, 44px); }
@media (max-width: 720px) {
  .app:not(.auth) .app-foot { display: none; }
  .app .logo { font-size: 1.6rem; }
  .app .logo svg { width: 36px; height: 36px; }
  .app .page > h1 { font-size: 2.3rem; }
  .app .empty { margin-top: 18px; padding: 34px 22px; }
  .app .main-pad { padding-bottom: 90px; }
}

/* v13 — likes illimités, petit mot, coup de cœur */
.left-txt { display: inline-flex; align-items: center; gap: 4px; }
.left-txt i { font-style: normal; color: #FF4D6D; }
.left-txt b { color: var(--ink); }
.chip-crush, .chip-likes { display: inline-block; font-size: .75rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(255,77,109,.9); }
.chip-likes { background: rgba(255,255,255,.94); color: #E0335A; box-shadow: none; }
.swc.crush { box-shadow: 0 0 0 3px #FF7452, 0 30px 60px -30px rgba(255,77,109,.7); }
.hint-like { font-size: .82rem; color: var(--dim); margin: 16px 0 6px; }
.lk-item { position: relative; margin: 12px 0 0; border-radius: 18px; overflow: hidden; }
.lk-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lk-text, .lk-q { padding: 16px 64px 16px 18px; background: #F7F1F4; }
.lk-item small { display: block; font-size: .75rem; font-weight: 600; color: var(--dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.lk-item p { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.lk-text p { font-weight: 500; font-size: .98rem; }
.heart-on { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.2rem; color: #FF4D6D; background: #fff; box-shadow: 0 8px 20px -8px rgba(42,24,56,.45); transition: transform .2s; }
.lk-text .heart-on, .lk-q .heart-on { top: 50%; bottom: auto; transform: translateY(-50%); }
.heart-on:active { transform: scale(.88); }
.lk-text .heart-on:active, .lk-q .heart-on:active { transform: translateY(-50%) scale(.88); }
.note-prev { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; font-size: .92rem; color: var(--mute); }
.note-prev img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.note-prev b { color: var(--ink); }
#note-text { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--stroke); background: #FBF6F1; color: var(--ink); font: 500 1rem/1.5 var(--sans); resize: none; }
#note-text:focus { outline: none; border-color: var(--pink); }
#limit .big-heart svg { margin-bottom: 10px; }
#limit h2 { margin-bottom: 8px; }
#limit .btn { margin: 18px 0 6px; }
.lk-note { position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .78rem; line-height: 1.35; box-shadow: 0 8px 18px -10px rgba(42,24,56,.5); }
.lk-note small { display: block; color: #E0335A; font-weight: 700; font-size: .7rem; margin-bottom: 2px; }
.deck { height: min(calc(100svh - 330px - env(safe-area-inset-bottom)), 660px); }
@media (min-width: 721px) { .deck { height: min(calc(100svh - 280px), 660px); } }

/* v15 — Elles écrivent en premier, 48 h, lieux, vérification selfie */
.hello-bar { margin: 0 16px 8px; padding: 10px 14px; border-radius: 14px; font-size: .84rem; color: var(--mute); background: #FFF6EE; border: 1px solid #F7D9C2; text-align: center; }
.hello-bar b { color: var(--ink); }
.fresh-t { font-size: .7rem; color: var(--orange); font-weight: 600; }
.chip-ver { display: inline-block; font-size: .75rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: #1D9BF0; color: #fff; }
.pc-overlay .chip-ver { margin-bottom: 8px; }
.me-meta .verified { background: #E6F3FE; color: #1478C7; }
.get-verified { font-size: .82rem; padding: 6px 11px; border-radius: 999px; background: #E6F3FE; color: #1478C7 !important; text-decoration: none; font-weight: 600; }
.places { display: grid; gap: 10px; margin-bottom: 14px; }
.place-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.place-row select, .place-row input { width: 100%; padding: 12px 12px; border-radius: 14px; border: 1.5px solid var(--stroke); background: #fff; color: var(--ink); font: 500 .92rem var(--sans); }
.place-row input:focus, .place-row select:focus { outline: none; border-color: var(--pink); }
@media (max-width: 420px) { .place-row { grid-template-columns: 1fr; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--stroke); } }
.toggles { display: grid; }
.tg { display: flex; align-items: center; gap: 14px; padding: 14px 2px; cursor: pointer; border-bottom: 1px solid rgba(42,24,56,.07); margin: 0 !important; }
.tg:last-child { border-bottom: 0; }
.tg > span:nth-child(2) { flex: 1; min-width: 0; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { flex: none; width: 48px; height: 28px; border-radius: 14px; background: #E4DCE3; position: relative; transition: background .25s; }
.tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(42,24,56,.3); transition: transform .25s var(--ease); }
.tg input:checked + i { background: var(--grad); }
.tg input:checked + i::after { transform: translateX(20px); }
.tg input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.lk-places ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.lk-places { padding: 16px 18px; background: #F7F1F4; }
.lk-places li.common { color: var(--ink); }
.lk-places li em { font-style: normal; color: #E0335A; font-weight: 700; }
.verif h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.pose-card { display: flex; align-items: center; gap: 16px; margin: 22px 0 14px; padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.pose-emoji { font-size: 3rem; line-height: 1; }
.pose-card small { display: block; color: var(--dim); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.pose-card b { font-size: 1.1rem; }
.verif-tips { margin: 0 0 22px; padding-left: 20px; color: var(--mute); }
.selfie-btn { position: relative; cursor: pointer; }
.selfie-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vbadge { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: #1D9BF0; box-shadow: 0 16px 36px -14px rgba(29,155,240,.8); }
.vbadge.wait { background: #FFF3E8; box-shadow: none; }
.selfie-cmp { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.selfie-cmp figure { margin: 0; width: 180px; }
.selfie-cmp img { width: 180px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.selfie-cmp figcaption { font-size: .8rem; color: var(--mute); text-align: center; }
.mod-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link { display: block; width: fit-content; }

/* v17 — géolocalisation */
.swc-crossed { margin: 6px 0 0; display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #E0335A; }
.geo-banner { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 40px 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: .85rem; color: var(--mute); }
.geo-banner b { color: var(--ink); }
.geo-banner .btn { flex: none; margin: 0; padding: 9px 14px; }
.geo-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer; }
.geo-hint { margin-top: 8px; }
.link { background: none; border: 0; padding: 0; color: var(--orange); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.swipe-page .deck { height: min(calc(100svh - 330px - env(safe-area-inset-bottom)), 660px); }
.geo-banner + .deck { height: min(calc(100svh - 400px - env(safe-area-inset-bottom)), 640px); }
