* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-weight: 600;
    font-size: 0.9em;
}

a {
    text-decoration: none;
    color: rgb(150, 150, 150);
}

.non_event {
    pointer-events: none;
}

a:hover {
    -webkit-text-stroke: 0.4em;
}

button:hover {
    cursor: pointer;
    -webkit-text-stroke: 0.4em;
}

/* MOUSE HOVER */

body {
    font-family: Helvetica;
    font-style: normal;
    letter-spacing: -0.015em;
    text-rendering: optimizeLegibility;
    color: rgb(150, 150, 150);
    margin: 0;
    padding: 0;
}

.fixed-header {
    display: flex;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 999;
    font-size: 1.1em;
    line-height: 1.15em;
    flex-direction: column;
    align-items: flex-start;
    padding: 2vw 0vw 3vw 2vw;
    background: linear-gradient(to bottom, rgb(0, 0, 0), 95%, rgba(255, 255, 255, 0));
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: min-content;
}

.img_landing {
    max-width: 100%;
}

@media (min-width: 576px) {

    body,
    button {
        font-family: Helvetica;
        font-style: normal;
        letter-spacing: -0.015em;
        text-rendering: optimizeLegibility;
        color: rgb(150, 150, 150);
        margin: 0;
        padding: 0;
    }

    .fixed-header {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas: "one two three four five six";
        width: 100%;
        margin: 0 auto;
        position: sticky;
        top: 0;
        z-index: 999;
        padding: 0.4vw 0.6vw 0.65vw 0.4vw;
        font-size: 1em;
        line-height: 1em;
        background: linear-gradient(to bottom, rgb(0, 0, 0), 90%, rgba(255, 255, 255, 0));
    }

    .home-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 500px);
    }

    .img_landing {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.projects {
    display: grid;
    grid-template-columns: 1fr;
}

.projects_infos {
    position: fixed;
    right: 0;
    width: 30vw;
    height: 30vh;
    background: #000000;
    padding: 0.5vw;
    overflow: scroll;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: min-content;
    margin: 0.4vw 0.6vw;
    gap: 0.5vw;
}

@media screen and (max-width: 575px) {
    .split {
        display: grid;
        grid-auto-rows: min-content;
        font-size: 1.1em;
        letter-spacing: -0.01em;
        line-height: 1.1em;
        grid-template-columns: 1fr;
        padding: 2vw;
        padding-top: 1vh;
    }
}

.logo {
    position: absolute;
    width: 8vw;
    bottom: 1vw;
    right: 1vw;
}

@media screen and (max-width: 575px) {
    .logo {
        position: fixed;
        width: 24vw;
        right: 3vw;
        bottom: 3vw;
    }
}

/* IMAGES */

.img_project {
    display: block;
    max-width: 100vw;
    max-height: 75vh;
}

@media screen and (max-width: 575px) {
    .img_project {
        max-width: 100%;
        max-height: 100%;
    }
}

section.caroussel::-webkit-scrollbar {
    display: none;
    /* Masque la barre de défilement pour Chrome, Safari et Opera */
}

section.caroussel figure {
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.caroussel.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

figure {
    object-fit: contain;
    margin: 0;
}

/* ORDINATEUR : horizontal */
section.caroussel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100vw;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    border-radius: 0px;
}

section.caroussel::-webkit-scrollbar {
    display: none;
}

section.caroussel figure {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

/* MOBILE : une colonne */
@media screen and (max-width: 575px) {
    section.caroussel {
        display: grid;
        grid-template-columns: 1fr;
        overflow-x: hidden;
        overflow-y: scroll;
        background-color: #000000;
    }

    section.caroussel figure {
        width: 100%;
    }

    section.caroussel {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 575px) {
    .img_landing {
        display: grid;
        grid-template-columns: repeat(1, 9fr);
        max-width: 100%;
        max-height: 100%;
        margin: 0vw;
    }
}

.info-header-wrapper {
    position: relative;
}

.project_info_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    padding: 0;
}

.project_info_grid li {
    display: flex;
    align-items: flex-start;
    /* ou center selon préférence */
    gap: 0.2vw;
}

.label {
    font-weight: 600;
    min-width: 110px;
}

.value {
    flex: 1;
    color: black;
}

.toggle-btn {
    font-size: 0.7em;
    line-height: 1em;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    color: black;
}

.info-toggle-container {
    position: relative;
    margin: 0.4vw 0.6vw;
}

.lab {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: min-content;
    place-items: center;
    gap: 1vw;
    padding: 1vw;
}

.img-lab {
    max-width: 100%;
    max-height: 100%;
}

@media screen and (max-width: 575px) {
    .info-header-wrapper {
        position: relative;
    }

    .project_info_grid {
        display: grid;
        grid-template-columns: 1fr;
        /* Deux colonnes fixes */
        list-style: none;
        padding: 0;
    }

    .project_info_grid li {
        display: flex;
        align-items: flex-start;
        /* ou center selon préférence */
        gap: 0.5em;
    }

    .label {
        font-weight: 600;
        min-width: 110px;
    }

    .value {
        flex: 1;
        color: black;
    }

    .toggle-btn {
        font-size: 1em;
        line-height: 1em;
        padding: 0;
        background: none;
        border: none;
        color: inherit;
        color: black;
    }

    .info-toggle-container {
        position: relative;
        padding: 2vw;
    }

    .project_info_grid {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .project_info_grid li {
        display: flex;
        align-items: flex-start;
        /* ou center selon préférence */
        gap: 0vw;
    }

    .lab {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        place-items: center;
        gap: 0vw;
        padding: 0vw;
    }

    .img-lab {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Contenu dépliable */

.extra-info-wrapper {
    padding-right: 0.6vw;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.extra-info-wrapper.open {
    max-height: 1000px;
    opacity: 1;
}

.caroussel.active {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project_info_main {
    display: grid;
    grid-template-columns: 1fr auto;
    line-height: 1em;
}

.project_info_main .extra-info-wrapper.open {
    display: grid;
    grid-template-columns: 1fr auto;
    line-height: 1em;
}

@media screen and (max-width: 575px) {
    .extra-info-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.4s ease;
    }

    .extra-info-wrapper.open {
        max-height: 1000px;
        opacity: 1;
    }

    .project_info_main {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }

    .project_info_main .extra-info-wrapper.open {
        display: grid;
        grid-template-columns: 1fr auto;
        line-height: 1em;
    }
}