:root {
    --color-background-black: rgb(0, 0, 0);
    --color-background-blue-black: #181825;
    --color-text-white: #F8F9FA;
    --primary-color: #ff00c3;
    --secondary-color: #00f0ff;
    --thirdary-color: #fcee09;
    --fourtary-color: #21fc09;
    --fiftary-color: #ff0022;
}



/*-----------FONT_FAMILY-----------*/

@font-face {
    font-family: 'rajdhani_regular';
    src: url('../fonts/rajdhani/Rajdhani-Medium.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'rajdhani_bold';
    src: url('../fonts/rajdhani/Rajdhani-Bold.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}






/*-----------ALL/GENERAL------------*/
* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

body {
    background-image: url("../images/background_image/back2.webp");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media screen and (max-width: 700px) {
    body {
      background-image: url("../images/background_image/back2_mobile.webp");
    }
}

a {
    text-decoration: none;
}

button {
    all: unset;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
}

main {
    margin-top: 50px;
    margin-bottom: 50px;
}

main h1,h2,h3,h4,h5 {
    font-family: 'rajdhani_bold', sans-serif;
}

main p,div,span,li {
    font-family: 'rajdhani_regular', sans-serif;
    font-weight: 0;
}

.flex_column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flex_row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: top;
    text-align: center;
}





/* HEADER */

header {
    z-index: 100;
    top: 0;
    color: var(--color-text-white);
    height: 150px;
}

header nav {
    width: 100%;
    height: 100%;
}

header nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 10%;
}

header li {
    font-size: 20px;
    color: var(--color-background-black);
    background-color: var(--thirdary-color);
    border: 2px solid var(--color-background-black);
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    box-shadow:
        0 0 10px rgba(252, 238, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
    a {
        padding: 20px;
        text-decoration: none;
        color: #000000;
        font-size: 30px;
        font-family: 'rajdhani_bold', sans-serif;
        font-weight: 1900;
    }
}

header li:nth-child(1) {
    animation: header_glitch_1 10s infinite;
}

header li:nth-child(2) {
    animation: header_glitch_2 10s infinite;
}

header li:nth-child(3) {
    animation: header_glitch_3 10s infinite;
}

header li:nth-child(4) {
    animation: header_glitch_4 10s infinite;
}

@keyframes header_glitch_1 {
    0%, 19%, 24%, 100% { transform: none; opacity: 1; }
    20% { transform: translate(-2px, 0); opacity: 0.8; }
    21% { transform: translate(2px, -2px); opacity: 1; }
    22% { transform: translate(-1px, 1px); opacity: 0.9; }
    23% { transform: translate(0, 2px); opacity: 1; }
}

@keyframes header_glitch_2 {
    0%, 39%, 44%, 100% { transform: none; opacity: 1; }
    40% { transform: translate(-2px, 0); opacity: 0.8; }
    41% { transform: translate(2px, -2px); opacity: 1; }
    42% { transform: translate(-1px, 1px); opacity: 0.9; }
    43% { transform: translate(0, 2px); opacity: 1; }
}

@keyframes header_glitch_3 {
    0%, 59%, 64%, 100% { transform: none; opacity: 1; }
    60% { transform: translate(-2px, 0); opacity: 0.8; }
    61% { transform: translate(2px, -2px); opacity: 1; }
    62% { transform: translate(-1px, 1px); opacity: 0.9; }
    63% { transform: translate(0, 2px); opacity: 1; }
}

@keyframes header_glitch_4 {
    0%, 79%, 84%, 100% { transform: none; opacity: 1; }
    80% { transform: translate(-2px, 0); opacity: 0.8; }
    81% { transform: translate(2px, -2px); opacity: 1; }
    82% { transform: translate(-1px, 1px); opacity: 0.9; }
    83% { transform: translate(0, 2px); opacity: 1; }
}


header li:hover {
    background-color: var(--fourtary-color);
    color: var(--color-text-white);
    animation: none;
    transform: scale(1.05);
    box-shadow:
        0 0 10px rgba(13, 252, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
}

header li:active {
    transform: scale(0.95);
}

@media screen and (max-width: 900px) {
    header nav ul {
        gap: 20px;
    }
}

@media screen and (max-width: 700px) {
    header li {
        background-color: var(--thirdary-color);
    }
    header nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        margin: 20px;
    }

    header nav li:nth-child(1){
        grid-column:1;
        grid-row: 1;
    }
    header nav li:nth-child(2){
        grid-column:2;
        grid-row: 1;
    }
    header nav li:nth-child(3){
        grid-column:1;
        grid-row: 2;
    }
    header nav li:nth-child(4){
        grid-column:2;
        grid-row: 2;
    }

    header nav li a {
        font-size: 20px;
    }
}





/*INDICATEUR DE POSSITION*/
#body_accueil header li:nth-child(1) {
    background-color: #FF0022;
    color: var(--color-text-white);
    box-shadow:
        0 0 10px rgba(252, 9, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
}

#body_moi header li:nth-child(2) {
    background-color: #FF0022;
    color: var(--color-text-white);
    box-shadow:
        0 0 10px rgba(252, 9, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
}

#body_competences header li:nth-child(3) {
    background-color: #FF0022;
    color: var(--color-text-white);
    box-shadow:
        0 0 10px rgba(252, 9, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
}

#body_travaux header li:nth-child(4) {
    background-color: #FF0022;
    color: var(--color-text-white);
    box-shadow:
        0 0 10px rgba(252, 9, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
}



/*AUTRE*/

.border_radius {
    border-radius: 10px;
}

.display_none {
    display: none;
}



/*--------------------CYBER--------------------*/
.cyber_container {
    width: 80%;
    min-width: 300px;
    height: auto;
    padding: 2rem 2rem 2rem 2rem;
    background-color: var(--color-background-blue-black);
    color: var(--color-text-white);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--secondary-color);
    overflow: visible;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}
.cyber_title {
    text-align: center;
    height: auto;
    padding: 0;
    margin: 0;
    font-size: 20px;
    color: var(--color-text-white);
    border-bottom: 3px solid var(--secondary-color);
    line-height: 1.1;
    display: inline-block;
}
.cyber_list {
    text-align: center;
    color: var(--color-text-white);
    margin-bottom: 5px;
    padding: 1px;
    width: 90%;
    height: auto;
    font-size: 15px;
}
.cyber_button {
    text-align: center;
    color: var(--color-text-white);
    padding: 10px;
    font-size: 20px;
    background-color:var(--primary-color);
}
.cyber_button:hover {
    background-color: var(--fourtary-color);
    cursor: pointer;
}
.cyber_button:active {
    transform: scale(0.99);
    box-shadow: 0 0 15px var(--secondary-color);
}
.cyber_button.active {
    text-align: center;
    color: var(--color-text-white);
    padding: 10px;
    font-size: 20px;
    background-color: var(--fourtary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}
.cyber_input {
    width: 150px;
    height: 30px;
}
.cyber_input::placeholder {
    font-style: italic;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}






/*------------------CYBERPUNK------------------*/
.cyberpunk_container {
    width: 100%;
    height: auto;
    max-width: 750px;
    margin: 2rem auto;
    padding: 2rem 2rem 2rem 2rem;
    background-color: var(--color-background-blue-black);
    color: var(--color-text-white);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.3);
    height: auto;
    overflow: visible;
    z-index: 1;
}

.cyberpunk_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    z-index: 2;
}

.cyberpunk_title {
    width: auto;
    top: 15px;
    left: 15px;
    font-size: 20px;
    color: var(--secondary-color);
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
}

.cyberpunk_super_title {
    color: var(--thirdary-color);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    top: -40px;
    left: 10px;
    color: var(--thirdary-color);
    font-size: 20px;
    font-weight: bold;
    background-color: var(--primary-color);
    padding: 3px 10px;
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
    transform: skew(-10deg);
    box-shadow: 0 0 10px rgba(255, 0, 195, 0.7);
    z-index: 3;
}

.cyberpunk_list {
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.5rem;
    position: relative;
    color: var(--thirdary-color);
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, rgba(13, 13, 20, 0.9) 70%);
    text-align: left;
    font-size: 15px;
    box-shadow:
        -5px 0 15px rgba(0, 240, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: block;
    width: 90%;
    overflow: hidden;
}

.cyberpunk_list:nth-child(even) {
    border-left: none;
    border-right: 4px solid var(--primary-color);
    box-shadow:
        -5px 0 15px rgba(255, 0, 195, 0.2),
        5px 0 10px rgba(255, 0, 195, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin-left: 5%;
    background: linear-gradient(90deg, rgba(255, 0, 195, 0.08) 0%, rgba(13, 13, 20, 0.9) 70%);
}

.cyberpunk_list:hover {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.15) 0%, rgba(13, 13, 20, 0.9) 80%);
    transform: translateX(8px) scale(1.02);
    box-shadow:
        -8px 0 20px rgba(0, 240, 255, 0.4),
        0 0 5px rgba(0, 240, 255, 0.4),
        inset 0 0 10px rgba(0, 240, 255, 0.2);
    color: white;
}

