/* MeetU — Mode clair par défaut, mode sombre via [data-theme="dark"] */

:root {
    --bg: #f4f4f5;
    --bg-card: #ffffff;
    --bg-elevated: #e4e4e7;
    --text: #18181b;
    --text-muted: #71717a;
    --border: #d4d4d8;
    --primary: var(--theme-primary, #7c3aed);
    --primary-hover: #6d28d9;
    --secondary: var(--theme-secondary, #6366f1);
    --error: #dc2626;
    --success: #16a34a;
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 64px;
    --max-w: 1200px;
    --font: 'DM Sans', system-ui, -apple-system, sans-serif;
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg: #0f0f14;
    --bg-card: #18181f;
    --bg-elevated: #1f1f28;
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --border: #27272a;
    --primary: var(--theme-primary, #a855f7);
    --primary-hover: #c084fc;
    --error: #f87171;
    --success: #4ade80;
    --header-bg: rgba(15, 15, 20, 0.9);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

/* ----- Boutons (système global) ----- */
.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.25;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    color: #fff;
    background: var(--primary);
}

.btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--primary-hover);
    text-decoration: none;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}

.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
    color: var(--text);
    background: var(--bg-elevated);
    text-decoration: none;
}

.btn-outline {
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled):not([aria-disabled="true"]) {
    background: rgba(168, 85, 247, 0.12);
    text-decoration: none;
}

/* ----- Header (style MeetU/Wyylde) ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}
.site-header .brand:hover {
    text-decoration: none;
    color: var(--primary);
}

.site-header .nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header .nav-lang {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
}
.site-header .nav-lang a {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.site-header .nav-lang a:hover,
.site-header .nav-lang a.active {
    color: var(--text);
}

/* ----- Notifications (cloche header) ----- */
.site-header .nav-notifications {
    position: relative;
}
.site-header .nav-notifications__trigger {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    padding: 0.4rem 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
}
.site-header .nav-notifications__trigger:hover {
    background: var(--bg-card);
    color: var(--primary);
}
.site-header .nav-notifications__trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.site-header .nav-notifications__icon {
    display: block;
}
.site-header .nav-notifications__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.25rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: var(--error, #dc2626);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 2px var(--bg, #fff);
}
.site-header .nav-notifications__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin: 0.35rem 0 0;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 210;
    overflow: hidden;
}
.site-header .nav-notifications__dropdown[hidden] {
    display: none !important;
}
.site-header .nav-notifications__header {
    padding: 0.75rem 1rem 0.55rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.site-header .nav-notifications__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}
.site-header .nav-notifications__list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.site-header .nav-notifications__empty,
.site-header .nav-notifications__loading {
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.site-header .nav-notifications__item--unread {
    background: color-mix(in srgb, var(--primary, #7f1d1d) 8%, transparent);
}
.site-header .nav-notifications__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--text);
    text-decoration: none;
}
.site-header .nav-notifications__link:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}
.site-header .nav-notifications__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
}
.site-header .nav-notifications__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #7f1d1d);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}
.site-header .nav-notifications__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.site-header .nav-notifications__text {
    font-size: 0.875rem;
    line-height: 1.35;
}
.site-header .nav-notifications__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.site-header .nav-notifications__thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: auto;
    background: var(--bg-elevated);
}
.site-header .nav-notifications__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 0.55rem 1rem;
    text-align: center;
}
.site-header .nav-notifications__see-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.site-header .nav-notifications__see-all:hover {
    text-decoration: underline;
}

.site-header .nav-account {
    position: relative;
}

.site-header .nav-account__trigger {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header .nav-account__trigger:hover {
    background: var(--bg-card);
    color: var(--primary);
}

.site-header .nav-account__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}
.site-header .nav-account__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.site-header .nav-account__chevron {
    font-size: 0.7rem;
    opacity: 0.8;
}

.site-header .nav-account__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin: 0.35rem 0 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 220px;
    box-shadow: var(--shadow);
    z-index: 200;
}

.site-header .nav-account__dropdown .nav-account__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
}

.site-header .nav-account__dropdown .nav-account__item:hover {
    background: var(--bg-elevated);
    color: var(--primary);
}

.site-header .nav-account__dropdown .nav-account__item--logout:hover {
    color: var(--error);
}

.site-header .nav-account__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.site-header .nav-account__dropdown .nav-account__item:hover .nav-account__icon {
    color: inherit;
}

.site-header .nav-account__sep {
    height: 1px;
    margin: 0.35rem 0.5rem;
    background: var(--border);
    list-style: none;
}

.site-header .btn {
    padding: 0.5rem 1rem;
}
.site-header .btn-ghost:hover {
    color: var(--text);
    background: var(--bg-elevated);
}
.site-header .btn-primary:hover {
    background: var(--primary-hover);
}

/* Header vitrine : logo + connexion compacte + inscription (une seule barre) */
.site-header--merged {
    height: auto;
    min-height: var(--header-h);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.5rem 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.site-header--merged .site-header__member-form {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    row-gap: 0.35rem;
}
/* Champs email / mot de passe plus étroits */
.site-header--merged .meetu-member-bar__field {
    flex: 0 0 auto !important;
    width: 9rem;
    max-width: min(9rem, 32vw);
    min-width: 0;
}
@media (min-width: 992px) {
    .site-header--merged .meetu-member-bar__field {
        width: 9.5rem;
        max-width: 9.5rem;
    }
}

/* Header en mode mobile : pas d’étirement, tout tient sur une ligne */
@media (max-width: 768px) {
    .site-header {
        padding: 0 0.75rem;
        min-height: var(--header-h);
        height: auto;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }
    .site-header .brand {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .site-header .nav-main {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        flex: 1;
        min-width: 0;
    }
    .site-header .nav-account__label {
        display: none;
    }
    .site-header .nav-account__trigger {
        padding: 0.35rem 0.5rem;
    }
    .site-header .nav-notifications__trigger {
        padding: 0.35rem 0.45rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    .site-header .nav-notifications__dropdown {
        position: fixed;
        top: var(--header-h, 3.5rem);
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
        max-width: none;
        margin: 0.25rem 0 0;
        max-height: calc(100vh - var(--header-h, 3.5rem) - 1rem);
    }
    .site-header .nav-lang a {
        font-size: 0.8125rem;
    }
    .site-header .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8125rem;
    }
    .site-header--merged .site-header__member-form {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.15rem;
    }
    body.vitrine-meetu .site-header--merged .site-header__member-form {
        border-top-color: rgba(255, 255, 255, 0.12);
    }
    .site-header--merged .meetu-member-bar__field {
        width: min(42vw, 9.5rem);
        max-width: min(42vw, 9.5rem);
    }
    .meetu-header-member-label {
        display: none !important;
    }
}

/* ----- Footer ----- */
.site-footer {
    margin-top: auto;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.site-footer .footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer .footer-brand {
    font-weight: 700;
    color: var(--text);
}
.site-footer .footer-links {
    display: flex;
    gap: 1.5rem;
}
.site-footer .footer-links a {
    color: var(--text-muted);
}
.site-footer .footer-links a:hover {
    color: var(--text);
}
.site-footer .footer-lang {
    display: flex;
    gap: 0.5rem;
}
.site-footer .footer-lang a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ----- Vitrine : Hero avec image de fond ----- */
.hero-wrapper {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-vitrine-wrapper {
    min-height: 480px;
}

/* Hero : foule soirée (inclusif) */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1758272134196-1ab895629bce?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.75) 0%, rgba(15, 15, 20, 0.92) 100%);
}

.hero-wrapper .hero {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: var(--max-w);
    width: 100%;
}

.hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-vitrine {
    padding: 3rem 1.5rem 4rem;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c4b5fd;
    margin: 0 0 0.5rem;
}

.hero-tagline--accroche {
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #fff;
    max-width: 28rem;
    width: 100%;
}

.hero-brand {
    font-size: clamp(2.75rem, 8vw, 4.25rem);
    font-weight: 700;
    margin: 0 auto 0.35rem;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 720px;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 auto 0.75rem;
    color: #fff;
    line-height: 1.2;
    max-width: 720px;
    width: 100%;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem;
    max-width: 560px;
    width: 100%;
    padding: 0 0.5rem;
}

.hero .lead { font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); margin: 0 0 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-cta, .hero .cta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.hero .btn, .btn-hero {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-hero { padding: 1rem 2rem; font-size: 1.0625rem; }
.hero .btn-primary, .btn-hero.btn-primary {
    color: #fff;
    background: var(--primary);
}
.hero .btn-primary:hover, .btn-hero.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
}
.hero .btn-outline {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--border);
}
.hero .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* ----- Vitrine : sections dédiées ----- */
.vitrine-section {
    padding: 3rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Bandeau image ambiance */
.vitrine-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Bandeau citation : fond dégradé uniquement (pas de 2e image / parallax) */
.vitrine-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1c1917 0%, #292524 45%, #171412 100%);
    background-size: cover;
    background-position: center;
}
.vitrine-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.28);
}
.vitrine-banner-text {
    position: relative;
    z-index: 1;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 640px;
}

/* Bloc stats (proportion femmes/couples vs hommes) */
.vitrine-stats {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.vitrine-stats-inner {
    max-width: 480px;
    margin: 0 auto;
}
.vitrine-stats-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    text-align: center;
}
.vitrine-stats-bars {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.vitrine-stat {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 80px;
}
.vitrine-stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.vitrine-stat-value { font-size: 1.25rem; font-weight: 700; }
.vitrine-stat-women {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.vitrine-stat-women .vitrine-stat-value { color: var(--primary); }
.vitrine-stat-men {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.vitrine-stat-men .vitrine-stat-value { color: var(--secondary); }

/* Rejoignez + avantages en grille (fallback sans Bootstrap .row) */
.vitrine-join-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    color: var(--text);
    line-height: 1.3;
}
.vitrine-benefits:not(.row) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 1.25rem;
}
.vitrine-benefit {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.vitrine-benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vitrine-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12) !important;
}
.vitrine-benefit-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
}
.vitrine-benefit h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

/* Pratiques (liste type MeetU) */
.vitrine-practices-grid:not(.row) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}
.vitrine-practice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}
.vitrine-practice h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.vitrine-practice p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Cartes pratiques avec image */
.vitrine-practice-img {
    padding: 0;
    overflow: hidden;
}
.vitrine-practice-img-wrap {
    min-height: 140px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elevated);
}
.vitrine-practice-img .ratio .vitrine-practice-img-wrap {
    position: absolute;
    inset: 0;
    min-height: 0;
}
/* Cartes pratiques : inclusif (couple femmes, couple hommes, soirée groupe) */
.vitrine-practice-img[data-img="photo"] .vitrine-practice-img-wrap {
    background-image: url('https://images.unsplash.com/photo-1565128537362-b3a962ece546?w=560&q=80');
}
.vitrine-practice-img[data-img="chat"] .vitrine-practice-img-wrap {
    background-image: url('https://images.unsplash.com/photo-1607716842366-6b9248809948?w=560&q=80');
}
.vitrine-practice-img[data-img="event"] .vitrine-practice-img-wrap {
    background-image: url('https://images.unsplash.com/photo-1758272134196-1ab895629bce?w=560&q=80');
}
.vitrine-practice-content {
    padding: 1.25rem 1.5rem;
}

/* Galerie 3 images */
.vitrine-gallery:not(.row) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0;
}
.vitrine-gallery-item {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
}
@media (max-width: 640px) {
    .vitrine-gallery {
        grid-template-columns: 1fr;
    }
    .vitrine-gallery-item {
        aspect-ratio: 16/9;
    }
}

/* CTA final (mobile, tablette, ordinateur) */
.vitrine-cta-final {
    background: var(--bg-elevated);
    padding: 3rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}
.vitrine-cta-final-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}
.vitrine-cta-devices {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}
.btn-cta-final {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s;
}
.btn-cta-final:hover {
    background: var(--primary-hover);
    text-decoration: none;
    color: #fff;
}
.vitrine-cta-sidebar {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}
.vitrine-cta-sidebar .vitrine-cta-sidebar--desktop {
    display: inline;
}
.vitrine-cta-sidebar .vitrine-cta-sidebar--mobile {
    display: none;
}
@media (max-width: 1024px) {
    .vitrine-cta-sidebar .vitrine-cta-sidebar--desktop {
        display: none;
    }
    .vitrine-cta-sidebar .vitrine-cta-sidebar--mobile {
        display: inline;
    }
}

/* Parallax : uniquement le hero (image Unsplash), pas le bandeau citation */
.meetu-page .hero-parallax .hero-bg {
    background-attachment: fixed;
    background-position: center;
}
@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
    .meetu-page .hero-parallax .hero-bg {
        background-attachment: scroll;
    }
}

.vitrine-auth {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.vitrine-auth__tabs:not(.nav-pills) {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.vitrine-auth__tabs.nav-pills {
    margin-bottom: 1rem;
}
.vitrine-auth__tab:not(.nav-link) {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.vitrine-auth__tab:not(.nav-link):hover {
    color: var(--text);
}
.vitrine-auth__tab:not(.nav-link).is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.vitrine-auth__tab:not(.nav-link):focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.vitrine-auth__sidebar-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 1rem;
}
.vitrine-auth__panels {
    position: relative;
}
.vitrine-auth__panel {
    display: none;
}
.vitrine-auth__panel.is-active {
    display: block;
}
.vitrine-auth__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text);
}
.vitrine-auth__form .form-group {
    margin-bottom: 1rem;
}
.vitrine-auth__form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}
/* Ne pas cibler checkbox/radio : sinon width:100% + padding les étirent en barres */
.vitrine-auth__form input:not([type="checkbox"]):not([type="radio"]),
.vitrine-auth__form select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.vitrine-auth__form input:not([type="checkbox"]):not([type="radio"]):focus,
.vitrine-auth__form select:focus {
    outline: none;
    border-color: var(--primary);
}
.vitrine-auth__form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.vitrine-auth__form select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.vitrine-auth__form button[type="submit"]:not(.btn-meetu-primary):not(.btn-meetu-signup-cta) {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1.25rem;
    min-height: 2.75rem;
    font-size: 1rem;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vitrine-auth__form button[type="submit"]:not(.btn-meetu-primary):not(.btn-meetu-signup-cta):hover {
    background: var(--primary-hover);
}
.vitrine-auth__form button[type="submit"]:not(.btn-meetu-primary):not(.btn-meetu-signup-cta):focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary);
}
.vitrine-auth__form .form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.vitrine-auth__link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}
.vitrine-auth__link a {
    color: var(--text-muted);
}
.vitrine-auth__link a:hover {
    color: var(--primary);
}
.vitrine-auth--logged {
    text-align: center;
}
.vitrine-auth--logged .vitrine-auth__logged-text {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}
.vitrine-auth--logged .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    text-align: center;
}
.vitrine-auth--logged .btn:last-of-type {
    margin-bottom: 0;
}
.site-footer--in-vitrine {
    margin-top: 0;
    padding-top: 2rem;
}

/* ----- Page d’accueil MeetU (pleine largeur, scroll vertical) ----- */
.meetu-home {
    flex: 1;
    min-height: calc(100vh - var(--header-h));
}
.meetu-hero-min {
    min-height: 420px;
}
/* Hero + formulaire sur le même plan (slider) */
.meetu-hero-slider {
    min-height: min(calc(100vh - var(--header-h)), 920px);
}
.meetu-hero-slider .meetu-hero-slider__inner {
    min-height: inherit;
}
.meetu-hero-slider .hero-title,
.meetu-hero-slider .hero-brand {
    max-width: none;
}

/* Lisibilité du texte sur le slider : panneau semi-opaque + ombres */
.meetu-hero-text-wrap {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: var(--radius, 12px);
    background: rgba(10, 8, 12, 0.48);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 992px) {
    .meetu-hero-text-wrap {
        padding: 1.5rem 1.75rem 1.85rem;
        max-width: 38rem;
    }
}
body.vitrine-meetu .meetu-hero-slider .hero-title,
body.vitrine-meetu .meetu-hero-slider .hero-brand {
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.95),
        0 1px 4px rgba(0, 0, 0, 0.9),
        0 2px 18px rgba(0, 0, 0, 0.65);
}
body.vitrine-meetu .meetu-hero-slider .hero-tagline {
    color: #ffeef0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.12em;
}
body.vitrine-meetu .meetu-hero-slider .hero-tagline--accroche {
    color: #fff !important;
    letter-spacing: 0.01em;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.9),
        0 2px 12px rgba(0, 0, 0, 0.55);
}
.meetu-hero-lead {
    color: rgba(255, 255, 255, 0.96) !important;
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.88);
    max-width: 36rem;
}

