.bloc-one-project {
    width: 45%;
    height: 300px;
    background-color: white;
    border-radius: 28px;
    overflow: hidden; /* Pour que l'image ne dépasse pas des arrondis */
    display: flex;
    flex-direction: column;

    /* Transition sur width et height pour décaler les voisins */
    /* Transition sur box-shadow pour l'ombre */
    transition:
            width 0.4s ease-in-out,
            height 0.4s ease-in-out,
            box-shadow 0.4s ease-in-out,
            transform 0.4s ease-in-out;
}

.bloc-one-project:hover {
    /* On augmente la taille réelle */
    width: 50%;
    height: 400px; /* Agrandissement vers le bas */

    /* L'ombre portée (Shadow) */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Optionnel : un très léger scale pour accentuer l'effet sans trop chevaucher */
    transform: translateY(10px);

    z-index: 10;
}

.img-project {
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    object-fit: cover;
    width: 100%;
    /* On utilise une transition aussi sur l'image pour qu'elle suive le bloc */
    height: 60%;
    transition: height 0.4s ease-in-out;
}

.bloc-one-project:hover .img-project {
    height: 70%; /* L'image prend plus de place au hover */
}

.bloc-texte-projects {
    padding: 12px;
}

.title-one-project {
    font-weight: 600;
    font-size: large;
}
