/*z-index*/

body {
    z-index: 0;
}

main * {
    z-index: 50;
}

.cv {
    z-index: 150;
}

.nav_top * {
    z-index: 100;
}

.nav-button {
    z-index: 150;
}

.nav_right {
    z-index: 25;
}

.nav_right ul li {
    z-index: 25;
}

.nav__background {
    z-index: 20;
}

.zoom a {
    z-index: 10;

}

.zoom a img {
    z-index: 10;
}

.zoom a:hover img {
    z-index: 50;
}

.zoom a h1 {
    z-index: 10;
}

footer {
    z-index: 50;
}

html {
    scroll-behavior: smooth;
}

/*def gen*/
* {
    color: #CCCCCC;
    font-family: "Montserrat", sans-serif;
}

h1 {
    color: #FFFFFF;
}

h4 {
    text-align: center;
}

html,
body,
main {
    background-color: #000000;
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
}

.degrade {
    position: relative;
    height: 100%;
    background: linear-gradient(#0000FF, #000000);
}

button {
    background: none;
    border: none;
    box-shadow: 0 0 5px #CCCCCC;
}

button:focus {
    outline: none;
}

.titre {
    text-align: center;
    padding-top: 4%;
}

.text-center {
    text-align: center;
}

/*footer*/
footer {
    background: linear-gradient(#000000, #00FFFF);
}

footer div a {
    color: #CCCCCC;
}

/*lien footer*/
.zoom-foot-name a h4 {
    outline: none;
    text-decoration: none;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .1s ease-in-out;
}

.zoom-foot-name a:hover {
    color: #FFFFFF;
    text-shadow: 0px 0px 10px #0000FF;
}

.zoom-foot-name a:hover h4 {
    color: #FFFFFF;
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
    text-shadow: 0px 0px 10px #0000FF;
}

/*img footer*/
.reseaux {
    display: flex;
    justify-content: space-around;
}

/*menu top*/

.nav_top ul {
    position: fixed;
    top: 2%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.nav_top ul li a img {
    margin: 1%;
    width: 3%;
}

.nav_top ul li {
    display: inline;
    padding: 4%;
}

.nav_top ul li a {
    outline: none;
    text-decoration: none;
    color: #CCCCCC;
    font-weight: bold;
    position: relative;
}

.nav_top ul li a:hover {
    color: #FFFFFF;
    text-shadow: 0px 0px 10px #FF0000;
}

/*menu lateral*/
.nav_right {
    visibility: hidden;
}

/*Dl CV*/

.cv {
    position: fixed;
    top: 2%;
    left: 2%;
    width: 10%;
    height: 10%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}


.cv-icon {
    position: absolute;
    visibility: visible;
    top: 0;
    width: 50%;
}

.cv img {
    filter: invert(85%);
}

.dl-icon {
    position: absolute;
    visibility: hidden;
    top: 0;
    width: 50%;
}

.cv:hover .cv-icon {
    visibility: hidden;
}

.cv:hover .dl-icon {
    visibility: visible;
    position: absolute;
    transform: translate(0px, 25%);
    -webkit-transition: .5s ease-in-out;
    transition: 0.5s ease-in-out;
}

/*zoom img start*/

.zoom a img {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 40%;
    top: 20%;
    width: 20%;

    -webkit-transform: rotate(10deg) scale(0.75);
    transform: rotate(10deg) scale(0.75);
    -webkit-transition: .3s ease-in-out;
    transition: .1s ease-in-out;
}

.zoom a:hover img {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
}

/*zoom nom start*/

.zoom a h1 {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    top: 75%;
    width: 100%;
    color: #CCCCCC;

    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .1s ease-in-out;
}

.zoom a:hover h1 {
    color: #FFFFFF;
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
    text-shadow: 0px 0px 9px #0000FF;
}

/*fleche scroll down*/
.scroll_down {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;

}

.scroll_down img {
    filter: invert(90%);
}
.scroll_down img:hover {
    animation-duration: 0.4s;
    animation-name: scrolldown;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes scrolldown {
    from {
        margin-top: 10%;
    }

    to {
        margin-top: 20%;
    }
}

/* =< 768px  ecran reel */
@media screen and (max-device-width: 768px) {

    /*menu top*/
    .nav_top {
        visibility: hidden;
    }

    /*menu lateral*/
    .nav_right {
        visibility: visible;
    }

    body::after {
        content: "";
        position: relative;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }

    .nav_topright a {
        text-decoration: none;
        text-transform: uppercase;
        user-select: none;
    }

    .nav-button {
        position: fixed;
        top: 1%;
        right: 2%;
        width: 18%;
        height: 10%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
    }

    .nav-button.close .line__1 {
        transform: rotate(45deg) translate(2px, -3px);
    }

    .nav-button.close .line__2 {
        transform: rotate(-45deg);
    }

    .nav-button.close .line__3 {
        transform: rotate(45deg) translate(-2px, 3px);
    }

    .nav-button .line {
        width: 25px;
        background: #FFFFFF;
        height: 2px;
        margin: 3px 0;
        transition: all 350ms cubic-bezier(0.9, 0, 0.33, 1);
    }

    .nav-button .line__1 {
        width: 25px;
        transform-origin: left;
    }

    .nav-button .line__2 {
        width: 25px;
        transform-origin: center;
    }

    .nav-button .line__3 {
        width: 25px;
        transform-origin: right;
    }

    .nav_right {
        display: flex;
    }

    .nav_right ul {}

    .nav_right ul li {
        position: absolute;
        width: 100%;
        list-style: none;
        text-align: center;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
    }

    .nav_right ul li:nth-child(1) {
        top: 15%;
    }

    .nav_right ul li:nth-child(2) {
        top: 40%;
    }

    .nav_right ul li:nth-child(3) {
        top: 60%;
    }

    .nav_right ul li:nth-child(4) {
        top: 85%;
    }


    .nav_right ul li a {
        position: relative;
        font-size: 3em;
        -webkit-text-stroke: 2px #FFFFFF;
        color: transparent;
        font-weight: bold;
        letter-spacing: 2px;
        opacity: 0;
    }


    .nav__background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.50);
        backdrop-filter: blur(5px);
        transform: scaleY(0);
    }

    /*Dl CV*/
    .cv {
        position: fixed;
        top: 1%;
        left: 2%;
        width: 18%;
        height: 10%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
    }


    .cv-icon {
        position: absolute;
        visibility: visible;
        top: 0;
        width: 50%;
    }

    .cv img {
        position: relative;
        top: 30%;
        filter: invert(85%);
    }

    .dl-icon {
        position: absolute;
        visibility: hidden;
        top: 0;
        width: 50%;
    }

    .cv:hover .cv-icon {
        visibility: hidden;
    }

    .cv:hover .dl-icon {
        visibility: visible;
        position: absolute;
        transform: translate(0px, 25%);
        -webkit-transition: .5s ease-in-out;
        transition: 0.5s ease-in-out;
    }


    /*footer*/
    footer {
        font-size: 2em;
    }

    footer h4 {
        font-size: 1em;
    }
}

/* =< 1360px  ecran reel */
@media screen and (max-device-width: 1359px) {

    /* section*/

    section {
        display: flex;
        width: 100%;
    }

    article {
        position: relative;
        margin-bottom: 5%;
        left: 10%;
        width: 80%;
        font-size: 2em;
    }

    article h4 {
        font-size: 1em;
    }

    .pdp {
        position: relative;
        width: 80%;
        left: 10%;
        display: block;
        height: 100%;
        margin-bottom: 10%;
        border-radius: 40%;
    }

    .projects {
        justify-content: space-around;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        flex-basis: 1;

    }
}

/* >= 1360px  ecran reel */
@media screen and (min-device-width: 1360px) {

    /*Skills section*/
    .skills {
        justify-content: space-around;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        flex-basis: 1;
    }

    .deroulant {
        width: 50%;
        margin-left: 25%;
        margin-top: 1%;
        background: none;
        border: none;
        box-shadow: 0 0 2px #CCCCCC;
        list-style: none;
    }

    .deroulant li {
        display: block;
    }

    .deroulant ul {
        flex-direction: column;
    }

    .sous {
        display: none;
        text-align: left;
        box-shadow: 0px 0px 1px #CCCCCC;
    }

    .deroulant:hover .sous {
        display: flex;
    }

    .deroulant:active .sous {
        display: flex;
    }


    /*About me section*/
    .about_me {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
        flex-basis: 1;

    }

    .about_me img {
        position: relative;
        left: 5%;
        height: 200px;
        border-radius: 40%;
    }

    .about_me article {
        position: relative;
        left: 15%;
        width: 50%;
    }

    .moi {
        position: relative;
        width: 80%;
        left: 10%;
    }

    /*Projects section*/

    .les_projets {
        display: flex;
        width: 100%;
        margin-top: 5%;
        justify-content: space-around;
    }

    .projects {
        width: 100%;
    }

    .projects a h4 {
        outline: none;
        text-decoration: none;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-transition: .3s ease-in-out;
        transition: .1s ease-in-out;
    }

    .projects a:hover {
        color: #FFFFFF;
        text-shadow: 0px 0px 10px #0000FF;
    }

    .unprojet {
        position: relative;
        width: 80%;
        left: 10%;
    }
}
