* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(to right, rgb(175, 153, 129), rgb(165, 192, 186));
    transition: 0.6s ease-in-out;
}

.mode-nuit {
    background: #1a1a1a;
    color: #f0f0f0;
}

.fa-toggle-off{
    color: black;
}
.fa-toggle-on{
    color: rgb(57, 231, 57);
}

header {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: space-around;
    background-color: rgba(189, 148, 104, 0.9);
    position: fixed;

}

.logo {
    color: rgb(28, 34, 9);
    font-weight: bolder;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', serif;
    cursor: pointer;
}

nav>ul {
    display: flex;
    justify-items: center;
    align-items: center;
    list-style: none;
    gap: 8%;
    transition: 0.6s ease-in-out;
}

nav>ul>li {
    cursor: pointer;
    color: aliceblue;
    width: 90px;

}

nav>div>i {
    cursor: pointer;
    color: aliceblue;
}

#nuit{
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 10px;
}
#modeNuit{
    font-size: 20px;
}

#bouttonMenu {
    display: none;
}

.offancaveMenu {
    right: 0;
}

li:hover {
    color: rgba(181, 219, 219, 0.87);
    transform: scale(1.08);
}

#homeSection {
    padding: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
}

#homeSection img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgb(85, 210, 245);
    transition: 0.2s ease-in-out;
}

img:hover {
    transform: scale(0.9);
}

.social-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social-links a {
    margin: 10px 15px;
    font-size: 30px;
    transition: 0.4s;
}

.social-links a:hover {
    transform: scale(0.9);
    color: black;
}


span {
    color: rgb(109, 67, 0);
    text-shadow: 0 0 10px rgb(100, 60, 60);
}

.typewriter {
    font-weight: 600;
    font-size: 1.6rem;
}

.typewriter span {
    color: rgb(109, 67, 0);
    text-shadow: 0 0 10px rgb(100, 60, 60);
    position: relative;
    font-size: 1.7rem;
    transition: 0.3s linear;
}

.typewriter span::before {
    content: "Devellopeur Web";
    animation: words 6s infinite;
}

.typewriter span::after {
    content: "";
    position: absolute;
    height: 100%;
    border-left: 3px solid black;
    animation: cursor 0.6s linear infinite;
}



main button:hover,
header button:hover {
    transition: 0.3s ease-in-out;
}

main button:hover,
header button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgb(54, 52, 52);
}

main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5%;
    padding: 10px;
}

section {
    margin: 20px 0;
    padding: 10px 2px;
    width: 80%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgb(46, 44, 44);
}

.section-dark {
    background: rgb(66, 59, 59);
    box-shadow: 0 2px 5px rgb(117, 150, 130);

}

#formations {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#progressBar1 {
    width: 100%;
}

#progressBar2 {
    width: 100%;
    display: none;
}

.container {
    width: 100%;
    padding: 0;
    background-color: #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skills {
    text-align: right;
    padding: 10px;
    color: white;
    margin: 0;
}

.html {
    width: 85%;
    background-color: rgba(34, 118, 214, 0.568);
    animation: animation1 ease-in-out 3s forwards;
}

.design {
    width: 75%;
    background-color: rgb(122, 136, 182);
    animation: animation2 ease-in-out 3s forwards;
}

.JavaScript {
    width: 65%;
    background-color: rgba(214, 163, 87, 0.753);
    animation: animation3 ease-in-out 3s forwards;
}

.Bootstrap {
    width: 80%;
    background-color: rgba(134, 50, 145, 0.842);
    animation: animation4 ease-in-out 3s forwards;
}

.Python {
    width: 70%;
    background-color: rgb(167, 214, 136);
    animation: animation5 ease-in-out 3s forwards;
}

.Git-Github {
    width: 75%;
    background-color: rgba(69, 148, 73, 0.685);
    animation: animation6 ease-in-out 3s forwards;
}


footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: space-around;
    background-color: rgba(189, 148, 104, 0.95);
    position: fixed;
    bottom: 0;
}

footer ul {
    display: flex;
    gap: 10px;
}

footer ul li {
    cursor: pointer;
    list-style: none;
    color: aliceblue;
}

@keyframes animation4 {
    0% {
        width: 0;
        margin-left: -5%;
    }

    100% {
        width: 80%;
    }
}

@keyframes animation5 {
    0% {
        width: 0;
        margin-left: -5%;
    }

    100% {
        width: 70%;
    }
}

@keyframes animation6 {
    0% {
        width: 0;
        margin-left: -5%;
    }

    100% {
        width: 75%;
    }
}

#contactSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

form {
    width: 50%;
}

h2 {
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', serif;
    text-shadow: 0 2px 2px rgb(49, 46, 46);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

#formulaire input {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 20px;

}

#sucessMessage {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#sucessMessage button {
    text-decoration: none;
    font-weight: 600;
    background-color: rgb(10, 46, 10);
    color: white;
    padding: 20px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 0 10px rgb(43, 180, 243);
    transition: 0.4s ease-in-out;
}

#sucessMessage button:hover {
    box-shadow: 0 0 10px red;
    transform: scale(0.8);
}


@keyframes cursor {
    to {
        border-left: 2px solid rgb(179, 129, 65);
    }

}

@keyframes words {

    0%,
    33% {
        content: "Devellopeur Web";
    }

    34%,
    66% {
        content: "Mathematicien";
    }

    67%,
    100% {
        content: "Statisticien";
    }

}


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

    body {
        font-size: 13px;
    }

    #bouttonMenu {
        display: block;
    }

    nav>ul {
        position: absolute;
        top: 60px;
        width: 100%;
        height: 40vh;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        background-color: rgba(189, 148, 104, 0.9);
        right: -100vh;
    }

    nav>div #bouttonMenu {
        position: absolute;
        right: 20px;
        font-size: 30px;
    }
    nav>div #modeNuit {
        position: absolute;
        right: 60px;
        font-size: 25px;
    }

    nav .logo {
        position: absolute;
        left: 20px;
    }

    #homeSection img {
        width: 150px;
        height: 150px;
        margin-top: 10%;
    }

    .typewriter span {
        font-size: 0.8rem;
    }

    .typewriter {
        font-size: 1rem;
    }

    h1 span {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
        align-self: center;
    }


    img {
        margin-top: 50px;
    }
 .container{
    height: 25px;
    display: flex;
    justify-items: center;
    align-items: center;
 }

}

@media screen and (max-width:700px) {
    #homeSection img {
        width: 200px;
        height: 200px;
        margin-top: 10%;
    }

    section {
        margin-top: 5%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    #homeSection {
        margin-top: 5%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        margin-top: 10px;
    }

    main {
        flex-direction: column;
    }


}