
/* Définition des variables pour le mode clair et sombre */
:root {
    /* Mode clair (par défaut) */
    --primary-color: #137840;
    --secondary-color: #083723;
    --accent-color: #32bd70;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #444;
    --white: #fff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --body-bg: #fbfbfb;
    --content-bg: white;
    --card-bg: white;
    --sidebar-bg: white;
    --recent-post-border: #f0f0f0;
    --share-link-bg: #f5f5f5;
    --faq-question-bg: #f9f9f9;
    --faq-question-hover: #f0f0f0;
    --impact-section-bg: #f9f9f9;
    --way-item-bg: #f9f9f9;
}

/* Pour la page activités, on utilise les mêmes classes que pour la page activités */
.page-activities,
body.dark-mode {
    --light-color: #f5f5f5;
    --dark-color: #f5f5f5;
    --text-color: #e0e0e0;
    --body-bg: #131313;
    --content-bg: #121212;
    --card-bg: #222;
    --sidebar-bg: #1a1a1a;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    --recent-post-border: #333;
    --share-link-bg: #2a2a2a;
    --faq-question-bg: #1e1e1e;
    --faq-question-hover: #2c2c2c;
    --impact-section-bg: #1a1a1a;
    --way-item-bg: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    line-height: 1.6;
}

/* Navbar Styles */
.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.don-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.don-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/imgs/20.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

/* Main Content */
.main-content {
    background-color: var(--content-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #777; /* text-muted color */
    font-size: 0.9rem;
}

.article-meta .date {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 500;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.article-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.article-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}
/* Share Section */
.share-section {
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--recent-post-border);
    padding-top: 30px;
}

.share-title {
    font-weight: 600;
    color: var(--dark-color);
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--share-link-bg);
    color: var(--dark-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

 /* Sidebar Styles */
 .sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--sidebar-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--recent-post-border);
}

.recent-post:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #777; /* text-muted color */
    margin-bottom: 5px;
}

.recent-post-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    color: var(--dark-color);
}

.recent-post:hover .recent-post-title {
    color: var(--primary-color);
}

.recent-post-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.recent-post-link:hover {
    transform: translateX(5px);
}

.recent-post-link i {
    font-size: 0.8rem;
}

.support-widget {
    text-align: center;
}

.support-widget p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.donate-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.donate-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(19, 120, 64, 0.2);
}

.social-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--share-link-bg);
}

.sidebar-social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.sidebar-social-link i {
    width: 20px;
}

/* Impact Section */
.impact-section {
    background-color: var(--impact-section-bg);
    padding: 50px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.impact-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.impact-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.impact-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.impact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.impact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.impact-item p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Ways to Donate Section */
.ways-section {
    margin-bottom: 60px;
}

.ways-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.way-item {
    background-color: var(--way-item-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.way-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.way-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.way-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.way-item p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.donate-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(19, 120, 64, 0.2);
    margin-top: 20px;
}

.donate-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(19, 120, 64, 0.3);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 60px;
}

.faq-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-question {
    padding: 20px;
    background-color: var(--faq-question-bg);
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--faq-question-hover);
}

.faq-answer {
    padding: 20px;
    color: var(--text-color);
    display: none;
}

.faq-question.active + .faq-answer {
    display: block;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

/* Call to Action */
.cta-section {
    text-align: center;
    margin: 60px 0 30px;
    padding: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: white;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-info {
    flex-basis: 35%;
    margin-bottom: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

.footer-links {
    flex-basis: 15%;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    flex-basis: 30%;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 1s ease;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Navbar Dark Mode */
.page-activities .navbar,
.dark-mode .navbar {
    background-color: #121212;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .impact-grid, 
    .ways-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .impact-item, 
    .way-item {
        padding: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .donate-title {
        font-size: 1.8rem;
    }
    
    .donate-text {
        font-size: 1rem;
    }
    
    .impact-section, 
    .ways-section {
        padding: 30px 20px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-info, 
    .footer-links, 
    .footer-contact {
        flex-basis: 100%;
    }
}
.footer-cta {
    margin-top: 30px;
}

.footer-cta .btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

.footer-cta .btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}
/* Style pour indiquer l'élément de menu actif */
.nav-item .nav-link.active span {
color: var(--primary-color) !important;
}

.nav-item .nav-link.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
}