/* CSS V2 - ONG AHD Website - Inspired by HTML Codex Charity Themes */
:root {
    --primary-red: #8B0000;         /* Deep Red / Burgundy matching AHD logo */
    --secondary-red: #A93226;       /* Bright Coral Red */
    --accent-orange: #E67E22;      /* Warm Orange */
    --dark-navy: #1B365D;          /* Deep Navy */
    --slate-dark: #2C3E50;          /* Dark Text */
    --bg-light: #F8F9FA;           /* Off-White */
    --white: #FFFFFF;
    --gray-border: #E2E8F0;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--slate-dark);
    background-color: #FAFBFD;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-info span i {
    color: var(--accent-orange);
    margin-right: 6px;
}

.top-bar-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-bar-socials a {
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.top-bar-socials a:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

/* --- HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 52px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.3rem;
    color: var(--primary-red);
    font-weight: 800;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 600;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-navy);
    transition: var(--transition-fast);
    padding: 6px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-red);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.btn-donate-nav {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.btn-donate-nav:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.4);
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary-red);
}

/* --- HERO SLIDER / BANNER --- */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.92), rgba(139, 0, 0, 0.88)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 110px 5% 130px;
    text-align: center;
}

.hero-slider::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: #D35400;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* --- FEATURED CAUSE / URGENT CAMPAIGN BOX --- */
.featured-cause-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 5% 50px;
}

.cause-card-urgent {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    padding: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    border-top: 5px solid var(--primary-red);
}

.cause-tag {
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cause-title {
    font-size: 1.6rem;
    color: var(--dark-navy);
    margin: 8px 0 12px;
    font-weight: 800;
}

/* Progress bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar-bg {
    background: #E2E8F0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
    height: 100%;
    width: 0%; /* Animated via JS */
    border-radius: 10px;
    transition: width 1.8s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-dark);
}

/* --- QUICK DONATION SELECTOR --- */
.donation-amounts {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px;
}

.amount-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--gray-border);
    background: var(--white);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.amount-btn:hover, .amount-btn.selected {
    border-color: var(--primary-red);
    background: #FDF2F2;
    color: var(--primary-red);
}

/* --- SECTION GENERAL HEADINGS --- */
section {
    padding: 75px 5%;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: var(--accent-orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.3rem;
    color: var(--dark-navy);
    font-weight: 800;
    line-height: 1.2;
}

/* --- STATS COUNTER BAR --- */
.stats-banner {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-navy));
    color: var(--white);
    padding: 60px 5%;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    margin: 20px 0 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 600;
}

/* --- EXPERTISE / DOMAIN CARDS WITH ANIMATED IMAGES --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-domain {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-border);
}

.card-domain:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-box {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-domain:hover .card-image-box img {
    transform: scale(1.1);
}

.domain-icon-badge {
    position: absolute;
    bottom: -22px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-domain-body {
    padding: 30px 25px 25px;
}

.card-domain-body h3 {
    font-size: 1.25rem;
    color: var(--dark-navy);
    margin-bottom: 12px;
    font-weight: 700;
}

.card-domain-body p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
}

/* --- TEAM SHOWCASE --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-border);
    transition: var(--transition-fast);
}

.team-card:hover {
    transform: translateY(-50px);
    box-shadow: var(--shadow-hover);
}

.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.25);
}

.team-card h3 {
    font-size: 1.15rem;
    color: var(--dark-navy);
    font-weight: 800;
}

.team-role {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.88rem;
    margin: 4px 0 12px;
}

/* --- MAP & COVERAGE --- */
.coverage-box {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--gray-border);
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary-red);
}

/* --- ANIMATIONS ON SCROLL --- */
.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
footer {
    background-color: #121A21;
    color: #A0AEC0;
    padding: 70px 5% 25px;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2D3748;
    padding-top: 25px;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cause-card-urgent, .coverage-box {
        grid-template-columns: 1fr;
    }
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 25px 5%;
        gap: 18px;
    }
    nav ul.show {
        display: flex;
    }
}