.meetu-signup-card {
    /* Aligné sur la barre vitrine : bordeaux + bandeau titre noir/gris */
    --meetu-signup-navy: #1c1917;
    --meetu-signup-purple: var(--meetu-burgundy-light, #991b1b);
    --meetu-signup-purple-dark: var(--meetu-burgundy, #7f1d1d);
    background: #fff;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}
.meetu-signup-card__title {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.meetu-signup-card--hero {
    max-width: min(100%, 28rem);
    width: 100%;
    border-radius: var(--radius, 12px);
}
/* Formulaire hero plus compact : moins d’air entre label et champ / aide */
.meetu-signup-card--hero .meetu-field-row {
    margin-bottom: 0.22rem;
}
.meetu-signup-card--hero .meetu-field-stack__help {
    margin-top: 0.22rem;
}
/* La classe .vitrine-auth impose 360px — incompatible avec la carte pleine largeur */
.meetu-signup-card .meetu-signup-body.vitrine-auth {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 992px) {
    .meetu-hero-slider {
        min-height: 560px;
    }
    .meetu-hero-slider .row.align-items-center {
        min-height: 480px;
    }
}
@media (max-width: 991px) {
    .meetu-hero-slider {
        min-height: auto;
    }
}
body.vitrine-meetu .site-header__member-form .meetu-bar-input,
.meetu-member-bar .meetu-bar-input {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.meetu-member-bar__form {
    max-width: 100%;
}
/* Largeur par défaut (barre isolée si réutilisée ailleurs) */
.meetu-member-bar__field {
    flex: 1 1 160px;
    min-width: 0;
    width: min(100%, 260px);
}
.meetu-signup-card .meetu-submit-btn {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

/* Bandeau titre : même esprit que le header vitrine (noir / gris chaud, filet bordeaux) */
.meetu-card-header-signup {
    background: linear-gradient(180deg, #0c0a0a 0%, #1c1917 100%);
    border-bottom: 1px solid rgba(127, 29, 29, 0.45);
    min-height: 3.25rem;
}
.meetu-card-header-signup__accent {
    width: 2.75rem;
    height: 2rem;
    border-radius: 0.35rem;
    flex-shrink: 0;
    background: linear-gradient(
        145deg,
        rgba(185, 28, 28, 0.35) 0%,
        rgba(40, 20, 22, 0.9) 100%
    );
    border: 1px solid rgba(127, 29, 29, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.meetu-signup-subhead {
    letter-spacing: 0.08em;
    font-size: 0.7rem !important;
}
.meetu-signup-body .meetu-select-decor {
    border-color: #e2e8f0;
    font-size: 0.9375rem;
    min-height: 2.5rem;
    background-color: #f8fafc;
}
.meetu-field-hint {
    white-space: nowrap;
}
/* Labels empilés comme sur la maquette : titre + sous-ligne grise */
.meetu-field-stack__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}
.meetu-signup-body .vitrine-auth__form label.meetu-field-stack__label {
    margin-bottom: 0;
    color: #475569;
    font-weight: 600;
}
.meetu-field-stack__hint {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}
/* Ligne label + indice à droite (type MeetU) */
.meetu-field-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.meetu-field-row__hint {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}
.meetu-field-row__hint--optional {
    font-style: italic;
    opacity: 0.95;
}
.meetu-password-wrap {
    position: relative;
    display: block;
}
.meetu-password-wrap .meetu-password-input {
    padding-right: 2.75rem;
}
.meetu-password-toggle {
    position: absolute;
    right: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.45rem;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.25rem;
    line-height: 1;
    cursor: pointer;
}
.meetu-password-toggle:hover {
    color: var(--meetu-signup-purple, #991b1b);
    background: rgba(153, 27, 27, 0.1);
}
.meetu-password-toggle:focus-visible {
    outline: 2px solid var(--meetu-signup-purple, #991b1b);
    outline-offset: 1px;
}
.meetu-input-icon-wrap {
    position: relative;
    display: block;
}
.meetu-input-icon-wrap .meetu-input-icon-input {
    padding-right: 2.5rem;
}
.meetu-input-icon {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    pointer-events: none;
}
.meetu-input-icon svg {
    display: none;
    width: 100%;
    height: 100%;
}
.meetu-input-icon--loading .meetu-input-icon__spinner {
    display: block;
    color: #94a3b8;
    animation: meetu-input-icon-spin 0.7s linear infinite;
}
.meetu-input-icon--success .meetu-input-icon__check {
    display: block;
    color: #15803d;
}
.meetu-input-icon--error .meetu-input-icon__cross {
    display: block;
    color: #b91c1c;
}
@keyframes meetu-input-icon-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .meetu-input-icon--loading .meetu-input-icon__spinner {
        animation: none;
    }
}
.meetu-field-stack__help {
    display: block;
    margin-top: 0.35rem;
    color: #94a3b8 !important;
    line-height: 1.4;
}
.meetu-signup-body .form-control-meetu,
.meetu-signup-body .form-select:not(.meetu-select-decor) {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    min-height: 2.5rem;
    font-size: 0.9375rem;
}
.meetu-signup-body .vitrine-auth__form label.form-check-label {
    margin-bottom: 0;
}
.meetu-signup-body .form-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding-left: 0;
}
.meetu-signup-body .form-check .form-check-input {
    float: none;
    margin-left: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    min-width: 1.1em;
    min-height: 1.1em;
    max-width: none;
    padding: 0;
    border-radius: 0.25em;
}
.meetu-signup-card .form-check-input:checked {
    background-color: var(--meetu-signup-purple, #991b1b);
    border-color: var(--meetu-signup-purple, #991b1b);
}
.meetu-signup-card .form-check-input:focus {
    border-color: var(--meetu-signup-purple, #991b1b);
    box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.22);
}
.meetu-signup-placeholder {
    min-height: 3.25rem;
    border-radius: 0.3rem;
    background: linear-gradient(180deg, #eef2f6 0%, #e8edf3 100%);
    border: 1px solid #dde4ee;
}
.meetu-signup-placeholder--captcha {
    min-height: 4.75rem;
    width: 100%;
}
.meetu-link-legal {
    color: var(--meetu-signup-purple, #991b1b);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.meetu-link-legal:hover {
    color: var(--meetu-signup-purple-dark, #7f1d1d);
}
.meetu-check-label {
    line-height: 1.45;
}
.btn-meetu-signup-cta {
    color: #fff !important;
    background: linear-gradient(
        180deg,
        var(--meetu-signup-purple, #991b1b) 0%,
        var(--meetu-signup-purple-dark, #7f1d1d) 100%
    ) !important;
    border: none !important;
    border-radius: 0.35rem;
    box-shadow: 0 4px 18px rgba(127, 29, 29, 0.4);
}
.btn-meetu-signup-cta:hover {
    filter: brightness(1.07);
    color: #fff !important;
}
.btn-meetu-signup-cta:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--bg-card, #fff),
        0 0 0 4px var(--meetu-signup-purple, #991b1b);
}
body.vitrine-meetu .meetu-signup-body .form-control-meetu:focus,
body.vitrine-meetu .meetu-signup-body .form-select:focus {
    border-color: rgba(153, 27, 27, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.2);
}
.meetu-stat-card--women {
    background: linear-gradient(160deg, rgba(159, 18, 57, 0.12) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(159, 18, 57, 0.2) !important;
}
.meetu-stat-card--men {
    background: linear-gradient(160deg, rgba(30, 64, 175, 0.1) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(30, 64, 175, 0.2) !important;
}
.meetu-stat-num {
    color: var(--meetu-burgundy, #9f1239);
}
.meetu-stat-card--men .meetu-stat-num {
    color: #1d4ed8;
}
.meetu-benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.meetu-benefit-card:hover {
    transform: translateY(-3px);
}
.meetu-practice-card {
    background: var(--bg-card);
}
.meetu-quote-banner {
    min-height: 220px;
}
.meetu-footer__links {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.meetu-footer__linklist .nav-link.disabled {
    cursor: default;
    opacity: 1;
}
/* Gris bleuté type barre MeetU */
.meetu-footer__muted {
    color: #64748b !important;
}
[data-theme="dark"] .meetu-footer__links {
    background-color: var(--bg-card) !important;
    border-bottom-color: var(--border);
}
[data-theme="dark"] .meetu-footer__muted {
    color: var(--text-muted) !important;
}
.meetu-footer__legal {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

@media (max-width: 768px) {
    .hero-vitrine-wrapper {
        min-height: 360px;
    }
    .hero-vitrine {
        padding: 2rem 1rem 2.5rem;
    }
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
    }
    .hero-brand {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }
    .hero-tagline--accroche {
        font-size: clamp(1.05rem, 4.2vw, 1.3rem);
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-lead {
        font-size: 1rem;
    }
    .vitrine-section {
        padding: 2rem 1rem;
    }
    .vitrine-banner {
        min-height: 220px;
    }
    .vitrine-banner-text {
        font-size: 1.125rem;
        padding: 1.5rem 1rem;
    }
    .vitrine-join-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .vitrine-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .vitrine-benefit {
        padding: 1rem 0.75rem;
    }
    .vitrine-benefit h3 {
        font-size: 0.875rem;
    }
    .vitrine-practices-grid {
        grid-template-columns: 1fr;
    }
    .vitrine-cta-final {
        padding: 2rem 1rem;
    }
    .vitrine-cta-final-inner {
        padding: 0;
    }
    /* Champs tactiles plus grands sur mobile (hors cases à cocher) */
    .vitrine-auth__form input:not([type="checkbox"]):not([type="radio"]),
    .vitrine-auth__form select {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    .vitrine-auth__form button[type="submit"] {
        min-height: 48px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-vitrine-wrapper {
        min-height: 280px;
    }
    .hero-vitrine {
        padding: 1.5rem 0.75rem 2rem;
    }
    .vitrine-section {
        padding: 1.5rem 0.75rem;
    }
    .vitrine-benefits {
        grid-template-columns: 1fr;
    }
    .vitrine-stats-bars {
        flex-direction: column;
    }
    .vitrine-stat {
        min-height: 64px;
    }
    .vitrine-auth__title {
        font-size: 1.125rem;
    }
}

/* ----- Sections (blocs type MeetU/Wyylde) ----- */
.section {
    padding: 3rem 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--text);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ----- CTA block ----- */
.cta-block {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    margin: 0 1.5rem 3rem;
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}
.cta-block h2 {
    font-size: 1.375rem;
    margin: 0 0 0.75rem;
}
.cta-block p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

/* ----- Auth : formulaire centré (signin/signup) ----- */
.auth-page {
    min-height: calc(100vh - var(--header-h) - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 1.25rem;
}
.auth-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}
.auth-card input,
.auth-card select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.auth-card input:focus,
.auth-card select:focus {
    outline: none;
    border-color: var(--primary);
}
.auth-card button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;
    min-height: 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}
.auth-card button[type="submit"]:hover {
    background: var(--primary-hover);
}
.auth-card button[type="submit"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary);
}

.auth-card .message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.auth-card .message.error {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
}
.auth-card .message.success {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.auth-card .link-below {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}

/* ----- Pages internes (dashboard, search, etc.) ----- */
.page-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.page-header .nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header .nav-inner a {
    color: var(--text-muted);
}
.page-header .nav-inner a:hover {
    color: var(--primary);
}

.main-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem;
}

.main-content--wide {
    max-width: min(1600px, 96vw);
}

/* Page Préférences : largeur maxi, blocs bien à l’horizontal */
.main-content--wide.preferences-page {
    max-width: none;
    width: 100%;
    padding-left: clamp(1rem, 2vw, 2rem);
    padding-right: clamp(1rem, 2vw, 2rem);
    box-sizing: border-box;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--text);
}

.page-lead {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Étape 3 — Préférences / Choix de recherche (compact, large horizontal) */
.preferences-page {
    padding-bottom: 2rem;
}

.preferences-hero {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.06) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(124, 58, 237, 0.12);
}
[data-theme="dark"] .preferences-hero {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-color: rgba(124, 58, 237, 0.25);
}
.preferences-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.preferences-hero__lead {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.preferences-success {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(22, 163, 74, 0.12);
    border-radius: var(--radius-sm);
    color: var(--success);
}
.preferences-error {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
    color: var(--error);
}

.preferences-form.form-stack {
    max-width: none;
    width: 100%;
    margin: 0;
}

/* Les deux blocs "Je recherche" et "Mes envies" côte à côte à l'horizontal */
.preferences-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
}
.preferences-grid > * {
    min-width: 0;
}
@media (max-width: 600px) {
    .preferences-grid {
        grid-template-columns: 1fr;
    }
}

.preferences-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
    width: 100%;
}
.preferences-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .preferences-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.preferences-section--recherche {
    border-left: 3px solid var(--primary);
}
.preferences-section--envies {
    border-left: 3px solid #ec4899;
}

.preferences-section__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.preferences-section__icon {
    color: var(--primary);
    font-size: 1em;
}
.preferences-section--envies .preferences-section__icon {
    color: #ec4899;
}

/* Pills et tags en mode LIGNE (plusieurs par ligne), pas en colonne */
.preferences-section__list.preferences-section__list--pills,
.preferences-section__list.preferences-section__list--tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem 0.6rem;
    width: 100%;
}
.preferences-section__list--pills .preferences-pill,
.preferences-section__list--tags .preferences-tag {
    flex: 0 0 auto;
}

/* Pills "Je recherche" — compact */
.preferences-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1.5px solid var(--border);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.preferences-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.preferences-pill:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
}
.preferences-pill:has(input:checked) {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.14);
    border-color: var(--primary);
}
.preferences-pill:active {
    transform: scale(0.98);
}

/* Tags "Mes envies" — compact */
.preferences-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    border: 1.5px solid var(--border);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.preferences-tag input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.preferences-tag:hover {
    color: var(--text);
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(236, 72, 153, 0.05);
}
.preferences-tag:has(input:checked) {
    color: #be185d;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(124, 58, 237, 0.12) 100%);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.15);
}
.preferences-tag:has(input:checked) .preferences-tag__check {
    opacity: 1;
}
.preferences-tag:active {
    transform: scale(0.98);
}
.preferences-tag__check {
    margin-left: 0.25rem;
    font-size: 0.7em;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}
[data-theme="dark"] .preferences-tag:has(input:checked) {
    color: #f9a8d4;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.preferences-extra {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.preferences-section__title--extra {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}
.preferences-section__title--extra .preferences-section__icon {
    color: var(--text-muted);
}

.preferences-fields-row,
.form-stack__fields-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem 1rem;
}
@media (max-width: 900px) {
    .preferences-fields-row,
    .form-stack__fields-row {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 560px) {
    .preferences-fields-row,
    .form-stack__fields-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.preferences-fields-row .form-stack__field select {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.preferences-fields-row .form-stack__field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-stack__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.preferences-actions {
    padding-top: 0.25rem;
}
.btn--preferences-save {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn--preferences-save:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* Étape 3 inscription — proche dernière étape MeetU (bordeaux MeetU) */
.preferences-page--wizard {
    max-width: min(920px, 100%);
    margin: 0 auto;
}
.preferences-hero--wizard {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.08) 0%, rgba(127, 29, 29, 0.06) 100%);
    border: 1px solid rgba(127, 29, 29, 0.18);
    margin-bottom: 1.5rem;
}
[data-theme="dark"] .preferences-hero--wizard {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.18) 0%, rgba(69, 10, 10, 0.2) 100%);
    border-color: rgba(248, 113, 113, 0.2);
}
.preferences-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #991b1b;
}
.preferences-hero__intro {
    max-width: 42em;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.preferences-section--wizard.preferences-section--envies {
    border-left-color: #991b1b;
}
.preferences-section--wizard.preferences-section--recherche {
    border-left-color: #b91c1c;
}
.preferences-section__title--wizard {
    color: #7f1d1d;
    border-bottom-color: rgba(127, 29, 29, 0.2);
}
.preferences-section__title--wizard .preferences-section__icon {
    color: #991b1b;
}
.preferences-section__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.preferences-dropdowns {
    margin-bottom: 1.25rem;
}
.preferences-dropdowns__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 560px) {
    .preferences-dropdowns__row {
        grid-template-columns: 1fr;
    }
}
.preferences-dropdowns__field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    font-size: 0.9375rem;
}
.preferences-extra--wizard {
    margin-top: 0.5rem;
}
.preferences-fields-row--wizard {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
    .preferences-fields-row--wizard {
        grid-template-columns: 1fr;
    }
}
.preferences-actions--wizard {
    justify-content: stretch;
    padding-top: 1rem;
}
.btn-meetu-preferences-cta {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 0.4rem;
    color: #fff !important;
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 45%, #7f1d1d 100%) !important;
    box-shadow: 0 4px 18px rgba(127, 29, 29, 0.35);
    cursor: pointer;
}
.btn-meetu-preferences-cta:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

/* Page Mon profil — tout sur 1 écran */
.profile-me {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}
.profile-me__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.profile-me__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.profile-me__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.profile-me__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem 1rem;
    align-content: start;
}
@media (max-width: 900px) {
    .profile-me__grid {
        grid-template-columns: 1fr;
    }
}
.profile-me__block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    min-width: 0;
}
.profile-me__block-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--text);
}
.profile-me__block-title--sm {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0.5rem 0 0.25rem;
}
.profile-me__block-title--sm:first-child {
    margin-top: 0;
}
.profile-me__type {
    font-size: 0.8125rem;
    margin: 0;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}
.profile-me__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}
.profile-me__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    font-size: 0.75rem;
}
.profile-me__tag {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.profile-me__tag--envies {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: #be185d;
}
.profile-me__tag--muted {
    color: var(--text-muted);
}
.profile-me__description {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}
.profile-me__description-text {
    margin: 0;
}
.profile-me__description-text--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-me__read-more {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
}
.profile-me__read-more:hover {
    text-decoration: underline;
}
.profile-me__empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}
.profile-me__dl {
    margin: 0;
    font-size: 0.8125rem;
    display: grid;
    gap: 0.2rem 0.75rem;
    grid-template-columns: auto 1fr;
}
.profile-me__dl dt {
    margin: 0;
    color: var(--text-muted);
}
.profile-me__dl dd {
    margin: 0;
    color: var(--text);
}
.profile-me__persons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.profile-me__person {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.profile-me__person-label {
    font-weight: 600;
    color: var(--text-muted);
}
.profile-me__person-age {
    margin-left: 0.35rem;
    color: var(--text);
}
.profile-me__hint {
    font-size: 0.875rem;
    margin: 1rem 0 0;
    color: var(--text-muted);
}
.profile-me__empty-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.btn--sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
}

/* Carte Mon profil (legacy / view) */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    max-width: 560px;
}

.profile-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-card__pseudo {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.profile-card__type {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.profile-card__type--single_male,
.profile-card__type--single_female,
.profile-card__type--couple,
.profile-card__type--throuple,
.profile-card__type--quatuor {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.profile-card__meta {
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.profile-card__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.profile-card__row--full {
    grid-template-columns: 1fr;
}

.profile-card__row dt {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-card__row dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.profile-card__section {
    margin-bottom: 1.25rem;
}

.profile-card__section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.profile-card__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

.profile-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.profile-card__hint {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.profile-card__hint a {
    font-weight: 600;
}

.profile-card--empty {
    text-align: center;
    padding: 2rem;
}

.profile-card__empty-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

/* Fil d’Ariane */
.breadcrumb {
    margin-bottom: 1rem;
}
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.breadcrumb__item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 0.3em;
    height: 0.3em;
    margin-left: 0.5rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(-45deg);
    vertical-align: 0.15em;
}
.breadcrumb__item a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb__item a:hover {
    color: var(--primary);
}
.breadcrumb__item--current {
    color: var(--text);
}

.main-content h1 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}
.main-content .error {
    color: var(--error);
}
.main-content .success {
    color: var(--success);
}

/* Formulaire en colonne (étapes profil, etc.) */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 420px;
}

/* Formulaire avec grille personnes : utiliser toute la largeur */
.form-stack:has(.form-stack__persons-grid) {
    max-width: none;
    width: 100%;
}

.form-stack__fieldset {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.form-stack__legend {
    font-weight: 700;
    font-size: 1rem;
    color: var(--meetu-wine);
    margin: 0 0 0.25rem;
    padding: 0;
}

.form-stack__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-stack__field label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.form-stack__field input,
.form-stack__field select,
.form-stack__field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.form-stack__field input::placeholder,
.form-stack__field textarea::placeholder {
    color: var(--text-muted);
}

.form-stack__field input:focus,
.form-stack__field select:focus,
.form-stack__field textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-stack__field-error {
    display: block;
    font-size: 0.875rem;
    color: var(--error, #c00);
    margin-top: 0.25rem;
}

.form-stack__hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* Description profil : barre d’outils + emojis */
.description-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.5rem;
}
.description-counter {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.description-counter--warn {
    color: var(--error);
}
.description-emojis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.description-emoji-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.description-emoji-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
}

.form-stack__actions {
    margin-top: 0.5rem;
}

.form-stack__actions .btn {
    padding: 0.75rem 1.5rem;
    min-height: 2.75rem;
}

.form-stack fieldset {
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-stack fieldset legend {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.person-block__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.person-block__remove {
    padding: 0.2rem 0.5rem;
    min-height: auto;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--text-muted);
}

.person-block__remove:hover {
    color: var(--error);
}

.form-stack fieldset label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    margin-top: 0.25rem;
}

.form-stack fieldset input,
.form-stack fieldset select {
    width: 100%;
    max-width: 320px;
    padding: 0.5rem 0.75rem;
    font: inherit;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.form-stack fieldset input:focus,
.form-stack fieldset select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Grille personnes : colonnes larges, 4 / 2 / 1 selon la largeur */
.form-stack__persons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .form-stack__persons-grid {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
}

@media (max-width: 860px) {
    .form-stack__persons-grid {
        grid-template-columns: 1fr;
    }
}

.form-stack__persons-grid .person-block {
    min-width: 0;
}

.form-stack__persons-grid .person-block input,
.form-stack__persons-grid .person-block select {
    max-width: 100%;
}

.form-stack__persons-grid .person-block label {
    white-space: nowrap;
}

.form-stack__add-person {
    margin: 0 0 1rem;
}

.form-stack__add-person .btn {
    font-size: 0.9375rem;
}

/* Autocomplétion ville (geo.api.gouv.fr) */
.city-autocomplete {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.form-stack .city-autocomplete {
    max-width: 100%;
}

.city-autocomplete__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
}

.city-autocomplete__list[hidden] {
    display: none !important;
}

.city-autocomplete__item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.city-autocomplete__item:last-child {
    border-bottom: none;
}

.city-autocomplete__item:hover,
.city-autocomplete__item:focus {
    background: var(--bg-elevated);
    color: var(--text);
    outline: none;
}

body.meetu-app .city-autocomplete__item:hover,
body.meetu-app .city-autocomplete__item:focus {
    background: var(--meetu-burgundy-light);
    color: #fff;
}

/* ----- Mur d'actualité (feed) ----- */
.site-main--feed {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.25rem 1.5rem;
    flex: 1;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 1.25rem 1.5rem;
    align-items: start;
}

.feed-sidebar--left {
    grid-column: 1;
    position: sticky;
    top: calc(var(--header-h, 64px) + 1rem);
}

.feed-container {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

.feed-sidebar--right,
.feed-sidebar:not(.feed-sidebar--left) {
    grid-column: 3;
    position: sticky;
    top: calc(var(--header-h, 64px) + 1rem);
}

/* Ancienne classe seule .feed-sidebar (rétrocompat) */
.feed-sidebar {
    position: sticky;
    top: calc(var(--header-h, 64px) + 1rem);
}

/* ----- Tableau de bord type accueil connecté (réf. MeetU) ----- */
body.body-dashboard {
    background: var(--bg);
}

/*
 * Sidenav verticale : icône + label texte visible + badge à droite.
 *
 * Sélecteurs renforcés `body.meetu-app nav.meetu-dashboard-subnav` pour
 * battre Bootstrap 5 ET la règle globale `a { color: var(--primary) }`.
 *
 * Desktop (large + assez haut) : colonne, fond TRANSPARENT (pas de carte/ombre),
 *   inactif near-black, actif coral (#be123c) gras, fond transparent.
 * Mobile / phone paysage : barre horizontale scrollable (labels masqués),
 *   mêmes couleurs (actif coral, pas violet).
 *
 * Phone paysage : largeur souvent > 900px (iPhone Pro Max ~932) mais hauteur faible
 * → traité comme mobile via (orientation: landscape) and (max-height: 500px)
 *    ou max-width: 1023px.
 */
body.meetu-app nav.meetu-dashboard-subnav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---- Lien (inactif) ---- */
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link,
.meetu-dashboard-subnav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    color: var(--text);    /* gère light (#18181b) et dark (#e4e4e7) automatiquement */
    text-decoration: none !important;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    background: transparent;
    transition: color 0.15s, background 0.15s;
}
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link svg,
.meetu-dashboard-subnav__link svg {
    flex: none;
    display: block;
}
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link:hover,
.meetu-dashboard-subnav__link:hover {
    color: var(--text);
    background: var(--bg-elevated);
    text-decoration: none !important;
}
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link:focus-visible,
.meetu-dashboard-subnav__link:focus-visible {
    outline: 2px solid #be123c;
    outline-offset: 2px;
}

/* ---- Lien actif : texte + icône coral, fond transparent, gras ---- */
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link--active,
.meetu-dashboard-subnav__link--active {
    color: #be123c !important;
    background: transparent !important;
    font-weight: 700;
    box-shadow: none;
}
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link--active:hover,
.meetu-dashboard-subnav__link--active:hover {
    color: #be123c !important;
    background: rgba(190, 18, 60, 0.06) !important;
    text-decoration: none !important;
}
.meetu-dashboard-subnav__icon {
    display: inline-flex;
    flex: none;
}
.meetu-dashboard-subnav__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.meetu-dashboard-subnav__badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* Badge sur lien actif : rouge foncé sur fond transparent */
body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link--active .meetu-dashboard-subnav__badge,
.meetu-dashboard-subnav__link--active .meetu-dashboard-subnav__badge {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.meetu-dashboard-subnav__badge[hidden] {
    display: none;
}

/* ----- Layout générique « menu gauche + contenu » (pages sans feed-layout 3 colonnes) ----- */
.meetu-app-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    width: 100%;
    max-width: 1464px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
}
.meetu-app-layout__sidebar {
    flex: none;
    width: 240px;
    position: sticky;
    top: calc(var(--header-h, 64px) + 1.25rem);
}
.meetu-app-layout__main {
    flex: 1;
    min-width: 0;
}
.meetu-app-layout__main .meetu-page-content {
    max-width: none;
    margin: 0;
    padding: 0 0 2.5rem;
}
@media (max-width: 1023px), (orientation: landscape) and (max-height: 500px) {
    .meetu-app-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 1rem 0;
    }
    .meetu-app-layout__sidebar {
        width: 100%;
        position: static;
    }
    .meetu-app-layout__main {
        width: 100%;
        max-width: 100%;
    }
}

.dashboard-welcome {
    position: relative;
    margin: 0 0 1rem;
    padding: 1rem 2.25rem 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(127, 29, 29, 0.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.dashboard-welcome__header {
    margin-bottom: 0.35rem;
}
.dashboard-welcome__brand {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #991b1b;
}
.dashboard-welcome__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}
.dashboard-welcome__lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.dashboard-feed-info {
    position: relative;
    margin: 0 0 1rem;
    padding: 0.85rem 2.25rem 0.85rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--radius-sm);
}
[data-theme="dark"] .dashboard-feed-info {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(96, 165, 250, 0.25);
}
.dashboard-feed-info__title {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e40af;
}
[data-theme="dark"] .dashboard-feed-info__title {
    color: #93c5fd;
}
.dashboard-feed-info__body {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.meetu-dismissible[hidden] {
    display: none !important;
}

/* Croix fermeture type popin : haut-droite, discrete mais visible */
body.meetu-app .meetu-dismissible {
    position: relative;
}
body.meetu-app .meetu-dismissible > .meetu-dismissible__close,
.meetu-dismissible__close {
    position: absolute !important;
    top: 0.35rem !important;
    right: 0.35rem !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0.25rem;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: pointer;
    line-height: 1;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: color 0.15s ease;
}
body.meetu-app .meetu-dismissible > .meetu-dismissible__close .meetu-dismissible__close-mark,
.meetu-dismissible__close .meetu-dismissible__close-mark {
    display: block;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    color: inherit;
    pointer-events: none;
}
body.meetu-app .meetu-dismissible > .meetu-dismissible__close:hover,
.meetu-dismissible__close:hover {
    color: #64748b !important;
    background: transparent !important;
}
body.meetu-app .meetu-dismissible > .meetu-dismissible__close:focus-visible,
.meetu-dismissible__close:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 2px;
}
[data-theme="dark"] body.meetu-app .meetu-dismissible > .meetu-dismissible__close,
[data-theme="dark"] .meetu-dismissible__close {
    color: #94a3b8 !important;
}
[data-theme="dark"] body.meetu-app .meetu-dismissible > .meetu-dismissible__close:hover,
[data-theme="dark"] .meetu-dismissible__close:hover {
    color: #cbd5e1 !important;
    background: transparent !important;
}

.dashboard-panel {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.dashboard-panel__title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}
.dashboard-panel__muted {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.dashboard-panel__cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.dashboard-widget {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.dashboard-widget__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}
.dashboard-widget__hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.dashboard-widget__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}
.dashboard-widget__placeholder {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--border) 100%);
    opacity: 0.85;
}
.dashboard-widget__member {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.dashboard-widget__member-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    flex-shrink: 0;
}
.dashboard-widget__member-img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.dashboard-widget__member--match .dashboard-widget__member-thumb {
    border-color: #991b1b;
}
.dashboard-widget__member-name {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.dashboard-widget__member:hover .dashboard-widget__member-name {
    color: #991b1b;
}
.dashboard-widget__grid--photos {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
    .dashboard-widget__grid,
    .dashboard-widget__grid--photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
.dashboard-widget__placeholder--photo {
    aspect-ratio: 1;
}
.dashboard-widget__photo {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border);
    cursor: zoom-in;
    aspect-ratio: 1;
    line-height: 0;
    position: relative;
}
.dashboard-widget__photo:focus-visible {
    outline: 2px solid #be123c;
    outline-offset: 2px;
}
.dashboard-widget__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dashboard-widget__photo-likes {
    position: absolute;
    left: 0.35rem;
    bottom: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}
.dashboard-widget__link {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #991b1b;
}
.dashboard-widget__link:hover {
    text-decoration: underline;
}

.feed-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.feed-tabs__tab {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.feed-tabs__tab:hover {
    color: var(--text);
}

.feed-tabs__tab--active,
.feed-tabs__tab[aria-selected="true"] {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.feed-composer {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.feed-composer__inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feed-composer__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}
.feed-composer__avatar a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
}
.feed-composer__avatar-img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}

.feed-composer__avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

.feed-composer__body {
    flex: 1;
    min-width: 0;
}

.feed-composer__input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    resize: none;
    margin-bottom: 0.75rem;
}

.feed-composer__input::placeholder {
    color: var(--text-muted);
}

.feed-composer__input:focus {
    outline: none;
    border-color: var(--primary);
}

.feed-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feed-composer__icons {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.feed-composer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0.85;
    transition: color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.feed-composer__icon:hover:not(:disabled) {
    color: #991b1b;
    background: rgba(153, 27, 29, 0.06);
    opacity: 1;
}

.feed-composer__icon:focus-visible,
.feed-card__action:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 2px;
}

.feed-composer__icon:disabled,
.feed-composer__icon[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.45;
}

.feed-composer__icon svg {
    display: block;
    flex-shrink: 0;
}

.feed-composer__preview {
    position: relative;
    margin: 0.65rem 0 0.35rem;
    max-width: 100%;
}

.feed-composer__preview-media {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    max-width: 16rem;
}

.feed-composer__preview-image,
.feed-composer__preview-video {
    display: block;
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
    vertical-align: middle;
}

.feed-composer__preview-clear {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.35rem;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    cursor: pointer;
    appearance: none;
}

.feed-composer__preview-clear:hover {
    background: rgba(15, 23, 42, 0.75);
}

.feed-composer__emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.5rem 0 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.feed-composer__emoji-panel[hidden] {
    display: none !important;
}

.feed-composer__emoji-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    background: transparent;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
}

.feed-composer__emoji-btn:hover,
.feed-composer__emoji-btn:focus-visible {
    background: rgba(153, 27, 29, 0.08);
    border-color: rgba(153, 27, 29, 0.2);
}

.feed-composer__emoji-btn:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 1px;
}

.feed-card__media {
    margin-top: 0.65rem;
    margin-bottom: 0.15rem;
    margin-left: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    /* Pas de border boîte : évite un 2e trait sous le contenu / au-dessus du like */
    background: var(--bg-elevated);
}

.feed-card__image,
.feed-card__video {
    display: block;
    width: 100%;
    max-height: 28rem;
    object-fit: contain;
    background: #0f172a;
}

.feed-composer__submit {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
}

.feed-error {
    color: var(--error);
    font-size: 0.9375rem;
    margin: 0.5rem 0;
}

.feed-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1rem;
    margin: 0;
}

.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-card {
    padding: 1rem 0;
    /* Un seul séparateur entre actus */
    border-bottom: 1px solid var(--border);
}

.feed-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.feed-card__avatar {
    display: inline-flex;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.feed-card__avatar:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 2px;
}

.feed-card__avatar-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

.feed-card__avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.feed-card__title-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.feed-card__name {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

a.feed-card__name:hover {
    color: #991b1b;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

a.feed-card__name:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: 2px;
    border-radius: 0.15rem;
}

.feed-card__time {
    flex-shrink: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--text-muted);
    white-space: nowrap;
}

.feed-card__content {
    padding-left: 52px;
}

.feed-card__content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
}

.feed-card__footer {
    display: flex;
    gap: 1.5rem;
    padding-left: 52px;
    margin-top: 0.45rem;
    border: 0;
    box-shadow: none;
}

.feed-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: 0.35rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.feed-card__action svg {
    display: block;
    flex-shrink: 0;
}

.feed-card__action:hover {
    color: #991b1b;
    background: rgba(153, 27, 29, 0.06);
}

.feed-card__action--like:hover {
    color: #be123c;
}

.feed-card__action--like.is-liked,
.feed-card__action--like[aria-pressed="true"] {
    color: #be123c;
}

.feed-card__action--like.is-liked svg,
.feed-card__action--like[aria-pressed="true"] svg {
    fill: currentColor;
}

.feed-card__action--like:disabled {
    cursor: wait;
    opacity: 0.7;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1023px), (orientation: landscape) and (max-height: 500px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }
    .feed-container {
        grid-column: 1;
        order: 2;
    }
    .feed-sidebar--left {
        grid-column: 1;
        order: 1;
        position: static;
        margin-bottom: 0.75rem;
    }
    .feed-sidebar--right,
    .feed-sidebar:not(.feed-sidebar--left) {
        grid-column: 1;
        order: 3;
        position: static;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
    .feed-sidebar {
        position: static;
    }

    /* Sidenav -> barre horizontale icones seules (mobile) */
    body.meetu-app nav.meetu-dashboard-subnav,
    .meetu-dashboard-subnav {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.15rem;
        padding: 0.4rem 0.5rem;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border) !important;
        border-radius: 0 !important;
        position: sticky;
        top: var(--header-h, 64px);
        z-index: 5;
        scrollbar-width: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }
    body.meetu-app nav.meetu-dashboard-subnav::-webkit-scrollbar,
    .meetu-dashboard-subnav::-webkit-scrollbar {
        display: none;
    }
    body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link,
    .meetu-dashboard-subnav__link {
        flex: 1 1 0;
        justify-content: center;
        width: auto;
        min-width: 2.75rem;
        min-height: 2.75rem;
        padding: 0.5rem;
        gap: 0;
        color: var(--text);
    }
    body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__link--active,
    .meetu-dashboard-subnav__link--active {
        color: #be123c !important;
        background: rgba(190, 18, 60, 0.08) !important;
    }
    /* Labels masques : accessibilite via title / aria-current sur le lien */
    body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__label,
    .meetu-dashboard-subnav__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body.meetu-app nav.meetu-dashboard-subnav .meetu-dashboard-subnav__badge,
    .meetu-dashboard-subnav__badge {
        position: absolute;
        top: 0.2rem;
        right: 0.15rem;
        margin-left: 0;
    }
}

/* Utilitaire : masquer le header vitrine sur les pages auth si besoin */
body.body-auth .site-header .nav-main .btn-primary { display: none; }

/* ----- Design system « MeetU » (homepage = référence) ----- */
body.meetu-app {
    --meetu-burgundy: #7f1d1d;
    --meetu-burgundy-light: #991b1b;
    --meetu-wine: #450a0a;
    --meetu-rose: #fecdd3;
    --meetu-men: #1e3a5f;
    --meetu-men-light: #1d4ed8;
    background: #f5f5f4;
}
[data-theme="dark"] body.meetu-app {
    background: var(--bg);
}
body.vitrine-meetu {
    background: #f5f5f4;
}

@media (min-width: 992px) {
    .min-vh-lg-100 {
        min-height: 100vh;
    }
}

body.meetu-app .site-header {
    background: linear-gradient(180deg, #0c0a0a 0%, #1c1917 100%);
    border-bottom: 1px solid rgba(127, 29, 29, 0.5);
    backdrop-filter: none;
}
body.meetu-app .site-header .brand {
    color: #fafaf9;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 0.02em;
}
body.meetu-app .site-header .brand:hover {
    color: var(--meetu-rose);
    text-decoration: none;
}
body.meetu-app .site-header .nav-lang a {
    color: #a8a29e;
}
body.meetu-app .site-header .nav-lang a:hover,
body.meetu-app .site-header .nav-lang a.active {
    color: #fafaf9;
}
body.meetu-app .site-header .btn-ghost {
    color: #d6d3d1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.meetu-app .site-header .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
/* Normalisation btn-primary → MeetU burgundy dans tout le contexte meetu-app */
body.meetu-app .btn-primary {
    background: linear-gradient(180deg, var(--meetu-burgundy-light) 0%, var(--meetu-burgundy) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #fff;
}
body.meetu-app .btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    filter: brightness(1.08);
    background: linear-gradient(180deg, #b91c1c 0%, var(--meetu-burgundy-light) 100%);
    color: #fff;
    text-decoration: none;
}
/* Vitrine : idem pour btn-primary hors app (signup header) */
body.vitrine-meetu .btn-primary {
    background: linear-gradient(180deg, var(--meetu-burgundy-light, #991b1b) 0%, var(--meetu-burgundy, #7f1d1d) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #fff;
}
body.vitrine-meetu .btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}
/* Alias hérité – garder le .site-header overscoped pour rétrocompat */
body.meetu-app .site-header .btn-primary {
    background: linear-gradient(180deg, var(--meetu-burgundy-light) 0%, var(--meetu-burgundy) 100%);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #fff;
}
body.meetu-app .site-header .btn-primary:hover {
    filter: brightness(1.08);
    background: linear-gradient(180deg, #b91c1c 0%, var(--meetu-burgundy-light) 100%);
    color: #fff;
    text-decoration: none;
}

body.meetu-app .site-header .nav-account__trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e7e5e4;
}
body.meetu-app .site-header .nav-account__trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.meetu-app .site-header .nav-account__avatar {
    background: var(--meetu-burgundy);
}
body.meetu-app .site-header .nav-notifications__trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e7e5e4;
}
body.meetu-app .site-header .nav-notifications__trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
body.meetu-app .site-header .nav-notifications__badge {
    box-shadow: 0 0 0 2px var(--meetu-wine, #450a0a);
}
body.meetu-app .site-header .nav-notifications__item--unread {
    background: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
}
body.meetu-app .site-header .nav-notifications__avatar--fallback {
    background: var(--meetu-burgundy, #7f1d1d);
}
body.meetu-app .site-header .nav-notifications__see-all {
    color: var(--meetu-burgundy-light, #991b1b);
}

.font-meetu-display {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.meetu-heading {
    color: var(--meetu-wine);
}
[data-theme="dark"] body.vitrine-meetu .meetu-heading {
    color: #fecaca;
}

/* Hero : voile plus léger — photo visible, léger bordeaux à gauche */
body.vitrine-meetu .hero-bg::after {
    background: linear-gradient(
        115deg,
        rgba(110, 35, 48, 0.38) 0%,
        rgba(55, 42, 48, 0.42) 32%,
        rgba(32, 28, 32, 0.48) 58%,
        rgba(18, 16, 20, 0.52) 100%
    );
}

body.vitrine-meetu .vitrine-banner-bg::after {
    background: linear-gradient(
        100deg,
        rgba(95, 32, 42, 0.35) 0%,
        rgba(40, 36, 40, 0.45) 50%,
        rgba(22, 20, 24, 0.5) 100%
    );
}

.meetu-page .meetu-progress-women {
    background: linear-gradient(90deg, #9f1239 0%, #be123c 100%) !important;
}
.meetu-page .meetu-progress-men {
    background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 100%) !important;
}

.btn-meetu-primary {
    color: #fff !important;
    background: linear-gradient(180deg, var(--meetu-burgundy-light) 0%, var(--meetu-burgundy) 100%) !important;
    border: none !important;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(127, 29, 29, 0.35);
}
.btn-meetu-primary:hover {
    filter: brightness(1.06);
    color: #fff !important;
}

.btn-meetu-cta {
    color: #fff !important;
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(153, 27, 27, 0.45);
}
.btn-meetu-cta:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.meetu-card-header {
    background: linear-gradient(145deg, var(--meetu-wine) 0%, #1c1917 100%);
}

.form-control-meetu {
    border-radius: 0.25rem;
    border-color: var(--border);
}
.form-control-meetu:focus {
    border-color: var(--meetu-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.2);
}

/* Native <select> — MeetU (chevron SVG, pas de chrome OS) */
.meetu-select {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.35;
    color: var(--text);
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.meetu-select:hover {
    border-color: var(--meetu-burgundy-light, #991b1b);
}
.meetu-select:focus {
    outline: none;
}
.meetu-select:focus-visible {
    outline: none;
    border-color: var(--meetu-burgundy, #991b1b);
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.18);
}
.meetu-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
[data-theme="dark"] .meetu-select {
    background-color: var(--bg-elevated, var(--bg-card));
}

body.vitrine-meetu .vitrine-auth__form .form-control,
body.vitrine-meetu .vitrine-auth__form .form-select {
    width: 100%;
}

body.vitrine-meetu .vitrine-auth__form button[type="submit"].btn-meetu-primary,
body.vitrine-meetu .vitrine-auth__form button[type="submit"].btn-meetu-signup-cta {
    margin-top: 0.25rem;
}

body.vitrine-meetu .vitrine-auth__panel .vitrine-auth__title {
    color: var(--text);
}

/* Pop-in « vérifiez votre e-mail » après inscription (homepage) */
.min-h-feedback {
    min-height: 1.25rem;
}
.signup-verify-dialog__resend-feedback.text-success {
    color: #15803d !important;
}
.signup-verify-dialog__resend-feedback.text-danger {
    color: #b91c1c !important;
}
.signup-verify-dialog {
    padding: 0;
    border: none;
    max-width: min(100%, 28rem);
    width: calc(100% - 2rem);
    background: transparent;
}
.signup-verify-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
.signup-verify-dialog__inner {
    background: #fff;
}
.signup-verify-dialog__banner {
    position: relative;
    background: linear-gradient(
        180deg,
        var(--meetu-burgundy-light, #991b1b) 0%,
        var(--meetu-burgundy, #7f1d1d) 100%
    );
    letter-spacing: 0.02em;
    padding-right: 2.75rem !important;
}
.signup-verify-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    line-height: 1;
}
.signup-verify-dialog__close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.signup-verify-dialog__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.signup-verify-dialog__later {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 0.875rem;
}
.signup-verify-dialog__later:hover {
    color: #1c1917 !important;
    text-decoration: underline !important;
}
.signup-verify-dialog__title {
    font-size: 0.95rem;
    line-height: 1.4;
}
.signup-verify-dialog__body {
    background: #f8fafc;
}
.signup-verify-dialog__email {
    word-break: break-all;
    color: #1c1917;
}
.signup-verify-dialog__btn-mail {
    background: #6b7280 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
}
.signup-verify-dialog__btn-mail:hover {
    filter: brightness(1.08);
    color: #fff !important;
}
.signup-verify-dialog__btn-primary {
    background: linear-gradient(
        180deg,
        var(--meetu-burgundy-light, #991b1b) 0%,
        var(--meetu-burgundy, #7f1d1d) 100%
    ) !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 0.35rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.25;
}
.signup-verify-dialog__btn-primary:hover {
    filter: brightness(1.06);
    color: #fff !important;
}
.signup-verify-dialog__btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}
.signup-verify-dialog__footer {
    background: #fff;
}
.signup-verify-dialog__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}
.signup-verify-dialog__action-form {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
@media (min-width: 480px) {
    .signup-verify-dialog__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        max-width: none;
        gap: 0.75rem;
    }
    .signup-verify-dialog__action-form,
    .signup-verify-dialog__actions > .btn {
        flex: 1 1 11rem;
        max-width: 14rem;
        width: auto;
    }
}

/* ----- Pages auth (signin / signup) — fond hero comme homepage ----- */
.meetu-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meetu-auth-page {
    position: relative;
    flex: 1;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}

.meetu-auth-page__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            rgba(110, 35, 48, 0.42) 0%,
            rgba(55, 42, 48, 0.5) 32%,
            rgba(32, 28, 32, 0.58) 58%,
            rgba(18, 16, 20, 0.65) 100%
        ),
        url('https://images.unsplash.com/photo-1758272134196-1ab895629bce?w=1920&q=80') center / cover no-repeat;
    z-index: 0;
}

.meetu-auth-page .meetu-signup-card {
    max-width: 26rem;
}

.meetu-auth-page .meetu-signup-body .form-control-meetu,
.meetu-auth-page .meetu-signup-body .form-select {
    width: 100%;
}

/* Alertes harmonisées */
.meetu-alert {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}
.meetu-alert--error {
    background: rgba(185, 28, 28, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.25);
}
.meetu-alert--success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
.meetu-alert--warning {
    background: rgba(180, 83, 9, 0.1);
    color: #92400e;
    border: 1px solid rgba(180, 83, 9, 0.28);
}
.meetu-alert--warning .meetu-alert__feedback.is-success {
    color: #15803d;
}
.meetu-alert--warning .meetu-alert__feedback.is-error {
    color: #b91c1c;
}
.meetu-alert--warning .meetu-alert__feedback.is-info {
    color: #92400e;
}
.btn-meetu-resend {
    background: #fff;
    color: #7f1d1d;
    border: 1px solid rgba(127, 29, 29, 0.35);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
}
.btn-meetu-resend:hover:not(:disabled) {
    background: rgba(127, 29, 29, 0.06);
    color: #7f1d1d;
    border-color: rgba(127, 29, 29, 0.5);
}
.btn-meetu-resend:focus-visible {
    outline: 2px solid #7f1d1d;
    outline-offset: 2px;
}
.btn-meetu-resend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----- Pages internes connectées ----- */
body.body-dashboard {
    background: #f5f5f4;
}
[data-theme="dark"] body.body-dashboard {
    background: var(--bg);
}

.meetu-page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 2.5rem;
    width: 100%;
}

.meetu-page-content--wide {
    max-width: min(1600px, 96vw);
}

.meetu-page-header {
    margin-bottom: 1.25rem;
}
.meetu-page-header--with-action {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.meetu-page-header__title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    color: var(--meetu-wine);
    line-height: 1.2;
}
[data-theme="dark"] .meetu-page-header__title {
    color: #fecaca;
}
.meetu-page-header__lead {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    max-width: 42em;
}

.meetu-content-card {
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
    margin-bottom: 1.25rem;
}
[data-theme="dark"] .meetu-content-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.meetu-content-card--detail .meetu-detail-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.meetu-detail-body {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text);
}
.meetu-detail-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.meetu-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}
.meetu-dl dt {
    font-weight: 600;
    color: var(--text-muted);
}
.meetu-dl dd {
    margin: 0;
    color: var(--text);
}

/* Listes (recherche, événements, chat) */
.meetu-results-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}
.meetu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
}
[data-theme="dark"] .meetu-list {
    background: var(--bg-card);
    border-color: var(--border);
}
.meetu-list__item {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.meetu-list__item:last-child {
    border-bottom: none;
}
.meetu-list__link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--meetu-wine);
    text-decoration: none;
}
.meetu-list__link:hover {
    color: var(--meetu-burgundy-light);
    text-decoration: underline;
}
[data-theme="dark"] .meetu-list__link {
    color: #fecaca;
}
.meetu-list__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.meetu-list__empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.meetu-list__empty .meetu-link-legal {
    display: block;
    margin-top: 0.5rem;
}

.meetu-pagination {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ── Chat list grid ──────────────────────────────────────────────────────── */
.chat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .chat-grid {
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        gap: 1.25rem;
    }
}
.chat-grid__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    padding: 0.85rem 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-align: center;
    min-height: 100%;
}
.chat-grid__card:hover {
    border-color: color-mix(in srgb, var(--meetu-burgundy) 35%, var(--border));
    box-shadow: 0 6px 18px rgba(28, 25, 23, 0.08);
    transform: translateY(-1px);
}
.chat-grid__card--unread {
    border-color: color-mix(in srgb, var(--meetu-burgundy) 45%, var(--border));
}
.chat-grid__avatar-wrap {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
}
.chat-grid__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #f5f5f4;
    border: 2px solid color-mix(in srgb, var(--meetu-burgundy) 18%, transparent);
}
.chat-grid__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--meetu-burgundy);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.35rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-card);
}
.chat-grid__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
}
.chat-grid__pseudo {
    font-weight: 650;
    font-size: 0.92rem;
    color: var(--meetu-wine, #450a0a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-grid__card--unread .chat-grid__pseudo {
    color: var(--meetu-burgundy);
}
.chat-grid__preview {
    font-size: 0.78rem;
    color: var(--text-muted, #78716c);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chat-grid__preview--empty {
    font-style: italic;
    opacity: 0.8;
}
.chat-grid__time {
    font-size: 0.7rem;
    color: var(--text-muted, #a8a29e);
}
.chat-grid-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.5rem 0;
    color: var(--text-muted, #78716c);
}

/* ── Chat FAB (bas-droite) ───────────────────────────────────────────────── */
.chat-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9000;
    width: 3.75rem;
    height: 3.75rem;
    border: none;
    border-radius: 50%;
    background: var(--meetu-burgundy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(127, 29, 29, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.chat-fab:hover {
    background: var(--meetu-burgundy-light, #991b1b);
    transform: scale(1.05);
    box-shadow: 0 10px 32px rgba(127, 29, 29, 0.55);
}
.chat-fab:focus-visible {
    outline: 2px solid var(--meetu-rose, #fecdd3);
    outline-offset: 3px;
}
.chat-fab__icon { display: block; }
.chat-fab__badge {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: var(--meetu-burgundy);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.45rem;
    text-align: center;
    box-shadow: 0 0 0 2px var(--meetu-burgundy);
}
.chat-fab--unread {
    animation: chat-fab-pulse 2.2s ease-in-out infinite;
}
@keyframes chat-fab-pulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(127, 29, 29, 0.45); }
    50% { box-shadow: 0 8px 28px rgba(127, 29, 29, 0.45), 0 0 0 6px rgba(127, 29, 29, 0.18); }
}

/* ── Chat Popin master-detail (WhatsApp-like) ────────────────────────────── */
.chat-popin {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    background: transparent;
    box-shadow: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    position: fixed;
    inset: 0;
}
.chat-popin[open] {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.chat-popin::backdrop {
    background: rgba(15, 10, 10, 0.55);
}
@media (min-width: 768px) {
    .chat-popin {
        width: min(1100px, calc(100vw - 2rem));
        height: min(85vh, calc(100vh - 2rem));
        max-height: min(85vh, calc(100vh - 2rem));
        margin: auto;
        border-radius: var(--radius-sm);
    }
}
@media (min-width: 1024px) {
    .chat-popin {
        width: min(1200px, calc(100vw - 2rem));
        height: min(88vh, calc(100vh - 2rem));
        max-height: min(88vh, calc(100vh - 2rem));
    }
}

.chat-popin__shell {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: inherit;
    overflow: hidden;
    box-shadow: none;
}
.chat-popin__shell--page {
    min-height: min(72vh, 40rem);
    height: min(72vh, 40rem);
    border-radius: var(--radius-sm);
    box-shadow: none;
}
.meetu-page-content--chat-app {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}
.chat-page {
    width: 100%;
}
@media (min-width: 768px) {
    .chat-popin__shell {
        grid-template-columns: minmax(280px, 32%) 1fr;
    }
    .chat-popin__shell--page {
        min-height: min(84vh, calc(100vh - var(--header-h) - 2.5rem));
        height: min(84vh, calc(100vh - var(--header-h) - 2.5rem));
    }
}
@media (min-width: 1024px) {
    .chat-popin__shell--page {
        min-height: min(88vh, calc(100vh - var(--header-h) - 2rem));
        height: min(88vh, calc(100vh - var(--header-h) - 2rem));
    }
}

/* Sidebar liste */
.chat-popin__sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--border);
    background: #fafaf9;
}
[data-theme="dark"] .chat-popin__sidebar {
    background: var(--bg-elevated);
}
.chat-popin__side-header,
.chat-popin__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-sizing: border-box;
    height: 3.5rem;
    min-height: 3.5rem;
    padding: 0 1rem;
    background: var(--meetu-burgundy);
    color: #fff;
}
.chat-popin__side-header {
    justify-content: space-between;
}
.chat-popin__side-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.2;
}
.chat-popin__search {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
[data-theme="dark"] .chat-popin__search {
    background: var(--bg-elevated);
}
.chat-popin__search-input {
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card, #fff);
    color: var(--text);
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.chat-popin__search-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}
.chat-popin__search-input:focus {
    outline: none;
    border-color: var(--meetu-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.2);
}
.chat-popin__list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
.chat-popin__list-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}
.chat-popin__list-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.chat-popin__list-btn:hover {
    background: color-mix(in srgb, var(--meetu-burgundy) 6%, transparent);
}
.chat-popin__list-item.is-active .chat-popin__list-btn {
    background: color-mix(in srgb, var(--meetu-burgundy) 12%, transparent);
}
.chat-popin__list-item.is-unread .chat-popin__list-pseudo {
    font-weight: 750;
    color: var(--meetu-burgundy);
}
.chat-popin__list-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
    background: #e7e5e4;
}
.chat-popin__list-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.chat-popin__list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.chat-popin__list-pseudo {
    font-weight: 650;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-popin__list-subtitle {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted, #78716c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.chat-popin__list-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.chat-popin__list-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.chat-popin__list-badge {
    flex-shrink: 0;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--meetu-burgundy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
}

/* Thread */
.chat-popin__thread {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--bg-card);
}
/* Header thread : règles partagées plus haut (.chat-popin__side-header, .chat-popin__header) */
.chat-popin__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.35rem;
}
.chat-popin__back:hover { background: rgba(255,255,255,0.12); }
.chat-popin__peer,
.chat-popin__peer:link,
.chat-popin__peer:visited {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    color: #fff;
    text-decoration: none;
    border-radius: 0.35rem;
    margin: -0.15rem 0;
    padding: 0.15rem 0.25rem 0.15rem 0;
}
.chat-popin__peer:hover,
.chat-popin__peer:focus-visible,
.chat-popin__peer:active {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
}
.chat-popin__peer:hover .chat-popin__other-name,
.chat-popin__peer:focus-visible .chat-popin__other-name {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.chat-popin__peer:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}
.chat-popin__peer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
    flex: 1;
}
.chat-popin__header-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
}
.chat-popin__other-name {
    color: inherit;
    font-weight: 650;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
}
.chat-popin__other-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.chat-popin__other-subtitle[hidden] {
    display: none;
}
.chat-popin__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.35rem;
}
.chat-popin__close:hover { background: rgba(255,255,255,0.12); }
.chat-popin__close--thread { margin-left: auto; }

