* {
    margin: 0;
    font-family: var(--font);
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--rose);
    color: var(--noir);
}

::-webkit-scrollbar {
    display: none;
}

.dm-sans {
    font-family: "DM Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

:root {
    --noir: #242424;
    /* --blanc: #F8F6F3; */
    --blanc: #FFF;
    --rose: #FF9293;
    --jaune: #EEFF04;
    --gris: #ECECEC;
    --font: "DM Sans";
    --h1-size: 48px
}

body {
    display: flex;
}

#home button {
    width: fit-content;
}

/* CSS BOUTON  */

/* From Uiverse.io by doniaskima */
.button,
.button *,
.button :after,
.button :before,
.button:after,
.buttonbutton:before {
    border: 0 solid;
    box-sizing: border-box;
}

.button:disabled {
    cursor: default;
}

.button:-moz-focusring {
    outline: auto;
}

.button svg {
    display: block;
    vertical-align: middle;
}

.button [hidden] {
    display: none;
}

.button {
    background-color: var(--noir);
    color: var(--blanc);
    border: 3px solid var(--noir);
    border-radius: 999px;
    box-sizing: border-box;
    display: block;
    font-weight: 900;
    overflow: hidden;
    padding: 1.2rem 3rem;
    position: relative;
    text-transform: uppercase;
}

.button .original {
    background: var(--blanc);
    color: var(--noir);
    display: grid;
    inset: 0;
    place-content: center;
    position: absolute;
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1);
}

.button:hover .original {
    transform: translateY(100%);
}

.button .letters {
    display: inline-flex;
}

.button span {
    opacity: 0;
    transform: translateY(-15px);
    transition: transform 0.2s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.2s;
}

.button span:nth-child(2n) {
    transform: translateY(15px);
}

.button:hover span {
    opacity: 1;
    transform: translateY(0);
}

.button:hover span:nth-child(2) {
    transition-delay: 0.1s;
}

.button:hover span:nth-child(3) {
    transition-delay: 0.1s;
}

.button:hover span:nth-child(4) {
    transition-delay: 0.2s;
}

.button3:hover span:nth-child(5) {
    transition-delay: 0.3s;
}

.button:hover span:nth-child(6) {
    transition-delay: 0.4s;
}

.button:hover span:nth-child(7) {
    transition-delay: 0.5s;
}

.button:hover span:nth-child(8) {
    transition-delay: 0.6s;
}

.button:hover span:nth-child(9) {
    transition-delay: 0.7s;
}

.button:hover span:nth-child(10) {
    transition-delay: 0.8s;
}

.button:hover span:nth-child(11) {
    transition-delay: 0.9s;
}

.button:hover span:nth-child(12) {
    transition-delay: 0.10s;
}

.button:hover span:nth-child(13) {
    transition-delay: 0.11s;
}

#overlay-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Couleur sombre avec transparence */
    z-index: 99;
    /* Sous le menu mais au-dessus du contenu */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


/* VERSION DESKTOP */

