@font-face {
    font-family: 'Syne-ExtraBold';
    src:    url('../assets/fonts/Syne-ExtraBold.woff') format(woff),
            url('../assets/fonts/Syne-ExtraBold.woff2') format(woff2);
}
@font-face {
    font-family: 'Syne-Regular';
    src:    url('../assets/fonts/Syne-Regular.woff') format(woff),
            url('../assets/fonts/Syne-Regular.woff2') format(woff2);
}
@font-face {
    font-family: 'Syne-Bold';
    src:    url('../assets/fonts/Syne-Bold.woff') format(woff),
            url('../assets/fonts/Syne-Bold.woff2') format(woff2);
}

a, a:hover, a:visited, a:focus, a:active  {
    text-decoration: none;
    color: inherit;
    background:none;
    outline: 0;
    border-bottom:1px solid white;
}

i {
    display: inline-block;
    transform: skewX(-18deg);
}

main a:hover {
    color:red;
    border-bottom:1px solid red;
}

::selection { background: red; }

body {
    font-family: 'Syne-Regular';
    font-variant-numeric: lining-nums;
    font-feature-settings: "tnum","salt", "dlig";
    font-size: 18px;
    background-color: black;
    color:white;
    line-height: 1.3em;
    overflow-x: hidden;
}


.menu-item {
    cursor: pointer;
}

.menu-item--active {
    color:white;
}

.menu-item:not(.menu-item--active) {
    color:black;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

svg {
    position: fixed;
    z-index: -1;
    top:0;
    left:0;
    height:100vh;
    width:100vw;
    pointer-events: none;
    overflow: hidden;
    /* filter: blur(0.5px) grayscale(100%); */
}

p {
    max-width: 57ch;
}

.tile--about p {
    margin-bottom: 1.2rem;
}

.tile {
    display: none;
    min-height:100vh;
}
.tile--active{
    display: block;
}
.tile--about div:not(.scroll-arrow) {
    position: absolute;
    width:100%;
    max-width:57ch;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

@keyframes jumpInfinite {
    0% {
        bottom: 1.2rem;
    }
    50% {
        bottom: 1.8rem;
    }
    100% {
        bottom: 1.2rem;
    }
}
.tile--about .scroll-arrow {
    position:absolute;
    left:50%;
    transform: translateX(-50%) rotate(180deg);
    height:1em;
    font-size: 2em;
    top:auto;
    transition: all 0.7s ease-in-out;
    animation: jumpInfinite 1.5s infinite;
    user-select: none;
}
.table {
    display:flex;
    flex-direction: column;
    overflow-x: hidden;
}
.table-header {
    display:flex;
    font-family: 'Syne-Bold';
    border-bottom: 1px solid white;
}
.table-header .table-cell:not(:last-child) {
    padding: 0.3rem 20px 0.3rem 0;
}
.projet-header {
    display: flex;
}

.th-projets, .first-col {
    width:33%;
}
.th-tags, .second-col{
    flex:1;
}
.th-date,.third-col {
    width:15%;
}
.projet-header,.projet-desc{
    border-bottom: 1px solid white;
}
.tr--active {
    border-bottom:none;
}
.projet-desc {
    box-sizing: border-box;
    /* padding-top:1.2em; */
    padding-bottom:1.2em;
    display:none;
}
.projet-desc p{
    /* text-indent: 3rem; */
    margin-bottom: 0.6rem;
}
.table-cell{
    box-sizing: border-box;
    padding: 0.3rem 0;
}
/* .table-header .table-cell,
.projet-header .table-cell{
    padding: 0.3rem 20px 0.3rem 0;
} */
.projet-desc .table-cell{
    padding-top: 0.6rem;
}
.table-image, .video-wrap {
    margin-bottom:1.2rem;
}
.table-gallery {
    display:flex;
    justify-content: space-between;
    margin-bottom:1.2rem;
}
.table-gallery img {
    width:calc(50% - 5px);
}

.tr--active + .projet-desc {
    display:table-row;
}

img {
    max-width:100%;
    box-sizing: border-box;
    border: 1px solid #AAA;
    object-fit: cover;
}

.video-wrap {
    width:100%;
    object-fit: contain;
    display: block;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    box-sizing: border-box;
    border: 1px solid #AAA;
    overflow: hidden;
}

.video-wrap iframe,
.video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.table-header .table-cell,
.projet-header .table-cell {
    margin-bottom:0;
}

@media screen and (min-width: 1024px) {
    body {
        font-size:24px;
    }
    nav{
        position:fixed;
        z-index: 1;
    }
    .tile--about {
        height:100vh;
    }
    .tile--projects {
        box-sizing: border-box;
    }
    .projet-desc .table-image {
        display:table-cell;
        padding-top:  1rem;
    }
    .table {
        width:100%;
        display:table;
        table-layout: fixed;  
        border-collapse: collapse;
    }
    
    .table-header{
        display:table-row;
        text-align: left;
    }
    
    .projet-header, .projet-desc{
        display:table-row;
    }
    
    .projet-header{
        cursor:pointer;
    }
    
    .table-cell {
        display:table-cell;
        vertical-align: top;
        box-sizing: border-box;
        padding-right:20px;
    }
    
    .projet-desc .table-image {
        margin-right:20px;
    }
    
    .tr--active {
        border-bottom:none;
    }
    .projet-desc {
        display:none;
    }

    .tr--active + .projet-desc {
        display:table-row;
    }
}
@media screen and (max-width: 1023px) {
    /* nav ul {
        justify-content: center;
    } */
    main a,main a:hover,main a:visited,main a:focus,main a:active  {
        color: red;
        border-bottom:1px solid red;
    }
    nav ul a,
    nav ul a:hover,
    nav ul a:visited,
    nav ul a:focus,
    nav ul a:active{
        border-bottom: 0;
    }
    .table-image {
        margin-bottom:0;
    }
}
@media screen and (max-width: 767px) {
    .first-col, .th-projets {
        width:85%;
    }
    .th-projets, .projet-header .first-col {
        max-width: none;
    }
    .second-col, .th-tags {
        display:none;
    }
}

/* @media screen and (pointer:coarse) {
    main a,main a:hover,main a:visited,main a:focus,main a:active  {
        color: red;
        border-bottom:1px solid red;
    }
} */