body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #000000;
    overflow-x: hidden;
    position: relative;
}

 .service {
    background: #F5F5F5;
  }



  .containerS {
  display: flex;
  align-items: center;   /* centre verticalement */
  justify-content: space-between;
}

.logo-titre img {
  max-width: 15vw;   /* 10% de la largeur de l'écran */
  height: auto;      /* conserve les proportions */
  display: block;    /* supprime l'espace blanc autour */
}

.nav {
  flex: 0 0 75%;   /* fixe la largeur à 70% */
}
.socials {
    flex: 0 0 10%;
    color: #ffffff;
    margin: 0 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s;
}

.socials a i {
  color: #ffffff;   /* définit la couleur des icônes en blanc */
  font-size: 20px;  /* ajuste la taille si besoin */
  margin-right: 10px; /* espace entre les icônes */
  transition: color 0.3s; /* optionnel : effet au survol */
}

.socials a:hover i {
  color: #000000; /* couleur au survol, optionnel */
}


  .service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border: 2px solid #5b6c78;
    border-radius: 50%;
  }
  
  .service__icon svg {
    height: 35px;
  }

  .service__icon img {
  width: 60px;   /* ajuste la largeur selon ton besoin */
  height: auto;  /* conserve les proportions */
}

  
  .service__content {
    flex: 1;
  }
  
    .section-header {
    text-align: center;
  }

  .service h3 {
    margin-bottom: 0;
  }
  
  @media screen and (max-width:749px) {
    .service {
      text-align: center;
    }
  
    .service__icon {
      margin: 0 auto;
    }
  }
  
  @media screen and (min-width:750px) {
    .service {
      display: flex;
      align-items: center;
    }
  
    .service__icon {
      margin-right: 2rem;
    }
  }

 .service .grid {
    display: flex;
    flex-wrap: wrap;
  }
.gridS {
  display: flex;
}

.gridS > * {
  flex: 1;          /* chaque enfant prend la même place */
  max-width: 50%;   /* empêche de dépasser la moitié */
}

  
 .service .grid__item {
    flex-grow: 1;
    flex-shrink: 0;
    width: 100%;
    padding: 1rem;
  }
  

@keyframes slideImages {
    0% {
        background-image: url('images/Background1.jpg');
    }

    20% {
        background-image: url('images/Background2.jpg');
    }

    40% {
        background-image: url('images/Background3.jpg');
    }

    60% {
        background-image: url('images/Background4.jpg');
    }

    80% {
        background-image: url('images/Background5.jpg');
    }
    
    100% {
        background-image: url('images/Background1.jpg');
    }
}

/* Style de base pour la navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links li {
    display: flex;             /* transforme chaque <li> en conteneur flex */
    align-items: center;       /* centre verticalement le texte */
    justify-content: center;   /* centre horizontalement le texte */
    height: 50px;              /* exemple de hauteur pour le menu */
    margin: 0 20px;            /* espace entre les liens */
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    text-align: center;        /* centre le texte à l'intérieur du lien */
}


/* Cacher le menu burger sur les grands écrans */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Styles pour les petits écrans */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #4CAF50;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: flex;
    }
}

/* Animation du menu burger */
.nav-active {
    transform: translateX(0%);
}

.nav-active li {
    opacity: 1;
    transition: opacity 0.5s ease-in;
    transition-delay: 0.2s;
}

/* Animation pour le burger */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    animation: slideImages 30s infinite;
}

/* Style pour la section partenaires */
#partenaires.content-box {
    padding: 40px 20px;
    /* Espacement interne de la section */
    text-align: center;
    /* Centre le texte dans la section */
    position: relative;
    /* Pour positionner le contenu de la carte */
}

/* Carte pour le contenu textuel */
#partenaires.content-box .card-content {
    background: #fff;
    /* Couleur de fond de la carte */
    padding: 20px;
    /* Espacement interne de la carte */
    border-radius: 8px;
    /* Coins arrondis pour la carte */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Ombre légère pour un effet d'élévation */
    display: inline-block;
    /* Rend la carte aussi large que son contenu */
    max-width: 800px;
    /* Limite la largeur de la carte */
    margin: 0 auto;
    /* Centre la carte horizontalement */
    text-align: left;
    /* Aligne le texte à gauche à l'intérieur de la carte */
}

/* Style pour l'image dans la section partenaires */
#partenaires.content-box .responsive-img {
    margin-top: 20px;
    /* Espacement au-dessus de l'image */
    max-width: 100%;
    /* Assure que l'image ne dépasse pas les limites du conteneur */
    height: auto;
    /* Conserve les proportions de l'image */
    border-radius: 8px;
    /* Coins arrondis pour l'image */
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.containerS {
    width: 95%;
    margin: 0 auto;

}



