:root {
    --bg: #0f0a12;
    --surface: #1a1220;
    --surface-2: #241a2e;
    --border: #3a2a45;
    --text: #f2ecf5;
    --muted: #a89ab5;
    --primary: #e84d8a;
    --primary-2: #ff7a59;
    --success: #34d399;
    --error: #f87171;
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

/* ── Nav ── */
.nav {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    /* fond pleine largeur, contenu centré sur ~1100px */
    padding: 12px max(22px, calc((100vw - 1100px) / 2 + 22px));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.nav-logo {
    justify-self: start;
    font-size: 24px; font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: flex; align-items: center;
}
.nav-logo .logo-img { height: 38px; width: auto; display: block; }
.nav-logo:has(.logo-img) { background: none; -webkit-text-fill-color: initial; color: var(--text); }
.nav-center {
    display: flex; align-items: center; gap: 22px;
    justify-self: center; font-size: 15px;
}
.nav-center a { color: var(--muted); transition: color .15s; }
.nav-center a:hover, .nav-center a.active { color: var(--text); }
.nav-links { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links form.inline { display: inline; }
.link { background: none; border: none; color: var(--muted); }
.link:hover { color: var(--text); }
.badge {
    background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 99px; padding: 1px 7px; margin-left: 2px;
}

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }
.container-narrow { max-width: 560px; margin: 0 auto; }

/* ── Alerts ── */
.alert { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: var(--success); }
.alert-error { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: var(--error); }
.alert-info { background: rgba(96, 165, 250, .12); border: 1px solid rgba(96, 165, 250, .4); color: #93c5fd; word-break: break-all; }

/* ── Cards & buttons ── */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 10px; padding: 11px 22px;
    font-weight: 600; font-size: 15px; transition: filter .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: rgba(248,113,113,.15); border: 1px solid var(--error); color: var(--error); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }

/* ── Home ── */
.hero { text-align: center; padding: 70px 20px; }
.hero h1 {
    font-size: 52px; font-weight: 800; line-height: 1.1;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 18px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* ── Hero v2 (dynamique) ── */
/* Plein écran : hero + sections bord à bord, header classique au-dessus */
.home-fullscreen .container { max-width: none; padding: 0; margin: 0; }
.home-fullscreen .hero-v2 {
    margin: 0; min-height: 0;
    align-items: flex-start; padding-top: 90px; padding-bottom: 30px;
}

.hero-v2 {
    position: relative; overflow: hidden;
    margin: -28px -20px -60px; padding: 60px 20px 70px;
    min-height: calc(100vh - 62px);
    display: flex; align-items: center;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35;
    animation: blobFloat 12s ease-in-out infinite alternate;
}
.b1 { width: 420px; height: 420px; background: var(--primary); top: -120px; left: -100px; }
.b2 { width: 360px; height: 360px; background: var(--primary-2); bottom: -140px; right: -80px; animation-delay: -4s; }
.b3 { width: 260px; height: 260px; background: #a78bfa; top: 40%; left: 55%; animation-delay: -8s; }
@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 40px) scale(1.15); }
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
    align-items: center; max-width: 1000px; margin: 0 auto; width: 100%;
}
.hero-badge {
    display: inline-block; font-size: 15px; font-weight: 600;
    background: rgba(232, 77, 138, .12); border: 1px solid rgba(232, 77, 138, .4);
    color: var(--primary); padding: 8px 18px; border-radius: 99px; margin-bottom: 24px;
}
.hero-left h1 { font-size: 68px; font-weight: 800; line-height: 1.08; }
.typing {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cursor { color: var(--primary); font-weight: 300; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-left > p { color: var(--muted); font-size: 20px; margin: 24px 0 32px; max-width: 500px; line-height: 1.6; }
.hero-actions .btn { font-size: 17px; padding: 14px 28px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hstat strong { display: block; font-size: 38px; font-weight: 800; }
.hstat span { color: var(--muted); font-size: 15px; }

/* Cartes profil flottantes */
.hero-right { display: flex; justify-content: center; }
.hero-card-stack { position: relative; width: 320px; height: 400px; }
.float-card {
    position: absolute; width: 200px; padding: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
    animation: cardFloat 5s ease-in-out infinite;
}
.float-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; display: block; }
.fc-avatar {
    width: 100%; height: 170px; border-radius: 10px;
    background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.fc-info { padding: 8px 4px 0; }
.fc-info strong { display: block; font-size: 14px; }
.fc-info span { color: var(--muted); font-size: 12px; }
.fc-heart { position: absolute; top: 16px; right: 16px; color: var(--primary); font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.fc1 { top: 0; left: 0; transform: rotate(-6deg); }
.fc2 { top: 60px; left: 110px; transform: rotate(4deg); animation-delay: -1.6s; }
.fc3 { top: 200px; left: 20px; transform: rotate(-3deg); animation-delay: -3.2s; }
.fc4 { top: 230px; left: 140px; transform: rotate(5deg); animation-delay: -2.4s; width: 170px; }
@keyframes cardFloat {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -14px; }
}
.match-pop {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff; font-weight: 700; font-size: 14px;
    padding: 10px 22px; border-radius: 99px; white-space: nowrap;
    box-shadow: 0 10px 30px rgba(232, 77, 138, .5);
    animation: popIn 4s ease-in-out infinite;
}
@keyframes popIn {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.12); }
}

.online-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #4ade80;
    background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.35);
    border-radius: 99px; padding: 3px 10px; vertical-align: middle; margin-left: 8px;
}

