:root {
    --primary-color: #FF6B00;
    --text-color: #FFFFFF;
    --bg-color: #FF6B00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);

}
/* p {
    text-align: justify;
} */
/* Styles pour le loader */  
  

/* Styles pour le spinner */  
.spinner {  
    border: 8px solid #e5e5e5; /* Couleur du fond */  
    border-top: 8px solid #e65c00; /* Couleur de l'animation */  
    border-radius: 50%; /* Rendre le spinner circulaire */  
    width: 60px; /* Taille du spinner */  
    height: 60px; /* Taille du spinner */  
    animation: spin 1s linear infinite; /* Animation rotative */  
}  

/* Animation de rotation */  
@keyframes spin {  
    0% { transform: rotate(0deg); }  
    100% { transform: rotate(360deg); }  
}  

/* Style pour le texte */  
#loader p {  
    margin-top: 15px; /* Espace entre le spinner et le texte */  
    font-size: 20px; /* Taille du texte */  
    color: #333; /* Couleur du texte */  
}
.banner {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1001;
    line-height: 0;
    transition: transform 0.3s ease;
    height: 40px;
}

.banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: top 0.3s ease;
    height: 40px;
}

.logo {
    position: absolute;
    left: 5%;
    top: 10px;
}

.logo img {
    height: auto;
    width: 90px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 4rem;
    margin: 0 auto;
    padding-top: 25px;
}

nav a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
}

.hero {
    padding: 0 2% 0;
    min-height: 100vh;
    margin-top: 0;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
}

.text-content {
    flex: 1;
    padding-right: 2rem;
    margin-top: 4rem;
    
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -2rem;
}

.hero-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-content:hover .hero-image {
    transform: scale(1.05);
}

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

.hero-image {
    max-width: 100%;
    height: auto;
    animation: pulse 3s infinite ease-in-out;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--text-color);
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .hero-content p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

.objectives {
    padding: 5rem 5%;
    background-color: #FFFFFF;
}

.objectives-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.objectives-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

.objective-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.objective-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Couleurs officielles des ODD */
.objective-card:nth-child(1) {
    background: #E5243B; /* Rouge - ODD 1 : Pas de pauvreté */
}

.objective-card:nth-child(2) {
    background: #DDA63A; /* Jaune - ODD 2 : Faim "zéro" */
}

.objective-card:nth-child(3) {
    background: #4C9F38; /* Vert - ODD 3 : Bonne santé et bien-être */
}

.objective-card:nth-child(4) {
    background: #C5192D; /* Rouge foncé - ODD 4 : Éducation de qualité */
}

.objective-card:nth-child(5) {
    background: #FF3A21; /* Orange-rouge - ODD 5 : Égalité entre les sexes */
}

.objective-card:nth-child(6) {
    background: #26BDE2; /* Bleu clair - ODD 6 : Eau propre et assainissement */
}

.card-content h3,
.card-content p {
    color: #FFFFFF; /* Texte en blanc pour contraster avec les fonds colorés */
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}
.impact-map-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap; /* Permet l'adaptation sur petits écrans */
}

.impact-map-text {
    flex: 1;
    max-width: 500px; /* Limite la largeur pour meilleure lisibilité */
}

.styled-map {
    flex: 2;
    width: 100%;
    min-height: 400px; /* Assure une hauteur minimale */
}

/* Responsive : Sur mobile, empile le texte au-dessus de la carte */
@media (max-width: 768px) {
    .impact-map-container {
        flex-direction: column;
        text-align: center;
    }

    .impact-map-text {
        max-width: 100%;
    }

    .styled-map {
        min-height: 300px; /* Réduit la hauteur sur mobile */
    }
}

.impact-map-text h1 {
    font-size: 2.5rem; /* Taille par défaut sur desktop */
    font-weight: bold;
    text-align: center;
    color: #000; /* Noir ou adapte selon ton design */
    margin-bottom: 1rem;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .impact-map-text h1 {
        font-size: 1.5rem; /* Réduit la taille sur mobile */
    }
}

@media (max-width: 480px) {
    .impact-map-text h1 {
        font-size: 1.2rem; /* Encore plus petit pour les très petits écrans */
    }
}

.impact {
    padding: 5rem 5%;
    background-color: #fed5b1;
}

.impact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.impact-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

.impact-card {
    flex: 1;
    background: #FFFFFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.impact-content {
    padding: 2rem;
}

.impact-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.impact-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.impact-features {
    list-style: none;
    margin-bottom: 2rem;
}

.impact-features li {
    color: #555;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.impact-features li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.impact-btn:hover {
    background-color: #e65c00;
}

/* Media Query pour la responsivité */
@media (max-width: 768px) {
    .impact-container {
        flex-direction: column;
    }
    
    .impact-card {
        margin-bottom: 2rem;
    }
}

.testimonials {
    overflow: hidden;
    padding: 5rem 5%;
    background-color: #ffffff;
}

.testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.testimonials-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.testimonials-container {
    display: flex;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 60px 1rem 0;
    flex-shrink: 0;
    width: calc(33.333% - 2rem);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.testimonial-card:nth-child(4),
.testimonial-card:nth-child(5) {
    opacity: 1;
    visibility: visible;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
    margin: -60px auto 20px;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

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

.testimonial-card:hover .testimonial-image {
    transform: scale(1.05);
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.quote {
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.2;
    font-family: Georgia, serif;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .quote {
    opacity: 0.4;
}

.testimonial-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Media Queries pour la responsivité */
@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 2rem);
        width: calc(50% - 2rem);
    }
    .testimonials-container.slide-2 {
        transform: translateX(calc(-50% * 2));
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        width: calc(100% - 2rem);
    }
    .testimonials-container.slide-2 {
        transform: translateX(calc(-100%));
    }
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.control-prev,
.control-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.control-prev:hover,
.control-next:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.testimonials-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
}

.testimonials-container.slide-1 {
    transform: translateX(0);
}

.testimonials-container.slide-2 {
    transform: translateX(-99%);
}

/* Animation pour l'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Décalage de l'animation pour chaque carte */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }

