/* =========================================
   RAPPORTS OFFICIELS PAGE STYLES
   ========================================= */

/* BANNER */
.rapports-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    border-radius: 20px;
    margin: 50px;
    background: linear-gradient(rgba(0, 85, 150, 0.75), rgba(0, 85, 150, 0.75)),
    url("../images/publications-hero-bg.jpg") center/cover no-repeat;
    height: 280px;
}

.rapports-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-family: 'Sansation', sans-serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breadcrumbs-container{
    margin-bottom: 40px;
}
.banner-content .subtitle {
    font-family: 'Sansation', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
}

/* FILTERS */
.rapports-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.rapports-page-container {
    display: flex;
    flex-direction: column;
}

.filter-btn {
    font-family: 'Sansation', sans-serif;
    font-size: 16px;
    color: #0065B0;
    text-decoration: none;
    padding: 10px 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    color: #004a80;
    background-color: #f5f9fc;
}

.filter-btn.active {
    border-color: #0065B0;
    font-weight: 700;
    background-color: transparent;
}

/* RAPPORTS LIST */
.rapports-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.rapport-item-row {
    display: grid;
    grid-template-columns: 80px 2fr 3fr 80px;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.rapport-item-row:hover {
    background-color: #f9f9f9;
}

/* Icon */
.rapport-icon-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* background: #e6f0fa; Optional: light blue circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Details: Title & Date */
.rapport-details-col {
    display: flex;
    flex-direction: column;
}

.rapport-title {
    font-family: 'Sansation', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #292929;
    margin: 0 0 4px 0;
}

.rapport-date {
    font-size: 14px;
    color: #666;
}

/* Description */
.rapport-desc-col p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Action: Download Button */
.rapport-action-col {
    display: flex;
    justify-content: flex-end;
}

.btn-download-rapport {
    width: 40px;
    height: 40px;
    border: 1px solid #005596;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-download-rapport:hover {
    background-color: #005596;
}

.btn-download-rapport:hover svg path {
    stroke: #fff;
}

/* PAGINATION */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.pagination-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 6px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-family: 'Sansation', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.pagination-container .page-numbers.current,
.pagination-container .page-numbers:hover {
    background-color: #0065B0;
    color: #fff;
    border-color: #0065B0;
}

.pagination-container .dots {
    border: none;
    background: transparent;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .rapport-item-row {
        grid-template-columns: 60px 1.5fr 2fr 60px;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .rapports-banner {
        height: 220px;
    }
    
    .banner-content h1 {
        font-size: 20px;
    }
    
    .banner-content .subtitle {
        font-size: 32px;
    }

    .rapport-item-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "details action"
            "desc desc";
        gap: 12px;
    }

    .rapport-icon-col {
        display: none;
    }

    .rapport-details-col {
        grid-area: details;
    }

    .rapport-action-col {
        grid-area: action;
    }

    .rapport-desc-col {
        grid-area: desc;
    }
}
