* Global Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* 1. Images fluides */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


:root {
    --primary: #2563eb;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --dark: #1e293b;
    --light: #f8fafc;
    --highlight: #34d399;
    --font-color: #1f2937;
    --shadow: rgba(0, 0, 0, 0.1);
}
.img_logo{
    max-width: 100px;
    height: auto;
    left: 0;


}
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);
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px var(--shadow);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 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);
}

/* Mobile Styles */




/* Hero Section Styles */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;

}
/* 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;
    overflow: hidden;
}
/* Partners Section Styles */
.partners {
    padding: 6rem 2rem;
    text-align: center;
    background: white;
}
.content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0,0,0,0.3); /* Overlay léger pour le texte */
  }


.hero-content {
    position: relative;
    z-index: 2;
    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: 2.4rem;
    margin-top: 30%;
    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);
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background:var(--primary);
    color:white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}



.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%;
    overflow: hidden;
}




.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 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;
    
    

}
/* Assure que le HTML et le BODY prennent toute la hauteur de la page */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Applique le fond uniquement à la page Galerie */
.galerie-page {
    min-height: 100vh; /* Assure une hauteur d'au moins toute la fenêtre */
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Force les éléments principaux à s'étendre */
main {
    flex: 1; /* Permet au contenu de s’étirer sur toute la hauteur disponible */
}

.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);
}
/* CSS */

  .background-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .slide.active {
    opacity: 1;
  }
  
  
  
  /* Navigation */
  .carousel-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
  }
  
  .carousel-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .carousel-nav button.active {
    background: white;
    transform: scale(1.3);
  }
    /* Bouton Scroll to Top */
    #scrollTopBtn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: none;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    z-index: 1000;}
    @media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
        flex-direction: column;
        background-color: var(--light);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 999;}
         .slide {
    background-size: contain; /* Affiche l’image en entier, mêmes proportions */
    background-position: center center;
  }

  .content-with-images {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
  }
  .content-with-images .text-content,
  .content-with-images .image-content {
    flex: 1 1 100%;
  }


  /* 1. Hero devient « auto » pour s’adapter au contenu */
  .hero {
    height: auto;
    min-height: 60vh;    /* ou 50vh selon votre goût */
    padding: 0 1rem; /* Réduit le padding pour les petits écrans */
  }

  /* 2. Conserver image entière */
  .background-carousel {
    height: 50vh;
  }
  .slide {
    background-size: contain !important;
    background-position: center center !important;
  }

  /* 3. Cibler la bonne classe pour le texte */
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
  }

  /* 4. Ajuster textes et bouton */
  .hero h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  .nav-container{
    padding: 1rem;
  }



    .nav-links a {
        background: transparent;
        padding: 1rem;
        border-bottom: 1px solid#eee;
    }

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

    .menu-toggle {
        display: block;
    }
    .nav-container {
        padding-bottom: 0;
}
 .partners {
    padding: 4rem 1rem;   /* ou 3 rem 1rem, selon votre besoin d’espaces verticaux */
  }

  /* Pour la galerie “.gallery” qui a aussi “padding: 6rem 2rem;” en desktop : */
  .gallery {
    padding: 4rem 1rem;
  }

  /* Pour la section “.contact” qui a “padding: 6rem 2rem;” : */
  .contact {
    padding: 4rem 1rem;
  }
    .logo {
    font-size: 0.5rem;    /* Remplace 2rem → 1.5rem en mobile */
    white-space: nowrap;  /* Pas de retour à la ligne sur “INSER’SPORT” */
  }
  .img_logo {
    max-width: 20px;      /* Remplace 100px → 60px en mobile */
    height: auto;
  }
    .menu-toggle {
    font-size: 1rem;   /* Remplace 1.5rem → 1.25rem si besoin */
    cursor: pointer;
}
 h3 {
    margin: 1.5rem 0;    /* 1.5rem (≈24px) en haut et en bas, et 0 à gauche/droite */
    font-size: 1.75rem;  /* éventuellement, réduire légèrement la taille de police */
  }
}



/* 4. Ajustements pour écrans ≤480px */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  body,
  p,
  li {
    line-height: 1.4;
  }
  .content-wrapper,
  .footer-main {
    padding: 1rem;
  
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  .nav-container {
    padding: 0.75rem;          /* au lieu de 1rem */
  }
  .logo {
    font-size: 1rem;           /* au lieu de 1.25rem */
    white-space: nowrap;
  }
  .img_logo {
    max-width: 40px;           /* au lieu de 50px */
    height: auto;
  }
  .menu-toggle {
    display: block;
    font-size: 1rem;           /* au lieu de 1.25rem */
    cursor: pointer;
  }
  .nav-links {
    top: 50px;
    padding: 0.75rem 0;
  }
  /* (et laissez le reste des overrides pour hero, h3, sections) */
}

}

