/* 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: -2%;
    }
  
    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*/

/* Ajout d'une classe pour déplacer tout le contenu sans toucher au body */
.main-content {
    margin-top: 300px; /* Ajuste cette valeur pour faire descendre tout le contenu sous le header */
}

 
/* Title Styles for Specific Sections */
.scratch-section h2, .robotique-section h2, .app-section h2, .python-section h2, .roblox-section h2, .minecraft-section h2 {
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    font-size: 1.8rem;
    color: #333;
}

.scratch-section h3, .robotique-section h3, .app-section h3, .python-section h3, .roblox-section h3, .minecraft-section h3 {
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    font-size: 1.4rem;
    color: #333;
}

/* Ajustement de la hauteur globale des sections */
.scratch-section, .robotique-section, .app-section, .python-section, .roblox-section, .minecraft-section {
  padding: 5px 10px; /* Réduction du padding */
  margin: 25px 0; /* Réduction de la marge pour éviter trop d’espace vertical */
  border-radius: 8px;
  border-width: 3px; /* Légère réduction de l’épaisseur de la bordure */
  border-style: solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90%;
  margin-left: 5%;
   
}

/* Specific Colors for Sections */
.scratch-section {
    border-color: #FBC02D; /* Jaune */
}

.robotique-section {
    border-color: #1976D2; /* Bleu */
}

.app-section {
    border-color: #8E24AA; /* Violet */
}

.python-section {
    border-color: #D32F2F; /* Rouge */
}

.roblox-section {
    border-color: #757575; /* Gris */
}

.minecraft-section {
    border-color: #388E3C; /* Vert */
}

/* Hover Effects on Sections */
.scratch-section:hover, .robotique-section:hover, .app-section:hover, .python-section:hover, .roblox-section:hover, .minecraft-section:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Paragraph Styles */
.scratch-section p, .robotique-section p, .app-section p, .python-section p, .roblox-section p, .minecraft-section p {
    font-size: 0.95rem;
    color: #666;
    margin: 1px 0;
    padding: 3px;
    border: 2px solid;
    border-radius: 5px;
    line-height: 1.5;
}

/* Specific Paragraph Border Colors */
.scratch-section p {
    border-color: #FBC02D; /* Jaune */
}

.robotique-section p {
    border-color: #1976D2; /* Bleu */
}

.app-section p {
    border-color: #8E24AA; /* Violet */
}

.python-section p {
    border-color: #D32F2F; /* Rouge */
}

.roblox-section p {
    border-color: #757575; /* Gris */
}

.minecraft-section p {
    border-color: #388E3C; /* Vert */
}

/* Video Section */
.scratch-video-container, .robotique-video-container, .app-video-container, .python-video-container, .roblox-video-container, .minecraft-video-container {
    text-align: center;
    margin-bottom: 15px;
    height:20%;
}

.scratch-video-container img, .robotique-video-container img, .app-video-container img, .python-video-container img, .roblox-video-container img, .minecraft-video-container img {
    width: 25%;
    max-width: 550px;
    height: auto;
    border-radius: 8px;
}

/* Description */
.scratch-description, .robotique-description, .app-description, .python-description, .roblox-description, .minecraft-description {
    text-align: center;
    margin: 0px;
}

/* Synthese Section */
.scratch-synthese, .robotique-synthese, .app-synthese, .python-synthese, .roblox-synthese, .minecraft-synthese {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 15px;
    
}

.scratch-icon, .robotique-icon, .app-icon, .python-icon, .roblox-icon, .minecraft-icon {
    width: 350px;
    text-align: center;
    margin: 5px;
}

.material-icons {
    font-size: 30px;
    color: #333;
}

.scratch-icon p, .robotique-icon p, .app-icon p, .python-icon p, .roblox-icon p, .minecraft-icon p {
    margin-top: 8px;
    color: #333;
}

/* Button */
.reservation-btn {
    background-color: #000000;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px auto;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.reservation-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 820px) {
    .scratch-synthese, .robotique-synthese, .app-synthese, .python-synthese, .roblox-synthese, .minecraft-synthese {
        flex-direction: column;
        align-items: center;
    }

    .scratch-icon, .robotique-icon, .app-icon, .python-icon, .roblox-icon, .minecraft-icon {
        width: 100%;
        margin: 5px 0;
    }

    .scratch-video-container img, .robotique-video-container img, .app-video-container img, .python-video-container img, .roblox-video-container img, .minecraft-video-container img {
        width: 50%;
    }

    .reservation-btn {
        width: 90%;
    }
}

 
/* ================================
   Section 4 - Témoignages (Base)
   ================================ */
   .section4 {
    width: 100%;
    padding: 40px 20px;
    margin-top: 10px;
    background: url('img/enfants.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
  }
  
  .boxed {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .flex2 {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .w404 h1 {
    font-family: "Roman", serif;
    font-size: 3em;
    margin-bottom: 20px;
  }
  
  .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;
    }
}