.chat-popin__placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
    background: #f5f5f4;
}
[data-theme="dark"] .chat-popin__placeholder {
    background: var(--bg-elevated);
}
.chat-popin__placeholder-icon { opacity: 0.45; color: var(--meetu-burgundy); }
.chat-popin__placeholder p { margin: 0; max-width: 16rem; font-size: 0.95rem; }

.chat-popin__messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: #f5f5f4;
    min-height: 0;
}
[data-theme="dark"] .chat-popin__messages {
    background: var(--bg-elevated);
}
.chat-popin__empty,
.chat-popin__loading {
    margin: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}
.chat-popin__bubble {
    max-width: min(78%, 26rem);
    padding: 0.5rem 0.75rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    word-break: break-word;
    box-shadow: none;
}
.chat-popin__bubble--mine {
    align-self: flex-end;
    background: var(--meetu-burgundy);
    color: #fff;
    border-bottom-right-radius: 0.2rem;
}
.chat-popin__bubble--theirs {
    align-self: flex-start;
    background: #fff;
    color: var(--text, #1c1917);
    border: 1px solid var(--border);
    border-bottom-left-radius: 0.2rem;
}
[data-theme="dark"] .chat-popin__bubble--theirs {
    background: var(--bg-card);
    border-color: var(--border);
}
.chat-popin__text { white-space: pre-wrap; }
.chat-popin__time {
    align-self: flex-end;
    font-size: 0.68rem;
    opacity: 0.75;
    line-height: 1;
}
.chat-popin__bubble--mine .chat-popin__time { color: rgba(255,255,255,0.8); }
.chat-popin__bubble--theirs .chat-popin__time { color: var(--text-muted, #78716c); }

.chat-popin__composer {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card, #fff);
}
[data-theme="dark"] .chat-popin__composer {
    background: var(--bg-elevated);
}
.chat-popin__input {
    flex: 1;
    resize: none;
    min-height: 2.75rem;
    max-height: 7.5rem;
    padding: 0.65rem 0.85rem;
    margin: 0;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--text, #18181b);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.chat-popin__input:hover {
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 35%, var(--border));
}
.chat-popin__input:focus,
.chat-popin__input:focus-visible {
    outline: none;
    border-color: var(--meetu-burgundy, #7f1d1d);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 28%, transparent);
}
/* Annule focus Bootstrap / form-control-meetu (anneau bleu UA) sur le composer */
.chat-popin__input.form-control-meetu:focus,
.chat-popin__input.form-control:focus {
    outline: none;
    border-color: var(--meetu-burgundy, #7f1d1d);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 28%, transparent);
}
[data-theme="dark"] .chat-popin__input {
    background: var(--bg-card);
    color: var(--text);
}
.btn.chat-popin__send,
button.btn.chat-popin__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    gap: 0;
    border-radius: var(--radius-sm, 8px);
    background: var(--meetu-burgundy, #7f1d1d) !important;
    box-shadow: none !important;
}
.btn.chat-popin__send:hover:not(:disabled),
button.btn.chat-popin__send:hover:not(:disabled) {
    filter: brightness(1.08);
    background: var(--meetu-burgundy-light, #991b1b) !important;
}
.btn.chat-popin__send:focus-visible,
button.btn.chat-popin__send:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg-card, #fff), 0 0 0 4px var(--meetu-burgundy, #7f1d1d) !important;
}
.chat-popin__send-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile : liste OU thread */
@media (max-width: 767px) {
    .chat-popin__shell--thread .chat-popin__sidebar { display: none; }
    .chat-popin__shell:not(.chat-popin__shell--thread) .chat-popin__thread { display: none; }
    .chat-popin__close--thread { display: none; }
}

/* ── Toast notification (au-dessus du FAB) ──────────────────────────────── */
.chat-toast {
    position: fixed;
    bottom: 5.5rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--meetu-wine, #450a0a);
    color: var(--meetu-rose, #fecdd3);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm, 0.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    font-size: 0.875rem;
    font-weight: 600;
    max-width: 20rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-toast--visible {
    opacity: 1;
    transform: translateY(0);
}
.chat-toast__icon {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Chat — pleine page WhatsApp */
.meetu-chat {
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
    display: flex;
    flex-direction: column;
    min-height: min(70vh, 36rem);
    max-height: calc(100vh - 10rem);
}
[data-theme="dark"] .meetu-chat {
    background: var(--bg-card);
    border-color: var(--border);
}
.meetu-chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--meetu-burgundy);
    color: #fff;
}
.meetu-chat__header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
}
.meetu-chat__header-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.meetu-chat__header-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.meetu-chat__header-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meetu-chat__header-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.meetu-chat__header-link:hover {
    color: #fff;
}
.meetu-chat__messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background:
        linear-gradient(180deg, rgba(127, 29, 29, 0.03), transparent 8rem),
        #f5f5f4;
}
[data-theme="dark"] .meetu-chat__messages {
    background: var(--bg-elevated);
}
.meetu-chat__bubble {
    max-width: min(78%, 28rem);
    padding: 0.5rem 0.75rem 0.35rem;
    border-radius: 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    word-break: break-word;
}
.meetu-chat__bubble--mine {
    align-self: flex-end;
    background: var(--meetu-burgundy);
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}
.meetu-chat__bubble--theirs {
    align-self: flex-start;
    background: #fff;
    color: var(--text, #1c1917);
    border: 1px solid rgba(127, 29, 29, 0.1);
    border-bottom-left-radius: 0.25rem;
}
[data-theme="dark"] .meetu-chat__bubble--theirs {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}
.meetu-chat__text {
    white-space: pre-wrap;
}
.meetu-chat__time {
    align-self: flex-end;
    font-size: 0.68rem;
    opacity: 0.75;
    line-height: 1;
}
.meetu-chat__bubble--mine .meetu-chat__time {
    color: rgba(255, 255, 255, 0.8);
}
.meetu-chat__bubble--theirs .meetu-chat__time {
    color: var(--text-muted, #78716c);
}
.meetu-chat__empty {
    color: var(--text-muted);
    text-align: center;
    margin: auto;
    font-size: 0.9375rem;
}
.meetu-chat__composer {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: #fafaf9;
}
[data-theme="dark"] .meetu-chat__composer {
    background: var(--bg-elevated);
}
.meetu-chat__input {
    flex: 1;
    resize: none;
    min-height: 2.5rem;
    max-height: 7.5rem;
    padding: 0.6rem 0.85rem;
}
.meetu-chat__send {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.meetu-chat__send-label {
    display: none;
}
@media (min-width: 640px) {
    .meetu-chat__send-label { display: inline; }
}

/* Médias */
.meetu-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
}
.meetu-upload-form .form-control {
    flex: 1 1 14rem;
}
.meetu-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.meetu-media-grid__item {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
[data-theme="dark"] .meetu-media-grid__item {
    background: var(--bg-card);
}
.meetu-media-grid__img,
.meetu-media-grid__video {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.meetu-media-grid__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0;
}
.meetu-media-grid__action-form {
    margin: 0;
}
.meetu-media-grid__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.meetu-media-grid__open {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    line-height: 0;
}
.meetu-media-grid__open:focus-visible {
    outline: 2px solid #be123c;
    outline-offset: 2px;
}
.meetu-media-grid__likes {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}
.meetu-media-grid__video-thumb {
    display: block;
    position: relative;
}
.meetu-media-grid__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(15, 23, 42, 0.35);
    pointer-events: none;
}
.media-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem;
}
.media-sort-bar__label {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}
.media-sort-bar__select {
    flex: 1 1 12rem;
    max-width: 18rem;
    min-width: min(100%, 12rem);
}
.media-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
}
.media-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.72);
}
.media-lightbox__panel {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.media-lightbox__close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.media-lightbox__close:hover { background: rgba(15, 23, 42, 0.8); }
.media-lightbox__close:focus-visible {
    outline: 2px solid #fda4af;
    outline-offset: 2px;
}
.media-lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    max-height: 78vh;
    background: #000;
}
.media-lightbox__img,
.media-lightbox__video {
    display: block;
    max-width: 96vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.media-lightbox__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.55rem 0.85rem;
    background: #111827;
}
.media-lightbox__caption {
    margin: 0;
    padding: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 0.9rem;
    flex: 1 1 auto;
}
.media-lightbox__author {
    color: #fda4af;
    font-weight: 600;
    text-decoration: none;
}
.media-lightbox__author:hover { text-decoration: underline; }
.media-lightbox__like {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(253, 164, 175, 0.45);
    border-radius: 6px;
    background: transparent;
    color: #fda4af;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}
.media-lightbox__like:hover {
    background: rgba(190, 18, 60, 0.18);
}
.media-lightbox__like:focus-visible {
    outline: 2px solid #fda4af;
    outline-offset: 2px;
}
.media-lightbox__like.is-liked {
    background: #be123c;
    border-color: #be123c;
    color: #fff;
}
.media-lightbox__like.is-liked svg {
    fill: currentColor;
}
.media-lightbox__like:disabled {
    opacity: 0.55;
    cursor: wait;
}
.media-lightbox__like-count {
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
}
.media-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin: 0 0 1.25rem;
}
.media-tabs__tab {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}
.media-tabs__tab:hover { color: var(--text); }
.media-tabs__tab--active {
    color: #be123c;
    border-bottom-color: #be123c;
}
.meetu-media-grid__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
}
.meetu-media-grid__author {
    font-weight: 600;
    color: #be123c;
    text-decoration: none;
}
.meetu-media-grid__author:hover { text-decoration: underline; }
.meetu-media-grid__badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #166534;
    background: #dcfce7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}