@media (min-width: 481px) {
    #mobile {
        display: none;
    }

    /* HEADER */

    header {
        display: flex;
        position: absolute !important;
        top: 0 !important;
        height: 100vh;
        z-index: 100;
        background-color: var(--blanc);
        border-right: 2px solid var(--gris)
    }

    .header-slide {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100vh;
        width: 5vw;
    }

    header ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        list-style-type: none;
        margin: 0 20px;
    }

    header ul a {
        color: var(--noir);
        text-decoration: none;
        text-transform: uppercase;
        margin-bottom: 3vw;
        font-size: 48px;
        font-weight: 600;
        transition: 0.3s ease-in;
    }

    header ul a:hover {
        transition: 0.3s ease-in;
        text-decoration: line-through;
    }

    header img {
        margin: 20px;
        width: 30px;
        transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    #home-link:hover {
        /* width: 25px;
    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1); */
    }

    .hidden {
        margin: 0;
        padding: 0;
        max-width: 0;
        opacity: 0;
        transform: translateX(-100%);
        visibility: hidden;
        overflow: hidden;
        /* Empêche le contenu de dépasser */
        transition: max-width 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    }

    .visible {
        max-width: 500px;
        /* Ajuste cette valeur à la largeur maximale souhaitée */
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        overflow: hidden;
        transition: max-width 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    }


    #menu-icon {
        cursor: pointer;
        padding: 20px;
    }

    #menu-icon div {
        margin: 5px 0;
        width: 7px;
        height: 7px;
        background-color: black;
        border-radius: 100%;
    }

    .slide {
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #home {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background: var(--blanc);

    }

    h1 {
        font-size: var(--h1-size);
    }

    h2 {
        margin-bottom: 5vw;
        text-transform: uppercase;
        font-size: 50px;
        font-weight: 600;
        letter-spacing: 0.3rem;
    }

    h3 {
        font-size: 35px;
        text-transform: uppercase;
        margin-bottom: 3vw;
        letter-spacing: 0.3rem;
    }

    h4 {
        font-size: 22px;
        text-transform: uppercase;
    }

    p {
        font-size: 18px;
    }

    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        /* Couleur sombre avec transparence */
        z-index: 99;
        /* Sous le menu mais au-dessus du contenu */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    /* Calque visible */
    #overlay.visible-overlay {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .outer-wrapper {
        padding-top: 7vw;
        width: 100vh;
        height: 93vw;
        transform: rotate(-90deg) translateX(-100vh);
        transform-origin: top left;
        overflow-y: scroll;
        overflow-x: hidden;
        position: absolute;
        scrollbar-width: none;
        -ms-overflow-style: style;
    }

    .wrapper {
        /* margin-top: 10%; */
        height: 100%;
        display: flex;
        justify-content: space-around;
        width: 400vw;
        transform: rotate(90deg) translateY(-100vh);
        transform-origin: top left;
    }


    #intro {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 50%;
        height: 400px;
    }

    #container-photo {
        width: 40%;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: space-evenly;
        height: 100vh;
    }

    #container-photo img {
        width: 90%;
    }


    #dev {
        font-size: 35px;
    }

    #description {
        width: 600px;
    }

    #scroll-link a {
        color: #000;
    }

    #scroll-link img {
        width: 30px;
    }

    #scroll-link {
        display: flex;
        position: relative;
        align-items: center;
        transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);

    }

    #scroll-link:hover {
        transform: translateX(15px);
        transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
    }

    .button a {
        color: white;
    }

    /* SECTION A PROPOS */

    #a-propos h4 {
        text-transform: none;
        margin-bottom: 2%;
    }

    .slide#a-propos {
        display: flex;
        justify-content: normal;
        align-items: normal;
    }

    #a-propos-gauche {
        display: flex;
        flex-direction: column;
        margin-top: 5vh;
        width: 50vw;
    }

    #photo-a-propos {
        margin-bottom: 3vw;
        width: 100%;
        height: 300px;
        background-color: gray;
        background-image: url('../images/banniere.webp');
        background-size: cover;
        background-position: center;
        border-radius: 50px;
    }

    #p-a-propos {
        margin-bottom: 3vw;
    }

    #cv-a-propos {
        margin-bottom: 3vw;
    }

    #container-button {
        display: flex;
        justify-content: space-evenly;
    }

    #container-button .button {
        width: 40%;
    }

    #container-competence div,
    #container-point div {
        margin-bottom: 5%;
    }

    #container-competence,
    #container-xp {
        margin-bottom: 3vw;
    }

    #a-propos-droite {
        margin-top: 5vh;
        padding-right: 2%;
        margin-right: 2%;
        width: 35vw;
        height: 90vh;
        overflow: scroll;
        overflow-y: auto;
        /* Barre de défilement verticale visible */
        overflow-x: hidden;
        /* Pas de défilement horizontal */
    }

    hr {
        margin: auto 50px;
        height: 90%;
    }

    .sous-titre {
        font-size: 16px;
        color: #24242483;
        margin-bottom: 2%;
    }

    #a-propos-droite::-webkit-scrollbar {
        display: block;
        width: 10px;
        /* Largeur de la barre */
    }

    #a-propos-droite::-webkit-scrollbar-thumb {
        background-color: var(--noir);
        /* Couleur de l'arrière-plan */
        border-radius: 5px;
        /* Arrondi */
    }

    #a-propos-droite::-webkit-scrollbar-track {
        background-color: var(--gris);
        /* Couleur de la barre */
    }

    /* MES PROJETS */

    .slide-projet {
        width: 100vw;
        height: 100vh;
        display: flex;
        align-items: center;
        background-size: cover;
        background-position: center;
        flex-direction: row;
        justify-content: space-evenly;
    }

    #projets {
        background-color: var(--noir);
    }

    #projets h2 {
        color: var(--blanc);
    }

    .wrapper-projet {
        width: 90%;
        height: 90vh;
        background-color: #111;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        border-radius: 50px;
    }

    .slider-projet {
        width: 100%;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .slide-projet {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        color: white;
        font-size: 50px;
        display: flex;
        align-items: center;
    }

    .text {
        position: relative;
        color: white;
        z-index: 10;
        opacity: 1;
        transform: translateY(-50px);
        margin-bottom: 5vh;
        text-transform: uppercase;
        font-size: 48px;
        font-weight: 600;
        letter-spacing: 0.3rem;
    }


    .nav {
        position: absolute;
        bottom: 80px;
        left: 100px;
        display: flex;
        flex-direction: row;
        z-index: 10;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: left;
        margin-right: 30px;
        cursor: pointer;
        width: 15vw;
    }

    .nav-item span {
        color: var(--jaune);
        opacity: 0.5;
        transition: opacity 0.5s ease;
        width: 15vw;
    }


    .nav-item.active span {
        opacity: 1;
    }

    .nav-bar {
        width: 15vw;
        /* Set this to the width you want for the nav bar */
        height: 5px;
        background-color: #eeff0476;
        /* Default background color */
        position: relative;
        overflow: hidden;
        opacity: 0.5;
        /* Default opacity */
        transition: opacity 0.5s ease, width 0.5s ease;
        /* Transition for width and opacity */
        margin-top: 20px;
    }

    .nav-bar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: var(--jaune);
        /* Set background-color for the loading bar */
        transform: translateX(-100%);
        /* Start outside the bar */
        opacity: 1;
        /* Default opacity for loading animation */
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    /* Activate loading animation for the active bar */
    .nav-item.active .nav-bar::before {
        transform: translateX(0);
        /* Fill the bar from left to right */
        opacity: 1;
        /* Set full opacity when active */
    }

    /* Full opacity for the active bar */
    .nav-item.active .nav-bar {
        opacity: 1;
        /* Full opacity for active bar */
    }

    /* Hover-Effekt */
    .nav-item:hover .nav-bar {
        background-color: var(--jaune);
        opacity: 1;
    }

    .arrow {
        fill: white;
        width: 60px;
        height: 60px;
    }

    #dataviz {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
            url("images/captures/dataviz.png");
        background-size: cover;
        background-position: center;
        border-radius: 50px;
    }

    #life {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
            url("images/captures/life.png");
        background-size: cover;
        background-position: center;
        border-radius: 50px;
    }

    #projet img {
        width: 40%;
        transition: box-shadow 0.1s, transform 0.1s;
    }

    #projet img:hover {
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.6);
    }

    .container-text-projet {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 40%;
    }

    .container-text-projet h3 {
        margin-bottom: 1%;
        text-transform: none;
        letter-spacing: normal;
    }

    /* CONTACT */

    .slide#contact {
        display: block;
        margin-top: 5vh;
    }

    #container-flex-contact {
        display: flex;
    }

    #gauche-contact,
    #droite-contact {
        width: 45%;
    }

    #droite-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #illustration-contact {
        width: 80%;
    }

    #contact form {
        width: 100%;
        border: 1px solid #D9D9D9;
        border-radius: 50px;
        margin-top: 10%;
        padding: 30px;
        box-shadow: 0px 1px 3px 0 rgba(0, 0, 0, 0.125);
        box-sizing: border-box;
        background: var(--noir);
    }

    #contact form input,
    #contact form textarea {
        border: 1px solid #D9D9D9;
        font-size: 20px;
        font-weight: 400;
        color: var(--jaune);
        padding: 20px;
        background-color: var(--noir);
    }

    #contact input::placeholder,
    #contact textarea::placeholder {
        font-size: 20px;
        font-weight: 200;
        color: var(--blanc);
    }

    .form-div {
        margin-bottom: 5%;
        display: flex;
        flex-direction: column;
    }

    label {
        margin-bottom: 1%;
        font-size: 20px;
        font-weight: 500;
        color: var(--blanc);
    }

    form .button .original {
        border: 3px solid var(--blanc);
    }

    #message-contact {
        font-size: 22px;
        text-align: center;
    }

    #link-contact {
        display: flex;
    }

    .link-contact img {
        width: 20px;
    }

    .link-contact {
        display: flex;
    }

    .link-contact {
        color: var(--noir);
    }

    .link-contact:hover {
        color: var(--rose);
    }

    #container-link-contact {
        margin-top: 30px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        gap: 10px;
        justify-content: space-evenly;
    }
}