/* ── Page profil détaillé ── */
.profile-view {
    display: grid; grid-template-columns: 340px 1fr; gap: 30px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-top: 12px;
}
.pv-photo { position: relative; min-height: 420px; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.pv-nophoto {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 90px; background: linear-gradient(135deg, var(--surface-2), var(--border));
}
.pv-info { padding: 28px 28px 22px; }
.pv-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-info h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.pv-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.pv-bio { background: var(--surface-2); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.pv-bio h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.pv-bio p { font-size: 14px; line-height: 1.7; }
.pv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pv-moderation { margin-top: 18px; font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
    .profile-view { grid-template-columns: 1fr; }
    .pv-photo { min-height: 320px; }
}

/* ── Sélecteur d'emojis (chat) ── */
.emoji-panel {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    width: 320px; max-height: 300px; overflow-y: auto;
    background: #1e1626;
    border: 1px solid rgba(232,77,138,.35); border-radius: 18px;
    padding: 14px; z-index: 60;
    box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.emoji-panel[hidden] { display: none; }
.emoji-panel::-webkit-scrollbar { width: 6px; }
.emoji-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
.ep-title {
    font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.ep-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ep-cat {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted); margin: 10px 0 5px;
}
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.ep-grid button {
    background: var(--surface-2); border: 1px solid transparent;
    font-size: 19px; padding: 6px 0; border-radius: 10px;
    line-height: 1; transition: all .12s;
}
.ep-grid button:hover {
    background: rgba(232,77,138,.2); border-color: rgba(232,77,138,.5);
    transform: scale(1.18);
}

/* ── Galerie photos ── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-item { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.pg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-cover {
    position: absolute; bottom: 6px; left: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
}
.pg-del {
    position: absolute; top: 6px; right: 6px;
    width: 24px; height: 24px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.65); color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center;
}
.pg-del:hover { background: var(--error); }

/* Miniatures sur la page profil */
.pv-thumbs {
    position: absolute; bottom: 12px; left: 12px; right: 12px;
    display: flex; gap: 8px; overflow-x: auto;
}
.pv-thumbs img {
    width: 58px; height: 58px; object-fit: cover; border-radius: 10px;
    border: 2px solid rgba(255,255,255,.7); cursor: pointer;
    transition: transform .15s, border-color .15s; background: #000;
}
.pv-thumbs img:hover { transform: scale(1.08); border-color: var(--primary); }

/* ── Modal de signalement ── */
.report-modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.report-modal[hidden] { display: none; }
.rm-box {
    width: 100%; max-width: 420px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.rm-box h3 { font-size: 18px; margin-bottom: 16px; }
.rm-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rm-chip input { display: none; }
.rm-chip span {
    display: inline-block; padding: 7px 14px; border-radius: 99px;
    border: 1px solid var(--border); background: var(--surface-2);
    font-size: 13px; cursor: pointer; transition: all .15s;
}
.rm-chip:hover span { border-color: var(--primary); }
.rm-chip input:checked + span {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border-color: transparent; color: #fff; font-weight: 600;
}
.rm-box textarea {
    width: 100%; padding: 10px 12px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 14px; resize: vertical; margin-bottom: 16px;
}
.rm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Galerie profil + lightbox ── */
.pv-gallery { margin-top: 18px; }
.pv-gallery h3 {
    font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); margin-bottom: 10px;
}
.pv-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-gallery-grid img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--border);
    cursor: zoom-in; transition: transform .15s, border-color .15s;
}
.pv-gallery-grid img:hover { transform: scale(1.04); border-color: var(--primary); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.8);
}
.lb-close {
    position: absolute; top: 18px; right: 22px;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.12); color: #fff; font-size: 20px;
}
.lb-close:hover { background: var(--error); }
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.12); color: #fff; font-size: 26px;
    transition: background .15s;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-count {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 14px; background: rgba(0,0,0,.5);
    padding: 6px 14px; border-radius: 99px;
}

