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

:root {
    --color-primary: #ffffbc;
    --color-secondary: #000015;
    --color-white: #f0f1fa;
    --color-red: #d3142c;
    --color-secondary1: #191816;
    --border-radius: 25px;
    --body-font-size: 20px;
    --padding-section: 8em 0 8em 0;
    --heading-font-family: 'nunito', sans-serif;
    --body-font-family: 'open sans', sans-serif;
    --shadow: 5px 5px 15px black;
}

/* --------------------------------------- */
/* ----------- TYPOGRAPHIE   ------------- */
/* --------------------------------------- */

@font-face {
    font-family: 'nunito';
    src: url(../../assets/fonts/nunito/nunito-variable.ttf),
        url(../../assets/fonts/nunito/nunito-variable.woff),
        url(../../assets/fonts/nunito/nunito-variable.woff2);
}

@font-face {
    font-family: 'open sans';
    src: url(../../assets/fonts/open_sans/opensans-variable.ttf),
        url(../../assets/fonts/open_sans/opensans.woff),
        url(../../assets/fonts/open_sans/opensans.woff2);
}


/* --------------------------------------- */
/* ------------- GLOBAL ------------------ */
/* --------------------------------------- */


body {
    margin: 0;
    line-height: 1.5;
    font-size: var(--body-font-size);
    font-weight: 400;
    background-color: var(--color-secondary);
    font-family: 'open sans', sans-serif;
    color:var(--color-primary);
    font-size: var(--body-font-size);
}

h1,
h2,
h3,
h4 {
    font-family: 'nunito', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 5em;
    color: var(--color-primary);
}

h2 {
    font-size: 2.82em;
}

h3 {
    font-size: 1.999em;
}


img {
    width: 100%;
    /*border-radius: var(--border-radius);*/
    display: block;
    margin: 0;
    object-fit: cover;
}

figcaption {
    color: var(--color-primary);
}


a {
    /*color: var(--color-primary);*/
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

a:active {
    color: var(--color-red);
}

.wt-containercontenu {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.hide {
    display: none;
}

/* --------------------------------------- */
/* --------------- HEADER ---------------- */
/* --------------------------------------- */


header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em 0 1em 0;
    position: fixed;
    z-index: 100;
}

header .contenu-interne {
    width: 30%;
    display: flex;
    background-color: rgba(255, 20, 44, 0.6);
    backdrop-filter: blur(25px);
    box-shadow: 5px 5px 15px black;
    animation: fade-down 0.5s 0.4s backwards;
    padding: 1em 0 1em 0;
    border-radius: var(--border-radius);
}

header .contenu-interne nav {
    width: 100%;
}

header a {
    font-family: var(--heading-font-family);
    font-weight: 800;
}



header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}


header a {
    color: var(--color-secondary);
    font-family: var(--heading-font-family);
}

/* --------------------------------------- */
/* --------------- INTRO ----------------- */
/* --------------------------------------- */

#intro {
    padding: var(--padding-section);
}

/* --------------------------------------- */
/* --------------- PROJETS --------------- */
/* --------------------------------------- */

.grid {
    column-count: 3;
    gap: 1em;
}

.grid a {
    text-align: center;
    color: var(--color-white);
}

#projets {
    padding-bottom: 8em;
}


figure {
    margin: 1em;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}



@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/*a:hover figcaption {
    height: 25%;
    padding: 1em;
    animation: fade-up 0.5s 0.4s backwards;
}*/

.grid a:hover figcaption {
    color: var(--color-red);
}

/* --------------------------------------- */
/* ----------- BUTTON OPTION ------------- */
/* --------------------------------------- */

.option {
    position: fixed;
    bottom: 4em;
    right: 1em;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    z-index: 99;
}

.option button {
    color: var(--color-primary);
    background-color: var(--color-primary);
    border: 0;
    box-shadow: 0px 0px 10px #000015;
    width: 4em;
    height: 4em;
    border-radius: 50px;
    margin: 0.5em;
}

#scrollUp {
    background-image: url(../../assets/img/global/fleche.svg);
    background-repeat: no-repeat;
    background-position: center;
    animation: fade-up 0.5s 0.4s backwards;
    background-size: 2em;
}

#scrollUp:hover {
    cursor: pointer;
}

#scrollUp a {
    color: var(--color-secondary);
}



/* --------------------------------------- */
/* -------------- FOOTER   --------------- */
/* --------------------------------------- */

footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 20, 44, 0.6);
    backdrop-filter: blur(25px);
    border-radius: 25px 25px 0 0;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 5px -1px 15px black;
}

footer a {
    color: var(--color-secondary);
}

footer a:hover p {
    color: var(--color-primary);
}

footer p {
    color: var(--color-secondary);
}

footer>div {
    display: flex;
    justify-content: space-between;
    width: 95%;
}


footer div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 10%;
}

footer div:nth-child(2) a {
    display: flex;
    align-items: center;
    width: 1.5em;
}

footer div:nth-child(2) a:hover svg path {
    fill: var(--color-primary);
}

/*footer div:nth-child(2) button {
    width: 4em;
    height: 4em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background-image: url(../assets/img/instagram.png);
    background-position: center;
    background-repeat: no-repeat;
}*/

footer svg {
    width: 2em;
}

footer svg path {
    stroke: var(--color-secondary);
    stroke-width: 0;
    fill: var(--color-secondary);
}

/* ----------------------------------------*/
/* ---------------------------------------- */
/* ----------- MEDIA QUERIES PHONE -------- */
/* ----------------------------------------*/
/* ----------------------------------------*/

@media (min-width: 300px) and (max-width:700px) {


    /* ---------------------------------------- */
    /* ---------------- HEADER  --------------- */
    header .contenu-interne {
        width: 75%;
    }
    /* ---------------------------------------- */
    /* ---------------- INTRO  --------------- */
    #intro {
        text-align: center;
        padding: 5em 0 3em 0;
    }

    #intro h1 {
        font-size: 3em;
    }

    /* ---------------------------------------- */
    /* ---------------- GRID  --------------- */
    #projets .grid {
        width: 100%;
        padding: 0;
        gap: 0.5em;
        column-count: 2;
    }

    #projets {
        padding-bottom: 3em;
    }

    #projets .grid a {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }

    figure {
        margin: 5px;
    }

    #projets .grid a figcaption {
        font-size: 16px;
    }

    /* ---------------------------------------- */
    /* ---------------- FOOTER  --------------- */
    footer>div {
        flex-direction: column;
        text-align: center;
    }

    footer div:nth-child(2) {
        margin: auto;
        gap: 1em;
        width: 100%;
        justify-content: center;
    }
    /* ---------------------------------------- */
    /* ---------------- OPTION BUTTON  --------------- */
    .option {
        right: 1em;
        bottom: 2em;
    }

}

/* ----------------------------------------*/
/* ---------------------------------------- */
/* ----------- MEDIA QUERIES TABLET PORTRAIT  ------ */
/* ----------------------------------------*/
/* ----------------------------------------*/



@media (min-width: 700px) and (max-width:1024px) {
    /* ---------------------------------------- */
    /* ---------------- FOOTER  --------------- */

    header .contenu-interne {
        width: 50%;
    }

    #intro {
        padding: 8em 0 0 0;
        text-align: center;
    }

}