/* Page publique des rapports — /admin/rapports/ */

.rapports-page {
    --rapport-card-radius: 1rem;
    --rapport-shadow: 0 10px 30px rgba(0, 38, 100, 0.08);
}

.rapports-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--rapport-card-radius);
    padding: 1.75rem 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--tchad-blue-dark) 0%, var(--tchad-blue) 55%, var(--tchad-blue-light) 100%);
    box-shadow: var(--rapport-shadow);
    margin-bottom: 1.5rem;
}

.rapports-hero::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(254, 203, 0, 0.12);
    pointer-events: none;
}

.rapports-hero h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rapports-hero-lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 42rem;
    margin-bottom: 0;
}

.rapports-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rapports-hero-actions .btn-light {
    color: var(--tchad-blue-dark);
    font-weight: 600;
}

.rapports-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rapports-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rapports-stat-card {
    background: #fff;
    border: 1px solid rgba(0, 38, 100, 0.08);
    border-radius: var(--rapport-card-radius);
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 38, 100, 0.04);
}

.rapports-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.rapports-stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--tchad-blue);
    line-height: 1.1;
}

.rapports-filters {
    background: #fff;
    border: 1px solid rgba(0, 38, 100, 0.08);
    border-radius: var(--rapport-card-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 38, 100, 0.04);
}

.rapports-type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rapports-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.rapports-type-pill:hover {
    border-color: var(--tchad-blue);
    color: var(--tchad-blue);
    background: #fff;
}

.rapports-type-pill.is-active {
    background: var(--tchad-blue);
    border-color: var(--tchad-blue);
    color: #fff;
}

.rapports-type-pill .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
}

.rapports-type-pill.is-active .count {
    background: rgba(255, 255, 255, 0.2);
}

.rapports-section {
    margin-bottom: 2rem;
}

.rapports-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 3px solid var(--tchad-yellow);
}

.rapports-section-title h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tchad-blue-dark);
}

.rapports-section-title .badge {
    font-weight: 600;
}

.rapports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.rapport-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 38, 100, 0.08);
    border-radius: var(--rapport-card-radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 38, 100, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rapport-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 38, 100, 0.1);
}

.rapport-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--tchad-blue) 0% 33.33%, var(--tchad-yellow) 33.33% 66.66%, var(--tchad-red) 66.66% 100%);
}

.rapport-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.2rem 1rem;
}

.rapport-card-top {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.rapport-card-date {
    flex-shrink: 0;
    width: 3.25rem;
    text-align: center;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    border: 1px solid rgba(0, 38, 100, 0.08);
    padding: 0.45rem 0.25rem;
}

.rapport-card-day {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--tchad-blue);
    line-height: 1;
}

.rapport-card-month {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.04em;
}

.rapport-card-main {
    min-width: 0;
}

.rapport-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tchad-blue-dark);
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.rapport-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
}

.rapport-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 38, 100, 0.07);
    color: var(--tchad-blue);
    font-weight: 600;
    font-size: 0.75rem;
}

.rapport-card-desc {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rapport-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 38, 100, 0.06);
}

.rapport-card-author {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0.65rem;
}

.rapport-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rapport-card-actions .btn {
    font-size: 0.82rem;
}

.rapports-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px dashed #ced4da;
    border-radius: var(--rapport-card-radius);
}

.rapports-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 38, 100, 0.06);
    color: var(--tchad-blue);
    font-size: 1.75rem;
}

.rapports-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .rapports-hero {
        padding: 1.25rem;
    }

    .rapports-hero-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .rapports-grid {
        grid-template-columns: 1fr;
    }
}
