@import "https://fontlibrary.org/face/bagnard";
* { box-sizing:border-box; }


@font-face {
    font-family: "Bianzhidai-Base";
    src: url(fonts/bianzhidai_noBG-Base.woff) format("woff");
}

@font-face {
    font-family: "Bianzhidai-Pearl";
    src: url(fonts/bianzhidai_noBG-Pearl.woff) format("woff");
}

@font-face {
    font-family: "Sono";
    src: url(fonts/Sono-Light.woff2) format("woff2");
    font-style: "Light";
}

@font-face {
    font-family: "Sono";
    src: url(fonts/Sono-ExtraLight.woff2) format("woff2");
    font-style: "Extra light";
}


body{
    margin:0;
    font-family: "Sono";
    font-style: "Light";
}
header{
    height:19.6vh;
    display:flex;
    align-items:center;
    background:linear-gradient(to bottom,rgb(0, 183, 255), rgba(250, 250, 250, 0));
    color:black;
    padding: 0 10px;
    justify-content:space-between;
}
header h1{
    font-family: "Bianzhidai-Base";
    font-size:4em;
    line-height:19.6vh;
    position:relative;
    font-weight: 400;
}
nav {
    position: relative;
    top:.12em;
}

nav ul{
    list-style-type: none;
    line-height: 1.5em;
}

li a{
    display: block;
    text-decoration: none;
    color: #000;
}

li:hover{
    text-decoration: underline;
}

li a:hover{
    cursor: e-resize; 
}
.sous {
    font-size:2vh;
    position: absolute;
    left:77%;
    top: 50%;
    line-height: 1em;
}

main {
    display: flex;
    flex-direction: row;
    width: 100%;
}
article {
    display: flex;
    flex-direction:column;
    transition: .3s;
    flex-grow: 1;
    flex-basis: 0;
    border-right: solid 1px rgb(0, 183, 255);
    flex-basis: 100%;
    flex: 1;

    padding: 10px;
    position: relative;
    min-width: 0;
    overflow: hidden;
}
article:hover {
    flex-grow: 5;
}
article:last-child {
    border-right: none;
}

article h1 {
    word-break: break-all;
    font-size: 2.5vh;
    line-height: 1;
    display:block;
}

figure {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 4vw;
    margin-inline-end: 4vw;
}
figcaption{
    font-size: 0.7em;
}

img{
    width: 70%;
    overflow: clip;
    filter: grayscale(1);
}

img:hover{
    cursor: e-resize;
    filter: grayscale(0);
}

@media screen and (max-width: 1000px) {
    header h1{
        font-size:3em;
    } 
}

 @media screen and (max-width: 860px) {
    header{
        display: flow-root;
        padding-left: 1em;
        padding-right: 1em;
    }
    header h1{
        font-size:2em;
        line-height:4.6vh;
    }
    nav ul {
        line-height: 1.2em;
        font-size: 0.8em;
    }
    .sous {
        font-size: 0.8em;
        line-height: 1em;
        left: 19%;
        top: 46%;
    }
    main {
        flex-direction: column;
        }

    article {
        flex-direction:column;
        transition: none;
        flex-grow: 0;
        border-top: solid 1px rgb(0, 183, 255);
        border-right: none;
        overflow-x: scroll;
}
    article:hover {
        flex-grow: 0;
    
}
    article:last-child {
        border-right: none;
}

 }
