/* --------- STYLE GÉNÉRAL --------- */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* --------- HEADER --------- */
header {
    padding: 35px;
    background: #aa7942;
    color: white;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

/* --------- CONTAINER PRINCIPAL --------- */
.properties-container {
    display: flex;
    height: 100vh;
}

/* --------- SECTIONS DES PROPRIÉTÉS --------- */
.property-box {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* --------- IMAGES --------- */
.property-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.3s ease-in-out;
}

/* --------- INFOS SUR CHAQUE PROPRIÉTÉ --------- */
.property-info {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

/* --------- EFFET AU SURVOL --------- */
.property-box:hover {
    transform: scale(1.02);
}

.property-box:hover img {
    transform: scale(1.1);
}

/* --------- GAUCHE ET DROITE --------- */
.left {
    background: rgba(0, 0, 0, 0.6);
}

.right {
    background: rgba(0, 0, 0, 0.6);
}

/* --------- RESPONSIVE POUR MOBILE --------- */
@media (max-width: 768px) {
    .properties-container {
        flex-direction: column;
        height: auto;
    }

    .property-box {
        height: 50vh;
    }
}

/* --------- BOUTON RETOUR --------- */
.btn-retour {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #ff5733;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-retour:hover {
    background: #e04e2a;
}
