body
{
    margin: 0;
    overflow-x: clip;
    position: relative;
}

*
{
    box-sizing: border-box;
}

html
{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.backgroundColor {
    position: absolute;
    z-index: -1;
    background-color: rgba(144, 238, 144, 0.363);
    top: 160px;
    left: 30px;
    right: 30px;
    height: calc(98.5% - 5vw);
    border-radius: 20px;
}

@media screen and (max-width: 605px)
{
    .backgroundColor {
        left: 0;
        right: 0;
    }
}

/* topbar style*/

.topbar
{
    display: flex;
    align-items: center;
    background: linear-gradient(green, rgb(0, 255, 136));
    padding: 5px;
}

.topbar img
{
    margin-left: 10vw;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.topbar h1
{
    margin: 0;
    margin-left: 20vw;
    font-size: 300%;
}

@media screen and (max-width: 700px)
{
    .topbar h1
    {
        font-size: 1.5em;
        margin: 0 10px;
    }
}

@media screen and (max-width: 355px)
{
    .topbar h1
    {
        font-size: 1em;
        margin: 0 10px;
    }
}

.topbar>*
{
    display: inline-block;
}

/* menu */
.menu
{
    z-index: 1;
    top: 0;
    position: sticky;
    display: flex;
    height: 30px;
    width: 100%;
    background-color: rgb(0, 194, 0);
}

.menu a
{
    text-align: center;
    align-content: center;
    text-decoration: none;
    color: black;
    padding:  0 3%;
    width: 100%;
    background-color: rgb(0, 194, 0);
}

.menu a:hover
{
    background-color: greenyellow;
}

.icon
{
    display: none;
}

@media screen and (max-width: 400px) {
    .menu
    {
        height: auto;
        flex-direction: column;
    }

    .menu a
    {
        display: none;
        padding: 5px 0;
    }

    .icon.on ~ a
    {
        display: block;
    }

    .icon
    {
        display: flex;
    }
}

/* Introduction */
#introduction
{
    max-width: 1000px;
    margin-top: 50px;
    margin: 0 auto;
}

#introduction h2
{
    margin-top: 0;
    font-size: 300%;
    margin: 0;
}

#introduction li
{
    font-size: 200%;
}

#introduction p
{
    font-size: 1.5rem;
}

@media screen and (max-width: 1100px)
{
    #introduction
    {
        margin: 0 50px;
    }

    #introduction li p
    {
        font-size: 1.3rem;
    }

    #introduction div:nth-child(3) p:nth-child(2)
    {
        transform: translate(-50px, 20px);
        font-size: 1rem;
    }

    #introduction h2
    {
        font-size: 2rem;
    }

    #introduction h4
    {
        font-size: 1.5rem;
    }
}

#introduction ul
{
    list-style-type: none;
}

#introduction li::before
{
    content: '';
    transform: translate(-40px,50px);
    border-radius: 50%;
    display: inline-block;
    height: 35px;
    width: 35px;
    background-size: contain;
}

#introduction >*:nth-child(1) li:nth-child(1)::before
{
    background-image: url('img/somebody.svg');
}

#introduction >*:nth-child(1) li:nth-child(2)::before
{
    background-image: url('img/maths.svg');
}

#introduction >*:nth-child(1) li:nth-child(3)::before
{
    background-image: url('img/coding.svg');
}

#introduction >*:nth-child(2) li:nth-child(1)::before
{
    background-image: url('img/france.svg');
}

#introduction >*:nth-child(2) li:nth-child(2)::before
{
    background-image: url('img/english.svg');
}

#introduction >*:nth-child(3) li:nth-child(1)::before
{
    background-image: url('img/phone.svg');
}

#introduction >*:nth-child(3) li:nth-child(2)::before
{
    background-image: url('img/mail.svg');
}

#introduction >*:nth-child(3) li:nth-child(3)::before
{
    background-image: url('img/car.svg');
}


#introduction li h4, #introduction li p
{
    margin: 5px 0;
}

/* Languages */

.background
{
    display: block;
    margin: 0 auto;
}

.title
{
    position: relative;
    opacity: 0;
    top: 0;
    margin: 100px 0;
    padding: 20px;
    font-size: 400%;
    text-align: center;
    color: rgb(122, 122, 122);
    text-shadow: 0.1rem 0.1rem white;
    mix-blend-mode: difference;
}

.languageContainer
{
    width: 100%;
}

.languageContainer .languageBackground:first-of-type
{
    padding-top: 100px;
}

.languageContainer .languageBackground
{
    opacity: 0;
    transition: 0.8s opacity;
}

.languageContainer .languageBackground.active
{
    opacity: 1;
    transition: 0.8s opacity;
}

.languageContainer .languageBackground.active .title
{
    top: -350px;
    opacity: 1;
    transition: 0.8s all;
}

.languageContent
{
    transform: translateY(-300px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.languageContent h1
{
    text-align: center;
    margin-right: 30px;
    font-size: 1.5em;
    padding: 50px;
    width: 200px;
}

@media screen and (max-width: 680px)
{
    .languageContent h1
    {
        font-size: 1em;
    }
}

@media screen and (max-width: 530px)
{
    .languageContainer img
    {
        width: 70%;
    }

    .languageContainer .languageBackground.active .title
    {
        font-size: 2.5rem;
        top: -240px;
        opacity: 1;
        transition: 0.8s all;
    }
}

/* Projets */

#projets
{
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-content: space-around;
    flex-wrap: wrap;
}

#projets h1
{
    width: 100%;
    letter-spacing: 20px;
    text-align: center;
}

@media screen and (max-width: 1100px)
{
    #projets h1
    {
        letter-spacing: 5px;
        text-align: center;
    }
}

#projets img
{
    object-fit: cover;
}

#projets .animatedCard
{
    margin: 50px;
    margin-top: 100px;
}

#projets .animatedCardDescription h1
{
    width: 50px;
    font-size: 1.5rem;
    letter-spacing: 0;
    margin: 0;
    position: relative;
    float: right;
    transform: translate(-20px,0px);
}

@media screen and (max-width: 1100px)
{
    #projets .animatedCardDescription h1
    {
        font-size: 1rem;
    }
}

@media screen and (max-width: 420px)
{
    #projets .animatedCardDescription p
    {
        font-size: 0.7rem;
    }
}

#projets a
{
    color: black;
    text-decoration: none;
}

#projets .animatedCard:hover a:hover
{
    color: blue;
    text-decoration: underline;
}

/* Formations */

#formations
{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    margin-top: 100px;
    height: 70vh;
}

.formationTitle
{
    display: flex;
    justify-content: space-around;;
    margin-bottom: 100px;
}

.formationTitle h1
{
    padding: 0 20px;
}

.formationContent
{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

.overflowBorder h2
{
    width: 221px;
}

.overflowBorder ul
{
    width: 453px;
}

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

    #formations
    {
        height: 800px;
    }

    .formationTitle
    {
        justify-content:left;
        margin: 0 auto;
    }

    .formationContent
    {
        height: 800px;
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 640px)
{
    .formationTitle h1
    {
        padding: 0;
    }
}