/* ===========================================
   Rencontres Adultes — Theme custom
   =========================================== */

:root {
    --primary: #c0392b;
    --accent: #e74c6b;
    --accent-light: #f8d7e0;
    --dark: #1a1a2e;
    --dark-card: #16213e;
    --text-muted-custom: #8a8a9a;
}

/* --- Global --- */
body {
    background-color: #f5f0f0;
    color: #2d2d2d;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

a {
    color: var(--primary);
}
a:hover {
    color: var(--accent);
}

/* --- Navbar --- */
.navbar-dark .navbar-brand .text-accent,
.text-accent {
    color: var(--accent) !important;
}
.navbar-dark {
    background-color: var(--dark) !important;
}
.navbar-dark .dropdown-menu-dark {
    background-color: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #a93226;
    border-color: #a93226;
}
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background-color: #d63a5e;
    border-color: #d63a5e;
    color: #fff;
}
.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #fff;
}

/* --- Hero (page d'accueil non verifie) --- */
.hero-adult {
    background: linear-gradient(135deg, var(--dark) 0%, #0f3460 60%, var(--primary) 100%);
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero-adult h1 {
    font-size: 2.8rem;
    font-weight: 700;
}
.hero-adult .lead {
    font-size: 1.25rem;
    opacity: 0.85;
}

/* --- Cards --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.card-annonce {
    overflow: hidden;
}
.card-annonce .card-img-top {
    height: 220px;
    object-fit: cover;
}
.card-annonce .card-body {
    padding: 1rem 1.25rem;
}

/* --- Entry cards (accueil non verifie) --- */
.entry-card {
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.entry-card:hover {
    border-color: var(--accent);
}
.entry-card .bi {
    font-size: 3rem;
    color: var(--accent);
}
.entry-card h5 {
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Badges pratiques --- */
.badge-pratique {
    display: inline-block;
    padding: 0.3em 0.7em;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 50rem;
    margin: 2px;
}
.badge-pratique-tendresse { background-color: #fce4ec; color: #c62828; }
.badge-pratique-oral { background-color: #f3e5f5; color: #7b1fa2; }
.badge-pratique-penetration { background-color: #e8eaf6; color: #283593; }
.badge-pratique-jouets { background-color: #e0f2f1; color: #00695c; }
.badge-pratique-bdsm { background-color: #263238; color: #ffab91; }
.badge-pratique-domination { background-color: #1a1a2e; color: #e0e0e0; }
.badge-pratique-fetichisme { background-color: #4a148c; color: #e1bee7; }
.badge-pratique-roleplay { background-color: #fff3e0; color: #e65100; }
.badge-pratique-groupe { background-color: #fbe9e7; color: #bf360c; }
.badge-pratique-exhibition { background-color: #efebe9; color: #4e342e; }
.badge-pratique-autres { background-color: #eceff1; color: #455a64; }

/* --- Type rencontre badges override --- */
.badge.bg-danger { background-color: var(--accent) !important; }

/* --- Profile card --- */
.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
}
.profile-avatar-sm {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

/* --- Messages --- */
.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}
.message-sent {
    background-color: var(--accent);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-received {
    background-color: #e9ecef;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}
.conversation-list .list-group-item {
    border-left: 3px solid transparent;
    transition: border-color 0.15s;
}
.conversation-list .list-group-item:hover,
.conversation-list .list-group-item.active {
    border-left-color: var(--accent);
}
.conversation-list .list-group-item.unread {
    background-color: var(--accent-light);
    font-weight: 600;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.gallery-grid img:hover {
    opacity: 0.85;
}

/* --- Upload preview --- */
.upload-preview {
    position: relative;
    display: inline-block;
    margin: 0.25rem;
}
.upload-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.upload-preview .btn-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0.7rem;
    line-height: 22px;
    border-radius: 50%;
}

/* --- Upload preview video --- */
.upload-preview video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- Upload loading state --- */
.upload-preview-loading {
    position: relative;
    display: inline-block;
    margin: 0.25rem;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #f0e6e6;
    vertical-align: top;
}
.upload-preview-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(231,76,107,0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Pratiques group checkboxes --- */
.pratiques-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.pratiques-group-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-adult h1 {
        font-size: 2rem;
    }
    .card-annonce .card-img-top {
        height: 160px;
    }
    .message-bubble {
        max-width: 90%;
    }
}

/* --- Misc --- */
.cursor-pointer { cursor: pointer; }
.text-primary-custom { color: var(--primary) !important; }
.bg-accent-light { background-color: var(--accent-light); }
.no-photo-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0e6e6;
    color: var(--text-muted-custom);
    font-size: 3rem;
}

/* --- Cookie banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: var(--dark);
    color: #e0e0e0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
    border-top: 2px solid var(--accent);
    animation: slideUpBanner 0.35s ease;
}
#cookie-banner.d-none { display: none !important; }
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner .cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
@keyframes slideUpBanner {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* --- Admin --- */
.admin-sidebar .nav-link {
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-bottom: 2px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(231,76,107,0.15);
    color: var(--accent);
}
