#Langages {
  margin: 50px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  h3 {
    font-size: clamp(3vw, 5vw, 5vw);
  }

  h4 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    font-size: clamp(1.25vw, 2.5vw, 2.5vw);
    color: var(--primary-color);
  }

  p {
    font-size: clamp(1.75vw, 1vw, 1vw);
    color: var(--lgg-competences-color);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
  }

  img {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: flex-end;
  }

  span {
    display: flex;
    align-items: flex-end;
    font-size: clamp(3vw, 1.5vw, 1.5vw);
    justify-content: flex-end;
    color: var(--font-color-sky-blue);
  }

  .container-lgg {
    padding: 20px 20px;
    width: clamp(80%, 60%, 60%);
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 6vw;
    background-color: var(--bg-projet);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0px 0px 15px var(--primary-color);
  }

  a{
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    outline:none;
  }


  .info {
    display: flex;
    gap: 10px;
    justify-content: space-between;

    div {
      display: flex;
      justify-content: space-between;
      gap: 1vw;
    }
  }

  .bar-progression {
    width: 100%;
    height: 20px;
    background-color: var(--bg-projet);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--lgg-bar);
  }

  .html {
    width: clamp(90%, 70%, 70%);
    margin-bottom: 20px;

    .interieur-bar-progression {
      height: 100%;
      width: 87%;
      background: var(--lgg-gradient);
      transition: width 1s ease-in-out;
      border-radius: 0 20px 20px 0px;
      background-size: 200% 200%;
      animation: gradient-shift 8s ease alternate infinite;
      overflow: hidden;
    }
  }

  .CSS {
    width: clamp(90%, 70%, 70%);
    margin-bottom: 20px;
    .interieur-bar-progression {
      height: 100%;
      width: 80%;
      background: var(--lgg-gradient);
      transition: width 1s ease-in-out;
      border-radius: 0 20px 20px 0px;
      background-size: 200% 200%;
      animation: gradient-shift 8s ease alternate infinite;
      overflow: hidden;
    }
  }

  .JS {
    width: clamp(90%, 70%, 70%);
    margin-bottom: 20px;
    .interieur-bar-progression {
      height: 100%;
      width: 67%;
      background: var(--lgg-gradient);
      transition: width 1s ease-in-out;
      border-radius: 0 20px 20px 0px;
      background-size: 200% 200%;
      animation: gradient-shift 8s ease alternate infinite;
      overflow: hidden;
    }
  }

  .CPP {
    width: clamp(90%, 70%, 70%);
    margin-bottom: 20px;
    .interieur-bar-progression {
      height: 100%;
      width: 8%;
      background: var(--lgg-gradient);
      transition: width 1s ease-in-out;
      border-radius: 0 20px 20px 0px;
      background-size: 200% 200%;
      animation: gradient-shift 8s ease alternate infinite;
      overflow: hidden;
      
    }
  }

  .CMS {
    width: clamp(90%, 70%, 70%);
    margin-bottom: 20px;
    .interieur-bar-progression {
      height: 100%;
      width: 73%;
      background: var(--lgg-gradient);
      transition: width 1s ease-in-out;
      border-radius: 0 20px 20px 0px;
      background-size: 200% 100%;
      animation: gradient-shift 8s ease alternate infinite;
      overflow: hidden;
    }
  }
}


@media screen and (max-width: 500px) {
  #Langages {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;

    h3 {
      font-size: clamp(3vw, 6vw, 6vw);
    }

    .container-lgg {
      padding: 20px 20px;
      width: 80%;
    }

    .bar-progression {
      width: 100%;
      gap: 10px;
    }

    .info {
      gap: 0px;

      div {
        gap: 5px;
      }

      span {
        font-size: clamp(2vw, 3vw, 3vw);
      }
    }

    .info h4 {
      font-size: clamp(1.25vw, 3vw, 3vw);
    }

    .info p {
      font-size: clamp(1.25vw, 2vw, 2vw);
    }

    .html {
      width: 95%;
    }

    .CSS {
      width: 95%;
    }

    .JS {
      width: 95%;
    }

    .CPP {
      width: 95%;
    }

    .CMS {
      width: 95%;
    }
  }
}

@media screen and (min-width: 1200px) {
  #Langages {
    margin: 50px 0;
    width: 100%;


    h3 {
      font-size: 4rem;
    }

    .container-lgg {
      padding: 20px 20px;
      width: clamp(80%, 60%, 60%);
      width: 60%;
      
    }

    .bar-progression {
      width: 100%;
      height: 35px;
    }

    .info {
      gap: 10px;

      div {
        gap: 1vw;
      }

      span {
        font-size: 2rem;
      }
    }

    .info h4 {
      font-size: clamp(1.2vw, 2rem, 2rem);
    }

    .info p {
      font-size: clamp(0.6vw, 1rem, 1rem);
    }

    .html {
      width: clamp(90%, 70%, 70%);
      margin: 30px 0;
    }

    .CSS {
      width: clamp(90%, 70%, 70%);
      margin-bottom: 30px;
    }

    .JS {
      width: clamp(90%, 70%, 70%);
      margin-bottom: 30px;
    }

    .CPP {
      width: clamp(90%, 70%, 70%);
      margin-bottom: 30px;
    }

    .CMS {
      width: clamp(90%, 70%, 70%);
      margin-bottom: 30px;
    }
  }
}


@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}