/* =============================================
   Observatoire Citoyen de Marseille — app.css
   ============================================= */

:root {
    --ocm-blue:   #1e3a5f;
    --ocm-red:    #c0392b;
    --ocm-light:  #f8f9fa;
    --ocm-shadow: 0 2px 8px rgba(30,58,95,0.08);
}

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

a { color: var(--ocm-blue); }
a:hover { color: var(--ocm-red); }

/* ---- Navbar ---- */
.ocm-navbar {
    background: var(--ocm-blue) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ocm-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
    letter-spacing: -0.01em;
}

.brand-title {
    color: #fff;
}

.brand-sub {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 4px;
}

.ocm-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    margin: 0 2px;
}

.ocm-navbar .nav-link:hover,
.ocm-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

.ocm-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* ---- Main Content ---- */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ---- Hero ---- */
.hero-bg {
    background: linear-gradient(135deg, var(--ocm-blue) 0%, #2c527a 60%, #1a3050 100%);
    min-height: 320px;
}

.text-accent {
    color: var(--ocm-red) !important;
}

/* ---- Stat Cards ---- */
.stat-card {
    background: #fff;
    box-shadow: var(--ocm-shadow);
    border-radius: 12px;
    border-top: 3px solid var(--ocm-blue);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,95,0.12);
}

.stat-number {
    color: var(--ocm-blue);
}

/* ---- Document Cards ---- */
.doc-card {
    border-left: 4px solid #dee2e6;
    transition: box-shadow 0.2s, transform 0.15s;
}

.doc-card:hover {
    box-shadow: 0 6px 16px rgba(30,58,95,0.12);
    transform: translateY(-1px);
}

.type-deliberation { border-left-color: var(--ocm-blue) !important; }
.type-acte         { border-left-color: #7f8c8d !important; }
.type-ao           { border-left-color: #f39c12 !important; }
.type-ami          { border-left-color: #27ae60 !important; }

/* ---- Org Unit Cards ---- */
.org-unit-card {
    border-top: 4px solid #dee2e6;
    transition: box-shadow 0.2s, transform 0.15s;
}

.org-unit-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ---- Org dot ---- */
.org-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ---- Avatar ---- */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ocm-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.avatar-circle-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---- Comments ---- */
.comment-thread {
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

.comment-thread.comment-reply {
    background: #f0f2f5;
    border-left-color: var(--ocm-blue);
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Counter Proposals ---- */
.counter-proposal-card {
    padding: 16px;
    background: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
}

.btn-vote-for, .btn-vote-against {
    min-width: 70px;
    font-weight: 600;
}

/* ---- Press Cards ---- */
.press-card {
    transition: box-shadow 0.2s, transform 0.15s;
    border-left: 3px solid #27ae60;
}

.press-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* ---- Meta items ---- */
.meta-item {
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* ---- Mission Section ---- */
.mission-section {
    background: linear-gradient(135deg, var(--ocm-blue), #2c527a);
}

/* ---- Footer ---- */
.ocm-footer {
    background: #1a2a40;
    border-top: 3px solid var(--ocm-red);
}

.footer-link {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 2;
    display: block;
}

.footer-link:hover {
    color: #fff;
}

/* ---- Map ---- */
.leaflet-container {
    font-family: inherit;
}

/* ---- Badges ---- */
.badge-legend {
    font-size: 0.85rem;
    color: #555;
}

/* ---- Description ---- */
.description-text {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #444;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

/* ---- Admin ---- */
.nav-pills .nav-link {
    color: var(--ocm-blue);
}

.nav-pills .nav-link.active {
    background: var(--ocm-blue);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-bg { min-height: auto; }
    .stat-card { padding: 1rem !important; }
    .display-4 { font-size: 1.9rem; }
}

/* ---- Press Summary ---- */
.press-summary {
    border-left: 3px solid #27ae60;
}

/* ---- Categories grid ---- */
.categories-grid .form-check {
    margin-bottom: 4px;
}

/* ---- Alert sm ---- */
.alert-sm { font-size: 0.875rem; }

/* ---- Sticky filter ---- */
@media (min-width: 992px) {
    .card.shadow-sm.sticky-filter {
        position: sticky;
        top: 80px;
    }
}
