html {
    scroll-behavior: smooth;
    --text-color: #ebd6c5;
    --hover-general: rgb(185, 104, 82);
    --hover-graphisme: rgb(235, 214, 197);
    --hover-photo: rgb(185, 104, 82);
    --logonav-height: 60px;
}

body {
    font-family: 'Chillax', sans-serif;
    font-weight: 200;
    background: #1e1511;
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.5;
    margin: 10px;
}


@font-face {
    font-family: Chillax;
    src: url(fonts/Chillax-Light.eot);
    src: url(fonts/Chillax-Light.eot#iefix) format("embedded-opentype"),
        url(fonts/Chillax-Light.woff2) format("woff2"),
        url(fonts/Chillax-Light.woff) format("woff"),
        url(fonts/Chillax-Light.ttf) format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: Chillax;
    src: url(fonts/Chillax-Regular.eot);
    src: url(fonts/Chillax-Regular.eot#iefix) format("embedded-opentype"),
        url(fonts/Chillax-Regular.woff2) format("woff2"),
        url(fonts/Chillax-Regular.woff) format("woff"),
        url(fonts/Chillax-Regular.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: Chillax;
    src: url(fonts/Chillax-Medium.eot);
    src: url(fonts/Chillax-Medium.eot) format("embedded-opentype"),
        url(fonts/Chillax-Medium.woff2) format("woff2"),
        url(fonts/Chillax-Medium.woff) format("woff"),
        url(fonts/Chillax-Medium.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
}

.bold {
    font-weight: 500;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .home img {
        margin-bottom: 20px;
    }

    .projet img{
        padding-bottom: 20px;
    }

    nav h1 {
        display: inline;
        font-size: 18px;
        font-weight: 400;
    }

    /*
    nav a {
        margin-left: 5px;
    }
*/
    .logo{
        max-height: 200px;
        justify-self: center;
    }

    .desktop{
        display: none;
    }
}

@media (min-width: 640px) {
    body {
        padding: none;
    }

    .home {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .projet {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding-left: 50px;
        padding-right: 50px;
    }

    body {
        padding: 10px 35px 10px 35px;
    }

    nav h1 {
        margin: 0;
        display: inline;
        font-size: 25px;
        font-weight: 400;
    }



    .logo {
        max-height: 300px;
        justify-items: right;
    }
    
    .desktop{
        display: none;
    }
}

@media (min-width: 960px) {
    .home {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-left: 150px;
        padding-right: 150px;

    }

    .deuxcolonnes{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;        
    }
    
    .troiscolonnes {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }

    .quatrecolonnes{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 24px;        
    }

    .projet {
        padding-left: 100px;
        padding-right: 100px;
    }

    .desktop{
        display: inline;
    }
}

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

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

.graphisme a:hover {
    color: var(--hover-graphisme);
}

.graphisme a:hover h2 {
    color: var(--hover-graphisme);
}

a.graphisme:hover h2 {
    color: var(--hover-graphisme);
}

.graphisme a:hover img {
    outline: solid 2px var(--hover-graphisme);
}

a.graphisme:hover img {
    outline: solid 2px var(--hover-graphisme);
}

.photographie a:hover {
    color: var(--hover-photo);
}

.photographie a:hover h2 {
    color: var(--hover-photo);
}

a.photographie:hover h2 {
    color: var(--hover-photo);
}

.photographie a:hover img {
    outline: solid 2px var(--hover-photo);
}

a.photographie:hover img {
    outline: solid 2px var(--hover-photo);
}


.iconeprojet {
    transition: 0.4s;
    display: grid;
    gap: 0px;
}

.one,
.two {
    grid-column: 1/-1;
    grid-row: 1/2;
    transition: 0.2s;
}

.iconeprojet:hover .one {
    opacity: 0;
}

.text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0px;

}

.text h2 {
    color: var(--text-color);
    font-weight: 400;
    margin: 0px;
    margin-bottom: 10px;
    padding-top: 10px;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}



.logonav {
    height: var(--logonav-height);
    display: inline;
    vertical-align: middle;
}

nav {
    grid-column: 1/-1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    text-align: right;
    margin-bottom: 30px;
    font-size: 25px;
    justify-content: right;
    align-items: center;
    
}

nav .current {
    color: var(--hover-general);
}

.graphisme nav .current {
    color: var(--hover-graphisme);
}

.photographie nav .current {
    color: var(--hover-photo);
}

.intro {
    grid-column: 1/3;
}

h1.b{
    font-size: 17px;
    color: rgb(110, 57, 43);
}

h1.a{
    font-size: 17px;
    color: rgb(235, 214, 197);
}

h2 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-color);
}

h3 {
    font-size: 22px;
    font-weight: normal;
    grid-column: 1/3;
}

p {
    margin: 0;
}

.premier {
    grid-column: 1/2;
}

ul {
   
    margin: 0;
    padding: 0;

}

li {
    list-style: none;
    line-height: 1.5;
    margin: 0;
    padding: 0;

}

.year {
    color: var(--hover-general);
    padding: 3px 10px 3px 10px;
}

.home p {
    grid-column: 2/-1;
}



/*projet*/

.projet p {
    grid-column: 1/-1;
}

.titres{
    color:rgb(230, 138, 0);
    
}

.projet a {
    line-height: 48px;
}

.projet img {
    justify-self: center;
    cursor: pointer;
}

.projet .large {
    grid-column: 1/-1;
}



/*image plein écran*/

#fullImgBox{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
}

#fullImg{
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    align-self: center;
    justify-self: center;
}

#closeFullImg{
    position: fixed;
    top: 5px;
    right: 20px;
    cursor: pointer;
    font-size: 2em;
}