/* VELVT — interface mobile. Polices système, thème sombre, accent corail. */
:root {
	--bg: #120E16;
	--bg-2: #16111A;
	--card: #1C1621;
	--line: #3A3140;
	--line-soft: #2E2634;
	--text: #F3EEF5;
	--muted: #A99DAF;
	--soft: #C9BFCE;
	--accent: #FF6B7A;
	--ok: #3DDC84;
	--ok-text: #7BE3A8;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Space Grotesk", var(--font);
	--safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.px-app { overscroll-behavior-y: contain; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.px-shell { max-width: 720px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(84px + var(--safe-b)); }

/* En-tête */
.px-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--bg); }
.px-logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.px-top-actions { display: flex; gap: 8px; align-items: center; }
.px-icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }

/* Boutons */
.px-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: none; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
.px-btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.px-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.px-btn-block { width: 100%; }
.px-btn[disabled] { opacity: 0.6; }
.px-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; }

/* Filtres */
.px-chips { display: flex; gap: 8px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 66px; z-index: 4; background: var(--bg); }
.px-chips::-webkit-scrollbar { display: none; }
.px-chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.px-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }

/* Bandeau visiteur */
.px-visitor-banner { margin: 0 12px 12px; padding: 14px; border-radius: 14px; background: #2A1C24; border: 1px solid var(--accent); display: flex; gap: 12px; align-items: center; }
.px-visitor-banner p { margin: 0; flex: 1; font-size: 14px; line-height: 1.4; }

/* Grille */
.px-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px 3px 0; }
@media (min-width: 560px) { .px-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.px-tile { position: relative; aspect-ratio: 4 / 5; border: none; padding: 0; background: #2A2230; overflow: hidden; color: var(--text); text-align: left; }
.px-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-tile .px-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.22); }
.px-tile .px-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(10,7,12,0.88)); }
.px-tile .px-name, .px-tile .px-sub { display: block; }
.px-tile .px-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-tile .px-sub { font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-dot { position: absolute; top: 8px; left: 8px; width: 9px; height: 9px; border-radius: 5px; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); }
.px-badge { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 6px; background: var(--accent); color: var(--bg); font-size: 10px; font-weight: 700; }
.px-grid-end { height: 40px; }
.px-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); }
.px-skeleton { aspect-ratio: 4 / 5; background: #1E1823; animation: px-pulse 1.2s ease-in-out infinite alternate; }
@keyframes px-pulse { to { background: #272030; } }

/* Barre du bas */
.px-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 8px 4px calc(14px + var(--safe-b)); border-top: 1px solid #2A2230; background: var(--bg-2); }
.px-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 11px; color: var(--muted); text-decoration: none; }
.px-nav a.is-on { color: var(--accent); }

/* Feuilles (dialogues) */
.px-sheet { width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; padding: 16px 16px calc(20px + var(--safe-b)); border: 1px solid var(--line); border-bottom: none; border-radius: 20px 20px 0 0; background: var(--card); color: var(--text); overflow-y: auto; }
.px-sheet::backdrop { background: rgba(6, 4, 8, 0.7); }
@media (min-width: 600px) { .px-sheet { margin: auto; border-radius: 20px; border-bottom: 1px solid var(--line); } }
.px-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.px-sheet-head h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.px-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); margin-bottom: 14px; }
.px-tabs button { min-height: 40px; border: none; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.px-tabs button.is-on { background: #2A2230; color: var(--text); }

/* Formulaires */
.px-form { display: flex; flex-direction: column; gap: 12px; }
.px-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--soft); }
.px-form input:not([type=checkbox]), .px-form select, .px-form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.px-form fieldset { border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.px-form legend { padding: 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.px-form .px-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: #DDD4E2; }
.px-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.px-form-msg { margin: 0; min-height: 1em; font-size: 14px; color: #FFB4BC; }
.px-form-msg.is-ok { color: var(--ok-text); }

/* Fiche résumée et Mon profil */
.px-profile-photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #2A2230; margin-bottom: 12px; }
.px-profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-profile-meta { margin: 0 0 14px; color: var(--soft); font-size: 14px; }
.px-row { display: flex; gap: 8px; margin-bottom: 12px; }
.px-row .px-btn { flex: 1; }
.px-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.px-toggle small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.px-toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.px-upload { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 8px; }
.px-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.px-steps { margin: 0; padding-left: 20px; line-height: 1.6; color: #DDD4E2; }

/* Message bref */
.px-toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #2A2230; border: 1px solid var(--line); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

/* Pages de texte */
body.px-text { line-height: 1.6; }

/* Ma vignette et mes photos */
.px-tile-me { outline: 2px solid var(--accent); outline-offset: -2px; }
.px-badge-me { left: 6px; right: auto; }
.px-my-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.px-my-photos .px-hint { grid-column: 1 / -1; }
.px-my-photo { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #2A2230; aspect-ratio: 4 / 5; }
.px-my-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-my-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; background: rgba(10,7,12,0.8); }
.px-my-photo.is-pending figcaption { color: #E0A75E; }
.px-my-photo.is-ok figcaption { color: var(--ok-text); }
.px-my-photo.is-refused figcaption { color: #FFB4BC; }
.px-my-photo.is-private figcaption { color: var(--soft); }

/* Bascule Grille / Carte */
.px-views { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.px-views button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 0 10px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.px-views button.is-on { background: #2A2230; color: var(--text); }
@media (max-width: 380px) { .px-views svg { display: none; } }

/* Carte */
.px-map { position: fixed; left: 0; right: 0; top: var(--map-top, 120px); bottom: calc(66px + var(--safe-b)); z-index: 3; background: #EDEDED; overflow: hidden; }
.px-map-pane { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.px-map-pane:active { cursor: grabbing; }
.px-map-tiles, .px-map-markers { position: absolute; inset: 0; transform-origin: 50% 50%; }
.px-map-tiles img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* Carte OpenStreetMap claire passée en thème sombre. Désactivable avec la classe px-map-light. */
/* Style « Cool Grey » : carte claire, grise et épurée (fonds OpenStreetMap passés en niveaux de gris, contraste adouci). */
.px-map:not(.px-map-light) .px-map-tiles img { filter: grayscale(1) brightness(1.1) contrast(0.7); }
.px-pin { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border-radius: 24px; border: 2px solid var(--bg); background: #2A2230; color: rgba(255,255,255,0.5); box-shadow: 0 4px 14px rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; }
.px-pin-face { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.px-pin img { width: 100%; height: 100%; object-fit: cover; }
.px-pin svg { width: 24px; height: 24px; }
.px-pin.is-tonight { border-color: var(--accent); }
.px-pin-dot { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 6px; background: var(--ok); border: 2px solid var(--bg); }
.px-cluster { position: absolute; min-width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0 10px; border-radius: 22px; border: 2px solid var(--accent); background: rgba(42,28,36,0.95); color: var(--text); font-weight: 700; font-size: 15px; }
.px-me-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 9px; background: #5FD0C4; box-shadow: 0 0 0 6px rgba(95,208,196,0.25); pointer-events: none; }
.px-map-status { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 12px; background: rgba(28,22,33,0.92); font-size: 12px; color: var(--soft); white-space: nowrap; pointer-events: none; }
.px-map-controls { position: absolute; right: 12px; top: 50px; display: flex; flex-direction: column; gap: 8px; }
.px-map-controls .px-icon-btn { background: rgba(28,22,33,0.95); }
.px-map-consent { position: absolute; left: 12px; right: 12px; bottom: 34px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--accent); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.px-map-consent p { margin: 0; font-size: 13px; line-height: 1.45; }
.px-map-credits { position: absolute; right: 6px; bottom: 4px; margin: 0; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.75); font-size: 10px; color: #555; }
.px-map-credits a { color: #555; }
body.px-map-open .px-grid, body.px-map-open .px-grid-end, body.px-map-open .px-visitor-banner { display: none; }

/* Fiche profil */
.px-profile-thumbs { display: flex; gap: 6px; margin: -4px 0 12px; overflow-x: auto; }
.px-profile-thumbs button { flex: none; width: 56px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #2A2230; }
.px-profile-thumbs button.is-on { border-color: var(--accent); }
.px-profile-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.px-profile-fiches { margin: -6px 0 12px; font-size: 14px; color: #DDD4E2; }
.px-profile-bio { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #DDD4E2; white-space: pre-line; }
.px-profile-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.px-profile-actions textarea { width: 100%; min-height: 70px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; resize: vertical; }
.px-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #2A1C24; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.px-note.is-ok { border-color: var(--ok); background: #18261E; }

/* Onglet Messages */
body.px-inbox-open .px-grid, body.px-inbox-open .px-grid-end, body.px-inbox-open .px-chips, body.px-inbox-open .px-visitor-banner, body.px-inbox-open .px-views { display: none; }
.px-inbox { padding: 4px 12px 24px; }
.px-inbox-title { margin: 14px 4px 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.px-inbox-list { display: flex; flex-direction: column; gap: 8px; }
.px-inbox-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--card); text-align: left; }
.px-inbox-item.is-request { border-color: var(--accent); background: #2A1C24; flex-wrap: wrap; }
.px-avatar { position: relative; width: 52px; height: 52px; flex: none; border-radius: 14px; overflow: hidden; background: #2A2230; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); }
.px-avatar img { width: 100%; height: 100%; object-fit: cover; }
.px-avatar svg { width: 28px; height: 28px; }
.px-inbox-text { flex: 1; min-width: 0; }
.px-inbox-name { display: block; font-weight: 600; font-size: 15px; }
.px-inbox-last { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-inbox-intro { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: #DDD4E2; font-style: italic; }
.px-inbox-buttons { flex-basis: 100%; display: flex; gap: 8px; }
.px-inbox-buttons .px-btn { flex: 1; min-height: 40px; }
.px-unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.px-inbox-sent { margin: 14px 4px 0; }
.px-nav-msg { position: relative; }
.px-nav-badge { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Conversation */
.px-chat { height: 92vh; display: flex; flex-direction: column; padding-bottom: calc(12px + var(--safe-b)); }
.px-chat:not([open]) { display: none; }
.px-chat-who { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 0; font-family: var(--display); font-size: 20px; font-weight: 700; }
.px-chat-avatar { width: 40px; height: 40px; border-radius: 20px; overflow: hidden; background: #2A2230; display: inline-flex; }
.px-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.px-chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 12px; }
.px-msg { max-width: 80%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #2A2230; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; align-self: flex-start; }
.px-msg.is-mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--bg); }
.px-msg time { display: block; margin-top: 3px; font-size: 10px; opacity: 0.7; }
.px-chat-form { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.px-chat-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; resize: none; }
.px-chat-form .px-btn { width: 44px; padding: 0; border-radius: 22px; }
.px-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.px-pin.is-precise { box-shadow: 0 0 0 3px rgba(95,208,196,0.6), 0 4px 14px rgba(0,0,0,0.5); }

/* Présentation */
.px-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.px-choice { position: relative; display: inline-flex !important; flex-direction: row !important; }
.px-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.px-choice span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13px; cursor: pointer; }
.px-choice input:checked + span { background: #2A1C24; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.px-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.px-fiche-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.px-profile-more { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.px-section-title { margin: 0 0 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.px-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.px-tag { padding: 6px 11px; border-radius: 16px; border: 1px solid var(--line); font-size: 13px; }
.px-tag.is-accent { background: #2A1C24; border-color: transparent; color: var(--accent); font-weight: 500; }
.px-fiche-card { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); font-size: 14px; }
.px-fiche-card strong { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 2px; }
.px-fiches-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }

/* Recherche principale et détails */
.px-seek-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.px-seek-group { display: flex; flex-direction: column; gap: 6px; }
.px-form .px-seek-group label { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: #DDD4E2; }
.px-form .px-seek-group label.is-master { font-weight: 600; color: var(--text); }
.px-seek-group input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.px-readonly { font-size: 13px; color: var(--muted); margin: 0; }
.px-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
.px-dl dt { color: var(--muted); }
.px-dl dd { margin: 0; }
.px-seek-line { margin: 0 0 4px; font-size: 14px; }
.px-seek-line strong { color: var(--accent); font-weight: 600; }

/* Gestion des photos */
.px-photo-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.px-photo-section-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.px-photo-section h3 { margin: 0 0 4px; font-size: 16px; }
.px-photo-section h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.px-photo-section .px-btn-small { flex: none; }
.px-my-photo-actions { position: absolute; top: 6px; right: 6px; left: 6px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.px-my-photo-actions button { min-height: 30px; padding: 0 9px; border-radius: 15px; border: none; background: rgba(18,14,22,0.82); color: var(--text); font-size: 11px; font-weight: 600; }
.px-my-photo-actions button.is-danger { color: #FFB4BC; }
.px-my-photo .px-main-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--bg); font-size: 10px; font-weight: 700; }
.px-my-photo.has-main .px-my-photo-actions { top: 30px; }

.px-link-btn { display: block; margin: -6px 0 10px auto; padding: 4px 0; border: none; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }

/* Album privé dans la conversation */
.px-chat-tools { display: flex; align-items: center; gap: 8px; }
.px-album-panel { margin: 0 0 10px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.px-album-status { margin: 0; font-size: 14px; font-weight: 600; }
.px-album-durations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .px-album-durations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.px-album-durations .px-btn.is-on { border-color: var(--accent); color: var(--accent); }
.px-btn-danger { background: transparent; border: 1px solid #6B3A44; color: #FFB4BC; }
.px-album-banner { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: #2A1C24; border: 1px solid var(--accent); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.px-album-banner span { flex: 1; }
.px-msg-system { align-self: center; max-width: 90%; padding: 6px 12px; border-radius: 12px; background: rgba(255,107,122,0.1); color: var(--soft); font-size: 12px; text-align: center; }
.px-album-photos { display: flex; flex-direction: column; gap: 10px; }
.px-album-photos img { width: 100%; height: auto; min-height: 120px; border-radius: 12px; display: block; flex: none; background: #2A2230; }
.px-grants-title { margin: 16px 0 8px !important; font-size: 14px !important; }

/* Filtres : catégories à choix multiples + interrupteur « Dispo ce soir » séparé */
.px-chip-tonight { display: inline-flex; align-items: center; gap: 6px; border-color: #5A4A2E; color: #E0A75E; }
.px-chip-tonight.is-on { background: #E0A75E; border-color: #E0A75E; color: var(--bg); font-weight: 600; }
.px-chips-sep { flex: none; width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }

/* Soirées */
body.px-events-open .px-grid, body.px-events-open .px-grid-end, body.px-events-open .px-chips, body.px-events-open .px-visitor-banner, body.px-events-open .px-views { display: none; }
.px-events { padding: 8px 12px 24px; }
.px-events-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.px-seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.px-seg button { position: relative; min-height: 36px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.px-seg button.is-on { background: #2A2230; color: var(--text); }
.px-seg-badge { position: static; display: inline-block; margin-left: 6px; vertical-align: 1px; }
.px-events-list { display: flex; flex-direction: column; gap: 10px; }
.px-event-card { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--card); text-align: left; color: var(--text); }
.px-event-card.is-cancelled { opacity: 0.6; }
.px-event-when { font-size: 12px; font-weight: 700; color: #E0A75E; text-transform: uppercase; letter-spacing: 0.5px; }
.px-event-name { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.px-event-meta { font-size: 13px; color: var(--soft); }
.px-event-foot { display: flex; align-items: center; gap: 10px; }
.px-event-foot .px-avatar { width: 34px; height: 34px; border-radius: 10px; }
.px-event-foot .px-avatar svg { width: 20px; height: 20px; }
.px-event-org { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.px-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #2A2230; color: var(--soft); white-space: nowrap; }
.px-pill.is-ok { background: #18261E; color: var(--ok-text); }
.px-pill.is-accent { background: #2A1C24; color: var(--accent); }
.px-pill.is-warn { background: #2E2416; color: #E0A75E; }
.px-event-block { margin: 0 0 16px; }
.px-event-block p { margin: 0; line-height: 1.5; white-space: pre-line; }
.px-event-address { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); }
.px-people { display: flex; flex-direction: column; gap: 8px; }
.px-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg); text-align: left; color: var(--text); flex-wrap: wrap; }
.px-person .px-avatar { width: 40px; height: 40px; border-radius: 12px; }
.px-person .px-avatar svg { width: 22px; height: 22px; }
.px-person-text { flex: 1; min-width: 0; }
.px-person-text strong { display: block; font-size: 15px; }
.px-person-text small { color: var(--muted); font-size: 12px; }
.px-person-msg { flex-basis: 100%; margin: 0; font-size: 14px; font-style: italic; color: #DDD4E2; }
.px-person-actions { flex-basis: 100%; display: flex; gap: 8px; }
.px-person-actions .px-btn { flex: 1; min-height: 38px; }
.px-event-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.px-event-actions textarea { width: 100%; min-height: 70px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; resize: vertical; }
.px-event-mini { padding: 10px 12px; gap: 4px; background: var(--bg); }
.px-event-mini .px-event-name { font-size: 15px; }
.px-me-events:not(:empty) { margin: 12px 0 4px; }
.px-event-card { overflow: hidden; }
.px-event-cover { display: block; width: calc(100% + 28px); max-width: none; margin: -14px -14px 4px; aspect-ratio: 16 / 9; object-fit: cover; background: #2A2230; }
.px-event-mini .px-event-cover { width: calc(100% + 24px); margin: -10px -12px 4px; aspect-ratio: 21 / 9; }
.px-event-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.px-event-photos:empty { display: none; }
.px-event-photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #2A2230; }
.px-event-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-ph-del { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: none; border-radius: 14px; background: rgba(18,14,22,0.8); color: #fff; font-size: 18px; line-height: 1; }
.px-ph-cover, .px-ph-make { position: absolute; left: 4px; bottom: 4px; padding: 3px 7px; border: none; border-radius: 8px; font-size: 11px; font-weight: 600; }
.px-ph-cover { background: var(--accent); color: var(--bg); }
.px-ph-make { background: rgba(18,14,22,0.8); color: var(--text); }
.px-form label.px-btn { flex-direction: row; align-self: flex-start; font-size: 14px; color: var(--text); }
.px-event-gallery { position: relative; border-radius: 14px; overflow: hidden; background: #2A2230; }
.px-event-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.px-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 21px; background: rgba(18,14,22,0.7); color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.px-gal-nav.is-prev { left: 8px; }
.px-gal-nav.is-next { right: 8px; }
.px-gal-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 10px; background: rgba(18,14,22,0.75); color: #fff; font-size: 12px; font-weight: 600; }
.px-gal-thumbs { margin-top: 8px; }
/* Position en direct */
.px-map-markers.is-live .px-pin, .px-map-markers.is-live .px-me-dot { transition: left 1.2s ease-out, top 1.2s ease-out; }
.px-pin-dist { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; padding: 1px 6px; border-radius: 8px; background: rgba(18,14,22,0.85); color: #5FD0C4; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.px-me-dot.is-live { animation: px-pulse 2s ease-out infinite; }
@keyframes px-pulse { 0% { box-shadow: 0 0 0 0 rgba(95,208,196,0.5); } 100% { box-shadow: 0 0 0 16px rgba(95,208,196,0); } }

.px-cover { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; }
/* Écran discret */
.px-cover { background: #F7F7F5; color: #222; font-family: -apple-system, system-ui, sans-serif; }
.px-cover::backdrop { background: #F7F7F5; }
.px-cover-head { padding: 18px 20px; font-size: 28px; font-weight: 700; }
.px-cover-body { padding: 0 20px; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.px-cover-empty { margin: 0; color: #8A8A8A; font-size: 17px; }
.px-cover-tip { margin: 8px 0 0; color: #B5B5B5; font-size: 12px; }

/* Filtres, favoris, clins d'œil */
.px-chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; }
.px-social-row { flex-wrap: wrap; }
.px-social-row .px-btn { flex: 1; }
.px-social-row .px-btn.is-on { border-color: var(--accent); color: var(--accent); }
.px-social-hint { flex-basis: 100%; margin: 0; }
.px-me-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.px-me-lists .px-btn { position: relative; padding: 0 6px; font-size: 13px; }
.px-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; }
.px-person.is-fresh { border-color: var(--accent); }

/* Photos dans la discussion */
.px-chat-photo-btn { flex: none; width: 44px; height: 44px; }
.px-msg-photo img { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; cursor: pointer; }
.px-msg-once { display: block; margin-top: 4px; font-size: 11px; opacity: 0.8; }
.px-msg-gone { font-style: italic; opacity: 0.75; }
.px-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: #000; display: none; }
.px-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.px-viewer::backdrop { background: #000; }
.px-viewer img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.px-viewer-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.15); color: #fff; }
.px-viewer-note { color: #ccc; font-size: 13px; margin: 10px 16px 0; text-align: center; }

/* Voyages et partenaires */
.px-me-lists-2 { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.px-travelers { padding: 0 12px 4px; }
.px-travelers-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.px-traveler { flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--card); color: var(--text); text-align: center; }
.px-traveler .px-avatar { width: 60px; height: 60px; border-radius: 30px; }
.px-traveler strong { font-size: 14px; }
.px-traveler small { font-size: 11px; color: #E0A75E; line-height: 1.3; }
body.px-map-open .px-travelers, body.px-inbox-open .px-travelers, body.px-events-open .px-travelers { display: none; }
.px-partner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-partner-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; }
.px-partner-chip .px-avatar { width: 32px; height: 32px; border-radius: 16px; }
.px-partner-chip .px-avatar svg { width: 18px; height: 18px; }
.px-partner-action { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.px-partner-action .px-hint { flex-basis: 100%; margin: 0; }
#px-travel-picked { margin: 0; color: var(--ok-text); font-weight: 600; }
#px-travel-results .px-person { font-size: 14px; }
.px-trip { flex-wrap: wrap; }
.px-trip .px-person-actions .px-btn:first-child { flex: 2; }

/* Lieux */
.px-place-kinds { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; }
.px-place-kinds .px-chip { flex: none; }
.px-place-card .px-event-when { color: #5FD0C4; }
a.px-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Discussion des invités */
.px-event-chat { max-height: 320px; min-height: 80px; overflow-y: auto; padding: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); margin: 6px 0 8px; }
.px-msg-from { display: block; font-size: 11px; color: var(--accent); margin-bottom: 2px; }
.px-map .px-pin { border-color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.35); }
.px-map .px-cluster { border-color: #fff; background: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.px-map .px-me-dot { border: 2px solid #fff; }

/* Infos du profil en pastilles, sous le pseudo */
.px-profile-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.px-info-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Vidéos */
.px-video-head { margin-top: 18px; }
.px-my-video img, .px-video-noposter { cursor: pointer; }
.px-video-noposter { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 4; background: #2A2230; color: var(--soft); font-size: 28px; }
.px-video-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 8px; background: rgba(18,14,22,0.8); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.px-thumb-video { position: relative; }
.px-thumb-video .px-video-noposter { aspect-ratio: auto; height: 100%; }
.px-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; text-shadow: 0 1px 6px rgba(0,0,0,0.8); pointer-events: none; }
.px-profile-photo video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: inherit; }
.px-album-video { display: block; width: 100%; max-height: 70vh; margin: 0 0 10px; border-radius: 12px; background: #000; }
.px-viewer-video { max-width: 100%; max-height: 88vh; }

/* Titres de rubriques de la fiche (Recherche, Mon libertinage…) : pastilles blanches */
#px-profile .px-section-title, #px-event .px-section-title, #px-place .px-section-title { display: inline-flex; align-items: center; min-height: 26px; margin: 0 0 8px; padding: 0 12px; border-radius: 12px; background: #fff; color: #17121B; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; }
#px-nav-kiss.is-on, #px-nav-kiss:active { color: var(--accent); }
.px-traveler-note { font-size: 11px; color: var(--soft); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.px-traveler { width: 150px; }
.px-trips { display: flex; flex-direction: column; gap: 8px; }
.px-trip-line .px-person-msg { margin: 4px 0 0; }

.px-add-btns { display: flex; gap: 6px; flex: none; }
.px-add-btns .px-btn { min-width: 44px; }
.px-msg-video { display: block; max-width: 240px; max-height: 320px; border-radius: 10px; background: #000; }
#px-chat-photo .px-upload { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }

.px-delete-account { display: block; margin: 14px auto 4px; color: #E5484D; font-size: 14px; }
.px-delete-list { margin: 0 0 4px; padding-left: 20px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.px-btn-danger-fill { background: #E5484D; color: #fff; }
.px-delete-ask { margin: 8px 0 0; text-align: center; font-size: 18px; font-weight: 700; }
.px-delete-choice .px-btn { flex: 1; }

/* Recommandations */
.px-reco { padding: 12px; margin: 0 0 10px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--bg); }
.px-reco-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.px-reco-head .px-avatar { width: 48px; height: 48px; border-radius: 24px; cursor: pointer; }
.px-reco-head .px-person-text strong { display: block; font-size: 16px; }
.px-reco-head .px-person-text small { color: var(--muted); font-size: 12px; }
.px-reco-body { margin: 10px 0 0; line-height: 1.5; white-space: pre-line; }
.px-reco .px-person-actions { margin-top: 10px; align-items: center; flex-wrap: wrap; }
.px-recos-btn { margin-top: 8px; }
.px-seg-2 { grid-template-columns: 1fr 1fr !important; margin: 0 0 12px; }
.px-recos-list { min-height: 80px; }

/* Liens légaux sous « Supprimer mon compte » */
.px-me-legal { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.8; }
.px-me-legal a { color: var(--muted); }
