/* BOX-SIZING */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/*POLICES*/

@font-face {
    font-family: "lato";
    src: url("./fonts/Lato.woff2") format("woff2"),
        url("./fonts/Lato.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "lex";
    src: url("./fonts/Lexend-Light.woff2") format("woff2"),
        url("./fonts/Lexend-Light.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}



/* HTML ET BODY -> NAVIGATION HORIZONTALE */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 1rem;
    scroll-behavior: smooth;
}


body {
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #FCF8F8;
    background-image: url(./img/bg_.png);
    overflow-x: hidden;
}

.wrap {
    display: flex;
    flex-direction: column;
}

.base {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

/* POSITIONNEMENT PAGES PAR RAPPORT MENU */

.container {
    margin-top: 10px;
    margin-left: 55px;
    margin-right: 55px;
    background-color: #ffff;
    margin-bottom: 15px;
    cursor: default;
    border-radius: 20px;
    border: solid #ceb69e;
}

/* MENU FIXE */


menu {
    background-color: #ceb69e;
    width: 100vw;
    padding-bottom: 12px;
    padding-top: 12px;
    padding-left: 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    box-shadow: 4px 4px #ceb69e33;
    border-bottom: #c49a7c17 solid 1px;
    flex-wrap: wrap;
}

menu a {
    font-family: 'lex';
    color: #fcf8f8;
    display: inline;
    font-size: 1.8vw;
    text-decoration: none;
    margin-right: 65px;
    cursor: pointer;
}

menu a:hover {
    transition: ease-in 0.6s;
    color: #8c5e3d;
}

.logo {
    width: 30px;
    /* position: fixed; */
}

/* IMAGE COUVERTURE PROJET */
.cover {
    width: 350px;
    padding-right: 20px;
}

h1 {
    color: #8c5e3d;
    /* width: 100%; */
    border-radius: 20px 20px 0px 0px;
    margin: 0;
    padding-left: 30px;
    font-size: 1.9vw;
    letter-spacing: 2px;
    text-align: left;
    font-family: 'lex';
    margin-left: 0;
    flex-grow: 100;
}

.wrap h1 {
    display: none;
}


/* PROJETS */

.baseun {
    width: 100%;
}

.containerun {
    padding-top: 25px;
    padding-left: 3%;
}

.projets {
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding-bottom: 10px;
}

::-webkit-scrollbar-track {
    background-color: #ffff;
}

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
    background-color: #ffff;
}

::-webkit-scrollbar-thumb {
    background-color: #8c5e3d;
    border-radius: 8px;
}

.boite {
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    height: 34vw;
    justify-content: space-between;
    padding-bottom: 20px;
    gap: 55px;
    overflow-x: scroll;
    overflow-y: hidden;
    flex-direction: row;
    margin-right: 10px;
    padding-left: 30px;
}

.boite a {
    color: #8c5e3d;
    text-decoration: none;
    text-align: center;
    font-size: 1.2vw;
    font-weight: bold;
    font-family: 'lato';
    transition: ease-in-out 0.15s;
    margin-bottom: 65px;
    cursor: default;
}

.boite a:active {
    pointer-events:none;
}

.boite a:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}

/* GALLERIE PROJET */

.item {
    background-color: #ffff;
    transition: all 400ms ease-in-out;
    border-radius: 20px 20px 20px 20px;
    border: solid #ceb69e;
    width: 32vw;
    padding-bottom: 5px;
}


/* LIENS EN HOVER */


#hover-content {
    padding: 4px;
    font-size: 1.5vw;
    margin-top: 10px;
}

.boite a .un {
margin-left: 20px;
}

.boite a:last-of-type {
    margin-right: 40px;
}

.un, .deux, .trois, .quatre, .cinq,.six, .sept, .huit {
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 6px 8px #ceb69e1e;
}

.projets .proj a {
    margin-bottom: 10px;
    width: 30%;
    margin-top: 10px;
}


.container p {
    margin-top: 5px;
    font-size: 1.5vw;
    font-family: 'lex';
    padding-bottom: 10px;
    text-align: left;
    color: #bea287;
}

.intro_projet {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 35px;
    margin-right: 35px;
    margin-bottom: 0;
}

.legende_projet {
    width: 40%;
    text-align: justify;
    text-justify: inter-word;
    margin-left: 35px;
    margin-right: 35px;
    margin-top: 0;
    margin-bottom: 0;
    color: #ceb69e;
}

