* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;

}

body {
    line-height: 1.6;
    color: #000;
}

.header-with-shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    position: relative;
}

.navbar {
    background: #1E3A8A;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #15803D;
}

.nav-links .btn-donate {
    background: #15803D;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between; 
    }

    .logo-img {
        margin-right: auto; 
    }

    .burger {
        margin-left: auto; 
    }
}


.burger {
    display: none;
    cursor: pointer;
}

.burger .line {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px;
}

/*Modification de la section héroique donate-hero*/
.donate-hero, .projects-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-hero .hero-content, .projects-hero .hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.donate-hero h2, .projects-hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.donate-hero p, .projects-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-hero-donate {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #15803D;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.donate-hero .hero-slideshow, .projects-hero .hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.donate-hero .hero-slideshow img, .projects-hero .hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.donate-hero .hero-slideshow img.active, .projects-hero .hero-slideshow img.active {
    opacity: 1;
}

@media only screen and (max-width: 767px) {
    .donate-hero, .projects-hero {
        height: 400px;
    }

    .donate-hero .hero-slideshow img, .projects-hero .hero-slideshow img {
        width: 100%;
        object-fit: cover;
    }

    .donate-hero h2, .projects-hero h2 {
        font-size: 2.5rem;
    }

    .donate-hero p, .projects-hero p {
        font-size: 1rem;
    }
}

@media only screen and (min-width: 768px) {
    .donate-hero, .projects-hero {
        height: 500px;
    }

    .donate-hero .hero-content, .projects-hero .hero-content {
        max-width: 800px;
        padding: 2rem;
    }

    .donate-hero .hero-slideshow, .projects-hero .hero-slideshow {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .donate-hero h2, .projects-hero h2 {
        font-size: 3.2rem;
        letter-spacing: 0.05em;
        line-height: 1.4;
    }

    .donate-hero p, .projects-hero p {
        font-size: 1.2rem;
        letter-spacing: 0.03em;
        line-height: 1.6;
    }
}

/* Fin de la modification de la section héroïque */

.hero {
    background: #1E3A8A;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-hero {
    background: #15803D;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
}

/* Section Objectifs avec animation automatique */
.objectives-section {
    padding: 3rem 2rem;
    text-align: center;
    background: #f9f9f9;
}

.objectives-section h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.objective-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    height: 400px; 
}

.objective-slide {
    position: absolute; /* Superpose les diapositives */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Toujours en flex pour centrer contenu */
    flex-direction: column;
    align-items: center;
    opacity: 0; /* Caché par défaut */
    animation: slideShow 12s infinite; /* 6 diapositives × 2s = 12s */
}

/* Délais pour chaque diapositive */
.objective-slide:nth-child(1) { animation-delay: 0s; }
.objective-slide:nth-child(2) { animation-delay: 2s; }
.objective-slide:nth-child(3) { animation-delay: 4s; }
.objective-slide:nth-child(4) { animation-delay: 6s; }
.objective-slide:nth-child(5) { animation-delay: 8s; }
.objective-slide:nth-child(6) { animation-delay: 10s; }

.objective-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0rem;
    display: block;
}

