h2{
    text-align: center;;
}
.bento-real img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.bento-real h3 {
    color: #703557;
    margin-bottom: 10px;
    font-weight: bold;
}
.bento-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 20px;
}
.bento-item:first-child{
    grid-area: 1 / 1 / span 2 / span 2;
}
.bento-item:nth-child(7){
    grid-area: 3 / 3 / span 2 / span 2;
}

/* Hover effect */
.bento-item {
    position: relative; 
    width: 100%;
    height: 100%; 
    overflow: hidden; 
    border-radius: 15px; 
    cursor: pointer;
    background-color: #f0f0f0;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.hover-projet {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(143, 202, 167, 0.95); 
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
    pointer-events: none; 
}

.bento-item:hover .hover-projet {
    opacity: 1;
    transform: translateY(0);
}

.bento-item:hover img {
    transform: scale(1.1);
}

.bento-item h3{
    margin: 20px auto 10px auto;
    font-size: 1.5em;
    font-style: bold;
}

.categorie-projet {
    margin-top: 10px;
    margin: 10px auto;
    padding: 5px 10px;
    background-color: #1f97ba;
    border-radius: 12px;
    font-size: 0.9em;
}

/* Mobile */
@media screen and (max-width: 768px) {
    .bento-container {
    grid-template-columns: 1fr;
    gap: 20px;
    }
    .bento-item:first-child{
        grid-area: 1;
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-item:nth-child(7){
        grid-area: 1;
    }   
}