/* ==========================================================================
   style.css — Feuille de style principale de kelyalove.
   --------------------------------------------------------------------------
   Structure (sections repérées par « ========== NOM ========== ») :
     - Variables globales & reset, base typographique, utilitaires
     - Composants : navbar, layout, footer, boutons, badges, alertes, formulaires
     - Pages/fonctionnalités : HOME, AUTH, ABOUT, LEGAL, CHAT (dont messages
       vocaux VIP et pub dans le fil), PROFILE, SEARCH, ADMIN, MODAL, ERROR,
       DISCOVER/PREFERENCES, ADS, VIP, STAFF/MODÉRATION, etc.
   Thème : sombre + glassmorphism ; fond global photo_de_fond.jpg + overlay.
   Couleurs d'accent : --orange, --pink, --red, --purple, --green, --blue.
   ========================================================================== */

/* ========== VARIABLES GLOBALES & THÈME ========== */
:root {
    --bg-dark: #0a0a12;
    --bg-darker: #05050a;
    --bg-card: rgba(20, 20, 35, 0.55);
    --bg-card-hover: rgba(30, 30, 50, 0.7);
    --orange: #ff7a18;
    --orange-light: #ff9a4d;
    --orange-dark: #cc5e0a;
    --orange-glow: rgba(255, 122, 24, 0.35);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-strong: rgba(255, 255, 255, 0.15);
    --text: #e8e8f0;
    --text-muted: #9a9ab0;
    --text-dim: #6a6a80;
    --red: #ff3b5c;
    --green: #3bffa7;
    --blue: #3ba7ff;
    --purple: #a73bff;
    --shadow-orange: 0 8px 30px rgba(255, 122, 24, 0.18);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
}

/* ========== RESET & BASE ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        linear-gradient(rgba(10, 10, 18, 0.82), rgba(10, 10, 18, 0.82)),
        url('../img/photo_de_fond.jpg') center center / cover fixed no-repeat,
        var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

button { cursor: pointer; border: none; font-family: inherit; }

.text-orange { color: var(--orange) !important; }
.text-muted { color: var(--text-muted); }
.muted, .muted-small { color: var(--text-muted); font-size: .85em; }
.required { color: var(--orange); }
.link-orange { color: var(--orange); font-weight: 600; }
.link-orange:hover { text-decoration: underline; }
.flex-grow { flex: 1; }

/* ========== ORBES DÉCORATIVES (halos d'arrière-plan) ========== */
.bg-orb {
    position: fixed;
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}
.orb-2 {
    top: auto;
    left: auto;
    bottom: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(130, 60, 255, 0.25) 0%, transparent 70%);
}

/* ========== GLASSMORPHISM (cartes translucides) ========== */
.glassmorph {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.glassmorph-inner {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-top: 1rem;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0;
    border-width: 0 0 1px 0;
    border-color: var(--border-glass);
    background: rgba(10, 10, 18, 0.8);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .3px;
}
.logo-icon { font-size: 1.6rem; filter: drop-shadow(0 0 10px var(--orange-glow)); }
.logo-text { background: linear-gradient(135deg, #fff, #c8c8dc); -webkit-background-clip: text; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.nav-links > a {
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-muted);
    transition: all .2s;
}
.nav-links > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link-admin { color: var(--orange) !important; font-weight: 700 !important; }
.nav-toggle-input {
    display: none;
}
.nav-toggle-label {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 8px 7px;
    background: rgba(255, 255, 255, 0.03);
}
.nav-toggle-label span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .15s ease;
}
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}
.nav-toggle-input:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========== LAYOUT (conteneur principal) ========== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 140px);
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 1;
    border-radius: 0;
    border-width: 1px 0 0 0;
    margin-top: 3rem;
    background: rgba(10, 10, 18, 0.7);
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.footer-logo { font-size: 1.2rem; }
.footer-subtitle { color: var(--text-muted); font-size: .85rem; margin-top: .2rem; }
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { color: var(--text-muted); font-size: .9rem; }
.footer-links a.footer-danger-link { color: #f87171; }
.footer-links a.footer-danger-link:hover { color: #fecaca; text-decoration: underline; }
.copyright { color: var(--text-dim); font-size: .8rem; text-align: right; }

/* ========== BOUTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .6rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; }
.btn-outline {
    background: transparent;
    border-color: var(--border-glass-strong);
    color: var(--text);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--orange); color: var(--orange); }
.btn-danger-outline {
    background: transparent;
    border-color: rgba(255, 59, 92, 0.4);
    color: var(--red);
}
.btn-danger-outline:hover { background: rgba(255, 59, 92, 0.08); }
.btn-danger {
    background: linear-gradient(135deg, var(--red), #ff5e7a);
    color: #fff;
}
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-tiny { padding: .3rem .65rem; font-size: .8rem; border-radius: 6px; }
.btn-liked {
    background: linear-gradient(135deg, #ff3b5c, #ff7a94);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 59, 92, 0.25);
}
.logout-btn { padding: .45rem .9rem; }

/* ========== BADGES (rôles & salons) ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
}
.badge-small {
    display: inline-flex;
    align-items: center;
    padding: .08rem .45rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
}
.badge-user, .badge-small.badge-user {
    background: rgba(100, 120, 160, 0.18);
    color: #8aa2cc;
    border: 1px solid rgba(100, 120, 160, 0.3);
}
.badge-mod, .badge-small.badge-mod {
    background: rgba(59, 255, 167, 0.12);
    color: var(--green);
    border: 1px solid rgba(59, 255, 167, 0.3);
}
.badge-admin, .badge-small.badge-admin {
    background: rgba(59, 167, 255, 0.12);
    color: var(--blue);
    border: 1px solid rgba(59, 167, 255, 0.3);
}
.badge-founder, .badge-small.badge-founder {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(255, 60, 120, 0.2));
    color: var(--orange);
    border: 1px solid var(--orange);
    box-shadow: 0 0 12px rgba(255, 122, 24, 0.15);
}
.badge-general { background: rgba(59, 167, 255, 0.12); color: var(--blue); border: 1px solid rgba(59, 167, 255, 0.3); }
.badge-department { background: rgba(167, 59, 255, 0.12); color: var(--purple); border: 1px solid rgba(167, 59, 255, 0.3); }
.badge-age { background: rgba(59, 255, 167, 0.12); color: var(--green); border: 1px solid rgba(59, 255, 167, 0.3); }
.badge-moderation { background: rgba(255, 159, 59, 0.12); color: var(--orange); border: 1px solid rgba(255, 159, 59, 0.3); }
.badge-private { background: rgba(255, 122, 24, 0.12); color: var(--orange); border: 1px solid rgba(255, 122, 24, 0.3); }

/* ========== ALERTES (messages de retour) ========== */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .92rem;
    border: 1px solid transparent;
}
.alert-error { background: rgba(255, 59, 92, 0.1); color: var(--red); border-color: rgba(255, 59, 92, 0.3); }
.alert-success { background: rgba(59, 255, 167, 0.08); color: var(--green); border-color: rgba(59, 255, 167, 0.3); }
.alert-info { background: rgba(59, 167, 255, 0.1); color: var(--blue); border-color: rgba(59, 167, 255, 0.3); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-input {
    width: 100%;
    padding: .7rem .9rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass-strong);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-family: inherit;
    transition: all .2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.form-input::placeholder { color: var(--text-dim); }
.form-section-title {
    margin: 1.8rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-glass);
    font-size: 1.05rem;
}
.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ========== HOME ========== */
.hero-section { margin-bottom: 3rem; }
.hero-content {
    padding: 3.5rem 2.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 40%, #b0b0c8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
.stat-card {
    padding: 1.2rem;
    border-radius: var(--radius);
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
}
.stat-number { font-size: 2rem; font-weight: 900; }
.stat-label { color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }
.stat-large { padding: 1.8rem 1.2rem; }
.stat-large .stat-number { font-size: 2.6rem; }
.stat-large .stat-label { font-size: .95rem; }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.features-section { margin: 4rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.feature-card {
    padding: 1.8rem 1.4rem;
    transition: transform .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}
.feature-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

.online-section { margin: 4rem 0; }
.online-list {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}
.online-user-card {
    text-align: center;
    padding: 1rem .5rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.25);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}
.online-user-card:hover { background: rgba(255, 122, 24, 0.08); transform: translateY(-2px); }
.online-avatar {
    position: relative;
    width: 56px;
    height: 56px;
}
.avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}
.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 8px var(--green);
}
.online-name { font-size: .85rem; font-weight: 600; }
.empty-text { color: var(--text-muted); text-align: center; padding: 2rem; grid-column: 1 / -1; }

.dashboard-section { }
.welcome-banner {
    padding: 2rem 2rem;
    margin-bottom: 2rem;
}
.welcome-banner h1 { font-size: 1.8rem; margin-bottom: .3rem; }
.welcome-banner p { color: var(--text-muted); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.dash-card {
    padding: 1.6rem 1.4rem;
    display: block;
    transition: all .2s;
    border: 1px solid var(--border-glass);
}
.dash-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    color: inherit;
}
.dash-icon { font-size: 2rem; margin-bottom: .6rem; }
.dash-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.dash-card p { color: var(--text-muted); font-size: .85rem; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.contact-home-cta { margin: 2rem auto 3rem; max-width: 1100px; }
.contact-home-card { display: grid; grid-template-columns: 1.6fr .9fr; gap: 1.4rem; align-items: center; padding: 1.8rem; }
.contact-home-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(249,115,22,.14); border: 1px solid rgba(249,115,22,.28); color: var(--orange); font-weight: 700; margin-bottom: .9rem; }
.contact-home-copy h2 { font-size: 1.7rem; margin-bottom: .75rem; }
.contact-home-copy p { color: var(--text-muted); margin-bottom: 1rem; }
.contact-home-points { display: flex; flex-wrap: wrap; gap: .7rem; }
.contact-home-points span { padding: .5rem .75rem; border-radius: var(--radius-sm); background: rgba(0,0,0,.22); border: 1px solid var(--border-glass); color: var(--text-muted); font-size: .92rem; }
.contact-home-actions { display: flex; flex-direction: column; gap: .85rem; align-items: stretch; }
.contact-home-cta-member { margin-top: 1.5rem; margin-bottom: 2rem; }

