@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:wght@800&family=Roboto:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Reenie+Beanie&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --font-basic: Arial, sans-serif;
    --font-title: "Roboto Mono", monospace;
    --background-color: #131313;
    --primary-color: #2b4cff;
    --card-background: #1e1e1e;
    --card-hover: #2b4cff;
}

* {
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
}

html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-title), sans-serif;
    font-size: 16px;
    color: #fff;
    background-color: var(--background-color);
    overflow-x: hidden !important;
}

.grecaptcha-badge {
    display: none !important;
}

a {
    text-decoration: none;
    color: #7c91d5;
}

a:hover {
    color: #a6b0d5;
}

a:active {
    color: #6577dd;
}

.bold {
    font-weight: bold;
}

canvas#neuro {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    pointer-events: none;
    filter: blur(10px);
    z-index: -999999;
    overflow: hidden;
}

.page {
    min-height: 100lvh;
    width: 100lvw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /*overflow-x: hidden;*/
}

.navbar-page {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100lvw;*/
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*align-items: center;*/
    /*padding: 1em 2em;*/
    min-height: unset !important;
    width: unset !important;
    display: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
    flex-direction: unset !important;
}

/* Styles pour le bouton de la navbar */
.navbar-toggle {
    display: none;
    position: fixed;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: white;
    z-index: 1000;
    cursor: pointer;
}

/* Styles pour le menu en plein écran */
.fullscreen-nav {
    /*display: none !important;*/
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    z-index: 999 !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

.mobile-device.fullscreen-nav a,
.mobile-device.fullscreen-nav:hover a {
    color: white !important;
    font-size: 2em !important;
    margin: 1em 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Afficher le bouton de la navbar sur les appareils mobiles */
.mobile-device .navbar-toggle {
    display: block;
    font-size: 3em;
}

.mobile-device {
    display: none;
}

.mobile-device.fullscreen-nav {
    display: flex;
}

.navbar-page > nav {
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    height: 40lvh;
    width: 100lvw;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
}

.navbar-page > nav > a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    /*margin: 1em 3em;*/
    transition: 0.2s;
    opacity: 0;
    visibility: hidden;
    font-family: var(--font-title);
}

.mobile-device:hover a {
    opacity: 0 !important;
    visibility: hidden !important;
    margin: 0 !important;
}

.mobile-device > a:hover {
    content: unset !important;
}

.mobile-device > a:hover::before {
    width: 0 !important;
    visibility: hidden !important;
}

.navbar-page > nav:hover a {
    opacity: 1;
    visibility: visible;
    margin: 3em;
}

.navbar-page > nav > a::before {
    content: "";
    position: absolute;
    bottom: -40%;
    left: 0;
    height: 2px;
    transition: width 0.2s ease-out;
    width: 0;
    background-color: #ffffff;
    visibility: hidden;
}

.navbar-page > nav > a:hover::before {
    width: 100%;
    transition: width 0.1s ease-out;
    visibility: visible;
}

.fixed-nav {
    position: fixed !important;
    height: 10lvh !important;
    backdrop-filter: blur(10px) !important;
    /*background-color: #FFFFFF01 !important;*/
    background-image: linear-gradient(#FFFFFF01, #FFFFFF01) !important;
    box-shadow: 0 0 1em #00000080 !important;
    border-bottom: 1px solid #FFFFFF10 !important;
    border-radius: 0 0 1em 1em !important;
}

.fixed-nav a {
    opacity: 1 !important;
    visibility: visible !important;
    margin: 3em !important;
}

.home-page {
    position: relative;
}

.home-page .background {
    height: 100lvh;
}

.home-page .background,
.home-page .background .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: default;
    width: 100lvw;
}

.background-subtitle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 1em;
}

h3 {
    font-family: var(--font-title);
    font-optical-sizing: auto;
    font-weight: 300;
    color: #BBB;
}

.home-page .background h1 {
    font-family: "Reenie Beanie", sans-serif;
    text-transform: uppercase;
    text-align: center;
    font-size: 15lvw;
    width: 100%;
    color: #fff;
    animation: flicker 3s infinite alternate;
}

.home-page .background .content .background-underscore {
    margin-left: 0.1em;
}

.fade {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100lvw;
    height: 300px;
    background: linear-gradient(180deg, transparent 0%, #131313 75%);
    z-index: -10000;
    overflow: hidden;
}

.title {
    margin: 5lvw;
}

.skills-page {
    padding: 10lvh 0;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15em;
    width: 70lvw;

}

.dev-web {
    margin-left: auto;
}

.card {
    cursor: default;
    position: relative;
    /*height: 100%;*/
    padding: 5em;
}

.card > .card-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 20em;
    height: 20em;
    z-index: -1000;
    transition: transform 0.5s ease-out;

}