.meetu-media-grid__badge--private {
    color: #9f1239;
    background: #ffe4e6;
}
.meetu-media-grid__badge--avatar {
    color: #7f1d1d;
    background: #ffe4e6;
}
.profile-complete-location {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}
.profile-complete-location label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.profile-complete-location input[type="text"] {
    width: 100%;
    max-width: 28rem;
}

/* Profil public */
.meetu-profile-header {
    margin-bottom: 1rem;
}
.meetu-profile-type {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: var(--meetu-burgundy);
    font-size: 0.9375rem;
}

/* Formulaires internes */
.form-stack--meetu {
    max-width: none;
}
.form-stack--meetu.form-stack--wide {
    width: 100%;
}
body.meetu-app .form-stack--meetu .form-stack__field input:focus,
body.meetu-app .form-stack--meetu .form-stack__field select:focus,
body.meetu-app .form-stack--meetu .form-stack__field textarea:focus {
    border-color: var(--meetu-burgundy);
    box-shadow: 0 0 0 0.15rem rgba(153, 27, 27, 0.15);
}
body.meetu-app .breadcrumb__item a:hover {
    color: var(--meetu-burgundy);
}

/* Préférences wizard — palette bordeaux */
body.meetu-app .meetu-preferences-hero.preferences-hero {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.08) 0%, rgba(69, 10, 10, 0.06) 100%);
    border-color: rgba(127, 29, 29, 0.18);
}
body.meetu-app .preferences-section--recherche {
    border-left-color: var(--meetu-burgundy);
}
body.meetu-app .preferences-section--envies {
    border-left-color: #be123c;
}
body.meetu-app .preferences-section--recherche .preferences-section__icon {
    color: var(--meetu-burgundy);
}
body.meetu-app .preferences-pill:has(input:checked) {
    background: rgba(127, 29, 29, 0.12);
    border-color: var(--meetu-burgundy);
    color: var(--meetu-wine);
}
body.meetu-app .preferences-tag:has(input:checked) {
    background: rgba(190, 18, 60, 0.12);
    border-color: #be123c;
}