/* ========== AUTH ========== */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 300px);
    padding: 1rem 0;
}
.auth-card {
    max-width: 560px;
    width: 100%;
    padding: 2rem 2.2rem;
}
.auth-header { text-align: center; margin-bottom: 1.8rem; }
.auth-header h1 { font-size: 1.8rem; margin-bottom: .4rem; }
.auth-header p { color: var(--text-muted); }
.auth-form { }
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-glass);
}
.auth-footer p { margin-bottom: .7rem; color: var(--text-muted); }

/* ========== ABOUT ========== */
.about-section { max-width: 900px; margin: 0 auto; }
.about-card { padding: 2.5rem; }
.about-card h1 { font-size: 2rem; margin-bottom: 1rem; }
.about-lead { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.8; }
.about-title { font-size: 1.4rem; margin: 2rem 0 1rem; }
.about-features { display: grid; gap: .8rem; margin-bottom: 1rem; }
.about-feat {
    padding: .9rem 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}
.role-card {
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    text-align: center;
}
.role-card .badge { margin-bottom: .6rem; font-size: .85rem; padding: .3rem .8rem; }
.role-card p { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.about-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ========== LEGAL (CGU / Confidentialité RGPD) ========== */
.legal-section { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; }
.legal-card { padding: 2.5rem; }
.legal-header { margin-bottom: 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); }
.legal-header h1 { font-size: 1.9rem; line-height: 1.3; margin-bottom: .7rem; background: linear-gradient(90deg, var(--orange), #ff3b7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-meta { color: var(--text-muted); font-size: .88rem; margin: .2rem 0; }
.legal-intro { color: var(--text); line-height: 1.75; font-size: 1rem; margin-top: .8rem; }
.legal-article { margin: 1.8rem 0; }
.legal-article h2 { font-size: 1.35rem; margin: 1.4rem 0 .9rem; padding-left: .85rem; border-left: 4px solid var(--orange); color: var(--orange-light); }
.legal-article h3 { font-size: 1.08rem; margin: 1rem 0 .5rem; color: var(--text); }
.legal-article p, .legal-article li { color: var(--text); line-height: 1.75; font-size: .97rem; }
.legal-article ul, .legal-article ol { padding-left: 1.35rem; }
.legal-article ul ul { margin: .35rem 0 .6rem 0; }
.legal-article li { margin: .3rem 0; }
.legal-article a { color: var(--orange-light); text-decoration: none; border-bottom: 1px dashed rgba(255,122,24,.4); }
.legal-article a:hover { color: var(--orange); border-bottom-style: solid; }
.legal-address { color: var(--text); font-style: normal; padding: 1rem 1.2rem; background: rgba(0,0,0,0.28); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); line-height: 1.8; }
.legal-footer { display: flex; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-glass); flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: .6rem 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { padding: .75rem .9rem; border: 1px solid var(--border-glass); vertical-align: top; text-align: left; }
.legal-table th { background: rgba(255,122,24,0.12); color: var(--orange-light); font-weight: 600; }
.legal-table tr:nth-child(even) td { background: rgba(0,0,0,0.18); }
.rgpd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0 1.2rem; }
.rgpd-pill { padding: .85rem 1rem; border: 1px solid var(--border-glass); border-radius: var(--radius-sm); background: rgba(0,0,0,0.22); line-height: 1.55; font-size: .92rem; }
.rgpd-pill strong { color: var(--orange-light); display: inline-block; margin-right: .4rem; }
@media (max-width: 600px) {
    .legal-card { padding: 1.4rem 1rem; }
    .legal-header h1 { font-size: 1.45rem; }
    .legal-article h2 { font-size: 1.15rem; }
}

/* ========== CHAT ========== */
.chat-section { }
.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 1rem;
    height: calc(100vh - 180px);
    min-height: 600px;
}
@media (max-width: 1100px) {
    .chat-layout { grid-template-columns: 240px 1fr; }
    .chat-online { display: none; }
}
@media (max-width: 760px) {
    .chat-layout { grid-template-columns: 1fr; height: auto; }
    .chat-sidebar { max-height: 300px; overflow-y: auto; }
    .chat-main { min-height: 500px; }
}

.chat-sidebar, .chat-online {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-header {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-header h3 { font-size: 1rem; }
.sidebar-category {
    padding: 1rem 1rem .5rem;
}
.category-title {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-dim);
    display: block;
    margin-bottom: .5rem;
}
.room-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .15rem;
    transition: all .15s;
}
.room-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.room-item.active {
    background: linear-gradient(90deg, rgba(255, 122, 24, 0.15), transparent);
    color: var(--text);
    border-left: 3px solid var(--orange);
    padding-left: .5rem;
}
.room-item.small { font-size: .8rem; padding: .35rem .55rem; }
.room-icon { font-size: 1rem; }
.room-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-count {
    font-size: .7rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: .1rem .4rem;
    border-radius: 999px;
}
.avatar-sm {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.dept-list { max-height: 220px; overflow-y: auto; }

.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 1rem; }
.avatar-md {
    position: relative;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}
.avatar-md .online-dot { bottom: 0; right: 0; }
.chat-header h2 { font-size: 1.15rem; }
.chat-header small { color: var(--text-muted); display: block; margin-top: .2rem; }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 8px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-glass-strong); border-radius: 4px; }

.empty-chat {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 2rem;
}
.empty-chat-large { padding: 4rem 2rem; }
.empty-chat-large h2 { font-size: 1.8rem; margin-bottom: .6rem; color: var(--text); }
.empty-chat-icon { font-size: 4rem; margin-bottom: 1rem; opacity: .7; }
.empty-chat p { margin-bottom: 1.5rem; }

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    max-width: 82%;
    animation: msgIn .25s ease-out;
}
.msg-mine {
    /* Avatar et pseudo systématiquement à gauche pour voir l'auteur */
}
.msg-mine .msg-avatar {
    background: linear-gradient(135deg, #ff7a18, #ff3c78);
    box-shadow: 0 2px 6px rgba(255, 122, 24, 0.35);
}
.msg-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #6a6a80, #404060);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: .9rem;
    flex-shrink: 0;
    margin-top: .2rem;
}
.msg-body {
    padding: .6rem .9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}
.msg-mine .msg-body {
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 60, 120, 0.10));
    border-color: rgba(255, 122, 24, 0.38);
    border-radius: var(--radius);
    border-top-left-radius: 4px;
}
.msg-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    margin-bottom: .25rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.msg-meta-mine { justify-content: flex-end; margin-top: .2rem; margin-bottom: 0; }
.msg-username { font-weight: 700; color: var(--text); }
.msg-mine .msg-username { color: #ff9a50; }
.msg-time { font-size: .7rem; color: var(--text-dim); }
.msg-action-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    opacity: .35;
    transition: opacity .15s ease, color .15s ease, transform .15s ease;
    padding: 0 .15rem;
    font-size: .85rem;
    line-height: 1;
    border-radius: 4px;
    margin-left: .2rem;
}
.msg:hover .msg-action-btn,
.msg-action-btn:focus {
    opacity: 1;
    color: var(--orange);
    outline: none;
}
.msg-action-btn:hover {
    transform: translateY(-1px);
    color: var(--pink);
}
.msg-action-btn.msg-action-delete:hover,
.msg-action-btn.msg-action-delete:focus {
    color: #e03131 !important;
}
.msg-action-btn.msg-action-delete {
    font-size: .8rem;
}
.msg-reply {
    margin: .2rem 0 .45rem;
    padding: .4rem .6rem;
    background: rgba(255, 122, 24, 0.08);
    border-left: 3px solid var(--orange);
    border-radius: 6px;
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.msg-mine .msg-reply {
    background: rgba(255, 60, 120, 0.08);
    border-left-color: var(--pink);
}
.msg-reply-arrow {
    opacity: .7;
    margin-right: .2rem;
}
.msg-reply-user {
    color: var(--orange);
    font-weight: 700;
}
.msg-mine .msg-reply-user {
    color: var(--pink);
}
.msg-reply-content {
    opacity: .9;
}
.msg-deleted {
    opacity: .75;
}
.msg-deleted .msg-avatar {
    filter: grayscale(1) opacity(.6);
}
.msg-deleted .msg-body {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.06);
}
.msg-deleted-text {
    font-style: italic;
    color: var(--text-dim);
    opacity: .85;
}
.msg-content {
    word-break: break-word;
    white-space: pre-wrap;
    font-size: .93rem;
    line-height: 1.55;
}

.chat-form {
    display: flex;
    align-items: flex-end;
    gap: .6rem;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
    flex-direction: column;
}
.chat-form > :not(:last-child) {
    width: 100%;
}
.chat-form > .chat-input,
.chat-form > .chat-send-btn {
    align-self: stretch;
}
.chat-form > .chat-send-btn {
    align-self: flex-end;
}
.chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .5rem .75rem;
    margin: 0 0 .35rem;
    background: rgba(255, 122, 24, 0.10);
    border: 1px dashed rgba(255, 122, 24, 0.45);
    border-radius: 10px;
    font-size: .8rem;
    color: var(--text);
    width: 100%;
}
.chat-reply-text {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}
.chat-reply-cancel {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .95rem;
    padding: 0 .2rem;
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
    flex-shrink: 0;
}
.chat-reply-cancel:hover {
    color: var(--pink);
    transform: scale(1.1);
}

@media (min-width: 760px) {
    .chat-form {
        flex-direction: row;
        align-items: flex-end;
    }
    .chat-form > :not(:last-child) {
        width: auto;
    }
    .chat-form > .chat-input {
        align-self: auto;
    }
    .chat-form > .chat-send-btn {
        align-self: flex-end;
    }
}
.chat-input {
    flex: 1;
    padding: .75rem 1rem;
    resize: none;
    min-height: 44px;
    max-height: 140px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: all .2s;
    line-height: 1.4;
}
.chat-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.chat-send-btn { white-space: nowrap; padding: .7rem 1.2rem; }

/* ========== VOICE MESSAGES (VIP only) ========== */
.voice-record-btn {
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border: none;
    border-radius: 50%;
    width: 46px; height: 46px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
    transition: transform .15s, box-shadow .15s;
    flex-shrink: 0;
}
.voice-record-btn:hover { transform: scale(1.08); box-shadow: 0 0 12px rgba(255, 107, 53, .5); }
.voice-record-btn:active { transform: scale(.95); }

