/**** Reset ****/

*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    background-color:#0b1b2c; 
    color: #ffffff;
}

header, footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 1rem;
}

h1 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.main__content {
    flex-grow: 1;
    max-width: 1240px;
    width: calc(100% - 2rem);
    padding: 0 1rem;
}

.progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: auto;
}

.progress__item {
    padding: 0.5rem 0;
}

.progress__title {
    padding: 1rem 0;
}

.progress__bar {
    position: relative;
    width: 30rem;
    height: 8px;
    border-radius: 2rem;
    background-color: rgb(222, 222, 222);
}

.bar {
    border-radius: inherit;
    background-image: linear-gradient(90deg, #5b4dda, #6546ee, #575afc);
    position: absolute;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 1.5s cubic-bezier(0.1, 0.42, 0.85, 1);
}

.bar::after {
    content: attr(data-text);
    position: absolute;
    right: 0;
    top: -3rem;
    width: 4rem;
    height: 2rem;
    background-color: rgb(41, 61, 102);
    font-size: 18px;
    line-height: 2rem;
    text-align: center;
    border-radius: 0.1rem;
    animation: text 0.4s ease-in-out;
    font-weight: bold;
}

.bar::before {
    content: "";
    position: absolute;
    right: 1rem;
    top: -1.2rem;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-top: 10px solid rgb(41, 61, 102);
    animation: text 0.4s ease-in-out;
}

/**** Animation text ****/

@keyframes text {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0.7;
    }
    100% {
      opacity: 1;
    }
}

.circle__box {
    height: auto;
    position: relative;
    margin: 5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    font-size: 1rem;
    text-align: center;
}
 
.skill {
    position: relative;
}

svg {
    width: 200px;
    height: 200px;
    transform: rotate(309deg);
    overflow: initial;
    transform-origin: center;
}

circle {
    stroke-width: 15px;
    fill: none;
    transition: all 0.5s ease;
}

circle:nth-child(1) {
    stroke: #ffffff;
}

.progress__circle {
    stroke: var(--stroke);
    position: relative;
    z-index: 1;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
    stroke-dasharray: var(--stroke-dasharray);
    stroke-dashoffset: var(--stroke-dasharray);
    animation: progress var(--animation-time) ease-in forwards;
    --webkit-stroke-position: inside;
    stroke-linecap: round;
}

/**** Animation progress ****/

@keyframes progress {
    to {
      stroke-dashoffset: var(--stroke-dashoffset);
    }
}

.skill .data__progress {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: bold;
}

footer span {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/**** Responsive design ****/

@media screen and (max-width: 768px) {
  .progress__bar {
    width: 25rem;
  }
}

@media screen and (max-width: 440px) {
    .progress__bar {
      width: 300px;
    }
}

@media screen and (max-width: 340px) {
    .progress__bar {
      width: 275px;
    }
}