.legende_projet .suite {
    text-align: left;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.legende_projet .titre_legende {
    margin: 0;
}

.titre_legende {
    color: #8c5e3d;
    font-family: 'lex';
    display: inline-block;
    padding: 0px 8px 0px 0px;
    font-size: 1.7vw;
    line-height: 1.5;
    /*background-image: linear-gradient(to bottom, transparent 70%, #ceb69e41 20%);*/
}

h2 {
    width: 100%;
    margin-left: 25px;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* LIENS EXTERNES */

.lien {
    color: #fcf8f8;
    border-radius: 25px;
    padding: 8px;
    opacity: 95%;
    display: block;
    text-align: center;
    margin-top: 25px;
    text-decoration: none;
    background-color: #ceb69e;
    transition: ease-in-out 0.6s;
    width: 45%;
    margin: auto;
}

.lien:hover {
    color: #8c5e3d;
    cursor: pointer;
}

/* BOTTOM link */

.bottomnav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #ceb69e;
    width: 100%;
    font-family: 'lex';
}

.bottomlink {
    width: 25%;
    display: inline-flexbox;
}


/* FOOTER */

footer {
    background-color: #FCF8F8;
    margin-top: 10px;
    padding-bottom: 8px;
    box-shadow: 28px 4px #ceb69e33;
    border-top: #c49a7c17 solid 1px;
}

.logo_footer {
    background-image: url(./img/Logo_kfp_light_brown.png);
}

.liens_footer {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: wrap;
    padding: 5px;
    justify-content: center;
    align-items: center;
}

.lien_footer {
    text-decoration: none;
    text-align: center;
    padding: 5px 40px;
    transition: all 400ms ease-in-out;
    font-family: 'lato';
    color: #ceb69e;
    font-size: 1.4vw;
    font-family: 'lex';
}

.lien_footer:hover {
    color: #8c5e3d;
    cursor: pointer;
}


/* PARTIE RESPONSIVE */

/* RESPONSIVE ECRAN ENTRE 900 ET 1000PX */


/* RESPONSIVE ECRAN MAXIMUM 1000PX */
@media only screen and (max-width:1000px) { 

    body {
        overflow-x: hidden;
    }

    .wrap {
        display: flex;
    }

    menu h1 {
        display: none;
    }

    .wrap h1 {
        display: block;
        order: -4;
        margin-top: 80px;
        text-align: center;
        font-size: 2.6vw;
        letter-spacing: 0px;
    }

    .baseun {
        order: 2;
        margin-top: 0;
    }

    /* MENU */
    menu {
        margin-top: 0;
        text-align: center;
        width: 100%;
        background-color: #ceb69e;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        border: none;
        position: fixed;
        z-index: 10000;
        padding-bottom: 8px;
        padding-top: 8px;
        position: fixed;
    }

    menu a {
        padding: 5px;
        font-size: 2vw;
        display: inline-block;
        margin-right: 0;
        color: #fcf8f8;
        padding-right: 35px;
    }

    .logo {
        display: none;
    }

    /* PROJETS */

    #un {
        margin-top: 40px;
    }

    .container {
        margin-top: 10px;
        max-height: none;
        margin-left: 45px;
        margin-right: 45px;
        margin-bottom: 0;
    }

    /* TAILLE TEXTES */
    .container p {
        font-size: 1.8vw;
        margin-left: 15px;
        margin-right: 15px;
        padding-bottom: 10px;
    }

    .containerun {
        margin-top: 0px;
        padding-left: 0;
        margin-left: 6%;
        margin-right: 6%;
        overflow-y: hidden;
    }

    .legende_projet {
        width: 90%;
        margin-top: 5%;
        /* display: flex; */
        flex-direction: column;
    }

    .titre_legende {
        font-size: 2vw;
        width: fit-content;
    }

    .boite {
        flex-wrap: wrap;
        overflow-wrap: normal;
        overflow-x: hidden;
        height: 100%;
        justify-content: center;
        align-items: center;
        gap: 40px;
        padding-left: 0px;
    }

    .item {
        width: 100%;
    }

    .boite a:hover {
        cursor: default;
    }

    .boite a {
        width: 46%;
        height: 32vw;
        text-align: center;
        pointer-events: none;
        margin-right: 0px;
    }

    #hover-content {
        font-size: 2vw;
    }

    .boite a .un {
        padding-left: 0px;
        margin-left: 0px;
    }

    .boite a:last-of-type {
        margin-right: 0px;
    }

    .boite a:hover {
        transform: scale(1);
        transition: transform 0.4s;
    }

    .lien_footer {
        font-size: 2vw;
    }

    .lien {
        font-size: 2.2vw;
        margin-bottom: 10px;
      	order : 5;
    }

    .flex {
        flex-direction: column;
    }

}

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

    menu a {
        font-size: 2.8vw;
    }

    .containerun {
        margin-top: 10px;
        padding-top: 10px;
    }

    .boite a {
        width: 93%;
        height: 60vw;
        text-align: center;
        pointer-events: none;
        margin-right: 0px;
        margin-bottom: 55px;
    }

    .container p, .titre_legende {
        font-size: 2.4vw;
    }

    #hover-content {
        font-size: 2.8vw;
    }

    .container {
        margin-top: 30px;
        margin-left: 55px;
        margin-right: 55px;
    }

}

/* RESPONSIVE ECRAN MAX 500PX */

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

    /* TAILLE TXT */
    h1 {
        text-align: center;
        order: +4;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    menu a, h1 {
        padding-right: 0;
        padding-left: 0;
    }

    menu h1 {
        display: none;
    }

    .wrap h1 {
        display: block;
        order: -4;
        margin-top: 75px;
        text-align: center;
    }

    .container {
        margin-top: 25px;
        margin-left: 25px;
        margin-right: 25px;
    }
    
    .container p, .lien, .lien_footer, menu a, #hover-content, .wrap h1, .titre_legende {
        font-size: 4.2vw;
    }

    .containerun {
        margin-left: 1%;
        margin-right: 1%;
    }

    .base {
        justify-content: space-around;
        align-content: center;
    }

    .lien {
        width: 100%;
        padding: 15px;
    }

    .liens_footer {
        flex-direction: column;
    }

}
