/**
 * Styles du shortcode [chj_residences]
 * Namespace BEM : .chj-residences__*
 * Couleur de marque : #E22E86
 */

/* -----------------------------------------------
   1. Grille responsive
   ----------------------------------------------- */
.chj-residences {
    display: grid;
    grid-template-columns: repeat(var(--chj-residences-cols, 2), 1fr);
    gap: 40px 30px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* -----------------------------------------------
   2. Carte résidence
   ----------------------------------------------- */
.chj-residences__card {
    display: flex;
    flex-direction: column;
}

/* Centrer la dernière carte si elle est seule sur sa ligne (grille 2 colonnes) */
.chj-residences__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc((100% - 30px) / 2);
    margin-inline: auto;
}

/* -----------------------------------------------
   3. Logo
   ----------------------------------------------- */
.chj-residences__logo {
    margin-bottom: 20px;
}

.chj-residences__logo-img {
    max-width: 180px;
    height: auto;
}

/* -----------------------------------------------
   4. Titre
   ----------------------------------------------- */
.chj-residences__title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

/* -----------------------------------------------
   5. Image hero
   ----------------------------------------------- */
.chj-residences__image {
    margin-bottom: 20px;
}

.chj-residences__image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* -----------------------------------------------
   6. Description
   ----------------------------------------------- */
.chj-residences__desc {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1;
}

.chj-residences__desc p {
    margin-bottom: 15px;
}

.chj-residences__desc ul {
    margin: 0 0 15px 25px;
    padding: 0;
}

.chj-residences__desc li {
    margin-bottom: 4px;
}

/* -----------------------------------------------
   7. Bouton CTA
   ----------------------------------------------- */
.chj-residences__action {
    margin-top: auto;
}

.chj-residences__btn {
    display: inline-block;
    background-color: #E22E86;
    border: 2px solid #E22E86;
    color: #fff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.chj-residences__btn:hover,
.chj-residences__btn:focus {
    background-color: #c9246f;
    border-color: #c9246f;
    color: #fff;
    text-decoration: none;
}

/* -----------------------------------------------
   8. Responsive (< 768px)
   ----------------------------------------------- */
@media (max-width: 767px) {
    .chj-residences {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}