/* ── Page auth split-screen ── */
.auth-page .nav { display: none; }
.auth-page .container { max-width: none; padding: 0; margin: 0; }
.auth-page .container > .alert { max-width: 420px; margin: 12px auto; }

.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-box { width: 100%; max-width: 400px; }

.auth-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 36px; }
.auth-logo .auth-logo-img { height: 56px; width: auto; display: block; }
.auth-logo-icon {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.auth-box h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 30px; }

.field-icon-wrap { position: relative; }
.field-icon-wrap input { padding-left: 44px; padding-right: 42px; }
.f-icon-left {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--muted); display: flex; pointer-events: none;
}
.eye-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); display: flex; padding: 4px;
}
.eye-btn:hover { color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row a { font-size: 12px; color: var(--primary); }
.label-row a:hover { text-decoration: underline; }

.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-btns { display: flex; gap: 12px; }
.social-btns button {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600;
    transition: border-color .15s;
}
.social-btns button:hover { border-color: var(--primary); }
.switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
.switch a { color: var(--primary); font-weight: 600; }

.auth-right {
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 80% 90%, rgba(255,122,89,.55), transparent 55%),
        radial-gradient(ellipse at 20% 10%, rgba(232,77,138,.5), transparent 55%),
        linear-gradient(160deg, #241a3e, #3a1430 55%, #4a1a2a);
    padding: 50px 30px;
}
.auth-right-inner { max-width: 420px; text-align: center; }
.auth-right h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.auth-right p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.7; margin-bottom: 44px; }
.auth-stats { display: flex; justify-content: center; gap: 44px; }
.as-item strong {
    display: block; font-size: 30px; font-weight: 800;
    background: linear-gradient(90deg, var(--primary-2), #fbbf24);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.as-item span { color: rgba(255,255,255,.65); font-size: 12px; }

@media (max-width: 800px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-right { display: none; }
}

/* ── Sections sous le hero ── */
.landing-section {
    padding: 40px 20px;
    text-align: center;
}
.landing-section > * { max-width: 1000px; margin-left: auto; margin-right: auto; }
.landing-section.alt { background: var(--surface); }
.landing-title { font-size: 34px; font-weight: 800; }
.landing-sub { color: var(--muted); margin: 10px auto 44px; font-size: 16px; max-width: 620px; text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.step-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px 22px;
    transition: transform .2s, border-color .2s;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--primary); }
.step-num {
    position: absolute; top: -14px; left: 20px;
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 34px; margin-bottom: 12px; }
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.feature-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.f-icon { font-size: 28px; display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Section "Des profils près de chez vous" ── */
.discover-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.mini-pill {
    display: inline-block; font-size: 13px; font-weight: 700;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 6px 16px; border-radius: 99px;
}
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-card {
    position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.p-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-nophoto {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 60px; background: linear-gradient(135deg, var(--surface-2), var(--border));
}
.p-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.p-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: #fff; }
.p-badge.verified { background: #f97316; }
.p-badge.prime { background: #eab308; color: #1a1205; }
.p-heart {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: transform .15s, color .15s;
}
.p-heart:hover { transform: scale(1.15); color: var(--primary); }
.p-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 44px 14px 14px; text-align: left;
    background: linear-gradient(transparent, rgba(0,0,0,.92));
}
.p-info strong { display: block; font-size: 15px; color: #fff; }
.p-info span { display: block; color: #ccc; font-size: 12px; margin: 5px 0 11px; }
.p-btn {
    display: block; text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 9px; border-radius: 8px; transition: filter .15s;
}
.p-btn:hover { filter: brightness(1.12); }

/* Boutons d'action sur les cartes Découvrir */
.p-actions { display: flex; gap: 7px; justify-content: center; margin-top: 4px; }
.pa-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #fff;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    transition: transform .15s, background .15s;
}
.pa-btn:hover { transform: scale(1.15); background: rgba(255,255,255,.28); }
.pa-btn.pass { color: #f87171; }
.pa-btn.star { color: #fbbf24; }
.pa-btn.like { color: #4ade80; }

/* Grille Découvrir : 4 colonnes, page plus large */
.wide-page .container { max-width: 1200px; }
.discover-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Barre de filtres Découvrir */
.filter-bar { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.f-field input[type="number"], .f-field input[type="text"], .f-field select {
    padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 14px; min-width: 130px;
}
.check-inline { display: flex; align-items: center; gap: 8px; padding: 9px 0; cursor: pointer; font-size: 14px; color: var(--text); }
.check-inline input { width: 16px; height: 16px; accent-color: var(--primary); }
.discover-grid .p-card { border-radius: 20px; }
.discover-grid .p-info strong { font-size: 18px; }
.discover-grid .p-info span { font-size: 13px; }
.discover-grid .pa-btn { width: 44px; height: 44px; font-size: 17px; }

.stats-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    background: linear-gradient(135deg, rgba(232,77,138,.12), rgba(255,122,89,.08));
    border: 1px solid rgba(232,77,138,.3);
    border-radius: var(--radius); padding: 36px 20px;
}
.band-item strong { display: block; font-size: 38px; font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.band-item span { color: var(--muted); font-size: 13px; }

.cta-final .cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 24px; padding: 60px 30px;
}
.cta-box h2 { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.2; }
.cta-box p { color: rgba(255,255,255,.85); margin: 14px 0 26px; }
.cta-box .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-box .btn-outline:hover { border-color: #fff; }
.cta-box .btn-primary { background: #fff; color: var(--primary); }

.landing-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}
/* Pleine largeur quand le footer est dans un .container classique */
.container > .landing-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 40px;
    margin-bottom: -60px;
}
.footer-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.footer-grid {
    max-width: 1100px; margin: 0 auto;
    padding: 48px 20px 36px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
    text-align: left;
}
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 14px 0 20px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); transition: color .15s, border-color .15s, transform .15s;
}
.socials a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    max-width: 1100px; margin: 0 auto;
    padding: 18px 20px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    color: var(--muted); font-size: 13px;
}

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-left h1 { font-size: 44px; }
    .hero-left > p { font-size: 17px; }
    .hero-v2 { min-height: auto; padding: 40px 20px 60px; }
    .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .landing-section { padding: 50px 20px; }
    .landing-title, .cta-box h2 { font-size: 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ── Discover ── */
.swipe-card {
    position: relative; max-width: 420px; margin: 0 auto;
    border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); background: var(--surface);
}
.swipe-card .photo {
    width: 100%; height: 480px; object-fit: cover; display: block; background: var(--surface-2);
}
.swipe-card .photo-placeholder {
    width: 100%; height: 480px; display: flex; align-items: center; justify-content: center;
    font-size: 64px; background: linear-gradient(135deg, var(--surface-2), var(--border));
}
.swipe-card .info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.swipe-card .info h2 { font-size: 26px; }
.swipe-card .info .meta { color: #ddd; font-size: 14px; margin-top: 4px; }
.swipe-card .info .bio { color: #ccc; font-size: 13px; margin-top: 8px; }
.super-flag {
    position: absolute; top: 14px; left: 14px;
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 99px;
}
.swipe-actions {
    display: flex; justify-content: center; gap: 22px; margin-top: 22px;
}
.swipe-actions button, .swipe-actions form button {
    width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); font-size: 26px; transition: transform .12s;
}
.swipe-actions button:hover { transform: scale(1.12); }
.swipe-actions .pass { color: var(--error); }
.swipe-actions .star { color: #fbbf24; }
.swipe-actions .like { color: var(--success); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 48px; margin-bottom: 14px; }

/* ── Matches ── */
.match-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    margin-bottom: 12px; transition: border-color .15s;
}
.match-item:hover { border-color: var(--primary); }
.avatar {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    background: var(--surface-2); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.match-item .grow { flex: 1; min-width: 0; }
.match-item .name { font-weight: 700; }
.match-item .sub { color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.on { background: var(--success); }
.dot.off { background: var(--muted); }

/* ── Chat ── */
.chat-box { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 400px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px 4px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 15px; word-break: break-word; }
.msg.mine { align-self: flex-end; background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg .time { display: block; font-size: 10px; opacity: .7; margin-top: 4px; }
.msg img { border-radius: 10px; max-width: 240px; display: block; }
.chat-form { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.chat-form input[type=text] {
    flex: 1; padding: 12px 16px; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.chat-form input[type=text]:focus { outline: none; border-color: var(--primary); }

/* ── Tables (admin) ── */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl tr:hover td { background: var(--surface-2); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card .num { font-size: 28px; font-weight: 800; }
.stat-card .lbl { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.pill.open { background: rgba(251,191,36,.15); color: #fbbf24; }
.pill.resolved { background: rgba(52,211,153,.15); color: var(--success); }
.pill.dismissed { background: rgba(167,139,250,.15); color: #a78bfa; }
.pill.banned { background: rgba(248,113,113,.15); color: var(--error); }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.tabs a.active { border-color: var(--primary); color: var(--primary); }
/* ── Sidebar admin ── */
.admin-nav {
    position: fixed; top: 0; bottom: 0; left: 0; width: 230px; z-index: 40;
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 20px 12px 16px; display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto;
}
.admin-nav .an-head {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted); padding: 0 12px 10px;
}
.admin-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px; font-size: 14px;
    color: var(--muted); transition: background .15s, color .15s;
}
.admin-nav a:hover { background: var(--surface-2); color: var(--text); }
.admin-nav a.active {
    background: linear-gradient(90deg, rgba(232,77,138,.18), rgba(255,122,89,.10));
    color: var(--primary); font-weight: 600;
}
.admin-nav .an-back {
    margin-top: auto; border-top: 1px solid var(--border);
    border-radius: 0; padding-top: 14px;
}
.admin-nav form { margin: 0; }
.admin-nav .an-logout {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 20px; background: none; border: 0; cursor: pointer;
    color: var(--muted); font-size: 14px; font-family: inherit; text-align: left;
}
.admin-nav .an-logout:hover { background: var(--surface-2); color: var(--error); }
.an-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
    background: var(--error); color: #fff; border-radius: 10px;
    font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(248,113,113,.5); } 50% { box-shadow: 0 0 0 5px rgba(248,113,113,0); } }
/* Décale le contenu quand la sidebar est présente */
body:has(.admin-nav) .container { margin-left: 254px; margin-right: 24px; max-width: none; }
.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.funnel-bar { height: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); min-width: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 700; color: #fff; }
.funnel-lbl { width: 130px; font-size: 13px; color: var(--muted); flex-shrink: 0; }

/* ── Mini graphique à barres (admin stats) ── */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bar-col .bar-fill { width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--primary), var(--primary-2)); min-height: 3px; margin-top: auto; }
.bar-col span { font-size: 10px; color: var(--muted); white-space: nowrap; transform: rotate(-45deg); transform-origin: center; }

/* ── Liste des connectés (admin stats) ── */
.online-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.online-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .15s; }
.online-item:hover { background: var(--surface-2); }
.online-item .online-name { font-weight: 600; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-item .online-seen { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ── Page Paramètres admin ── */
.admin-status { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 20px; }
.admin-status.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); }
.admin-status.warn { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .4); }
.dot.warn { background: var(--error); box-shadow: 0 0 8px rgba(248,113,113,.6); }
.dot.on { box-shadow: 0 0 8px rgba(52,211,153,.6); }

.settings-section { padding: 0; overflow: hidden; }
.settings-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.settings-icon { font-size: 22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; flex-shrink: 0; }

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.setting-info strong { font-size: 14px; }
.setting-info span { font-size: 12px; color: var(--muted); line-height: 1.4; }

.input { padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-family: inherit; }
.input:focus { outline: none; border-color: var(--primary); }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 27px; cursor: pointer; transition: .25s; }
.switch .slider::before { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: .25s; }
.switch input:checked + .slider { background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(21px); background: #fff; }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

/* Infos système */
.sysinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); }
.sysinfo > div { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.sysinfo span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.sysinfo strong { font-size: 15px; }

/* ── Pages légales ── */
.legal { padding: 34px 38px; line-height: 1.7; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; color: var(--text); }
.legal p { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.legal strong { color: var(--text); }

/* ── Page À propos : cadres latéraux ── */
.about-layout { display: grid; grid-template-columns: 190px minmax(0, 560px) 190px; gap: 24px; justify-content: center; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; position: sticky; top: 80px; }
.about-side .float-card.about-fc { position: static; width: 100%; transform: none; }
.about-side .float-card.about-fc:nth-child(2) { transform: rotate(2deg); }
.about-side:first-child .about-fc:nth-child(odd) { transform: rotate(-3deg); }
.about-side:last-child .about-fc:nth-child(even) { transform: rotate(3deg); }
@media (max-width: 1100px) { .about-layout { grid-template-columns: minmax(0, 560px); } .about-side { display: none; } }

/* ── Premium ── */
.premium-card { text-align: center; padding: 40px; }
.premium-card .price { font-size: 46px; font-weight: 800; margin: 12px 0; }
.premium-card .price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.premium-features { list-style: none; margin: 20px auto 30px; max-width: 300px; text-align: left; }
.premium-features li { padding: 8px 0; color: var(--muted); }
.premium-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* ── Photo upload ── */
.photo-preview { width: 140px; height: 140px; border-radius: 16px; object-fit: cover; border: 2px dashed var(--border); display: block; }

h1.page-title { font-size: 26px; font-weight: 800; margin-bottom: 18px; }
h2.section-title { font-size: 18px; font-weight: 700; margin: 26px 0 12px; }
.text-muted { color: var(--muted); font-size: 13px; }
.mt { margin-top: 16px; }

@media (max-width: 800px) {
    /* Sidebar admin → barre horizontale */
    .admin-nav {
        position: static; width: auto; flex-direction: row;
        padding: 8px; border-right: none; border: 1px solid var(--border);
        border-radius: 12px; margin-bottom: 20px; overflow-x: auto;
    }
    .admin-nav .an-head { display: none; }
    .admin-nav a { white-space: nowrap; }
    .admin-nav .an-back { margin-top: 0; border-top: none; padding-top: 10px; }
    body:has(.admin-nav) .container { margin-left: auto; margin-right: auto; max-width: 900px; }
}

@media (max-width: 640px) {
    .nav { padding: 10px 14px; }
    .nav-links { gap: 12px; font-size: 13px; }
    .nav-center { gap: 12px; font-size: 13px; }
    .hero h1 { font-size: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .swipe-card .photo, .swipe-card .photo-placeholder { height: 380px; }
}
