body {
  font-family: 'Silkscreen', sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  color: white;
  overflow-x: hidden;
  background: #292828;

}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(75%);
}

/* Barre de navigation */

.progress_bar {
  height: 10px;
  background:linear-gradient( 135deg,#ffffff,#cdd3d2,#0099ff)!important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  z-index: 1100;
  transition: width 0.2s ease; 
}


h2 {
  vertical-align: center;
  text-align: center;
}
.menu a 
{
  text-decoration: none;
  color: white;
 }

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #00BAF0;
  background: linear-gradient(to left, rgba(69, 203, 244), rgba(13, 10, 168));
  color: #FFF;
  height: 50px;
  padding: 1em;
  position: relative;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-toggle {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


/*bouton mode claire et sombre dans la bar de nav*/
.switch{
  width: 100px;
  height: 50px;
  position: relative;
  border-radius: 50px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: 0.3s ease;
}

.switch:after {
  content: "";
  width: 45px;
  height: 45px;
  position: absolute;
  top: 3px;
  left: 4px;
  background: linear-gradient(180deg,rgb(255, 32, 2),rgb(255, 187, 0));
  border-radius: 180px ;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  transition: left 0.3s; 
}


.inputswitch{
  width:0;
  height:0;
  visibility: hidden;
}

input:checked + label:after{
  left: 50px;
  transform: translateX(-2%);
  background:linear-gradient(180deg,rgb(93, 4, 167), rgb(4, 213, 250) );
}

@media (max-width: 700px) {
  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #005091;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #0d25ff;
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #9e0000;
  }
}

header {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
}

#dynamic-text {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Section des bulles */
.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}

.image-bubble {
  border-radius: 50%;
  overflow: hidden;
  width: 150px; /* Rétrécissement des bulles */
  height: 150px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.image-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.image-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.images {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Section Biographie et Compétences */
.bio-and-skills {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 50px auto;
  padding: 40px;
  width: 80%;
  max-width: 1300px;
  gap: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.biography,
.skills {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
}

.biography h2,
.skills h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff9721;
}

.biography p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
}

.skill-bar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
  margin-top: 15px;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2121, #f2ff3b);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.skill p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Texte de la cohésion d'équipe */
.team-cohesion {
  text-align: center;
  margin-top: 50px;
}

.team-cohesion h2 {
  font-size: 2.5rem;
  color: #da8921;
  margin-bottom: 20px;
}

.team-cohesion p {
  font-size: 1.2rem;
  margin-top: 10px;
  line-height: 1.8;
  font-weight: 400;
}


.alternance-section {
  background-color: #333;
  padding: 50px 0;
  text-align: center;
  border-top: 5px solid #21daff;
}

.alternance-section .title {
  font-size: 2.5rem;
  color: #fff;
}

.alternance-section .highlight {
  color: #ffcc00;
}

.grid {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.card {
  background-color: #444;
  padding: 25px;
  width: 260px;
  text-align: center;
  border-radius: 12px;
  color: white;
  box-shadow: 0 5px 15px rgba(255, 254, 254, 0.685);
  transition: all 0.3s ease;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card p {
  font-size: 1.2rem;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 248, 248, 0.781);
}

.badge {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #21daff;
  color: white;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Curseur personnalisé */
#custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  background-color: #7423dd;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.2s ease;
}

#custom-cursor:active {
  background-color: #3b45ff;
}

/* Animations */
@keyframes hoverScale {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

.image-bubble:hover {
  animation: hoverScale 0.3s ease-in-out forwards;
}

.image-container {
  position: relative;
  display: inline-block;
  width: 150px; /* Largeur de l'image */
  height: 150px; /* Hauteur de l'image */
}

.image-container img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px; /* Facultatif, pour des bords arrondis */
}

.image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.6); /* Couche sombre transparente */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px; /* Correspond au bord arrondi de l'images */
  text-align:center;
}

.image-container:hover .overlay {
  opacity: 1;
}

.image-bubble,.image-container 
{
  width:150px;
  height:150px;
}
.logo {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  height: 70px; /* Ajuste la taille du logo si nécessaire */
  width: auto;
}
