/* --- WRAPPER GLOBAL (2 colonnes sur desktop) --- */
.avant-apres-wrapper {
    display: flex;
    gap: 0;
}

/* --- COLONNES --- */
.bloc-avant-apres {
    width: 50%;
    display: flex;
    flex-direction: column;
}

/* --- BADGES --- */
.badge-avant,
.badge-apres {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    color: white;
    font-size: 1rem;
}

.badge-avant { background: #d9534f; }
.badge-apres { background: #5cb85c; }

/* --- RATIO FIXE (16/9) --- */
.ratio-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16/9 */
}

.ratio-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
	object-fit: contain;
}

/* --- TITRE --- */
.titre-realisation {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 12px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* --- RESPONSIVE : MOBILE + TABLETTE --- */
@media (max-width: 992px) {

    .avant-apres-wrapper {
        flex-direction: column;
    }

    .bloc-avant-apres {
        width: 100%;
    }
}
