/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
}

/* Global typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.8;
}

/* Section headings */
section h2.fw-bold {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
}

/* Card typography */
.card-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.4;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* Statistics section */
.stat-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #003399;
}

.stat-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>') center bottom no-repeat;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

/* =====================================================
   Hero with EU and DRC flags background - Enhanced
   ===================================================== */
.hero-flags {
    background: linear-gradient(135deg, #003399 0%, #0052b4 40%, #0066cc 100%);
    display: flex;
    align-items: center;
}

/* Homepage hero - larger */
.hero-flags.hero-home {
    min-height: 70vh;
}

/* Hero typography improvements */
.hero-flags h1 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-flags .lead {
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-flags .fs-5 {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem) !important;
    line-height: 1.9;
    opacity: 0.92;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-flags .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Flag containers with enhanced visibility */
.hero-flags .flag-eu,
.hero-flags .flag-rdc {
    position: absolute;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
}

/* EU Flag - Top Left - Larger and more visible */
.hero-flags .flag-eu {
    top: 20px;
    left: 20px;
    width: clamp(120px, 25vw, 280px);
    height: clamp(80px, 18vw, 190px);
    opacity: 0.85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 810 540'%3E%3Crect width='810' height='540' fill='%23003399'/%3E%3Cg fill='%23FFCC00'%3E%3Cg id='star'%3E%3Cpolygon points='405,68 416,103 453,103 423,125 434,160 405,138 376,160 387,125 357,103 394,103'/%3E%3C/g%3E%3Cuse href='%23star' transform='rotate(30 405 270)'/%3E%3Cuse href='%23star' transform='rotate(60 405 270)'/%3E%3Cuse href='%23star' transform='rotate(90 405 270)'/%3E%3Cuse href='%23star' transform='rotate(120 405 270)'/%3E%3Cuse href='%23star' transform='rotate(150 405 270)'/%3E%3Cuse href='%23star' transform='rotate(180 405 270)'/%3E%3Cuse href='%23star' transform='rotate(210 405 270)'/%3E%3Cuse href='%23star' transform='rotate(240 405 270)'/%3E%3Cuse href='%23star' transform='rotate(270 405 270)'/%3E%3Cuse href='%23star' transform='rotate(300 405 270)'/%3E%3Cuse href='%23star' transform='rotate(330 405 270)'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* DRC Flag - Bottom Right - Larger and more visible */
.hero-flags .flag-rdc {
    right: 20px;
    bottom: 20px;
    width: clamp(140px, 28vw, 320px);
    height: clamp(95px, 19vw, 215px);
    opacity: 0.85;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 533'%3E%3Crect width='800' height='533' fill='%23007FFF'/%3E%3Cpolygon points='0,533 800,0 800,133 0,533' fill='%23F7D618'/%3E%3Cpolygon points='0,400 800,0 800,0 0,533' fill='%23F7D618'/%3E%3Cpolygon points='0,450 800,50 800,100 0,500' fill='%23CE1021'/%3E%3Cpolygon points='95,35 110,80 158,80 119,108 134,153 95,125 56,153 71,108 32,80 80,80' fill='%23F7D618'/%3E%3C/svg%3E");
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

/* Hover effect on flags */
.hero-flags:hover .flag-eu {
    transform: scale(1.02) rotate(-1deg);
}

.hero-flags:hover .flag-rdc {
    transform: scale(1.02) rotate(1deg);
}

/* Content layer above flags */
.hero-flags > .container {
    position: relative;
    z-index: 1;
}

/* Hero buttons styling */
.hero-flags .btn {
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.01em;
}

.hero-flags .btn-light {
    background: #fff;
    color: #003399;
    border: 2px solid #fff;
}

.hero-flags .btn-light:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-flags .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.hero-flags .btn-outline-light:hover {
    background: #fff;
    color: #003399;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-flags {
        min-height: 60vh;
    }
    
    .hero-flags .flag-eu {
        top: 15px;
        left: 15px;
        width: clamp(100px, 22vw, 200px);
        height: clamp(67px, 15vw, 135px);
    }
    
    .hero-flags .flag-rdc {
        right: 15px;
        bottom: 15px;
        width: clamp(110px, 24vw, 220px);
        height: clamp(74px, 16vw, 150px);
    }
}

@media (max-width: 768px) {
    .hero-flags {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .hero-flags .flag-eu {
        top: 10px;
        left: 10px;
        width: 90px;
        height: 60px;
        opacity: 0.7;
    }
    
    .hero-flags .flag-rdc {
        right: 10px;
        bottom: 10px;
        width: 100px;
        height: 67px;
        opacity: 0.7;
    }
    
    .hero-flags .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-flags .flag-eu,
    .hero-flags .flag-rdc {
        width: 70px;
        height: 47px;
        opacity: 0.6;
    }
}

/* Full image hero where the image stays fully visible */
.hero-full-image {
    position: relative;
    background-color: #0d6efd; /* match image blue background */
}

.hero-full-image .hero-image-wrap {
    position: relative;
    text-align: center; /* center image horizontally */
    min-height: 60vh; /* ensure a visible hero area */
    background-color: inherit; /* fill letterboxing with same blue */
}

.hero-full-image .hero-image-wrap picture {
    display: flex;
    align-items: center; /* vertical center within hero height */
    justify-content: center; /* horizontal center */
    height: 100%;
    width: 100%;
}

.hero-full-image .hero-image-wrap img {
    max-width: 100%;
    height: 60vh; /* fixed hero height to allow contain fit */
    object-fit: contain; /* keep entire image visible */
    object-position: center center; /* center the image */
    display: block;
    margin: 0 auto;
}

/* Removed gradient overlay since text is no longer on image */

.hero-full-image .overlay-top,
.hero-full-image .overlay-bottom {
    position: absolute;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    z-index: 1;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-full-image .overlay-top {
    top: 0;
    padding-top: min(7vh, 56px);
    padding-bottom: min(2vh, 20px);
}

.hero-full-image .overlay-bottom {
    bottom: 0;
    padding-bottom: min(7vh, 56px);
    padding-top: min(2vh, 20px);
}

.hero-full-image .overlay-bottom .lead { margin-bottom: 1rem; }

@media (max-width: 768px) {
    .hero-full-image .overlay-top h1 { font-size: 1.6rem; }
    .hero-full-image .overlay-bottom .lead { font-size: 1rem; }
    .hero-full-image .hero-image-wrap { min-height: 46vh; }
    .hero-full-image .hero-image-wrap img { height: 46vh; }
}

.stat-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.hover-card:hover .card-img-top {
    transform: scale(1.05);
}

.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

footer {
    background: #212529;
    color: #fff;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0d6efd;
    transform: translateY(-3px);
}

/* Admin Styles */
.admin-sidebar {
    background: #f8f9fa;
    min-height: calc(100vh - 56px);
    border-right: 1px solid #dee2e6;
}

.admin-sidebar .nav-link {
    color: #495057;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    margin: 0.2rem 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.table-actions a,
.table-actions button {
    margin: 0 0.2rem;
}

/* Image Upload Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Editor Styles */
.ck-editor__editable {
    min-height: 300px;
}

/* Admin Sidebar Styles */
.admin-sidebar {
    background: #212529;
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background: #0d6efd;
}

.admin-sidebar .nav-link i {
    font-size: 1.1rem;
}

/* User Management Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Role Badge Colors */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Button Group Improvements */
.btn-group .btn {
    border-radius: 0.25rem;
    margin: 0 2px;
}

/* Form Improvements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Permission Checkbox Styling */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #842029;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #664d03;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #cff4fc;
    color: #055160;
}

/* Custom color classes for activities */
.bg-purple {
    background-color: #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}

.bg-teal {
    background-color: #20c997 !important;
}

.text-teal {
    color: #20c997 !important;
}

.btn-outline-teal {
    color: #20c997;
    border-color: #20c997;
}

.btn-outline-teal:hover {
    background-color: #20c997;
    border-color: #20c997;
    color: white;
}

.btn-teal {
    background-color: #20c997;
    border-color: #20c997;
    color: white;
}

.btn-teal:hover {
    background-color: #1aa179;
    border-color: #1aa179;
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.text-orange {
    color: #fd7e14 !important;
}

.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-orange:hover {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: white;
}

.btn-orange:hover {
    background-color: #dc6502;
    border-color: #dc6502;
}

/* Modal improvements */
.modal-content {
    border: none;
    border-radius: 1rem;
}

.modal-header {
    border-radius: 1rem 1rem 0 0;
}

.modal-body h6 {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Activity card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

/* Captivating CTA button */
.btn-cta {
    color: #fff !important;
    background-image: linear-gradient(135deg, #ff9f1a 0%, #ff6a00 100%);
    border: none;
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 106, 0, 0.45);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta:focus-visible {
    outline: 3px solid rgba(255, 193, 7, 0.6);
    outline-offset: 2px;
}

.btn-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-cta:hover::after {
    left: 200%;
}

.btn-cta i {
    transition: transform 0.2s ease;
}

.btn-cta:hover i {
    transform: translateX(2px);
}

@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.35); }
    70% { box-shadow: 0 0 0 14px rgba(255, 106, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.btn-cta.pulse {
    animation: ctaPulse 2.2s ease-in-out infinite;
}

/* Readable article content */
.actualite-content {
    font-size: 1.125rem; /* ~18px */
    line-height: 1.8;
    color: #212529;
}

.actualite-content p {
    margin: 0 0 1rem 0;
}

.actualite-content h1,
.actualite-content h2,
.actualite-content h3,
.actualite-content h4,
.actualite-content h5,
.actualite-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.actualite-content ul,
.actualite-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
}

.actualite-content li + li {
    margin-top: 0.25rem;
}

.actualite-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.actualite-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #0d6efd;
    background-color: #f8f9fa;
}

.actualite-content a {
    text-decoration: underline;
}

/* =====================================================
   Enhanced Article Content Styles for Easy Reading
   ===================================================== */

/* Article content container */
.actualite-content.content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #2d3748;
    max-width: 100%;
}

/* Paragraphs */
.actualite-content.content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
}

/* Headings in content */
.actualite-content.content h1,
.actualite-content.content h2,
.actualite-content.content h3,
.actualite-content.content h4,
.actualite-content.content h5,
.actualite-content.content h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    color: #1a202c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.actualite-content.content h3 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #003399;
    display: inline-block;
}

.actualite-content.content h4 {
    font-size: 1.35rem;
    color: #003399;
}

.actualite-content.content h5 {
    font-size: 1.2rem;
    color: #0052b4;
}

/* Lists */
.actualite-content.content ul,
.actualite-content.content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.actualite-content.content ul li,
.actualite-content.content ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.actualite-content.content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #003399;
    font-weight: bold;
    font-size: 1.2em;
}

.actualite-content.content ol {
    counter-reset: list-counter;
}

.actualite-content.content ol li {
    counter-increment: list-counter;
}

.actualite-content.content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: #003399;
    font-weight: 600;
}

/* Tables - Enhanced styling */
.actualite-content.content .table-responsive {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.actualite-content.content table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.actualite-content.content table thead {
    background: linear-gradient(135deg, #003399 0%, #0052b4 100%);
}

.actualite-content.content table thead th {
    color: #fff;
    font-weight: 600;
    padding: 1rem 1.25rem;
    text-align: left;
    border: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.actualite-content.content table tbody tr {
    transition: background-color 0.2s ease;
}

.actualite-content.content table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.actualite-content.content table tbody tr:hover {
    background-color: #e8f4fd;
}

.actualite-content.content table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #4a5568;
}

.actualite-content.content table tbody tr:last-child td {
    border-bottom: none;
}

/* Links in content */
.actualite-content.content a {
    color: #003399;
    text-decoration: none;
    border-bottom: 2px solid #cce0ff;
    transition: all 0.2s ease;
    font-weight: 500;
}

.actualite-content.content a:hover {
    color: #0052b4;
    border-bottom-color: #003399;
    background-color: #f0f7ff;
}

/* Blockquotes */
.actualite-content.content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 5px solid #003399;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a5568;
}

/* Code blocks */
.actualite-content.content pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #1a202c;
    border-radius: 12px;
    overflow-x: auto;
}

.actualite-content.content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.actualite-content.content p code,
.actualite-content.content li code {
    background: #edf2f7;
    color: #e53e3e;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Horizontal rule */
.actualite-content.content hr {
    margin: 2.5rem 0;
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #003399 0%, #0066cc 50%, transparent 100%);
    border-radius: 3px;
}

/* Strong and emphasis */
.actualite-content.content strong {
    font-weight: 700;
    color: #1a202c;
}

.actualite-content.content em {
    font-style: italic;
    color: #4a5568;
}

/* Images */
.actualite-content.content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* First paragraph - drop cap effect */
.actualite-content.content > p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    color: #003399;
    font-family: 'Plus Jakarta Sans', serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .actualite-content.content {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .actualite-content.content h3 {
        font-size: 1.3rem;
    }
    
    .actualite-content.content h4 {
        font-size: 1.2rem;
    }
    
    .actualite-content.content h5 {
        font-size: 1.1rem;
    }
    
    .actualite-content.content table thead th,
    .actualite-content.content table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .actualite-content.content > p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .actualite-content.content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    .actualite-content.content table {
        border: 1px solid #000;
    }
    
    .actualite-content.content table th,
    .actualite-content.content table td {
        border: 1px solid #000;
    }
}

/* =====================================================
   Beautiful Content Typography & Formatting
   ===================================================== */

/* Content Paragraphs */
.content-paragraph {
    font-size: 1.125rem;
    line-height: 2;
    color: #374151;
    margin-bottom: 1.75rem;
    text-align: justify;
    hyphens: auto;
    letter-spacing: 0.01em;
}

.content-paragraph:first-of-type {
    font-size: 1.2rem;
    color: #1f2937;
}

/* First letter drop cap */
.actualite-content.content > .content-paragraph:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    color: #003399;
    font-family: 'Plus Jakarta Sans', Georgia, serif;
    text-shadow: 2px 2px 0 rgba(0, 51, 153, 0.1);
}

/* Content Headings */
.content-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    position: relative;
}

.content-heading.h3-style {
    font-size: 1.75rem;
    color: #003399;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #003399, #0066cc, transparent) 1;
    display: block;
}

.content-heading.h4-style {
    font-size: 1.4rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-heading.h5-style {
    font-size: 1.2rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heading-icon {
    color: #f59e0b;
    font-weight: 900;
    font-size: 1.2em;
}

/* Styled Lists */
.styled-list {
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
}

.styled-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border-left: 4px solid #003399;
    transition: all 0.2s ease;
}

.styled-list li:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 51, 153, 0.1);
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #003399;
    font-weight: bold;
    font-size: 1rem;
}

