.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* On force le lien à occuper toute la carte */
.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image avec ratio fixe */
.realisation-images {
    display: flex;
    gap: 8px;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f2f4f7;
    flex: 0 0 auto;
}

.image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Zone texte flexible */
.project-info {
    flex: 1 0 auto;
    /* occupe l’espace restant */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 1.1rem 1.2rem;
}

.project-info h4 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
}

.project-info p {
    margin: 0 0 .6rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Détails en bas */
.project-details {
    display: flex;
    gap: .75rem;
    font-size: .9rem;
    color: #777;
}

.duration,
.budget {
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}