

html{
    scroll-behavior: smooth;    /* exercice vu en cours */
}
body{
    margin: 150px;
    background-color: #e9e9e9;
    line-height: 1.4;

}
h3{
    font-family: Wendy One;
}

.backtotop{
    position: fixed;
    right: 50px;
    bottom: 20px;
    display: none;
    font-family: jost;
}
.backtotop--show{
    display: inline;
    background-color: #242424;
    color: #e9e9e9;
    border-radius: 100px;
    padding: 30px;
    text-decoration: none;
}

ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
}
nav{
    height: 100px;
    background-color: #242424;
    display: flex; 
    margin-left: -150px;
    margin-top: -150px;    
    z-index: 10;
    width: 100vw;
    justify-content: space-between;
    align-items: center;
    color: #e9e9e9;
}
.menu__list{
    display: flex;
    margin-right: 150px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    font-size: 40px;
    font-family: jost;
}
.menu__list li{
    margin-left: 44px;
    white-space: nowrap;
}
.menu__logo{
    margin-left: 150px;
    font-size: 60px;
    font-family: Wendy One;
}
.menu__logo a {
    color: #e9e9e9;
    text-decoration: none;
}

header{
    width: 100vw;
    position: relative;
    margin:0 -150px;
    z-index: 1;
    line-height: 1.4;
}
header img{
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
}
.rond{
    display: flex;
    width: 235px;
    height: auto;
    border-radius: 500px;
    z-index: 3;
    margin-top: -392px;
    margin-left: 150px;
}
.container{
    width: 1140px;
    justify-self: center;
    height: 886px;
    display: grid;
    margin-top: 158px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    z-index: 4;

    grid-template-areas: 
    "tr tr un"
    "dx qt un"
    "sx cq un"
    ;
}

.box{
    background-color: none;
    border-radius: 10px;
}
.box1{
    grid-area: un;
    background-color: #242424;
    font-size: 20px;
    line-height: 1.6;
    color: #e9e9e9;
    font-family: jost;
    display: block;
}
.box1 h2{
    font-size: 40px;
    font-family: wendy one;
    line-height: 1.6;
    justify-self: center;
}
.box1 h3{
    font-size: 30px;
    justify-self: center;
}
.box1 ul li{
    justify-self: left;
    line-height: 1.6;
}
.box2{
    grid-area: dx;
    position: relative;
}
.box2 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 15px;
}
.box2 h3{
    z-index: 1;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #242424;
    color: #e9e9e9;
    font-size: 40px;
    margin-bottom: 0;
    object-fit: fill;
    transition: color 0.3s;
}
.box2:hover h3{
    color: #242424;
    background-color: #e9e9e9;
}
.box3{
    grid-area: tr;
    background-color: none;
}
.box4{
    grid-area: qt;
    position: relative;
}
.box4 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 15px;
}
.box4 h3{
    z-index: 1;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #242424;
    color: #e9e9e9;
    font-size: 40px;
    margin-bottom: 0;
    object-fit: fill;
    transition: color 0.3s;
}
.box4:hover h3{
    color: #242424;
    background-color: #e9e9e9;
}
.box5{
    grid-area: cq;
    position: relative;
}
.box5 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 15px;
}
.box5 h3{
    z-index: 1;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #242424;
    color: #e9e9e9;
    font-size: 40px;
    margin-bottom: 0;
    object-fit: fill;
    transition: color 0.3s;
}
.box5:hover h3{
    color: #242424;
    background-color: #e9e9e9;
}
.box6{
    grid-area: sx;
    position: relative;
}
.box6 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 15px;
}
.box6 h3{
    z-index: 1;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #242424;
    color: #e9e9e9;
    font-size: 40px;
    margin-bottom: 0;
    object-fit: fill;
    transition: color 0.3s;
}
.box6:hover h3{
    color: #242424;
    background-color: #e9e9e9;
}


.janus{
    display: grid;
}
.janus h2{
    justify-self: center;
    margin: 100px 0;
    font-family: Wendy One;
    font-size: 40px;
}
.janus a{
    justify-self: center;
}
.janus img{
    width: auto;
    height: auto;
    justify-self: center;
}
.info h2{
    justify-self: center;
    margin: 40px 0;
    font-family: Wendy One;
    font-size: 40px;
}
.info p{
    max-width: 650px;
    height: auto;
    display: flex;
    justify-self: center;
    font-family: jost;
    margin-bottom: 70px;
}
footer{
    height: 200px;
    margin: 0 -200px;
    margin-bottom: -150px;
    display: flex;
    justify-content: center;
    background-color: #242424;
    color: #e9e9e9;
    align-items: center;
    text-decoration: none;
    text-align: center;
    font-family: jost;
}
ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #e9e9e9;
    justify-content: center;
}
ul li a{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #e9e9e9;
    justify-content: center;
}




@media (max-width: 800px){

    html{
        scroll-behavior: smooth;    /* exercice vu en cours */
    }
    body{
        margin: 20px;

    }
    nav{
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        margin: -20px;
    }

    .menu__logo{
        margin-left: 0;
        font-size: 40px;
    }

    .menu__list{
        margin-right: 0;
        font-size: 24px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 20px;
        transform: translateX(-24px);
    }

    .container{
        width: 100%;
        height: auto;
        margin: 150px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "un dx"
            "un qt"
            "sx cq"
            "tr tr"
            ;
    }
    .janus{
        margin-top: -200px;
    }
    .janus img{
        width: 100%;
        max-width: 400px;
        display: block;
        margin: 0 auto;
    }
    header{
        margin: 0 -20px;
    }

    .rond{
        margin: 20px auto;
        display: flex;
        width: 300px;
        margin: 100px;
        justify-self: center;
    }


}

@media (max-width:1024px){
    .container{
        width: 100%;
        height: auto;
        margin-top: 180px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "un dx"
            "un qt"
            "sx cq"
            "tr tr";
    }
}