.styled-list.numbered {
    counter-reset: list-counter;
}

.styled-list.numbered li {
    counter-increment: list-counter;
    border-left-color: #f59e0b;
}

.styled-list.numbered li::before {
    content: counter(list-counter);
    background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.list-content {
    display: block;
    line-height: 1.6;
    color: #374151;
}

/* Styled Tables */
.table-wrapper {
    margin: 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 51, 153, 0.12);
    border: 1px solid #e2e8f0;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background: white;
}

.styled-table thead {
    background: linear-gradient(135deg, #003399 0%, #1e40af 50%, #0066cc 100%);
}

.styled-table thead tr th {
    color: white;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border: none;
    position: relative;
}

.styled-table thead tr th::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.styled-table thead tr th:last-child::after {
    display: none;
}

.styled-table tbody tr {
    transition: all 0.25s ease;
    border-bottom: 1px solid #e5e7eb;
}

.styled-table tbody tr:last-child {
    border-bottom: none;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.styled-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.08);
}

.styled-table tbody td {
    padding: 1.1rem 1.5rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    vertical-align: middle;
}

.styled-table tbody tr:first-child td {
    padding-top: 1.25rem;
}

/* Content Links */
.content-link {
    color: #003399;
    text-decoration: none;
    font-weight: 500;
    background: linear-gradient(transparent 60%, rgba(0, 102, 204, 0.15) 60%);
    padding: 0 0.25rem;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.content-link:hover {
    background: linear-gradient(transparent 0%, rgba(0, 102, 204, 0.25) 0%);
    color: #0052b4;
}

.content-link i {
    font-size: 0.75em;
    margin-left: 0.25rem;
    opacity: 0.7;
}

/* Styled Blockquotes */
.styled-quote {
    margin: 2rem 0;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 0 16px 16px 0;
    position: relative;
    font-style: italic;
    color: #78350f;
    font-size: 1.1rem;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 2.5rem;
    color: #f59e0b;
    opacity: 0.6;
    font-style: normal;
}

/* Code Blocks */
.code-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.code-block code {
    font-family: 'Fira Code', 'JetBrains Mono', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.inline-code {
    font-family: 'Fira Code', 'Monaco', monospace;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #fcd34d;
}

/* Content Divider */
.content-divider {
    margin: 3rem auto;
    border: none;
    height: 4px;
    width: 60%;
    background: linear-gradient(90deg, transparent, #003399, #f59e0b, #003399, transparent);
    border-radius: 4px;
}

/* Strong & Emphasis */
.actualite-content.content strong {
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(transparent 50%, rgba(251, 191, 36, 0.3) 50%);
    padding: 0 0.1rem;
}

.actualite-content.content em {
    font-style: italic;
    color: #6b7280;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .content-paragraph {
        font-size: 1rem;
        line-height: 1.85;
        text-align: left;
    }
    
    .content-heading.h3-style {
        font-size: 1.4rem;
    }
    
    .content-heading.h4-style {
        font-size: 1.2rem;
    }
    
    .content-heading.h5-style {
        font-size: 1.1rem;
    }
    
    .styled-list li {
        padding: 0.6rem 0 0.6rem 2.25rem;
    }
    
    .styled-table thead tr th,
    .styled-table tbody td {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .actualite-content.content > .content-paragraph:first-of-type::first-letter {
        font-size: 3rem;
    }
    
    .table-wrapper {
        border-radius: 12px;
        margin: 1.5rem -0.5rem;
    }
}

/* Smooth reading experience */
.actualite-content.content {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Premium Table Styling - Beautiful & Readable
   ===================================================== */

/* Table Container */
.table-wrapper {
    margin: 2.5rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 51, 153, 0.05),
        0 10px 40px rgba(0, 51, 153, 0.12);
    border: 1px solid rgba(0, 51, 153, 0.1);
    background: white;
}

/* Main Table */
.styled-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    background: white;
}

/* Table Header */
.styled-table thead {
    background: linear-gradient(135deg, #003399 0%, #0052b4 50%, #0066cc 100%);
    position: relative;
}

.styled-table thead::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.styled-table thead tr th {
    color: white;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1.25rem 1.75rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    white-space: nowrap;
}

.styled-table thead tr th:first-child {
    border-radius: 18px 0 0 0;
}

.styled-table thead tr th:last-child {
    border-radius: 0 18px 0 0;
}

/* Header cell separator */
.styled-table thead tr th::after {
    content: "";
    position: absolute;
    right: 0;
    top: 30%;
    height: 40%;
    width: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.styled-table thead tr th:last-child::after {
    display: none;
}

/* Table Body */
.styled-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #e5e7eb;
}

.styled-table tbody tr:last-child {
    border-bottom: none;
}

/* Alternating row colors */
.styled-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Row hover effect */
.styled-table tbody tr:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: scale(1.01);
    box-shadow: 
        0 4px 15px rgba(0, 51, 153, 0.1),
        inset 0 0 0 1px rgba(0, 102, 204, 0.1);
    position: relative;
    z-index: 1;
}

/* Table cells */
.styled-table tbody td {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.05rem;
    font-weight: 450;
    padding: 1.25rem 1.75rem;
    color: #374151;
    line-height: 1.7;
    vertical-align: middle;
    border: none;
    transition: all 0.2s ease;
}

/* First column emphasis */
.styled-table tbody td:first-child {
    font-weight: 600;
    color: #1f2937;
}

/* Cell hover */
.styled-table tbody tr:hover td {
    color: #1e40af;
}

/* Bottom rounded corners */
.styled-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 18px;
}

.styled-table tbody tr:last-child td:last-child {
    border-radius: 0 0 18px 0;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 1.5rem -1rem;
        border-radius: 16px;
        overflow-x: auto;
    }
    
    .styled-table {
        font-size: 0.95rem;
        min-width: 500px;
    }
    
    .styled-table thead tr th {
        font-size: 0.85rem;
        padding: 1rem 1.25rem;
        letter-spacing: 0.5px;
    }
    
    .styled-table tbody td {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }
}

/* Print styles for tables */
@media print {
    .table-wrapper {
        box-shadow: none;
        border: 2px solid #003399;
    }
    
    .styled-table thead {
        background: #003399 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .styled-table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}