/* Footer global harmonisé */
body.meetu-app .site-footer {
    background: #fff;
    border-top: 1px solid rgba(127, 29, 29, 0.15);
    color: #78716c;
}
body.meetu-app .site-footer .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--meetu-wine);
}
body.meetu-app .site-footer .footer-lang a {
    color: #78716c;
}
body.meetu-app .site-footer .footer-lang a:hover {
    color: var(--meetu-burgundy);
}
[data-theme="dark"] body.meetu-app .site-footer {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Champs signup hors vitrine */
body.meetu-app .meetu-signup-body .form-control-meetu:focus,
body.meetu-app .meetu-signup-body .form-select:focus {
    border-color: var(--meetu-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(153, 27, 27, 0.2);
}

body.meetu-app .profile-me {
    max-width: none;
    padding: 0;
}
body.meetu-app .profile-me__block {
    border-color: rgba(127, 29, 29, 0.12);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
}
body.meetu-app .profile-me__title.meetu-page-header__title {
    font-size: 1.75rem;
    color: var(--meetu-wine);
}


/* =========================================================
   profile-show — Fiche profil partagée (vue publique + perso)
   ========================================================= */

:root {
    --meetu-burgundy: #991b1b;
    --meetu-wine: #7f1d1d;
    --meetu-coral: #be123c;
    --ps-male-bg: rgba(59, 130, 246, 0.08);
    --ps-male-color: #1d4ed8;
    --ps-female-bg: rgba(236, 72, 153, 0.08);
    --ps-female-color: #be185d;
}

.profile-show {
    max-width: none;
    padding: 0;
}

/* ── Flash messages ── */
.profile-show__flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
}
.alert--success { background: rgba(22, 163, 74, 0.1); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.3); }
.alert--error   { background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }
.alert--warning { background: rgba(217, 119, 6, 0.12); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.35); }
.profile-show__action--admin-unblock { color: #b45309; }

/* ── En-tete profil ── */
.profile-show__header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.profile-show__header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.profile-show__header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(127, 29, 29, 0.1);
    color: var(--meetu-burgundy);
    overflow: hidden;
}
.profile-show__header-icon--single_female { background: var(--ps-female-bg); color: var(--ps-female-color); }
.profile-show__header-icon--single_male   { background: var(--ps-male-bg); color: var(--ps-male-color); }
.profile-show__header-icon--photo {
    background: var(--bg-elevated, #f5f5f4);
    padding: 0;
}
.profile-show__header-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-show__header-body {
    flex: 1;
    min-width: 0;
}

.profile-show__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--meetu-wine);
    margin: 0 0 0.1rem;
    line-height: 1.2;
}

.profile-show__type {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--meetu-burgundy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-show__orientations {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.profile-show__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.profile-show__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.profile-show__distance {
    color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 55%, var(--text-muted));
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.profile-show__distance-sep {
    color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 35%, var(--text-muted));
    opacity: 0.85;
    user-select: none;
}

.profile-show__kiss-count { color: var(--meetu-coral); }

/* ── Actions (haut droite du header) — icônes seule ligne ── */
.profile-show__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}
.profile-show__action-form {
    display: inline-flex;
    margin: 0;
}
.profile-show__kiss-wrap {
    align-items: center;
    gap: 0.15rem;
}
.profile-show__actions .profile-show__kiss-count {
    color: var(--meetu-coral);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 0.85rem;
    user-select: none;
}
.profile-show__actions .btn.profile-show__action,
.profile-show__actions a.btn.profile-show__action,
.profile-show__actions button.btn.profile-show__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0 !important;
    gap: 0;
    margin: 0;
    line-height: 1;
    color: var(--meetu-wine);
    overflow: visible;
}
.profile-show__actions .btn.profile-show__action:hover,
.profile-show__actions .btn.profile-show__action:focus-visible {
    color: var(--meetu-burgundy);
    background: rgba(127, 29, 29, 0.08);
}
.profile-show__actions .btn.profile-show__action--active {
    color: var(--meetu-coral);
    background: rgba(190, 18, 60, 0.1);
}
.profile-show__action-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    pointer-events: none;
}
.profile-show__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Menu "…" (Bloquer / Signaler) ── */
.profile-show__more {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
}
.profile-show__more-toggle {
    letter-spacing: 0;
}
.profile-show__more-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    z-index: 40;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(28, 25, 23, 0.14);
    min-width: 11rem;
    padding: 0.3rem 0;
    /* sécurité mobile : ne pas déborder à gauche */
    max-width: calc(100vw - 1rem);
    isolation: isolate;
}
.profile-show__more-form {
    display: block;
    margin: 0;
}
.profile-show__more-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    text-align: left;
    white-space: nowrap;
    transition: background 0.12s;
}
.profile-show__more-item:hover,
.profile-show__more-item:focus-visible {
    background: var(--surface-hover, rgba(139, 28, 51, 0.07));
    outline: none;
}
.profile-show__more-item--active {
    color: var(--meetu-wine);
    font-weight: 600;
}

/* Décalage à gauche si le menu déborde sur petit écran */
@media (max-width: 480px) {
    .profile-show__more-dropdown {
        right: auto;
        left: 0;
    }
}

.profile-report-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 36rem;
    width: calc(100% - 2rem);
    background: transparent;
    box-shadow: none;
}
.profile-report-dialog::backdrop {
    background: rgba(15, 10, 10, 0.45);
}
.profile-report-dialog__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1.5rem;
    margin: 0;
    box-shadow: 0 12px 40px rgba(28, 25, 23, 0.18);
}
.profile-report-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.profile-report-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--meetu-wine);
}
.profile-report-dialog__close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.15rem;
    line-height: 0;
    flex-shrink: 0;
}
.profile-report-dialog__close:hover { color: var(--text); }
.profile-report-dialog__lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}
.profile-report-dialog__subtitle {
    margin: 0 0 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.profile-report-dialog__inner select,
.profile-report-dialog__inner textarea {
    width: 100%;
    display: block;
    margin-bottom: 0.75rem;
}
.profile-report-dialog__inner label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}
.profile-report-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}
.profile-report-dialog__feedback {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.profile-report-dialog__feedback--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.profile-report-dialog__feedback--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.profile-report-dialog [aria-busy="true"] [data-report-submit] {
    opacity: 0.65;
    cursor: wait;
}
@media (min-width: 640px) {
    .profile-report-dialog {
        max-width: 40rem;
    }
    .profile-report-dialog__inner {
        padding: 1.5rem 2rem 2rem;
    }
    .profile-report-dialog__title {
        font-size: 1.2rem;
    }
}
.admin-muted {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.admin-report-message {
    max-width: 16rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.875rem;
}

/* ── Onglets ── */
.profile-show__tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.profile-show__tabs::-webkit-scrollbar { display: none; }

.profile-show__tab {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.profile-show__tab:hover { color: var(--meetu-burgundy); text-decoration: none; }
.profile-show__tab--active {
    color: var(--meetu-burgundy);
    border-bottom-color: var(--meetu-burgundy);
}

/* ── Contenu d'onglet ── */
.profile-show__tab-content { min-height: 200px; }

/* ── Sections generiques ── */
.profile-show__section { margin-bottom: 1.5rem; }
.profile-show__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--meetu-wine);
    margin: 0 0 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border);
}
.profile-show__section--envies .profile-show__section-title {
    color: var(--meetu-coral);
}