.voice-recording-bar {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem 1rem;
    background: rgba(255, 59, 92, .12);
    border: 1px solid rgba(255, 59, 92, .4);
    border-radius: var(--radius);
    margin-top: .6rem;
}
.voice-recording-pulse {
    width: 14px; height: 14px;
    background: #ff3b5c;
    border-radius: 50%;
    animation: voicePulse 1s infinite;
    flex-shrink: 0;
}
@keyframes voicePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.3); }
}
.voice-recording-label { color: #ff3b5c; font-weight: 600; font-size: .9rem; }
.voice-recording-timer { color: var(--text-muted); font-family: monospace; font-size: .9rem; }
.voice-stop-btn, .voice-cancel-btn, .voice-discard-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid var(--border-glass);
    color: var(--text);
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: background .15s;
}
.voice-stop-btn:hover { background: rgba(255,59,92,.25); }
.voice-cancel-btn:hover, .voice-discard-btn:hover { background: rgba(255,255,255,.15); }

.voice-preview-bar {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem 1rem;
    background: rgba(255, 107, 53, .1);
    border: 1px solid rgba(255, 107, 53, .35);
    border-radius: var(--radius);
    margin-top: .6rem;
    flex-wrap: wrap;
}
.voice-preview-label { color: var(--orange); font-weight: 600; font-size: .9rem; }
.voice-preview-audio { flex: 1; min-width: 180px; max-height: 40px; }
.voice-send-btn { white-space: nowrap; }

.msg-voice .msg-body { max-width: 320px; }
.msg-voice-player {
    display: flex; align-items: center; gap: .7rem;
    padding: .5rem .7rem;
    background: rgba(255,255,255,.05);
    border-radius: var(--radius-sm);
    width: 260px;
}
.voice-play-btn {
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem;
    flex-shrink: 0;
    transition: transform .15s;
}
.voice-play-btn:hover { transform: scale(1.1); }
.voice-play-btn.playing .voice-play-icon { content: "⏸"; }
.voice-waveform {
    flex: 1; height: 28px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.voice-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ff3b5c);
    transition: width .1s linear;
}
.voice-duration {
    color: var(--text-muted);
    font-size: .8rem;
    font-family: monospace;
    min-width: 38px;
    text-align: right;
}
.voice-audio { display: none; }

.online-list-sidebar {
    flex: 1;
    overflow-y: auto;
    padding: .6rem .6rem;
}
.online-user-side {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .55rem;
    border-radius: var(--radius-sm);
    margin-bottom: .3rem;
    transition: all .15s;
    color: var(--text-muted);
}
.online-user-side:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.online-avatar-sidebar { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.avatar-placeholder-sm {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
}
.online-avatar-sidebar .online-dot { bottom: 0; right: 0; width: 11px; height: 11px; }
.online-user-info { display: flex; flex-direction: column; min-width: 0; }
.online-username { font-weight: 600; font-size: .85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== PETITE PUB VIP (dans la conversation) ========== */
.msg-promo { max-width: 92%; }
.msg-promo .msg-body {
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.16), rgba(255, 122, 24, 0.14));
    border: 1px solid rgba(255, 196, 0, 0.45);
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    box-shadow: 0 4px 18px rgba(255, 168, 0, 0.12);
}
.msg-promo-avatar {
    background: linear-gradient(135deg, #ffd24a, #ff7a18);
    box-shadow: 0 2px 8px rgba(255, 168, 0, 0.45);
    font-size: 1.05rem;
}
.msg-promo .msg-username { color: #ffd24a; }
.msg-promo .badge-small {
    background: linear-gradient(135deg, #ffd24a, #ff9a00);
    color: #3a2400;
    font-weight: 800;
    border: none;
}
.vip-promo { display: flex; flex-direction: column; gap: .6rem; }
.vip-promo-title {
    font-weight: 800;
    font-size: .98rem;
    color: #ffe08a;
    letter-spacing: .2px;
}
.vip-promo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .3rem;
}
.vip-promo-list li {
    font-size: .86rem;
    color: var(--text);
    line-height: 1.35;
}
.vip-promo-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: .2rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd24a, #ff7a18);
    color: #2a1700;
    font-weight: 800;
    font-size: .86rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.vip-promo-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 140, 0, 0.5);
}
@media (max-width: 640px) {
    .msg-promo { max-width: 100%; }
    .vip-promo-list { gap: .25rem; }
}

/* ========== PROFILE ========== */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
}
.profile-card { padding: 2rem 2.2rem; }
.profile-header {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
    align-items: center;
}
.profile-avatar-xl {
    position: relative;
    width: 130px; height: 130px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 3px solid var(--border-glass-strong);
    overflow: hidden;
}
.avatar-img-xl { width: 100%; height: 100%; object-fit: cover; }
.online-dot-xl {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--green);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
}
.profile-info { flex: 1; min-width: 250px; }
.profile-title-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.profile-title-row h1 { font-size: 1.8rem; }
.profile-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: .9rem;
}
.profile-bio {
    font-size: .95rem;
    line-height: 1.7;
    color: #cfcfdf;
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-glass);
}
.profile-bio.empty-bio { text-align: center; color: var(--text-dim); }
.profile-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}
.match-badge {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.18), rgba(255, 122, 24, 0.18));
    color: var(--orange);
    border: 1px solid var(--orange);
    font-weight: 700;
    font-size: .9rem;
}
.online-pill, .offline-pill {
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}
.online-pill { background: rgba(59, 255, 167, 0.1); color: var(--green); border: 1px solid rgba(59, 255, 167, 0.3); }
.online-pill.small { padding: .1rem .45rem; font-size: .7rem; }
.offline-pill { background: rgba(100, 100, 120, 0.15); color: var(--text-dim); border: 1px solid var(--border-glass-strong); }
.match-pill { background: linear-gradient(135deg, rgba(255, 59, 92, 0.15), rgba(255, 122, 24, 0.15)); color: var(--orange); border: 1px solid var(--orange); padding: .1rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }

.profile-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1.4rem; }
.side-card h3 { font-size: .95rem; margin-bottom: .8rem; }
.side-stat {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    font-size: .88rem;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-glass);
}
.side-stat:last-child { border-bottom: none; }
.side-stat strong { color: var(--text); }
.side-card-inner {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
}
.blocked-list { display: flex; flex-direction: column; gap: .4rem; }
.blocked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem .6rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}
.blocked-name { color: var(--text); }

.edit-section { max-width: 800px; margin: 0 auto; }
.edit-card { padding: 2.2rem 2.4rem; }
.edit-header h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.edit-avatar-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
}
.edit-avatar-preview .profile-avatar-xl,
.edit-avatar-preview .avatar-img-xl { width: 90px; height: 90px; font-size: 2.2rem; }
.edit-form .form-section-title:first-of-type { margin-top: 0; }

/* ========== SEARCH ========== */
.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.2rem;
    align-items: start;
}
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } }

.search-filters { padding: 1.5rem; position: sticky; top: 90px; }
.search-filters h2 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.filter-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.mini-users-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.mini-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    background: rgba(0, 0, 0, 0.3);
    transition: all .15s;
}
a.mini-user:hover { background: rgba(255, 122, 24, 0.08); color: inherit; }
.mini-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: .75rem;
    flex-shrink: 0;
}

.results-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.results-header h2 { font-size: 1.1rem; }
.results-header small { color: var(--text-muted); }

.empty-results { padding: 4rem 2rem; text-align: center; color: var(--text-muted); }
.empty-results .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: .6; }

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.user-card {
    padding: 1.2rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: all .2s;
}
.user-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
}
.user-card-header { display: flex; gap: .8rem; align-items: center; }
.card-avatar {
    position: relative;
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--orange), #ff3b5c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem; color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.card-info { min-width: 0; flex: 1; }
.card-username { font-weight: 800; font-size: 1.02rem; color: var(--text); }
.card-username:hover { color: var(--orange); }
.card-badges { display: flex; gap: .3rem; margin: .25rem 0; flex-wrap: wrap; }
.card-meta { font-size: .78rem; color: var(--text-muted); }
.card-bio {
    font-size: .85rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
    padding: .6rem .8rem;
    border-radius: var(--radius-sm);
    line-height: 1.5;
}
.card-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.pagination {
    margin-top: 1.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}

/* ========== ADMIN ========== */
.admin-section { }
.admin-header { padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.admin-header h1 { font-size: 1.7rem; }
.admin-header p { margin-top: .4rem; color: var(--text-muted); }
.admin-header p strong { color: var(--text); }
.admin-breadcrumb { margin-top: .6rem; }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
/* Grille de statistiques générique (dashboard signalements, etc.)
   auto-fit => s'adapte du desktop (5-6 cartes) au mobile (1 carte). */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.stat-value { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.stat-card .stat-value { margin-top: .2rem; }
.admin-shortcuts {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.admin-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.admin-search-form {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}
.results-summary {
    margin-bottom: 1rem;
    font-size: .95rem;
    color: var(--text-muted);
}
.results-summary strong { color: var(--orange); font-size: 1.1rem; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.admin-table th, .admin-table td {
    padding: .75rem .9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}
.admin-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-glass-strong);
}
.admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.admin-table .row-banned { background: rgba(255, 59, 92, 0.04); }
.row-banned td { color: var(--text-dim) !important; }
.banned-badge { color: var(--red); font-weight: 700; font-size: .8rem; }
.active-badge { color: var(--green); font-weight: 700; font-size: .8rem; }

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .6rem;
    margin-top: 1rem;
}
.dept-chip {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: .88rem;
}
.dept-chip strong { min-width: 38px; }

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    max-width: 460px;
    width: 100%;
    padding: 2rem 2.2rem;
    animation: modalIn .2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-content h2 { margin-bottom: 1.2rem; }

/* ========== ERROR ========== */
.error-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-card {
    max-width: 500px;
    padding: 3rem 2rem;
    text-align: center;
}
.error-code {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px var(--orange-glow);
}
.error-card h1 { font-size: 1.8rem; margin-bottom: .6rem; }
.error-card p { color: var(--text-muted); margin-bottom: 1.8rem; }
.error-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ========== MULTI CHOICE (checkbox pills) ========== */
.form-section-title {
    margin: 1.8rem 0 .9rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--orange-light);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .2px;
}
.form-section-title .hint { color: var(--text-dim); font-weight: 500; font-size: .85rem; margin-left: .3rem; }
.hint { color: var(--text-dim); font-size: .85rem; }
.multi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .5rem .6rem;
}
.multi-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    cursor: pointer;
    transition: all .18s ease;
    font-size: .88rem;
    user-select: none;
}
.multi-item:hover {
    background: rgba(255, 122, 24, 0.08);
    border-color: var(--orange);
    transform: translateY(-1px);
}
.multi-item input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
}
.multi-item span { color: var(--text); }
.multi-item:has(input:checked) {
    background: rgba(255, 122, 24, 0.18);
    border-color: var(--orange);
    color: var(--orange-light);
    box-shadow: 0 0 0 1px var(--orange-glow) inset;
}
.multi-item:has(input:checked) span { color: var(--orange-light); }
.multi-item.disabled {
    opacity: .45;
    pointer-events: none;
    filter: grayscale(.4);
}

