:root {
    /* Color Palette */
    --primary-color: #6B8E23;
    /* Olive Drab / Sage Green */
    --secondary-color: #D2B48C;
    /* Tan / Warm Stone */
    --bg-color: #FDFBF7;
    /* Warm Off-White */
    --text-color: #2F4F4F;
    /* Dark Slate Gray */
    --accent-color: #E6E6FA;
    /* Lavender - subtle accent */
    --white: #FFFFFF;
    --light-gray: #f0f0f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #556B2F;
    /* Darker olive */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Submit Button */
.submit,
button.submit,
input.submit {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.submit:hover,
button.submit:hover,
input.submit:hover {
    background-color: #556B2F;
    /* Darker olive */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Align buttons container */
.boutons {
    margin-top: 20px;
    text-align: center;
    /* Center the button */
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    height: 50px;
    width: auto;
    margin-right: 15px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    /* Reduced height as requested */
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 60px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background img.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 1000px;
    /* Wider for columns */
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    /* Bolder */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
}

/* Hero Sections */
/* ... existing hero styles ... */

.hero-details {
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
    padding-top: 60px;
    /* Adjust top padding if needed */
}

.hero-details .container {
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
}

.hero-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    text-align: center;
    /* Ensure text is centered in columns */
}

.feature-column {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.feature-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.feature-highlight {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-text {
    font-size: 1.1rem;
    color: var(--text-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* À Propos Section */
.section-apropos {
    background-color: var(--white);
}

.apropos-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Default center, can be left for blocks */
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-color);
}

.apropos-subsection {
    margin-bottom: 50px;
    text-align: left;
    /* Alignment for text blocks */
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.apropos-subsection h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.standard-list {
    margin-top: 15px;
    padding-left: 20px;
}

.standard-list li {
    list-style-type: disc;
    margin-bottom: 10px;
    color: #444;
}

.apropos-sub-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.apropos-sub-content.reverse {
    flex-direction: row-reverse;
}

.apropos-text-content {
    flex: 1;
    text-align: center;
}

.apropos-image-container {
    flex: 1;
    max-width: 400px;
}

.apropos-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: 240px;
    object-fit: cover;
}

.apropos-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border-left: 5px solid var(--secondary-color);
    padding-left: 20px;
    margin: 40px 0;
    text-align: left;
    background-color: #f9f9f9;
    padding: 20px;
}

/* Services Section */
.section-services {
    background-color: var(--light-gray);
    /* Alternate background */
}

.services-content-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-column {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

.service-list {
    padding-left: 20px;
}

.service-list li {
    list-style-type: square;
    /* Or standard disc */
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Activités Section */
.section-activites {
    background-color: var(--white);
}

.activites-content-full {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.activites-content-full p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.activites-images-top {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.activites-top-img {
    height: 250px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.activites-grid-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.activites-grid-list li {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    cursor: default;
}

.activites-grid-list li:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Galerie Section */
.section-galerie {
    background-color: var(--light-gray);
    /* Alternate background */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background-color: #ddd;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-more {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--white);
}

.gallery-more:hover {
    background-color: #556B2F;
    transform: scale(1.02);
}

.more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.more-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.more-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.gallery-more:hover .more-icon {
    transform: translateX(5px);
}

/* Album Card Index Styles */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.album-card {
    text-align: center;
    transition: var(--transition);
}

.album-card:hover {
    transform: translateY(-10px);
}

.album-preview {
    position: relative;
    aspect-ratio: 3 / 2;
    margin-bottom: 20px;
    z-index: 1;
}

/* Photo Stack Effect */
.album-preview::before,
.album-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eee;
    border: 4px solid var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: -1;
    transition: var(--transition);
}

.album-preview::before {
    transform: rotate(-3deg);
}

.album-preview::after {
    transform: rotate(3deg);
}

.album-card:hover .album-preview::before {
    transform: rotate(-6deg) translate(-5px, -5px);
}

.album-card:hover .album-preview::after {
    transform: rotate(6deg) translate(5px, -5px);
}

.album-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 4px solid var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover .album-img {
    transform: scale(1.05);
}

/* Year Watermark Effect */
.album-year-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 5px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
    transition: var(--transition);
}

.album-card:hover .album-year-overlay {
    opacity: 1;
    -webkit-text-stroke: 1.5px var(--white);
    letter-spacing: 15px;
    transform: translate(-50%, -50%) scale(1.1);
}

.album-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 10px;
}

.album-count {
    display: block;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* General Back Link */
.back-btn-container {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--secondary-color);
}


/* Partenariat Section */
.section-partenariat {
    background-color: var(--white);
    text-align: center;
    padding: 100px 0;
}

/* Specific styling for the section title in this section */
.section-partenariat .section-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    border: none;
    /* Remove default underline if needed or customize */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-partenariat .section-title::after {
    /* Green underline */
    width: 40px;
    height: 2px;
}

.partenariat-content h3 {
    color: #4a4a4a;
    /* Dark gray for subtitle */
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Cards will have equal height */
    gap: 40px;
    /* Reduced gap slightly */
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.partner-item {
    background-color: #FDFBF7;
    /* Cream/Off-white card */
    padding: 40px 30px;
    border-radius: 8px;
    /* Softer, less rounded than before, more elegant */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Very subtle shadow */
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.partner-logo {
    height: auto;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    padding: 0;
}

.partner-logo.trinitaires-logo {
    height: 110px;
}

.partner-item h4 {
    font-family: var(--font-heading);
    color: #2F4F2F;
    /* Dark Green */
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.partner-item a {
    color: #8B4513;
    /* SaddleBrown for links */
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.partner-item a:hover {
    color: #2F4F2F;
    border-bottom-color: #2F4F2F;
}

/* Donation Info - Card Style */
.donation-info.compact {
    margin-top: 0;
    background-color: #FDFBF7;
    /* Cream background like cards */
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.donation-info.compact h3 {
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.donation-details-row {
    flex-direction: column;
    gap: 15px;
}

.address-box {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #2F4F2F;
    line-height: 1.6;
}

.fiscal-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

/* Contact Section */
.section-contact {
    background-color: var(--light-gray);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-intro p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Form Styles remain mostly the same, ensuring container handles width */

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

/* Footer */
.footer {
    background-color: #1a2f2f;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #ccc;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Media Queries */
@media (max-width: 767px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav {
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .services-content-columns,
    .activites-grid-list {
        grid-template-columns: 1fr;
    }

    .partenariat-details,
    .partners-row,
    .donation-details-row {
        flex-direction: column;
        gap: 30px;
    }

    .apropos-sub-content {
        flex-direction: column !important;
    }

    .apropos-sub-content.reverse {
        flex-direction: column !important;
    }

    .apropos-image-container {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    /* Gallery Mobile Styles */
    .desktop-only {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .more-text {
        font-size: 0.9rem;
    }

    .more-icon {
        font-size: 1rem;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 4px solid var(--white);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: var(--white);
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 991px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Textual Content Pages (Mentions, etc.) */
.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text h3 {
    color: var(--primary-color);
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    display: table;
    padding-bottom: 10px;
}

.content-text p {
    margin-bottom: 20px;
    text-align: justify;
}