

body{
  user-select: none;
}
/* ############### CAROUSEL ####################### */
#titreCarousel{
  text-align: center;
  font-size: 40px;
  background-color: #f0f0f0;
  margin: 1% 20%;
}
#barreCarousel{
  margin-top: 7%;
}
#carouselExampleControls{
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 6px solid white; /* Bordure noire de 2 pixels d'épaisseur */
  border-radius: 2px; /* Optionnel :  coins arrondis pour la bordure */
  margin-top: 40%;
  margin: 0 auto; /* Centrer le carrousel */
  margin-bottom: 10%;
  width: 60%;
}
#carouselExampleControls img {
  height: 400px; /* Ajustez cette valeur selon vos besoins */
  width: 40%;
}
#carouselExampleControls .downOfCarouselImage {
  padding-top: 0.5%;
  margin-top: 0%;
  background-color: black;
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement si nécessaire */
  height: 100%; /* Assurez-vous qu'il occupe tout l'espace disponible */
}

#carouselExampleControls .downOfCarouselImage a {
  margin: 0% ;
  padding: 1% 10%; /* Modifie la taille du bouton selon tes besoins */
  border: 1px solid #353535; /* Utilise border au lieu de border-color */
  background-color: white;
  color: grey;
  text-align: center; /* Assure-toi que le texte est centré dans le bouton */
  transition: background-color 0.3s ease, color 0.8s ease;
}
#carouselExampleControls .downOfCarouselImage a:hover{
  
  background-color: rgb(237, 237, 237);
  color:rgb(54, 54, 54);
}
.carousel-control-next,
.carousel-control-prev {
    opacity: 1 !important; /* Assure que l'opacité est toujours à 1, même au survol */
    background-color: transparent; /* Optionnel : rend le fond transparent si nécessaire */
}

/* Empêche les changements d'opacité au survol */
.carousel-control-next:hover,
.carousel-control-prev:hover {
    opacity: 1 !important; /* Assure que l'opacité reste à 1 lorsqu'on survole */
    background-color: transparent; /* Optionnel : garde le fond transparent au survol */
}
#carouselExampleControls .backGroundArrow {
  background-color: rgb(57, 57, 57);
  padding-top: 3%;
  opacity: 90%;
}
#carouselExampleControls .backGroundArrow:hover {
  background-color: rgb(77, 77, 77);
  padding-top: 3%;
  opacity: 90%;
}


/* #################### */

@keyframes fleche_move {
0% {
  transform: translateY(0%);
  opacity: 0;
}
50%{
  transform: translateY(20%);
  opacity: 1;
}
100% {
  transform: translateY(0%);
  opacity: 0;
}
}
.fleche_bas{
position: fixed;
margin-left: 47.5%;
font-size: 100px;
color: #a9a9a9;
text-align: center;
margin-top: -1%;
padding-top: 0%;
animation: fleche_move 3s infinite;
}



/* ######### LES LANGUAGES DE PROGRAMMATIONS############# */
#programmation{
  
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  margin: 0% 5%;
  margin-top: 15%;
  background-color: #f0f0f0;
}
#programmation #lieuLangage{
  margin: 3% 10%;
}
#programmation #lieuLangage .titre{
text-align: center;
width: 100%;
padding: 2% 8%;
background-color: #f0f0f0;
}
#programmation #lieuLangage .contenu{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; 
}
#programmation #lieuLangage .nom{
  text-align: center;
  width: 100%;
  background-color: white;
  border: 2px solid grey; /* Bordure noire de 2 pixels d'épaisseur */
  border-radius: 0px; /* Optionnel :  coins arrondis pour la bordure */
}

/* ############## POURCENTAGE #################### */

#pourcentage .lignePourcentage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2%;
}