/* Style de base pour la bannière des pages secondaires */
.page-header-banner {
    background: linear-gradient(135deg, rgba(27, 54, 93, 0.88), rgba(139, 0, 0, 0.85)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 65px 5%;
    text-align: center;
}

/* Style des portraits de l'équipe */
.team-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover; /* Conserve le ratio de l'image sans la déformer */
    margin: 0 auto 18px;
    display: block;
    border: 4px solid var(--white);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Effet au survol du portrait */
.team-card:hover .team-portrait {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    border-color: var(--accent-orange);
}

/* --- PAGE NOS PROJETS --- */
.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-encours {
    background-color: #e67e22;
    color: #ffffff;
}

.status-termine {
    background-color: #27ae60;
    color: #ffffff;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-status-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.project-partner-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(27, 54, 93, 0.88);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.15rem;
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-target {
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #444;
    border-left: 3px solid var(--accent-orange);
}

/* --- PAGE CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

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

.contact-info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 0, 0, 0.08);
    color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--dark-navy);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.contact-text p, .contact-text a {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--accent-orange);
}

.contact-social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.contact-social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background: var(--accent-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Formulaire Dynamique */
.contact-form-container {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit-contact {
    width: 100%;
    padding: 14px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-contact:hover {
    background: #6e0000;
    transform: translateY(-2px);
}

.form-status-alert {
    padding: 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.form-status-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- PAGE ARTICLE / ACTUALITÉ DETAIL --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

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

.article-main {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.article-featured-img {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.article-img-caption {
    display: block;
    font-size: 0.85rem;
    color: #666;
    background: var(--bg-light);
    padding: 8px 15px;
    border-left: 3px solid var(--accent-orange);
    margin-top: 4px;
}

.article-lead {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--dark-navy);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-border);
}

.article-main h3 {
    font-size: 1.4rem;
    color: var(--dark-navy);
    font-weight: 800;
    margin: 30px 0 15px;
}

.article-main p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 18px;
}

.article-quote {
    background: #FDF2F2;
    border-left: 5px solid var(--primary-red);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
}

.article-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 8px;
}

.article-quote cite {
    font-size: 0.9rem;
    color: var(--dark-navy);
    font-weight: 700;
    font-style: normal;
}

.article-list {
    margin: 20px 0 25px 20px;
}

.article-list li {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.article-gallery div {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.article-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.article-gallery span {
    display: block;
    font-size: 0.8rem;
    padding: 6px 10px;
    background: var(--bg-light);
    color: #555;
    text-align: center;
}

.article-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-border);
    flex-wrap: wrap;
    gap: 15px;
}

/* SIDEBAR STYLES */
.sidebar-widget {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.widget-donate {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-red));
    color: white;
}

.widget-donate h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.widget-donate p {
    font-size: 0.88rem;
    opacity: 0.9;
    line-height: 1.5;
}

.widget-info-list {
    list-style: none;
}

.widget-info-list li {
    font-size: 0.88rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
    color: #555;
}

.widget-info-list li:last-child {
    border-bottom: none;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.recent-post-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-item h5 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.recent-post-item h5 a {
    color: var(--dark-navy);
}

.recent-post-item h5 a:hover {
    color: var(--primary-red);
}

.recent-post-item span {
    font-size: 0.75rem;
    color: #888;
}

/* --- PAGE BIBLIOTHÈQUE ACTUALITÉS --- */
.news-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.news-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--gray-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

.news-search-box {
    position: relative;
    min-width: 260px;
}

.news-search-box input {
    width: 100%;
    padding: 10px 15px 10px 38px;
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    font-size: 0.88rem;
    outline: none;
}

.news-search-box input:focus {
    border-color: var(--accent-orange);
}

.news-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.news-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.15rem;
    color: var(--dark-navy);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    border-top: 1px solid var(--gray-border);
    padding-top: 15px;
}

.btn-read-more {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--accent-orange);
}

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 45px;
}

.page-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark-navy);
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}