/* Réinitialisation de marges et padding pour les éléments de base */
body, h1, h2, p, ul, li {
  margin: 0;
  padding: 0;
}
/* RESET - Réinitialisation des marges et padding par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fullscreen Background */
html, body {
  height: 100%;
  width: 100%;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

/* Sélecteur de langue */
.language-selector {
  position: relative;
  margin-left: 20px; /* Un peu d'espace avant le bouton de langue */
}

/* Bouton de langue */
.language-button {
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-left:-2em;
  margin-right:1em;
}

/* Animation au survol du bouton */
.language-button:hover {
  background-color: #0056b3; /* Changement de couleur au survol */
  transform: scale(1.05); /* Agrandissement du bouton au survol */
}
/* Le menu déroulant est caché par défaut */
.dropdown-content5 {
  display: flex; /* Cacher par défaut */
  position: absolute; /* Positionner par rapport à son parent */
  background-color: #f9f9f9;
  min-width: 160px; /* Largeur minimale pour le menu */
  z-index: 9999; /* S'assurer qu'il apparaît au-dessus des autres éléments */
  left: -20%; /* Le menu est aligné à gauche du bouton */
  margin-top: 5px; /* Légère marge au-dessus du menu */
  border-radius: 5px; /* Coins arrondis */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre pour effet */
  opacity: 0; /* Initialement invisible */
  transform: scaleY(0); /* Réduit à 0 au départ */
  transform-origin: top; /* Le menu se déploie vers le bas */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Effet fluide */
}

/* Affichage du menu lorsque la classe 'show' est ajoutée */
.language-selector .show {
  display: block;
  opacity: 1; /* Rendre visible */
  transform: scaleY(1); /* Déployer le menu */
  width:50%;
}

/* Style des boutons dans le menu déroulant */
.dropdown-content5 button {
  background-color: white;
  color: black;
  padding: 12px 16px;
  text-align: left;
  width: 100%;
  border: none;
  cursor: pointer;
  border-bottom: 1px solid #ddd; /* Lignes entre les options */
}

/* Effet de survol sur les boutons */
.dropdown-content5 button:hover {
  background-color: #ddd; /* Change de couleur au survol */
}

/* Style des drapeaux */
.flag-text {
  display: inline-flex;
  align-items: center;
}

.flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 10px; /* Espacement entre le drapeau et le texte */
}

.language-text {
  margin-left: 10px; /* Espacement entre le drapeau et le texte */
}


/* Animation du texte au survol */
button:hover .language-text {
  transform: translateX(5px);
}

/* Langue sélectionnée (visuellement mise en valeur) */
.selected-language {
  font-weight: bold;
  color: #333;
}
/* Positionnement pour écrans larges */
@media all and (min-width: 600px) and (max-width: 1367px) and (orientation: landscape) {
  .language-button {
      position: absolute;
      font-size: 12px;
      margin-left: 26vw;  /* Positionnement horizontal */
      top: -68vh;          /* Ajustement vertical */
      width: 100px;  /* Fixer une largeur fixe */
      height: 50px;  /* Fixer une hauteur égale à la largeur pour garder un format carré */
      line-height: 15px; /* Centrer le texte verticalement */
      text-align: center; /* Centrer le texte horizontalement */
  }
  .dropdown-content5 {
      min-width: 160px;
      z-index: 1;
      left: 23.5vw;
      top: -60vh;/* Positionnement du menu */
      width: 100px;  /* Fixe la largeur du menu */
      height: auto;  /* Ajuste la hauteur automatiquement selon le contenu */
  }
}

/* Positionnement pour écrans moyens (portrait) */
@media all and (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  .language-button {
      position: absolute;
      font-size: 12px;
      margin-left: 21vw;  /* Positionnement horizontal */
      top: -61vh;          /* Ajustement vertical */
      width: 100px;  /* Fixer une largeur fixe */
      height: 50px;  /* Fixer une hauteur égale à la largeur pour garder un format carré */
      line-height: 15px; /* Centrer le texte verticalement */
      text-align: center; /* Centrer le texte horizontalement */
  }
  .dropdown-content5 {
      min-width: 160px;
      z-index: 1;
      left: 17.5vw;
      top: -56vh;/* Positionnement du menu */
      width: 100px;  /* Fixe la largeur du menu */
      height: auto;  /* Ajuste la hauteur automatiquement selon le contenu */
  }
}

