:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0a0614;
  --card: #120c1c;
  --text: #f4f1ff;
  --muted: #b7a6e8;
  --line: rgba(144, 96, 240, 0.35);
  --violet: #9060f0;
  --indigo: #5030e0;
  --glow: 0 0 24px rgba(128, 96, 240, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(80, 48, 224, 0.45), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 280px);
  color: var(--text);
  line-height: 1.5;
}
a { color: #d8c8ff; }
img { max-width: 100%; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.session-who { font-size: 0.85rem; opacity: 0.85; white-space: nowrap; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: inherit; padding: 0.25rem; cursor: pointer; line-height: 0; }
.complete { margin: 0.8rem 0 1rem; }
.complete-bar { height: 0.55rem; background: rgba(0, 0, 0, 0.12); border-radius: 999px; overflow: hidden; }
.complete-bar span { display: block; height: 100%; background: #5b2c83; }
.complete-list { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.birth-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; border: 0; margin: 0 0 0.8rem; padding: 0; }
.birth-fields legend { grid-column: 1 / -1; padding: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand img, .hero img {
  border-radius: 50%;
  box-shadow: var(--glow);
  background: #000;
}
.brand { min-width: 0; }
.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex: none;
  position: relative;
}
.bell { margin-left: auto; text-decoration: none; }
.bell .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.15rem;
  line-height: 1.15rem;
  padding: 0 0.28rem;
}
.main-menu {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
  background: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 4.5rem);
  max-height: calc(100dvh - 4.5rem);
  overflow: auto;
}
.main-menu a {
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  font-weight: 700;
}
.main-menu a[aria-current="page"] {
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  color: #fff;
}
.langs { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.langs a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
}
main { padding: 1rem; max-width: 920px; margin: 0 auto 2rem; }
.hero, .card, .profile-card {
  background: linear-gradient(180deg, rgba(144, 96, 240, 0.12), rgba(10, 6, 20, 0.92));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.1rem;
  margin: 0 0 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero { text-align: center; padding: 2.2rem 1.2rem; }
.hero h1, .card h1 { margin: 0.4rem 0; font-size: 1.8rem; }
h1, h2 { letter-spacing: 0.02em; }
.btn, button, input[type="submit"] {
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.ghost, button.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger, button.danger { background: #7f1d3a; }
button:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tinder-card { transition: transform 0.18s ease, opacity 0.18s ease; }
.tinder-card.leaving { transform: translateX(70%); opacity: 0; pointer-events: none; }
.discover-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 1rem; text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
label { display: block; margin: 0.55rem 0; font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #07040f;
  color: white;
  font: inherit;
}
input[type="checkbox"], input[type="radio"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  margin: 0.15rem 0 0 !important;
  padding: 0;
  flex: 0 0 1.15rem !important;
  accent-color: #b79af8;
}
.filters { display: grid; gap: 0.4rem; }
.check, .chip {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100%;
  margin: 0;
  text-align: left;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  background: #07040f;
}
.chip span, .check span { flex: 1; min-width: 0; }
.filters { display: grid; gap: 0.4rem; }
.deck { display: grid; gap: 1rem; }
.profile-card img, .photos img, figure img {
  width: 100%;
  border-radius: 16px;
  max-height: 70vh;
  object-fit: contain;
  background: #07040f;
}
.photos, .staff-list { display: grid; gap: 0.8rem; }
.ph {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  background: #160f24;
  border-radius: 16px;
  color: var(--muted);
}
.empty, .muted { color: var(--muted); }
.warn, .error {
  color: #ffd0dc;
  background: rgba(127, 29, 58, 0.35);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.note { color: var(--muted); }
#log p {
  background: #1a1230;
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  margin: 0.35rem 0;
}
.mine { margin-left: 18%; background: linear-gradient(90deg, rgba(80, 48, 224, 0.55), rgba(144, 96, 240, 0.45)); }
#log .msg { display: flex; gap: 0.5rem; align-items: flex-end; margin: 0.35rem 0; }
#log .msg .avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: #241a45; }
#log .msg .bubble { max-width: 85%; min-width: 0; }
#log .msg .bubble .body { margin: 0; }
#log .msg.mine { justify-content: flex-end; margin-left: 0; background: transparent; }
#log .msg.mine .bubble .body { background: linear-gradient(90deg, rgba(80, 48, 224, 0.55), rgba(144, 96, 240, 0.45)); }
#log .msg .shared-photo img { max-width: 220px; border-radius: 12px; margin-top: 0.4rem; display: block; }
#log .msg .contact-note { background: transparent; padding: 0; font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0 0; }
#log .msg .read { font-size: 0.75rem; color: var(--muted); }
#log .msg .who { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.15rem; }
.inbox-item { display: flex; align-items: center; gap: 0.75rem; color: inherit; }
.inbox-item .avatar, .inbox-item .avatar-fallback { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: #241a45; }
.inbox-who { display: flex; align-items: center; gap: 0.65rem; min-width: 8rem; max-width: 46%; text-decoration: none; color: inherit; font-weight: 700; }
.inbox-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item .inbox-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.inbox-item .inbox-top { display: flex; justify-content: flex-end; gap: 0.6rem; align-items: baseline; }
.inbox-item time { flex: none; color: var(--muted); font-size: 0.75rem; }
.inbox-item .inbox-preview { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.unread { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.inbox-item.unread .inbox-preview { color: var(--text); }
#thread h1 a, .inbox-who, article.card h2 a { color: inherit; }
.biz-logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: #241a45; }
.biz-card a { color: inherit; text-decoration: none; display: flex; gap: 0.7rem; align-items: center; }
.install { position: fixed; right: 1rem; bottom: 1rem; z-index: 6; }
.icon-btn:focus, .main-menu a:focus, .btn:focus, button:focus, a:focus { outline: 2px solid var(--violet); outline-offset: 2px; }
.staff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.staff-row strong { margin-right: 0.4rem; }
p { overflow-wrap: anywhere; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; margin: 0.8rem 0 1rem; }
.kpis article { border: 1px solid var(--line); border-radius: 16px; padding: 0.7rem; background: #07040f; }
.kpis strong { display: block; font-size: 1.4rem; }
.kpis span { color: var(--muted); font-size: 0.85rem; }
.ptabs { display: flex; gap: 0.35rem; overflow: auto; margin: 0.8rem 0 1rem; padding-bottom: 0.2rem; }
.ptab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 40px;
  white-space: nowrap;
}
.ptab.on { background: linear-gradient(90deg, var(--indigo), var(--violet)); border-color: transparent; }
.ppanel fieldset {
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.8rem 0.85rem;
}
.ppanel legend { padding: 0 0.35rem; font-weight: 700; }
.chips, .checks, .photo-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.staff-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
@media (min-width: 720px) {
  .chips { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .deck { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  main { margin-bottom: 2rem; }
}
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.85rem 0.45rem;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: white;
}
.cat img, .cat .mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
}
.cat .mark {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--indigo), var(--violet));
  font-size: 0.72rem;
  font-weight: 700;
}
.cat.on .mark, .cat.on img { box-shadow: 0 0 0 2px #fff; }
.cat span { display: block; margin-top: 0.35rem; font-size: 0.72rem; line-height: 1.25; overflow-wrap: anywhere; }
.checks .chip img, label.chip img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
button.on { box-shadow: inset 0 0 0 2px #fff; }
.badge {
  display: inline-block;
  min-width: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #7f1d3a;
  color: white;
  font-size: 0.75rem;
  text-align: center;
}
.plans { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 0.8rem 0; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem; background: #07040f; }
.plan .price { font-size: 1.6rem; font-weight: 700; margin: 0.2rem 0; }
.steps { margin: 0.6rem 0 1rem; padding-left: 1.2rem; }
.city-line { font-weight: 700; }
.frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #07040f;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
}
.frame img, .frame video, .frame .ph {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}
.frame video { object-fit: contain; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.gallery figure { margin: 0; }
.field { margin: 0.55rem 0; }
.city-results { position: relative; z-index: 4; display: grid; gap: 0.3rem; margin-top: 0.35rem; }
.city-results button { justify-content: flex-start; background: #120c1c; border: 1px solid var(--line); text-align: left; }
.site-foot { padding: 0.6rem 1rem 1.25rem; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  justify-content: center;
  padding: 0.55rem 0 0;
  font-size: 0.82rem;
}
.legal-body { white-space: pre-wrap; }
.legal-editor { border-top: 1px solid var(--line); padding: 0.55rem 0; }
.legal-editor summary { cursor: pointer; font-weight: 700; min-height: 44px; }
.cropper[hidden] { display: none !important; }
.cropper:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.cropper-card {
  width: min(420px, 100%);
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75rem;
}
.crop-body {
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.crop-actions {
  flex: none;
  padding-top: 0.65rem;
  background: var(--card);
}
.crop-actions .btn { flex: 1 1 9rem; }
.crop-stage { display: grid; place-items: center; }
#crop-canvas, #mask-canvas {
  width: min(100%, 260px);
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: min(320px, 38vh);
  max-height: min(320px, 38dvh);
  border-radius: 12px;
  background: #000;
  touch-action: none;
  display: block;
}
[hidden] { display: none !important; }
.block-modal { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.72); display: grid; place-items: end center; padding: 1rem; }
.block-card { width: min(520px, 100%); background: #120c1c; border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 1.1rem; box-shadow: var(--glow); }
.block-card h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.block-card p { margin: 0 0 1rem; }
.block-card select, .block-card textarea { width: 100%; margin-top: 0.3rem; }
@media (min-width: 800px) {
  .block-modal { place-items: center; }
  .block-card { border-radius: 18px; }
}
body[data-theme="nuit"] {
  --bg: #050505;
  --bg-2: #111111;
  --card: #171717;
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --line: rgba(255, 255, 255, 0.16);
  --violet: #e8e8e8;
  --indigo: #2c2c2c;
  --glow: none;
}
body[data-theme="clair"] {
  --bg: #f6f3fb;
  --bg-2: #efe8ff;
  --card: #ffffff;
  --text: #1b1230;
  --muted: #5d4e78;
  --line: rgba(80, 48, 224, 0.28);
  --violet: #6a45d6;
  --indigo: #5030e0;
  --glow: none;
  background: #f6f3fb;
}
body[data-theme="clair"] input,
body[data-theme="clair"] select,
body[data-theme="clair"] textarea,
body[data-theme="clair"] .g-main input,
body[data-theme="clair"] .g-main select,
body[data-theme="clair"] .g-main textarea {
  background: #fff;
  color: #1b1230;
}
body[data-theme="clair"] .g-side { background: #fff; color: #1b1230; }
body[data-theme="clair"] .g-side a,
body[data-theme="clair"] .g-brand { color: #1b1230; }
body[data-theme="nuit"] .g-side { background: #0a0a0a; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }
.look-grid label { display: grid; gap: 0.35rem; }
.look-grid img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; background: #111; }
.frame video { width: 100%; height: 100%; max-width: 100%; background: #000; }
.status-badge {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #5b2fd6;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.notice-card { margin-bottom: 0.8rem; }
.notice-full { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.3rem 0; }
.couple-line { font-weight: 700; }
.attach { border: 0; margin: 0.6rem 0; padding: 0; }
.attach-grid { display: flex; gap: 0.55rem; overflow-x: auto; padding-bottom: 0.3rem; }
.attach-item { position: relative; width: 88px; flex: none; display: grid; gap: 0.25rem; font-size: 0.75rem; }
.attach-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; background: #07040f; }
.attach-item input { position: absolute; opacity: 0; }
.attach-item:has(input:checked) img,
.attach-item:has(input:checked) span { outline: 3px solid var(--violet); outline-offset: 2px; }
.attach-item.none { place-items: center; min-height: 88px; border: 1px dashed var(--line); border-radius: 14px; }
.biz-map{width:100%;height:240px;border:0;border-radius:12px;margin-top:8px}

/* === Page profil style Tinder === */
.profile-hero-card { max-width: 640px; margin: 0 auto; }
.profile-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 70vh; background: #07040f; }
.profile-hero img, .profile-hero video { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(0,0,0,0.78)); color: #fff; }
.profile-hero-overlay h1 { margin: 0; font-size: 1.9rem; color: #fff; }
.profile-hero-overlay .city-line { margin: 0.25rem 0 0; color: rgba(255,255,255,0.88); font-size: 1rem; }
.badges-big { margin: 0.9rem 0 0.2rem; }
.status-badge.big { font-size: 0.95rem; padding: 0.38rem 0.95rem; margin: 0 0.45rem 0.45rem 0; box-shadow: 0 2px 10px rgba(91,47,214,0.35); }
.profile-section { margin: 1.4rem 0; }
.profile-section h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; margin: 0 0 0.7rem; }
.bio-text { font-size: 1.05rem; line-height: 1.65; margin: 0; white-space: pre-line; }
.kind-line { font-weight: 600; }
.chip-group { margin: 0 0 0.8rem; }
.chip-label { display: block; font-size: 0.82rem; opacity: 0.65; margin-bottom: 0.3rem; }
.chip { display: inline-block; margin: 0 0.35rem 0.35rem 0; padding: 0.28rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); font-size: 0.9rem; }
.chip-intimate { border-color: #8a5cf6; background: rgba(138,92,246,0.12); }
.frame-wide { aspect-ratio: 4 / 3; margin: 1.2rem 0; }
.private-lock-card { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem 1.2rem; background: rgba(255,255,255,0.03); }
.lock-icon { font-size: 2.6rem; }
.lock-count { font-size: 1.15rem; font-weight: 700; margin: 0.6rem 0; }
.profile-actions { margin-top: 1.4rem; gap: 0.7rem; }
.profile-actions .btn { flex: 1; padding: 0.85rem; font-size: 1.02rem; }

/* === Super like === */
.superlike-btn { background: linear-gradient(135deg, #f6c453, #f28c38); border: none; color: #3a2200; font-weight: 800; }
.superlike-btn:disabled, .superlike-btn.on { opacity: 0.75; }
.superlike-btn::before { content: "⭐ "; }

/* === Modal match === */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,0.62); padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-card { background: var(--card, #1a1030); border-radius: 22px; padding: 2rem 1.6rem; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 18px 60px rgba(0,0,0,0.5); }
.match-card h2 { font-size: 1.7rem; margin: 0 0 0.6rem; }
.match-card .row { margin-top: 1.2rem; }

/* === Upload accordéons === */
.upload-accordion { border: 1px solid var(--line); border-radius: 16px; margin: 0 0 0.8rem; overflow: hidden; background: rgba(255,255,255,0.02); }
.upload-accordion summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.upload-accordion summary::-webkit-details-marker { display: none; }
.upload-accordion summary::after { content: "▾"; margin-left: auto; opacity: 0.6; transition: transform 0.2s; }
.upload-accordion[open] summary::after { transform: rotate(180deg); }
.upload-accordion .media-block { padding: 0 1.1rem 1.1rem; display: grid; gap: 0.7rem; }
.upload-drop { display: grid; gap: 0.5rem; cursor: pointer; }
.upload-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.4rem; border-radius: 14px; border: 2px dashed var(--violet); background: rgba(91,47,214,0.08); font-weight: 700; font-size: 1rem; transition: background 0.2s; }
.upload-drop:hover .upload-btn { background: rgba(91,47,214,0.16); }
.upload-name { font-size: 0.85rem; opacity: 0.7; text-align: center; }
.upload-name:not(:empty)::before { content: "✓ "; color: #4ade80; }

/* === Grille des matchs === */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.match-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.02); }
.match-photo { display: block; aspect-ratio: 1 / 1; background: rgba(255,255,255,0.05); }
.match-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-no-photo { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2rem; opacity: 0.3; }
.match-info { padding: 0.7rem; display: grid; gap: 0.5rem; }
.match-info h2 { margin: 0; font-size: 1rem; }
.match-info .row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.match-info .btn { padding: 0.5rem 0.8rem; font-size: 0.9rem; }

/* === En-tête de conversation === */
.thread-head { display: flex; align-items: center; gap: 0.8rem; }
.thread-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--violet); }

/* === Bulles de matchs (style Tinder) === */
.inbox-section { font-size: 1.05rem; margin: 1.2rem 0 0.6rem; opacity: 0.85; }
.match-bubbles { display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.4rem 0.1rem 0.8rem; }
.match-bubble { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex: 0 0 auto; width: 56px; text-decoration: none; }
.match-bubble img, .bubble-fallback { width: 52px; height: 52px; object-fit: cover; display: block; }
.match-bubble.shape-circle img, .match-bubble.shape-circle .bubble-fallback { border-radius: 50%; border: 2px solid var(--violet); }
.match-bubble.shape-square img, .match-bubble.shape-square .bubble-fallback { border-radius: 10px; border: 2px solid var(--violet); }
.match-bubble.shape-triangle img, .match-bubble.shape-triangle .bubble-fallback { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border: 0; }
.match-bubble.shape-triangle { position: relative; }
.match-bubble.shape-triangle::before { content: ""; position: absolute; top: 0; width: 56px; height: 52px; background: var(--violet); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.match-bubble.shape-triangle img, .match-bubble.shape-triangle .bubble-fallback { position: relative; width: 48px; height: 48px; margin-top: 2px; }
.bubble-fallback { border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 2px solid var(--line); font-size: 1.2rem; }
.bubble-name { font-size: 0.7rem; max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }

/* === Icône caméra barrée (ne rien joindre) === */
.attach-item.none .no-photo-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; border: 2px dashed var(--line); border-radius: 12px; opacity: 0.55; }
.attach-item.none input:checked + .no-photo-icon { border-color: var(--violet); opacity: 1; background: rgba(91,47,214,0.08); }

/* === Popup "C'est un match" style Tinder === */
.tinder-match { text-align: center; padding: 2rem 1.5rem; max-width: 340px; }
.tinder-match-title { font-size: 2rem; font-style: italic; margin: 0 0 0.4rem; background: linear-gradient(135deg, var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tinder-match-sub { opacity: 0.8; margin: 0 0 1.2rem; }
.tinder-match-photos { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.tinder-match-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--violet); background: rgba(255,255,255,0.06); }
.tinder-match-photo img { width: 100%; height: 100%; object-fit: cover; }
.tinder-match-btn { display: block; width: 100%; margin: 0.5rem 0; padding: 0.85rem; border-radius: 12px; font-weight: 700; }

/* (bulles définies plus haut, section style Tinder) */
.nav-logout{background:none;border:0;color:inherit;font:inherit;cursor:pointer;padding:0;margin:0}
