/* =====================================================================
   Lovers — feuille de style de base (dark mode, mobile-first)
   ===================================================================== */
:root {
    --bg:        #0e0b14;
    --surface:   #1a1622;
    --surface-2: #241d30;
    --text:      #f3eef9;
    --muted:     #a99fb8;
    --primary:   #e0457b;
    --primary-2: #ff6aa0;
    --border:    #2e2640;
    --success:   #2ecc71;
    --error:     #ff5c72;
    --radius:    14px;

    /* Jetons dérivés : tout ce qui doit changer entre jour et nuit. */
    --surface-3:    #15111d;
    --admin-top:    #14101c;
    --line:         #2a2238;
    --field-border: #3a2c4a;
    --tint:         rgba(255,255,255,.035);
    --tint-2:       rgba(255,255,255,.06);
    --tint-border:  rgba(255,255,255,.08);
    --ok-text:      #b6f5d0;
    --err-text:     #ffc6cd;
    --warn-text:    #f7d08a;
    --gold-text:    #ffd24a;
    --info-text:    #7fd1ff;
    --ok-strong:    #5bd98a;
    --err-strong:   #ff8fb4;
    --warn-strong:  #f5b041;
    --chip-text:    #e7dcf0;
    --muted-2:      #b9a8c9;
    --faint:        #6d6480;
    --banner-bg:    linear-gradient(135deg, #2a1d3a, #3a2540);
    --pattern-filter: none;
    --pattern-opacity: .10;
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    /* Footer toujours collé en bas (sticky footer) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Motif sensuel en fond, tamisé à 10 % */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../img/bg-sexy.svg") repeat;
    background-size: 300px;
    opacity: var(--pattern-opacity);
    filter: var(--pattern-filter);
    pointer-events: none;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Barre supérieure --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 1.3rem; color: var(--text); }
.brand-tagline { font-size: .72rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 10px; }
.nav-user { color: var(--muted); font-size: .9rem; }
.inline { display: inline; margin: 0; }

/* --- Conteneur --- */
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 18px 60px; flex: 1 0 auto; }

/* --- Hero --- */
.hero { text-align: center; padding: 60px 16px; }
.hero-title {
    font-size: 3rem; font-weight: 900; margin: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-style: italic; color: var(--muted); margin-top: 4px; }
.hero-sub { margin-top: 18px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* =====================================================================
   Landing (page d'accueil visiteurs)
   ===================================================================== */
.land-hero { text-align: center; padding: 36px 6px 30px; }
.land-logo { height: 46px; width: auto; margin-bottom: 22px; }
.land-title { font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin: 0 0 14px; }
.land-title span { background: linear-gradient(90deg, var(--primary), #7a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-sub { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 26px; line-height: 1.55; }
.land-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.land-cta .btn-lg { padding: 15px 30px; font-size: 1.08rem; }

/* Hero "carte" plein écran */
.land-map {
    position: relative; width: 100vw; margin-left: calc(50% - 50vw);
    min-height: 86vh; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.land-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.land-center {
    position: relative; z-index: 2; text-align: center; padding: 30px 22px;
    max-width: 600px; border-radius: 28px;
    background: radial-gradient(ellipse at center, rgba(12,9,18,0.82) 45%, rgba(12,9,18,0) 78%);
}
.land-biglogo { width: min(82%, 440px); height: auto; margin: 0 auto 26px; display: block;
    filter: drop-shadow(0 6px 30px rgba(224,69,123,0.35)); }
.land-center .land-cta .btn-lg { padding: 16px 42px; font-size: 1.18rem; }
.land-baseline1 { margin: 26px auto 8px; font-size: 1.12rem; font-weight: 600; color: var(--text); max-width: 520px; line-height: 1.5; }
.land-baseline2 { margin: 0 auto; font-size: .98rem; color: var(--muted); max-width: 520px; line-height: 1.5; font-style: italic; }

@media (max-width: 560px) {
    .land-map { min-height: 90vh; }
    .land-biglogo { width: 90%; margin-bottom: 18px; }
    .land-baseline1 { font-size: 1rem; }
}

.land-stats { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.land-stats > div {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 22px; min-width: 130px;
}
.land-stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--primary-2); }
.land-stats span { font-size: .82rem; color: var(--muted); }

.land-block { padding: 34px 0 6px; }
.land-h2 { text-align: center; font-size: 1.5rem; margin: 0 0 22px; }

.land-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.tease-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: .15s; }
.tease-card:hover { transform: translateY(-3px); border-color: var(--primary); text-decoration: none; }
.tease-img { position: relative; aspect-ratio: 1/1; }
.tease-img img { width: 100%; height: 100%; object-fit: cover; }
.tease-img .dot-online { top: 8px; right: 8px; }
.tease-name { font-weight: 700; padding: 8px 10px 0; font-size: .9rem; }
.tease-meta { color: var(--muted); font-size: .78rem; padding: 2px 10px 10px; }
.land-tease-note { text-align: center; margin-top: 18px; color: var(--muted); }

.land-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feat span { font-size: 1.8rem; }
.feat b { display: block; margin: 8px 0 5px; font-size: 1.05rem; }
.feat p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.land-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.step { text-align: center; padding: 16px; }
.step span { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7a5cff); color: #fff; font-weight: 800; font-size: 1.2rem; }
.step b { display: block; margin: 12px 0 5px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

.land-final { text-align: center; margin: 40px 0 10px; padding: 36px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.land-final h2 { margin: 0 0 8px; font-size: 1.6rem; }
.land-final .btn-lg { margin-top: 16px; padding: 15px 34px; font-size: 1.1rem; }
.land-legal { margin-top: 16px; font-size: .8rem; }

@media (max-width: 560px) {
    .land-title { font-size: 1.9rem; }
    .land-sub { font-size: 1.02rem; }
}

/* --- Boutons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 600; cursor: pointer; font-size: .95rem; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Cartes / formulaires --- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; max-width: 440px; margin: 30px auto;
}
.card-title { margin: 0 0 6px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.field input, .field select {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 11px 13px; font-size: 1rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

/* --- Messages flash --- */
.flash { max-width: 760px; margin: 14px auto 0; padding: 12px 18px; border-radius: 10px; font-size: .92rem; }
.flash-success { background: rgba(46,204,113,.15); border: 1px solid var(--success); color: var(--ok-text); }
.flash-error { background: rgba(255,92,114,.15); border: 1px solid var(--error); color: var(--err-text); }

/* --- Divers --- */
.muted { color: var(--muted); }
.footer { text-align: center; padding: 30px 16px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); flex-shrink: 0; margin-top: auto; }
.error-page { text-align: center; padding-top: 80px; }
.error-page h1 { font-size: 4rem; margin: 0; }

/* --- Lien admin dans le pied de page --- */
.footer-links { margin-top: 8px; }
.footer-admin {
    color: var(--muted); font-size: .8rem; text-decoration: none;
    border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
}
.footer-admin:hover { color: var(--text); border-color: var(--primary); text-decoration: none; }

/* =====================================================================
   Back-office
   ===================================================================== */
.btn-sm { padding: 6px 12px; font-size: .82rem; }

.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; background: var(--admin-top); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
}
.admin-brand { font-size: 1.05rem; }
.admin-nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.admin-nav a { color: var(--muted); }
.admin-nav a:hover { color: var(--text); }
.admin-user { color: var(--primary-2); font-weight: 600; }

.admin-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 22px 70px; }
.admin-title { margin: 4px 0 22px; }

.stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px;
}
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--primary-2); }
.stat-label { color: var(--muted); font-size: .82rem; }
.stat-warn .stat-num { color: var(--warn-strong); }
.stat-danger .stat-num { color: var(--error); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.admin-panel h2 { margin: 0 0 14px; font-size: 1.05rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 9px 6px; border-bottom: 1px solid var(--border); }
.admin-table td.num, .admin-table .num { text-align: right; font-weight: 700; }
.badge { font-size: .72rem; padding: 2px 9px; border-radius: 999px; text-transform: capitalize; }
.badge-active { background: rgba(46,204,113,.15); color: var(--ok-text); }
.badge-suspended { background: rgba(245,176,65,.15); color: var(--warn-text); }
.badge-banned { background: rgba(255,92,114,.15); color: var(--err-text); }
.admin-note { margin-top: 18px; font-size: .85rem; }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; overflow-x: auto; font-size: .85rem; color: var(--primary-2); }