.dev-web > .card-icon {
    left: auto;
    right: 0;

}

.card > .card-icon > img {
    filter: blur(15px) invert(1);
    opacity: 0.2;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.title-wrapper {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.dev-web > .title-wrapper {
    align-items: end;
}

.title-wrapper > h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    font-family: "Bebas Neue", Arial Black, sans-serif;
    line-height: .73em;
    font-size: min(7em, max(10lvw, 3em));
    /*font-size: 7em;*/
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.title-wrapper > h1 > span {
    display: inline-block;
}

.spin-animation {
    animation: spin-letter 0.4s forwards;
}

.dev-web > h3 {
    text-align: end;
}

.projects-page {
    margin-top: 30lvh;
}

.project {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: start;
    flex-direction: row;
    min-height: 400lvh;
}

.project > .illustration-container {
    height: 450lvh !important;
}

.project > .illustration-container,
.project > .description {
    height: 400lvh;
    position: relative;
    margin: 15em 0;
}

.project .illustration {
    position: sticky;
    top: 25lvh;
    right: 0;
    width: 40lvw;
    aspect-ratio: 1;
}

.project .illustration > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -20;
}

.project .illustration > video {
    position: absolute;
    top: 3%;
    left: 10.4%;
    width: 79.3%;
    height: auto;
    z-index: -10;
    border-radius: 3px;
}

.project > .description {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    width: 40lvw;
    padding: 0 1em;
}

.project > .description > .p {
    height: 80lvh;
    position: relative;
}

.project > .description > .p > p {
    position: sticky;
    top: 50lvh;
    font-weight: 300;
    text-align: justify;
    line-height: 1.5em;
}

.github-projects-page {
    min-height: unset !important;
    height: 30lvh !important;
    padding-bottom: 15rem;
}

.github-card {
    padding: 2rem;
    display: flex;
    align-items: center;
}

.github-card .card-icon img {
    width: 64px;
    height: 64px;
}

.github-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    flex-grow: 1;
}

.github-card .card-content a {
    margin-top: 1rem;
    margin-left: 5lvw;
    font-family: var(--font-title) !important;
}

.github-card .card-content p {
    color: #BBB;
    margin-left: 5lvw;
    margin-bottom: 1rem;
    line-height: 1.5rem;
}

.github-link svg {
    margin-left: 0.5rem;
}

.experience-page > ul {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 5em;
    width: 70lvw;
}

.experience-page > ul > li {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 1em;
    border-left: 1px solid #fff;
    padding: 1em 0 1em 1em;
}

.experience-page > ul > li::before {
    content: "";
    position: absolute;
    top: -1em;
    left: -0.125em;
    width: 0.25em;
    height: 0.25em;
    background-color: #fff;
    border-radius: 50%;
}

.experience-page > ul > li::after {
    content: "";
    position: absolute;
    bottom: -1em;
    left: -0.125em;
    width: 0.25em;
    height: 0.25em;
    background-color: #fff;
    border-radius: 50%;
}

.experience-page > ul > li > .list-element-heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 1em;
}

.contact-page {
    margin: 10em 0;
}

.contact-page input,
.contact-page textarea,
.contact-page button,
.github-link {
    color: white;
    font-family: var(--font-basic);
    background-color: #202020;
    outline: none;
    border: 1px solid #424242;
    padding: 1em;
    border-radius: 0.5em;
    font-size: 1em;
}

.contact-page input:hover,
.contact-page textarea:hover,
.contact-page button:hover,
.github-link:hover {
    background-color: #303030;
}

.contact-page textarea {
    resize: none;
    width: calc(100% - 2em);
    height: 15em;
}

.contact-page form {
    width: min(960px, 90lvw);
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.contact-page form > div {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    width: 100%;
}

.contact-page form > div > label,
.contact-page form > div > input {
    /*width: max(50%, 10em);*/
    width: 60%;
}

.contact-page label {
    font-weight: bold;
    margin: 2em 0 0.5em;
}

.contact-page button {
    margin-top: 2em;
    cursor: pointer;
    align-self: end;
}

.contact-page button:active,
.github-link:active {
    background-color: #050505;
}

.legal-page > h1,
.legal-page > h2 {
    width: 70lvw;
    margin: 1em 0;
}

.legal-page > h1 {
    font-size: 2em;
}

.legal-page > h2 {
    font-size: 1.5em;
}

.legal-page > p {
    width: 65lvw;
    text-align: justify;
}

.footer-page {
    padding: 2em 5em;
}

.footer-page > ul.footer-links {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    gap: 1em;

    list-style: none;
}

.footer-page > ul.footer-links > li {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1em;
}

.footer-page > ul.footer-links > li > img {
    width: 1.5em;
    height: 1.5em;
}