/* Positionnement pour petits écrans */
@media all and (max-width: 600px) {
  .language-button {
      position: absolute;
      font-size: 12px;
      margin-left: -14vw;  /* Positionnement horizontal */
      top: -78vh !important; /* Ajustement vertical */
      width: 100px;  /* Fixer une largeur fixe */
      height: 50px;  /* Fixer une hauteur égale à la largeur pour garder un format carré */
      line-height: 15px; /* Centrer le texte verticalement */
      text-align: center; /* Centrer le texte horizontalement */
  }

  .dropdown-content5 {
      min-width: 160px;
      z-index: 1;
      left: -20.5vw;
      top: -68vh; /* Positionnement vertical du menu */
      width: 100px;  /* Fixe la largeur du menu */
      height: auto;  /* Ajuste la hauteur automatiquement selon le contenu */
  }
}

/* Header*/
header {  
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  height: 500px;
  padding: 10px;
  border-radius: #ffffff;
  width:100.2%;
  display: block;
}

.header h1, .header p1, .header p2 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  
}

/* Style du carrousel */
.background-carousel {
  position: absolute; /* Garde la position relative au header */
  top: 0;
  left: 0;
  width: 100%;
  height: 150%; /* Tu peux ajuster cette hauteur si nécessaire */
  z-index: -1; /* L'image est derrière le contenu */
  overflow: hidden; /* Masque les parties de l'image qui dépassent */
  pointer-events: none; /* Désactive les interactions */
  filter: brightness(30%); /* Réduit la luminosité */
  transform: translate3d(0, 0, 0); /* Améliore la performance pour les animations */
}

/* Style des images du carrousel */
.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Les images dans le carrousel */
.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Adapte l'image sans la déformer */
}

/* Activer l'image visible dans le carrousel */
.carousel-image.active {
  opacity: 1;
}


.header h1 {
  position: absolute;
  top: 5em; /* Réglage pour centrer verticalement */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5em;
  font-family: 'roman' ;
  width: 40%;
}

.header p1, .header p2 {
  position: absolute;
  font-size: 1.8em;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Work sans';
}

.header p1 {
  top: 14.5em; /* Ajustez la position verticale */
  left: 50%; /* Ajustez la position horizontale */
  width:50%;
}

.header p2{
  top: 85%; /* Ajustez la position verticale */
  left: 50%; /* Ajustez la position horizontale */
}

.slider-background {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: block;
  max-width: 100%;
  height: auto;
  left:-40%;
}

.logo-nav{
  width: 100%;
   
}
/* Navigation */
nav {
  background-color:transparent;
  color: #ffffff;
   height: -10px;
   font-family: "Montserrat";
}

.defilement{
  position: fixed;
  top: 0;  
  width: 102%;
  z-index: 1000;
  background-color: rgb(255, 255, 255);
  height:10%;
  margin-right:80%;
  margin-left:-2%;
  height:80px;
   
}

.defilement img{
  right:130px;
}

/* Contenu du menu */
nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
/* Logo Kidigeek */
.logo-item {
  display: flex;
  align-items: center;
  margin-right: 20px; /* Espacement entre le logo et "A Propos" */
  
}

.logo-item .logo {
  height: 50px; /* Taille du logo */
  margin-right: 10px; /* Espacement entre l'image et le lien */
}

/* Menu principal */
.menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
}

/* Liens du menu */
.menu li {
  position: relative;
  margin: 0 20px;
}

/* Liens du menu */
.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px;
  position: relative;
  transition: color 0.3s ease;
}

/* Animation de survol des liens */
.menu a:hover {
  color: #45a2ff;
}

/* Menu déroulant */
.dropdown-content,
.dropdown-content1 {
  display: none;
  position: absolute;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1;
  left: 0;
  top: 100%;
  margin-top: 5px;
  transition: opacity 0.3s ease;
}

