@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');
@font-face {
    font-family: 'makebond';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('https://fonts.cdnfonts.com/s/123939/Makebond-E46KW.woff') format('woff');
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #000;
    padding-top: 80px; 
}
nav{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items:center;
    z-index: 999;
    justify-content: space-between;
}
.logo{
    font-family: "makebond";
    font-size: 40px;
    margin-left: 20px;
    text-shadow: 5px 5px 5px #5F00D2;
    transition: all 1s;
}

ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    padding: 12px 30px;
    border: solid 1px #5F00D2;
    border-radius: 50px;
    box-shadow: 3px 3px 40px #5F00D2;
    background-color: #000;
}
li{
    list-style: none;
}
a{
    font-size: 18px; 
    text-decoration: none;
    color: #fff;
    font-family: System-ui; 
}
.mesLiens{
    font-weight: bold;
    color: #5e5e5e;
    transition: all .6s;
}
.mesLiens:hover{
    color: #fff;
}
#themeToggle{
    border: none;
    background: none;
    cursor: pointer;
}
.cv{
    border: solid 1px #5F00D2;
    border-radius: 15px;
    padding: 10px 20px;
    box-shadow: 3px 3px 40px #5F00D2;
    transition: all .5s;
    background-color: #000;
}
.cv:hover{
    background-color: #fff;
    color: #000;
}
.hamburger{
    display: none;
}
.liens{
    width: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 20px;
    
}
body button{
    color: #fff;
}
.hero{
    color: #fff;
    padding: 0 20px;
}
.nom{
    background: linear-gradient(to right, #5F00D2, #fff);
    -webkit-background-clip: text; 
    width: fit-content;
    min-width: calc(40% + 20px);
    background-clip: text;
    color: transparent;
    font-size: 45px;
    font-family: Arial, Helvetica, sans-serif;
}
.subtitle{
    background: linear-gradient(to right, #5F00D2, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 25px;
    margin-top: -25px;
    font-family: "Bungee", sans-serif;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #5F00D2; /* Curseur */
    width:0;
    animation: 
        typing 2s steps(30, end) forwards,
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 425px }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #5F00D2 }
}
.entree{
    width: 700px;
    margin: auto;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    animation: entrance 2s ease-in-out;
}
@keyframes entrance{
    0%{
        opacity: 0;
        transform: translateX(200px);
    }50%{
        opacity: .5;
    }100%{
        opacity: 1;
        transform: translateX(0px);
    }
}
.entree img{
    cursor: pointer;
    width: 220px;
    height: 285px;
    filter: grayscale(80%);
    margin-right: 50px;
    border-radius: 20px;
}
.entree img:hover{
    filter: none;
}
.entree p{
    font-size: 12px;
    border: none;
    font-family: "Bungee";
    letter-spacing: 1.5px;
    width: 60%;
    border-left: solid 2px #5F00D2;
    padding: 40px 50px;
    text-shadow: 1px 1px 1px #5F00D2;
}
.contact{
    margin-top: 100px; 
    color: #fff;
    font-family: "Bungee", sans-serif;
}
.contact h2{
    text-align: center;
     background: linear-gradient(to right, #5F00D2, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
form{
    width: 600px;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
form label{
    margin-left: 2px;
    cursor: pointer;
    transition: all 1s;
}
form label:hover{
    color: #5F00D2;
}
form input{
    margin-top: -5px;
    margin-bottom: 30px;
    border: none;
    color: #fff;
    font-size: 17px;
    background: transparent;
    border-bottom: solid 2px #5F00D2;  
    transition: all .2s;
}
form input:focus{
    outline: none;
    margin-top: 5px;
    border: solid 2px #5F00D2;
    padding: 10px;
}
form textarea{
    margin-top: -5px;
    margin-bottom: 30px;
    border: none;
    color: #fff;
    background: transparent;
    border-bottom: solid 2px #5F00D2;  
    resize: none;
    font-size: 17px;
    transition: all .2s;
}
form textarea:focus{
    outline: none;
    margin-top: 5px;
    border: 2px solid #5F00D2;
}
.div-soumission{
    text-align: right;
}
form button{
    width: fit-content;
    padding: 10px 20px;
    background: transparent;
    color: #fff;
    font-family: "bungee", sans-serif;
    border: solid 1px #5F00D2;
    border-radius: 15px;
    box-shadow: 1px 1px 10px #5F00D2;
    transition: all .5s;
    cursor: pointer;
}
form button:hover{
    background-color: #fff;
    color: #000;
}
input{
    font-family: system-ui;
}
#popUp{
    color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    font-family: "Bungee",sans-serif;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 330px;
    text-align: center;
    border: solid 2px #5F00D2;
    padding: 100px 70px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .9);
}
#popUp button{
    position: absolute;
    top: 0;
    right: 2%;
    cursor: pointer;
    font-size: 30px;
    color: #5F00D2;
    background: transparent;
    border: none;
}
.maitrise {
    width: 70%;
    margin: 10px auto;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.maitrise h2 {
    color: #fff;
    font-family: "Bungee",sans-serif;
    text-shadow: 5px 5px 5px #5F00D2;
    text-align: center;
    margin-bottom: 60px;
}

/* Flous gauche/droite */
.gauche, .droite {
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gauche {
    left: 0;
    background: linear-gradient(to right,rgba(0,0,0), transparent);
}

.droite {
    right: 0;
    background: linear-gradient(to left,rgba(0,0,0), transparent);
}

/* Animation icônes */
.icones {
    display: flex;
    gap: 0px;
    width: max-content;
    animation: defilement 15s linear infinite;
}

.icones i {
    font-size: 70px;
    color: #fff;
    margin: 0 30px;
}

/* Animation */
@keyframes defilement {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
footer{
    padding-top: 30px;
}
footer p{
    text-align: center;
    font-family: "Bungee";
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
}
/* mode clair */
/* ------------------- LIGHT MODE ------------------- */
body.light-mode {
    background-color: #fff;
}

/* Texte en clair */
body.light-mode nav .logo{
    color:#000;
    text-shadow: 5px 5px 5px #aaa;

}
body.light-mode nav,
body.light-mode .hero,
body.light-mode .contact,
body.light-mode .maitrise h2,
body.light-mode #popUp {
    color: #000;
}

/* Changer les couleurs de bordures, ombres, liens, etc. */
body.light-mode .nom,
body.light-mode .subtitle {
    background: linear-gradient(to right, #5F00D2, #000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode ul {
    border: 1px solid #000;
    box-shadow: 3px 3px 40px #000;
    background-color: #fff;
}

body.light-mode .mesLiens {
    color: #545353;
}
body.light-mode.menu-open .hamburger{
    color: #fff;
}
body.light-mode .mesLiens:hover {
    color: #000000;
}
body.light-mode .liens button,body.light-mode .liens a{
    color: #000;
}
body.light-mode .liens .cv{
    box-shadow: 3px 3px 10px #000;
    background-color: #fff;
}


body.light-mode .hero-text {
    color: #000;
    text-shadow: none;
}
body.light-mode .maitrise h2{
   text-shadow: 5px 5px 10px #aaa;

}
body.light-mode .cv,
body.light-mode form button {
    border: 1px solid #000;
    box-shadow: 1px 1px 10px #000;
    color: #000;
}

body.light-mode .cv:hover,
body.light-mode form button:hover {
    background-color: #000;
    color: #fff;
}
body.light-mode .contact h2{
    color: #000;
}
body.light-mode form input,
body.light-mode form textarea {
    color: #000;
    border-bottom: solid 2px #000;
}

body.light-mode form input:focus,
body.light-mode form textarea:focus {
    border: solid 2px #000;
}

body.light-mode #popUp {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border-color: #000;
}

body.light-mode .icones {
    box-shadow: inset 0 0 25px #000;
}
body.light-mode #popUp button{
    color: #000;
}
.icon-path {
    transition: opacity 0.5s ease;
    position: absolute;
}

.burger {
    opacity: 1;
}

.close {
    opacity: 0;
}

.hamburger.open .burger {
    opacity: 0;
}

.hamburger.open .close {
    opacity: 1;
}
body.light-mode .maitrise .icones{
        box-shadow: none
    }
body.light-mode .maitrise .droite{
    background: linear-gradient(to left,rgba(255, 255, 255), transparent);
}
body.light-mode .maitrise .gauche{
    background: linear-gradient(to right,rgba(255, 255, 255), transparent);
}
body.light-mode footer p{
    color: #000;
}
@media (max-width:820px){
    
    nav{
        padding: 20px 0;
        width: 100vw;
    }
    .hamburger{
        cursor: pointer;
        display: flex;
        color: #fff;
        margin-right: 20px;
            
    }
    .hamburger svg{
        z-index: 999;
    }
    .logo{
        font-size: 25px;
    }
    .ordi{
        display: none;
    }
    .mobile{
        display: flex;
        flex-direction: column;
        align-items: start;
        pointer-events: auto;
        width: fit-content;
        gap: 15px;
    }
    body .mobile, body.light-mode .mobile{
        box-shadow: none;
        border: none;
        background: transparent;
    }
    body.light-mode .hamburger{
        color: #000;
    }
    .liens{
        width: 70%;
        display: flex;
        align-items: center;
        justify-content: end;
        gap: 5px;
    }
    .nom{
        margin-bottom: 50px;
    }
    .hero-text, .nom, .subtitle{
       width: fit-content;
    }
    .subtitle, .nom{
        font-size: 15px;
    }
    .entree{
        width: 100%;
        
    }
    .entree img{
        margin-right: 10px;
        width: 100px;
        height: auto;
        box-shadow: 2px 2px 5px #5F00D2;
        filter: none;
    }
    .entree p{
        font-size: 9px;
        padding: 0 10px;
        font-family: System-ui;
        letter-spacing: 0;
        
    }
    .cv{
        font-size: 11px;
    }
    .liens i{
        display: none;
    }
    
    form{
        margin: 0;
        width: 300px;
        margin: auto;
    }
    .navigation{
        pointer-events: none;
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        padding:  70px 40px;
    }
    #barre-oblique{
        background-color: rgba(0, 0, 0, .95);
        width: 115%;
        height: 100vh;
        z-index: -1;
        position: absolute;
        right: -50px;
        border-left: solid 5px #5F00D2; 
        top: 0;
        transform: skewX(5deg);
    }
    .hamburger.open .navigation {
         display: block;
    }
    .navigation h2{
        font-family: "Bungee", sans-serif;
        text-align: center;
    }
    body.menu-open .cv, body.menu-open #themeToggle{
        pointer-events: none;
        cursor: default;
    }
    body.light-mode.menu-open h2{
        color: #fff;
    }
    body.light-mode.menu-open .mobile a {
        color: #fff;
    }
    #popUp{
        width: 200px;
        padding: 60px 70px;
    }
    .icones i{
        font-size: 50px;
    }
    footer p{
        font-size: 8px;
    }
    @keyframes typing {
    from { width: 0 }
    to { width: 255px }    
}
}