  /* Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --dark: #1e293b;
    --light: #f8fafc;
    --highlight: #34d399;
    --font-color: #1f2937;}

body {
    background-color: var(--light);
    color: var(--font-color);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.5s ease;
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--light);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.5s ease;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
  
}

.nav-links {
    display: flex;
    gap: 1.5rem;

}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s,background 0.3s, box-shadow 0.3s;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
    color: var(--secondary);
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}


/* Hero Section Styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    animation: gradientMove 6s ease infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    opacity: 0;
    animation: FadeIn 3s ease-in-out forwards;
}

@keyframes FadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}


.btn-grad {background-image: linear-gradient(to right, #56CCF2 0%, #2F80ED  51%, #56CCF2  100%)}
.btn-grad {
   margin: 10px;
   padding: 15px 45px;
   text-align: center;
   text-transform: uppercase;
   transition: 0.5s;
   background-size: 50% auto;
   color: white;            
   box-shadow: 0 0 20px #eee;
   border-radius: 10px;
   display: block;
 }

 .btn-grad:hover {
   background-position: right center; /* change the direction of the change here */
   color: #fff;
   text-decoration: none;
 }


/* Project and Maxi Basketball Sections Styles */
.content-with-images {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.text-content {
    flex: 1;
    min-width: 300px;
    
}
.text-content p{
    text-align: justify;
    opacity: 0;
            transform: translateY(20px);
            transition: opacity 1s ease, transform 1s ease;
}


.image-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
    max-width: 100%;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#region_gwada  img{
    max-width: 50%;
    height: auto;
}
#region_gwada {
    margin-top: 150px;
    
}
#region_gwada h5{
    margin-bottom: 500px;
}


/* Partners Section Styles */
.partners {
    padding: 6rem 2rem;
    text-align: center;
    background: white;
}

.partners h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.partner-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 60s infinite;
    width: calc(200% + 2rem);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.partner-card {
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.partner-card img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Gallery Section Styles */
.gallery {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--light);
}

.gallery h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

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

}

.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Contact Section Styles */
.contact {
padding: 6rem 2rem;
background: var(--light);
text-align: center;
}

.contact h2 {
font-size: 2.8rem;
margin-bottom: 2rem;
color: var(--dark);
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.contact form {
max-width: 600px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.contact input, .contact textarea {
padding: 1rem;
font-size: 1rem;
border: 1px solid var(--dark);
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact button {
padding: 1rem 2rem;
background: var(--primary);
color: white;
font-size: 1.2rem;
font-weight: 700;
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: background 0.3s ease;
}

.contact button:hover {
background: var(--secondary);
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: rgb(156, 145, 145);
    padding: 2rem;
    text-align: center;
}
.nav-item{
    position: relative;
   
}
.nav-item a {
    transition: color 0.3s ease;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4d4343;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 10; /* Pour s'assurer que le sous-menu reste visible au-dessus du contenu */
}

.submenu a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.submenu a:hover {
    background-color: #555;
}

.nav-item:hover .submenu {
    display: block;
}
.nav-item.maxi-basketball:hover .submenu {
    display: block;}
    
    .nav-item-projet:hover .submenu {
        display: block;
    }
    h3{
        margin: 150px;
        text-align: center;
        font-size: 30px;
    }
    #fimba{
        margin: 50px;
    }
    .mise_en_place{
        text-align: center;
        margin-bottom: 150px;
    }
    .mise_en_place p{
        text-align: center justify;
    }
    .mise_en_place h1{
        margin-bottom: 50px;
    }
    
  
    .melise{
        text-align: justify;
    }

    #presentation{
        margin-top: 150px;
    }
    .text-content h1 h2 h3 ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease, transform 1s ease;
    }
    #participation p{
        text-align: center;
        
    }
#participation ul {
    margin-bottom: 150px;
    margin-top: 50px;
}
#participation ul li {
    justify-content: space-around;
}  .content-wrapper {
    max-width: 60%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 150px;
}
.content-wrapper h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 30px;
}
/* Footer principal */
footer {
    footer {
        background: linear-gradient(135deg, #2563eb, #3b82f6);
    };
    color: var(--light);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    position: relative;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 3rem;
}

/* Logo et navigation */
.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav-links a:hover {
    color: var(--highlight);
    transform: scale(1.1);
}

/* Réseaux sociaux */
.footer-social-section {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

.social-icons a img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
}

/* Contact rapide */
.footer-contact-section {
    text-align: left;
    color: var(--light);
}

.footer-contact-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-contact-section a {
    color: var(--highlight);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-contact-section a:hover {
    color: var(--light);
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Bas de page */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: var(--light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--highlight);
}
@media (max-width: 768px) {

  /* 1. On empêche tout scroll horizontal s’il restait un débordement */
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* 2. Nav-container : réduction du padding pour libérer l’espace */
  .nav-container {
    padding: 0.75rem 1rem;   /* 0.75rem haut/bas, 1rem gauche/droite */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 1rem; /* espace entre la nav et le contenu */
    background: var(--light);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 3. Logo : éventuellement réduire légèrement la taille */
  .logo {
    font-size: 1rem;       /* par exemple, 1.5rem au lieu de 2rem en desktop */
    white-space: nowrap;     /* empêche le retour à la ligne */
  }


  /* 5. Hamburger (menu-toggle) : réafficher et pousser à droite */
  .menu-toggle {
    display: block;          /* s’assure qu’il s’affiche en mobile */
    margin-left: auto;       /* pousse l’icône tout à droite */
    font-size: 1.5rem;       /* taille de l’icône en mobile */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--primary);
  }

  /* 6. Nav-links : masquer par défaut, puis s’ouvrir en colonne au clic */
  .nav-links {
    display: none;           /* caché tant qu’on n’a pas cliqué sur ☰ */
    position: absolute;
    top: 60px;               /* ajustez selon la hauteur réelle de .nav-container */
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999;
  }
  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--primary);
  }
  .nav-links a:hover {
    background: rgba(37, 99, 235, 0.1);
  }
  .nav-links.active {
    display: flex;           /* s’ouvre en colonne sous la nav au clic */
  }

  /* 7. Ajustements supplémentaires (hero, h3, sections, etc.) */
  .hero {
    height: auto;
    min-height: 60vh;
    padding: 0 1rem;         /* au lieu de 0 2rem en desktop */
    overflow: hidden;
  }
  .hero h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  h3 {
    margin: 1.5rem 0;         /* en mobile, margin horizontale = 0 */
    text-align: center;
    font-size: 1.75rem;
  }

  .content-with-images {
    padding: 2rem 1rem;       /* au lieu de 4rem 2rem en desktop */
    flex-direction: column;
    gap: 1rem;
  }
  .content-with-images .text-content,
  .content-with-images .image-content {
    flex: 1 1 100%;
  }

  .partners {
    padding: 4rem 1rem;       /* au lieu de 6rem 2rem en desktop */
  }
  .gallery {
    padding: 4rem 1rem;
  }
  .contact {
    padding: 4rem 1rem;
  }
}

