/* ========================================
   RAPPORT DE SYNTHÈSE - Styles
   Matches consultation detail page design
   ======================================== */

/* ========================================
   LAYOUT
   ======================================== */

.rapport-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.rapport-grid {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 50px;
    align-items: start;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.rapport-main {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rapport-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.rapport-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.rapport-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.rapport-meta .meta-item i {
    color: var(--consultation-green, #0E8040);
}

/* Report Body (rich text content) */
.rapport-body {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.rapport-body p {
    margin-bottom: 18px;
}

.rapport-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--consultation-green, #0E8040);
}

.rapport-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 12px;
}

.rapport-body ol,
.rapport-body ul {
    margin-bottom: 18px;
    padding-left: 20px;
}

.rapport-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.rapport-body strong {
    color: #1a1a1a;
}

/* Download Section */
.rapport-download {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.rapport-download .download-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff5f5;
    color: #dc3545;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rapport-download .download-content {
    flex: 1;
}

.rapport-download .download-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.rapport-download .download-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--consultation-green, #0E8040);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--consultation-green-dark, #0A6030);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 128, 64, 0.3);
}

/* ========================================
   SIDEBAR
   ======================================== */

.rapport-sidebar {
    position: sticky;
    top: 20px;
}

.rapport-sidebar .sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Stats Card (green gradient) */
.rapport-stats-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #0E8040 0%, #0A6030 100%);
    color: #ffffff;
    padding: 30px;
}

.rapport-stats-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.rapport-stats-card h4 i {
    margin-right: 8px;
}

.rapport-stat-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.rapport-stat {
    text-align: center;
}

.rapport-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.rapport-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rapport-period {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.rapport-period i {
    margin-right: 5px;
}

/* Links Card */
.rapport-links-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rapport-links-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.rapport-links-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rapport-links-card ul li {
    margin-bottom: 6px;
}

.rapport-links-card ul li a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rapport-links-card ul li a:hover {
    background: #f8f9fa;
    color: var(--consultation-green, #0E8040);
}

.rapport-links-card ul li a i {
    color: var(--consultation-green, #0E8040);
    width: 20px;
    text-align: center;
}

/* Share Card */
.rapport-share-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.rapport-share-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

/* Share buttons reuse from detail page */

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .rapport-grid {
        grid-template-columns: 1fr;
    }

    .rapport-sidebar {
        order: -1;
        position: static;
    }

    .rapport-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .rapport-container {
        padding: 20px 15px 40px;
    }

    .rapport-main {
        padding: 25px;
    }

    .rapport-title {
        font-size: 1.4rem;
    }

    .rapport-download {
        flex-direction: column;
        text-align: center;
    }

    .rapport-stat-value {
        font-size: 1.4rem;
    }
}
