/* =====================================================
   CEC Platform — Espace membre
   ===================================================== */

.cec-member-layout { display: flex; min-height: 100vh; background: #f1f5f9; }
[data-theme="dark"] .cec-member-layout { background: #0f172a; }

.cec-member-sidebar {
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.cec-member-logo {
    padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: .75rem;
    border-bottom: 1px solid #1e293b;
}
.cec-member-logo span { font-weight: 800; color: #d4af37; letter-spacing: 1px; }

.cec-member-profile-mini {
    padding: 1.25rem 1.5rem;
    display: flex; gap: .75rem; align-items: center;
    border-bottom: 1px solid #1e293b;
}
.cec-mini-avatar-lg {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2px solid #d4af37;
}

.cec-member-nav { padding: 1rem 0; flex: 1; }
.cec-member-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1.5rem;
    color: #cbd5e1; text-decoration: none; font-size: .9rem;
    transition: all .2s; border-left: 3px solid transparent;
}
.cec-member-link i { width: 22px; }
.cec-member-link:hover { background: #1e293b; color: #fff; }
.cec-member-link.active {
    background: #1e293b; color: #d4af37; border-left-color: #d4af37;
}

.cec-member-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cec-member-topbar {
    background: #fff; padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
}
[data-theme="dark"] .cec-member-topbar { background: #1e293b; border-color: #334155; }
.cec-member-content { padding: 2rem; flex: 1; }

.cec-welcome-banner {
    background: linear-gradient(135deg, #1e3a8a, #6d28d9);
    color: #fff; padding: 2rem; border-radius: 1rem;
}

.cec-stat-mini {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; padding: 1.25rem; border-radius: .75rem;
    box-shadow: 0 4px 12px -6px rgba(30,58,138,.1);
}
[data-theme="dark"] .cec-stat-mini { background: #1e293b; color: #e5e7eb; }

/* Avatar upload */
.cec-avatar-upload { position: relative; display: inline-block; }
.cec-avatar-edit {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid #d4af37;
}
.cec-avatar-overlay {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(30,58,138,.7); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; opacity: 0;
    transition: opacity .2s;
}
.cec-avatar-upload:hover .cec-avatar-overlay { opacity: 1; }

/* Notifications */
.cec-notif-list { display: flex; flex-direction: column; gap: .5rem; }
.cec-notif-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.25rem; background: #fff;
    border-radius: .75rem; box-shadow: 0 2px 8px -4px rgba(30,58,138,.1);
}
[data-theme="dark"] .cec-notif-item { background: #1e293b; color: #e5e7eb; }
.cec-notif-item.unread { border-left: 4px solid #1e3a8a; background: #eff6ff; }
[data-theme="dark"] .cec-notif-item.unread { background: #1e293b; border-color: #d4af37; }
.cec-notif-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e0e7ff; color: #1e3a8a;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cec-notif-success  { background: #d1fae5; color: #065f46; }
.cec-notif-warning  { background: #fef3c7; color: #92400e; }
.cec-notif-prayer   { background: #fce7f3; color: #9d174d; }
.cec-notif-testimonial { background: #ede9fe; color: #6d28d9; }

/* Prayer cards */
.cec-prayer-card {
    background: #fff; padding: 1.25rem;
    border-radius: .75rem; box-shadow: 0 4px 12px -6px rgba(30,58,138,.1);
    border-left: 4px solid #d4af37;
}
[data-theme="dark"] .cec-prayer-card { background: #1e293b; color: #e5e7eb; }

/* Testimonial cards */
.cec-testimonial-card {
    background: #fff; padding: 1.5rem;
    border-radius: 1rem; box-shadow: 0 10px 30px -12px rgba(30,58,138,.15);
    display: flex; flex-direction: column;
    position: relative; transition: transform .3s;
}
.cec-testimonial-card:hover { transform: translateY(-4px); }
[data-theme="dark"] .cec-testimonial-card { background: #1e293b; color: #e5e7eb; }
.cec-featured-badge {
    position: absolute; top: 12px; right: 12px;
    background: #d4af37; color: #000;
    padding: .25rem .65rem; border-radius: 999px;
    font-size: .7rem; font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .cec-member-sidebar {
        position: fixed; left: -280px;
        transition: left .3s; z-index: 1000;
    }
    .cec-member-sidebar.open { left: 0; }
    .cec-member-content { padding: 1rem; }
    .cec-member-topbar { padding: .75rem 1rem; }
}