@font-face {
    font-family: "Swansea";
    src: url("./../font/Swansea-q3pd.ttf");
}
@font-face {
    font-family: "Grandmora";
    src: url("./../font/Grandmora.ttf");
}
@font-face {
    font-family: "Luciole";
    src: url("./../font/Luciole-Regular.ttf");
}

html{
    font-size: 18px;
    font-family: "Swansea";
    overflow-x: hidden;
}
a
{
    text-decoration: none;
    color: black;
}
h2
{
    font-family: "Grandmora";
    font-size: 3rem;
    margin-top: 0px;
    margin-bottom: 20px;
}


header
{
    position: fixed;
    top:0;
    left: 0;
    z-index: 1000;
    min-height: 10vh;
    width: 97vw;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: row;
}
#nav_bar
{
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    min-height: 10vh;
    z-index: 999;
    background-color: white;
    opacity: 50%;
}
header i
{
    font-size: 30px;
}
header #bouton_burger
{
    display: none;
}
header #menu
{
    display: flex;
    align-items: center;
}
header #menu #menu_cross
{
    display: none;
}
header nav
{
    margin-left: auto;
    margin-right: 30px;
}
header nav a:hover
{
    text-decoration: underline;
}
header #bouton_accessibilite
{
    cursor: pointer;
}
header #menu_accessibilite
{
    display: none;
}
header #menu_accessibilite.menu_actif
{
    display: flex;
    flex-direction: column;
    margin-bottom: -95px;
    margin-top: 3px;
}

#bandeau_heros
{
    height:100vh;
    display: flex;
	flex-direction: column;
    align-items: center;
	justify-content: end;
}
#bandeau_heros img
{
	position: absolute;
	z-index: 0;
	width: 100vw;
	height: 100vh;
	top: 0;
    object-fit: cover;
}
#bandeau_heros h1
{
	z-index: 10;
	margin-bottom: 10%;
    font-family: "Grandmora";
    color: white;
    font-size: 5rem;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
#bandeau_heros i
{
	z-index: 10;
	color: white;
	margin-bottom: 3vh;
}

.bloc
{
    background-color: #4EA077;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 50px 20px 50px;
    width:70%;
    text-align: center;
    border-radius: 20px;
}

#biographie > div
{
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}
#biographie p
{
    width: 50%;
    text-align: left;
}
#biographie img
{
    width: 400px;
    height: 300px;
    object-fit:cover;
    border-radius: 20px;
}

#projets ul
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
#projets li
{
    list-style-type: none;
    text-decoration: underline;
    font-weight: bold;
    cursor:pointer;
}
#projets #voir_plus
{
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: block;
    padding: 5px;
    margin-top: 10px;
}
#projets #voir_plus p
{
    display: inline;
}
#projets #images
{
    display: grid;
    grid-template-rows: repeat(10, 2vw);
    grid-template-columns: repeat(10, 1fr);
    grid-gap: 10px;
}
#projets #images a
{
    position: relative;
}
#projets #images .notification
{
    width: 15px;
    height: 15px;
    border-radius: 10px;
    background-color: red;
    position: absolute;
    right: 0px;
}
#projets #images .cacher
{
    display: none;
}
#projets #images img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    cursor: pointer;
}
#projets .plus
{
    display: none;
}
#projets .plus.visible
{
    display: block;
}


/* Popup */
#popup
{
    display: none;
}
#projets .popup-active
{
    display: block;
}
#projets #popup_content
{
    position: fixed;
    height: 76vh;
    width: 66vw;
    z-index: 1000;
    background-color: #4EA077;
    top: 12vh;
    left: 17vw;
}
#projets #popup_cross
{
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}
#popup_content > div
{
    display: none;
}
#popup_content .content-active
{
    display: block;
    height: 85%;
}
#popup #popup_background
{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 40%;
    background-color: black;
    z-index: 90;
}

