@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans&family=Roboto&display=swap');

:root {
    --main: #587494;
    --text: #212121;
    --white: #fffdfd;
    --highlight: #e08e8e;
    --radiusBox : 5px;

}

*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

main {
    padding: 20px;
}

.highlight {
    color: var(--highlight);
}

.gradient {
    background: rgb(88, 116, 148);
    background: linear-gradient(180deg, rgba(88, 116, 148, 1) 0%, rgba(33, 33, 33, 1) 100%);
}

/*header*/

header {
    background-color: var(--main);
    display: flex;
    gap: 1em;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    box-shadow: #49607a 5px 5px 5px;
    max-height: 86px;
}

.mainMenu .ulMenu {
    list-style: none;
}

.mainMenu .ulMenu li {
    display: inline-block;
    margin-right: 2em;
    padding: 0.5em;
    border-radius: 10px;
    cursor: pointer;

}

.mainMenu .ulMenu li a {
    text-decoration: none;
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    transition: ease 0.2s;


}

.mainMenu .ulMenu li:hover {
    background-color: var(--white);
    transition: ease 0.2s;
}

.mainMenu .ulMenu li:hover a {
    color: var(--text);
}

.sectionLogo {
    margin-left: 2em;
}

.sectionLogo img {
    width: 50px;
    transition: ease 0.2s;

}

.sectionLogo img:hover {
    transform: scale(1.1);
    transition: ease 0.2s;
}

/*footer*/

#footer {
    background-color: var(--text);
    color: white;
    display: grid;
    grid-gap: 2em;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 3fr 1fr;
    padding: 1em;
    box-shadow: #212121 -5px -2px 5px;
}

#footer ul {
    list-style: none;
}

footer a:not(.internalLink) {
    color: var(--white);
    padding: 1em;
    text-decoration: none;
}

.internalLink {
    text-decoration: none;
    color: var(--white);
}

#footer a:hover {
    text-decoration: underline;
}

#footer li {
    padding: 1em;
    border-radius: 10px;
    text-align: center;
}


.sectionSocial ul {
    display: grid;
    grid-gap: 0.5em;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    width: fit-content;
    margin: 0 auto;
}

.sectionSocial li {
    width: fit-content;
}

.sectionSocial img {
    width: 40px;
    transition: ease 0.2s;
    filter: grayscale(100);
}

.sectionSocial img:hover {
    transform: scale(1.2);
    transition: ease 0.2s;
    filter: grayscale(0);
}

.footerSection {
    margin: 1em;
    background-color: #2b2b2b;
    border-radius: 15px;
    padding: 1em;

}

#footer h2 {
    text-align: center;
    margin-bottom: 1em;
    margin-top: 0.5em;
}

#footer aside {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.internalLink {
    padding: 0;
}

.footerNav .ulMenu li:not(:last-child) a {
    border-bottom: solid 1px var(--white);
}


/*todo il s'agit du blog, a faire éventuellement*/


/*Pastille cv*/
.myCV {
    color: var(--white);
    padding: 0.5rem;
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem ;
    cursor: pointer;
    /*width: 50px;*/

}

.myCV a {
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
    transform: translateX(10px);
    text-decoration: none;
    color: var(--white);
    font-size: 1rem;
    pointer-events: none;
}
.myCV a.show {
    opacity: 1;
    transform: translateY(0);
    display: inline-block;
    transition: ease 0.2s;
}
.myCV a:hover {
    text-decoration: underline;
}

header .active {
    background-color: var(--highlight);
}

header .mainMenu .ulMenu .active a {
    color: var(--text);
}

footer .active a{
    color: var(--highlight);
}
@media screen and (max-width: 768px) {

    header {
        flex-direction: column;
        max-height: fit-content;
        gap: 0;
        padding-bottom: 0;
    }


    .mainMenu .ulMenu {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height ease 0.2s;
        background-color: var(--white);
        width: 80vw;
        border-radius: var(--radiusBox);
        margin-bottom: 3rem;
    }

    .mainMenu .ulMenu.show {
        overflow: auto;
        max-height: 300px;
        transition: max-height ease 0.2s;

    }

    .mainMenu .ulMenu li {
        border-bottom: 1px solid rgba(255,255,255,.5);
        border-radius: 0;
        text-align: center;
        padding: 0.5rem;
        border-bottom: #212121 1px solid;
        margin: 0 2rem;



    }

    .mainMenu .ulMenu li:hover {
        background-color: var(--main);
        color: var(--white);
        transition: ease 0.2s;
    }

    .mainMenu .ulMenu li a {
        color: var(--text);
        font-size: 1.2rem;
    }

    #footer {
        display: flex;
        flex-direction: column;
    }

    .footerSection {
        margin: 0.5em;
    }
}
