.ligne {
    display: flex;             /* Aligne les enfants horizontalement */
    align-items: center;       /* Centre verticalement */
    gap: 150px;                 /* Espace entre image et texte */
    margin: 30px;
  }
  
  .ligne img {
    width: 200px;               /* Taille personnalisée */
    height: auto;
  }
  
  .ligne h1, .ligne h2 {
    margin: 20;
  }

body {
    font-family: Arial, sans-serif;
    background-color: white;
}

h1 {
    color: black;
}

p {
    font-size: 18px;
    color: black;
}

.navbar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar-brand img {
  display: block;
}

.marge-gauche {
  margin-left: 150px;
}

.marge-droite {
  margin-right: 150px;
}
html {
    scroll-behavior: smooth;
  }
h3 {
  text-align: center;
  font-weight: bold; /* nom en gras */
  font-size: 1.2em;
}

.marge-gauche p {
  text-align: justify;
}

.encadre-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* permet de passer à la ligne si pas assez de place */
  gap: 50px; /* réduit un peu l'espace pour plus de flexibilité */
  margin: 50px 20px; /* marges plus souples */
}

.encadre {
  border: 2px solid black;
  padding: 30px;
  width: 300px;
  text-align: center;
  box-sizing: border-box;
  font-weight: bold;
  color: black;
}

/* Adaptation pour les écrans moyens (tablettes) */
@media (max-width: 768px) {
  .encadre {
    width: 80%; /* prend plus de largeur de l'écran */
  }

  .encadre-container {
    gap: 30px;
    margin: 40px 10px;
  }
}

/* Adaptation pour les petits écrans (smartphones) */
@media (max-width: 480px) {
  .encadre {
    width: 100%; /* prend toute la largeur disponible */
  }

  .encadre-container {
    flex-direction: column; /* empile les encadrés verticalement */
    align-items: center;
    gap: 20px;
    margin: 30px 5px;
  }
}


.nom {
  font-weight: bold; /* nom en gras */
  font-size: 1.2em;
}

.role {
  font-weight: normal; /* rôle en texte normal */
  font-size: 1em;
}

.jeux-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 1rem;
}

.jeu {
  width: calc(25% - 60px); /* 4 par ligne avec un peu d'espacement */
  box-sizing: border-box;
  text-align: center;
}

.jeu img {
  max-width: 100%;
  height: auto;
  display: block;
}
.jeu p {
  text-align: center;
  max-width: 250px;
}
.evenement {
  width: calc(25% - 60px);
  box-sizing: border-box;
  text-align: center;
}

.evenement img {
  width: auto;
  height: auto;
  object-fit: cover;
}

.affiches-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .carousel-inner .carousel-item > .row {
      display: flex;
      justify-content: center;
      flex-wrap: nowrap;
    }
    
    .affiche {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cadre fixe pour toutes les images */
.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Maintient le ratio 3:4 sur tous les écrans */
  background-color: #f5f5f5; /* Optionnel, fond neutre pour images non remplies */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image elle-même */
.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* garantit que l’image est entièrement visible */
  display: block;
}


.carousel-item {
      padding: 40px 20px;
      text-align: center;
    }

    .carousel-item h4 {
      margin-bottom: 30px;
      font-weight: bold;
    }

    .jeu-item img {
      max-width: 100%;
      height: auto;
      max-height: 220px; /* ✅ limite la hauteur sans déformer */
      object-fit: cover;
      border-radius: 10px;
      display: block;
      margin: 0 auto;
    }

    .jeu-item p {
      margin-top: 10px;
      font-weight: 500;
    }

.carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* flèches gris foncé */
    border-radius: 50%;
  }

.conteneur-bandes {
  position: relative;
  display: flex;
  justify-content: center;
  background-color: white;
}

body {
  position: relative; /* positionne le contexte pour les bandes */
  min-height: 100vh;  /* assure la hauteur */
  margin: 0;
}

.bande-gauche,
.bande-droite {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4vw;
  background-color: #fe2f2a;
  z-index: 10; /* au-dessus du contenu */
}

.bande-gauche {
  left: 0;
}

.bande-droite {
  right: 0;
}


.contenu-principal {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  background-color: white;
  padding: 20px;
  box-sizing: border-box;
}

.surlignage-rouge-orange {
    background-color: #fe4e4a;
    padding: 0.4em 0.5em;
  }

.encadre1 {
  margin: 100px;
  padding: 20px;
  border: 2px solid #0c0c0c; /* Bordure bleue */
  border-radius: 10px; /* Coins arrondis */
  background-color: white; /* Fond clair */
  text-align: justify;
  font-family: Arial, sans-serif;
  font-size: 1.1em;
}





/* Styles de base pour tous les liens */
.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

/* Surlignage animé sauf pour les dropdown-toggle */
.navbar-nav .nav-link:not::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #fe2f2a;
  
}

/* Survol de tous les liens */
.navbar-nav .nav-link:hover {
  color: #fe2f2a;
}

/* Extension de la ligne uniquement pour les non-dropdowns */
.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
  width: 100%;
}

.carousel-item {
  transition: opacity 1s ease-in-out;
}
.carrousel-infini {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  padding: 20px 0;
}

.carrousel-piste {
  display: inline-block;
  white-space: nowrap;
  animation: defilement 40s linear infinite;
}

.carrousel-piste img {
  height: 400px;
  margin: 0 20px;
  vertical-align: middle;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

@keyframes defilement {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
 body {
    
    line-height: 1.6;
    font-size: 1.1em;
  }
  .accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
  }

  .panel {
    display: none;
    padding: 0 18px;
  background-color: white;}
	
.accordion :after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #fe2f2a;
  
}

/* Survol de tous les liens */
.accordion:hover {
  color: #fe2f2a;
}