body {
    font-family: Arial, sans-serif;
}

.bien-container {
    margin: 50px auto;
    max-width: 1200px;
}

.bien-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 450px; /* Fixer une hauteur fixe pour chaque bien */
    display: flex;
    flex-direction: column; /* Permet au contenu de s'ajuster à la taille */
}


.bien-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hover-details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}



.hover-details p {
    margin: 5px 0;
    text-align: center;
    font-size: 0.9rem;
}

.hover-details button {
    background-color: #bb9058;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hover-details button:hover {
    background-color: #a6784d;
}

/* Carrousel */
.bien-carousel img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour les images du carrousel */
    object-fit: cover; /* Assure que l'image couvre l'espace sans se déformer */
}


/* Zone inférieure avec les détails */
.bien-details {
    padding: 15px;
    background: #f9f9f9;
    flex-grow: 1; /* Permet à cette section de prendre l'espace restant */
}

.bien-details .detail-item {
    font-size: 1rem;
    margin-bottom: 15px; /* Espace entre chaque ligne */
    line-height: 1.6; /* Augmenter l'espace entre les lignes de texte */
}
.bien-details h5 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.bien-details p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

.bien-details .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #bb9058;
    margin-top: 10px;
}

/* Détails supplémentaires affichés uniquement au hover */


.bien-details:hover ~ .hover-details,
.hover-details:hover {
    opacity: 1;
    pointer-events: auto; /* Active l'interaction */
}



.hover-details h6 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

/* Section titre */
.page-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}
 
.page-title h1 {
    font-size: 2.5rem;
    color: #333;
}

.page-title p {
    font-size: 1.1rem;
    color: #555;
}



.carousel-inner .carousel-item img {
    display: block;
    opacity: 0; /* Cache l'image par défaut */
    transition: opacity 0.3s ease-in-out; /* Transition fluide */
}

.carousel-inner .carousel-item.active img {
    opacity: 1; /* Affiche l'image active avec fluidité */
}

.bien-info {
    margin-top: 20px;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: calc(33.33% - 10px);
    box-sizing: border-box;
    text-align: center;
}

.titre {
    text-align: center; /* Centre le texte */
    font-weight: bold;  /* Optionnel : met en gras */
}

/* Section des informations supplémentaires */
.info-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    width: calc(33.33% - 10px);
    box-sizing: border-box;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s ease; /* Transition pour le changement de couleur et de taille */
}

.info-item:hover {
    background-color: #bb9058; /* Changer la couleur de fond au survol */
    color: white; /* Changer la couleur du texte */
}

/* Si vous souhaitez que le changement de couleur s'applique également au titre, par exemple */
.info-item h6:hover {
    color: white;
    text-decoration: underline; /* Ajouter un soulignement si nécessaire */
}



footer {
    margin-top: 15px;
}

.btn-container {
    text-align: center; /* Centre le contenu horizontalement */
    margin-top: 20px;   /* Espace au-dessus du bouton, ajustez selon vos besoins */
}

.btn {
    display: inline-block; /* Par défaut, le bouton est en ligne avec un conteneur */
}

.page-title {
    text-align: center; /* Centrer le titre */
    margin-bottom: 20px; /* Marge en bas du titre, ajustez selon vos besoins */
}

.custom-hr {
    width: 50%;           /* Définir la largeur de la ligne */
    margin: 10px auto;    /* Centrer la ligne horizontalement */
    border: 3px solid #bbb; /* Couleur et épaisseur de la ligne */
    border-top: none;     /* Retirer la bordure du haut pour un effet plus simple */

}


.dpe-ges-image{
    width: 300px;
    height: auto;
}

@media (max-width: 768px) {
    .info-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .info-item {
        width: 100%;
    }
}