.formations {
    padding: 5rem 5%;
    background-color: #e6f3ff; /* Même bleu ciel que la section "IMPACTONS ENSEMBLE" */
    color: var(--primary-color); /* Pour que le texte soit lisible sur fond clair */
}

.formations-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.formations-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.formations-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color); /* Ligne de soulignement en couleur primaire */
}

.formations-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: #333; /* Texte plus foncé pour une meilleure lisibilité */
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.formation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.formation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.formation-card:hover img {
    transform: scale(1.1);
}

.formation-card h3 {
    color: #333;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

/* Media Queries pour la responsivité */
@media (max-width: 1024px) {
    .formations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formations-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
}

.partners {
    padding: 5rem 5%;
    background-color: #ffffff;
}

.partners-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.partners-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.partners-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.partners-header p {
    color: #666;
    font-size: 1.1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.partner-card img {
    max-width: 80%;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Media Queries */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
}

.contact {
    padding: 3rem 5%;
    background-color: #e6f3ff; /* Même bleu ciel que la section des formations */
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-container {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    flex: 0.8;
}

.contact-form {
    flex: 1.2;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.info-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: #e65c00;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #e65c00;
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

.news-slider {
    overflow: hidden;
    padding: 2rem 0;
    background: #fff;
    position: relative;
  }
  
  .news-container {
    display: flex;
    gap: 2rem;
    width: max-content; /* La largeur naturelle du contenu */
    animation: scroll 40s linear infinite;
  }
  
  .news-item {
    flex: 0 0 350px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .news-item:hover {
    transform: translateY(-5px);
  }
  
  .news-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
  }
  
  .news-content {
    padding: 1.5rem;
  }
  
  .news-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }
  
  .news-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Animation pour défiler la première série d'items */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      /* Déplace sur la largeur d'une série d'items : 5 items de 350px + espaces (gap) */
      transform: translateX(calc(-350px * 5 - 2rem * 4));
    }
  }
  
  /* Pause de l'animation au survol */
  .news-container:hover {
    animation-play-state: paused;
  }
  

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background-color: transparent; /* Fond transparent par défaut */
}

.navbar.scrolled {
    background-color: #ffffff; /* Fond blanc lorsque défilé */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    background-color: #ffffff; /* Fond blanc par défaut */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombre pour le ruban */
}

.navbar .logo {
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    transform: translateY(-10px);
}

.navbar .logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0;
    display: block;
    vertical-align: middle;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 0 0 auto;
    margin-left: auto;
    transform: translateY(1px);
}

.navbar ul li {
    white-space: nowrap;
}

.navbar ul li a {
    position: relative;
    padding: 0 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    color: #000;
    transition: color 0.3s ease;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Positionné juste en dessous du texte */
    width: 100%;
    height: 2px;
    background-color: #ff6600; /* Couleur de l'animation */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.navbar ul li a:hover {
    color: #ff6600; /* Change la couleur du texte au survol */
}

.navbar ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar.scrolled ul li a {
    color: #000000;
}

main {
    padding-top: 80px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-icon {
    position: relative;
    font-size: 50px;
    color: white;
    cursor: pointer;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .objectives-grid,
    .formations-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .impact-container,
    .contact-container {
        flex-direction: column;
    }

    .news-item img {
        height: auto;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .objectives-grid,
    .formations-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-container,
    .contact-container {
        flex-direction: row;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }
} */

/* document.querySelector('.burger-menu').addEventListener('click', function() {
    document.querySelector('.nav-links').classList.toggle('active');
}); */

.impact-map {
    background-color: #f0f0f0;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.impact-map-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    flex-direction: row; /* Default to row */
}

.impact-map-text {
    flex: 1;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center text */
}

.styled-map {
    flex: 1;
    height: 500px;
    width: 100%; /* Ensure full width */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .impact-map-container {
        flex-direction: column; /* Stack elements vertically on smaller screens */
    }

    .impact-map-text {
        padding-right: 0; /* Remove padding for better alignment */
        margin-bottom: 20px; /* Add space between text and map */
    }

    .styled-map {
        height: 300px; /* Adjust map height for smaller screens */
        width: 100%; /* Ensure full width */
    }
}

.footer {
    background-color: #333;
    color: var(--text-color);
    padding: 40px 20px;
    text-align: left;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-section {
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: var(--primary-color);
}

.footer-section p, .footer-section a {
    margin-bottom: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1em;
    line-height: 1.6;
}

.about-text {
    font-size: 1.2em;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail:hover {
    transform: scale(1.1);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 0; /* Removed rounded corners */
    width: 100%;
}

button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0; /* Removed rounded corners */
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e65c00;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 1em;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Stack sections vertically */
        text-align: center; /* Center text for smaller screens */
    }

    .footer-section {
        margin-bottom: 20px; /* Add space between sections */
    }
}

/* .burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    z-index: 1001;
} */

/* .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
} */

/* @media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none; /* Ensure it starts hidden */
        /* flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    } */

    /* .nav-links.active {
        display: flex;
    } */ 
}