.dropdown-content a,
.dropdown-content1 a {
  color: #333;
  padding: 10px;
  text-align: left;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Survol des éléments du menu déroulant */
.dropdown-content a:hover,
.dropdown-content1 a:hover {
  background-color: #f2f2f2;
}

/* Affichage du menu déroulant */
.dropdown:hover .dropdown-content,
.dropdown:hover .dropdown-content1 {
  display: block;
  opacity: 1;
}

/* Style du bouton "Plus Infos" */
.gradient-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.gradient-button a {
  background-color: #45a2ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.gradient-button a:hover {
  background-color: #3578e5;
}


.gradient-button:active {
  transform: translateY(1px);
}

.gradient-button a {
  color: inherit;
  text-decoration: none;
}

.border-button {
  background-color: transparent; /* Fond transparent */
  border: 2px solid #4CAF50; /* Bordure solide */
  color: #4CAF50; /* Couleur du texte */
  padding: 15px 32px; /* Espacement intérieur */
  text-align: center; /* Centrer le texte */
  text-decoration: none; /* Supprime les soulignements */
  font-size: 20px; /* Taille de la police */
  font-weight: bold; /* Gras */
  border-radius: 10px; /* Coins arrondis */
  cursor: pointer; /* Curseur de la souris */
  position: relative;
  z-index:1;
  top:105%;
  left:0vw;
}

.border-button:hover {
  background-color: #4CAF50; /* Changement de couleur de fond au survol */
  color: white; /* Changement de couleur du texte au survol */
}


  .modal {
      display: none;
      position: fixed;
      z-index: 1000; /* Assurez-vous que le modal est au-dessus des autres éléments */
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 50%;
      max-width: 800px;
      height: auto;
      padding: 20px;
      box-sizing: border-box;
      position: relative;
  }
  
  .modal-content {
      position: relative; /* Assurez-vous que le contenu du modal est positionné correctement */
      
  }
  
  .modal-content video {
      width: 100%;
      height: auto;
      position: relative; /* Assurez-vous que la vidéo est positionnée correctement */
      z-index: 999; /* Assurez-vous que la vidéo est au-dessus des autres éléments */
  }
  
  .close {
      position: absolute;
      top: 10px;
      right: 10px;
      color: white;
      font-size: 24px;
      cursor: pointer;
      z-index: 1001; /* Assurez-vous que le bouton de fermeture est au-dessus de tout */
  }
  .burger-menu img{
       position: absolute;
      font-size:10%;
      cursor: pointer;
      z-index: 3;
      top:20em;
  }
  .burger-menu-button{
      position: absolute;
     display: none;
     cursor: pointer;
     z-index: 3;
     top:2em;
 }
 
/* Styles pour les appareils en mode paysage */
@media all and (min-width: 600px) and (max-width: 1367px) and (orientation: landscape) {
  header {
      height: 500px;
      
      max-width: 1365px;
      top: -2em;
  }

  .logo-nav {
      height: 781px;
  }

  .slider-background {
      position: relative;
      z-index: 1;
      margin: 0 auto;
      display: block;
      max-width: 100%;
      height: auto;
      left: -35%;
      top: 20%;
  }

  nav a:not(.slider-background)::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: #fff;
      visibility: hidden;
      transform: scaleX(0);
      transition: all 0.3s ease-in-out;
  }

  nav a:not(.slider-background):hover::before {
      visibility: visible;
      transform: scaleX(1);
  }

  header h1 {
      font-size: 1.2em;
      margin-top: -0%;
      width: 80% !important;
      margin-left: -1.2%;
  }
  
  header p1 {
      font-size: 1.5em !important;
      margin-top: 3%;
      width: 60% !important;
      display: block;
  }

  header p {
      font-size: 0.7em;
  }

  .defilement {
      height: 8%;
      display: flex;
      position: fixed;
      top: 0%;
      left: -2%;
      right: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(100%);
      transform: translateX(-100%);
      transition: transform 2s ease, visibility 2s ease;
      z-index: 1000;
      visibility: hidden;
  }

  .defilement.visible {
      transform: translateX(0);
      visibility: visible;
  }

  .burger-menu-button {
      display: flex;
      cursor: pointer;
      z-index: 1000;
      position: fixed;
      top: 0;
      left: 20em;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  .burger-menu-button img {
      display: flex;
      cursor: pointer;
      z-index: 1001;
      position: fixed;
      top: 4%;
      left: 90vw;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  .defilement.mobile-menu {
      margin-left: 0;
  }

  nav ul {
      position: absolute;
      margin-top: -10%;
      list-style: none;
      display: flex;
      margin-left: 1%;
      flex-direction: column;
      background-color: rgba(128, 128, 128, 0.6);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px) !important; /* Ajoute cette ligne */
      width: 100%;
      height: 130vh;
      z-index: -57;
      justify-content: center;
      align-items: center;
  }

  nav ul li {
      display: inline-block;
      margin-left: -0px !important;
      justify-content: center;
      align-items: center;
      font-size: 30px;
      margin: 15px 0;
  }

  nav a {
      padding: 8px;
      color: #ffffff;
      font-size: 20px !important;
  }

  .gradient-button {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 15px;
      width: 50%;
      left: 0em;
      top: 2%;
  }

  .gradient-button a {
      font-size: 35px;
      text-align: center;
  }

  .modal {
      width: 100%;
  }

  .header .border-button {
      top: 95%;
      transform: translateX(-2%);
  }

  .dropdown-content, .dropdown-content1, .dropdown-content a, .dropdown-content1 a {
      color: rgb(0, 0, 0);
      text-decoration: none;
      display: none !important;
      padding: 5px 5px;
      align-items: center;
      text-align: center;
      margin-left: 0%;
  }

  .dropdown:hover .dropdown-content, .dropdown:hover .dropdown-content1 {
      display: none;
  }
}

/* Media queries pour les appareils mobiles */
@media all and (min-width: 600px) and (max-width: 1024px) and (orientation: portrait) {
  header {
      height: 500px;
      top: -2em;
  }

  .logo-nav {
      height: 780px;
  }

  .slider-background {
      position: relative;
      z-index: 1;
      margin: 0 auto;
      display: block;
      max-width: 100%;
      height: auto;
      left: -30%;
      top: 25%;
  }

  nav a:not(.slider-background)::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: 0;
      left: 0;
      background-color: #fff;
      visibility: hidden;
      transform: scaleX(0);
      transition: all 0.3s ease-in-out;
  }

  nav a:not(.slider-background):hover::before {
      visibility: visible;
      transform: scaleX(1);
  }

  header h1 {
      font-size: 2.5em;
      margin-top: -3%;
      width: 50% !important;
      margin-left: 0.3%;
  }

  header p {
      font-size: 0.8em;
  }

  header p1 {
      font-size: 1.5em !important;
      margin-top: 8%;
      width: 80% !important;
  }

  header p2 {
      font-size: 0.8em;
      margin-top: 7%;
  }

  .defilement {
      height: 8%;
      display: flex;
      position: fixed;
      top: 0;
      left: -2%;
      right: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(100%);
      transform: translateX(-100%);
      transition: transform 2s ease, visibility 2s ease;
      z-index: 1000;
      visibility: hidden;
  }

  .defilement.visible {
      transform: translateX(0);
      visibility: visible;
  }

  .burger-menu-button {
      display: flex;
      cursor: pointer;
      z-index: 1000;
      position: fixed;
      top: 0;
      left: 20em;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  .burger-menu-button img {
      display: flex;
      cursor: pointer;
      z-index: 1001;
      position: fixed;
      top: 4%;
      left: 90vw;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  .defilement.mobile-menu {
      margin-left: 0;
  }

  nav ul {
      position: absolute;
      margin-top: -30%;
      list-style: none;
      display: flex;
      margin-left: 1%;
      flex-direction: column;
      background-color: rgba(128, 128, 128, 0.6);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px) !important; /* Ajoute cette ligne */
      width: 100%;
      height: 140vh;
      z-index: -57;
  }

  nav ul li {
      display: inline-block;
      margin-left: -35%;
      justify-content: center;
      align-items: center;
      font-size: 30px;
      margin: 15px 0;
  }

  nav a {
      padding: 8px;
      color: #ffffff;
      font-size: 20px !important;
  }

  .gradient-button {
      position: relative;
      left: 0vw;
      top: 2vh;
      width: 30%;
      font-size: 15px;
  }

  .modal {
      width: 100%;
  }

  .header .border-button {
      position: absolute;
      top: 26em;
      left: 50%;
      transform: translateX(-50%);
      width: 81%;
  }

  .dropdown-content, .dropdown-content1, .dropdown-content a, .dropdown-content1 a {
      color: rgb(0, 0, 0);
      text-decoration: none;
      display: none !important;
      padding: 5px 5px;
      align-items: center;
      text-align: center;
      margin-left: 0%;
  }
}

/* Pour les écrans de moins de 500px */
@media all and (max-width: 600px) {
  header {
      height: 500px;
      width: 100%;
      top: -2em;
  }

  .logo-nav {
      height: 780px;
      object-fit: cover;
  }

  .slider-background {
      position: relative;
      z-index: 1;
      margin: 0 auto;
      display: block;
      max-width: 100%;
      height: auto;
      left: -20%;
      top: 25%;
  }

  header h1 {
      font-size: 3.5em !important;
      margin-top: -15%;
      width: 80% !important;
      margin-left: -0%;
  }

  header p {
      font-size: 0.8em;
  }

  header p1 {
      font-size: 1.4em !important;
      margin-top: 15%;
      width: 90% !important;
  }

  header p2 {
      font-size: 0.8em;
      margin-top: 9%;
      width: 70%;
  }

  .defilement {
      height: 8%;
      display: flex;
      position: fixed;
      top: 0;
      left: -2%;
      right: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(100%);
      transform: translateX(-100%);
      transition: transform 2s ease, visibility 2s ease;
      z-index: 1000;
      visibility: hidden;
  }

  .defilement.visible {
      transform: translateX(0);
      visibility: visible;
  }

  .burger-menu-button {
      display: flex;
      cursor: pointer;
      z-index: 1000;
      position: fixed;
      top: 0;
      left: 5em;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  .burger-menu-button img {
      display: flex;
      cursor: pointer;
      z-index: 1001;
      position: fixed;
      top: 5%;
      left: 85.5vw;
      font-size: 35px;
      width: 35px !important;
      visibility: visible;
  }

  nav ul {
      position: absolute;
      margin-top: -32%;
      list-style: none;
      display: flex;
      margin-left: 2%;
      flex-direction: column;
      background-color: rgba(128, 128, 128, 0.6);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px) !important; /* Ajoute cette ligne */
      width: 100%;
      height: 130vh;
      z-index: -57;
  }

  nav ul li {
    display: inline-block;
    margin-right: 0px;
    left: -0%;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin: 15px 0;
    top: 6%;
}

nav a {
    padding: 8px;
    color: #ffffff;
    font-size: 20px !important;
}

.gradient-button {
    position: relative;
    left: 0vw;
    top: 10vh;
    width: 30%;
    font-size: 15px;
}

  .modal {
      width: 100%;
  }

  .header .border-button {
      position: absolute;
      top: 27.5em;
      left: 50%;
      transform: translateX(-50%);
      width: 81%;
  }

  .dropdown-content, .dropdown-content1, .dropdown-content a, .dropdown-content1 a {
      color: rgb(0, 0, 0);
      text-decoration: none;
      display: none !important;
      padding: 5px 5px;
      align-items: center;
      text-align: center;
      margin-left: 0%;
  }
}
/*section1*/
 /* Style des boutons */
/* SECTION */
.activites-section {
  padding: 60px 20px 40px;
  margin-top: 30vh;
}

/* Conteneur de boutons */
.buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* Espace entre les boutons sur grand écran */
  margin-bottom: 30px;
}

