:root {
    scroll-behavior: smooth;
    --01: #73E4BE;
    --02: #BD98ED;
    --03: #ed98c2;
    --04: #e2ed98;
    --05: #234eab;
}

.column{
    display: flex;
    flex-direction: column;
}

.small-gap{
    gap: 8px;
}

.dsk-title{
    display: none;
}

.active{
    display: flex;
}

.nav-dsk{
    display: none;
}

.hero-dsk{
    display: none;
}

.projects-dsk{
    display: none;
}

#travaux{
    width: 100%;
}

body {
    margin: 0;
    display: grid;
    gap: 0;
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 10;
    transition: transform 1s ease;

    background-color: white;
    border-bottom: 1px solid black;
    padding: 0 16px;
}

.header-hidden {
    transform: translateY(-200%);
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.nav-mb{
    display: flex;
    font-family: "Geist Mono", sans-serif;
    height: 100%;
}

a{
    color: black;
    text-decoration: none;
}

header nav a{
    border-left: 1px solid black;
    padding: 20px;
    font-size: 24px;
    font-weight: 900;
}

.last{
    border-right: 1px solid black;
}

h1{
    margin: 0;
    font-size: 48px;
    font-weight: bold;
}

h2{
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

h3{
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

h4{
    margin: 0;
}

h5{
    margin: 0;
}

p{
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.project-number{
    font-family: "Geist Mono", sans-serif;
    font-size: 82px;
    font-weight: 900;
    line-height: 0.8;
}

.project-number-s{
    font-family: "Geist Mono", sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 0.7;
}


.button1{
    background-color: transparent;
    border: none;
}

#burger{
    width: 38px;
}


main{
    display: flex;
    flex-direction: column;
    margin: 0;
}

.hero{
    padding: 24px 16px;
    gap: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title{
    display: flex;
    flex-direction: column;
    align-items: center ;
}

#cover-image{
    width: 200px;
    position: relative;
    top: 10%;
    z-index: -1;
}

.hero-title p{
    text-align: center;
    width: 200px;
}

.hero-down{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-down a{
    padding: 10px;
}

.projects-mb{
    display: flex;
    flex-direction: column;
    border-top: 1px solid black;
}

.project-mb-card{

    padding: 20px 16px;
  
    border-bottom: 1px solid black;
}

#project1{
    background-color: var(--01);
    border-right: 1px solid black;
}

#project2{
    background-color: var(--02);
    border-top: 1px solid black;
    border-right: 1px solid black;
}

#project3{
    background-color: var(--03);
    border-top: 1px solid black;
    border-right: 1px solid black;
}

#project4{
    background-color: var(--04);
    border-top: 1px solid black;
    border-right: 1px solid black;

}

#project5{
    background-color: var(--05);
    border-right: 1px solid black;
    border-top: 1px solid black;
}

