body {
    background-color: rgb(34, 34, 34, 0.842);
  font-family: Arial, sans-serif;
    margin: 0px;
  padding: 0px;
} 
.page2-body {
    background-color: rgba(34, 34, 34, 0.842);

}
.page-title {
  color: rgb(204, 201, 201);
    text-align: center;
    font-size: 36px;
    margin-bottom: 25px;
    font-family: comic sans ms,;

}
  
.presentation {  /* Bloc de présentation */
    font-weight: bold;
    background-color: rgba(189, 189, 189, 0.11);    
    color: rgb(207, 207, 207);
    border: 1px solid rgb(97, 97, 97);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}
.codes {
    font-weight: bold;
    background-color: rgba(189, 189, 189, 0.13);    
    color: rgb(207, 207, 207);
    border: 1px solid rgb(97, 97, 97);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}
.objectifs {
    font-weight: bold; 
    background-color: rgba(189, 189, 189, 0.11);      
    color: rgb(207, 207, 207);
    border: 1px solid rgb(97, 97, 97);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}

/* Blocs en flexbox */

.flex-container { /*Parent*/
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

    /* Blocs enfants  page 1 */

.presentation,
.codes,
.objectifs {
  width: 320px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgb(97,97,97);

  display: flex;
  flex-direction: column; /* ← important */
}

/*Tablettes */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: row;
        align-items: center;
    }

    .presentation,
    .codes,
    .objectifs {
        width: 45%; /* <-- Ajuste la largeur pour les tablettes */
    }
}
/* Smartphones */
@media (max-width: 480px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .presentation,
    .codes,
    .objectifs {
        width: 30%; /* <-- Ajuste la largeur pour les téléphones */
    }
}
#menu {
  position: fixed;
  color: rgb(41, 41, 41);
  background-color: transparent;
  top: 20px;
  left: 20px;
  border: none;
  cursor: pointer;
  z-index: 999; /* Assure que le bouton est au-dessus de tout */
}
#menu:hover .bar {
  background-color: rgb(24, 24, 24);
  color: rgb(5, 5, 5);
  
}
    
.bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px auto;
  background-color: rgb(255, 255, 255);
    transition: all 0.6s ease;
}
#menu.active .bar:nth-child(1) {
  background-color: rgb(187, 186, 186);
  color: rgb(44, 44, 44);
    transform: rotate(-45deg) translate(-5px, 6px);
}
#menu.active .bar:nth-child(2) {
    opacity: 0; /* Cache la barre du milieu */
}
#menu.active .bar:nth-child(3) {
  background-color: rgb(187, 186, 186);
  color: rgb(44, 44, 44);
    transform: rotate(45deg) translate(-5px, -6px);

}
.pf-header {
    width: 100%;
  min-height: auto;
  display: flex;
  justify-content: center; /* centre horizontal */
  align-items: flex-start; /* colle en haut */
  padding: 10px;
  background: linear-gradient(to right, rgb(25, 25, 58), rgb(46, 5, 46));
}

    
                    /* Styles pour la page 2 */

.page2-header {
  width: 100%;
  min-height: auto;
  display: flex;
  justify-content: center; /* centre horizontal */
  align-items: flex-start; /* colle en haut */
  padding: 10px;
  background: linear-gradient(to right, rgb(25, 25, 58), rgb(46, 5, 46));




}
.page2-title {
    color: rgb(204, 201, 201);
    text-align: center;
    font-size: 36px;
    margin-bottom: 25px;
    font-family: comic sans ms,;
}

                    /* Styles pour les blocs de la page 2 */
.container-projet
{    
    display: flex;
    justify-content: center;
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
    flex-wrap: wrap;
    gap: 20px;

}
.projet {
    font-weight: bold;
    background-color: rgba(107, 104, 104, 0.027);    
    color: rgb(207, 206, 209);
    border: 1px solid rgb(97, 97, 97);
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
    object-fit: contain;
    
    
}
.projet:hover {
    transform: scale(1.05); /* Agrandit légèrement le bloc au survol */
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); /* Ajoute une ombre au survol */
    transition: all 0.3s ease; /* Transition pour l'effet de survol */
}

/*Tablettes */
@media (max-width: 768px) {
    .container-projet {
        flex-direction: row;
        align-items: center;
    }

    .projet {
        width: 45%; /* <-- Ajuste la largeur pour les tablettes */
    }
}
/* Smartphones */
@media (max-width: 480px) {
    .container-projet {
        flex-direction: column;
        align-items: center;
    }

    .projet {
        width: 100%; /* <-- Ajuste la largeur pour les téléphones toujours metre 100% */
    }
}

                        /* Navbar pour toute les pages */
.drawer {
  background: linear-gradient(
    to bottom,
    rgb(40,40,40),
    rgb(25,25,25));
  position: fixed;
    z-index: 300;
  padding: 20px;
  height: 100vh;
  box-sizing: border-box; /* <-- avec ça tu peut quand même garder padding pour pas voir le drawer */
  top: 0;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); /* Ajoute une ombre au survol */
  border-radius: 1%;
  transform: translateX(-250px); /* Cache la drawer à gauche */
  width: 250px;
  height: 100%;
  background-color: rgb(63, 63, 63);
  transition: transform 0.3s ease; /* Animation pour l'ouverture/fermeture */
}
.drawer.open {
  transform: translateX(0); /* Affiche la drawer */
  transition: transform 0.8s ease; /* Animation pour l'ouverture/fermeture */}

.overlay {
    backdrop-filter: blur(4px); /* Flou de l'arrière-plan */
  top: 0;
  z-index: 200;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  opacity: 0; /* Masqué par défaut */
  transition: opacity 0.3s ease;
    pointer-events: none; /* Empêche les clics sur l'overlay lorsqu'il est masqué */
}
.overlay.active {
  opacity: 1; /* Affiche l'overlay */
    pointer-events: auto; /* Permet les clics sur l'overlay lorsqu'il est actif */
}
.title-drawer {
    text-align: center;
  color: white;
  font-size: 22px;
  margin-bottom: 30px;
}

.page {
  display: block;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  animation-delay: 0.1s;
  animation-duration: 0.3s;
}
