.twi-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.twi-text-container {
    flex: 1;
    max-width: 50%;
}

.twi-image {
    flex: 1;
    max-width: 50%;
    height: 540px;
    overflow: hidden;
    border-radius: 8px;
    /* ombre douce et diffuse */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.twi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

/* effet hover léger et propre */
.twi-image:hover img {
    transform: scale(1.015);
}

.twi-image:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


.twi-center-text {
    margin-top: auto;
    text-align: center;
}
.twi-text-container h2 {
    margin-bottom: auto;
}

.helloasso-btn-container {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.helloasso-btn {
    width: 150px;
    cursor: pointer;
    transition: 0.3s ease;
    background-color: white;
    border: solid 1px var(--accented);
    border-radius: 6px;
    padding: 6px 12px;
}
.helloasso-btn:hover {
    transform: scale(1.03);
}




/* POPUP */
.img-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.img-popup-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}



/* --- VERSION MOBILE --- */
@media (max-width: 768px) {
    .twi-block {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .twi-text-container,
    .twi-image {
        max-width: 100%;
        flex: none;
    }

    .twi-image {
        height: auto;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }

    .twi-image img {
        height: auto;
        max-height: 60vh;
    }
}