.objective-text {
    font-size: 1.5rem;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

/* Animation de fondu pour le diaporama */
@keyframes slideShow {
    0% { opacity: 0; } /* Début caché */
    8.33% { opacity: 1; } /* Apparition (2s / 12s = 16.67%, 8.33% pour fondu) */
    16.67% { opacity: 1; } /* Visible */
    25% { opacity: 0; } /* Disparition vers la suivante */
    100% { opacity: 0; } /* Reste caché jusqu'au prochain cycle */
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .objective-slideshow {
        height: 250px; /* Hauteur réduite pour mobile, ajustez si nécessaire */
    }
    .objective-image {
        max-width: 100%; /* Images pleine largeur sur mobile */
    }
    .objective-text {
        font-size: 1rem; /* Texte plus petit sur mobile */
    }
}

.news-section {
    padding: 3rem 2rem;
    text-align: center;
    background: #f0f4f8;
}

.news-section h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.news-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.news-card {
    background: #1E3A8A;
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 500px;
    min-height: 200px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.donation-section {
    padding: 3rem 2rem;
    text-align: center;
    background: #f9f9f9;
}

.donation-section h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.donation-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(90deg, #4a90e2, #50c878);
    color: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donation-card p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-donation {
    background: #fff;
    color: #4a90e2;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-donation:hover {
    background: #e0e0e0;
}

.feedback {
    padding: 3rem 2rem;
    text-align: center;
}

.feedback h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.feedback p {
    color: #000;
}

.members, .projects, .contact, .partners, .donate {
    padding: 3rem 2rem;
    text-align: center;
    background: #f0f4f8;
}

.members h2, .projects h2, .contact h2, .partners h2, .donate h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.member-item, .project-item, .partner-item {
    margin-bottom: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.member-image, .partner-image {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
}

.contact p, .partners p, .donate p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #000;
}

.donate form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.donate label {
    font-weight: bold;
    color: #1E3A8A;
}

.donate input, .donate select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.donate button {
    background: #15803D;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.donate button:hover {
    background: #136f33;
}

.donate-info {
    font-size: 1rem;
    color: #333;
    margin-top: 1.5rem;
}

.donate-info a {
    color: #15803D;
    text-decoration: none;
    font-weight: bold;
}

.donate-info a:hover {
    text-decoration: underline;
}

.donate-section {
    padding: 3rem 2rem;
    text-align: center;
    background: #f9f9f9;
}

.donate-card {
    max-width: 800px;
    margin: 0 auto;
    background: #1E3A8A;
    color: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-donate-submit {
    background: #15803D;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
}

.btn-donate-submit:hover {
    background: #136f33;
}



@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -50%;
        width: 50%;
        height: 100%;
        background: #1E3A8A;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        left: 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .navbar {
        justify-content: flex-end;
    }

    .nav-links li {
        margin-bottom: 0.6rem;
    }

    .nav-links li a {
        color: #fff;
        font-size: 1.2rem;
    }

    .nav-links .btn-donate {
        background: #15803D;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        color: #fff;
        text-decoration: none;
        display: inline-block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel-slide {
        flex-wrap: nowrap;
    }

    .carousel-item {
        min-width: 100%;
    }

    .news-cards {
        flex-direction: column;
        align-items: center;
    }

    .news-card {
        width: 100%;       /* augmente la largeur de la carte */  
    }


    .donation-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .events-container {
        flex-direction: column;
    }

    .events-menu {
        width: 100%;
        position: relative;
        height: auto;
    }

    .menu-btn {
        margin: 0.5rem 0;
    }

    .events-content {
        padding: 1rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .medical-table th, .medical-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .donate-form {
        width: 100%;
    }

    .donate input, .donate select {
        width: 100%;
    }
}

/* Section À propos */
.description {
    padding: 4rem 2rem;
    background: #f9f9f9;
    min-height: 400px;
}

.description-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.description-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.description-text {
    flex: 1;
}

.description h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.description p {
    font-size: 1.2rem;
    color: #333;
    max-width: 600px;
}

/* Section Mission et Vision */
.mission {
    padding: 3rem 2rem;
    background: #9a98f1;
}

.mission-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.mission-text {
    flex: 1;
}

.mission h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
    text-align: left;
}

.mission-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.mission-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Section Objectifs (modifiée pour 3 cartes) */
.objectives {
    padding: 3rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.objectives h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 2.5rem;
}

.objectives-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.objective-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.objective-card h3 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid #15803D;
    padding-bottom: 0.5rem;
}

.objective-card ul {
    list-style: none;
    padding-left: 0;
}

.objective-card li {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.objective-card li:before {
    content: "✔";
    color: #15803D;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.objective-card li:last-child {
    margin-bottom: 0;
}

/* Icônes des réseaux sociaux dans le footer */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    color: #15803D;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .description-content, .mission-content {
        flex-direction: column;
        text-align: center;
    }

    .description-image img, .mission-image img {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .description-text {
        padding: 0 1rem;
    }

    .mission-text {
        order: 2;
    }

    .mission-image {
        order: 1;
    }

    .mission-card {
        max-width: 100%;
    }

    .objectives-container {
        grid-template-columns: 1fr;
    }

    .objective-card {
        padding: 1.5rem;
    }

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

    .objective-card li {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.2rem;
    }
}

/* Section Mission et Vision (modifié pour une seule carte) */
.mission-card {
    background: #1E3A8A;
    color: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    min-height: 300px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.mission-section {
    margin-bottom: 2rem;
}

.mission-section:last-child {
    margin-bottom: 0;
}

.mission-section h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.mission-section p {
    font-size: 1.2rem;
}

/* Animations */
@keyframes slideLeft {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-slide-left {
    transform: translateX(-100%);
    opacity: 0;
    animation: slideLeft 1.5s ease-in-out forwards;
}

.animate-slide-right {
    transform: translateX(100%);
    opacity: 0;
    animation: slideRight 1.5s ease-in-out forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

.animate-slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 1.5s ease-in-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

[data-animation-delay] {
    animation-delay: 0s;
}

[data-animation-delay="0.2"] { animation-delay: 0.2s; }
[data-animation-delay="0.4"] { animation-delay: 0.4s; }
[data-animation-delay="0.6"] { animation-delay: 0.6s; }
[data-animation-delay="0.8"] { animation-delay: 0.8s; }
[data-animation-delay="1.0"] { animation-delay: 1.0s; }
[data-animation-delay="1.2"] { animation-delay: 1.2s; }
[data-animation-delay="1.4"] { animation-delay: 1.4s; }
[data-animation-delay="1.6"] { animation-delay: 1.6s; }

@media (max-width: 768px) {
    .donate-hero h1 {
        font-size: 2.5rem;
    }
    .donate-hero p {
        font-size: 1.3rem;
    }
    .support-image {
        width: 100%;
        height: auto;
    }
    .testimonial-card {
        width: 100%;
    }
    .thanks-section h2 {
        font-size: 2.5rem;
    }
    .thanks-section p {
        font-size: 1.2rem;
    }
}

/* Styles pour les icônes de contact */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-icons a {
    color: #1E3A8A;
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-icons a:hover {
    color: #15803D;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .contact-icons {
        gap: 1rem;
    }

    .contact-icons a {
        font-size: 1.5rem;
    }
}

/* Style pour le téléphone dans le texte */
.contact p strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact p a[href^="tel"]::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #1E3A8A;
}

.contact p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact a {
    color: #1E3A8A;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}
.contact p a[href^="tel"]::before {
    content: none; /* enlève l'icône */
}


.support-section {
    padding: 6rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.support-section h2 {
    font-size: 3.5rem;
    color: #1E3A8A;
    margin-bottom: 3rem;
}

.support-text {
    max-width: 1000px;
    margin: 0 auto 3rem;
    font-size: 1.5rem;
    color: #444;
    line-height: 1.9;
}

.support-images.slideshow {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
}

.support-image {
    width: 100%;
    max-width: 300px;
    height: 225px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.support-details {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.4rem;
    color: #333;
    line-height: 1.8;
}

.testimonials-section {
    padding: 6rem 2rem;
    background: #e6f3ff;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 3.5rem;
    color: #1E3A8A;
    margin-bottom: 3rem;
}

.testimonials-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card p {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card span {
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

.testimonials-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.4rem;
    color: #444;
    line-height: 1.8;
}

.thanks-section {
    padding: 6rem 2rem;
    background: #f0f4f8;
    text-align: center;
}

.thanks-section h2 {
    font-size: 3.5rem;
    color: #1E3A8A;
    margin-bottom: 3rem;
}

.thanks-section p {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: #333;
    line-height: 1.9;
}

/* Nouvelle Section : Équipe Jeune */
.young-team {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f4f8, #e0e7ff);
    text-align: center;
}

.young-team h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.young-team p {
    font-size: 1.2rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.young-team-content {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .young-team {
        padding: 2rem 1rem;
    }

    .young-team h2 {
        font-size: 2rem;
    }

    .young-team p {
        font-size: 1rem;
    }
}

/* Section Équipe (modifiée pour texte adaptable et mise en page responsive) */
.team-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #f0f4f8;
}

.team-section h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.team-section p {
    font-size: clamp(16px, 4vw, 24px); /* Texte adaptable */
    color: #333;
    max-width: 90%;
    padding: 0 20px; /* Réduction du padding latéral */
    margin: 20px auto; /* Aligné avec .objectives-section p */
    line-height: 1.6;
    text-align: justify; /* Alignement justifié comme .obj */
}
@media (max-width: 768px) {
    .team-section p {
        text-align: left;
        margin: 0;
        padding: 0 1px 0 5px;
    }
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte membre avec image et texte en bas */
.team-member {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 400px; 
}

.team-member:hover {
    transform: translateY(-8px);
}

.member-image {
    width: 100%;
    height: 68%; 
    object-fit: cover; /* Image remplit la carte sans déformation */
    border-radius: 0;
    margin: 0;
}

.team-member .member-details {
    height: 20%; /* Zone blanche en bas */
    background: #fff; /* Fond blanc */
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espacement entre nom et titre */
}

.team-member .member-details h3 {
    margin: 0;
    color: #1E3A8A; /* Bleu pour le nom/prénom */
    text-align: center;
    font-size: 1.2rem;
}

.team-member .member-details p {
    margin: 0;
    color: #000; /* Noir pour le titre */
    text-align: center;
    font-size: 1rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .team-container {
        grid-template-columns: 1fr;
    }

    .team-member {
        height: 350px; /* Ajustement pour mobile */
    }

    .team-member .member-details h3 {
        font-size: 1.1rem;
    }

    .team-member .member-details p {
        font-size: 0.9rem;
    }
}

/* Styles pour le texte justifié (harmonisé avec .objectives-section p) */
.obj {
    text-align: justify;
    font-size: clamp(16px, 4vw, 24px);
    max-width: 90%;
    padding: 0 20px;
    margin: 20px auto; 
    line-height: 1.4;
}
@media (max-width: 768px) {
    .obj {
        text-align: left;
        margin: 0;
        padding: 0 1px 0 5px;
    }
}

/* Section Projets */
.projects-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
    text-align: center;
}

.project-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.project-intro h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.project-intro p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .projects-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    flex: 0 0 40%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    flex: 1;
    padding: 1.5rem;
    text-align: left;
}

.project-details h3 {
    font-size: 1.5rem;
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.project-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.detail-btn {
    background: #15803D;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: #136f33;
}

.project-detail {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f4f8;
    border-radius: 5px;
    display: none;
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
    }

    .project-image {
        flex: 0 0 100%;
    }

    .project-details h3 {
        font-size: 1.3rem;
    }

    .project-details p {
        font-size: 0.9rem;
    }
        .project-intro {
        padding: 0 1rem;       /* marge intérieure pour ne pas toucher les bords */
    }
}

/*Styles pour donate.php*/
.donation-buttons {
    text-align: center;
    margin: 2rem 0;
}

.btn-hero-donate {
    margin: 0 1rem;
    padding: 1rem 2rem;
    background: #15803D;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-hero-donate:hover {
    transform: scale(1.05);
}
/* Media query pour mobile (écrans < 768px) */
@media (max-width: 767px) {
    /* Empêche le débordement horizontal global */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* Ajuste la section donation-buttons */
    .donation-buttons {
        max-width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .btn-hero-donate {
        margin: 0.5rem;
        padding: 0.8rem 1.5rem;
        width: calc(100% - 1rem); /* Pleine largeur moins marges */
        box-sizing: border-box;
        font-size: 0.9rem; /* Réduit la taille du texte */
    }

    /* Ajuste la carte Mobile Money */
    .mobile-money-card {
        max-width: 100%;
        padding: 0.5rem;
        margin: 1rem 0.5rem;
        box-sizing: border-box;
    }

    .mobile-money-text {
        font-size: 0.85rem; /* Réduit la taille du texte */
    }

    /* Ajuste la section support-section */
    .support-section {
        padding: 2rem 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .support-images.slideshow {
        flex-direction: column; /* Empile les images verticalement */
        gap: 1rem;
        align-items: center;
    }

    .support-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .support-text, .support-details {
        padding: 0 0.5rem;
        font-size: 1rem;
        overflow-wrap: break-word;
    }

    /* Ajuste la section testimonials-section */
    .testimonials-section {
        padding: 2rem 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .testimonials-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-card {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .testimonials-text {
        padding: 0 0.5rem;
        font-size: 1rem;
    }

    /* Ajuste les titres pour éviter le débordement */
    .support-section h2,
    .testimonials-section h2,
    .thanks-section h2 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
        max-width: 100%;
        overflow-wrap: break-word;
        text-align: center;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#donationForm {
    display: flex;
    flex-direction: column;
}

#donationForm input,
#donationForm button {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#donationForm button {
    background-color: #15803D;
    color: white;
    border: none;
    cursor: pointer;
}

#donationForm button:hover {
    background-color: #12632f;
}


/* Styles de login.php */
.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-auth {
    padding: 0.5rem 1rem;
    background-color: #15803D;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-auth.active {
    background-color: #fff;
    color: #15803D;
    border: 2px solid #15803D;
}

.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-form {
    padding: 1rem;
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.auth-form input,
.auth-form select {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.auth-form input[type="file"] {
    padding: 0;
}

.btn-hero-donate {
    background-color: #15803D;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

.btn-hero-donate:hover {
    background-color: #136f33;
}

.error-message {
    color: red;
    margin-top: 0.5rem;
}

/* Styles de login.php */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-auth {
    padding: 0.5rem 1.5rem;
    background-color: #15803D;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-auth.active {
    background-color: #fff;
    color: #15803D;
    border: 2px solid #15803D;
}

.auth-form {
    padding: 1rem;
    display: none;
    text-align: left;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: bold;
}

.auth-form input,
.auth-form select {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.auth-form input[type="file"] {
    padding: 0;
}

.btn-submit {
    background-color: #15803D;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: #136f33;
}

.error-message {
    color: red;
    margin-top: 0.5rem;
    text-align: center;
}

.auth-form-section {
    margin-top: 1rem;
}


/* Styles pour membre.php (sidebar responsive, boutons verts, comme dans les images) */
.sidebar {
    background: #1E3A8A;
    color: #fff;
    padding: 1rem;
   /* top: 60px;*/
    position: static;
}
.sidebar button {
    background: #1E3A8A;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 1.2rem;
}
.sidebar button i {
    margin-right: 0.5rem;
}
.section {
    display: none;
}
.sub-buttons {
    display: flex;
     justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sub-buttons button {
    background: #15803D;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}
.sub-buttons button i {
    margin-right: 0.5rem;
}
.sub-form {
    display: none;
}
.sub-form form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sub-form input, .sub-form select, .sub-form textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.sub-form table {
    width: 100%;
    border-collapse: collapse;
}
.sub-form table th, .sub-form table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}
.message {
    color: green;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    top: 30px; /* sous la navbar */
    left: 0;
    width: 100%;
    background: transparent; /* enlever le fond */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 boutons par ligne */
    gap: 10px; /* espace entre boutons */
    padding: 10px;
    
  }

  .sidebar button {
    background: #1E3A8A; 
    color: #fff;
    font-size: 0.9rem;
    padding: 0.6rem 0.3rem;
    border-radius: 6px;
    text-align: center;
    margin: 0; 
  }

  .content {
    margin-left: 0;
    margin-top: 50px; /* 60px navbar + ~2 lignes de sidebar */
    padding: 1rem;
  }
}


@media (min-width: 641px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 50px;
        height: 100%;
        width: 250px;
    }
    .content {
        margin-left: 250px;
    }
        .section h2 {
        margin-left: 160px;
    }
}

/* Styles supplémentaires pour améliorer le formulaire membre */
.sub-form form {
    background: #fff;
   /* padding: 2rem;*/
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: auto;
}

.sub-form label {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.sub-form input,
.sub-form select,
.sub-form textarea {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sub-form input:focus,
.sub-form select:focus,
.sub-form textarea:focus {
    border-color: #1E3A8A;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.3);
}

@media (min-width: 769px) {
    .sub-form form {
        max-width: 700px; 
        margin-left: 30px; /* décale un peu depuis la sidebar */
    }
}
@media (min-width: 1024px) {
    .sub-form {
        max-width: 800px; /* largeur totale du bloc formulaire */
        margin: 0 auto; /* centre le formulaire */
    }

    .sub-form form {
        width: 100%;
    }
}

/* Styles pour photo.php */
.photos-container {
    display: grid;
   /* grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 2rem;
    justify-items: center; /* Centre les cartes dans chaque case */
}

.photo-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px; /* Taille fixe sur PC */
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.photo-image {
    width: 100%;
    height: 250px; /* Taille uniforme pour toutes les images */
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-description {
    padding: 0.7rem;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

/* Responsive pour téléphone */
@media (max-width: 768px) {
    .photos-container {
        grid-template-columns: 1fr;
    }
    .photo-card {
        max-width: 100%;
    }
        .photo-image {
        height: auto;   
    }
        .photo-image img {
        width: 100%;
        height: auto;      
        object-fit: contain; 
    }

}

/* Styles pour projects.php (cartes professionnelles) */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* Deux cartes par ligne sur PC */
    gap: 20px;
    padding: 3rem 2rem;
}
.project-card {
    display: flex;
    background: hsl(180, 7%, 79%);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    height: auto; /* Auto pour agrandissement sur clic */
    min-height: 300px; /* Hauteur minimale */
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-image {
    flex: 0 0 40%;
    height: auto; /* Hauteur réduite pour image */
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pas de distorsion, sans bordures inutiles */
    border: none; /* Enlever bordures */
}
.project-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-details h3 {
    font-size: 1.5rem;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}
.project-details p {
    font-size: 1rem;
    color: #333;
}
.detail-btn {
    background: linear-gradient(to right, #0f5c2e, #15803D, #0f5c2e); /* Gradient foncé-clair-foncé */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: auto; /* Fixé en bas */
}
.project-detail {
    margin-top: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    display: none; /* Masqué par défaut */
}
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* Une carte par ligne sur mobile */
    }
    .project-content {
        flex-direction: column;
    }
    .project-image {
        height: 150px; /* Ajustement pour mobile */
    }
}

/* Styles pour events.php (cartes avec photo à gauche, titre/date à droite) */
.events-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr)); /* Trois cartes par ligne sur PC */
    gap: 20px;
    padding: 3rem 2rem;
}
.event-card {
    display: flex;
    flex-direction: column; 
    background: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    overflow: hidden;
    transition: transform 0.3s;
    height: auto; 
    min-height: 400px; 
    width: auto;

}
.event-card:hover {
    transform: translateY(-10px);
}
.event-title {
    padding: 1rem;
    font-size: 1.5rem;
    color: #1E3A8A;
    text-align: center;
    font-weight: bold; /* Titre en gras */
}
.event-content {
    display: flex;
    flex: 1;
}
.event-image {
    flex: 0 0 45%; 
    height: 300px; 
    margin: 0; 
    width: auto;
}
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none; 
    outline: none; 
    object-fit: contain;
}
.event-details {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.event-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.9rem; /* Texte plus petit */
}
.event-details table.date-table th {
    background: #1E3A8A; /* Bleu pour date */
    color: #fff;
    padding: 0.3rem; /* Hauteur ligne réduite */
    text-align: left;
    line-height: 1; /* Réduire la hauteur des lignes */
    border-bottom: 1px solid #1E3A8A; /* Seule ligne dessinée pour l'en-tête */
}
.event-details table.date-table td {
    padding: 0.2rem;
    color: #333;
    line-height: 1;
    border-bottom: 1px solid #1E3A8A; /* Bordure de la seconde ligne en bleu */
    background: #fff; /* Fond blanc */
}
.event-details table.lieu-table th {
    background: #FBBF24; /* Jaune pour lieu */
    color: #fff;
    padding: 0.rem; 
    text-align: left;
    line-height: 1; 
    border-bottom: 1px solid #FBBF24; 
}
.event-details table.lieu-table td {
    padding: 0.3rem;
    color: #333;
    line-height: 1;
    border-bottom: 1px solid #FBBF24; 
    background: #fff; 
}
.detail-btn {
    background: linear-gradient(to right, #0f5c2e, #15803D, #0f5c2e); /* Gradient foncé-clair-foncé */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: auto; /* Fixé en bas */
}
.detail-btn::before {
    content: "→ "; /* Flèche devant Détail */
}
.event-detail {
    margin-top: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    display: none; 
    overflow: auto; 
    max-height: 200px; 
}
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr; 
        padding: 1rem;
    }

    .event-content {
        flex-direction: column;
    }

    .event-image {
        height: 150px;
        padding: 0.3rem;       /* marge interne gauche/droite */
        box-sizing: border-box; /* inclure padding dans la largeur */
    }

    .event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px; /* facultatif pour coins arrondis */
    }

    .event-details {
        padding: 0.3rem; /* réduit la marge interne pour le texte */
    }

    .event-detail {
        max-height: 150px; /* Ajustement mobile */
    }
}


/* Bouton Rechercher pour les deux pages */
.search-container {
    padding: 1rem;
    text-align: center;
    background: #15803D; /* Fond vert dédié, pas trop grand */
    margin: 2rem auto;
    max-width: 600px;
    border-radius: 5px;
}
.search-container input[type="text"] {
    padding: 0.5rem;
    width: 70%;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}
.search-container button {
    background: hwb(133 5% 63%); /* Couleur jaune comme image */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}
.search-container button::before {
    content: "\1F50D"; /* Icône loupe Unicode */
    margin-right: 0.5rem;
}

/* Icone en footer*/
/* Container global de la section contact */
.contactf {
    background-color: #1E3A8A;/* couleur de fond claire */
    padding: 40px 0;
    text-align: center;
}

/* Conteneur des icônes */
.contactf .contact-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* espace entre les icônes */
}

/* Styles des liens */
.contactf .contact-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Effet hover */
.contactf .contact-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    color: #fff;
}

/* Couleurs spécifiques pour chaque icône */
.contactf .contact-icons a[href*="wa.me"] {
    background-color: #25D366; /* WhatsApp vert */
}

.contactf .contact-icons a[href*="tel:"] {
    background-color: #007BFF; /* Bleu téléphone */
}

.contactf .contact-icons a[href*="tiktok.com"] {
    background-color: #000; /* TikTok noir */
    color: #fff;
}

.contactf .contact-icons a[href*="mailto:"] {
    background-color: #EA4335; /* rouge Gmail */
    color: #fff;
}

/* Animation AOS (si tu l'utilises déjà) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}
.text-red {
    color: #dc3545;
    margin: 10px 0;
    font-size: 16px;
}

.text-green {
    color: #28a745;
    margin: 10px 0;
    font-size: 16px;
}

/* Modal pour les messages */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content p {
    margin: 0 0 15px;
    font-size: 1rem;
    color: #333;
}

.btn-modal-ok {
    padding: 10px 20px;
    background-color: #15803D;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-modal-ok:hover {
    background-color: #136f33;
}
.footer-icons {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-icons a {
    color: #fff;       
    font-size: 1.5rem;
    text-decoration: none;
}

/* Styles pour la section Mon Profil */
    .centered {
    text-align: center;
    color: #1E3A8A;
    }

.profile-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Ombre légère */
    padding: 20px;
    max-width: 900px; /* Largeur de la carte */
    margin: 50px; /* Marge équilibrée de 10px de tous les côtés */
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo {
    width: 151px; /* 4 cm ≈ 151px à 96 DPI */
    height: 151px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid #ccc;
    transition: border-color 0.3s;
}

.profile-photo:hover {
    border-color: #02060a;
}

.profile-header h3 {
    margin: 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: #11993e; /* Bleu pour nom et prénom */
}

.profile-info {
    text-align: left;
}

.profile-info p {
    margin: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
}

.profile-info strong {
    color: #555;
    margin-right: 5px;
    font-weight: bold; /* Libellés en gras */
}

.profile-info span {
    font-weight: normal; /* Valeurs non gras */
    flex: 1;
    white-space: normal; /* Permet le retour à la ligne pour texte long */
}

.email-table {
    width: 80%;
    max-width: 900px; /* Largeur du tableau */
    margin: 5px 0 5px 45px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-table thead {
    background: #15803D;
    color: #fff;
}

.email-table th,
.email-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.email-table th {
    font-weight: bold;
}

.email-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.email-table tbody tr:hover {
    background: #f1f1f1;
}

@media (min-width: 1024px) {
    .centered {
        text-align: left;
        margin-left: 200px; /* pour bien aligner avec la carte */
    }
}

/* Media query pour mobile */
@media (max-width: 600px) {
    .profile-card {
        max-width: 90%;
        padding: 15px;
        margin: 10px; /* Marge équilibrée sur mobile */
    }

    .profile-info p {
        display: block; /* Chaque libellé et valeur sur une nouvelle ligne */
        font-size: 16px;
    }

    .profile-info strong {
        font-weight: bold;
        margin-right: 5px;
        display: inline; /* Libellé aligné avec la valeur */
    }

    .profile-info span {
        font-weight: normal;
        white-space: normal; /* Retour à la ligne pour mots excédentaires */
        display: inline; /* Valeur suit le libellé */
    }

    .email-table {
        max-width: 98%; /* Plus large pour mobile */
       margin: auto;
    }
}
.contact-map {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .contact-map {
        max-width: 98%;
        height: 300px;
        margin: 10px auto;
    }
}
.map-note {
    text-align: center;
    font-size: 1rem;
    color: #333;
    margin: 10px auto;
    max-width: 900px; /* Aligné avec .contact-map */
    font-style: italic;
}

@media (max-width: 600px) {
    .map-note {
        font-size: 0.9rem;
        margin: 5px auto;
    }
}

/* Styles pour présence.php */
.main-container {
    margin-left: 250px;
    padding: 1rem;
    width: calc(100% - 250px); /* S'adapte à la largeur restante après la sidebar */
    box-sizing: border-box;
}

/* Boutons "Voir la liste" et "Télécharger" en haut des tables filtrées */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne si nécessaire */
}

/* Boutons d'icônes dans la colonne Actions */
.btn-action {
    background: #15803D;
    color: #fff;
    border: none;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 0.5rem;
}

/* Formulaire d'édition pour la modification des membres */
.edit-form {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 1rem auto;
}

/* Boutons "Voir la liste" et "Télécharger" */
.btn-donate {
    background-color: #15803D; /* Vert */
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem; /* Légèrement réduit pour mobile */
    transition: background-color 0.3s;
    margin-right: 0.5rem;
    white-space: nowrap; /* Empêche le texte des boutons de passer à la ligne */
}

.btn-donate:hover {
    background-color: #126d32; /* Vert plus foncé au survol */
}

/* Style pour le tableau dans Liste de présence */
.sub-form table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.sub-form table th,
.sub-form table td {
    border: 1px solid #ddd;
    padding: 0.1cm; /* Petite marge interne */
    vertical-align: middle; /* Alignement vertical centré */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 10px; /* Taille de texte réduite pour le tableau */
}

.sub-form table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.sub-form table td {
    text-align: left;
}

.sub-form table tr {
    height: auto;
    min-height: 30px;
}

/* Centrer les cases à cocher */
.sub-form table td input[type="checkbox"] {
    display: block;
    margin: 0 auto; /* Centrer horizontalement */
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .main-container {
        margin-left: 0;
        margin-top: 50px;
        padding: 0.5rem;
        width: 100%; /* Pleine largeur sur mobile */
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch; /* Les boutons occupent toute la largeur */
    }

    .btn-donate {
        width: 100%; /* Boutons pleine largeur sur mobile */
        margin-bottom: 0.5rem;
    }

    .edit-form {
        max-width: 100%;
        padding: 0.5rem;
    }

    .sub-form table {
        display: block;
        overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
        white-space: nowrap;
    }

    .sub-form table th,
    .sub-form table td {
        font-size: 9px; /* Taille encore plus petite sur mobile */
        padding: 0.05cm; /* Réduire légèrement le padding sur mobile */
    }
}

/* Ajustements pour écrans moyens et grands (PC) */
@media (min-width: 769px) {
.main-container {
        margin-left: 280px; 
        width: calc(100% - 280px); /* Occuper tout l'espace après la sidebar */
        max-width: none !important; /* Supprimer toute limite de largeur */
        margin-right: 0 !important; /* Éliminer l'espace vide à droite */
        padding: 1rem; 
        box-sizing: border-box; 
       
    }
    .sub-form table {
        width: 100% !important; /* Forcer le tableau à occuper toute la largeur */
        margin: 0 !important; /* Supprimer toute marge parasite */
        padding: 0; 
        
    }

    .sub-form table th {
        font-size: 14px; /* Taille de texte augmentée pour les en-têtes */
        padding: 0.3cm; /* Padding légèrement plus grand pour lisibilité */
    }

    .sub-form table td {
        font-size: 14px; /* Taille de texte augmentée pour les cellules */
        padding: 0.3cm; /* Padding légèrement plus grand pour lisibilité */
    }
    .edit-form {
        max-width: 800px; /* Formulaire d'édition plus large sur PC */
        margin-left: 30px;
    }
}

@media (min-width: 1024px) {
    .main-container {
        max-width: 1000px; /* Ajusté pour une meilleure lisibilité */
        margin: 0 auto;
    }

    .edit-form {
        width: 100%;
    }
}
/* css/footer.css */
.public-footer {
    background: #1E3A8A;
    color: #fff;
    padding: 2rem;
    font-size: 1rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 100%; /* Utilise toute la largeur pour maximiser l'espace */
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left, .footer-middle, .footer-right {
    min-width: 250px;
    text-align: left;
}

.footer-right {
    margin-left: auto; /* Pousse la colonne à droite */
}

.footer-left h3, .footer-middle h3, .footer-right h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-left ul, .footer-middle ul, .footer-right ul {
    list-style: none;
    padding: 0;
    padding-left: 0.75rem; /* Marge fixe de 12px pour aligner le texte */
}

.footer-left ul li, .footer-middle ul li, .footer-right ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-left ul li a, .footer-middle ul li a, .footer-right ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-left ul li a:hover, .footer-middle ul li a:hover, .footer-right ul li a:hover {
    text-decoration: underline;
    color: #15803D;
}

.footer-icons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-icons a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #15803D;
}

.footer-copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right {
        min-width: 100%;
    }

    .footer-right {
        margin-left: 0; /* Annule le décalage à droite */
    }

    .footer-left ul, .footer-middle ul, .footer-right ul {
        padding-left: 0; /* Annule la marge fixe sur mobile */
    }

    .footer-icons {
        gap: 1rem;
    }

    .footer-icons a {
        font-size: 1.2rem;
    }
}
/* Styles pour le tableau des dons */
#list_dons table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#list_dons th, #list_dons td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    white-space: normal;
}

#list_dons th {
    background: #f2f2f2;
    font-weight: bold;
    font-size: 1rem;
}

#list_dons td {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    #list_dons {
        overflow-x: auto;
        padding: 0 0.5rem;
    }

    #list_dons table {
        width: 100%;
        min-width: 0;
    }

    #list_dons th, #list_dons td {
        font-size: 0.85rem;
        padding: 0.6rem;
        min-width: 80px;
    }

    #list_dons th:nth-child(1), #list_dons td:nth-child(1) {
        width: 60%;
    }

    #list_dons th:nth-child(2), #list_dons td:nth-child(2) {
        width: 40%;
    }
}