/* ========== AVAILABILITY CHECK (REGISTER) ========== */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .form-input {
    padding-right: 2.5rem;
}
.avail-indicator {
    position: absolute;
    right: .8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    line-height: 1;
    pointer-events: none;
    transition: opacity .18s;
    opacity: .85;
}
.avail-indicator.checking { animation: spin 1.1s linear infinite; display: inline-flex; }
.avail-indicator.ok { color: var(--green); text-shadow: 0 0 8px rgba(59,255,167,0.35); }
.avail-indicator.bad { color: var(--red); text-shadow: 0 0 8px rgba(255,59,92,0.35); }
@keyframes spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

.form-input.avail-ok {
    border-color: rgba(59, 255, 167, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 255, 167, 0.12) inset;
}
.form-input.avail-bad {
    border-color: rgba(255, 59, 92, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.10) inset;
    background: rgba(255, 59, 92, 0.05);
}
.form-input.avail-checking {
    border-color: rgba(255, 166, 77, 0.5);
}
.avail-message {
    min-height: 1.1em;
    font-size: .8rem;
    margin-top: .35rem;
    padding-left: .15rem;
    transition: color .18s;
}
.avail-message.msg-ok { color: var(--green); }
.avail-message.msg-bad { color: var(--red); }

/* ========== CAPTCHA ========== */
.captcha-group {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-glass);
    margin-bottom: 1.4rem;
}
.captcha-group > label {
    color: var(--orange-light);
    margin-bottom: .7rem;
}
.captcha-row {
    display: flex;
    align-items: stretch;
    gap: .9rem;
    flex-wrap: wrap;
}
.captcha-image-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-glass-strong);
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.captcha-image-wrap img {
    display: block;
    width: 180px;
    height: 56px;
    user-select: none;
    -webkit-user-drag: none;
    background: #1e2030;
}
.captcha-refresh {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    color: var(--orange-light);
    border-radius: 6px;
    font-size: .9rem;
    border: 1px solid var(--border-glass);
    transition: all .15s;
}
.captcha-refresh:hover {
    transform: rotate(180deg);
    color: var(--orange);
    border-color: var(--orange);
}
.captcha-input-wrap {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    justify-content: center;
}
.captcha-input-wrap .form-input {
    letter-spacing: 3px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Courier New', monospace;
}
.captcha-input-wrap .hint { font-size: .75rem; }

/* ========== PROFILE TAGS ========== */
.profile-tags-block {
    margin-top: 1.2rem;
    display: grid;
    gap: 1rem;
}
.tags-group h4.tags-title {
    color: var(--orange-light);
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .6rem;
    letter-spacing: .2px;
}
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
}
.tag.tag-activity {
    background: rgba(59, 167, 255, 0.12);
    border-color: rgba(59, 167, 255, 0.35);
    color: #7ec0ff;
}
.tag.tag-hobby {
    background: rgba(167, 59, 255, 0.12);
    border-color: rgba(167, 59, 255, 0.35);
    color: #d39bff;
}

/* ========== DISCOVER + PREFERENCES ========== */
.discover-layout, .search-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.3rem;
    align-items: start;
}
@media (max-width: 980px) {
    .discover-layout, .search-layout { grid-template-columns: 1fr; }
}
.discover-filters, .search-filters {
    padding: 1.5rem;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
}
.discover-filters h2, .search-filters h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}
.scope-banner {
    padding: .9rem 1rem;
    background: rgba(255,122,24,0.06);
    border: 1px solid var(--orange);
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: .88rem;
    line-height: 1.5;
}
.chip {
    display: inline-flex;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .78rem;
    margin: .15rem .2rem .15rem 0;
    font-weight: 600;
}
.chip.chip-region { background: rgba(255,122,24,0.2); color: var(--orange-light); }
.chip.chip-outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-glass);
}
.filter-toggles {
    display: grid;
    gap: .55rem;
    margin: .9rem 0 .2rem;
}
.filter-toggles.big-toggles .toggle-wrap {
    padding: .85rem 1rem;
}
.toggle-wrap {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .65rem;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s;
    font-size: .9rem;
}
.toggle-wrap:hover {
    border-color: var(--orange);
    background: rgba(255,122,24,0.05);
}
.toggle-wrap input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--orange);
    flex-shrink: 0;
    cursor: pointer;
}
.applied-prefs {
    margin-top: 1.1rem;
    padding: .8rem .95rem;
    background: rgba(0,0,0,0.22);
    border: 1px dashed var(--border-glass-strong);
    border-radius: var(--radius-sm);
    line-height: 1.55;
}
.discover-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-radius: var(--radius-lg);
    gap: .7rem;
    flex-wrap: wrap;
}
.results-header h2 { font-size: 1.1rem; }
.results-header small { color: var(--text-muted); }

