:root {
    --primary-color: #137840;
    --secondary-color: #083723;
    --accent-color: #137840;
    --light-color: #f5f5f5;
    --dark-color: #f5f5f5;
    --text-color: #e0e0e0;
    --white: #fff;
    --background-light: #1a1a1a;
    --background-dark: #121212;
    --card-background: #222;
    --shadow-dark: 0 5px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #131313;
    line-height: 1.6;
}

/* Navbar Styles */
.nav-link {
    color: var(--light-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/11.png');
    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 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--background-dark);
    border-radius: 15px;
    box-shadow: var(--shadow-dark);
    position: relative;
    margin-top: -50px;
    margin-bottom: 50px;
}

.activities-section {
    text-align: center;
    margin-bottom: 60px;
}

.activities-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.activities-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.activities-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.activities-image {
    width: 45%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.activities-image:hover {
    transform: scale(1.03);
}

.activities-image img {
    width: 100%;
    height: auto;
    display: block;
}

.activities-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
}

.activities-text strong {
    color: var(--primary-color);
}

/* History Section */
.history-section {
    margin: 50px 0;
    position: relative;
}

.history-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: 10px;
}

.history-item {
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.history-year {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    margin-right: 20px;
    min-width: 100px;
    text-align: center;
}

.history-content {
    flex: 1;
}

.history-content p {
    margin: 0;
    color: var(--text-color);
}

/* Projects List */
.projects-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.project-item {
    background-color: var(--card-background);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.project-item:hover {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.project-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Projects Section */
.projects-section {
    background-color: var(--background-dark);
    padding: 50px 20px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Les styles du footer sont définis dans un fichier commun et ne sont pas modifiés ici */

/* Call to Action */
.call-to-action {
    text-align: center;
    margin: 60px 0 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(19, 120, 64, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 120, 64, 0.4);
}

/* 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;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .activities-images {
        flex-direction: column;
        align-items: center;
    }
    
    .activities-image {
        width: 90%;
        margin-bottom: 20px;
    }
    
    .history-item {
        flex-direction: column;
    }
    
    .history-year {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: flex-start;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-info, .footer-links, .footer-contact {
        flex-basis: 100%;
    }
}

/* 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);
}

/* Styles spécifiques pour la page activités en mode sombre - sans affecter le footer */
.page-activities .main-content p,
.page-activities .main-content li,
.page-activities .activities-text,
.page-activities .history-content p,
.page-activities .project-item p {
    color: var(--text-color);
}

/* Assurer que l'arrière-plan principal est correct - sans affecter le footer */
.page-activities #smooth-content > .main-bg > *:not(footer) {
    background-color: var(--background-dark);
}

/* Cibler spécifiquement les sections de la page activités - sans affecter le footer */
.page-activities .activities-section,
.page-activities .history-section,
.page-activities .projects-section {
    background-color: var(--background-dark);
}

/* Style pour les textes forts en mode sombre - sans affecter le footer */
.page-activities .main-content strong {
    color: var(--primary-color);
    font-weight: bold;
}

/* Améliorer le contraste des boîtes d'histoire */
.page-activities .history-item {
    border-left: 5px solid var(--primary-color);
}
