@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

::-webkit-scrollbar-track-piece {
    background-color: #e4e9ef;
}

::-webkit-scrollbar-thumb:vertical {
    height: 30px;
    background-color: var(--definColor);
}

#mesures {
    position: fixed;
    color: var(--definColor);
    font-size: 2rem;
}

.active {
    font-size: 1.6rem;
    color: var(--definColor);
}

*::selection {
    color: var(--definColor);
    background-color: rgba(37, 36, 36, 0.27);
}

span {
    color: var(--definColor);
}

li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html body {
    font-family: 'Lato', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    transition: 350ms ease-in-out;
}

#light {
    cursor: pointer;
}

[data-mode="light"] {
    --text: #474747;
    --bg-color: #c5c4c405;
    --shadow: -1px 5px 23px 0 black;
    --left: rgb(212 212 212 / 77%);
    --invert: invert(100%);
    --contact-shadow: 0px 0px 16px 2px black;
    --bg-shadow: #fff;
    --definColor: rgb(92, 107, 210);
}

[data-mode="dark"] {
    --text: #ffffff;
    --shadow: 13px -4px 1px 0 white;
    --bg-color: rgba(52, 53, 65);
    --left: rgba(32, 33, 35);
    --invert: invert(0%);
    --contact-shadow: none;
    --bg-shadow: rgb(38 40 54);
    --definColor: rgb(92, 107, 210);
}

.container {
    display: flex;
    width: 100%;
}

.left {
    display: flex;
    width: 15%;
    padding: 1rem;
    height: 100vh;
    position: fixed;
    justify-content: flex-start;
    background-color: var(--left)
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.nav img {
    width: 75%;
    animation-name: myLoad;
    animation-iteration-count: infinite;
    transition: 0.3s;
    animation-duration: 4s;

}

ul {
    display: flex;
    gap: 3rem;
    margin-top: 5rem;
    list-style: none;
    flex-direction: column;
    align-items: center;
}

#special {
    margin-top: -5rem;
}

#list-spec {
    display: block;
}

ul li a:after {
    content: "";
    right: 0;
    top: 0.1rem;
    width: 0;
    height: 3px;
    background: #cccccc;
    transition-duration: 0.2s;
    transition: 0.2s all ease-in-out;
}

ul li a {
    font-weight: bold;
    font-size: 20px;
    position: relative;
    color: var(--text);
    text-decoration: none;
    transition-duration: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0.8;
    align-items: center;
}

ul li a:hover:after {
    color: #f5f5f5;
    width: 100%;
    left: 0;
}

ul li a:hover {
    color: var(--text);
    opacity: 1;
}

.fas {
    font-size: 1.7rem;
}

.infos {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    flex-direction: column;
}

.right {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    margin-left: 19rem;
}

.top {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    margin-top: 13rem;
    line-height: 2rem;
}

.top h1 {
    font-weight: bold;
    font-size: 40px;
    color: var(--text);
    letter-spacing: 2px;
}

.top h2 {
    margin-top: 2.5rem;
    font-weight: bold;
    font-size: 30px;
    letter-spacing: 4px;
    color: var(--text);
}

.top p {
    font-size: 23px;
    color: #a9a9a9;
}

.top a {
    list-style: none;
    color: #b5adad;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.top a:hover {
    color: var(--text);
}

.box-social {
    display: flex;
    justify-content: space-between;
}

.flo {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--text);
    display: flex;
    place-content: center;
    border-radius: 14px;
    gap: 0rem;
    width: 15%;
    padding: 0.6rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: space-around;
}

.social-link {
    display: flex;
    gap: 2rem;
}

.social-link img {
    border-radius: 7px;
    -webkit-filter: var(--invert);
}

.front {
    position: fixed;
    color: var(--text);
    top: 2rem;
    right: 1.2rem;
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 2rem;
    background: rgba(128, 128, 128, 0.34);
}

.front2 {
    position: fixed;
    color: var(--text);
    top: 5.5rem;
    right: 1rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 2rem;
    background: rgba(128, 128, 128, 0.34);
    margin-top: 1rem;
    z-index: 5;
}