/* PAGE DE CHARGEMENT */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--noir);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--jaune);
    font-size: 48px;
    z-index: 1000;
    transition: transform 1s ease-in-out;
}

#percentage {
    font-size: 48px;
    font-weight: bold;
}

/* RESPONSIVE HEADER */

@media (max-width: 480px) {

    * {
        /* outline: 1px solid red; */
        box-sizing: border-box;
    }

    html,
    body {
        overflow-x: hidden;
    }

    h1 {
        margin-top: 50px;
        font-size: 40px;
        text-transform: uppercase;
        letter-spacing: 0.2rem;
    }

    h2 {
        margin-bottom: 5vw;
        font-size: 50px;
        text-transform: uppercase;
        text-align: center;
    }

    h3 {
        font-size: 30px;
        text-transform: uppercase;
        text-align: center;
        margin-bottom: 20px;
    }

    p {
        font-size: 20px;
    }

    body {
        width: 100vw;
    }

    #desktop {
        display: none;
    }

    header {
        bottom: 2vh;
        left: 5vw;
        position: fixed;
        display: flex;
        width: 50px;
        height: 50px;

        align-items: center;
        justify-content: center;
        z-index: 100;
        border: 1px solid #D9D9D9;
        background-color: white;
        border-radius: 40px;
    }

    .header-open {
        width: 90vw;
        height: 35vh;
        border: 1px solid #b2b2b2;
    }

    header ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        list-style-type: none;
        padding: 0;
    }

    header ul a {
        color: var(--noir);
        text-decoration: none;
        text-transform: uppercase;
        margin-bottom: 3vw;
        font-size: 40px;
        font-weight: 600;
        transition: 0.3s ease-in;
    }

    header ul a:hover {
        transition: 0.3s ease-in;
        text-decoration: line-through;
    }

    /* Calque visible */
    #overlay-mobile.visible-overlay {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    .hidden {
        display: none;
    }

    /* PAGE ACCUEIL */

    #home {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 0 30px;
        height: 100vh;
    }

    #home-link {
        display: none;
    }

    #menu-icon-mobile {
        display: flex;
        gap: 5px;
    }

    
    .header-open #menu-icon-mobile {
        /* visible */
        position: absolute;
        top: 3vh;
        left: 5vw;
    }

    #menu-icon-mobile div {
        margin: 5px 0;
        width: 7px;
        height: 7px;
        background-color: black;
        border-radius: 100%;
    }

    .visible { /*menu-mobile*/

    }

    #dev {
        font-size: 32px;
        font-weight: 400;
    }

    img {
        width: 50px;
    }

    #container-photo {
        display: flex;
        justify-content: center;
    }

    #container-photo img {
        width: 80%;
    }

    #home p {
        text-align: justify;
    }

    #home button {
        margin: 0 auto;
    }

    /* A PROPOS  */

    #a-propos {
        margin: 30px 0;
        text-align: justify;
    }

    #a-propos button {
        margin: 20px auto
    }

    #descr-a-propos {
        margin: 0 30px;
    }

    #photo-a-propos {
        margin-bottom: 3vw;
        width: 100%;
        height: 300px;
        background-color: gray;
        background-image: url('../images/banniere.webp');
        background-size: cover;
        background-position: center;
        border-radius: 50px;
    }

    #carousel-competence {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }

    .carousel-cell {
        width: 70%;
        height: 410px;
        margin-right: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
        border: 3px solid #cecece;
        padding: 10px;
    }

    .carousel-cell:hover {
        transform: scale(1.05);
        /* Zoom léger */
    }

    #a-propos h4 {
        margin-bottom: 7px;
        font-size: 18px;
    }

    #descr-a-propos,
    #competence-a-propos,
    #xp-a-propos,
    #point-a-propos {
        margin-bottom: 60px;
    }

    .sous-titre {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        /* color: var(--noir);
        opacity: 0.7; */
        margin-bottom: 10px;
    }

    .p-competence {
        background: var(--noir);
        color: var(--blanc);
        padding: 0 5px;
        border-radius: 20px;
        font-size: 15px;
    }

    #carousel-competence p {
        font-size: 18px;
    }

    #xp-a-propos {
        margin: 0 30px 60px 30px;
    }

    #xp-a-propos p {
        font-size: 20px;
    }

    .justify {
        text-align: justify;
    }

    #point-a-propos {
        text-align: center;
    }

    /* PROJETS */

    #projets {
        margin: 0 30px;
    }

    #projets h3 {
        text-align: left;
        font-size: 23px;
        margin-bottom: 5px
    }

    h3 img {
        width: 15px;
    }

    #container-projets {
        margin: auto;
        display: flex;
        gap: 10px;
        flex-direction: column;

    }

    .projet {
        background-position: center;
        background-size: cover;
    }

    .projet a {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .projet img {
        width: 100%;
        border-radius: 30px;
    }

    .projet-item {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .projet-item p {
        text-align: justify;
    }

    /* CONTACT */

    #contact {
        margin: 60px 30px;
    }

    #contact form {
        width: 100%;
        border-radius: 50px;
        margin-top: 10%;
        padding: 30px;
        box-sizing: border-box;
        background: var(--noir);
    }

    #contact form input,
    #contact form textarea {
        border-radius: 20px;
        border: 1px solid var(--blanc);
        font-size: 20px;
        font-weight: 400;
        color: var(--jaune);
        padding: 20px;
        background-color: var(--noir);
    }

    #contact input::placeholder,
    #contact textarea::placeholder {
        font-size: 20px;
        font-weight: 200;
        color: var(--blanc);
    }

    .form-div {
        margin-bottom: 5%;
        display: flex;
        flex-direction: column;
    }

    label {
        margin-bottom: 1%;
        font-size: 20px;
        font-weight: 500;
        color: var(--blanc);
    }

    .button {
        /* border: 1px solid var(--rose); */
        background-color: var(--noir);
    }

    .button .original {
        color: white;
        background-color: var(--noir);
    }

    form .button .original {
        background-color: var(--blanc);
        color: var(--noir);
    }

    #message-contact {
        font-size: 22px;
        text-align: center;
    }

    #link-contact {
        display: flex;
    }

    .link-contact img {
        width: 20px;
    }

    .link-contact {
        display: flex;
    }

    .link-contact {
        color: var(--noir);
    }

    .link-contact:hover {
        color: var(--rose);
    }

    #container-link-contact {
        margin-top: 30px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        gap: 10px;
        justify-content: space-evenly;
    }

    */
}