/* PAGE NOS RESIDENCES */

.residences-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.residence-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Lato';
    max-width: 433px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.residence-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.residence-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ajuste l’image sans la déformer */
    object-position: center; /* centre l’image verticalement et horizontalement */
    display: block;
}

.badge-dispo {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #F7A600;
    color: white;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: bold;
}

.residence-content {
    padding: 20px;
    color: #333;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.residence-ville {
    font-size: 16px;
    color: #888;
    margin: 0 0 5px;
    font-family: 'Lato';
}

.residence-ville .fas.fa-map-marker-alt {
    color: #F7A600;
}

.residence-nom, .residence-content .ville {
    color: #55017d;
    margin: 0;
    font-size: 18px;
    font-weight: initial;
    font-family: 'arial-black';
}

.residence-desc {
    font-size: 17px;
    margin: 10px 0;
    color: #555;
}

.residence-details {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    font-size: 17px;
    margin-bottom: 10px;
}

.residence-details .label {
    color: #888;
    font-size: 16px;
    background: transparent;
    padding: 0;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: initial;
}
.residence-details strong {
    font-weight: bold;
    color: #712283; /* Violet LRYE */
}
.price {
    color: #55017d;
    font-weight: bold;
}

.btn-decouvrir {
    display: block;
    text-align: center;
    background: #55017d;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: auto;
}

.btn-decouvrir:hover {
    background: #F7A600;
    color: #fff;
}

.residence-card.residence-indispo {
    opacity: 0.6;
    pointer-events: none; /* désactive les clics, même accidentels */
}

.badge-prochainement {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ccc;
    color: #000;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: bold;
}
/* END */

/* Bloc prix + charges comprises compact */
.residence-card-price {
    display: flex;
    flex-direction: column;  /* force l’empilement vertical */
    align-items: flex-start; /* tout aligné à gauche */
}

.residence-card-price .label {
    font-size: 16px;
    color: #888;
    margin-bottom: 6px;
    text-transform: initial;
}

.residence-card-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #55017d;
    margin: 0;
    line-height: 1.2;
}

.residence-card-price .post-price {
    margin-top: -5px;
    font-size: 0.8rem;
    color: #666;
    line-height: inherit;
}