.mini-card{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pr-hero-mini{
    display: flex;
    align-items: center;
    gap: 32px;
}


.pr-title-mini{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.maxi-card{
    gap: 16px;
    display: none;
    flex-direction: column;
}

.pr-hero{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-title{
    display: flex;
    align-items: end;
    gap: 18px;
}

figure{
    margin: 0;
    padding: 0;
}

.pr-image{
    width: 100%;
    border: 1px solid black;
    border-radius: 4px;
}

.pr-content{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pr-subjects{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tag{
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    padding: 6px 8px;
    height: fit-content;
}

.pr-down{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pr-down-buttons{
    display: flex;
    gap: 16px;
}

.button2{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid black;
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

footer {
    text-align: center;
    padding: 100px;
    font-size: 0.9rem;
    background-color: #ffffff;
    border-top: 1px solid black;
    color: #000000;
}




@media screen and (min-width: 900px) {

    p{
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    h3{
        margin: 0;
        font-size: 32px;
        font-weight: bold;
    }

    h4{
        font-size: 24px;
    }

    h5{
        font-size: 20px;
        font-weight: bold;
    }
    

    .mb-title{
        display: none;
    }

    .dsk-title {
        display: inline;
        transition: font-weight 0.4s ease, letter-spacing 0.4s ease;
    }
    
    .dsk-title:hover {
        font-weight: 900;
        letter-spacing: 0.5px;
    }
    
    .nav-mb{
        display: none;
    }

    .nav-dsk{
        display: flex;
        text-transform: lowercase;
    }

    header{
        top: 30px;
        border: 1px solid black;
        margin: 0 30px 30px 30px;
        border-radius: 4px;
        padding: 0 50px;
    }

    header nav ul{
        height: 100%;
    }

    header nav a{
        display: flex;
        align-items: center;
        border-left: 1px solid black;
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .hero{
        display: none;
    }

    .hero-title{
        align-items: start;
    }

    .hero-dsk{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10%;
        align-items: center;
        padding: 100px;
        height: 50vh;
    }

    .hero-dsk p{
        width: 350px;
    }

    #cover-image-dsk{
        width: 263px;
        height: 233px;
    }

    .projects-mb {
      display: none;
    }

    .projects-dsk{
        border-top: 1px solid black;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .project-dsk-card{
        height: fit-content;
    }

    .card-content-dsk{
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 32px;

        padding: 30px 30px 30px 30px;
    }

    .project-dsk-card ul{
        padding: 0 16px;
        margin: 0;
    }

    .project-dsk-card ul li{
        font-weight: 500;
    }

    

    #project1, #project2, #project3, #project4, #project5{
        background-color: white;
        border-bottom: 1px solid black;
        transition: background-color 0.2s ease-in-out;
    }

    #project1 .color-bar{
        background-color: var(--01);
    }

    #project2 .color-bar{
        background-color: var(--02);
    }

    #project3 .color-bar{
        background-color: var(--03);
    }

    #project4 .color-bar{
        background-color: var(--04);
    }

    #project5 .color-bar{
        background-color: var(--05);
    }

    .one:hover{
        background-color: var(--01);
        transition: background-color 0.2s ease-in-out;
    }

    .two:hover{
        background-color: var(--02);
        transition: background-color 0.2s ease-in-out;
    }

    .three:hover{
        background-color: var(--03);
        transition: background-color 0.2s ease-in-out;
    }

    .four:hover{
        background-color: var(--04);
        transition: background-color 0.2s ease-in-out;
    }

    .five:hover{
        background-color: var(--05);
        transition: background-color 0.2s ease-in-out;
    }

    #img2 img:hover{
        transform: scale(1.01);
    }

    #img1 img:hover{
        transform: scale(1.01);
    }

    #img3 img:hover{
        transform: scale(1.01);
    }

    #img4 img:hover{
        transform: scale(1.01);
    }

    #img5 img:hover{
        transform: scale(1.01);
    }

    .color-bar{
        position: relative;
        top: 0;
        left: 0;
        height: 12px;
        width: 100%;
    }

    .pr-header-dsk{
        display: flex;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }

    .pr-hero-dsk{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 32px;
    }

    figure{
        overflow: hidden;
        position: relative;
        height: 100%;
        padding: 30px;
        display: flex;
        align-items: center;
        height: auto;
        background-color: rgb(255, 255, 255);
    }

    figure img{
        transition: all 0.2s ease-out;
        box-sizing: border-box;
        width: 100%;
        border: 1px solid black;
    }

    #img1, #img2, #img3, #img4, #img5{
        grid-column: 2/4;
    }

    #img2, #img3, #img4, #img5{
        border-top: 1px solid black;
    }

    .card-img{
        display: none;
    }


    .pr-image-dsk{
        width: 100%;
        height: 100%;
    }

    .pr-content{
        display: flex;
        flex-direction: column;
        gap: 64px;
        max-width: 600px;
    }

    .datetime{
        margin-top: auto;
    }


    .pr-title-dsk{
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .pr-details-dsk{
        display: flex;
        gap: 40px;
    }

    .pr-end-dsk{
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .pr-end-dsk a{
        color: rgb(208, 32, 13);
    }

    .pr-end-dsk a:hover{
        text-decoration: underline;
    }

    .overlay{
        position: absolute;
        right: 50%;
        top: 50%;
    }

  }

@media screen and (min-width: 900px) and (max-width: 1300px) {

    .projects-dsk{
        border-top: 1px solid black;
        display: grid;
        overflow: hidden;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .card-content-dsk{
        gap: 32px;
    }

    .project-dsk-card{
        height: 100%;
    }

    .pr-content{
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        align-items: start;
    }

    .pr-hero-dsk{
        width: 40%;
    }

    #img1, #img2, #img3, #img4, #img5{
        display: none;
    }

    .card-img{
        overflow: auto;
        border: none;
        display: flex;
        padding: 10px;
        max-width: 600px;
        overflow: hidden;
    }

    .card-img img:hover{
        transform: scale(1.01);
    }
}
  