.front3 {
    position: fixed;
    color: var(--text);
    bottom: 2rem;
    right: 2rem;
    padding: 0.6rem;
    border-radius: 2rem;
    margin-top: 1rem;
}

.about {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    margin-top: 16rem;
    line-height: 2rem;
}

.about h1 {
    margin-top: 2rem;
    color: var(--text);
    font-size: 55px;
    letter-spacing: 2px;
}

.about #myBar {
    margin-top: 2rem;
    width: 30%;
}

.infos-about {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-top: 4rem;
    justify-content: space-evenly;
}

.about p {
    font-size: 23px;
    margin-top: 1rem;
    color: #a9a9a9;
}

.about a {
    font-size: 23px;
    margin-top: 1rem;
    color: #a9a9a9;
}

.about-box {
    padding: 1rem;
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: center;
}

.about-box h2 {
    color: var(--text);
    font-weight: bold;
}

.skills .skill-item {
    flex: 0 0 100%;
    max-width: 40%;
}

.skills .skill-item h5 {
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    text-transform: capitalize;
    position: relative;
}

.skills .skill-item .progress {
    background-color: #7e7c7c;
    height: 7px;
    border-radius: 4px;
    width: 100%;
    position: relative;
}

.skills .skill-item {
    margin-bottom: 30px;
}

.skills .skill-item .progress .progress-in {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    background-color: var(--definColor);
}

.skills .skill-item .skill-percent {
    position: absolute;
    right: 0;
    color: var(--text);
    line-height: 40px;
    top: -40px;
    font-weight: 800;
}

.row {
    margin-top: 4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}


.end-about a {
    text-decoration: none;
    border: 2px solid white;
    padding: 0.5rem;
    color: var(--text);
    background-color: rgba(255, 255, 255, 0);
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-name: load;
    transition: 0.2s;
}

.end-about a:hover {
    background-color: rgba(255, 255, 255, 0.17);
}

@keyframes load {
    0% {
        box-shadow: none;
    }
    50% {
        box-shadow: var(--shadow);
    }
    100% {
        box-shadow: none;
    }
}

@keyframes myLoad {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.foot-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 4rem;
    padding: 2rem;
}

.foot-box {
    display: flex;
    max-width: 80%;
}

.foot-box p {
    font-size: 18px;
    color: var(--text)
}

.foot-box h3 {
    margin-top: 1.5rem;
    color: white;
}

.foot-one {
    background: var(--bg-shadow);
    padding: 1rem;
    border-radius: 1ch;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    box-shadow: var(--contact-shadow);
}

.foot-two {
    box-shadow: var(--contact-shadow);
    background: var(--bg-shadow);
    padding: 1rem;
    border-radius: 1ch;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.container-project {
    display: flex;
    margin-top: 9rem;
    flex-wrap: wrap;
}


.box-content {
    margin-top: 5rem;
    width: 100%;
    display: flex;
    gap: 2rem;
    height: 100%;
    justify-content: start;
    flex-wrap: wrap;
}

.box-content img {
    width: 100%;
    filter: blur(2px);
    transition: 0.3s;
    height: 100%;
    flex-grow: 1;
    cursor: pointer;
}

.box-content img:hover {
    filter: blur(0px);
}

.little-box {
    justify-content: space-between;
    display: flex;
    width: 30%;
    height: 400px;
    flex-direction: column;
    padding: 1rem;
}

.little-box p {
    font-size: 20px;
}

.little-box h3 {
    color: var(--definColor);
}

.little-box:hover {
    transform: scale(1.1);
    transition: 0.4s ease-out;
}

#switch {
    color: var(--text);
    text-shadow: 1px 2px 20px black;
    display: flex;
    justify-content: center;
    margin-top: 16rem;
    animation-name: arrowDown;
    opacity: 0.6;

    animation-iteration-count: infinite;
    animation-duration: 2s;
}

@keyframes arrowDown {
    0% {
        margin-top: 14rem;
    }
    50% {
        margin-top: 16rem;
    }
    100% {
        margin-top: 14rem;
    }
}

.container-slider {
    margin-top: 6rem;
    width: 93%;
    height: calc(40vh - 2rem);
    overflow: hidden;
    position: relative;
    border-radius: 3ch;

}