/* ── Tags ── */
.profile-show__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.profile-show__tag {
    padding: 0.25rem 0.75rem;
    background: rgba(127, 29, 29, 0.08);
    color: var(--meetu-wine);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(127, 29, 29, 0.2);
}
.profile-show__tag--envies {
    background: rgba(190, 18, 60, 0.08);
    color: var(--meetu-coral);
    border-color: rgba(190, 18, 60, 0.2);
}

/* ── Description clampee ── */
.profile-show__description-text--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.profile-show__read-more {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--meetu-burgundy);
    cursor: pointer;
    display: block;
    margin-top: 0.375rem;
}

/* ── Etat vide ── */
.profile-show__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.profile-show__empty p { margin: 0; }

/* =========================================================
   Onglet PROFIL — grille 2 colonnes
   ========================================================= */
.profile-show__profil-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

/* ── Galerie ── */
.profile-show__gallery { position: sticky; top: 1rem; }

.profile-show__gallery-hero {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 0.5rem;
}
.profile-show__gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.profile-show__gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.profile-show__thumb {
    width: calc(25% - 3px);
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s;
}
.profile-show__thumb--active { border-color: var(--meetu-burgundy); }
.profile-show__thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-show__gallery-empty {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    color: var(--text-muted);
    gap: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

/* ── Tableau personnes ── */
.profile-show__persons-table-wrap { overflow-x: auto; }
.profile-show__persons-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.profile-show__persons-table th,
.profile-show__persons-table td {
    width: calc(100% / var(--ps-person-cols, 3));
    padding: 0.4rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.profile-show__persons-table th[scope="row"] {
    font-weight: 500;
    color: var(--text-muted);
}
.profile-show__persons-table th[scope="col"] {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-elevated);
}
.profile-show__persons-col--male {
    background: var(--ps-male-bg);
    color: var(--ps-male-color);
}
.profile-show__persons-col--female {
    background: var(--ps-female-bg);
    color: var(--ps-female-color);
}

/* ── Infos libertinage ── */
.profile-show__libertin { margin-top: 1.5rem; }

.profile-show__prefs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
}
.profile-show__prefs-row > .profile-show__section {
    margin-bottom: 1rem;
    min-width: 0;
}

.profile-show__infos-utiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}
.profile-show__info-line {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.profile-show__info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}
.profile-show__info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* =========================================================
   Onglet PHOTOS — grille albums
   ========================================================= */
.profile-show__albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.profile-show__album-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.profile-show__album-card--private { border-color: rgba(190, 18, 60, 0.3); }

.profile-show__album-cover {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-elevated);
}
.profile-show__album-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-show__album-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}
.profile-show__album-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: rgba(190, 18, 60, 0.85);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-show__album-info {
    padding: 0.625rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.profile-show__album-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.profile-show__album-count { font-size: 0.8rem; color: var(--text-muted); }

.profile-show__mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 0 0.5rem 0.5rem;
}
.profile-show__mini-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-show__mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-show__mini-thumb--video { color: var(--text-muted); background: var(--bg-elevated); }
.profile-show__mini-likes {
    position: absolute;
    left: 0.25rem;
    bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
    pointer-events: none;
}

/* Miniature média bloqué (visible admin uniquement) */
.profile-show__mini-thumb--blocked-admin {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-elevated);
    border: 2px solid var(--error);
}
.profile-show__mini-blocked-preview {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.45;
    display: block;
}
.profile-show__mini-blocked-badge {
    position: absolute;
    top: 4px; left: 4px;
    background: var(--error);
    color: #fff;
    border-radius: 3px;
    padding: 2px 4px;
    display: flex; align-items: center; gap: 2px;
    font-size: 0.65rem; font-weight: 700;
    pointer-events: none;
}
.profile-show__mini-blocked-form {
    position: absolute;
    bottom: 4px; right: 4px;
    margin: 0;
}
.profile-show__mini-blocked-btn {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}
.profile-show__mini-blocked-btn:hover { background: var(--primary); }

.profile-show__photos-cta { margin-top: 1rem; }

/* =========================================================
   Onglet RECOMMANDATIONS
   ========================================================= */
.profile-show__reco-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.profile-show__reco-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.profile-show__reco-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}
.profile-show__reco-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--meetu-burgundy);
}
.profile-show__reco-author--anon { color: var(--text-muted); font-style: italic; }
.profile-show__reco-date { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.profile-show__reco-body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    border-left: 3px solid rgba(127, 29, 29, 0.2);
    padding-left: 0.875rem;
}
.profile-show__reco-form-wrap {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.profile-show__checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.profile-show__checkbox { width: 16px; height: 16px; accent-color: var(--meetu-burgundy); }

/* =========================================================
   Onglet VOYAGES
   ========================================================= */
.profile-show__trip-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.profile-show__trip-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.profile-show__trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.profile-show__trip-place {
    font-weight: 700;
    font-size: 1rem;
    color: var(--meetu-wine);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.profile-show__trip-country { font-weight: 400; color: var(--text-muted); }
.profile-show__trip-dates {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.profile-show__trip-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}
.profile-show__trip-form-wrap {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.profile-show__trip-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* =========================================================
   Responsive — Mobile <= 900px
   ========================================================= */
@media (max-width: 900px) {
    .profile-show__profil-grid {
        grid-template-columns: 1fr;
    }
    .profile-show__gallery {
        position: static;
    }
    .profile-show__gallery-hero { aspect-ratio: 16/9; }

    /* Masquer les labels d'action sur mobile */
    .profile-show__action {
        padding: 0;
    }
    .profile-show__infos-utiles {
        grid-template-columns: 1fr;
    }
    .profile-show__prefs-row {
        grid-template-columns: 1fr;
    }
    .profile-show__albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .profile-show__trip-form-grid {
        grid-template-columns: 1fr;
    }
    .profile-show__header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .profile-show__actions {
        max-width: none;
        justify-content: flex-start;
    }
    .profile-show__title { font-size: 1.375rem; }
}

@media (max-width: 480px) {
    .profile-show__albums-grid { grid-template-columns: 1fr 1fr; }
    .profile-show__reco-header { flex-direction: column; gap: 0.25rem; }
}

/* Dark mode overrides */
[data-theme="dark"] .profile-show__persons-col--male   { color: #93c5fd; }
[data-theme="dark"] .profile-show__persons-col--female { color: #f9a8d4; }
[data-theme="dark"] .profile-show__age--male   { color: #93c5fd; }
[data-theme="dark"] .profile-show__age--female { color: #f9a8d4; }

/* =========================================================
   search — Page recherche MeetU (filtres sidebar + résultats grid/list)
   ========================================================= */

/* ── Layout global : sidebar-filtres + zone résultats ──────────────── */
.search-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

/* ── Sidebar filtres ────────────────────────────────────────────────── */
.search-filters {
    position: sticky;
    top: calc(var(--header-h, 64px) + 1.25rem);
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
    overflow: hidden;
    max-height: calc(100vh - var(--header-h, 64px) - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 29, 29, 0.2) transparent;
}
[data-theme="dark"] .search-filters {
    background: var(--bg-card);
    border-color: var(--border);
}

.search-filters__form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Header filtres */
.search-filters__header {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.search-filters__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--meetu-wine, #7f1d1d);
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
}
[data-theme="dark"] .search-filters__title { color: #fecaca; }

/* Toggle view grille/liste */
.search-view-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.search-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.search-view-btn:hover {
    color: var(--text);
    background: var(--bg-card);
}
.search-view-btn--active {
    background: #fff;
    color: var(--meetu-coral, #be123c) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .search-view-btn--active {
    background: var(--bg-elevated);
}

/* Toggles rapides (switch style) */
.search-filters__toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.search-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}
.search-toggle:hover {
    background: var(--bg-elevated);
}
.search-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Switch pill */
.search-toggle__switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 999px;
    transition: background 0.2s;
}
.search-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.search-toggle input:checked + .search-toggle__switch {
    background: var(--meetu-coral, #be123c);
}
.search-toggle input:checked + .search-toggle__switch::after {
    transform: translateX(16px);
}
.search-toggle input:focus-visible + .search-toggle__switch {
    outline: 2px solid #be123c;
    outline-offset: 2px;
}

.search-toggle__label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.3;
}
.search-toggle__soon {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 0.1em 0.45em;
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-toggle--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.search-filters__hint {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}
.search-filters__hint a {
    color: var(--meetu-burgundy);
    font-weight: 600;
}
.search-filters__radius {
    margin-top: 0.35rem;
}

/* Champ pseudo */
.search-filters__field {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
}
.search-filters__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}
.search-filters__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-filters__input {
    width: 100%;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}
.search-filters__input:focus {
    outline: none;
    border-color: var(--meetu-burgundy-light, #991b1b);
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.15);
}
.search-filters__input:disabled,
.search-filters__input[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--bg-muted, var(--bg));
}
[data-theme="dark"] .search-filters__input {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border);
}
.search-filters__input--age {
    width: 60px;
    text-align: center;
    padding: 0.4rem 0.35rem;
}
.search-filters__input--sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.8125rem;
}
select.search-filters__input {
    padding-right: 1.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    cursor: pointer;
}

.search-filters__clear-btn {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: background 0.12s, color 0.12s;
}
.search-filters__clear-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* Accordions */
.search-accordion {
    border-bottom: 1px solid var(--border);
}
.search-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0.7rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}
.search-accordion__trigger:hover {
    background: var(--bg-elevated);
}
.search-accordion__trigger::-webkit-details-marker,
.search-accordion__trigger::marker { display: none; }
.search-accordion__trigger::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}
details[open] > .search-accordion__trigger::after {
    transform: rotate(180deg);
}
.search-accordion__body {
    padding: 0.5rem 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Groupes types */
.search-type-group {
    margin-bottom: 0.35rem;
}
.search-type-group__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem;
}

/* Checkboxes */
.search-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
    padding: 0.2rem 0;
    user-select: none;
}
.search-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    accent-color: var(--meetu-coral, #be123c);
    cursor: pointer;
}
.search-checkbox--sm { font-size: 0.8125rem; }

/* Grille envies */
.search-envies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.5rem;
}

/* Fieldset */
.search-filters__fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.search-filters__legend {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    padding: 0;
    float: left;
    width: 100%;
}

/* Plages d'âge */
.search-filters__age-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-filters__age-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 28px;
    flex-shrink: 0;
}
.search-filters__age-range {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}
.search-filters__age-dash {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Recherches sauvegardées */
.search-saved-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.search-saved-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}
.search-saved-item__link {
    flex: 1;
    color: var(--meetu-wine, #7f1d1d);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-saved-item__link:hover { text-decoration: underline; }
.search-saved-item__del {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.search-saved-item__del:hover { color: var(--error); }

.search-saved-empty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.25rem 0;
}
.search-saved-add {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* Actions (Appliquer / Réinitialiser) */
.search-filters__actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.search-filters__apply {
    flex: 1;
    justify-content: center;
}

/* ── Zone résultats ─────────────────────────────────────────────────── */
.search-results {
    position: relative;
    min-width: 0;
}

/* Loader AJAX (overlay flat MeetU burgundy) */
.search-results__loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 4rem;
    background: color-mix(in srgb, var(--bg, #faf7f5) 72%, transparent);
    backdrop-filter: blur(1px);
}
.search-results__loader[hidden] {
    display: none !important;
}
[data-theme="dark"] .search-results__loader {
    background: color-mix(in srgb, var(--bg-card, #1c1412) 72%, transparent);
}
.search-results__spinner {
    width: 2rem;
    height: 2rem;
    border: 2.5px solid rgba(127, 29, 29, 0.18);
    border-top-color: var(--meetu-wine, #7f1d1d);
    border-radius: 50%;
    animation: search-spin 0.7s linear infinite;
}
[data-theme="dark"] .search-results__spinner {
    border-color: rgba(252, 165, 165, 0.2);
    border-top-color: #fca5a5;
}
.search-results__loader-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--meetu-wine, #7f1d1d);
}
[data-theme="dark"] .search-results__loader-text {
    color: #fca5a5;
}
@keyframes search-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .search-results__spinner {
        animation: none;
        border-top-color: transparent;
        opacity: 0.7;
    }
}
.search-results--loading [data-search-results] {
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.15s ease;
}

/* Chips filtres actifs */
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.85rem;
}
.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(127, 29, 29, 0.08);
    color: var(--meetu-wine, #7f1d1d);
    border: 1px solid rgba(127, 29, 29, 0.2);
    border-radius: 999px;
    padding: 0.2em 0.7em;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}
[data-theme="dark"] .search-chip {
    background: rgba(254, 202, 202, 0.1);
    color: #fca5a5;
    border-color: rgba(254, 202, 202, 0.2);
}
.search-chips__actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}
.search-chips__clear,
.search-chips__save {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.2em 0.65em;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    background: none;
    font-family: var(--font);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.search-chips__clear:hover,
.search-chips__save:hover {
    border-color: var(--meetu-coral, #be123c);
    color: var(--meetu-coral, #be123c);
    text-decoration: none;
}

/* Toolbar résultats : count + toggle vue */
.search-results__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}
.search-results__toolbar .search-count {
    margin: 0;
}
.search-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}
.search-count strong {
    color: var(--meetu-wine, #7f1d1d);
    font-size: 1rem;
}

/* Empty state */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3.5rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
[data-theme="dark"] .search-empty { background: var(--bg-card); }
.search-empty__icon { color: var(--border); }
.search-empty__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ── Grid cards ─────────────────────────────────────────────────────── */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.search-card {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.12);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
    transition: box-shadow 0.2s, transform 0.15s;
}
[data-theme="dark"] .search-card {
    background: var(--bg-card);
    border-color: var(--border);
}
.search-card:hover {
    box-shadow: 0 6px 20px rgba(28, 25, 23, 0.12);
    transform: translateY(-2px);
}
.search-card__link {
    position: relative;
    z-index: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}
.search-card__link:hover { text-decoration: none; }

.search-card__photo {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-elevated);
    overflow: hidden;
}
.search-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-card__img--avatar {
    padding: 15%;
    object-fit: contain;
    background: var(--bg-elevated);
}
.search-card__photo-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
}
.search-card__type-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Actions overlay (kiss + chat) — sibling au-dessus du lien carte */
.search-card__actions {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}
.search-card__kiss,
.search-card__chat {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    text-decoration: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.15s, color 0.15s, transform 0.15s;
    flex-shrink: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
/* Hit area confortable (~44×44) sans grossir le visuel 34px */
.search-card__kiss::before,
.search-card__chat::before {
    content: '';
    position: absolute;
    inset: -5px;
}
.search-card__kiss:hover,
.search-card__kiss:focus-visible,
.search-card__chat:hover,
.search-card__chat:focus-visible {
    background: rgba(190, 18, 60, 0.85);
    color: #fff;
    outline: none;
    transform: scale(1.06);
    text-decoration: none !important;
}
.search-card__kiss.search-kiss--active,
.search-card__kiss.profile-show__action--active {
    background: rgba(190, 18, 60, 0.92);
    color: #fff;
}
.search-card__kiss:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}
.search-card__kiss svg,
.search-card__chat svg {
    display: block;
    pointer-events: none;
}
/* Actions liste : cœur lisible (pas gris fantôme btn-ghost).
   Spécificité > button.btn (padding 10×20 sinon écrase le SVG à ~4px). */
.search-list-item__actions .btn.search-list-item__btn-kiss,
.search-list-item__actions .btn.search-list-item__btn-chat,
button.btn.search-list-item__btn-kiss,
a.btn.search-list-item__btn-chat {
    color: var(--meetu-wine, #7f1d1d);
    background: rgba(127, 29, 29, 0.08);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.search-list-item__actions .btn.search-list-item__btn-kiss svg,
.search-list-item__actions .btn.search-list-item__btn-chat svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    display: block;
    overflow: visible;
    pointer-events: none;
}
.search-list-item__actions .btn.search-list-item__btn-kiss:hover,
.search-list-item__actions .btn.search-list-item__btn-kiss:focus-visible,
.search-list-item__actions .btn.search-list-item__btn-chat:hover,
.search-list-item__actions .btn.search-list-item__btn-chat:focus-visible {
    color: #fff;
    background: rgba(190, 18, 60, 0.9);
    outline: none;
    text-decoration: none;
}
.search-list-item__actions .btn.search-list-item__btn-kiss.search-kiss--active,
.search-list-item__actions .btn.search-list-item__btn-kiss.profile-show__action--active {
    color: #fff;
    background: rgba(190, 18, 60, 0.92);
}
[data-theme="dark"] .search-list-item__actions .btn.search-list-item__btn-kiss,
[data-theme="dark"] .search-list-item__actions .btn.search-list-item__btn-chat {
    color: #fecaca;
    background: rgba(254, 202, 202, 0.12);
}
.search-card__type-badge--single_male   { background: rgba(29, 78, 216, 0.75); }
.search-card__type-badge--single_female { background: rgba(190, 24, 93, 0.75); }
.search-card__type-badge--couple,
.search-card__type-badge--throuple,
.search-card__type-badge--quatuor       { background: rgba(127, 29, 29, 0.75); }

.search-card__body {
    padding: 0.6rem 0.75rem 0.75rem;
}
.search-card__pseudo {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.4rem;
}
.search-card__ages,
.search-card__city {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-card__type-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15em 0.55em;
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.1);
    color: var(--meetu-wine, #7f1d1d);
}
.search-card__type-label--single_female {
    background: rgba(190, 24, 93, 0.1);
    color: #be185d;
}
.search-card__type-label--single_male {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
}
.search-card__type-label--couple,
.search-card__type-label--throuple,
.search-card__type-label--quatuor {
    background: rgba(127, 29, 29, 0.1);
    color: var(--meetu-wine, #7f1d1d);
}
.search-card__orientations,
.search-list-item__orientations {
    font-weight: 800;
    opacity: 0.92;
}

/* ── List view ──────────────────────────────────────────────────────── */
.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.search-list-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid rgba(127, 29, 29, 0.12);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: 0 1px 6px rgba(28, 25, 23, 0.05);
    transition: box-shadow 0.15s;
}
[data-theme="dark"] .search-list-item {
    background: var(--bg-card);
    border-color: var(--border);
}
.search-list-item:hover {
    box-shadow: 0 4px 14px rgba(28, 25, 23, 0.1);
}

.search-list-item__thumb-link {
    flex-shrink: 0;
    display: block;
}
.search-list-item__thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.search-list-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.search-list-item__img--avatar {
    padding: 12%;
    object-fit: contain;
    background: var(--bg-elevated);
}
.search-list-item__count {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 5px;
}

.search-list-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.search-list-item__header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-list-item__pseudo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--meetu-wine, #7f1d1d);
    text-decoration: none;
}
.search-list-item__pseudo:hover {
    color: var(--meetu-coral, #be123c);
    text-decoration: underline;
}
[data-theme="dark"] .search-list-item__pseudo { color: #fecaca; }
.search-list-item__type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.1em 0.5em;
    border-radius: 999px;
}
.search-list-item__type--couple,
.search-list-item__type--throuple,
.search-list-item__type--quatuor {
    background: rgba(127, 29, 29, 0.1);
    color: var(--meetu-wine, #7f1d1d);
}
.search-list-item__type--single_female {
    background: rgba(190, 24, 93, 0.1);
    color: #be185d;
}
.search-list-item__type--single_male {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
}
.search-list-item__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-list-item__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-list-item__actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}
.search-list-item__btn-profile { display: none; } /* Masqué en desktop, visible sur le card hover en liste */

/* Pagination */
.search-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.search-pagination__page {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .search-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 1023px), (orientation: landscape) and (max-height: 500px) {
    /* Aligné sur meetu-app-layout : phone paysage = chrome mobile (pas sidebar). */
    .search-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }
    .search-filters {
        position: static;
        max-height: none;
        overflow: visible;
    }
    /* Le sidebar filtres est collapsible en mobile via details[open] natif */
    .search-filters-mobile-toggle {
        display: flex;
    }
    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    .search-list-item__desc { display: none; }
}

@media (max-width: 600px) {
    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    .search-card__actions {
        top: 6px;
        right: 6px;
        gap: 5px;
    }
    .search-card__kiss,
    .search-card__chat {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        background: rgba(0, 0, 0, 0.62);
    }
    .search-card__kiss::before,
    .search-card__chat::before {
        inset: -4px; /* 36 + 8 = 44 */
    }
    .search-list-item__thumb { width: 58px; height: 58px; }
    /* Actions kiss/chat visibles et tappables en liste mobile */
    .search-list-item__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.35rem;
        align-self: center;
    }
    .search-list-item__btn-profile { display: none; }
    .search-list-item__actions .btn.search-list-item__btn-kiss,
    .search-list-item__actions .btn.search-list-item__btn-chat,
    button.btn.search-list-item__btn-kiss,
    a.btn.search-list-item__btn-chat {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        gap: 0;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        color: var(--text);
        background: rgba(127, 29, 29, 0.1);
        border-radius: 999px;
    }
    .search-list-item__actions .btn.search-list-item__btn-kiss svg,
    .search-list-item__actions .btn.search-list-item__btn-chat svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        flex-shrink: 0;
    }
    .search-list-item__actions .btn.search-list-item__btn-kiss.search-kiss--active,
    .search-list-item__actions .btn.search-list-item__btn-kiss.profile-show__action--active {
        color: #fff;
        background: rgba(190, 18, 60, 0.92);
    }
}