.cyberpunk_list:nth-child(even):hover {
    background: linear-gradient(90deg, rgba(255, 0, 195, 0.15) 0%, rgba(13, 13, 20, 0.9) 80%);
    transform: translateX(-8px) scale(1.02);
    box-shadow:
        8px 0 20px rgba(255, 0, 195, 0.4),
        0 0 5px rgba(255, 0, 195, 0.4),
        inset 0 0 10px rgba(255, 0, 195, 0.2);
    color: var(--color-text-white);
}

.cyberpunk_button {
    background-color: var(--color-background-blue-black);
    color: var(--thirdary-color);
    border: 2px solid;
    border-image: linear-gradient(90deg, var(--secondary-color), var(--primary-color)) 1;
    padding: 8px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
    transform: skew(-5deg);
}

.cyberpunk_button:hover {
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: 
        0 0 15px rgba(0, 240, 255, 0.5),
        0 0 5px rgba(255, 0, 195, 0.5);
    color: var(--color-text-white);
    transform: skew(-10deg) scale(1.05);
}

/* elements decoratif cyberpunk */
.cyberpunk_element1 {
    content: '';
    position: absolute;
    top: 10px;
    left: 0px;
    width: calc(60% + 5px);
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.cyberpunk_element2 {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 20px;
    color: var(--secondary-color);
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
}

.cyberpunk_element3 {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 40%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 195, 0.7);
}