.text {
    margin-right: 20px;
    /* Espace entre le texte et l'image */
}



header {
    background: #4cae4f;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    text-align: center;
    margin: 0;
    font-size: 1.8em;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #333;
}

nav ul li a.active {
    color: #000;
}

.floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: center;
    z-index: 1001;
}

.floating-logo img {
    width: 100%;
    /* Le logo prendra toute la largeur du bouton */
    max-width: 150px;
    /* Limite la largeur du logo, ajustez selon vos besoins */
    margin-bottom: 10px;
    /* Espace entre le logo et le bouton */
    border-radius: 8px;
    transition: transform 0.3s;
}

.floating-logo img:hover {
    transform: scale(1.05);
}


.floating-btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: block;
    /* Pour que le bouton prenne toute la largeur du conteneur */
}

.floating-btn:hover {
    background-color: #45a049;
    color: #000;
    transform: scale(1.05);
}

.hero {
    background-color: rgba(0, 0, 0, 0.4);
    height: 80vh;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    margin-top: 60px;
}

.hero h2 {
    font-size: 2.5em;
}

.hero p {
    font-size: 1.1em;
    max-width: 600px;
}

.btn {
    background: #fff;
    color: #4CAF50;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: #4CAF50;
    color: #fff;
}


section {
    padding: 60px 0;
    scroll-margin-top: 80px;
    background: transparent;
    /* Full transparency for the section background */
    position: relative;
}

section .content-box {
    background: rgba(255, 255, 255, 0.9);
    /* Semi-transparent background for text blocks */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
}


section img.responsive-img {
    width: 50%;
    height: 50%;
    border-radius: 8px;
    margin: 20px;
}