/* ── Admin back-office ── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.admin-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
}
.admin-stat__n {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--meetu-wine);
}
.admin-stat__l {
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.admin-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 28rem;
}
.admin-search input { flex: 1; }
.admin-meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.admin-filters a.is-active { font-weight: 700; color: var(--meetu-wine); }
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.admin-table--wide { min-width: 48rem; }
.admin-table th,
.admin-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.admin-table th {
    background: rgba(127, 29, 29, 0.06);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}
.admin-table tr.is-blocked { background: rgba(190, 18, 60, 0.06); }
.admin-table tr.is-ignored { background: rgba(22, 163, 74, 0.07); }
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.admin-inline-form {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
}
.admin-inline-form input[type="email"],
.admin-inline-form input[type="text"] {
    min-width: 10rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-icon-form { display: inline-flex; margin: 0; }
.admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.admin-icon-btn:hover {
    color: var(--meetu-wine);
    border-color: var(--meetu-wine);
    background: rgba(127, 29, 29, 0.06);
}
.admin-icon-btn--block:hover {
    color: #be123c;
    border-color: #be123c;
}
.admin-icon-btn--unblock:hover {
    color: #15803d;
    border-color: #15803d;
}
.admin-icon-btn--ignore:hover {
    color: #16a34a;
    border-color: #16a34a;
}
.admin-icon-btn--unignore:hover {
    color: #6b7280;
    border-color: #6b7280;
}
.admin-filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.admin-filter-tab {
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.admin-filter-tab:hover {
    background: var(--surface-2, #f3f4f6);
    color: var(--text);
}
.admin-filter-tab.is-active {
    background: var(--meetu-wine);
    color: #fff;
    border-color: var(--meetu-wine);
}
/* ── Admin Reports AJAX ─────────────────────────── */
.admin-reports-search {
    margin-bottom: 1rem;
    max-width: 36rem;
}
.admin-reports-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    animation: admin-toast-in 0.2s ease;
    max-width: 22rem;
}
@keyframes admin-toast-in {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.admin-reports-toast--success { background: #16a34a; color: #fff; }
.admin-reports-toast--error   { background: #be123c; color: #fff; }
#admin-reports-list { transition: opacity 0.15s; }
/* ────────────────────────────────────────────────── */
.admin-pagination {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-pagination__page {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.admin-empty {
    grid-column: 1 / -1;
    color: var(--text-muted);
    margin: 1rem 0;
}
.admin-empty-state {
    max-width: 28rem;
    margin: 2rem auto;
    text-align: center;
}
.admin-empty-state .meetu-alert {
    text-align: left;
    margin-bottom: 1rem;
}
.admin-back {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}
.admin-back a {
    color: var(--text-muted);
    text-decoration: none;
}
.admin-back a:hover {
    color: var(--meetu-wine);
}
.admin-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 650;
}
.admin-creator {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.admin-creator__pseudo {
    font-weight: 600;
}
.admin-creator__email {
    color: var(--text-muted);
    font-size: 0.8125rem;
    word-break: break-all;
}
.admin-event-detail {
    margin-bottom: 2rem;
}
.admin-event-detail__top {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.admin-event-detail__cover {
    background: rgba(127, 29, 29, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-event-detail__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.admin-event-detail__cover-empty {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 1rem;
    text-align: center;
}
.admin-event-detail__block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.admin-event-criteria {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text);
    font-size: 0.9rem;
}
.admin-event-criteria li + li { margin-top: 0.35rem; }
.admin-event-medias {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.admin-event-medias__item {
    position: relative;
    width: 7.5rem;
    height: 5.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
}
.admin-event-medias__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-event-medias__badge {
    position: absolute;
    left: 0.35rem;
    bottom: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.15rem 0.35rem;
    border-radius: 0.2rem;
}
.admin-event-participants { margin-top: 0.5rem; }
@media (max-width: 768px) {
    .admin-event-detail__top {
        grid-template-columns: 1fr;
    }
}
.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}
.admin-media-card {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.admin-media-card.is-blocked {
    outline: 2px solid rgba(190, 18, 60, 0.35);
    outline-offset: -2px;
}
.admin-media-card__preview-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
button.profile-show__mini-thumb {
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
    font: inherit;
}
.admin-media-card__img,
.admin-media-card__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.admin-media-card__video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
.admin-media-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.admin-media-card__badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(190, 18, 60, 0.9);
    color: #fff;
}
.admin-media-card__badge--account {
    background: rgba(127, 29, 29, 0.92);
}
.admin-media-card__blocked-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
    text-align: center;
    background: rgba(190, 18, 60, 0.08);
    color: #9f1239;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}
.meetu-media-grid__open--blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    background: rgba(190, 18, 60, 0.08);
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 1rem;
}
.meetu-media-grid__blocked {
    color: #9f1239;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.35;
}
.meetu-media-grid__badge--blocked {
    background: rgba(190, 18, 60, 0.12);
    color: #9f1239;
}
.media-lightbox__blocked {
    margin: 0;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #9f1239;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 22rem;
}
.admin-media-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
}
.admin-media-card__account {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}
.admin-media-card__pseudo {
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--meetu-wine);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.admin-media-card__pseudo:hover { text-decoration: underline; }
.admin-media-card__email,
.admin-media-card__type {
    font-size: 0.6875rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-media-card__missing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.admin-media-card__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 24rem;
    width: calc(100% - 2rem);
    background: transparent;
}
.admin-dialog::backdrop {
    background: rgba(15, 10, 10, 0.45);
}
.admin-dialog__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem 1.15rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.admin-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.admin-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
}
.admin-dialog__close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem;
    line-height: 0;
}
.admin-dialog__close:hover { color: var(--text); }
.admin-dialog__lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.admin-dialog__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.admin-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat — Bouton signaler (header thread)
═══════════════════════════════════════════════════════════════════════════ */
.chat-popin__report-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    padding: 0.3rem;
    line-height: 0;
    border-radius: 0.35rem;
    transition: background 0.15s;
    margin-left: auto;
    flex-shrink: 0;
}
.chat-popin__report-btn:hover,
.chat-popin__report-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat — Dialog signalement (réutilise patterns .profile-report-dialog)
═══════════════════════════════════════════════════════════════════════════ */
.chat-report-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 36rem;
    width: calc(100% - 2rem);
    background: transparent;
    box-shadow: none;
}
.chat-report-dialog::backdrop {
    background: rgba(15, 10, 10, 0.50);
}
.chat-report-dialog__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1.5rem;
    margin: 0;
    box-shadow: 0 12px 40px rgba(28, 25, 23, 0.18);
}
.chat-report-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.chat-report-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--meetu-wine);
}
.chat-report-dialog__close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.15rem;
    line-height: 0;
    flex-shrink: 0;
}
.chat-report-dialog__close:hover { color: var(--text); }
.chat-report-dialog__lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}
.chat-report-dialog__inner select,
.chat-report-dialog__inner textarea {
    width: 100%;
    display: block;
    margin-bottom: 0.75rem;
}
.chat-report-dialog__inner label:not(.chat-report-dialog__transcript-label) {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}
/* Checkbox share_transcript */
.chat-report-dialog__transcript {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}
.chat-report-dialog__transcript-label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}
.chat-report-dialog__transcript-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--meetu-wine);
    width: 16px;
    height: 16px;
}
.chat-report-dialog__transcript-hint {
    margin: 0.45rem 0 0 1.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.chat-report-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}
.chat-report-dialog__feedback {
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.chat-report-dialog__feedback--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.chat-report-dialog__feedback--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.chat-report-dialog [aria-busy="true"] [data-chat-report-submit] {
    opacity: 0.65;
    cursor: wait;
}
@media (min-width: 640px) {
    .chat-report-dialog { max-width: 40rem; }
    .chat-report-dialog__inner { padding: 1.5rem 2rem 2rem; }
    .chat-report-dialog__title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin — Badge source (Chat / Profil)
═══════════════════════════════════════════════════════════════════════════ */
.admin-source-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.admin-source-badge--profile {
    background: #f3f4f6;
    color: #374151;
}
.admin-source-badge--chat {
    background: #ede9fe;
    color: #5b21b6;
}
.admin-transcript-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    color: var(--meetu-wine);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    transition: background 0.15s;
    white-space: nowrap;
}
.admin-transcript-btn:hover {
    background: rgba(var(--meetu-wine-rgb, 100, 20, 40), 0.07);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Admin — Dialog transcript
═══════════════════════════════════════════════════════════════════════════ */
.admin-transcript-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 52rem;
    width: calc(100% - 2rem);
    max-height: 85vh;
    background: transparent;
    box-shadow: none;
}
.admin-transcript-dialog::backdrop {
    background: rgba(15, 10, 10, 0.45);
}
.admin-transcript-dialog__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(28, 25, 23, 0.18);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
}
.admin-transcript-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.admin-transcript-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--meetu-wine);
}
.admin-transcript-dialog__close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.15rem;
    line-height: 0;
    flex-shrink: 0;
}
.admin-transcript-dialog__close:hover { color: var(--text); }
.admin-transcript-dialog__body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.admin-transcript-dialog__loading {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}
.admin-transcript-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.admin-transcript-msg {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}
.admin-transcript-sender {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--meetu-wine);
    margin-bottom: 0.2rem;
}
.admin-transcript-time {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}
.admin-transcript-text {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.admin-transcript-empty {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat — Bouton bloquer (header thread)
═══════════════════════════════════════════════════════════════════════════ */
.chat-popin__block-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    padding: 0.3rem;
    line-height: 0;
    border-radius: 0.35rem;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.chat-popin__block-btn:hover,
.chat-popin__block-btn:focus-visible {
    color: #ffb3b3;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}
.chat-popin__block-btn--unblock {
    color: #a7f3d0;
}
.chat-popin__block-btn--unblock:hover,
.chat-popin__block-btn--unblock:focus-visible {
    color: #6ee7b7;
    background: rgba(255, 255, 255, 0.12);
}
.chat-popin__blocked-notice {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Bandeau bloqué sous le header, au-dessus du composer ── */
.chat-popin__blocked-banner {
    margin: 0;
    padding: 0.65rem 1rem;
    background: #fff7ed;
    border-top: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;
    flex-shrink: 0;
}

/* ── Badge bloqué dans la liste ── */
.chat-popin__list-item.is-blocked .chat-popin__list-pseudo {
    color: var(--text-muted);
}
.chat-popin__list-item.is-blocked .chat-popin__list-preview {
    opacity: 0.6;
}
.chat-popin__list-blocked-badge {
    display: inline-flex;
    align-items: center;
    color: #dc2626;
    flex-shrink: 0;
    margin-left: 0.2rem;
    vertical-align: middle;
    line-height: 0;
}
.chat-popin__list-avatar--blocked {
    opacity: 0.6;
    filter: grayscale(0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat — Dialog confirmation (bloquer)
═══════════════════════════════════════════════════════════════════════════ */
.chat-confirm-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 26rem;
    width: calc(100% - 2rem);
    background: transparent;
    box-shadow: none;
}
.chat-confirm-dialog::backdrop {
    background: rgba(15, 10, 10, 0.50);
}
.chat-confirm-dialog__inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1.35rem;
    margin: 0;
    box-shadow: 0 12px 40px rgba(28, 25, 23, 0.18);
}
.chat-confirm-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
.chat-confirm-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--meetu-wine);
}
.chat-confirm-dialog__close {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.15rem;
    line-height: 0;
    border-radius: 0.35rem;
}
.chat-confirm-dialog__close:hover { color: var(--text); }
.chat-confirm-dialog__lead {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
}
.chat-confirm-dialog__feedback {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
}
.chat-confirm-dialog__feedback--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.chat-confirm-dialog__feedback--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.chat-confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Chat — Dialog report : checkbox also_block
═══════════════════════════════════════════════════════════════════════════ */
.chat-report-dialog__also-block {
    margin-top: 0.75rem;
}
.chat-report-dialog__also-block-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text);
}
.chat-report-dialog__also-block-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Profil — Onglet Bloqués
═══════════════════════════════════════════════════════════════════════════ */
.profile-blocked {
    padding: 1.25rem 0;
}
.profile-blocked__title {
    font-size: 1.05rem;
    font-weight: 650;
    margin: 0 0 0.35rem;
    color: var(--text);
}
.profile-blocked__lead {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}
.profile-blocked__empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}
.profile-blocked__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.profile-blocked__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.profile-blocked__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.profile-blocked__item-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-blocked__item-link:hover {
    text-decoration: underline;
}
.profile-blocked__item-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.profile-blocked__unblock-form {
    flex-shrink: 0;
}
.profile-blocked__unblock-btn {
    gap: 0.35rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .profile-blocked__item {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-blocked__unblock-form {
        align-self: flex-end;
    }
}

/* ═══════════════════════════════════════════════════════
   Visits — Visites & J'aime reçus (/me/visits)
   ═══════════════════════════════════════════════════════ */

/* Tabs extension */
.visits-tabs { margin-bottom: 0; }
.visits-tabs__icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 0.3rem;
}
.visits-tabs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 0.4rem;
    line-height: 1;
}

/* Toolbar */
.visits-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
    flex-wrap: wrap;
}
.visits-toolbar .meetu-results-count { margin: 0; }

/* View toggle */
.visits-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}
.visits-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: calc(var(--radius-sm) - 2px);
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.visits-view-toggle__btn:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.visits-view-toggle__btn--active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Grille ── */
.visits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
}

.visits-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.15s;
}
.visits-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}
[data-theme="dark"] .visits-card { background: var(--bg-elevated); }
.visits-card--no-link { cursor: default; pointer-events: none; }

.visits-card__photo {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--bg-elevated);
    overflow: hidden;
    flex-shrink: 0;
}
.visits-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.visits-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}
.visits-card__type-badge {
    position: absolute;
    bottom: 0.4rem;
    left: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
}
.visits-card__type-badge--single_male   { background: rgba(29, 78, 216, 0.8); }
.visits-card__type-badge--single_female { background: rgba(190, 24, 93, 0.8); }
.visits-card__type-badge--couple,
.visits-card__type-badge--throuple,
.visits-card__type-badge--quatuor       { background: rgba(127, 29, 29, 0.8); }

.visits-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.65rem 0.7rem;
    min-width: 0;
}
.visits-card__pseudo {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary);
}
.visits-card__city {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.visits-card__date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Liste ── */
.visits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.visits-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 1rem;
    transition: box-shadow 0.15s;
}
.visits-list-item:hover { box-shadow: var(--shadow); }
[data-theme="dark"] .visits-list-item { background: var(--bg-elevated); }

.visits-list-item__thumb-link {
    flex-shrink: 0;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}
