/* Version Mobile */
* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
     background-color: #2b2b2b
}

.bg-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 15%;
    z-index: 99;
    background-color: rgba(128, 128, 128, 0.63);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    padding: 10px;
    min-height: 15vh;
    position: relative;
    font-size: 1.5em;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s, font-size 0.3s;
}

a:hover {
    color: rgb(255, 255, 255);
    font-size: 1.05em;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5em;
}

nav ul li a {
    display: none;
}

/* Sections */
#competences, #presentation, #motivationn, .sect-cv1, #contact {
    border: 1px solid black;
    border-radius: 16px;
    box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.6);
    transition: transform 0.5s ease;
    font-size: 1.3em;
    background: rgba(116, 114, 112, 0.15);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); 
border-radius: 15px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
color: white;
}

#competences {
    width: 80%;
    margin: 100px 50px 50px;
}

#competences:hover {
    transform: scale(1.1);
}

.drapeau1 {
    display: flex;
    justify-content: space-evenly;
    margin: 0 auto 50px;
}

.language1 {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
}

.languagejs {
    margin-left: -60px;
}

.languagelua {
    margin-left: -100px;
    margin-top: 15px;
    width: 25%;
}

.compt {
    text-align: center;
}

#presentation {
width: 50%;
margin: 0 70px auto auto;
padding: 32px;
}

#presentation:hover {
    transform: scale(1.1);
}

.sect-cv1 {
    background-color: rgb(0, 119, 255);
    width: 40%;
    padding: 5px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.3em;
}

.sect-cv1 a {
    color: white;
    text-decoration: none;
}

#motivationn {
    width: 50%;
    margin: 100px 50px 50px;
    padding: 32px;
}

#motivationn:hover {
    transform: scale(1.1);
}

.texte {
    font-size: 1.5em;
}

.motivation {
    text-align: center;
}

#contact {
    width: 33%;
    margin: 0 70px 80px auto;
    text-align: center;
    transition: transform 0.5s ease;
    padding-bottom: 50px;
}

#contact:hover {
    transform: scale(1.03);
}

#contact a {
    color: rgb(253, 253, 253);
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: white;
}

.form {
    width: 91%;
    height: 5vh;
    padding: 5px;
    border-radius: 16px;
    margin-top: 15px;
}

.moncontact {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

i {
    padding: 5px;
}

footer {
    background-color: rgba(128, 128, 128, 0.452);
    padding: 10px;
    text-align: center;
    font-size: 1em;
}


.language-container-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.language-container {
    position: relative;
    width: 150px;
    height: 150px;
    background-color: #c4c0c0;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.language-container::before {
    content: "";
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 5px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.language-container:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--circle-color);
}

.language-container:hover::before {
    border-color: var(--circle-color);
    box-shadow: 0 0 15px var(--circle-color);
}

.level-high {
    --circle-color: #1e90ff; /* bleu */
}

.level-medium {
    --circle-color: #ff8c00; /* orange */
}

.level-low {
    --circle-color: #dc143c; /* rouge */
}

.language-container[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--circle-color);
    color: rgb(255, 255, 255);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.language-container::after {
    opacity: 0;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: white;
  padding: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
    padding: 12px 18px;
}

.scroll-top:hover {
 background: #33333359;
}

/* Version Tablette */
@media screen and (max-width: 767px) {

    #competences {
        width: 90%;
        margin: 30px auto 50px;
    }

    #competences:hover {
        transform: scale(1.02);
    }

    #presentation {
        width: 90%;
        margin: 30px auto 50px 20px;
    }

    #presentation:hover {
        transform: scale(1.02);
    }

    #motivationn {
        width: 90%;
        margin: 30px auto 50px;
    }

    #motivationn:hover {
        transform: scale(1.02);
    }

    #contact {
        width: 90%;
        margin: 30px auto 30px;
    }

    #contact:hover {
        transform: scale(1.02);
    }

    .sect-cv1 {
        width: 90%;
        margin: 30px auto 50px;
    }
}

/* Version Desktop */
@media screen and (min-width: 1024px) {

    nav {
        height: 11.2%;
        padding: 10px;
        background-color: rgba(128, 128, 128, 0.63);
    }

    header {
        min-height: 10vh;
    }

    nav ul li a {
        display: block;
    }

    nav ul {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        font-size: 1.3em;
        padding: 0;
        margin: 0;
    }

    #presentation {
        width: 50%;
        min-height: 400px;
        font-size: 1.5em;
        margin: 20px 70px 0 auto;
        top: 400px;
    }

    #presentation:hover {
        transform: scale(1.03);
    }

    .sect-cv1 {
        width: 30%;
        margin: 0 auto 50px;
    }

    #competences {
        width: 70%;
        margin: 100px 50px 50px;
        transition: transform 0.5s ease;
    }

    #competences:hover {
        transform: scale(1.03);
    }

    .drapeau1,
    .language1 {
        width: 50%;
        margin: 0 auto 50px;
    }

    #motivationn {
        width: 50%;
        min-height: 600px;
        font-size: 1.5em;
        margin: 100px 50px 50px;
    }

    #motivationn:hover {
        transform: scale(1.05);
    }

    #contact {
        width: 33%;
        font-size: 1.5em;
        margin: 0 70px 80px auto;
        display: grid;
        align-items: center;
    }

    footer {
        font-size: 1.5em;
    }
}
