/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: #333;
    font-size: clamp(16px, 1vw, 20px); /* Set a minimum and maximum font size */
}

body {
    display: flex;
    flex-direction: column;
    background-color: white;
}

/* Content Area */
.content {
    flex: 1 0 auto;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: clamp(16px, 1vw, 24px); /* Set responsive padding */
    font-size: 1rem;
    line-height: 1.6;
}

.custom-body .content-section {
    text-align: left;
    margin-bottom: 1.5rem;
}

.custom-body .content-section h2 {
    text-align: center;
    font-size: clamp(24px, 2vw, 36px); /* Adjust font size for larger screens */
    font-weight: 700;
    margin-bottom: 1rem;
}

.custom-body .content-section img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.custom-body .content-section ul {
    list-style-type: disc;
    padding-left: clamp(16px, 2vw, 32px); /* Responsive padding for lists */
}

.custom-body .content-section ul li {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.custom-body .card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: clamp(16px, 1.5vw, 24px); /* Responsive margin */
    max-width: 100%;
}

.custom-body .card-img-top {
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 25vh;
}

.custom-body .card-body {
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 1.2vw, 24px); /* Responsive padding */
    flex-grow: 1;
}

.custom-body .card-title {
    font-size: clamp(18px, 1.2rem, 22px); /* Responsive font size */
    margin-bottom: 0.5rem;
}

.custom-body .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.custom-body .card-footer {
    font-size: 0.9rem;
    padding: clamp(12px, 0.8vw, 16px); /* Responsive padding */
    background-color: #f8f9fa;
}

.custom-body .card .btn {
    margin-top: auto;
}

/* Header & Footer */
.custom-header-footer {
    background-color: #007775;
}

.custom-header-footer .navbar-nav .nav-link {
    font-size: clamp(16px, 1.3rem, 20px); /* Responsive font size */
    margin-left: 12px;
    font-weight: 600;
    color: white;
}

.custom-header-footer img {
    height: 70px;
}

.container_fluid {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

/* Carousel Images */
.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ensure the carousel itself is responsive */
.carousel {
    max-width: 100%;
    height: auto;
}

footer {
    flex-shrink: 0;
    position: sticky;
    padding: 8px 0;
    background-color: #007775;
    color: white;
}

/* Footer Styles */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.footer-container .social-icons a {
    font-size: clamp(24px, 1.8rem, 28px); /* Responsive font size */
    margin-right: 12px;
    color: white;
}

.contact-info, .legal-info {
    font-size: clamp(14px, 1rem, 18px); /* Responsive font size */
}

/* Button and Navbar Styling */
.navbar-nav .nav-link {
    font-size: clamp(14px, 1.1rem, 18px); /* Responsive font size */
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Custom Style for Navbar Toggle Button */
.navbar-toggler {
    padding: 0.6rem;
    font-size: 1.25rem;
    background-color: #007775; /* Match the site’s primary color */
    border: none; /* Remove default border */
    border-radius: 5px; /* Add some rounding to match other elements */
    color: white; /* Change the color of the icon */
}

.navbar-toggler-icon {
    background-image: none; /* Remove the default icon */
    font-size: 1.5rem; /* Increase the size of the icon */
    color: white; /* Set the icon color */
    content: '\f0c9'; /* Use Font Awesome icon (hamburger) */
    font-family: 'FontAwesome'; /* Ensure the icon font is loaded */
}

.valeurs-img {
    width: 350px;
    height: 350px;
}

/* Responsive Typography */
@media (min-width: 1200px) {
    html {
        font-size: clamp(16px, 1.2vw, 18px); /* Adjusted base font size */
    }
}

@media (max-width: 1200px) {
    html {
        font-size: clamp(14px, 1vw, 16px); /* Adjusted base font size */
    }
}

@media (max-width: 992px) {
    html {
        font-size: clamp(14px, 1.2vw, 16px); /* Adjusted base font size */
    }
}

@media (max-width: 768px) {
    html {
        font-size: clamp(14px, 1.4vw, 18px); /* Adjusted base font size */
    }
}

@media (max-width: 576px) {
    html {
        font-size: clamp(14px, 2vw, 20px); /* Adjusted base font size */
    }
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* List Styles */
.custom-list {
    padding-left: clamp(16px, 2vw, 32px); /* Responsive padding */
}

.custom-list-item {
    padding: 6px 0;
}

/* Miscellaneous */
a, button {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    #about-us .container-fluid {
        padding: 0;
    }
    
    #about-us .row {
        flex-direction: column-reverse;
    }

    #about-us .col-md-7 {
        padding: 20px;
    }

    #about-us .col-md-5 img {
        border-radius: 15px 15px 0 0;
    }

    .card-img-top {
        max-height: 20vh;
    }

    .card-body h3 {
        font-size: 1.5rem;
    }

    .card-body p {
        font-size: 1.1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    #missions .col-md-4 img {
        width: 60%;
    }

    #missions .col-md-4 h4 {
        font-size: 1.4rem;
    }

    #missions .col-md-4 p {
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        font-size: 1.3rem;
        padding: 0.75rem 1.25rem;
    }

    .navbar-toggler {
        padding: 0.75rem;
        font-size: 1.5rem;
    }

    .custom-header-footer .navbar-nav .nav-link {
        font-size: 1.3rem;
        padding: 0.75rem 1.25rem;
    }

    .navbar-nav {
        margin-top: 15px;
    }

    .valeurs-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.2rem;
    }

    #about-us .col-md-7 h2 {
        font-size: 2.3rem;
    }

    #about-us .col-md-7 p {
        font-size: 1.2rem;
    }

    .card-img-top {
        max-height: 18vh;
    }

    .card-body h3 {
        font-size: 1.6rem;
    }

    .card-body p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.7rem 1.4rem;
    }

    #missions .col-md-4 img {
        width: 50%;
    }

    .navbar-nav .nav-link {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }

    .navbar-toggler {
        padding: 0.9rem;
        font-size: 1.75rem;
    }

    .custom-header-footer .navbar-nav .nav-link {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }

    .navbar-nav {
        margin-top: 20px;
    }
    
    .valeurs-img {
        width: 200px;
        height: 200px;
    }
}
