@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

:root {
    --background: #F9F9F9;
    --background-dot: #a5a5a5;
    --texte: rgb(20, 20, 20);
    --gray: rgba(0, 0, 0, 0.7);
    --light: rgba(0, 0, 0, 0.2);
    --danger: rgb(212, 61, 61);
}

html, body {
    max-width: 50vw;
    overflow-x: hidden;
}

html, body {
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    overscroll-behavior: none;
}


body {
    background: var(--background);
    background-image: radial-gradient(var(--background-dot) 1px, transparent 0);
    background-size: 40px 40px;
    margin: 0;
    font-style: normal;
    text-shadow: 1px 1px 0px var(--background);
    color: var(--texte);
}

* {
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    margin: 0;
}

.body_blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(2px);
}

.content_container {
    position: fixed;
    width: 700px;
    height: calc(100vh - 200px);
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 100px;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content_container::-webkit-scrollbar {
    display: none;
}

.top_section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top_avatar_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.top_avatar {
    width: 100px;
    border-radius: 50px;
    border-bottom: 2px solid #b3b3b3;
    -webkit-box-shadow: inset 0px -10px 34px -22px var(--texte);
    box-shadow: inset 0px -10px 34px -22px var(--texte);
    image-rendering: auto;
}

.ft-xxl {
    font-size: 26px;
}

.ft-xl {
    font-size: 18px;
}

.color-desc {
    color: var(--gray);
}

.link_section {
    margin-top: 24px;
}

.link_section_btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    font-size: large;
    margin-right: 6px;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    position: relative;
    cursor: pointer;
    position: relative;
    color: var(--texte);
}

.link_section_btn i {
    color: var(--texte);
}

.link_section_btn label {
    display: flex;
    opacity: 0;
    position: absolute;
    top: 35px;
    left: 50%;
    white-space: nowrap;
    transform: translate(-50%, 0);
    font-size: small;
    text-shadow: 0px 3px 30px var(--texte, #999);
    background: white;
    pointer-events: none;
    padding: 6px 12px;
    border-radius: 50px;
    transition: opacity 0.2s, transform 0.2s;
}

.link_section_btn:hover label {
    opacity: 1;
    pointer-events: auto;
    animation: labelDown 0.2s;
}

@keyframes labelDown {
    from {
        opacity: 0;
        transform: translate(-50%, -18px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0px);
    }
}

.navigation_section {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navigation_link {
    font-size: smaller;
    padding: 6px 12px;
    text-shadow: none;
    transition: 0.2s;
    border-radius: 50px;
    cursor: pointer;
}

.navigation_link:hover {
    background-color: var(--texte);
    color: white;
    opacity: 50%;
    transition: 0.2s;
}

.navigation_link.active {
    background-color: var(--texte);
    color: white;
    cursor: default;
    opacity: 100% !important;
    transition: 0.2s;
}

.content_section {
    display: none !important;
}

.content_section.active {
    display: flex !important;
}

.content_section_container {
    height: auto;
}

#content_section_COMPETENCES {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 1.55%;
    align-items: center;
}

.competence_item {
    width: 32%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    justify-content: center;
    flex-direction: column;
    padding: 6px 0px;
}

.competence_item img {
    height: 50px;
    padding: 6px;
    background: white;
    border-radius: 12px;
    box-shadow: 2px 2px var(--light);
}

.projet_item {
    display: flex;
    justify-content: space-between;
    border-radius: 12px;
    position: relative;
    transition: 0.2s;
}

.projet_item:hover {
    transform: scale(0.98);
    -webkit-box-shadow: 0px 0px 35px 5px rgba(0,0,0,0.2);
    box-shadow: 0px 0px 35px 5px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.projet_item .link_indicator {
    display: none;
}

.projet_item:hover .link_indicator {
    display: flex;
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--texte);
    text-shadow: none;
    background: white;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    opacity: 0%;
    animation: showFull 0.3s forwards;
}

@keyframes showFull {
  to {
    opacity: 100%;
  }
}

.projet_title_desc_container {
    width: 52.5%;
    height: 100%;
}

.projet_item img {
    width: 45%;
    object-fit: cover;
    -webkit-box-shadow: 0px 0px 35px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 35px 5px rgba(0, 0, 0, 0.2);
    border-radius: 12px 0px;
}

.projet_title {
    padding: 12px;
    font-weight: bold;
}

.projet_desc {
    padding: 0px 12px 0px 12px;
    font-size: smaller;
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 24px;
    min-height: 145px;
}

#content_section_PROJETS {
    flex-direction: column;
    gap: 36px;
}

