@import url('https://fonts.cdnfonts.com/css/poppins');

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #111;
    font-family: Poppins, sans-serif;
    overflow-x: hidden;
}

header {
    margin: 0;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    background-color: #111;
}

header video {
    width: 2rem;
}

.Gauche {
    width: 50%;
    padding: 0rem 2rem;
}

.Droite {
    width: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0rem 2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.DroiteWork a {
    font-weight: 500;
}

.DroiteWork,
.DroiteAbout {
    width: 50%;
}

header a {
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 300;
    color: #ffffff;
    mix-blend-mode: difference;
    transition: font-weight 0.3s ease;
}

header a:hover {
    font-weight: 600;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    padding-top: 40px;
    margin: 40px 8rem;
    width: calc(100% - 16rem);
    height: 300vh;
    aspect-ratio: 1 / 1;
}

.container>div {
    position: relative;
    overflow: hidden;
}

.container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.container>div:hover img {
    opacity: 0.5;
}

.container>div:hover .overlay {
    opacity: 1;
}

.Image11 {
    grid-area: 1 / 1 / 3 / 3;
}

.Image7 {
    grid-area: 1 / 3 / 2 / 4;
}

.Image4 {
    grid-area: 2 / 3 / 3 / 4;
}

.Image5 {
    grid-area: 3 / 1 / 4 / 2;
}

.Image2 {
    grid-area: 3 / 2 / 5 / 4;
}

.Image14 {
    grid-area: 4 / 1 / 5 / 2;
}

.Image13 {
    grid-area: 6 / 2 / 7 / 2;
}

.Image15 {
    grid-area: 5 / 2 / 6 / 3;
}

.Image8 {
    grid-area: 5 / 3 / 6 / 4;
}


.Image6 {
    grid-area: 5 / 1 / 7 / 1;
}

.Image3 {
    grid-area: 6 / 3 / 7 / 3;
}










footer {
    font-size: 1rem;

    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transition: opacity 2.5s ease, visibility 1s ease;
}

footer.footer-visible {
    opacity: 1;
    visibility: visible;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Poppins', serif;
    font-weight: 100;
    padding: 0.25rem 1rem;
}

footer a img {
    height: 25px;
    width: 25px;
}

footer p {
    width: 100%;
    text-align: right;
    padding-right: 3rem;
    font-size: 1rem;
    font-weight: 300;
    color: #ffffff;
}

span {
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo.fallback {
    display: none;
}

.sub {
    padding-right: 2rem;
}

@media screen and (max-width: 1023px) {
    header {
        height: 60px;
        padding: 0 1rem;
    }

    header a {
        font-size: 1.3rem;
    }

    .Gauche,
    .Droite {
        padding: 0;
        width: 50%;
    }

    .Droite {
        justify-content: flex-end;
        gap: 1rem;
        margin-right: 6%;
    }

    .DroiteWork,
    .DroiteAbout {
        width: auto;
    }

    /* sur les petits écrans */
    header video.header-logo {
        display: none;
        /* on masque la vidéo */
    }

    header img.header-logo.fallback {
        display: block;
        /* on affiche l’image à la place */
        width: 3rem;
        /* ajustez si besoin */
        height: auto;
        margin-top: 1.7rem;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 100px 1rem 40px;
        margin: 0 auto;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    /* Tous les projets (images et vidéos) auront la même taille */
    .container>div {
        width: 90%;
        height: 220px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .container img,
    .container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .overlay {
        font-size: 18px;
        padding: 10px;
    }

    /* Header + autres éléments */
    header a {
        font-size: 1.2rem;
    }

    .DroiteWork,
    .DroiteAbout {
        padding: 0;
    }

    footer a {
        font-size: 0.5rem;
    }

    span {
        font-weight: 400;
    }

    footer {
        margin-top: 1.5rem;
    }

    .sub p {
        padding-right: 0;
        padding-bottom: 0.5rem;
        margin: 0;
        font-size: 0.5rem;
    }
}


@media screen and (max-width: 767px) {

    header {
        height: 60px;
        padding: 0 1rem;
    }

    header a {
        font-size: 1rem;
    }

    .Gauche,
    .Droite {
        padding: 0;
        width: 50%;
    }

    .Droite {
        justify-content: flex-end;
        gap: 10%;
        margin-right: 14%;
    }

    .DroiteWork,
    .DroiteAbout {
        width: auto;
    }



    /* Conteneur vertical */
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 1rem 40px;
        margin: 0 auto;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    /* Tous les projets (images et vidéos) auront la même taille */
    .container>div {
        width: 90%;
        height: 220px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
    }

    .container img,
    .container video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }


    .overlay {
        font-size: 18px;
        padding: 10px;
    }

    header a {
        font-size: 1rem;
    }

    .DroiteWork,
    .DroiteAbout {
        padding: 0;
    }


    footer a {
        font-size: 0.7rem;
    }


}