body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../images/layered-peaks-haikei.svg);
    background-size: cover;
    background-position: center;
    z-index: 5;
    background-attachment: fixed;
}


#loader-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 1s ease;
}

#loader {
    width: 0%;
    max-width: 600px;
    height: 4px; /* Hauteur de la barre de chargement */
    background-color: #ffffff; /* Couleur de la barre de chargement */
    transition: 1s ease;
}

#loader-text {
    font-size: 18px;
    color: white;
    margin-top: 10px;
    transition: 1s ease;
}

#content {
    margin: 20px;
    text-align: center;
    transition: 1s ease;
}




main {
    padding: 20px;
}

.mainindex {
    padding-top: 200px;
}

.grid-mainindex{
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 30% 30%;
    gap: 20px;
    justify-items: center;
    align-items: center;
    justify-content: center;
}

.imgindex{
    width: 100%;
    height: 100%;
    margin-top: auto;
    object-fit: cover;
    border-radius: 10px;
    grid-column: 1;
    grid-row: 1 / span 2;
    object-position: left;
}

.imgindex2{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-top: auto;
    grid-column: 2;
    grid-row: 2;
}

.h2index {
    padding: 30px;
    margin: auto;
    text-align: center;
    font-size: 5vw;
    box-sizing: border-box;
    color: #fff;
    grid-column: 2;
    grid-row: 1;
}

.h3index {
    padding: 30px;
    margin: auto;
    text-align: center;
    font-size: 2vw;
    box-sizing: border-box;
    color: #fff;
    grid-column: 1 / span 2;
    grid-row: 3;
}


.project-grid2 {
    display: flex;
    gap: 50px;
    margin-bottom: 10vh;
    width: 100%;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

.project-card2 {
    flex: 0 0 calc(45%);
    background-color: #0000003a;
    border-radius: 5px;
    width: 50%;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.);
    scroll-snap-align: start;
    transition: transform 1s ease;
}

.project-card2:hover {
    transform: translateY(-20px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card2 img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.project-card2 h3,
.project-card2 p {
    padding: 10px;
    color: #fff;
}

.project-card2 a {
    text-decoration: none;
    color: #333;
}

/*-------------------------------------------------------------------------------------------------------------------------------*/

@media only screen and (max-width: 768px) {

    .project-card2 img {
      max-height: 100px;
    }
    
    .project-card2 h3,
    .project-card2 p {
        padding: 10px;
        color: #fff;
        font-size: 1vh;
    }

    .project-grid2{
        margin-bottom: 2vh;
        gap: 20px;
    }

    .mainindex{
        padding-top: 0px;
    }
    
    .grid-mainindex{
        grid-template-columns: 1fr;
        grid-template-rows: 0.1fr 0.1fr 1fr ;
        gap: 0px;
    }

    .h2index{
        grid-row: 1;
        z-index: 0;
        color: white;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        font-size: 3vh;
        margin-top: 50vh;
        width: 85%;
    }
    .imgindex{
        grid-row: 3;
        grid-column: 2;
        object-position: left 20% top 25%;
    }

    .imgindex2{
        grid-row: 1;
        height: 50%;
        margin: 0px;
    }

    .h3index{
        color: white;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        font-size: 2vh;
    }

}