/* Version: 19-07-2026 — Projets : cover puis texte (mobile inclus) */

canvas {
    display: none;
}

/* Listing projets : format horizontal */
#portfolio_page main .horizontal-elements a.horizontal-grid-item {
    padding: 0 0 50% 0;
}

#portfolio_page #hero #title-star {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Cover horizontale au-dessus du texte */
#portfolio_page #hero .project-cover {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding: 0 0 56.25% 0; /* 16:9 */
    margin: 0 0 1.5rem 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 0 0 auto;
}

#portfolio_page #hero #title-star #title-about {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
}

@media screen and (min-width: 2700px) {
    #portfolio_page #hero .project-cover {
        padding-bottom: 0;
        height: 565px;
    }
}

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

    #portfolio_page #hero .project-cover {
        display: block !important;
        width: 100%;
        height: 0;
        padding: 0 0 56.25% 0;
        margin-bottom: 1.25rem;
    }

    #portfolio_page #hero #title-star {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0;
    }

    #portfolio_page #hero #title-star #title-about {
        width: 100%;
        max-width: 100%;
    }

}