/*------------------ANIMATION------------------*/
/* ouverture de la page, apparition des éléments */
.open {
    display: inline-block;
    width: fit-content;
    overflow: hidden;
    animation: open 1.5s forwards;
}
@keyframes open {
    from { max-width: 0; }
    to { max-width: 100%; }
}

.open2 {
    animation: open2 1.5s forwards;
}
@keyframes open2 {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* effet scan */
.scan{
    position: relative;
    overflow: hidden;
}

.scan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, transparent, rgba(0, 240, 255, 0.05), transparent, transparent);
    transform: translateY(-100%);
    animation: scan 4s ease-in-out infinite;
    pointer-events: none;
    overflow: hidden;
}
.scan:nth-child(even)::after {
    background: linear-gradient(transparent, transparent, rgba(255, 0, 195, 0.05), transparent, transparent);
    overflow: hidden;
}
@keyframes scan {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

/* glitch */
.glitch {
    animation: glitch 4s infinite;
}
@keyframes glitch {
    0%, 89%, 96%, 100% { transform: none; filter: none; }
    90% { transform: translate(2px, 0); filter: hue-rotate(5deg) saturate(150%); }
    91% { transform: translate(-2px, 0) skew(0.5deg); filter: hue-rotate(-5deg) saturate(150%); }
    92% { transform: translate(0, 1px); filter: saturate(120%); }
    93% { transform: translate(0, -1px) skew(-0.5deg); filter: brightness(110%); }
    95% { transform: translate(1px, 1px); filter: contrast(120%); }
}

/* super_glitch */
.super_glitch {
    animation: super_glitch 1.5s infinite alternate;
}
@keyframes super_glitch {
    0%, 79%, 100% { transform: none; opacity: 1; }
    80% { transform: translate(-2px, 0); opacity: 0.8; }
    82% { transform: translate(2px, -2px); opacity: 1; }
    84% { transform: translate(-1px, 1px); opacity: 0.9; }
    86% { transform: translate(0, 2px); opacity: 1; }
}





/*BOUTON DOWNLOAD CV PDF*/

#bouton_download .download {
    padding: 20px;
    font-size: 20px;
    color: var(--color-background-black);
    background-color: var(--thirdary-color);
    border: 2px solid var(--color-background-black);
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    box-shadow:
        0 0 10px rgba(252, 238, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
    animation:
        download1 2s infinite alternate,
        download2 3s infinite alternate;
    a {
        text-decoration: none;
        color: var(--color-background-black);
    }
}

#bouton_download {
    transform: skew(-5deg);
}

#bouton_download .download img {
    width: 50px;
    height: auto;
}

#bouton_download:hover {
    cursor: pointer;
    transform: skew(-5deg) scale(1.05);
    animation: download2 3s infinite alternate;
}

#bouton_download:active {
    transform: skew(-5deg) scale(0.90);
    animation: download2 3s infinite alternate;
}