.discover-grid .discover-card {
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}
.discover-card > * {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
.discover-card > .match-score-bar { padding: 0; }
.match-score-bar {
    height: 4px;
    width: 100%;
    background: var(--border-glass);
    transition: background .2s;
}
.match-score-bar.match-score-high { background: linear-gradient(90deg, #ff3b5c, #ff7a18); }
.match-score-bar.match-score-mid  { background: linear-gradient(90deg, #3bffa7, #3ba7ff); }
.match-score-bar.match-score-low  { background: linear-gradient(90deg, #7a88a3, #a99ab4); }
.discover-card .user-card-header { padding-top: 1.1rem; }

.card-avatar {
    position: relative;
}
.score-bubble {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: .75rem;
    color: #0d0f17;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    z-index: 2;
}
.score-bubble.match-score-high { background: linear-gradient(135deg, #ff3b5c, #ff7a18); color: #fff; }
.score-bubble.match-score-mid  { background: linear-gradient(135deg, #3bffa7, #3ba7ff); }
.score-bubble.match-score-low  { background: #c9cfe0; color: #1a1d2b; }

.intent-pill {
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    background: rgba(255, 122, 24, 0.12);
    color: var(--orange-light);
    border: 1px solid rgba(255,122,24,0.4);
    font-weight: 600;
}
.verified-badge {
    margin-left: .25rem;
    font-size: .95rem;
}
.common-tags {
    margin-top: .45rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.common-tags small { color: var(--text-dim); }
.common-tags .tag {
    padding: .2rem .55rem;
    font-size: .75rem;
    margin: .1rem .15rem .1rem 0;
}

/* PREFERENCES */
.preferences-section {
    max-width: 780px;
    margin: 0 auto;
}
.sub-hint {
    color: var(--text-muted);
    margin: .2rem 0 1.2rem;
    font-size: .92rem;
    line-height: 1.55;
}
.sub-hint a { color: var(--orange); font-weight: 600; }

.intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .5rem;
    margin-top: .4rem;
}
.intent-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s;
    font-size: .9rem;
}
.intent-item:hover {
    background: rgba(255,122,24,0.07);
    border-color: var(--orange);
    transform: translateY(-1px);
}
.intent-item input[type="radio"] {
    accent-color: var(--orange);
    width: 18px; height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}
.intent-item:has(input:checked) {
    background: rgba(255,122,24,0.2);
    border-color: var(--orange);
    color: var(--orange-light);
    box-shadow: 0 0 0 1px var(--orange-glow) inset;
    font-weight: 600;
}

.match-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255,59,92,0.92), rgba(255,122,24,0.92));
    color: #fff;
    padding: .9rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 10px 35px rgba(255, 78, 65, 0.5);
    animation: matchPop .35s cubic-bezier(.2,1.4,.3,1);
}
@keyframes matchPop {
    0%   { opacity: 0; transform: translate(-50%, -10px) scale(.9); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.preferences-section .edit-card { padding: 2rem 2.2rem; }
@media (max-width: 600px) {
    .preferences-section .edit-card { padding: 1.4rem 1.1rem; }
    .discover-filters { position: static; max-height: none; }
}

@media (max-width: 980px) {
    .nav-toggle-label { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 18, 0.97);
        border-bottom: 1px solid var(--border-glass);
        padding: .9rem 1.2rem 1.1rem;
        flex-direction: column;
        align-items: stretch;
        gap: .45rem;
        gap: .5rem;
        display: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .nav-links > a,
    .nav-links > span {
        width: 100%;
        justify-content: flex-start;
    }
    .nav-toggle-input:checked ~ .nav-links {
        display: flex;
    }
    .navbar {
        position: relative;
    }
}

@media (max-width: 600px) {
    .nav-container { padding: .8rem 1rem; }
    .main-container { padding: 1.2rem 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .hero-stats { grid-template-columns: 1fr; }
    .contact-home-card { grid-template-columns: 1fr; padding: 1.25rem; }
    .contact-home-copy h2 { font-size: 1.35rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .copyright { text-align: center; }
    .chat-form { flex-direction: column; align-items: stretch; }
    .chat-send-btn { width: 100%; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-title-row { justify-content: center; }
    .profile-meta { justify-content: center; }
    .multi-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ========== ADS / PUBLICITÉ ========== */
.pub-top-container,
.pub-footer-container {
    max-width: 1400px;
    margin: .8rem auto 0;
    padding: 0 1rem;
}
.pub-footer-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.ad-container {
    display: block;
    width: 100%;
    text-align: center;
    padding: .6rem;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-sizing: border-box;
}
.ad-top     { min-height: 100px; max-width: 970px; }
.ad-sidebar { min-height: 300px; max-width: 320px; }
.ad-inline  { min-height: 260px; max-width: 728px; }
.ad-footer  { min-height: 130px; max-width: 970px; }

.ad-placeholder {
    background: linear-gradient(135deg, rgba(255,122,24,0.10), rgba(167,59,255,0.08));
    border: 1px dashed rgba(255,122,24,0.45);
    border-radius: var(--radius);
}
.ad-placeholder-inner {
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 90px;
}
.ad-label {
    display: inline-block;
    padding: .18rem .6rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--orange-light);
    background: rgba(255,122,24,0.15);
    border: 1px solid rgba(255,122,24,0.35);
    border-radius: 999px;
}
.ad-text { font-size: .88rem; color: var(--text-muted); font-weight: 500; }
.ad-cta {
    display: inline-block;
    margin-top: .2rem;
    padding: .4rem .9rem;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ff4d88);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255,122,24,0.25);
    transition: transform .2s;
}
.ad-cta:hover { transform: translateY(-1px); color: #fff; }

.mgid-ad {
    min-height: 130px;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
}

/* ========== VIP ========== */
.btn-vip-short {
    background: linear-gradient(135deg, #a73bff, #ff7a18 60%, #ff4d88);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 6px 20px rgba(167,59,255,0.3);
    font-weight: 800;
}
.btn-vip-short:hover { color: #fff; transform: translateY(-1px); }

.btn-hot {
    background: linear-gradient(135deg, #ff3b5c, #ff7a18 55%, #a73bff);
    color: #fff;
    box-shadow: 0 10px 26px rgba(255,59,92,0.28);
    font-weight: 800;
}
.btn-hot:hover { color: #fff; transform: translateY(-1px); }

.badge-vip-nav, .badge-vip-big {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
    color: #fff;
    background: linear-gradient(135deg, #a73bff 0%, #ff7a18 55%, #ff4d88 100%);
    box-shadow: 0 6px 18px rgba(167,59,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}
.badge-vip-big { padding: .5rem 1rem; font-size: 1rem; }

.vip-hero {
    padding: 3rem 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.vip-hero-inner {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(167,59,255,0.14), rgba(255,122,24,0.12), rgba(255,77,136,0.08));
    border: 1px solid rgba(255,122,24,0.25);
    box-shadow: 0 20px 60px rgba(167,59,255,0.2);
}
.vip-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #ffb88a 40%, #d9b3ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: .8rem;
    letter-spacing: -.5px;
}
.vip-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}
.vip-alert-current {
    margin-top: 1.2rem;
    padding: 1.2rem 1.4rem;
    display: flex; flex-direction: column; align-items: center; gap: .9rem;
    background: rgba(59,255,167,0.07);
    border: 1px solid rgba(59,255,167,0.3);
    border-radius: var(--radius);
}
.vip-current-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.8rem; }
.vip-ends { color: var(--text-muted); font-size: .95rem; }
.vip-lifetime { color: var(--orange-light); font-weight: 700; }

/* Points forts VIP mis en avant (zéro pub + messages prioritaires) */
.vip-highlights {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}
.vip-highlight {
    display: flex; flex-direction: column; gap: .5rem;
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(167,59,255,0.12), rgba(255,122,24,0.10));
    border: 1px solid rgba(255,122,24,0.3);
    box-shadow: 0 14px 40px rgba(167,59,255,0.15);
}
.vip-highlight-ico { font-size: 2.2rem; line-height: 1; }
.vip-highlight h3 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.vip-highlight p { color: var(--text-muted); font-size: .95rem; line-height: 1.55; margin: 0; }

.vip-plans-section {
    max-width: 1200px;
    margin: 1rem auto 2.5rem;
    padding: 1rem;
}
.vip-plans-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .4rem;
}
.vip-plans-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.vip-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}
.vip-plan-card {
    position: relative;
    padding: 2rem 1.6rem;
    display: flex; flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(167,59,255,0.05));
    border: 1px solid var(--border-glass-strong);
    transition: all .2s;
}
.vip-plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 20px 50px rgba(167,59,255,0.18);
}
.vip-plan-hot {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(255,122,24,0.14), rgba(167,59,255,0.14));
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgba(255,122,24,0.5) inset, 0 20px 50px rgba(255,59,92,0.25);
    transform: translateY(-6px);
}
.vip-plan-ribbon {
    position: absolute;
    top: 14px; right: -42px;
    transform: rotate(35deg);
    background: linear-gradient(135deg, var(--red), #ff7a18);
    color: #fff;
    font-weight: 900;
    font-size: .7rem;
    letter-spacing: 1.2px;
    padding: .25rem 3rem;
    border-radius: 0;
    box-shadow: 0 6px 14px rgba(255,59,92,0.35);
}
.vip-plan-head { text-align: center; }
.vip-plan-head h3 {
    font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem;
}
.vip-plan-price {
    display: flex; align-items: baseline; justify-content: center; gap: .3rem;
    margin: .5rem 0 .25rem;
}
.vip-price-value { font-size: 3rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.vip-price-cur { font-size: 1.4rem; color: var(--orange-light); font-weight: 700; }
.vip-price-period { color: var(--text-muted); font-weight: 600; }
.vip-plan-duration {
    margin-top: .2rem;
    font-size: .85rem;
    color: var(--text-dim);
}
.vip-plan-features {
    list-style: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    margin: .3rem 0;
}
.vip-plan-features li {
    padding: .45rem 0 .45rem 1.7rem;
    position: relative;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--text);
}
.vip-plan-features li::before {
    content: "✓";
    position: absolute; left: 0; top: .45rem;
    width: 1.15rem; height: 1.15rem;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .7rem; font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #a73bff);
}
.vip-plan-footer {
    margin-top: auto;
    display: flex; flex-direction: column; gap: .6rem;
    padding-top: .3rem;
}
.vip-plan-footer .btn { width: 100%; padding: .85rem 1rem; font-size: .95rem; }
.vip-note-stripe {
    font-size: .75rem; color: var(--text-dim); text-align: center; line-height: 1.35;
}

.vip-compare {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 2rem 1.6rem;
}
.vip-compare h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.6rem;
}
.vip-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}
.vip-compare-grid > div {
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
}
.vip-compare-grid h3 {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--orange-light);
}
.vip-compare-grid p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-vip-link {
    display: inline-block;
    margin-top: .55rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,122,24,0.15), rgba(167,59,255,0.12));
    border: 1px solid rgba(255,122,24,0.35);
    color: var(--orange-light);
    font-size: .8rem;
}
.footer-vip-link:hover { color: #fff; }
.footer-sub { margin-top: .1rem; }
.alert-danger { background: rgba(255,59,92,0.08); color: var(--red); border: 1px solid rgba(255,59,92,0.3); }

/* ========== STAFF / MODÉRATION ========== */
.btn-staff-short {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .8rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1;
}
.badge-staff-link:hover { color: #fff; transform: translateY(-1px); }
.badge-staff-moderator {
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
    box-shadow: 0 6px 18px rgba(14,165,233,0.3);
}
.badge-staff-admin {
    background: linear-gradient(135deg, #a855f7, #7c3aed 60%, #ef4444);
    box-shadow: 0 6px 20px rgba(139,92,246,0.35);
}
.badge-staff-founder {
    background: linear-gradient(135deg, #f59e0b, #ef4444 55%, #a855f7);
    box-shadow: 0 6px 22px rgba(245,158,11,0.4);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-staff-logs {
    padding: .35rem .65rem;
    font-weight: 700;
    font-size: .8rem;
    border-radius: 999px;
}

/* Formulaire inline dans la navbar (ex : bascule « aperçu non-VIP ») */
.nav-inline-form { display: inline-flex; margin: 0; }
.nav-inline-form .btn-staff-short { cursor: pointer; }
.btn-staff-short.is-active {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
    color: #fff;
}

/* Bandeau du mode « aperçu non-VIP » (staff admin/founder uniquement) */
.vip-preview-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin: 1rem auto; padding: .9rem 1.2rem;
    max-width: 1100px;
    border: 1px solid rgba(239,68,68,0.45);
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(168,85,247,0.12));
    border-radius: 14px;
    color: #fff;
    font-size: .92rem;
}
.vip-preview-banner__text { line-height: 1.5; }
.vip-preview-banner .btn { white-space: nowrap; }

.warn-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}
.warn-zero   { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.35); }
.warn-low    { background: rgba(234,179,8,0.14);  color: #eab308; border: 1px solid rgba(234,179,8,0.45); }
.warn-high   { background: rgba(239,68,68,0.14);  color: #ef4444; border: 1px solid rgba(239,68,68,0.45); }

.btn-warn {
    background: linear-gradient(135deg, #eab308, #ef4444);
    color: #fff;
    box-shadow: 0 8px 22px rgba(234,179,8,0.3);
    font-weight: 700;
}
.btn-warn:hover { color: #fff; transform: translateY(-1px); }

.btn-warn-outline {
    background: rgba(234,179,8,0.1);
    color: #fbbf24;
    border: 1px solid rgba(234,179,8,0.5);
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: 8px;
    font-size: .8rem;
}
.btn-warn-outline:hover { background: rgba(234,179,8,0.2); color: #fbbf24; }

.btn-danger-outline {
    background: rgba(239,68,68,0.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.5);
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: 8px;
    font-size: .8rem;
}
.btn-danger-outline:hover { background: rgba(239,68,68,0.2); color: #fecaca; }

.btn-tiny { padding: .25rem .55rem; border-radius: 8px; font-size: .8rem; }

.mod-filters {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: .5rem; margin-bottom: 1rem; padding: .3rem 0;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: .9rem;
}
.reason-cell { max-width: 380px; word-break: break-word; }
.row-banned { background: rgba(239,68,68,0.06); }
.row-banned td { opacity: .85; }
.empty-td { padding: 2rem 1rem; text-align: center; color: var(--text-dim); }

.user-warn-banner {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(234,179,8,0.35);
    background: linear-gradient(135deg, rgba(234,179,8,0.16), rgba(239,68,68,0.10));
}
.user-warn-banner__title {
    color: #fbbf24;
    font-weight: 900;
    margin-bottom: .35rem;
}
.user-warn-banner__meta {
    color: var(--text);
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.user-warn-banner__reason {
    margin-top: .55rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}
.user-warn-banner__author {
    color: var(--text-dim);
}

.banned-badge { color: #ef4444; font-weight: 800; padding: .2rem .5rem; border-radius: 999px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); }
.active-badge { color: #22c55e; font-weight: 800; padding: .2rem .5rem; border-radius: 999px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35); }
.muted { color: var(--text-dim); }
.muted-small { color: var(--text-dim); font-size: .8rem; }

/* ============================================================
 * Pages "Mot de passe oublié" + "Réinitialisation du mdp"
 * ============================================================ */
.auth-wrap {
    min-height: 86vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 1.2rem;
    position: relative;
}
.auth-forgot-page, .auth-reset-page { }
.auth-wrap .auth-card {
    width: 100%;
    max-width: 460px;
    position: relative;
    padding: 2rem 1.6rem 1.6rem;
}
.auth-head h1 {
    font-size: 1.9rem;
    font-weight: 900;
    margin: 0 0 .5rem 0;
    line-height: 1.1;
    letter-spacing: .3px;
}
.auth-head .auth-sub {
    margin: 0 0 1.1rem 0;
    color: var(--text-dim);
    font-size: .94rem;
    line-height: 1.5;
}
.auth-form .captcha-group { }
.auth-form .captcha-row {
    display: flex; align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
}
.auth-form .captcha-img {
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: #0f172a;
    cursor: pointer;
    transition: transform .15s ease;
}
.auth-form .captcha-img:hover { transform: translateY(-1px); }
.auth-form .captcha-refresh { padding: .4rem .55rem; }

.auth-foot-links {
    display: flex; flex-wrap: wrap;
    gap: .55rem 1rem;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border-glass);
    font-size: .88rem;
}
.auth-foot-links a {
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}
.auth-foot-links a:hover { color: var(--orange); transform: translateY(-1px); }
.auth-foot-links .link-orange { color: var(--orange); }
.auth-foot-links .link-orange:hover { color: var(--pink); }

.forgot-wrap {
    text-align: right;
    margin-top: .35rem;
}
.link-forgot {
    font-size: .82rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: color .15s ease, text-shadow .15s ease;
}
.link-forgot:hover {
    color: var(--orange);
    text-shadow: 0 0 12px rgba(249,115,22,0.25);
}

/* ==========================================================================
   AGE GATE TCHAT — STYLES DU WIDGET CONTRÔLE MAJEUR AVANCÉ
   --------------------------------------------------------------------------
   Structure CSS ciblée :
     .age-gate-section              [data-status=pending|passed|failed]
       ├─ .age-gate-header
       │    └─ .badge .badge-{pending,passed,failed}
       ├─ .age-gate-progress > span (barre gradient orange→rose)
       ├─ .age-gate-chat
       │    ├─ .ag-msg .bot / .me
       │    │    ├─ .ag-avatar (38px rond)
       │    │    └─ .ag-bubble
       │    └─ scrollbar thin custom
       ├─ .age-gate-inputs
       │    ├─ .row-input > input + .ag-btn-send
       │    ├─ .age-gate-choices
       │    │    └─ .ag-choice (pills cliquables, état :hover, :selected)
       │    └─ .hint (petit texte instruction couleur muted)
       ├─ .age-gate-final (.passed | .failed)
       │    └─ .retry-btn
       └─ utilitaire : .age-gate-hidden { display: none !important; }

   Design tokens : variables globales var(--orange), var(--pink), var(--blue)
   ========================================================================== */

/* Conteneur RACINE : bordure + ombre dynamique selon data-status
   (modifié en JS par updateStatus à chaque étape). */
.age-gate-section {
    margin: 0 0 1.4rem;
    border: 1px solid var(--border-glass);
    background: linear-gradient(135deg, rgba(249,115,22,0.05), rgba(236,72,153,0.05));
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
/* Bordure orange pâle quand session en cours de validation */
.age-gate-section[data-status="pending"] { border-color: rgba(249,115,22,0.35); }
/* Bordure + halo vert si contrôle MAJEUR VALIDÉ (passed) */
.age-gate-section[data-status="passed"]  { border-color: rgba(34,197,94,0.5); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
/* Bordure + halo rouge si ÉCHEC (âge < 18 OU score < 4/6) */
.age-gate-section[data-status="failed"]  { border-color: rgba(239,68,68,0.5); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

/* Header : titre + badge d'étape. Dégradé léger orange→rose. */
.age-gate-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.1rem;
    background: linear-gradient(90deg, rgba(249,115,22,0.12), rgba(236,72,153,0.08));
    border-bottom: 1px solid var(--border-glass);
}
.age-gate-header .left { display: flex; align-items: center; gap: .65rem; }
.age-gate-header .title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.age-gate-header .sub   { font-size: .8rem; color: var(--text-muted); }
.age-gate-header .icon  { font-size: 1.4rem; }
/* Badge d'étape : "0/6" → "6/6", "✓ Vérifié", "✗ Échec" */
.age-gate-header .badge {
    padding: .25rem .55rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.age-gate-header .badge-pending { background: rgba(249,115,22,0.18); color: var(--orange); }
.age-gate-header .badge-passed  { background: rgba(34,197,94,0.18); color: #16a34a; }
.age-gate-header .badge-failed  { background: rgba(239,68,68,0.18); color: #dc2626; }

/* Barre de progression : hauteur 6px, DEGRADÉ ORANGE → ROSE animé (cubic-bezier ease out).
   La propriété `width` de <span> est contrôlée par JS (updateStatus) */
.age-gate-progress {
    height: 6px; background: rgba(148,163,184,0.18);
    overflow: hidden; position: relative;
}
.age-gate-progress > span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* Zone tchat : flex-direction column pour bulles empilées,
   max-height 440px avec scrollbar thin customisée. */
.age-gate-chat {
    display: flex; flex-direction: column;
    gap: .85rem;
    padding: 1.1rem;
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.age-gate-chat::-webkit-scrollbar { width: 6px; }
.age-gate-chat::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.3); border-radius: 10px; }

/* Bulle de message : avatar 38px rond + bulle textuelle.
   Animation ag-in : fade-in + slide 5px vers le haut (nouveau message). */
.ag-msg {
    display: flex; max-width: 86%;
    gap: .55rem;
    animation: ag-in .25s ease-out both;
}
@keyframes ag-in { from { opacity:0; transform: translateY(5px);} to { opacity:1; transform:none; } }
/* Bot : aligné à GAUCHE (align-self: flex-start) */
.ag-msg.bot { align-self: flex-start; }
/* Moi : aligné À DROITE, avatar à DROITE (flex-direction: row-reverse) */
.ag-msg.me  { align-self: flex-end; flex-direction: row-reverse; }
/* Avatar : taille fixe 38×38, icône au centre, coins arrondis */
.ag-avatar {
    flex-shrink: 0; width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
}
.ag-msg.bot .ag-avatar { background: linear-gradient(135deg, var(--orange), var(--pink)); color: #fff; }
.ag-msg.me  .ag-avatar { background: rgba(59,130,246,0.2); color: var(--blue); }
/* Bulle textuelle : padding généreux, blanc pré-wrap (retours ligne dans prompt). */
.ag-bubble {
    padding: .65rem .85rem;
    border-radius: 16px;
    font-size: .94rem; line-height: 1.55;
    white-space: pre-wrap; word-break: break-word;
}
/* Bulle BOT : sombre, coin supérieur gauche pointu (tail) */
.ag-msg.bot .ag-bubble {
    background: rgba(15,23,42,0.55);
    border: 1px solid var(--border-glass);
    border-top-left-radius: 4px;
    color: var(--text);
}
/* Bulle MOI : gradient bleu→indigo, coin supérieur droit pointu + ombre portée */
.ag-msg.me .ag-bubble {
    background: linear-gradient(135deg, rgba(59,130,246,0.85), rgba(99,102,241,0.85));
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(59,130,246,0.22);
}

/* Zone de saisie INPUT : section en bas du tchat,
   séparateur pointillé, fond sombre semi-transparent. */
.age-gate-inputs {
    padding: .85rem 1.1rem 1.1rem;
    border-top: 1px dashed var(--border-glass);
    background: rgba(2,6,23,0.35);
}
.age-gate-inputs .row-input {
    display: flex; gap: .55rem; align-items: stretch;
}
.age-gate-inputs .hint {
    font-size: .78rem; color: var(--text-muted); margin: .25rem 0 .55rem;
}
/* Inputs date / number / text (mode champ libre) */
.age-gate-inputs input[type="date"],
.age-gate-inputs input[type="number"],
.age-gate-inputs input[type="text"] {
    flex: 1;
    padding: .65rem .85rem;
    background: rgba(15,23,42,0.65);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text);
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
/* Focus : bordure orange + halo orange (consistant avec palette globale) */
.age-gate-inputs input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
/* Bouton "Valider" (champ libre). Dégradé orange→rose, hover lift + ombre. */
.age-gate-inputs .ag-btn-send {
    padding: .55rem 1.1rem;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.age-gate-inputs .ag-btn-send:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,0.3); }
.age-gate-inputs .ag-btn-send:active:not(:disabled) { transform: translateY(0); }
.age-gate-inputs .ag-btn-send:disabled { opacity: .5; cursor: not-allowed; }

/* Pills CHOIX (génération, bac, zodiac, ref_event).
   Flex wrap (retour ligne auto si pas assez de place). */
.age-gate-choices {
    display: flex; flex-wrap: wrap;
    gap: .45rem;
}
.age-gate-choices button.ag-choice {
    padding: .55rem .95rem;
    background: rgba(15,23,42,0.55);
    border: 1px solid var(--border-glass);
    color: var(--text);
    border-radius: 999px;
    font-size: .88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.age-gate-choices button.ag-choice:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(249,115,22,0.08);
    transform: translateY(-1px);
}
/* Pill SÉLECTIONNÉE (avant submit auto) : fond dégradé + ombre portée */
.age-gate-choices button.ag-choice.selected {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(249,115,22,0.28);
}
.age-gate-choices button.ag-choice:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Boîte FINALE (passed ou failed). Cache la zone input à cet instant. */
.age-gate-final {
    padding: 1rem 1.1rem;
    text-align: center;
    border-top: 1px dashed var(--border-glass);
}
.age-gate-final h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.age-gate-final p  { margin: 0; color: var(--text-muted); font-size: .88rem; }
/* Titre VERT (passed) — ROUGE (failed) */
.age-gate-final.passed h4 { color: #16a34a; }
.age-gate-final.failed h4 { color: #dc2626; }
/* Bouton "Recommencer" — mode failed seulement. Pill orange outline. */
.age-gate-final .retry-btn {
    display: inline-block; margin-top: .8rem;
    padding: .45rem .95rem;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--orange);
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: .88rem;
    transition: all .15s ease;
}
.age-gate-final .retry-btn:hover { background: rgba(249,115,22,0.1); border-color: var(--orange); }

/* UTILITAIRE : cache un élément (input zone quand passed/failed,
   boîte final quand pending, retry-btn quand passed). */
.age-gate-hidden { display: none !important; }

/* =========================================================================
   PORTAIL RGPD "MES DONNÉES" + SUPPRESSION COMPTE
   ========================================================================= */
.gdpr-portal, .gdpr-delete-portal {
    padding: 2rem 1rem 4rem;
    max-width: 1080px;
    margin: 0 auto;
}
.container-gdpr { width: 100%; }
.container-gdpr-small { max-width: 720px; }

.gdpr-header {
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.gdpr-header.danger-header {
    border: 1px solid rgba(255, 59, 92, 0.28);
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.09), rgba(20, 20, 35, 0.55));
}
.gdpr-header-inner {
    display: flex; gap: 1.5rem; align-items: center;
    width: 100%; flex-wrap: wrap;
}
.gdpr-avatar {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--orange), #ec4899);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 122, 24, 0.22);
}
.gdpr-avatar.danger { background: linear-gradient(135deg, #ef4444, #f97316); }
.gdpr-avatar img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
}
.avatar-initial-xl { display: block; line-height: 1; }
.gdpr-header-text { flex: 1; min-width: 260px; }
.gdpr-header-text h1 {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, var(--text), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .45rem;
}
.gdpr-subtitle {
    color: var(--text-muted); font-size: .95rem;
    line-height: 1.55;
}

/* Alertes */
.alert {
    padding: .85rem 1.1rem; border-radius: 12px;
    margin: 1rem 0 0; font-size: .9rem; line-height: 1.5;
    border: 1px solid transparent;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecaca;
}
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}
.alert-info {
    background: rgba(59, 167, 255, 0.1);
    border-color: rgba(59, 167, 255, 0.3);
    color: #bae6fd;
}
.alert p { margin: 0; }

/* Sections */
.gdpr-section { margin-bottom: 2.2rem; }
.gdpr-section-title {
    font-size: 1.22rem; font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex; align-items: center; gap: .55rem;
}
.gdpr-section-title.danger { color: #fca5a5; }

.gdpr-card {
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}
.gdpr-card.danger-card {
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), var(--bg-card));
}
.gdpr-card .gdpr-desc {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    font-size: .93rem;
}
.gdpr-hint {
    margin-top: 1rem;
    padding: .65rem .9rem;
    background: rgba(255, 122, 24, 0.06);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--text-muted);
    border-left: 3px solid var(--orange);
}
.gdpr-hint.danger {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: #ef4444;
    color: #fecaca;
}
.gdpr-hint code { color: var(--orange); }
.mono {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: .82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: .15rem .4rem;
    border-radius: 6px;
}

/* Grid stats */
.gdpr-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.gdpr-stat-card {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform .18s ease, background .18s ease;
}
.gdpr-stat-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}
.gdpr-stat-icon {
    font-size: 1.9rem;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 122, 24, 0.12);
    border-radius: 14px;
    flex-shrink: 0;
}
.gdpr-stat-body { flex: 1; }
.gdpr-stat-label {
    font-size: .76rem; color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .25rem;
}
.gdpr-stat-value {
    font-size: 1.35rem; font-weight: 800;
    color: var(--text);
}
.gdpr-stat-value.small { font-size: 1rem; }

/* Boutons export */
.gdpr-export-buttons {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-bottom: .5rem;
}
.gdpr-export-buttons .btn {
    display: inline-flex; flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem;
    line-height: 1.3;
    gap: .25rem;
    min-width: 220px;
}
.btn-tip {
    font-size: .75rem;
    font-weight: 500;
    opacity: 0.75;
}

/* Tableau consentements */
.consent-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    margin: 1rem 0;
}
.consent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    min-width: 640px;
}
.consent-table thead {
    background: rgba(255, 122, 24, 0.06);
}
.consent-table th, .consent-table td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}
.consent-table th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 700;
}
.consent-table tbody tr:last-child td { border-bottom: none; }
.consent-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
tr.consent-withdrawn { opacity: .6; background: rgba(239, 68, 68, 0.03); }
.badge {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.badge-active { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.badge-revoked { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.badge-vip { background: linear-gradient(135deg, rgba(167, 59, 255, 0.3), rgba(255, 122, 24, 0.3)); color: #fff; }

/* Formulaires consentements */
.gdpr-hr {
    border: none;
    border-top: 1px dashed var(--border-glass-strong);
    margin: 1.5rem 0 1.2rem;
}
.inline-form { display: inline; }
.withdraw-all-form .form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .45rem;
}
.form-control {
    width: 100%;
    padding: .65rem .9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .15s ease, background .15s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255, 122, 24, 0.05);
}

/* Tous les menus deroulants (select) : texte NOIR sur fond BLANC
   pour une lisibilite maximale, y compris dans la liste des options. */
select,
select.form-control {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
}
select option,
select.form-control option {
    background-color: #ffffff;
    color: #000000;
}
select:focus,
select.form-control:focus {
    border-color: #fb923c !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}

/* ================================================================
   SCOPE UNIQUEMENT — Modal de signalement #reportModal
   Demande utilisateur : écriture en NOIR sur fond BLANC (inputs
   du formulaire Signaler étaient en blanc sur verre sombre
   = totalement illisibles). NE PAS modifier .form-control global
   qui est le thème glass sombre (login/register/admin/etc).
   ================================================================ */
#reportModal .form-control,
#reportModal select.form-control,
#reportModal textarea.form-control {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #d1d5db !important;
}
#reportModal .form-control::placeholder {
    color: #4b5563;
    opacity: 1;
}
#reportModal .form-control:focus {
    border-color: #fb923c !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.15);
}
#reportModal .form-label {
    color: #030712;
}
#reportModal .form-check-label {
    color: #030712;
}
#reportModal .gdpr-desc,
#reportModal .delete-recap,
#reportModal .muted,
#reportModal .form-text {
    color: #0b1120;
}
#reportModal .delete-recap {
    background: rgba(255, 122, 24, 0.08);
    border-color: #fed7aa;
}
#reportModal .required {
    color: #b91c1c;
}
#reportModal .cc-modal-title,
#reportModal #reportModalTitle {
    color: #030712;
}
#reportModal .cc-modal-panel {
    background: linear-gradient(160deg, #ffffff 0%, #fff7ed 100%);
    color: #030712;
    border: 1px solid #fed7aa;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
}
#reportModal .cc-modal-panel .cc-modal-header p {
    color: #1f2937;
}

.form-control-lg { padding: .85rem 1rem; font-size: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .45rem;
    color: var(--text);
}
.form-text {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .35rem;
}

/* Boutons standard */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.15rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .16s ease;
    font-family: inherit;
    line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 122, 24, 0.28); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-glass-strong);
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 122, 24, 0.06);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.22);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(239, 68, 68, 0.32); }
.btn-danger.btn-outline {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    box-shadow: none;
}
.btn-danger.btn-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}
.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.mt-2 { margin-top: .6rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0 !important; }

