html {
  background-image: conic-gradient(from 180deg, #75e6da, #053b50);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #053b50;
  background-attachment: fixed;
  scroll-behavior: smooth;
  font-family: 'Alpino', sans-serif;
}

.navBar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    padding: 15px 25px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 1000;
    overflow: hidden;
}

.navBar nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.lienNav {
    position: relative;
    color: rgba(0,0,0,0.9);
    font-size: 18px;
    text-decoration: none;
    letter-spacing: 0.5px;
    font-weight: 300;
    transition: 0.3s ease;
}

/* effet lumineux au survol */
.lienNav:hover {
    color: black;
}

/* petit soulignement animé (glow subtil) */
.lienNav::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: rgba(0,0,0,0.8);
    transition: 0.3s ease;
}

.lienNav:hover::after {
    width: 100%;
}

section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    z-index: 1000;
    overflow: hidden;
    margin: auto;
    margin-top: 5em;
    scroll-margin-top: 80px;
}

#presentation {
    width: 50%;
    height: 55em;
}

#experiences {
    width: 50%;
    height: 55em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 20em 20em;
    grid-gap: 1em;
    align-content: center;
}

#competences {
    width: 50%;
    height: 10em;
    display: flex;
}

#projets {
    width: 50%;
    height: 37em;
    margin-bottom: 4em;
}

.presentation-container {
    padding-top: 1em;
}

.photo-profil img {
    width: 180px;
    height: 200px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.photo-profil{
    margin: auto;
    text-align: center;
    margin-bottom: 1em;
}

.card {
    width: 40em;
    height: 32em;
    border-radius: 18px;
    background: rgb(158, 198, 225);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: black;
    margin: auto;
    padding: 2em;
    text-align: justify;
    text-justify: inter-word;
}

.exp-card {
  /* width: 18em; */
  /* height: 22em; */
  perspective: 1000px;
  margin: 1em;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.999s;
}

.exp-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-front {
  background-color: rgba(125, 132, 137, 0.2);
  color: black;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  justify-content: center;
  font-size: 24px;
  transform: rotateY(0deg);
}

.card-back {
  background-color: #3faa96;
  color: #fff;
  display: flex;
  align-items: center;
  border: 1px solid #318878;
  border-radius: 10px;
  justify-content: center;
  font-size: 24px;
  transform: rotateY(180deg);
}

.card-back p {
    padding: 1em;
}

.logo {
    width: fit-content;
    margin: auto;
    cursor: pointer;
}

.tooltiptext {
  background-color: #000000b3;
  color: #fffdfd;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s;
  display: inline-block;
}

.logo:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.logo .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border-width: 8px;
  border-style: solid;
  border-color: #28282817 transparent transparent transparent;
  transform: translateX(-50%);
}

.todoapp, .moviematch {
    text-align: center;
    background: rgba(125, 132, 137, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    width: 35em;
    margin: auto;
    margin-top: 3em;
}

.moviematch b {
    background-color: rgba(255, 68, 0, 0.597);
    border-radius: 18px;
    padding: 0.2em;
}

@media (max-width: 900px){
    .navBar {
        display: none;
    }

    #presentation, #experiences, #competences, #projets {
        width: 20em;
    }

    #presentation {
        height: fit-content;
    }

    .card {
        width: fit-content;
        height: fit-content;
        margin: 1em;
    }

    #experiences {
        height: fit-content;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 20em 20em 20em 20em;
        grid-gap: 1em;
        align-content: center;
    }

    .exp-card{
    }

    #competences {
        height: fit-content;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 5em 5em 5em;
        grid-gap: 2em;
        align-content: center;
    }


    #html {
        grid-column: 1/2;
    }
    
    #css {
        grid-column: 2/4;
    }

    #javascript {
        grid-column: 1/2;
    }

    #nodejs {
        grid-column: 2/3;
    }

    #mongodb {
        grid-column: 3/4;
    }

    #php {
        grid-column: 1/2;
    }

    #mysql {
        grid-column: 2/4;
    }

    .logo {
        margin: 1em;
    }

    #projets {
        height: fit-content;
    }

    .todoapp, .moviematch {
        width: fit-content;
        height: fit-content;
        margin: 1em;
    }
}