/**
 * Styles pour la page À propos (Refonte)
 */

.about-page {
    padding: 30px 0; /* Reduced page padding */
    padding-top: 100px; /* Added to prevent overlap with fixed header */
    color: var(--text-primary, #333);
}

/* Header */
.about-header {
    text-align: center;
    margin-bottom: 30px; /* Reduced margin */
}

.page-title {
    /* font-family: 'Montserrat', sans-serif; */ /* Inherited from style.css */
    color: var(--primary-darker, #2a5652);
    font-size: 2.0rem; /* Adjusted size */
    margin-bottom: 10px;
}

.brand-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    width: 100px;
}
 
.separator-line {
    background-color: var(--secondary, #7EC7A8);
    height: 3px;
    flex-grow: 1;
}
 
.separator-dot {
    background-color: var(--accent, #F2FC32);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 8px;
}

 /* General Section Styling */
.about-section {
     margin-bottom: 0px; /* Reduced section margin */
 }
 
.about-section .section-header {
    margin-bottom: 20px; /* Reduced header margin */
}

.about-section .section-header h2 {
    /* font-family: 'Montserrat', sans-serif; */ /* Inherited */
    color: var(--primary-darker, #2a5652);
    font-size: 2.0rem; /* Adjusted size */
}

.about-section p {
     /* font-family: 'Poppins', sans-serif; */ /* Inherited */
     color: var(--text-secondary, #555);
     line-height: 1.6; /* Slightly reduced line-height */
     margin-bottom: 1em; /* Default paragraph spacing */
}

.about-section p:last-child {
    margin-bottom: 0; /* No margin after last paragraph in a section */
}

/* Ensure consistent styling for headings within content */
.about-section h1,
.about-section h2,
.about-section h3,
.about-section h4,
.about-section h5,
.about-section h6 {
    color: var(--primary-darker, #2a5652);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.about-section h1 { font-size: 2.5rem; }
.about-section h2 { font-size: 2.0rem; }
.about-section h3 { font-size: 1.8rem; }
.about-section h4 { font-size: 1.5rem; }
.about-section h5 { font-size: 1.2rem; }
.about-section h6 { font-size: 1.0rem; }

/* List styling */
.about-section ul,
.about-section ol {
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--text-secondary, #555);
}

.about-section ul li,
.about-section ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Link styling within content */
.about-section a {
    color: var(--primary, #37726E);
    text-decoration: underline;
}

.about-section a:hover {
    color: var(--secondary, #7EC7A8);
}

/* Image responsiveness within content */
.about-section img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    margin: 1em 0; /* Add some vertical spacing */
}

/* Specific Section Styles */
.about-histoire .section-header {
    text-align: left;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-mission-vision .section-header {
     text-align: left;
     margin-bottom: 15px;
}

 .section-alt {
     background-color: var(--light-bg, #f8fcfb);
     border-radius: 10px;
     padding: 30px 30px; /* Reduced padding */
 }
 
 /* Values section */
.values-list {
    margin-top: 15px; /* Reduced margin */
    /* display: flex; */ /* Rely on Bootstrap's .row for flex behavior */
    /* flex-wrap: wrap; */ /* Rely on Bootstrap's .row for flex behavior */
    gap: 20px; /* Space between cards */
}

.value-card {
    padding: 20px 15px; /* Reduced padding */
    /* margin-bottom: 20px; */ /* Handled by gap in flexbox */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white, #fff);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Adjusted size */
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    color: var(--white, #fff);
    font-size: 1.5rem; /* Adjusted size */
}

/* Specific icon backgrounds */
.value-icon-simplicite { background-color: var(--secondary, #7EC7A8); }
.value-icon-qualite { background-color: var(--primary, #37726E); }
.value-icon-integrite { 
    background-color: var(--accent, #F2FC32); 
    color: var(--primary-darker, #2a5652);
}
.value-icon-eco { background-color: #5cb85c; color: var(--white, #fff); }


.value-card h3 {
    /* font-family: 'Montserrat', sans-serif; */ /* Inherited */
    color: var(--primary-darker, #2a5652);
    font-size: 1.2rem; /* Adjusted size */
    margin-bottom: 8px; /* Reduced margin */
    text-align: center;
}

.value-card p {
     /* font-family: 'Poppins', sans-serif; */ /* Inherited */
     color: var(--text-secondary, #555);
     font-size: 0.9rem; /* Adjusted size */
     line-height: 1.5; /* Adjusted line-height */
}


/* Service Area section */
.service-area {
    padding: 40px 30px; /* Adjusted padding */
    border-radius: 10px;
}

.area-content p {
    /* font-family: 'Poppins', sans-serif; */ /* Inherited */
    font-size: 1rem; /* Adjusted size */
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.area-badge {
    background-color: var(--secondary, #7EC7A8);
    color: var(--white, #fff);
    padding: 5px 10px; /* Adjusted padding */
    border-radius: 15px; /* Adjusted radius */
    margin: 0;
    font-weight: 500;
    font-size: 0.85rem; /* Adjusted size */
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-darker, #2a5652);
    padding: 40px 30px; /* Reduced padding */
    border-radius: 10px;
    color: var(--white, #fff);
    margin-top: 30px; /* Reduced margin */
}

.cta-container h2 {
    /* font-family: 'Montserrat', sans-serif; */ /* Inherited */
    color: var(--white, #fff);
    font-size: 1.8rem; /* Adjusted size */
    margin-bottom: 15px;
}

.cta-container p {
    /* font-family: 'Poppins', sans-serif; */ /* Inherited */
    font-size: 1rem; /* Adjusted size */
    max-width: 800px;
    margin: 0 auto 20px; /* Reduced margin */
    color: var(--white, #fff);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-section {
        margin-bottom: 30px; /* Adjusted */
        /* padding: 30px 0; */ /* Removed */
    }
    .about-histoire .about-image {
        margin-top: 30px;
    }
    .about-mission-vision .col-md-6 {
        margin-bottom: 20px;
    }
     .about-mission-vision .col-md-6:last-child {
        margin-bottom: 0;
    }
    .page-title {
        font-size: 2.2rem; /* Adjusted */
    }
    .about-intro-content h2,
    .section-header h2 {
        font-size: 1.6rem; /* Adjusted */
    }
    .cta-container h2 {
        font-size: 1.6rem; /* Adjusted */
    }
}

@media (min-width: 768px) { /* For medium and larger screens */
    .values-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center the cards if they don't fill the row */
        gap: 20px; /* Space between cards */
    }
    .values-list > div { /* Target the direct children of values-list (the columns) */
        flex: 0 0 calc(25% - 15px); /* 4 columns, accounting for gap */
        max-width: calc(25% - 15px);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .values-list > div {
        flex: 0 0 calc(50% - 10px); /* Two columns on smaller desktops/tablets */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .about-page {
        padding: 20px 0; /* Reduced */
    }
    .about-section {
        margin-bottom: 20px; /* Reduced */
        /* padding: 20px 0; */ /* Removed */
    }
     .section-alt {
        padding: 25px 20px; /* Reduced */
    }
    .page-title {
        font-size: 1.8rem; /* Adjusted */
    }
    .about-intro-content h2,
    .section-header h2 {
        font-size: 1.4rem; /* Adjusted */
    }
    .value-card {
        margin-bottom: 0; /* Handled by gap in flexbox */
    }
    .cta-section {
        padding: 30px 20px; /* Reduced */
        margin-top: 30px; /* Adjusted */
    }
    .cta-container h2 {
        font-size: 1.4rem; /* Adjusted */
    }
    .cta-buttons {
        gap: 10px;
    }
    .values-list {
        gap: 15px; /* Adjust gap for mobile */
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center; /* Center items when stacked */
    }
    .values-list > div {
        flex: 0 0 100%; /* One column on mobile */
        max-width: 100%;
    }
}