/* Style des boutons */
.filter-btn {
  background-color: transparent;
  color: #007BFF;
  border: 2px solid #007BFF;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Hover et bouton actif */
.filter-btn:hover,
.filter-btn.active {
  background-color: #007BFF;
  color: white;
}

/* Responsive : empilement vertical + espacement */
@media (max-width: 600px) {
  .buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 300px;
  }

  .filter-btn:not(:last-child) {
    margin-bottom: 12px; /* espacement vertical entre les boutons */
  }
}

/* Activités */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.photo-link {
  text-decoration: none;
}

.photo-block {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.photo-block:hover {
  transform: scale(1.05);
}

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

.title {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  border-radius: 0 0 10px 10px;
}

/* Style pour la modale */
.modal {
  display: none; /* Cachée par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fefefe; /* Fond blanc */
  z-index: 1000; /* Au-dessus de tout */
  overflow-y: auto; /* Permettre le défilement vertical */
  border: none; /* Pas de bordure */
  box-shadow: none; /* Pas d'ombre */
  left: 50%;
}

/* Fermeture de la modale */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px; /* Espace autour du bouton de fermeture */
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Conteneur principal pour les informations dans la modale et formulaire */
.modal-body {
  max-width: 1200px; /* Largeur maximale du contenu */
  margin: 0 auto; /* Centrer le contenu horizontalement */
  padding: 20px;
}

/* Formulaire d'inscription */
.registration-form {
  margin: 20px 0; /* Espacement autour du formulaire */
  max-width: 800px; /* Largeur maximale du formulaire */
  padding: 20px;
  background-color: #f9f9f9; /* Fond légèrement grisé */
}

.registration-form label {
  font-weight: bold;
  margin-top: 10px;
  display: block; /* Met le label en bloc pour qu'il soit sur une ligne à part */
}

.registration-form input,
.registration-form select,
.registration-form button {
  width: 90%;
  padding: 10px;
  margin: 10px 0; /* Espacement entre les champs */
  border: 1px solid #ddd; /* Bordure légère */
  border-radius: 0; /* Pas de coins arrondis */
  font-size: 16px; /* Taille de police confortable */
}

.registration-form button {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.registration-form button:hover {
  background-color: #45a049;
}

/* Informations dans la modale */
.info-section {
  margin-bottom: 20px;
}

.info-section p {
  margin: 10px 0;
  font-size: 16px; /* Taille de police confortable */
}

/* Description du stage */
.course-description {
  padding: 20px;
  background-color: #f4f4f4;
  margin-bottom: 20px;
  text-align: left;
}

.course-description h2,
.course-description h3 {
  color: #333;
  margin-top: 20px;
}

.course-description p {
  color: #666;
  line-height: 1.6; /* Espacement entre les lignes */
}

.course-description ul {
  list-style-type: none;
  padding-left: 0;
}

.course-description ul li {
  color: #4CAF50;
  margin: 8px 0;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #4CAF50;
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 0; /* Pas de coins arrondis */
  transition: background-color 0.3s ease;
}

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

.btn-paypal {
  background-color: #0070ba;
  transition: background-color 0.3s ease;
}

.btn-paypal:hover {
  background-color: #005fa3;
}

/* Media Queries pour rendre le design responsive */
@media (max-width: 768px) {
  .modal-body {
      padding: 10px; /* Réduire le padding sur les petits écrans */
  }

  .registration-form {
      padding: 15px; /* Réduire le padding sur les petits écrans */
  }

  .course-description {
      padding: 15px; /* Réduire le padding sur les petits écrans */
  }
}

@media (max-width: 480px) {
  .container{
      margin-top:00% ;
      margin-left:0%;
  }
  /* S'assurer que les images à l'intérieur de la modal restent responsives */
.modal-body img {
  width: 40%;
  height: auto;
  border-radius: 8px; /* Optionnel : ajoute des coins arrondis */
}
  
.modal-body {
    padding: 5px; /* Réduire encore le padding sur les très petits écrans */
     
}
  .registration-form input,
  .registration-form select,
  .registration-form button {
      font-size: 14px; /* Réduire la taille de la police sur les très petits écrans */
  }

  .course-description h2,
  .course-description h3 {
      font-size: 18px; /* Réduire la taille des titres */
  }

  .course-description p {
      font-size: 14px; /* Réduire la taille du texte */
  }
}

 
/* ================================
   Section 4 - Témoignages (Base)
   ================================ */
   .section4 {
    width: 100%;
    padding: 40px 20px;
    margin-top: 5vh !important;
    background: url('img/enfants.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
  }
  
  .boxed {
    max-width: 1200px;
    margin: 0 auto;
  }
  
 /* Conteneur flex pour le H1 et le P */
.flex2 {
    display: flex;
    flex-direction: column; /* H1 au-dessus du P */
    align-items: center; /* Centrage horizontal */
    justify-content: center; /* Centrage vertical */
    text-align: center;
    margin-bottom: 40px;
}
  
/* Titre H1 */
.w404 h1 {
    font-family: "Roman", serif;
    font-size: 3em;
    margin-bottom: 15px; /* Espacement entre H1 et P */
}

/* Texte P */
.testimonial-message p {
    font-family: "Work Sans", sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 auto;
    max-width: 800px;
}

  
  /* ================================
     Contenu en colonnes
     ================================ */
     .content {
      display: flex;
      flex-wrap: wrap;
      gap: 40px;
      justify-content: center;
    }
    
    .content > .left,
    .content > .right {
      flex: 1;
      min-width: 300px;
    }
    
    /* ================================
       Slider Containers
       ================================ */
    .slider-container {
      width: 100%;
      overflow: hidden;
      border-radius: 10px;
      background: #f9f9f9;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      margin-bottom: 10px;
    }
    
    /* Slider-1 : Vidéo */
    .slider-container.slider-1 {
      max-width: 675px;
      margin: 0 auto;
    }
    
    .slider-1 .slider video {
      width: 100%;
      display: block;
      border-radius: 10px;
    }
    
  /* Slider-2 : Images (sans animation automatique) */
  .slider-container.slider-2 {
      max-width: 375px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
      top:7vh;
    }
    
   /* Conteneur de l'image du slider */
  .slider-container.slider-2 .slider {
      display: flex;
      transition: transform 0.5s ease;
    }
    
    /* Style du bloc de témoignage */
    .testimonial {
      display: none;
      text-align: center;
      background: white;
      color: black;
      padding: 4vw; /* Utilisation d'une unité relative pour un padding flexible */
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 100%;
      height: 25vh;
      position: relative; /* pour positionner le texte au centre */
      overflow: hidden;
    }
    
    /* Lorsqu'un témoignage devient actif, il est affiché */
    .testimonial.active {
      display: block;
    }
    
  /* Style du texte à l'intérieur du témoignage */
  .testimonial.active p {
    font-size: 1vw; /* Utilisation de vw pour adapter la taille de police en fonction de la largeur de l'écran */
    position: absolute; /* Positionner le texte au centre */
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrer exactement */
    z-index: 2; /* S'assurer que le texte reste au-dessus de l'image */
    width: 80%;
    padding: 2vh; /* Ajouter un peu de padding vertical pour espacer le texte */
  }
   /* Style du texte à l'intérieur du témoignage */
   .testimonial.active p1 {
    font-size: 1vw; /* Utilisation de vw pour adapter la taille de police en fonction de la largeur de l'écran */
    position: absolute; /* Positionner le texte au centre */
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrer exactement */
    z-index: 2; /* S'assurer que le texte reste au-dessus de l'image */
    width: 80%;
    padding: 2vh; /* Ajouter un peu de padding vertical pour espacer le texte */
  }
    /* Deuxième paragraphe - S'il existe */
    .testimonial.active p2 {
      font-size: 1vw; /* Utilisation de vw pour adapter la taille de police en fonction de la largeur de l'écran */
      position: absolute; /* Positionner le texte au centre */
      top: 15%;
      left: 50%;
      transform: translate(-50%, -50%); /* Centrer exactement */
      z-index: 2; /* S'assurer que le texte reste au-dessus de l'image */
      width: 70%;
      padding: 2vh; /* Ajouter un peu de padding vertical pour espacer le texte */
    }
    
    /* Forcer chaque image à occuper exactement 100% de la largeur */
    .slider-container.slider-2 .slider img {
      flex: 0 0 100%;
      width: 100%;
      display: block;
    }
    
    
    /* Boutons de navigation pour le slider d’images */
    .slider-container.slider-2 .prev,
    .slider-container.slider-2 .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.7);
      border: none;
      color: #333;
      font-size: 1.5em;
      padding: 10px;
      cursor: pointer;
      border-radius: 50%;
      z-index: 1;
    }
    
    .slider-container.slider-2 .prev {
      left: 10px;
    }
    
    .slider-container.slider-2 .next {
      right: 10px;
    }
  
    @media all and (min-width: 600px) and (max-width:  1367px) and (orientation: landscape) {
      /* Affichage en deux colonnes déjà géré par .content */
      .w404 h1 {
         font-size: 3em;
       }
       .testimonial-message p {
         font-size: 1.2em;
       }
       /* Slider-2 : Images (sans animation automatique) */
 .slider-container.slider-2 {
     max-width: 375px;
     margin: 0 auto;
     position: relative;
     overflow: hidden;
     top:0vh;
   }
   .testimonial {
     height: 30vh; /* Augmenter encore la hauteur sur les petits écrans */
     padding: 10vw; /* Plus de padding pour les plus petits écrans */
   }
 
   .testimonial.active p {
     position:absolute;
     font-size: 1.5vw; /* Agrandir encore plus la taille de la police sur les très petits écrans */
     width: 80%; /* Réduire encore la largeur du texte */
   }
 
   .testimonial.active p1 {
     position:absolute;
     font-size: 1.5vw; /* Agrandir encore plus la taille de la police sur les très petits écrans */
     width: 80%; /* Réduire encore la largeur du texte */
   }
   .testimonial.active p2 {
     font-size: 1.5vw;
   }
   }
   @media all and (min-width: 600px) and (max-width: 1024px)and (orientation: portrait)  {
     .content {
         flex-direction: column;
         align-items: center;
       }
       .slider-container.slider-1,
       .slider-container.slider-2 {
         max-width: 80%;
         margin: 20px auto;
       }
       .w404 h1 {
         font-size: 2.8em;
       }
       .slider-container.slider-2 {
         max-width: 575px;
         margin: 0 auto;
         position: relative;
         overflow: hidden;
         top:0vh;
         width:200%;
         height:16vh;
         left:-46%;
       }
       .testimonial-message p {
         font-size: 1.1em;
       }
       .testimonial {
         height: 25vh; /* Augmenter la hauteur du témoignage sur les écrans plus petits */
         padding: 6vw; /* Augmenter un peu le padding pour les petits écrans */
       }
     
       .testimonial.active p {
         font-size: 2vw; /* Agrandir légèrement la police sur les écrans plus petits */
         width: 80%; /* Réduire la largeur du texte pour éviter qu'il ne touche les bords */
         top: 7em;
       }
       .testimonial.active p1 {
         font-size: 2vw; /* Agrandir légèrement la police sur les écrans plus petits */
         width: 80%; /* Réduire la largeur du texte pour éviter qu'il ne touche les bords */
         top: 7em;
       }
       
       .testimonial.active p2 {
         font-size: 2vw;
       }
 }
 
 
 @media all and (max-width: 600px) {
     .section4 {
         padding: 20px 10px;
         margin-top: 0px;
       }
       .w404 h1 {
         font-size: 2.5em;
       }
       .testimonial-message p {
         font-size: 1em;
         padding: 0 10px;
       }
       .slider-container.slider-1,
       .slider-container.slider-2 {
         max-width: 100%;
         margin: 20px auto;
       }
       .slider-container.slider-2 .prev,
       .slider-container.slider-2 .next {
         font-size: 1.2em;
         padding: 8px;
       }
       .slider-container.slider-2 {
         max-width: 375px;
         margin: 0 auto;
         position: relative;
         overflow: hidden;
         top:0vh;
         height: 20em;
       }
       .testimonial {
         height: 50vh; /* Augmenter encore la hauteur sur les petits écrans */
         padding: 8vw; /* Plus de padding pour les plus petits écrans */
       }
     
       .testimonial.active p {
         font-size: 5vw; /* Agrandir encore plus la taille de la police sur les très petits écrans */
         width: 90%; /* Réduire encore la largeur du texte */
         top: 10em;
       }
 
       .testimonial.active p1 {
         font-size: 5vw; /* Agrandir encore plus la taille de la police sur les très petits écrans */
         width: 90%; /* Réduire encore la largeur du texte */
         top: 9em;
       }
     
       .testimonial.active p2 {
         font-size: 5vw;
       }
     }
 /*fin section4*/
 

/* ================================
   Footer - Barre en bas du site
   ================================ */
   .footer {
    background-color: #222;
    color: white;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.footer-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Infos de contact */
.footer-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-info .material-icons {
    font-size: 20px;
    vertical-align: middle;
    color: #00aced;
}

/* Réseaux sociaux */
.footer-social {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social img {
    width: 24px;
    height: 24px;
}

/* Copyright */
.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.7;
}

/* =========== Media Queries =========== */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-info, .footer-social {
        margin-bottom: 10px;
    }

    .footer-social {
        justify-content: center;
    }
}