/* Liste RGPD */
.gdpr-list {
    margin: .8rem 0 1rem 1.2rem;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.8;
}
.gdpr-list li { list-style: '✓  '; padding-left: .4rem; }
.gdpr-list.danger-list li { list-style: '❌ '; color: #fca5a5; }

/* Contact block */
.gdpr-contact-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}
.gdpr-contact-item {
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.gdpr-contact-label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.gdpr-contact-value { font-weight: 600; font-size: .9rem; color: var(--text); }
.gdpr-contact-value:hover { color: var(--orange); }

.gdpr-actions-row {
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin-top: .5rem;
}

/* Form-check (cases à cocher) */
.form-check {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .55rem .2rem;
}
.form-check-input {
    margin-top: .28rem;
    width: 18px; height: 18px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
}
.form-check-label {
    cursor: pointer;
    color: var(--text);
    font-size: .92rem;
    line-height: 1.55;
}

/* ===== Delete account confirm ===== */
.delete-recap {
    padding: 1rem 1.1rem;
    margin: 0 0 1.2rem;
    border-radius: 12px;
    background: rgba(255, 122, 24, 0.05);
    border: 1px solid rgba(255, 122, 24, 0.18);
}
.glassmorph-inner { border: 1px solid var(--border-glass); border-radius: var(--radius); padding: 1.1rem; }
.delete-user-recap {
    margin-top: .75rem;
    display: flex; align-items: baseline; gap: 1rem;
    flex-wrap: wrap;
}
.delete-user-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f87171;
}
.delete-user-id {
    color: var(--text-muted);
    font-family: monospace;
    font-size: .85rem;
    background: rgba(255, 255, 255, 0.06);
    padding: .2rem .55rem;
    border-radius: 6px;
}
.delete-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.2rem 0 .5rem;
}
.confirm-delete-check {
    border-bottom: 1px dashed var(--border-glass);
}
.confirm-delete-check:last-of-type { border-bottom: none; }
.delete-final-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================================
   BANDEAU COOKIES GDPR (Recommandation CNIL n°2020-092)
   ========================================================================= */