#popup .content-active > div
{
    display: grid;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
}
#popup .content-active .content-images
{
    grid-area: 1 / 1 / 3 / 2;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100%;
}
#popup .content-active .content-images > img
{
    max-width: 75%;
    max-height: 70%;
}
#popup .content-active .content-images .content-images-list
{
    max-height: 25%;
}
#popup .content-active .content-images .content-images-list img
{
    width: 4vw;
    max-height: 100%;
    cursor: pointer;
}
#popup .content-active .description-projet
{
    grid-area: 1 / 2 / 2 / 3;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
#popup .content-active .description-projet h4
{
    text-align: center;
}
#popup .content-active .description-compétences
{
    grid-area: 2 / 2 / 3 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#popup .description-compétences div
{
    display: flex;
    flex-wrap: wrap;
}
#popup .description-compétences img
{
    width: 50px;
}
#popup .description-compétences i
{
    font-size: 30px;
}


#compétences > div
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
#compétences figure
{
    height: 7vw;
    width: 7vw;
}
#compétences figure > img
{
	width: 4vw;
	height: 4vw;
}

#contact
{
    background-color: #213E2F;
    margin-top: 50px;
    color: white;
    padding: 10px 10px 20px 10px;
    width: 100vw;
    margin-left: -1%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact h2
{
    font-size: 3.5rem;
}
#contact > div
{
    font-size: 1.5rem;
    display: flex;
    width: fit-content;
}
#contact figcaption
{
    display: inline;
}
#contact #cv
{
    color: white;
    cursor: pointer;
}

footer
{
    text-align: center;
    background-color: #060c09;
    color: white;
    padding: 10px;
    width: 100vw;
    margin-left: -1vw;
    margin-bottom: -1vh;
}
footer #footer_mobile
{
    display: none;
}
footer a
{
    color: white;
}



/* RESPONSIVE */

@media screen and (max-width : 500px) {
    
    h1
    {
        text-align: left;
    }

    h2
    {
        font-size: 2.5rem;
    }

    header #bouton_burger
    {
        display: block;
        z-index: 101;
    }
    header #menu
    {
        display: none;
    }
    header #menu.visible
    {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        z-index: 100;
        background-color: #2f6147;
    }
    header #menu nav
    {
        height: 75%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    header #bouton_accessibilite
    {
        display: none;
    }
    header #menu_accessibilite
    {
        display: flex;
        flex-direction: row;
    }


    .bloc
    {
        padding: 20px 30px 20px 30px;
        width: 75%;
    }

    #bandeau_heros img
    {
        object-position: 65% 50%;
    }

    #biographie > div
    {
        flex-direction: column-reverse;
        margin-top: 0px;
    }
    #biographie p
    {
        width: 100%;
        text-align: justify;
    }
    #biographie img
    {
        max-width: 100%;
        object-fit: contain;
    }


    #projets ul
    {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
        padding-left: 0;
    }
    #projets #images
    {  
        grid-template-rows: repeat(20, 4vw);
        grid-template-columns: repeat(4, 1fr);
    }

    #popup .content-active > div
    {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 10px;
    }
    #projets #popup_content
    {
        position: fixed;
        height: 90vh;
        width: 90vw;
        z-index: 1000;
        background-color: #4EA077;
        top: 5vh;
        left: 5vw;
        overflow-x: scroll;
    }


    #compétences > div
    {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    #compétences figure
    {
        height: fit-content;
        width: 12vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }
    #compétences figure > img
    {
        width: 12vw;
        height: 12vw;
    }


    #contact
    {
        margin-left: -2%;
    }
    #contact > div 
    {
        flex-direction: column;
        font-size: 1rem;
    }
    #contact figure
    {
        margin-top: 0px;
    }


    footer
    {
        margin-left: -2vw;
        font-size: .8rem;
    }
    footer #footer_mobile
    {
        display: inline;
    }
    footer #footer_pc
    {
        display: none;
    }
    footer br
    {
        margin-top: 5px;
    }
    
}