/* Styles pour le cercle de progression */
.progress-circle {
  cursor: default;
  margin: 0% 5%;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: conic-gradient(
      grey calc(var(--progress) * 1%), /* Couleur du contour du cercle */
      #d3d3d3 calc(var(--progress) * 1%) /* Partie non remplie */
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 24px;
  color: #333;
  font-weight: bold;
}

/* Cercle vide au centre pour créer l'effet de contour */
.progress-circle::before {
  content: '';
  width: 90%;
  height: 90%;
  background-color: white; /* Couleur du centre du cercle */
  transition: background-color 0.5s ease; /* animation de changement de couleur */
  border-radius: 50%;
  position: absolute;
}

.progress-circle:hover::before {
  background-color: #e3e3e3;
}

/* Texte au centre du cercle */
.progress-circle span {
  position: relative;
  z-index: 1;
}
  
.progress-circle::after  {
  content: attr(data-percentage) '%'; /* Utilise l'attribut data-percentage pour afficher le pourcentage */
  position: absolute;
  bottom: 20px; /* Positionne le texte en dessous de l'élément */
  left: 50%;
  transform: translateX(-50%); /* Centre le texte horizontalement */
  font-size: 14px; /* Taille du texte */
  color: #333; /* Couleur du texte */
  opacity: 0; /* Texte invisible par défaut */
  transition: opacity 0.3s ease; /* Transition pour l'opacité */
}

.progress-circle:hover::after {
  opacity: 1; /* Rends le texte visible au survol */
}

.numberPourcentage {
  position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: inline-block; /* Assure que l'élément se comporte comme un bloc en ligne */
}

/* ############################################# */
#tpProjets {
  margin-bottom: 20%;
}
#projets {
  background-color: #f0f0f0;
  width: 70%;
  height: auto; /* On laisse la hauteur se définir automatiquement en fonction du contenu */
  padding: 2% 0; /* Ajoute un peu de marge en haut et en bas */

  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 320px;
}
#projets #teteProjets{
  margin-top: 1%;
  display: flex;
}
#projets #teteProjets h1 {
  text-align: center;
  width: 40%;
  font-size: 20px;
}
.barreTitreProjet {
  width: 92%;            /* Prend toute la largeur disponible */
  height: 2px;            /* Hauteur fine pour la barre (tu peux ajuster cette valeur) */
  background-color: gray;  /* Couleur de la barre */
  margin: 20px 4%; 
}


.annee {
  margin: 0% 0%; /* Ajuste le margin pour centrer les conteneurs */
  display: flex;
  flex-wrap: wrap; /* Permet à plusieurs conteneurs de passer à la ligne si nécessaire */
  justify-content: center; /* Centre les conteneurs sur la ligne */
}
.annee h3 {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 2%;
  background-color: white;
  margin: 0% 10%;
}

.conteneurProjet {
  cursor: pointer;
  text-decoration: none;
  color: black;
  text-align: right;

  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  width: 40%; /* Taille uniforme des projets */
  height: 300px; /* Hauteur augmentée pour mieux afficher le contenu */
  margin: 2%; /* Espacement entre les projets */
  border: 7px solid white;

  display: flex;
  flex-direction: column; /* Contenu aligné en colonne */
  justify-content: flex-start; /* Alignement du contenu en haut */
  align-items: center;
  position: relative;
  overflow: hidden; /* Évite tout débordement */
}
.conteneurProjet img {
  width: 100%;
  height: 100%; /* Occupe 70% du conteneur */
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
.conteneurProjet img:hover {
  opacity: 1;
}


.conteneurProjet::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: height 0.3s ease, background-color 0.3s ease;
}
.conteneurProjet:hover::before {
  height: 80%;
  background-color: rgba(0, 0, 0, 0.7);
}

.conteneurProjet .titreProjet {
  width: 100%;
  background-color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
}
.conteneurProjet .descProjet {
  position: absolute;
  top: 50%; /* Centré verticalement */
  left: 50%;
  transform: translate(-50%, -50%); /* Centrage parfait */
  width: 80%;
  text-align: center;
  color: white;
  font-size: 1em;
  font-weight: bold;
  padding: 10px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.conteneurProjet:hover .descProjet {
  opacity: 1; /* Texte visible au survol */
}

/* ######################## */


/* Filtre zone */
.invisible {
  display: none;
}
#filter {
  display: flex;
  justify-content: center; /* Centre les éléments horizontalement */
  gap: 1%; /* Augmente l'espace entre les éléments */
  flex-wrap: wrap; /* Permet aux éléments de se replier sur plusieurs lignes si nécessaire */
  margin: 2% 0%; /* Marge autour du conteneur */
}

#filter div {
  display: flex;
  align-items: center; /* Centre les éléments (les cases et les labels) verticalement */
  padding: 5px 10px; /* Ajoute de l'espace autour des éléments */
  border: 2px solid #ddd; /* Bordure légère autour de chaque case à cocher */
  border-radius: 30px; /* Bordure arrondie */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Ombre légère autour de chaque case */
  transition: background-color 0.3s, transform 0.3s, color 0.3s; /* Animation fluide au survol */
  cursor: pointer; /* Change le curseur pour indiquer que c'est cliquable */
}

.active{
  background-color: #505050 !important;
  color: white !important;
}

#filter div:not(.active) {
  background-color: #f9f9f9; /* Couleur de fond claire */
  color: black;
}