@media (max-width: 760px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-cols { grid-template-columns: 1fr; }
}

/* =====================================================================
   Découverte des profils
   ===================================================================== */
.discover-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.discover-head h1 { margin: 0; }

.filters {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px; margin-bottom: 24px;
}
.filters input, .filters select {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 9px; padding: 8px 10px; font-size: .88rem;
}
.filters .f-search { flex: 1 1 160px; }
.filters .f-age { width: 90px; }
.f-check { display: flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--muted); }

.empty-state { text-align: center; padding: 50px 0; }

.profile-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.profile-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: var(--text); transition: .15s;
    display: flex; flex-direction: column;
}
.profile-card:hover { transform: translateY(-3px); border-color: var(--primary); text-decoration: none; }
.pc-avatar {
    position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.pc-avatar span { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.92); }
.pc-body { padding: 12px 13px 14px; }
.pc-name { font-weight: 700; display: flex; align-items: center; gap: 5px; }
.pc-meta { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.pc-loc { font-size: .82rem; margin-top: 6px; }

.dot-online {
    position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%;
    background: #2ecc71; border: 2px solid var(--surface); box-shadow: 0 0 0 2px #2ecc71;
}
.dot-online.big { width: 16px; height: 16px; top: auto; bottom: 8px; right: 8px; }
/* Pastille bleue « vérifié » (style Instagram). */
.badge-v {
    display: inline-flex; align-items: center; justify-content: center;
    width: 19px; height: 19px; border-radius: 50%;
    background: #1d9bf0; color: #fff; font-size: 11px; font-weight: 800;
    vertical-align: middle; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.badge-v-lg { width: 24px; height: 24px; font-size: 14px; }
.badge-p { color: var(--gold-text); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px 0 10px; }

/* =====================================================================
   Profil détaillé
   ===================================================================== */
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.profile-detail {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.pd-banner { height: 160px; }
.pd-head { display: flex; gap: 18px; padding: 0 22px 18px; margin-top: -44px; }
.pd-avatar {
    position: relative; width: 110px; height: 110px; border-radius: 22px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; border: 4px solid var(--surface);
}
.pd-avatar span { font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.92); }
.pd-id { padding-top: 50px; }
.pd-id h1 { margin: 0; display: flex; align-items: center; gap: 8px; }
.pd-sub { margin: 4px 0; color: var(--muted); }
.pd-loc { margin: 4px 0; }
.pd-status { font-size: .85rem; margin: 4px 0 0; }
.online-text { color: #2ecc71; font-weight: 600; }
.pd-self, .pd-actions { padding: 0 22px 18px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pd-section { padding: 18px 22px; border-top: 1px solid var(--border); }
.pd-section h2 { margin: 0 0 10px; font-size: 1.05rem; }
.pd-bio { line-height: 1.6; }

@media (max-width: 560px) {
    .pd-head { flex-direction: column; gap: 8px; margin-top: -50px; }
    .pd-id { padding-top: 0; }
}

/* --- Photos (avatars réels + galerie) --- */
.pc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .2s; }
.gallery-item:hover img { transform: scale(1.05); }
.private-note { margin-top: 12px; font-size: .85rem; }

/* =====================================================================
   Back-office : modération
   ===================================================================== */
.btn-danger { background: rgba(255,92,114,.18); color: var(--err-text); border-color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }

/* Fiche membre */
.member-head { display: flex; gap: 18px; align-items: flex-start; }
.member-avatar {
    width: 92px; height: 92px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar span { font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,.9); }
.member-id h1 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.4rem; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Grille de modération des médias */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.mod-item {
    position: relative; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; margin: 0;
}
.mod-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.mod-item.is-hidden img { opacity: .35; filter: grayscale(1); }
.mod-item figcaption {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    padding: 7px 9px; font-size: .78rem;
}
.mod-actions { display: flex; gap: 5px; padding: 0 9px 9px; }
.tag { font-size: .68rem; padding: 2px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.tag-private { color: var(--gold-text); }
.tag-public { color: var(--info-text); }
.tag-hidden { color: var(--error); border-color: var(--error); }

/* Messagerie / fil de conversation */
.row-flagged { background: rgba(255,92,114,.08); }
.flag-count { color: var(--error); font-weight: 800; }
.conv-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.bubble-row { display: flex; }
.bubble-row.left { justify-content: flex-start; }
.bubble-row.right { justify-content: flex-end; }
.bubble { max-width: 72%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px; }
.bubble-row.right .bubble { background: rgba(224,69,123,.15); }
.bubble.flagged { border-color: var(--error); }
.bubble.hidden-msg { opacity: .5; }
.bubble-meta { font-size: .72rem; color: var(--muted); margin-bottom: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bubble-body { line-height: 1.45; }
.bubble-actions { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .74rem; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--text); }
.link-btn.danger { color: var(--error); }

.legal-notice {
    background: rgba(255,210,74,.1); border: 1px solid #f5b041; color: var(--warn-text);
    padding: 10px 14px; border-radius: 10px; font-size: .85rem; margin-bottom: 16px;
}

/* =====================================================================
   Messagerie (membre)
   ===================================================================== */
.page-title { margin: 4px 0 18px; }
.nav-badge {
    display: inline-block; min-width: 18px; padding: 0 5px; height: 18px; line-height: 18px;
    text-align: center; background: var(--primary); color: #fff; border-radius: 999px;
    font-size: .72rem; font-weight: 700;
}
.nav-msg { position: relative; }

.conv-list { list-style: none; margin: 0; padding: 0; }
.conv-list li { border-bottom: 1px solid var(--border); }
.conv-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 8px;
    text-decoration: none; color: var(--text);
}
.conv-row:hover { background: var(--surface); text-decoration: none; }
.conv-avatar {
    position: relative; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    font-weight: 800; color: rgba(255,255,255,.92);
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-avatar .dot-online { top: 1px; right: 1px; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-name { font-weight: 700; }
.conv-last { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.conv-time { font-size: .76rem; }

/* Fil de discussion */
.chat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden; max-height: 72vh;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-name { font-weight: 700; color: var(--text); }
.chat-status { font-size: .8rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 280px; }
.chat-empty { text-align: center; margin: auto; }
.chat .bubble-row .bubble { max-width: 75%; }
.chat .bubble-time { font-size: .68rem; color: var(--muted); margin-top: 3px; text-align: right; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-form input {
    flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 999px; padding: 11px 16px; font-size: .95rem;
}
.chat-form input[type=text]:focus { outline: 2px solid var(--primary); border-color: transparent; }
.chat-attach { cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; padding: 0 4px; }
.bubble-media { display: block; margin-bottom: 4px; }
.bubble-media img { max-width: 220px; max-height: 260px; border-radius: 10px; display: block; }

/* --- Édition de profil / upload --- */
.field textarea {
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 11px 13px; font-size: 1rem; font-family: inherit; resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.field input[type=file] { font-size: .85rem; color: var(--muted); }
.edit-previews { position: relative; margin-bottom: 24px; }
.edit-banner { height: 110px; border-radius: 12px; }
.edit-avatar {
    position: absolute; left: 16px; bottom: -22px; width: 76px; height: 76px; border-radius: 16px;
    border: 3px solid var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.edit-avatar span { font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.9); }
.radio-row { display: flex; gap: 18px; }

/* =====================================================================
   Fil d'actualité
   ===================================================================== */
.composer {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; margin-bottom: 22px;
}
.composer textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 11px 13px; font-size: 1rem; font-family: inherit; resize: vertical;
}
.composer textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.composer-photo { cursor: pointer; color: var(--muted); font-size: .9rem; }
.composer-photo:hover { color: var(--text); }
.composer-filename { flex: 1; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.feed { display: flex; flex-direction: column; gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.post-head { display: flex; align-items: center; gap: 11px; }
.post-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-author { font-weight: 700; color: var(--text); }
.post-time { font-size: .78rem; }
.post-del { margin-left: auto; }
.post-body { margin: 12px 0; line-height: 1.55; white-space: pre-wrap; }
.post-photo { margin: 12px -16px; }
.post-photo img { width: 100%; max-height: 540px; object-fit: cover; display: block; }
.post-actions { display: flex; align-items: center; gap: 16px; padding: 6px 0; border-top: 1px solid var(--border); margin-top: 6px; }
.post-like {
    background: none; border: none; color: var(--text); cursor: pointer; font-size: .95rem;
    padding: 4px 6px; border-radius: 8px;
}
.post-like:hover { background: var(--surface-2); }
.post-like.liked { color: var(--primary-2); }
.post-comment-count { font-size: .85rem; }
.post-comments { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.post-comment { font-size: .9rem; line-height: 1.4; }
.post-comment-form { display: flex; gap: 8px; margin-top: 8px; }
.post-comment-form input {
    flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 999px; padding: 8px 14px; font-size: .9rem;
}
.post-comment-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }

/* =====================================================================
   Annonces
   ===================================================================== */
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-decoration: none; color: var(--text); transition: .15s;
    display: flex; flex-direction: column; gap: 8px;
}
.ad-card:hover { transform: translateY(-3px); border-color: var(--primary); text-decoration: none; }
.ad-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; }
.ad-type { color: var(--primary-2); font-weight: 600; }
.ad-title { margin: 0; font-size: 1.05rem; }
.ad-excerpt { margin: 0; font-size: .88rem; line-height: 1.4; }
.ad-foot { font-size: .78rem; margin-top: auto; }

/* =====================================================================
   Carte & préférences
   ===================================================================== */
.map-box { height: 440px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 8px; z-index: 0; }
.filters-map { flex-wrap: wrap; }
.practice-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; width: 100%; margin-top: 4px; }
.pref-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pref-tag { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .82rem; }
.leaflet-popup-content a { color: var(--primary); }

/* =====================================================================
   Mise en avant (boost)
   ===================================================================== */
.profile-card.boosted { border-color: #ffd24a; box-shadow: 0 0 0 1px rgba(255,210,74,.4); }
.boost-badge {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    background: linear-gradient(90deg, #ffb300, #ffd24a); color: #2a1d00;
    font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.profile-card { position: relative; }
.boost-inline {
    font-size: .72rem; font-weight: 800; background: linear-gradient(90deg,#ffb300,#ffd24a);
    color: #2a1d00; padding: 3px 10px; border-radius: 999px;
}
.boost-hero { text-align: center; padding: 10px 0 24px; }
.boost-hero h1 { margin: 0 0 6px; }
.boost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.boost-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 16px; text-align: center; margin: 0;
}
.boost-card:hover { border-color: #ffd24a; }
.boost-duration { font-size: 1.05rem; font-weight: 700; }
.boost-price {
    font-size: 1.9rem; font-weight: 900; margin: 8px 0 16px;
    background: linear-gradient(90deg,#ffb300,#ffd24a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boost-note { text-align: center; margin-top: 22px; font-size: .88rem; }

/* --- Pages légales --- */
.legal-page { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-page h1 { margin-bottom: 6px; }
.legal-page h2 { margin-top: 26px; font-size: 1.1rem; }
.legal-page ul { padding-left: 20px; }
.resend-box { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.resend-box summary { cursor: pointer; }
.resend-box input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 9px 12px; margin-bottom: 8px; }

/* --- Partage social --- */
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 22px 16px; font-size: .85rem; }
.share-bar a, .share-bar button { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .82rem; text-decoration: none; }
.share-bar a:hover, .share-bar button:hover { border-color: var(--primary); text-decoration: none; }
.share-fb:hover { border-color: #1877f2; }
.share-ig:hover { border-color: #e1306c; }
.share-wa:hover { border-color: #25d366; }

/* =====================================================================
   Navigation mobile (style app) + responsive
   ===================================================================== */
.bottom-nav { display: none; }
.only-mobile { display: none; }

@media (max-width: 760px) {
    /* La barre du haut se simplifie : on garde la marque, on masque les boutons. */
    .topbar .nav .btn, .topbar .nav .nav-user, .topbar .nav form.inline { display: none; }
    .topbar { padding: 10px 16px; }

    .only-mobile { display: inline; }

    /* Barre d'onglets en bas, façon application native. */
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
        background: var(--surface); border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .bottom-nav a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 8px 0 7px; color: var(--muted); text-decoration: none; font-size: .66rem;
    }
    .bottom-nav a span { font-size: 1.35rem; line-height: 1; position: relative; }
    .bottom-nav a:hover { color: var(--text); }
    .bn-badge i { position: absolute; top: -2px; right: -6px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

    body { padding-bottom: 64px; } /* espace pour la barre d'onglets */
    .container { padding: 16px 14px 30px; }
    .filters { gap: 8px; }
    .pd-actions { flex-direction: column; }
    .pd-actions .btn, .pd-actions form { width: 100%; }
    .pd-actions .btn { justify-content: center; }
}

/* Badge Pro */
.pro-badge {
    background: linear-gradient(90deg, #6a5acd, #9b6ad6); color: #fff;
    font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .5px;
}
.profile-card .pro-badge { position: absolute; top: 8px; right: 8px; z-index: 1; }

/* =====================================================================
   Notifications
   ===================================================================== */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { border-bottom: 1px solid var(--border); }
.notif-list li.unread { background: rgba(224,69,123,.07); }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 13px 10px; text-decoration: none; color: var(--text); }
.notif-row:hover { background: var(--surface); text-decoration: none; }
.notif-icon { font-size: 1.3rem; width: 30px; text-align: center; }
.notif-main { display: flex; flex-direction: column; }
.notif-time { font-size: .76rem; }

/* =====================================================================
   Lightbox
   ===================================================================== */
.lb {
    position: fixed; inset: 0; z-index: 1000; background: rgba(8,5,12,.92);
    display: flex; align-items: stretch; justify-content: center;
}
.lb[hidden] { display: none; }
.lb-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; min-width: 0; }
.lb-img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lb-caption { color: var(--muted); margin-top: 10px; font-size: .9rem; text-align: center; }
.lb-side {
    width: 320px; flex-shrink: 0; background: var(--surface); border-left: 1px solid var(--border);
    display: flex; flex-direction: column; padding: 18px;
}
.lb-owner { font-weight: 700; margin-bottom: 12px; }
.lb-like {
    align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: .95rem; margin-bottom: 14px; transition: .15s;
}
.lb-like:hover { border-color: var(--primary); }
.lb-like.liked { background: rgba(224,69,123,.2); border-color: var(--primary); }
.lb-like[disabled] { opacity: .5; cursor: default; }
.lb-comments { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.lb-comment { font-size: .9rem; line-height: 1.4; }
.lb-ctime { font-size: .72rem; margin-left: 4px; }
.lb-comment-form { display: flex; gap: 8px; margin-top: 12px; }
.lb-comment-form input {
    flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 999px; padding: 9px 14px; font-size: .9rem;
}
.lb-comment-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.lb-close, .lb-nav {
    position: absolute; background: rgba(0,0,0,.4); color: #fff; border: none; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 1; z-index: 2;
}
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-prev { left: 16px; }
.lb-next { right: 356px; }
.lb-close:hover, .lb-nav:hover { background: var(--primary); }
.gallery-item { cursor: zoom-in; }

@media (max-width: 760px) {
    .lb { flex-direction: column; }
    .lb-stage { padding: 12px; }
    .lb-img { max-height: 48vh; }
    .lb-side { width: auto; border-left: none; border-top: 1px solid var(--border); max-height: 40vh; }
    .lb-next { right: 16px; }
    .lb-nav { top: 30%; }
}

/* ---------- Cœur « j'aime ce profil » ---------- */
.heart-like {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--field-border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--chip-text);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: border-color .2s, background .2s, transform .1s;
}
.heart-like:hover { border-color: var(--primary); }
.heart-like:active { transform: scale(.96); }
.heart-like svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #ff6aa0;
    stroke-width: 1.8;
    transition: fill .2s, stroke .2s, transform .2s;
}
.heart-like.is-liked svg { fill: #e0245e; stroke: #e0245e; }
.heart-like.is-liked { border-color: #e0245e; }
.heart-like .heart-count { font-weight: 600; font-size: .95rem; min-width: 1ch; }
.heart-like.pulse svg { animation: heartPulse .35s ease; }
@keyframes heartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ---------- Messagerie : pièces jointes & vidéo ---------- */
.chat-form { display: flex; flex-direction: column; gap: 8px; }
.chat-row { display: flex; align-items: center; gap: 8px; }
.chat-row input[name="body"] { flex: 1 1 auto; }
video.bubble-media { display: block; max-width: 260px; width: 100%; border-radius: 12px; background: #000; }
.chat-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.att-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--field-border); border-radius: 10px;
    padding: 6px 8px; max-width: 260px;
}
.att-chip.att-over { border-color: #e0457b; }
.att-thumb {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 20px;
}
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.att-name { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.att-state { font-size: .74rem; color: var(--ok-strong); }
.att-over .att-state { color: var(--err-strong); }
.att-remove {
    margin-left: auto; background: none; border: none; color: var(--muted-2);
    cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 4px;
}
.att-remove:hover { color: var(--text); }
.chat-uploading { font-size: .85rem; color: var(--primary); }

/* ---------- Admin : onglets de modération ---------- */
.admin-tabs { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-tabs a {
    padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--muted-2);
    text-decoration: none; font-size: .9rem; border: 1px solid transparent; border-bottom: none;
}
.admin-tabs a:hover { color: var(--text); background: var(--surface); }
.admin-tabs a.active { color: var(--text); background: var(--surface); border-color: var(--line); }
.mod-item.is-flagged { outline: 2px solid #e0457b; outline-offset: 2px; }
.mod-item video { width: 100%; display: block; border-radius: 8px 8px 0 0; background: #000; max-height: 220px; }
.tag-private { background: var(--line); }

/* ---------- Vérification (carte membre + file admin) ---------- */
.verif-card .card-title { display: flex; align-items: center; gap: 10px; }
.verif-ok { color: var(--ok-strong); }
.verif-pending { color: var(--gold-text); }
.verif-rejected { color: var(--err-strong); }
.verif-list { display: flex; flex-direction: column; gap: 12px; }
.verif-row {
    display: flex; gap: 14px; align-items: center;
    background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    flex-wrap: wrap;
}
.verif-doc { flex: 0 0 120px; width: 120px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.verif-doc img { width: 100%; height: 100%; object-fit: cover; }
.verif-meta { flex: 1 1 200px; min-width: 0; line-height: 1.4; }
.verif-name { font-weight: 700; font-size: 1.05rem; }
.verif-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Statistiques ---------- */
.self-stats { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.self-stats > div {
    flex: 1 1 100px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; text-align: center;
}
.self-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-2); }
.self-stats span { font-size: .78rem; color: var(--muted); }
.admin-subtitle { font-size: 1rem; color: var(--muted); margin: 20px 0 8px; font-weight: 600; }
.stat-card.stat-ok { border-color: #2e7d4f; }
.stat-card.stat-ok .stat-num { color: var(--ok-strong); }

/* ---------- Mise à jour (façon SPIP) ---------- */
.upgrade-banner {
    display: block; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px;
    background: var(--banner-bg); border: 1px solid var(--primary);
    color: var(--text); text-decoration: none;
}
.upgrade-banner:hover { text-decoration: none; border-color: var(--primary-2); }
.upgrade-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.upgrade-log li { padding: 6px 10px; border-radius: 8px; background: var(--surface-3); font-size: .9rem; }
.upgrade-log li.ko { background: rgba(255,92,114,.16); }
.upgrade-log li.pending { background: var(--line); }
.upgrade-log code { color: var(--primary-2); }

/* ---------- Indicateur « écrit… » (typing) ---------- */
.typing-bubble { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing-bubble span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2);
    animation: typingDot 1.2s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .18s; }
.typing-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Version publique (pied de page) ---------- */
.footer-version { margin: 6px 0 0; font-size: .7rem; color: var(--faint); letter-spacing: .05em; }

/* ---------------------------------------------------------------------
   Back-office — statistiques de visites
   --------------------------------------------------------------------- */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;}
.stat-card{background:var(--tint);border:1px solid var(--tint-border);
    border-radius:12px;padding:14px;text-align:center;}
.stat-card strong{display:block;font-size:1.6rem;line-height:1.2;color:var(--accent,#ff4f8b);}
.stat-card span{display:block;font-size:.78rem;opacity:.72;margin-top:4px;}
.visit-chart{display:flex;align-items:flex-end;gap:2px;height:150px;
    background:var(--tint);border-radius:10px;padding:8px;}
.visit-bar{flex:1 1 0;min-width:2px;border-radius:3px 3px 0 0;
    background:linear-gradient(180deg,var(--accent,#ff4f8b),rgba(255,79,139,.35));}
.visit-bar:hover{background:var(--text);}
@media (max-width:640px){.visit-chart{height:110px;}}

/* ---------------------------------------------------------------------
   Pages d'entrée publiques (référencement)
   --------------------------------------------------------------------- */
.landing{max-width:820px;margin:0 auto;}
.landing-lead{font-size:1.1rem;line-height:1.7;opacity:.92;}
.landing-bloc{margin:28px 0;padding:20px;border:1px solid var(--tint-border);
    border-radius:14px;background:var(--tint);}
.landing-bloc h2{margin:0 0 12px;font-size:1.15rem;}
.landing-bloc p{line-height:1.7;margin:0 0 10px;}
.landing-chips{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0;}
.landing-chips li{background:var(--tint-2);border-radius:999px;padding:6px 14px;font-size:.9rem;}
.landing-chips strong{color:var(--accent,#ff4f8b);}
.landing-liens{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px 18px;}
.landing-liens-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));}
.landing-cta{margin-top:16px;}
.footer-seo{font-size:.82rem;opacity:.7;margin-bottom:6px;line-height:1.9;}
.footer-seo a{color:inherit;}
@media (max-width:640px){.landing-bloc{padding:14px;}}

/* =====================================================================
   Téléphones — passe d'optimisation
   ---------------------------------------------------------------------
   Règles regroupées ici, en fin de feuille, pour primer sur les
   précédentes sans les réécrire.
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(224,69,123,.18); }

/* Un champ ne doit jamais élargir la page (ex. « Code postal » à l'inscription). */
.field, .form-row .field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.chat-row input[name="body"], .post-comment-form input, .lb-comment-form input { min-width: 0; }
img, video { max-width: 100%; }

/* Les effets de survol « collent » au doigt sur écran tactile : réservés à la souris. */
@media (hover: none) {
    .btn:hover, .profile-card:hover, .tease-card:hover, .ad-card:hover { transform: none; }
    .gallery-item:hover img { transform: none; }
}

/* Raccourcis et bouton de filtres : n'existent que sur téléphone. */
.nav-icon, .filters-toggle { display: none; }

/* La barre du haut épouse l'encoche et les bords arrondis (app installée). */
.topbar {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

@media (max-width: 760px) {
    .topbar {
        padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
                 10px max(14px, env(safe-area-inset-left));
    }
    .brand-logo { height: 26px; }

    /* Visiteur : Connexion / S'inscrire restent accessibles sur toutes les pages. */
    .topbar .nav .btn.nav-guest { display: inline-flex; padding: 7px 12px; font-size: .85rem; }
    .topbar .nav { gap: 6px; }

    /* Membre : Carte et Annonces, absentes de la barre d'onglets. */
    .nav-icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem;
        background: var(--surface-2); border: 1px solid var(--border);
    }
    .nav-icon:hover { text-decoration: none; }
    .nav-icon[aria-current] { border-color: var(--primary); background: rgba(224,69,123,.18); }

    /* Barre d'onglets : onglet courant en couleur, cibles tactiles ≥ 48 px. */
    .bottom-nav { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
    .bottom-nav a { min-height: 52px; justify-content: center; }
    .bottom-nav a.is-active { color: var(--primary-2); font-weight: 700; }
    .bottom-nav a.is-active span { transform: translateY(-1px); }
    .bn-badge { position: relative; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

    /* 16 px minimum : en dessous, l'iPhone zoome sur le champ à chaque saisie. */
    input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px !important; }

    /* Titres et en-têtes de page. */
    h1, .page-title { font-size: 1.6rem; line-height: 1.2; }
    .discover-head { flex-wrap: wrap; align-items: center; row-gap: 4px; }
    .discover-head .btn { margin-left: auto; padding: 8px 14px; white-space: nowrap; }

    /* Formulaires en carte : moins de marge perdue. */
    .card { padding: 20px 16px; margin: 12px auto; }
    .form { gap: 14px; }
    .flash { margin: 10px 12px 0; }

    /* Filtres repliés derrière un bouton (voir app.js). Sans JavaScript,
       la classe .js est absente et les filtres restent visibles. */
    .filters-toggle {
        display: flex; width: 100%; align-items: center; justify-content: space-between;
        background: var(--surface); border: 1px solid var(--border); color: var(--text);
        border-radius: var(--radius); padding: 12px 16px; font-size: .95rem; font-weight: 600;
        margin-bottom: 12px; cursor: pointer;
    }
    .filters-toggle em {
        font-style: normal; background: var(--primary); color: #fff; border-radius: 999px;
        padding: 0 8px; font-size: .78rem; margin-left: 6px;
    }
    .filters-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
    .js .filters:not(.is-open) { display: none; }
    .filters { padding: 12px; margin-bottom: 16px; }
    .filters input, .filters select { flex: 1 1 140px; min-width: 0; }
    .filters .f-age { flex: 1 1 80px; width: auto; }
    .filters input[type=checkbox], .filters input[type=radio] { flex: 0 0 auto; }
    .filters .btn { flex: 1 1 auto; }

    /* Grilles : deux profils par ligne au lieu d'un seul, immense. */
    .profile-grid, .land-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pc-body { padding: 9px 10px 11px; }
    .pc-name { font-size: .92rem; flex-wrap: wrap; }
    .pc-meta, .pc-loc { font-size: .76rem; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ads-grid { grid-template-columns: 1fr; gap: 12px; }
    .boost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Fil : photos bord à bord, actions confortables au pouce. */
    .post { padding: 14px; }
    .post-photo { margin: 10px -14px; }
    .post-photo img { max-height: 70vh; }
    .post-like { padding: 8px 10px; }
    .post-comment-form .btn, .post-comment-form button { padding: 8px 12px; }

    /* Profil. */
    .pd-banner { height: 120px; }
    .pd-self, .pd-actions, .pd-section, .share-bar { padding-left: 16px; padding-right: 16px; }
    .pd-head { padding: 0 16px 14px; }
    .self-stats { gap: 8px; }
    .self-stats > div { padding: 10px 6px; }
    .self-stats strong { font-size: 1.25rem; }

    /* Carte : plus haute, elle est l'intérêt de la page. */
    .map-box { height: 62vh; min-height: 320px; }

    /* Messagerie : la liste respire, la conversation occupe l'écran. */
    .conv-row { padding: 12px 4px; }
    .chat .bubble-row .bubble { max-width: 84%; }
    .bubble-media img, video.bubble-media { max-width: 100%; }
    .chat-form { padding: 10px; padding-bottom: 10px; }
    .chat-row .btn { padding: 10px 14px; flex-shrink: 0; }
    .page-chat .footer { display: none; }
    .page-chat .container { padding-top: 8px; padding-bottom: 8px; }
    .page-chat .back-link { margin-bottom: 8px; }
    .page-chat .chat {
        max-height: none;
        height: calc(100vh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        height: calc(100dvh - 168px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
    .page-chat .chat-body { min-height: 0; }

    /* Pied de page plus compact. */
    .footer { padding: 20px 14px; }

    /* Pages d'entrée (villes, pratiques). */
    .landing-liens-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
    .topbar .nav .btn.nav-guest { padding: 6px 9px; font-size: .8rem; }
    .form-row { flex-direction: column; gap: 14px; }
    .bottom-nav a { font-size: .6rem; }
}

/* =====================================================================
   Back-office — téléphones
   ---------------------------------------------------------------------
   Menu repliable (case à cocher + libellé : fonctionne sans JavaScript),
   tableaux transformés en cartes, grilles sur une colonne.
   ===================================================================== */
.admin-burger, .admin-nav-ico { display: none; }
.admin-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.admin-nav a.is-active { color: var(--text); font-weight: 700; }
.admin-table td { overflow-wrap: break-word; }
.admin-table .badge, .admin-table .btn { white-space: nowrap; }

@media (max-width: 760px) {
    .admin-topbar {
        flex-wrap: wrap; gap: 10px;
        padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
                 10px max(14px, env(safe-area-inset-left));
    }
    .admin-brand { font-size: .95rem; white-space: nowrap; }
    .admin-brand-txt { display: none; }

    .admin-burger {
        display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer;
        background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
        padding: 8px 12px; font-size: .9rem; font-weight: 600; max-width: 62%;
        -webkit-user-select: none; user-select: none;
    }
    .admin-burger-ico { font-size: 1.1rem; line-height: 1; }
    .admin-burger-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .admin-menu-cb:checked + .admin-burger { border-color: var(--primary); }

    .admin-nav { display: none; width: 100%; }
    .admin-menu-cb:checked ~ .admin-nav {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
        padding: 6px 0 4px; max-height: calc(100dvh - 80px); overflow-y: auto;
    }
    .admin-nav a {
        display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px;
        background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
        color: var(--text); font-size: .9rem; text-decoration: none;
    }
    .admin-nav a.is-active { border-color: var(--primary); background: rgba(224,69,123,.16); }
    .admin-nav-ico { display: inline; font-size: 1.05rem; }
    .admin-nav .admin-user { grid-column: 1; align-self: center; padding-left: 4px; }
    .admin-nav form.inline { grid-column: 2; }
    .admin-nav form.inline .btn { width: 100%; min-height: 46px; }

    .admin-body { padding-bottom: env(safe-area-inset-bottom); } /* pas de barre d'onglets ici */
    .admin-main { padding: 16px 12px 50px; }
    .admin-title { font-size: 1.45rem; margin: 2px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
    .admin-subtitle { margin-top: 16px; }
    .admin-panel { padding: 14px 12px; margin-bottom: 14px; }
    .admin-cols { grid-template-columns: 1fr; gap: 0; }
    .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
    .stat-card { padding: 9px 4px; gap: 0; }
    .stat-num, .stat-card strong { font-size: 1.2rem; }
    .stat-label, .stat-card span { font-size: .7rem; line-height: 1.25; }

    /* Onglets de modération : défilement horizontal plutôt que trois lignes. */
    .admin-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .admin-tabs a { white-space: nowrap; flex-shrink: 0; }

    /* Filtres du back-office : toujours visibles (pas de bouton « Filtres » ici). */
    .admin-body .filters { display: flex; }
    .admin-body .filters .btn { flex: 1 1 auto; }

    /* Tableaux à en-têtes → une carte par ligne, intitulé à gauche. */
    .admin-table.has-labels, .admin-table.has-labels tbody { display: block; }
    .admin-table.has-labels thead { display: none; }
    .admin-table.has-labels tr {
        display: block; background: var(--surface-2); border: 1px solid var(--border);
        border-radius: 12px; padding: 6px 12px; margin-bottom: 10px;
    }
    .admin-table.has-labels tr.row-flagged { border-color: var(--error); }
    .admin-table.has-labels td {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 7px 0; border-bottom: 1px solid var(--border); text-align: right; min-height: 34px;
    }
    .admin-table.has-labels td:last-child { border-bottom: none; }
    .admin-table.has-labels td::before {
        content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 600;
        text-align: left; flex-shrink: 0; max-width: 40%;
    }
    .admin-table.has-labels td.num { text-align: right; }
    .admin-table.has-labels td.cell-actions, .admin-table.has-labels td.cell-full {
        display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px;
    }
    .admin-table.has-labels td.cell-actions::before, .admin-table.has-labels td.cell-full::before { content: none; }
    .admin-table.has-labels td.cell-full { justify-content: center; text-align: center; }
    .admin-table.has-labels td img { max-width: 120px; height: auto; border-radius: 8px; }

    /* Fiche membre, vérifications, médias. */
    .member-head { flex-direction: column; gap: 12px; }
    .action-row .btn, .action-row form { flex: 1 1 auto; }
    .action-row form .btn { width: 100%; }
    .verif-row { flex-direction: column; align-items: stretch; }
    .verif-doc { flex-basis: auto; width: 100%; height: 180px; }
    .verif-actions .btn, .verif-actions form { flex: 1 1 auto; }
    .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mod-actions { flex-wrap: wrap; }
    .bubble { max-width: 88%; }
    .bubble-actions { gap: 4px 14px; }
    .link-btn { font-size: .82rem; padding: 6px 2px; }
    .code-block { white-space: pre-wrap; overflow-wrap: anywhere; }
}


/* =====================================================================
   Thème jour / nuit / automatique
   ---------------------------------------------------------------------
   Nuit par défaut. « Jour » est forcé par data-theme="light" sur <html> ;
   en « Auto » (pas d'attribut), le réglage du téléphone ou de
   l'ordinateur décide. Le choix est gardé dans le cookie lovers_theme,
   lu par le serveur pour éviter tout clignotement au chargement.
   ===================================================================== */
:root[data-theme="light"] {
    --bg:        #f6f2f8;
    --surface:   #ffffff;
    --surface-2: #f1ebf5;
    --text:      #1e1727;
    --muted:     #6b6078;
    --primary:   #d13a71;
    --primary-2: #d6457c;
    --border:    #e3d9ea;
    --success:   #1f9d57;
    --error:     #d93650;
    --surface-3:    #faf7fc;
    --admin-top:    #ffffff;
    --line:         #e3d9ea;
    --field-border: #d6c9e0;
    --tint:         rgba(40,15,60,.035);
    --tint-2:       rgba(40,15,60,.06);
    --tint-border:  rgba(40,15,60,.10);
    --ok-text:      #136b40;
    --err-text:     #a81d36;
    --warn-text:    #7d5100;
    --gold-text:    #9a6700;
    --info-text:    #0b6aa8;
    --ok-strong:    #168a4c;
    --err-strong:   #c42a4a;
    --warn-strong:  #b86e00;
    --chip-text:    #3b2f47;
    --muted-2:      #7a6c88;
    --faint:        #9a8fa8;
    --banner-bg:    linear-gradient(135deg, #fbe9f1, #efe6fb);
    --pattern-filter: invert(1);
    --pattern-opacity: .05;
    color-scheme: light;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg:        #f6f2f8;
        --surface:   #ffffff;
        --surface-2: #f1ebf5;
        --text:      #1e1727;
        --muted:     #6b6078;
        --primary:   #d13a71;
        --primary-2: #d6457c;
        --border:    #e3d9ea;
        --success:   #1f9d57;
        --error:     #d93650;
        --surface-3:    #faf7fc;
        --admin-top:    #ffffff;
        --line:         #e3d9ea;
        --field-border: #d6c9e0;
        --tint:         rgba(40,15,60,.035);
        --tint-2:       rgba(40,15,60,.06);
        --tint-border:  rgba(40,15,60,.10);
        --ok-text:      #136b40;
        --err-text:     #a81d36;
        --warn-text:    #7d5100;
        --gold-text:    #9a6700;
        --info-text:    #0b6aa8;
        --ok-strong:    #168a4c;
        --err-strong:   #c42a4a;
        --warn-strong:  #b86e00;
        --chip-text:    #3b2f47;
        --muted-2:      #7a6c88;
        --faint:        #9a8fa8;
        --banner-bg:    linear-gradient(135deg, #fbe9f1, #efe6fb);
        --pattern-filter: invert(1);
        --pattern-opacity: .05;
        color-scheme: light;
    }
}

/* Ombres plus douces et logo à texte foncé en mode jour. */
.logo-jour { display: none; }
:root[data-theme="light"] .logo-nuit { display: none; }
:root[data-theme="light"] .logo-jour { display: block; }
:root[data-theme="light"] .topbar, :root[data-theme="light"] .bottom-nav,
:root[data-theme="light"] .admin-topbar { box-shadow: 0 1px 10px rgba(60,20,80,.06); }
:root[data-theme="light"] .post, :root[data-theme="light"] .profile-card,
:root[data-theme="light"] .ad-card, :root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .card { box-shadow: 0 1px 4px rgba(60,20,80,.05); }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .logo-nuit { display: none; }
    :root:not([data-theme="dark"]) .logo-jour { display: block; }
    :root:not([data-theme="dark"]) .topbar, :root:not([data-theme="dark"]) .bottom-nav,
    :root:not([data-theme="dark"]) .admin-topbar { box-shadow: 0 1px 10px rgba(60,20,80,.06); }
    :root:not([data-theme="dark"]) .post, :root:not([data-theme="dark"]) .profile-card,
    :root:not([data-theme="dark"]) .ad-card, :root:not([data-theme="dark"]) .admin-panel,
    :root:not([data-theme="dark"]) .card { box-shadow: 0 1px 4px rgba(60,20,80,.05); }
}

/* L'accueil visiteur garde sa scène de nuit (carte et skyline), quel que
   soit le thème : c'est une illustration, pas une surface de lecture. */
.land-map {
    --text: #f3eef9; --muted: #a99fb8; --surface: #1a1622; --border: #2e2640;
    background: #0e0b14; color: var(--text);
}

/* Sélecteur Auto / Jour / Nuit. */
.theme-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px; cursor: pointer; font-size: 1.1rem;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 0;
}
.theme-btn:hover { border-color: var(--primary); }
.theme-switch {
    display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.theme-switch button {
    border: none; background: transparent; color: var(--muted); cursor: pointer;
    padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.theme-switch button[aria-pressed="true"] {
    background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
@media (max-width: 760px) {
    .theme-btn { width: 40px; height: 40px; }
}
.pd-theme { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-theme-label { margin: 0; font-weight: 600; }
.pd-theme-note { margin: 0; width: 100%; font-size: .8rem; }

/* =====================================================================
   Back-office — Audience
   ===================================================================== */
.aud-live { font-size: .8rem; font-weight: 600; color: var(--ok-strong); background: var(--tint-2);
    border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.aud-axe { display: flex; justify-content: space-between; font-size: .75rem; margin: 6px 2px 0; }
.aud-hours { height: 110px; }
.aud-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aud-list li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px;
    border-radius: 8px; overflow: hidden; font-size: .88rem; }
.aud-bar { position: absolute; inset: 0 auto 0 0; background: rgba(224,69,123,.16); border-radius: 8px; z-index: 0; }
.aud-label { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-n { position: relative; font-weight: 700; white-space: nowrap; }
.aud-n small { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* =====================================================================
   Back-office — Profils démo
   ===================================================================== */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.demo-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.demo-card:hover { border-color: var(--primary); text-decoration: none; }
.demo-avatar { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(255,255,255,.92); }
.demo-avatar img { width: 100%; height: 100%; object-fit: cover; }
.demo-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: .85rem; }
.demo-info strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-counts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.demo-go { font-size: 1rem; opacity: .7; white-space: nowrap; }

.demo-upload { max-width: 640px; margin-top: 0; }
.demo-dest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-dest label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.demo-dest input[type=radio] { width: auto; min-width: 0; flex: 0 0 auto; margin: 0; padding: 0;
    accent-color: var(--primary); }
.demo-dest label:has(input:checked) { border-color: var(--primary); background: rgba(224,69,123,.12); }
.demo-drop { position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 120px; padding: 18px; border: 2px dashed var(--field-border); border-radius: 14px; cursor: pointer;
    background: var(--tint); }
.demo-drop:hover, .demo-drop.is-over { border-color: var(--primary); }
.demo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.demo-drop-txt { font-weight: 600; line-height: 1.5; }
.demo-drop-txt small { font-weight: 400; }
.demo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.demo-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.demo-previews .is-ignored { opacity: .3; }
.demo-warn { margin: 0; color: var(--warn-text); background: rgba(245,176,65,.12); border: 1px solid var(--warn-strong);
    border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

@media (max-width: 760px) {
    .demo-grid { grid-template-columns: 1fr; }
    .aud-hours { height: 90px; }
    .admin-title .aud-live { font-size: .72rem; }
}
.aud-ip { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; white-space: nowrap; }
.aud-ua { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; overflow-wrap: anywhere; color: var(--muted); }
.aud-fiche th { width: 34%; vertical-align: top; }
.aud-vues { margin-bottom: 8px; }
.aud-vues a { font-weight: 600; }
@media (max-width: 760px) {
    .aud-fiche th, .aud-fiche td { display: block; width: 100%; border: none; padding: 2px 0; }
    .aud-fiche tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
    .aud-ip { white-space: normal; overflow-wrap: anywhere; }
}
.au-fil { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px;
    background: var(--tint); border: 1px solid var(--border); }
.au-fil[hidden] { display: none; }
.demo-fil { display: flex; flex-direction: column; gap: 8px; }
.demo-fil input[type=text] { background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-size: 1rem; }

/* Lien Instagram officiel (pied de page, accueil) */
.insta-link { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
    color: var(--text); background: var(--surface-2); border: 1px solid var(--border); font-weight: 600;
    font-size: .88rem; text-decoration: none; }
.insta-link:hover { text-decoration: none; color: #fff; border-color: transparent;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.insta-link svg { flex-shrink: 0; }
.insta-link-lg { font-size: 1rem; padding: 8px 18px; }
.footer-social { margin: 0 0 12px; }
.land-insta { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Accord avant l'envoi de photos (messagerie) */
.consent-card { margin: 0 12px 8px; padding: 10px 12px; border-radius: 12px; font-size: .88rem;
    background: var(--tint-2); border: 1px solid var(--border); }
.consent-card p { margin: 0 0 8px; line-height: 1.4; }
.consent-card p:last-child { margin-bottom: 0; }
.consent-card.pulse { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224,69,123,.25); }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-line { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; font-size: .8rem; }
.chat-attach.is-locked { opacity: .55; cursor: pointer; font-size: 1.1rem; }

/* STATS : visiteurs détaillés */
.stats-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: rgba(255,255,255,.92); }
.stats-av img { width: 100%; height: 100%; object-fit: cover; }
.stats-conn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stats-conn li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px;
    background: var(--tint); border: 1px solid var(--border); font-size: .88rem; }
.stats-conn li.stats-who { flex-direction: row; }
@media (max-width: 760px) {
    .admin-table.has-labels td.stats-who { justify-content: flex-end; }
}

/* Fenêtre « badge Vérifié » (numéro de portable) */
.tel-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(8,5,12,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    animation: telFond .25s ease; }
.tel-box { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px 18px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: telBoite .3s ease; }
.tel-box h2 { margin: 10px 0 8px; font-size: 1.3rem; }
.tel-box > p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.tel-badge .badge-v-lg { width: 54px; height: 54px; font-size: 28px; box-shadow: 0 6px 24px rgba(29,155,240,.45); }
.tel-form { display: flex; flex-direction: column; gap: 10px; }
.tel-form input[type=tel] { background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 12px; padding: 13px 14px; font-size: 1.1rem; text-align: center; letter-spacing: .04em; }
.tel-form input[type=tel]:focus { outline: 2px solid var(--primary); border-color: transparent; }
.tel-promesse { list-style: none; padding: 0; margin: 16px 0 6px; text-align: left; font-size: .85rem;
    display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.tel-promesse strong { color: var(--text); }
.tel-later { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem;
    padding: 10px; text-decoration: underline; }
.tel-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted);
    font-size: 1.1rem; cursor: pointer; padding: 6px; }
@keyframes telFond { from { opacity: 0; } to { opacity: 1; } }
@keyframes telBoite { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
    .tel-modal { align-items: flex-end; padding: 0; }
    .tel-box { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.tel-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; white-space: nowrap; }

/* Vidéos de profil et du fil */
.gallery-video { background: #000; display: flex; align-items: center; }
.gallery-video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.post-video video { width: 100%; max-height: 70vh; display: block; background: #000; }
.mod-item > video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #000; }
.media-warn { color: var(--warn-text); }

/* Cam à cam : bouton dans la conversation, appel entrant, écran de réponse */
.chat-cam { margin: 0 0 0 auto; }
.chat-head { display: flex; align-items: center; }
.cam-entrant { position: fixed; left: 0; right: 0; top: 0; z-index: 1300; display: flex; justify-content: center;
    padding: calc(10px + env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.cam-entrant-boite { pointer-events: auto; width: 100%; max-width: 440px; background: var(--surface); color: var(--text);
    border: 1px solid var(--primary); border-radius: 18px; padding: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.45);
    display: grid; grid-template-columns: 48px 1fr; gap: 6px 12px; align-items: center; animation: telBoite .3s ease; }
.cam-entrant-boite p { margin: 0; }
.cam-entrant-boite form { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.cam-entrant-boite form .btn { flex: 1 1 auto; }
.cam-entrant-av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: flex; align-items: center;
    justify-content: center; background: var(--surface-2); font-size: 1.4rem; animation: pulse-cam 1.4s infinite; }
.cam-entrant-av img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pulse-cam { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,69,123,.5); } 50% { box-shadow: 0 0 0 10px rgba(224,69,123,0); } }
.cam-incoming { max-width: 460px; text-align: center; }
.cam-incoming h1 { font-size: 1.35rem; }
.cam-in-avatar { width: 110px; height: 110px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; display: flex;
    align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: #fff; }
.cam-in-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cam-in-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* Bienvenue : profil à compléter */
.onb { max-width: 620px; margin: 0 auto; }
.onb-progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 14px 0 4px; }
.onb-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width .4s; }
.onb-compte { font-size: .85rem; margin: 0 0 14px; }
.onb-etape { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.onb-etape.is-ok { border-color: var(--ok-strong); opacity: .8; }
.onb-tete { display: flex; gap: 12px; align-items: flex-start; }
.onb-tete p { margin: 4px 0 0; font-size: .9rem; }
.onb-ico { font-size: 1.6rem; line-height: 1; }
.onb-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.onb-fichier { flex: 1 1 200px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 12px; border: 2px dashed var(--field-border); border-radius: 12px; cursor: pointer; background: var(--tint);
    font-weight: 600; overflow: hidden; }
.onb-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.onb-fichier span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.onb-filtre { border-style: dashed; }
.onb-pied { font-size: .82rem; margin-top: 16px; }

/* Demandes de contact (filtre des contacts) */
.cr-bandeau { display: flex; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px;
    background: rgba(224,69,123,.12); border: 1px solid var(--primary); color: var(--text); text-decoration: none; }
.cr-bandeau span { margin-left: auto; }
.cr-bandeau:hover { text-decoration: none; }
.cr-liste { display: flex; flex-direction: column; gap: 12px; }
.cr-carte { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.cr-av { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: #fff; }
.cr-av img { width: 100%; height: 100%; object-fit: cover; }
.cr-corps { flex: 1; min-width: 0; }
.cr-info { font-size: .82rem; margin-top: 2px; }
.cr-mot { margin: 8px 0 10px; font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.cr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-demande { margin: 0 12px 10px; }
.cr-form { display: flex; flex-direction: column; gap: 8px; }
.cr-form textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 16px; resize: vertical; }

/* Espace pro, agenda, vitrine */
.pro-onglets { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding-bottom: 4px; scrollbar-width: none; }
.pro-onglets a { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--border); color: var(--text); font-size: .9rem; text-decoration: none; }
.pro-onglets a.active { background: rgba(224,69,123,.16); border-color: var(--primary); font-weight: 700; }
.pro-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pro-chiffres a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
    text-align: center; color: var(--text); text-decoration: none; }
.pro-chiffres strong { display: block; font-size: 1.6rem; color: var(--primary-2); }
.pro-chiffres span { font-size: .8rem; color: var(--muted); }
.pro-actions { max-width: none; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pro-form-carte { max-width: 640px; margin: 0 0 16px; }
.pro-form-carte textarea { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px;
    padding: 10px 12px; font-family: inherit; font-size: 16px; width: 100%; }
.ev-liste { display: flex; flex-direction: column; gap: 10px; }
.ev-carte { display: flex; gap: 14px; align-items: stretch; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px; color: var(--text); text-decoration: none; }
.ev-carte:hover { border-color: var(--primary); text-decoration: none; }
.ev-carte.is-annule { opacity: .55; }
.ev-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px;
    background: linear-gradient(160deg, rgba(224,69,123,.22), rgba(122,92,255,.18)); font-size: .78rem; text-transform: uppercase; }
.ev-date strong { font-size: 1.5rem; line-height: 1; }
.ev-date small { text-transform: none; color: var(--muted); }
.ev-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-titre { font-size: 1rem; }
.ev-meta { font-size: .82rem; }
.ev-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ev-page { max-width: 640px; }
.ev-affiche { width: calc(100% + 56px); margin: -28px -28px 16px; max-height: 340px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.ev-org { margin: 0 0 10px; }
.ev-infos { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ev-desc { line-height: 1.55; }
.pro-vitrine h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pro-infos { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.pro-infos div { display: flex; gap: 10px; }
.pro-infos dt { flex: 0 0 22px; }
.pro-infos dd { margin: 0; line-height: 1.45; }
.pro-sous-titre { font-size: 1rem; margin: 14px 0 8px; }
.pro-boutons { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.pro-demande { flex: 1 1 260px; }
.pro-demande summary { list-style: none; cursor: pointer; }
.pro-demande summary::-webkit-details-marker { display: none; }
.pro-demande[open] summary { margin-bottom: 10px; }
.part-ligne { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--tint); }
.part-actions { margin-left: auto; }
.part-grille { display: flex; flex-wrap: wrap; gap: 8px; }
.part-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .85rem; }
@media (max-width: 760px) {
    .ev-affiche { width: calc(100% + 32px); margin: -20px -16px 14px; }
}

/* =====================================================================
   Back-office — menu en colonne à gauche, rangé par catégories
   ===================================================================== */
.admin-nav-groupe { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--faint); }
.admin-nav-compte { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary);
    color: #fff; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 761px) {
    .admin-body { padding-left: 236px; }
    .admin-topbar {
        position: fixed; left: 0; top: 0; bottom: 0; width: 236px; z-index: 20;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        padding: 18px 12px 16px; overflow-y: auto; border-bottom: none; border-right: 1px solid var(--border);
    }
    .admin-brand { padding: 0 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 1rem; }
    .admin-nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; justify-content: flex-start; gap: 1px; }
    .admin-nav-groupe { margin: 16px 10px 5px; }
    .admin-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted);
        font-size: .9rem; text-decoration: none; }
    .admin-nav a:hover { background: var(--tint-2); color: var(--text); }
    .admin-nav a.is-active { background: rgba(224,69,123,.16); color: var(--text); font-weight: 700; }
    .admin-nav-ico { display: inline-block; width: 20px; text-align: center; }
    .admin-nav .admin-user { margin: 18px 10px 6px; font-size: .85rem; }
    .admin-nav form.inline { margin: 0 10px; }
    .admin-nav form.inline .btn { width: 100%; }
    .admin-main { padding-top: 24px; }
}
@media (max-width: 760px) {
    .admin-menu-cb:checked ~ .admin-nav .admin-nav-groupe { grid-column: 1 / -1; margin: 10px 2px 0; }
    .admin-nav a .admin-nav-compte { margin-left: auto; }
}

/* Back-office sur téléphone : texte plus grand (toutes les tailles en rem suivent). */
@media (max-width: 760px) {
    html.admin-html { font-size: 112.5%; }                 /* 16 px → 18 px */
    .admin-html .stat-label, .admin-html .stat-card span { font-size: .8rem; }
    .admin-html .stat-num, .admin-html .stat-card strong { font-size: 1.35rem; }
    .admin-html .admin-table.has-labels td { font-size: .95rem; }
    .admin-html .admin-table.has-labels td::before { font-size: .8rem; }
    .admin-html .muted { font-size: inherit; }
    .admin-html .tag, .admin-html .badge { font-size: .78rem; }
    .admin-html .admin-nav a { font-size: 1rem; min-height: 50px; }
    .admin-html .admin-burger { font-size: 1rem; }
    .admin-html .btn-sm { font-size: .88rem; padding: 8px 12px; }
}

/* Support : contacter l'équipe */
.support-bandeau { margin: 0 12px 8px; padding: 10px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.45;
    background: rgba(29,155,240,.12); border: 1px solid rgba(29,155,240,.45); }
.support-lien { margin: -6px 0 14px; font-size: .9rem; }