.list-slide::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.list-slide {
    list-style: none;
    margin: 0;
    height: calc(100vh - 2rem);
    display: flex;
    padding: 0;
    overflow: scroll;

    scroll-behavior: smooth;
}

.slide {
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
}

.slide:nth-child(1) {
    background: url("img/projet/blog.PNG");
}

.slide:nth-child(2) {
    background: url("img/code-gc6e45314d_1920.jpg");
}

.slide:nth-child(3) {
    background: url("img/code-gc6e45314d_1920.jpg");
}

button:hover {
    opacity: 1;
}

#toDown {
    position: absolute;
    bottom: 2rem;
    color: white;
    right: 42rem;
    font-size: 2.5rem;
}

.contact-container {
    display: flex;
    margin-top: 10rem;
    justify-content: space-evenly;
}

.contact-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.contact-container h1 {
    text-transform: uppercase;
    letter-spacing: 15px;
    text-shadow: 2px 2px black;
}

.contact-box {
    display: flex;
}

.contact {
    display: flex;
    gap: 5rem;
    align-items: center;
    flex-direction: column;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item p {
    color: var(--definColor);
}

.contact-item .fas, .fab {
    font-size: 2rem;
    color: var(--text)
}

.contact-item h2 {
    text-transform: uppercase;
    color: var(--text)
}

.formule {
    display: flex;
    width: 100%;
    border-radius: 4px;
    flex-grow: 1;
}

.formule form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    color: var(--text);
}

input {
    padding: 0.4rem;
    font-size: 17px;
    border-radius: 3px;
    color: var(--text);
    border: 1px solid grey;
    background: var(--bg-shadow);
}

textarea {
    color: var(--text);
    border: 1px solid grey;
    padding: 0.3rem;
    margin-top: 1rem;
    border-radius: 3px;
    font-size: 17px;
    resize: none;
    background: var(--bg-shadow);
}

.formule div {
    display: flex;
    flex-direction: column;
}


@media (max-width: 1024px) {
    .foot-box {
        max-width: 100%;
    }

    .left {
        height: 100%;
    }

    .little-box {
        width: 47.33%;
    }
}

@media (max-width: 425px) {
    .nav {
        display: none;
    }

    .right {
        margin-left: 0rem;
    }
}


@media (max-width: 768px) {
    .row {
        margin-top: 4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .top {
        display: flex;
        flex-direction: column;
        padding: 0rem;
        gap: 1rem;
        margin-top: 4rem;
        line-height: 2rem;
    }

    .box-content {
        margin-top: 2rem;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .top h1 {
        font-weight: bold;
        font-size: 31px;
        color: var(--text);
        letter-spacing: 2px;
    }

    .foot-box {
        max-width: 100%;
    }

    .left {
        display: none;
    }

    .container {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .right {
        margin-left: 1rem;
    }

    .box-social {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .flo {
        width: 50%;

    }

    .front2 {
        width: 10%;
    }

    .front {
        width: 10%;
    }

    .skills .skill-item .progress {
        background-color: #7e7c7c;
        height: 7px;
        border-radius: 4px;
        width: 90%;
        position: relative;
    }

    .top {
        max-width: 90%;
    }

    .little-box {
        width: 100%;
        display: flex;
    }

    .about {
        max-width: 100%;
        margin-top: 3rem;
        padding: 0;
    }

    .about h1 {
        font-size: 25px;
    }

    .infos-about {
        display: flex;
        flex-direction: column;
        margin-top: 4rem;
    }

    .skills .skill-item {
        margin-bottom: 30px;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }


    .skills .skill-item {
        flex: 0 0 100%;
         max-width: 100%;
    }

    #toTop {
        display: none;
    }

    .end-about a {
        display: none;
    }

    .foot-box {
        max-width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .foot-content {
        padding: 0
    }

    .contact-container {
        display: flex;
        margin-top: 10rem;
        justify-content: space-evenly;
        flex-direction: column;
    }

    .container-slider {
        margin-top: 6rem;
        width: auto;
        height: calc(30vh - 2rem);
        overflow: hidden;
        position: relative;
        border-radius: 3ch;
    }

    .contact {
        display: flex;
        gap: 4rem;
        align-items: center;
        margin-top: 7rem;
        flex-direction: column;
    }
}