section img.responsive-img80 {
    width: 80%;
    height: 80%;
    border-radius: 8px;
    margin: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.card__inner {
    padding: 2rem;
  }
  

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cardG {
    display: flex;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: left;
}

.cardD {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
    background: #fff;
    padding: 20px;
    align-items: center;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}



/* 📌 Image principale */
.image-container {
    text-align: center;
}

.image-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

/* 📌 Miniatures */
.thumbnails {
    display: flex;
    justify-content: center; /* Centre les images horizontalement */
    align-items: center; /* Aligne verticalement (utile si elles sont de tailles différentes) */
    gap: 10px; /* Espacement entre les miniatures */
    margin-top: 10px;
}

.thumb {
    width: 60px; /* Assure une taille fixe */
    height: 60px;
    object-fit: cover; /* Empêche l'image de s'étirer et garde ses proportions */
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: transform 0.3s, border 0.3s;
}

/* 🔹 Ajout pour s'assurer que l'image dans .thumb ne prend pas toute la page */
.thumb img {
    width: 100%; /* S'assure que l'image respecte la taille du parent */
    height: 100%;
    object-fit: cover; /* Coupe l'image si nécessaire sans la déformer */
    display: block; /* Supprime les marges blanches éventuelles */
}


.thumb:hover {
    transform: scale(1.1);
    border: 2px solid #4CAF50;
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
    .cardD {
        grid-template-columns: 1fr; /* Passe en colonne */
        grid-template-rows: auto auto;
    }

    .thumb {
        width: 50px; /* Miniatures plus petites sur mobile */
        height: 50px;
    }

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

    .image-container {
        order: 1;
    }

    .text-container {
        order: 2;
    }

    .thumbnails {
        justify-content: center;
    }
    .thumb {
        width: 50px;
        height: 50px;
    }
}



.custom-h2 {
    width: 100%;
    color: #fff;
    /* Couleur du texte en blanc */
    background-color: #000;
    /* Couleur de fond en noir */
    padding: 10px;
    /* Optionnel : Ajoute un peu de padding pour l'espacement autour du texte */
    border-radius: 5px;
    /* Optionnel : Ajoute des coins arrondis pour un effet plus stylé */
}



.custom-h2Plus {
    width: 100%;
    color: #fff;
    /* Couleur du texte en blanc */
    padding: 10px;
    /* Optionnel : Ajoute un peu de padding pour l'espacement autour du texte */
    border-radius: 5px;
    /* Optionnel : Ajoute des coins arrondis pour un effet plus stylé */
}

.custom-h3Plus {
    width: 100%;
    color: #fff;
    /* Couleur du texte en blanc */
    padding: 10px;
    /* Optionnel : Ajoute un peu de padding pour l'espacement autour du texte */
    border-radius: 5px;
    /* Optionnel : Ajoute des coins arrondis pour un effet plus stylé */
}

.cardG img {
    margin: 10px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cardPlus {
    background: #000000dd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.cardPlusBlanc {
    background: #ffffffdd;
    padding: 20px;
    color: #000;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}

.petiteCard {
    background: #4cae4f;
    padding: 20px;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    text-align: center;
}



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

.contact {
    background-color: #f4f4f4;
    padding: 50px 0;
}

.contact .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact .section-title {
    font-size: 2.5rem;
    color: #333;
}

.contact .form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact .form-group {
    margin-bottom: 15px;
}

.contact .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.contact .form-group input,
.contact .form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact .form-group input:focus,
.contact .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.contact .form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact .btn-submit {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

.contact .btn-submit:hover {
    background-color: #45a049;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

footer .social a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s;
}

footer .social a:hover {
    color: #4CAF50;
}

.visit-info {
    margin-top: 20px;
    font-size: 1.1em;
}


  .rejoindre {
    background: #F5F5F5;
  }
  
  .rejoindre .grid__item {
    max-width: 50%;
    margin-bottom: 0;
    opacity: 1;
    transition: all 1s ease;
  }
  
  .rejoindre .grid__item.hide {
    opacity: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: all .4s ease;
  }
  
  .rejoindre-filters .grid__item {
    max-width: 50%;
    margin-bottom: 0;
  }
  
  .rejoindre-filters a {
    color: var(--color-body);
    background: #EEE;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 1rem;
  }
  
  .rejoindre-filters a.active {
    color: #FFF;
    background: #5b6c78;
  }

  @media screen and (max-width:749px) {
    .rejoindre a {
      font-size: 1.4rem;
    }
  }
  
  @media screen and (min-width:750px) {
    .rejoindre .grid__item {
      max-width: 33.3333%;
    }
  
    .rejoindre-filters .grid__item {
      max-width: 25%;
    }
      
    .modal__content {
      padding: 3rem;
    }
  
    .modal .grid__item {
      max-width: 50%;
    }
  }


   .card__overlay {
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 0;
  
    z-index: 0;
    width: 100%;
    height: 100%;
    top: 110%;
    transition: all .3s;
  
  }
  
  .card__overlay a {
    font-size: 4.5rem;
    color: #FFF;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  
  .card:hover .card__overlay {
    top: 0;
  }
  
/* ===== ADHERENT GRID ===== */
.adherentGrid {
    display: flex;
    justify-content: space-between; /* espace entre gauche / centre / droite */
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto; /* centre la grille horizontalement */
    gap: 20px;      /* petit espace entre items */
}

@media (max-width: 768px) {
    .adherentGrid {
        flex-direction: column; /* empile sur mobile */
        align-items: center;
    }
}



.adherentGrid__item {
    width: 260px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.adherentGrid__item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.adherentGrid__item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8); /* assombrit légèrement l'image */
}

/* Overlay + + */
.adherentGrid__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.adherentGrid__item:hover .adherentGrid__overlay {
    opacity: 1;
}


.adherentGrid__item:hover img {
    transform: scale(1.06);
    filter: saturate(1.03) brightness(0.98);
}

.adherentGrid__item:hover {
    transform: translateY(-6px);
}

/* ===== MODAL ===== */
.adherentModal {
    display: none;
    position: fixed;    /* FIXE par rapport à l’écran */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.adherentModal.show {
    display: flex;
}

.adherentModal__content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.adherentModal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}



/* Media Queries for responsive design */

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }

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

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    

    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .contact .form-group input,
    .contact .form-group textarea {
        font-size: 0.9rem;
    }

    footer .social a {
        font-size: 1em;
    }

    .floating-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 🟢 Structure en deux colonnes (ex: Histoire d’hier) */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 20px;
    align-items: center;
}

/* 🟢 Structure en quatre colonnes (ex: Histoire d’aujourd’hui) */
.grid-four-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.grid-four-columns .text-container {
    grid-column: span 2; /* Le texte prend deux colonnes en haut */
}

/* 🟢 Images et textes */
.text-container {
    padding: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 📱 Responsive (Affichage mobile) */
@media screen and (max-width: 768px) {
    .grid-two-columns {
        grid-template-columns: 1fr; /* Empile les éléments */
    }

    .grid-four-columns {
        grid-template-columns: 1fr; /* Empile tout en une seule colonne */
    }
}





}