.cc-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 1020px;
    margin: 0 auto;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.97), rgba(20, 20, 35, 0.97));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 122, 24, 0.08) inset;
    padding: 1.3rem 1.4rem 1.2rem;
    display: none;
    animation: cc-slide-up .4s cubic-bezier(.2,.8,.2,1) both;
}
.cc-banner.cc-visible { display: block; }
@keyframes cc-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cc-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .9rem;
}
.cc-banner-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 122, 24, 0.12);
    border-radius: 12px;
}
.cc-banner-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .25rem;
    color: var(--text);
}
.cc-banner-text {
    font-size: .86rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.cc-banner-text a { color: var(--orange); font-weight: 600; }
.cc-banner-text a:hover { text-decoration: underline; }

.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-glass);
}
.cc-banner-actions .btn {
    padding: .5rem 1rem;
    font-size: .85rem;
}
.cc-banner-actions .btn-accept {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #fff;
}
.cc-banner-actions .btn-reject {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: var(--border-glass-strong);
}
.cc-banner-actions .btn-reject:hover { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
.cc-banner-actions .btn-settings {
    background: transparent;
    color: var(--text);
    border-color: var(--border-glass-strong);
}
.cc-banner-actions .btn-settings:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Modal gestion des cookies */
.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.cc-modal.cc-visible { display: flex; animation: cc-fade-in .2s ease both; }
@keyframes cc-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cc-modal-panel {
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.98), rgba(20, 20, 35, 0.98));
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    padding: 1.6rem;
    animation: cc-modal-in .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cc-modal-in {
    from { opacity: 0; transform: scale(.96) translateY(10px); }
    to { opacity: 1; transform: none; }
}
.cc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 1rem;
}
.cc-modal-title { font-size: 1.2rem; font-weight: 800; }
.cc-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .15s ease;
}
.cc-modal-close:hover { background: rgba(239, 68, 68, 0.12); color: #f87171; }

.cc-cat-list {
    display: flex; flex-direction: column; gap: .8rem;
    margin-bottom: 1.4rem;
}
.cc-cat-item {
    padding: .95rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.cc-cat-item.locked { opacity: .8; background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.22); }
.cc-cat-info h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .2rem;
    display: flex; align-items: center; gap: .45rem;
}
.cc-cat-badge {
    font-size: .7rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    font-weight: 700;
}
.cc-cat-info p {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Switch toggle */
.cc-switch {
    position: relative;
    width: 46px; height: 26px;
    flex-shrink: 0;
    margin-top: .15rem;
}
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease;
}
.cc-slider::before {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .18s ease;
}
.cc-switch input:checked + .cc-slider {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}
.cc-switch input:checked + .cc-slider::before {
    transform: translateX(20px);
}
.cc-switch input:disabled + .cc-slider { opacity: .7; cursor: not-allowed; }