#filter div:hover {
  background-color: #e0e0e0; /* Changement de couleur au survol */
  transform: scale(1.05); /* Agrandissement léger au survol */
  color: black; /* Change la couleur du texte au survol */
}

input[type="checkbox"] {
  margin-right: 8px; /* Espace entre la case à cocher et son label */
  transform: scale(1.2); /* Agrandit légèrement les cases à cocher */
  cursor: pointer; /* Change le curseur pour indiquer que c'est cliquable */
  display: none; /* Masque la case à cocher, elle est contrôlée par la div */
}

label {
  font-size: 70%; /* Taille du texte du label */
  font-weight: 500; /* Gras mais pas trop épais */
  cursor: pointer; /* Change le curseur pour indiquer que c'est cliquable */
  user-select: none; /* Empêche la sélection du texte */
  transition: color 0.3s; /* Transition de couleur pour le label */
}

input[type="checkbox"]:checked + label {
  font-weight: 700; /* Met le texte du label en gras quand la case est cochée */
}







.tag-filtre {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 10%;
  display: flex;
  gap: 10px; /* Espacement entre les éléments */
  justify-content: center; /* Aligne les éléments horizontalement au centre */
  align-items: center;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
}

.tag-filtre li {
  background-color: white;
  color: black;
  padding: 1% 3%;
  border-radius: 20%;
  display: inline;
}


/* ############################## */

#langage, #grandsProjets {
display: flex;
padding: 4%;
width: 100%;
text-align: center;
z-index: 9999;
}
.barreProjet {
margin-top: 1%;
background-color: #111827;
width: 300px;
height: 1px;
}
#langage .titre, #grandsProjets .titre {
letter-spacing: 3px;
font-weight: normal;
font-size: 15px;
margin-left: 2%;
}
#langage .desc, #grandsProjets .desc {
font-style: italic;
font-weight: 100;
margin-left: 5%;
}

/* ########################### */

.fleche {
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.3s ease;
  display: inline-block;
  margin-left: 10px;
}
.fleche.bas {
  transform: rotate(90deg); /* Flèche vers le bas */
}
.fleche.haut {
  transform: rotate(-90deg); /* Flèche vers le haut */
}

/* ########################### */

.scroll-progress {
z-index: 9998;
position: fixed;
top: 0;
left: 0;
width: 0; /* Commencez avec une largeur de 0 */
height: 4px; /* Hauteur de la barre de progression */
background-color: #353535; /* Couleur de la barre */
transition: width 0.1s ease; /* Animation de la largeur */
}



/* ######################### */

article {
opacity: 0;
transition: opacity 1.5s, transform 1.5s;
}
article.visible {
opacity: 1;
transform: translateY(-15%);
} 

/* ############# ADAPTATION DE L'IMAGE FORMAT TELEPHONE ############### */

@media (max-width: 600px) {
  
  #carouselExampleControls{
    display: none;
  }
  #titreCarousel{
    width: 100%;
    margin: 0%;
    margin-top:22%;
    margin-bottom: 10%;
  }

  #langage {
    display: none;
  }
  #tpProjets {
    display: none;
  }
  .fleche_bas{
    display: none;
  }

  #langage .desc{
    display: none;
  }
  #grandsProjets{
    display: none;
  }

  #projets {
    width: 100%;
    margin: 0%;
    margin-top: 15%;
  }
  #projets .barreTitreProjet{
    display: none;
  }
  #projets #teteProjets h1{
    margin: 3% 0%;
    text-align: center;
    width: 100%;
  }

  .annee h3{
    width: 100%;
    margin: 0%;
  }
  .conteneurProjet{
    width: 100%;
  }
  #projet2024 a{
    margin: 4%;
  }
  #projet2024 a .titreProjet{
    font-size: 70%;
  }

  .progress-circle{
    font-size: 80%;
  }
  .progress-circle {
    margin: 0% 5%;
    width: 60px;
    height: 60px;}
    /* Cercle vide au centre pour créer l'effet de contour */
  .progress-circle::before {
    height: 0px;
  }
  .progress-circle:hover::before {
    background-color: white;
  }
  .progress-circle:hover::after {
    opacity: 0; /* Rends le texte visible au survol */
  }
  article.visible {
    opacity: 1;
    transform: translateY(0%);
  } 





  .barreProjet {
    margin-top: 2.5%;
    width: 50px;
    margin-bottom: 25%;
    margin-right: 2%;
  }

    /* ####################################### */

    #programmation{
      border: 2px solid black;
      margin: 5% 0%;
      background-color: #f0f0f0;
    }
    #programmation #lieuLangage{
      margin: 3% 0%;
    }
    
    #programmation #lieuLangage .contenu{
      display: none;
    }
}