.experience_title {
    display: flex;
}

.experience_year {
    color: var(--gray);
    width: 20%;
    padding-right: 12px;
}

.experience_name {
    font-weight: bold;
}

.experience_description {
    font-size: smaller;
    line-height: 24px;
    text-align: justify;
    margin: 6px;
    margin-top: 12px;
}

#content_section_EXPERIENCES {
    flex-direction: column;
    gap: 36px;
}

#content_section_CONTACT {
    flex-direction: column;
    gap: 24px;
}

.submit_mail_container {
    display: flex;
}

.form-control-compact {
    position: relative;
}

.form-control-compact label {
    position: absolute;
    font-size: smaller;
    top: -9px;
    left: 12px;
    background: white;
    padding: 0px 6px;
}

.form-control-compact input {
    width: 100%;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--light);
}

.form-control-compact textarea {
    width: 100%;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--light);
}

.submit_mail_container {
    display: flex;
    justify-content: flex-end;
}

.submit_mail_container button {
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--light);
    background: var(--background);
    color: var(--texte);
    cursor: pointer;
    transition: 0.2s;
}

.submit_mail_container button:hover {
    background: var(--light);
    transition: 0.2s;
}

.toast {
    text-shadow: none;
}

.form-control-compact.errors input {
    border: 1px solid var(--danger);
}

.form-control-compact.errors textarea {
    border: 1px solid var(--danger);
}

.fadeDown {
    animation: fadeDown 0.7s forwards;
    animation-delay: var(--delay, 0.6s);
    opacity: 0;
    transform: translateY(-50px);
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeUp {
    animation: fadeUp 0.7s forwards;
    animation-delay: var(--delay, 0.6s);
}

@keyframes fadeUp {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}


@media (max-width: 809px) {
    .content_container {
        width: 90%;
        padding: 50px 0px 150px 0px;
    }

    #content_section_PROJETS {
        gap: 24px;
    }

    .projet_item {
        flex-direction: column;
        align-items: center;
        border: 1px solid var(--light);
        padding-bottom: 12px;
    }

    .projet_title_desc_container {
        width: 100%;
    }

    .projet_item img {
        width: 90%;
    }

    .navigation_section {
        gap: 0;
    }

    .top_section {
        text-align: center;
    }

    .projet_desc {
        padding-bottom: 6px;
    }

    .experience_title {
        flex-direction: column;
        white-space: nowrap;
        gap: 6px;
    }

    .link_section  {
        display: flex;
        justify-content: center;
        gap: 6px;
        flex-direction: column;
        align-items: center;
    }

    .link_section_btn {
        width: 60%;
        display: flex;
        flex-direction: row;
        border: 1px solid var(--light);
        height: initial;
        align-items: center;
        border-radius: 12px;
        margin: 0;
        padding: 0;
    }

    .link_section_btn i {
        width: 15px;
    }

    .link_section_btn label {
        position: relative;
        opacity: 1;
        top: inherit;
        left: inherit;
        transform: none;
        background: none;
    }

    .link_section_btn:hover label {
        animation: none
    }

    .navigation_link {
        font-size: 9pt;
    }

    .experience_name {
        font-size: smaller;
        white-space: none;
    }
}