.visits-list-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.visits-list-item__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}
.visits-list-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.visits-list-item__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.visits-list-item__pseudo {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.visits-list-item__pseudo:hover { text-decoration: underline; }
[data-theme="dark"] .visits-list-item__pseudo { color: #fecaca; }
.visits-list-item__type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: #fff;
}
.visits-list-item__type--couple,
.visits-list-item__type--throuple,
.visits-list-item__type--quatuor { background: rgba(127,29,29,0.75); }
.visits-list-item__type--single_female { background: rgba(190,24,93,0.75); }
.visits-list-item__type--single_male   { background: rgba(29,78,216,0.75); }
.visits-list-item__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.visits-list-item__city,
.visits-list-item__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.visits-list-item__cta { flex-shrink: 0; }

/* ── Empty state ── */
.visits-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.visits-empty p { margin: 0; font-size: 0.9375rem; }

/* ── Pagination info ── */
.meetu-pagination__info {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .visits-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}
@media (max-width: 600px) {
    .visits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }
    .visits-card__body { padding: 0.45rem 0.5rem; }
    .visits-card__pseudo { font-size: 0.8rem; }
    .visits-list-item { padding: 0.5rem 0.75rem; }
    .visits-list-item__cta { display: none; }
}
@media (max-width: 400px) {
    .visits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Social inbox toast (visites / j'aime — bas-droite) ── */
.meetu-social-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.7rem 1rem;
    background: var(--meetu-wine, #450a0a);
    color: var(--meetu-rose, #fecdd3);
    border-radius: var(--radius-sm, 0.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.meetu-social-toast--visible {
    opacity: 1;
    transform: translateY(0);
}
.meetu-social-toast__photo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(254, 205, 211, 0.15);
}
.meetu-social-toast__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(254, 205, 211, 0.12);
    color: var(--meetu-rose, #fecdd3);
}
.meetu-social-toast__text {
    min-width: 0;
}
/* Au-dessus du FAB chat quand présent */
body:has(#chat-fab) .meetu-social-toast {
    bottom: 5.5rem;
}
@media (max-width: 600px) {
    .meetu-social-toast {
        right: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}


/* ═══════════════════════════════════════════════════════════
   Events (list / form / detail / conversation / feed card)
   ═══════════════════════════════════════════════════════════ */

.event-card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.event-card-grid__empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}
.event-card {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    background: var(--bg-elevated, #fff);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(69, 10, 10, 0.12);
}
.event-card--match {
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 35%, transparent);
}
.event-card__link {
    position: relative;
    z-index: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}
.event-card__link:hover {
    text-decoration: none;
}
.event-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 55%, #991b1b 100%);
    overflow: hidden;
}
.event-card__media--empty {
    min-height: 140px;
}
.event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 140px;
    opacity: 0.35;
    background:
        radial-gradient(circle at 30% 40%, rgba(254, 205, 211, 0.35), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(254, 205, 211, 0.2), transparent 45%);
}
.event-card__badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 0.35rem;
    color: #fff;
    background: rgba(69, 10, 10, 0.82);
}
.event-card__badge--trip {
    background: rgba(30, 58, 95, 0.88);
}
.event-card__match {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 0.35rem;
    background: #fecdd3;
    color: #450a0a;
}
.event-card__pinned {
    position: absolute;
    bottom: 0.55rem;
    right: 0.65rem;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
    border-radius: 0.3rem;
    background: rgba(127, 29, 29, 0.9);
    color: #fff;
}
.event-card__incomplete {
    position: absolute;
    bottom: 0.55rem;
    left: 0.65rem;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fecdd3;
}
.event-card__body {
    padding: 0.85rem 1rem 1rem;
}
.event-card--has-orga .event-card__body {
    padding-right: 3.35rem;
}
.event-card__title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--meetu-wine, #450a0a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card__meta {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-card__city,
.event-card__dates,
.event-card__meta-sep {
    font-size: inherit;
    color: inherit;
}
.event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    padding-right: 0.15rem;
    border-top: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 10%, transparent);
}
.event-card--has-orga .event-card__footer {
    padding-right: 0;
}
.event-card--has-orga .event-card__manage {
    margin-right: 0.15rem;
}
.event-card__status {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
    border-radius: 0.3rem;
    background: color-mix(in srgb, var(--text-muted) 16%, transparent);
    color: var(--text-muted);
}
.event-card__status--draft {
    background: color-mix(in srgb, #92400e 14%, transparent);
    color: #92400e;
}
.event-card__status--published {
    background: color-mix(in srgb, #166534 14%, transparent);
    color: #166534;
}
.event-card__status--cancelled,
.event-card__status--blocked {
    background: color-mix(in srgb, #991b1b 14%, transparent);
    color: #991b1b;
}
.event-card__manage {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--meetu-burgundy, #7f1d1d);
}
.event-card__orga,
.event-card__orga:link,
.event-card__orga:visited,
.event-card__orga:hover,
.event-card__orga:focus,
.event-card__orga:active {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    color: #fafaf9;
    background: linear-gradient(145deg, #7f1d1d, #450a0a);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(69, 10, 10, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-card__orga:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(69, 10, 10, 0.3);
    color: #fafaf9;
    text-decoration: none;
}
.event-card__orga:focus-visible {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 2px;
    text-decoration: none;
    color: #fafaf9;
}
.event-card__orga-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.event-card__orga-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}
/* Events list — layout filtres (réutilise .search-layout / .search-filters) */
.events-layout {
    margin-top: 0.25rem;
}
.events-results {
    min-width: 0;
}
.events-results__hint {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.events-filters .search-filters__fieldset + .search-filters__fieldset {
    margin-top: 0.75rem;
}
@media (max-width: 900px) {
    .events-layout {
        gap: 1rem;
    }
}

.events-tabs {
    margin-bottom: 1.25rem;
}

/* Kind toggle */
.event-kind-toggle {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}
.event-kind-toggle__legend {
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--meetu-wine, #450a0a);
}
.event-kind-toggle__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.event-kind-toggle__option {
    cursor: pointer;
}
.event-kind-toggle__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.event-kind-toggle__card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm, 0.5rem);
    border: 2px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 18%, transparent);
    background: var(--bg-elevated, #fff);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.event-kind-toggle__option input:checked + .event-kind-toggle__card {
    border-color: var(--meetu-burgundy, #7f1d1d);
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 35%, #fff);
}
.event-kind-toggle__option input:focus-visible + .event-kind-toggle__card {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 2px;
}
.event-kind-toggle__title {
    font-weight: 700;
    color: var(--meetu-wine, #450a0a);
}
.event-kind-toggle__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-end-required {
    color: var(--meetu-burgundy, #7f1d1d);
}

/* Criteria */
.event-criteria {
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 14%, transparent);
    border-radius: var(--radius-sm, 0.5rem);
    padding: 1rem;
    margin: 0 0 1rem;
}
.event-criteria__legend {
    font-weight: 700;
    padding: 0 0.35rem;
    color: var(--meetu-wine, #450a0a);
}
.event-criteria__hint {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.event-criteria__group + .event-criteria__group {
    margin-top: 0.85rem;
}
.event-criteria__group-title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.event-criteria__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
}
.event-criteria__check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Media upload / preview */
.event-media-upload {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}
.event-media-upload__legend {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--meetu-wine, #450a0a);
}
.event-media-upload__hint {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.event-media-upload--inline {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.event-media-preview {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.event-media-preview__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.event-media-preview__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm, 0.5rem);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 15%, transparent);
}
.event-media-preview__cover {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.event-pin-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm, 0.5rem);
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 28%, #fff);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    cursor: pointer;
}
.event-pin-check input {
    margin-top: 0.2rem;
}
.event-pin-check__hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Detail */
.event-detail__hero {
    position: relative;
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    min-height: 220px;
    margin-bottom: 1.25rem;
    background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 60%, #991b1b 100%);
}
.event-detail__hero-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 360px;
    object-fit: cover;
    display: block;
}
.event-detail__hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(transparent, rgba(20, 4, 4, 0.78));
    color: #fff;
}
.event-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}
.event-detail__title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}
.event-detail__location {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #f5f0e8;
    opacity: 0.92;
}
.event-detail__incomplete {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: #fecdd3;
}
.event-detail__pinned {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(254, 205, 211, 0.9);
    color: #450a0a;
}
.event-detail__hero--has-orga .event-detail__hero-overlay {
    padding-right: 4.75rem;
}
.event-detail__orga,
.event-detail__orga:link,
.event-detail__orga:visited,
.event-detail__orga:hover,
.event-detail__orga:focus,
.event-detail__orga:active {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    color: #fafaf9;
    background: linear-gradient(145deg, #7f1d1d, #450a0a);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(69, 10, 10, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.event-detail__orga:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(69, 10, 10, 0.35);
    color: #fafaf9;
    text-decoration: none;
}
.event-detail__orga:focus-visible {
    outline: 2px solid #fafaf9;
    outline-offset: 2px;
    text-decoration: none;
    color: #fafaf9;
}
.event-detail__orga-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.event-detail__orga-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}
.event-detail__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}
.event-detail__section-title {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
    color: var(--meetu-wine, #450a0a);
}
.event-detail__subsection-title {
    margin: 1rem 0 0.4rem;
    font-size: 0.95rem;
}
.event-detail__criteria p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}
.event-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.event-gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
@media (max-width: 40rem) {
    .event-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}
.event-gallery__item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm, 0.5rem);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    background: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 4%, transparent);
}
.event-gallery__item--cover {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 1px;
}
.event-gallery__open {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}
.event-gallery__open:hover .event-gallery__img {
    transform: scale(1.04);
    opacity: 0.92;
}
.event-gallery__open:focus-visible {
    outline: 2px solid var(--meetu-burgundy, #be123c);
    outline-offset: 2px;
    z-index: 2;
}
.event-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.event-gallery__cover-label {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 2;
    pointer-events: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: rgba(69, 10, 10, 0.88);
    color: #fecdd3;
    line-height: 1.2;
}
.event-gallery__actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 60%, rgba(255, 255, 255, 0.55));
}
.event-gallery__actions form {
    margin: 0;
    display: inline-flex;
}
.event-gallery__actions .btn {
    font-size: 0.65rem;
    line-height: 1.2;
    padding: 0.18rem 0.4rem;
    white-space: nowrap;
}
.event-gallery__empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.event-orga-panel {
    margin-top: 0.25rem;
}
.event-orga-panel__subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 0.92rem;
    color: var(--meetu-wine, #450a0a);
}
.event-orga-panel__empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.event-orga-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.event-orga-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm, 0.5rem);
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 18%, #fff);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 10%, transparent);
}
.event-orga-list__person,
a.event-orga-list__person,
a.event-orga-list__person:link,
a.event-orga-list__person:visited,
a.event-orga-list__person:hover,
a.event-orga-list__person:focus,
a.event-orga-list__person:active {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--meetu-wine, #450a0a);
    text-decoration: none;
}
a.event-orga-list__person:hover,
a.event-orga-list__person:focus-visible {
    color: var(--meetu-burgundy, #7f1d1d);
    text-decoration: none;
}
a.event-orga-list__person:focus-visible {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 2px;
    border-radius: 0.35rem;
}
.event-orga-list__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #7f1d1d, #450a0a);
    color: #fafaf9;
    flex-shrink: 0;
}
.event-orga-list__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.event-orga-list__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fafaf9;
}
.event-orga-list__pseudo {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-orga-list__pseudo--fallback {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.event-orga-list__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
}
.event-orga-list__chat,
a.event-orga-list__chat,
a.event-orga-list__chat:link,
a.event-orga-list__chat:visited,
a.event-orga-list__chat:hover,
a.event-orga-list__chat:focus,
a.event-orga-list__chat:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 22%, transparent);
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 28%, #fff);
    color: var(--meetu-burgundy, #7f1d1d);
    text-decoration: none !important;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.event-orga-list__chat:hover,
.event-orga-list__chat:focus-visible {
    background: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 88%, #000);
    color: #fafaf9;
    outline: none;
    transform: scale(1.05);
    text-decoration: none !important;
}
.event-orga-list__chat svg {
    display: block;
    pointer-events: none;
}
.event-orga-list__actions .btn {
    box-sizing: border-box;
    height: 34px;
    min-height: 34px;
    padding: 0 0.75rem;
    border-radius: 0.35rem;
    border: 1.5px solid transparent;
    text-decoration: none;
    line-height: 1.1;
}
.event-orga-list__actions .btn.btn-meetu-primary {
    border-color: transparent;
}
.event-orga-list__actions .btn.event-orga-list__reject,
.event-orga-list__actions button.btn.event-orga-list__reject {
    color: var(--meetu-burgundy, #7f1d1d) !important;
    background: #fff !important;
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 45%, transparent) !important;
    box-shadow: none;
}
.event-orga-list__actions .btn.event-orga-list__reject:hover:not(:disabled),
.event-orga-list__actions button.btn.event-orga-list__reject:hover:not(:disabled) {
    color: var(--meetu-wine, #450a0a) !important;
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 40%, #fff) !important;
    border-color: var(--meetu-burgundy, #7f1d1d) !important;
    text-decoration: none;
}
.event-orga-list__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 0.3rem;
    background: color-mix(in srgb, #166534 15%, #fff);
    color: #166534;
}
.event-orga-list__badge--rejected {
    background: color-mix(in srgb, #991b1b 12%, #fff);
    color: #991b1b;
}

/* Conversation canal */
.meetu-page-content--narrow {
    max-width: 760px;
}
.event-chat {
    display: flex;
    flex-direction: column;
    min-height: min(70vh, 720px);
    border-radius: var(--radius-md, 0.75rem);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 14%, transparent);
    background: var(--bg-elevated, #fff);
    overflow: hidden;
}
.event-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--meetu-rose, #fecdd3) 35%, #fff), #fff);
}
.event-chat__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.event-chat__title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--meetu-wine, #450a0a);
}
.event-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--meetu-rose, #fecdd3) 25%, transparent), transparent 40%),
        var(--bg, #faf7f7);
}
.event-chat__loading {
    margin: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.event-chat__bubble {
    max-width: min(85%, 420px);
    align-self: flex-start;
    padding: 0.65rem 0.8rem;
    border-radius: 0.75rem 0.75rem 0.75rem 0.2rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 10%, transparent);
    box-shadow: 0 1px 2px rgba(69, 10, 10, 0.05);
}
.event-chat__bubble--mine {
    align-self: flex-end;
    border-radius: 0.75rem 0.75rem 0.2rem 0.75rem;
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 45%, #fff);
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 18%, transparent);
}
.event-chat__bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.event-chat__bubble-who {
    font-weight: 700;
    color: var(--meetu-wine, #450a0a);
}
.event-chat__bubble-body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}
.event-chat__composer {
    display: flex;
    gap: 0.65rem;
    align-items: flex-end;
    padding: 0.85rem 1rem;
    border-top: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    background: #fff;
}
.event-chat__input {
    flex: 1;
    min-height: 2.75rem;
    resize: vertical;
    max-height: 8rem;
    border-radius: var(--radius-sm, 0.5rem);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 20%, transparent);
    padding: 0.65rem 0.75rem;
    font: inherit;
}
.event-chat__input:focus {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 1px;
}
.event-chat__error {
    margin: 0 1rem 0.85rem;
}

/* Feed event card — bandeau média compact (paysage ~2.4:1, cap ~160px) */
.feed-event-card {
    display: block;
    margin: 0.75rem 0 0.35rem;
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    background: var(--bg-elevated, #fff);
    border: 1px solid color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 12%, transparent);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feed-event-card:link,
.feed-event-card:visited,
.feed-event-card:hover,
.feed-event-card:active,
.feed-event-card:focus {
    color: inherit;
    text-decoration: none;
}
.feed-event-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 28%, transparent);
    box-shadow: 0 8px 24px rgba(69, 10, 10, 0.12);
}
.feed-event-card:focus-visible {
    outline: 2px solid var(--meetu-burgundy, #7f1d1d);
    outline-offset: 2px;
}
.feed-event-card__media,
.feed-event-card__media--empty {
    position: relative;
    width: 100%;
    min-width: 100%;
    height: 160px;
    background: linear-gradient(145deg, #450a0a 0%, #7f1d1d 55%, #991b1b 100%);
    overflow: hidden;
}
.feed-event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.feed-event-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    background:
        radial-gradient(circle at 30% 40%, rgba(254, 205, 211, 0.35), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(254, 205, 211, 0.2), transparent 45%);
}
.feed-event-card__body {
    padding: 0.85rem 1rem 1rem;
}
.feed-event-card__title {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--meetu-wine, #450a0a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-event-card__location {
    margin: 0 0 0.55rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-event-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--meetu-burgundy, #7f1d1d);
}
.feed-event-card__arrow {
    flex-shrink: 0;
    color: var(--meetu-burgundy, #7f1d1d);
    font-weight: 700;
    line-height: 1;
}

/* Soft-fallback : event_id sans payload event */
.feed-event-card--fallback {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    overflow: visible;
    background: linear-gradient(110deg, color-mix(in srgb, var(--meetu-rose, #fecdd3) 38%, #fff), #fff 72%);
}
.feed-event-card--fallback:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(69, 10, 10, 0.1);
}
.feed-event-card__fallback-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.45rem;
    border-radius: 0.3rem;
    background: var(--meetu-burgundy, #7f1d1d);
    color: #fff;
}
.feed-event-card__fallback-title {
    flex: 1;
    min-width: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--meetu-wine, #450a0a);
}

@media (max-width: 900px) {
    .event-detail__grid {
        grid-template-columns: 1fr;
    }
    .event-kind-toggle__options {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .feed-event-card__media,
    .feed-event-card__media--empty {
        height: 140px;
    }
    .event-card-grid {
        grid-template-columns: 1fr;
    }
    .event-detail__hero-img {
        max-height: 240px;
        min-height: 180px;
    }
    .event-chat {
        min-height: 65vh;
    }
    .event-chat__composer {
        flex-direction: column;
        align-items: stretch;
    }
    .event-orga-list__item {
        flex-direction: column;
        align-items: stretch;
    }
    .event-orga-list__person,
    a.event-orga-list__person {
        flex: 1 1 auto;
    }
    .event-orga-list__actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
    .meetu-page-header--with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

.event-detail__pin-btn {
    border-color: color-mix(in srgb, var(--meetu-burgundy, #7f1d1d) 35%, transparent);
    color: var(--meetu-wine, #450a0a);
}
.event-detail__pin-btn:hover {
    background: color-mix(in srgb, var(--meetu-rose, #fecdd3) 40%, #fff);
}