.cc-modal-footer {
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border-glass);
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: space-between;
    align-items: center;
}
.cc-modal-footer .btn { padding: .55rem 1.1rem; font-size: .85rem; }

@media (max-width: 640px) {
    .gdpr-header { padding: 1.2rem; gap: 1rem; }
    .gdpr-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
    .gdpr-header-text h1 { font-size: 1.35rem; }
    .gdpr-export-buttons .btn { width: 100%; }
    .delete-final-actions { flex-direction: column-reverse; }
    .delete-final-actions .btn { width: 100%; }
    .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem; }
    .cc-banner-actions { justify-content: stretch; }
    .cc-banner-actions .btn { flex: 1; }
}

/* =====================================================================
   PAGE LOADER — écran de chargement avec photo de fond
   ===================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(10, 10, 18, 0.88), rgba(10, 10, 18, 0.88)),
        url('../img/photo_de_fond.jpg') center center / cover no-repeat,
        var(--bg-dark);
    transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader-inner {
    text-align: center;
    padding: 2rem;
}
.page-loader-logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 18px var(--orange-glow));
}
.page-loader-logo .text-orange { color: var(--orange); }
.page-loader-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.2rem;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: page-loader-spin .9s linear infinite;
}
.page-loader-text {
    color: var(--text-muted);
    font-size: .95rem;
    letter-spacing: .3px;
}
@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

/* ===== Salons supplémentaires VIP (préférences) ===== */
.vip-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem;
    max-height: 260px;
    overflow-y: auto;
    padding: .6rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
}
.vip-check-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
    font-size: .85rem;
}
.vip-check-item:hover {
    background: rgba(255,165,0,.1);
    border-color: var(--orange);
}
.vip-check-item input[type="checkbox"] {
    accent-color: var(--orange);
    flex-shrink: 0;
}
.vip-check-item span {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hint { color: var(--text-dim); font-size: .8rem; }


/* =====================================================================
   ▓▓▓ COUCHE RESPONSIVE GLOBALE — TÉLÉPHONE & TABLETTE ▓▓▓
   ---------------------------------------------------------------------
   Permet une navigation complète et confortable sur mobile et tablette,
   sans passer par l'application native.
   Breakpoints :
     ≤ 1100px  tablette paysage      ≤ 980px  tablette portrait
     ≤  768px  petite tablette       ≤ 640px  mobile large
     ≤  480px  mobile standard       ≤ 380px  petit mobile
   ===================================================================== */

/* ---- 0. Base : neutraliser l'ajustement de texte auto d'iOS ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---- 1. Médias : aucune image ne déborde de son conteneur ---- */
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }

/* Fond fixe coûteux (voire non supporté) sur mobile → défilement normal */
@media (max-width: 980px) {
    html, body { background-attachment: scroll; }
}

/* ---- 2. Défilement tactile fluide dans les zones scrollables ---- */
.admin-table-wrap,
.table-wrap,
.consent-table-wrap,
.table-responsive,
.vip-select-list,
.chat-sidebar,
.chat-online,
.discover-filters,
.search-filters,
.nav-links {
    -webkit-overflow-scrolling: touch;
}

/* ---- 3. Formulaires : police ≥ 16px sur mobile (évite le zoom auto iOS) ---- */
@media (max-width: 768px) {
    input, select, textarea,
    .form-input, .form-control, .chat-input, .input-firstn {
        font-size: 16px;
    }
}

/* ---- 4. Navigation (menu burger) + filtres non « sticky » en 1 colonne ---- */
@media (max-width: 980px) {
    .nav-links {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav-links > a,
    .nav-links > span,
    .nav-links > button,
    .nav-links > .btn {
        padding: .75rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }
    .nav-bell-btn { font-size: 1.3rem; padding: .5rem; }
    .discover-filters, .search-filters { position: static; max-height: none; }
}

/* ---- 5. Conteneurs & titres ---- */
@media (max-width: 640px) {
    .main-container { padding: 1rem .85rem; }
    .section-title { font-size: 1.5rem; margin-bottom: 1.4rem; }
    .hero-content { padding: 2rem 1.1rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .welcome-banner { padding: 1.4rem 1.1rem; }
    .welcome-banner h1 { font-size: 1.4rem; }
    .footer-container { grid-template-columns: 1fr; padding: 1.6rem 1rem; text-align: center; gap: 1.4rem; }
    .copyright { text-align: center; }
    .footer-links { align-items: center; }
}

/* ---- 6. Cartes principales (auth, profil, édition, légal) ---- */
@media (max-width: 640px) {
    .auth-card, .profile-card, .edit-card, .about-card,
    .legal-card, .preferences-section .edit-card { padding: 1.5rem 1.15rem; }
    .auth-header h1 { font-size: 1.5rem; }
    .about-card h1 { font-size: 1.6rem; }
    .profile-avatar-xl { width: 104px; height: 104px; font-size: 2.9rem; }
    .profile-title-row h1 { font-size: 1.4rem; }
}

/* ---- 7. Tableaux : lisibilité tactile ---- */
@media (max-width: 768px) {
    .admin-table th, .admin-table td { padding: .6rem .7rem; font-size: .82rem; }
    .legal-table th, .legal-table td { padding: .55rem .65rem; font-size: .85rem; }
}

/* ---- 8. Chat : confort sur mobile (saisie toujours visible) ---- */
@media (max-width: 760px) {
    .chat-layout { gap: .7rem; }
    .chat-sidebar { max-height: 220px; }
    .chat-main { height: 70vh; height: 70dvh; min-height: 420px; }
    .chat-messages { padding: 1rem; gap: .8rem; }
    .chat-header { padding: .8rem 1rem; }
    .chat-input { font-size: 16px; }
}

/* ---- 9. Boutons & formulaires : cibles tactiles ---- */
@media (max-width: 768px) {
    .btn { min-height: 42px; }
    .btn-tiny, .btn-sm { min-height: 34px; }
}

/* ---- 10. Modales & bannières (signalement, cookies, pub) ---- */
@media (max-width: 640px) {
    .cc-modal { padding: .6rem; align-items: flex-start; }
    .cc-modal-panel { padding: 1.1rem; max-height: 92vh; border-radius: 16px; margin-top: 4vh; }
    .cc-modal-footer { flex-direction: column; align-items: stretch; gap: .6rem; }
    .cc-modal-footer > div { flex-direction: column; width: 100%; }
    .cc-modal-footer .btn { width: 100%; }
    .cc-banner-actions { flex-direction: column; }
    .cc-banner-actions .btn { width: 100%; }
}

/* ---- 11. Grilles de stats / VIP / découverte ---- */
@media (max-width: 480px) {
    .stats-grid, .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value, .stat-number { font-size: 1.6rem; }
    .stat-large .stat-number { font-size: 2rem; }
    .users-grid { grid-template-columns: 1fr; }
    .online-list { padding: 1rem; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .7rem; }
    .vip-plans-grid { gap: 1rem; }
    .vip-plan-card { padding: 1.5rem 1.1rem; }
    .vip-price-value { font-size: 2.4rem; }
    .gdpr-avatar { width: 56px; height: 56px; font-size: 1.6rem; }
    .gdpr-header-text { min-width: 0; }
    /* Age Gate : le champ et le bouton s'empilent si l'écran est très étroit */
    .age-gate-inputs .row-input { flex-wrap: wrap; }
    .age-gate-inputs .row-input > input { flex: 1 1 100%; }
    .age-gate-inputs .ag-btn-send { flex: 1 1 100%; }
    /* Actions de formulaire & recherche admin : empilées et pleine largeur */
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { width: 100%; }
    .admin-search-form { flex-direction: column; align-items: stretch; }
    .admin-search-form .form-input,
    .admin-search-form .form-control,
    .admin-search-form .btn { width: 100%; }
}
@media (max-width: 380px) {
    .stats-grid, .admin-stats-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
}

/* ---- 12. Anti-débordement des textes longs (pseudos, e-mails, URL) ---- */
@media (max-width: 768px) {
    .card-username, .card-bio, .profile-title-row h1,
    .reason-cell, .toast-text, .msg-content {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* ---- 13. Bannière VIP : la « ribbon » ne doit pas déborder ---- */
.vip-plan-card { overflow: hidden; }