@keyframes download1 {
    0%, 79%, 100% { transform: skew(-5deg);  }
    80% { transform: translate(-2px, 0) skew(-2deg);  }
    82% { transform: translate(2px, -2px) skew(-8deg);  }
    84% { transform: translate(-1px, 1px) skew(-2deg);  }
    86% { transform: translate(0, 2px) skew(-8deg);  }
}

@keyframes download2 {
    0% { box-shadow: 0 0 5px var(--thirdary-color), 0 0 10px rgba(0, 240, 255, 0.5), 0 0 15px rgba(255, 0, 195, 0.5); }
    25% { box-shadow: 0 0 10px var(--thirdary-color), 0 0 15px rgba(0, 240, 255, 0.5), 0 0 5px rgba(255, 0, 195, 0.5); }
    50% { box-shadow: 0 0 5px var(--thirdary-color), 0 0 20px rgba(0, 240, 255, 0.5), 0 0 10px rgba(255, 0, 195, 0.5); }
    75% { box-shadow: 0 0 15px var(--thirdary-color), 0 0 5px rgba(0, 240, 255, 0.5), 0 0 15px rgba(255, 0, 195, 0.5); }
    100% { box-shadow: 0 0 5px var(--thirdary-color), 0 0 10px rgba(0, 240, 255, 0.5), 0 0 15px rgba(255, 0, 195, 0.5); }
}


/* PROJECT HEADER UL */

#travaux_ul {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#travaux_ul li{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#travaux_ul li:nth-child(1){
    align-items: end;
}
#travaux_ul li:nth-child(2){
    align-items: center;
}
#travaux_ul li:nth-child(3){
    align-items: start;
}

#travaux_ul .travaux_button {
    width: 50px;
    height: 50px;
    background-color: var(--thirdary-color);
    border: 2px solid var(--color-background-black);
    text-shadow:
        2px 2px 0 rgba(255, 0, 195, 0.5),
        -2px -2px 0 rgba(0, 240, 255, 0.5),
        0 0 8px rgba(252, 238, 9, 0.8);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 10px rgba(252, 238, 9, 0.8),
        0 0 20px rgba(0, 240, 255, 0.4),
        0 0 30px rgba(255, 0, 195, 0.4);
    padding: 20px;
}

#travaux_ul .travaux_button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

#travaux_ul .travaux_button img {
    width: 50px;
    height: auto;
}

#travaux_ul #button_after img {
    transform: rotate(180deg);
}


#travaux_ul #travaux_title {
    text-align: center;
    padding: 10px;
    border: 2px solid var(--thirdary-color);
    background-color: var(--color-background-black);
    color: var(--color-text-white);
    letter-spacing: 1px;
    font-size: 30px;
    text-wrap: wrap;
    width: fit-content;
    max-width: 90%;
    height: auto;
}

@media screen and (max-width: 700px) {

    #travaux_ul {
        gap: 20px;
    }

    #travaux_ul #travaux_title {
        font-size: 20px;
    }

    #travaux_ul .travaux_button {
        width: 20px;
        height: 20px;
    }
    #travaux_ul .travaux_button img {
        width: 35px;
        height: auto;
    }
}

@media screen and (max-width: 400px) {
    #travaux_ul {
        gap: 10px;
    }
}


/*PROJECT MAIN/container*/


.main_project {
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 50px;
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(50px + 5%);
    row-gap: 100px;
}

.main_project .container_project {
    width: 80%;
    max-width: 800px;
    min-width: 300px;
    width: fit-content;
    height: fit-content;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--color-background-blue-black);
    color: var(--color-text-white);
    font-family: 'rajdhani_regular', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    gap: 20px;
    border: 1px solid var(--secondary-color);
    p {
        text-transform: none;
    }
    li {
        text-transform: none;
    }
    img {
        max-width: 100%;
        height: auto;
    }
}

.main_project .sous_container_project {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    img {
        max-width: 100%;
        height: auto;
    }
}

.main_project .container_techno ul {
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main_project .container_techno ul li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.main_project .container_techno ul div {
    max-width: 80px;
    height: auto;
}

.main_project .container_techno ul img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 700px) {
    .main_project {
        width: 95%;
    }
    .main_project .container_project {
        min-width: 300px;
        padding: 20px;
        padding-top: 30px;
    }
}

@media screen and (max-width: 400px) {
    .main_project {
        width: 95%;
    }
    .main_project .container_project {
        min-width: 200px;
        padding: 15px;
        padding-top: 20px;
    }
}