@media (min-width: 769px) {
    #list_dons {
        margin-left: 30px; /* Marge légère depuis la sidebar */
        margin-right: 30px; /* Marge à droite pour éviter de coller au bord */
        width: calc(100% - 60px); /* Toute la largeur disponible moins les marges (30px gauche + 30px droite) */
        max-width: none; /* Supprime la limite de largeur */
    }

    #list_dons table {
        width: 100%; /* Prend toute la largeur du conteneur #list_dons */
        border-collapse: collapse;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #list_dons th, #list_dons td {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* Proportion des colonnes sur PC */
    #list_dons th:nth-child(1), #list_dons td:nth-child(1) {
        width: 60%; /* Colonne "Nom" */
    }

    #list_dons th:nth-child(2), #list_dons td:nth-child(2) {
        width: 40%; /* Colonne "Montant" */
    }
}
/* Styles pour la carte Mobile Money */
.mobile-money-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px; /* Augmenté de 400px à 500px pour élargir la carte */
    margin-left: auto;
    margin-right: auto;
}

.mobile-money-card i {
    font-size: 2rem;
    color: #15803D;
    margin-right: 1rem;
}

.mobile-money-text {
    text-align: left;
}

.mobile-money-title {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.mobile-money-number {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    color: #15803D;
}

.mobile-money-number a {
    text-decoration: none;
    color: inherit;
}

/* Media query pour PC (écrans de 768px et plus) */
@media (min-width: 768px) {
    .mobile-money-card {
        padding: 0.5rem; /* Maintient la hauteur réduite */
        align-items: center;
        max-width: 600px; /* Augmenté pour PC pour une carte plus large */
    }

    .mobile-money-text {
        display: flex;
        align-items: center;
        gap: 0; /* Supprime l'espace entre le titre et le numéro */
    }

    .mobile-money-title,
    .mobile-money-number {
        margin: 0;
        font-size: 1rem; /* Taille de police réduite pour une seule ligne */
    }

    .mobile-money-title {
        margin-right: 0; /* Supprime toute marge à droite du titre */
    }

    .mobile-money-number {
        font-weight: normal; /* Moins d'emphase pour équilibrer la ligne */
    }
}