/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #F8F8FF;
    color: #333;
}




/* BARRE NAV PRINCIPALE EN HAUT */
.main-nav {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* background premium dégradé */
  padding: 12px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px); /* effet de flou derrière la nav */
}


/* LOGO à gauche */
.nav-left .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

.logo-text {
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(45deg, #4A90E2, #50E3C2, #9013FE);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  user-select: none;
  cursor: default;
  transition: transform 0.3s ease;
}

.logo-text:hover {
  transform: translateY(-3px) scale(1.05);
  text-shadow: 0 0 10px rgba(144, 19, 254, 0.7),
               0 0 20px rgba(80, 227, 194, 0.6);
}

/* LIENS CENTRAUX */
.nav-center.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  background-color: #4a90e2;
  color: white;
  transform: scale(1.05);
}

/* CONTENU PROFIL À DROITE */
.profil-container {
  position: relative;
}

.profil {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  background: #d0d5dd;
  padding: 8px 12px;
  border-radius: 10px;
  width: fit-content;
  user-select: none;
}

.profil .photo-profil {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #3498db;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profil:hover .photo-profil {
  transform: scale(1.1);
}

.profil span {
  color: black;
  font-size: 1rem;
  font-weight: bold;
}

.connexion-btn {
  background: #4a90e2;
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.connexion-btn:hover {
  background: #357ABD;
}

/* POPUP PROFIL */
.popup-profil {
  position: absolute;
  top: 55px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  width: 220px;
  display: none;
  z-index: 30;
}

.popup-profil ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-profil ul li {
  border-bottom: 1px solid #eee;
}

.popup-profil ul li:last-child {
  border-bottom: none;
}

.popup-profil ul li a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.popup-profil ul li a:hover {
  background-color: #4a90e2;
  color: white;
}



/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory; /* pour scroll fluide */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.image-slider a {
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Style général des images */
.image-slider img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

/* Hover (tous appareils sauf tactiles) */
.image-slider img:hover {
    transform: scale(1.05);
}

/* Tablette */
@media (max-width: 992px) {
    .image-slider img {
        width: 240px;
        height: 170px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .image-slider {
        display: flex;
        overflow-x: auto;
        gap: 12px;
    }

    .image-slider img {
        width: 220px;
        height: 160px;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .image-slider {
        display: flex;
        overflow-x: auto;
        gap: 10px;
    }

    .image-slider img {
        width: 180px;
        height: 140px;
    }
}


/* Description */
.description {
    margin: 10px auto 30px;
    width: 86%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.description h2 {
    font-size: 1.8rem;
    color: black;
    margin-bottom: 15px;
    text-decoration: underline;
    font-weight: 700;
}

.description p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-top: 12px;
    text-align: justify;
}

/* Style coloré pour strong avec une palette professionnelle */
.description strong {
    color: orange; /* bleu vif */
    font-weight: 700;
}



.equipements {
    margin-bottom: 10px;
}

.equipements h2 {
    font-size: 1.4rem;
    color: black;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-bottom: 2px solid #004d99;
    padding-bottom: 0;
}

.equipements ul {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* plus petit */
    gap: 4px; /* aucun espace */
    padding: 0;
    margin: 0;
}

.equipements li {
    display: flex;
    align-items: center;
    padding: 4px; /* très petit padding */
    background-color: orange;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: none; /* supprime l'effet d'ombre */
    transition: transform 0.3s ease;
    margin: 0; /* évite tout espace externe */
    width: 100%; /* ne pas fixer une largeur */
    box-sizing: border-box;
	color:black;
}

.equipements li:hover {
    transform: translateY(-3px);
}

.equipements li img {
    width: 24px;
    height: 24px;
    margin-right: 8px; /* réduit l'espace entre l'image et le texte */
    transition: transform 0.3s ease;
}

.equipements li:hover img {
    transform: scale(1.05);
}

.equipements li span {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* Couleurs spécifiques */
.equipements li.wifi {
    background-color: #e3f2fd;
    border-color: #42a5f5;
}

.equipements li.parking {
    background-color: #e8f5e9;
    border-color: #66bb6a;
}

.equipements li.climatisation {
    background-color: #f3e5f5;
    border-color: #ab47bc;
}

.equipements li.pool {
    background-color: #fff3e0;
    border-color: #ffb74d;
}


/* Container global */
.superficie-details-container {
    display: flex;
    justify-content: space-between;
    gap: 0px;
    flex-wrap: wrap;
    padding: 0px;
    box-sizing: border-box;
	width:80%
}

/* Détails */
.superficie-details-container .details {
    background: black;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 250px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

/* Titre des détails (Loyer, Bail, Superficie) */
.details h2 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    white-space: nowrap;
}

/* Valeur des détails (prix, superficie) */
.details span {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .superficie-details-container {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0px;
    }

    .details {
        width: auto;
        max-width: none;
        text-align: left;
        padding: 2px;
        font-size: 0.8rem;
    }

	.superficie-details-container .details h2 {
        font-size: 0.8rem; /* Réduction de la taille de la police pour les petits écrans */
        margin-right: 10px;
    }

    .details span {
        font-size: 0.8rem; /* Réduction également pour garder une bonne lisibilité */
    }
}



/* Map */
.map {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    

    .description h2,
    .equipements h2,
    .details h2 {
        font-size: 1.6rem;
    }

    .description p,
    .equipements li,
    .details p {
        font-size: 1rem;
    }
	
	.equipements h2{
        font-size: 1rem;
    }
	
	.description h2{
        font-size: 1.2rem;
    }
	
	.description p{
        font-size: 1rem;
    }
}


/* Section des appartements suggérés */
/* Conteneur principal pour les suggestions d'appartements */
.suggestions {
    display: flex;
    flex-wrap: nowrap;           /* ❗ plus de retour à la ligne */
    overflow-x: auto;            /* scroll horizontal */
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}


/* Style pour le titre des appartements suggérés */
.suggestions-title {
    font-size: 1.6em; /* Taille du texte */
    font-weight: 600; /* Poids du texte */
    color: #004d99; /* Couleur sombre */
    text-align: center; /* Centrer le titre */
    margin-bottom: 0px; /* Espacement sous le titre */
    padding: 10px 0; /* Espacement autour du titre */
    background-color: #f8f8f8; /* Couleur de fond douce */
    border-radius: 3px; /* Coins arrondis */
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1); /* Ombre discrète pour un effet moderne */
	margin-top:20px;
}
.product {
    max-width: 250px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
	gap:0px;
	padding: 0; /* Supprime les espaces internes dans .product */

	

}


.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product h3 {
    /*margin: 10px 0;*/
	margin: 0;
    font-size: 1.0rem;
    /*font-weight: 600;*/
}


.product span {
    color: #e74c3c;
    /*font-size: 1.rem;*/
    font-weight: bold;
}

.product-info .ville::before {
    content: "📍";
    margin-right: 5px;
    color: #004080;
}
.product-info {
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
	
	
	
}


.product-info span {
    font-size: 1.0rem;
    color: #e74c3c;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
	
}

.nom h3 a {
    color: #333; /* Change la couleur du texte */
    text-decoration: none; /* Supprime le soulignement */
	width: 100%; /* S'assure que le titre utilise toute la largeur */
    white-space: nowrap; /* Empêche le texte de passer à la ligne suivante */
    overflow: hidden; /* Cache tout texte débordant */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
    font-size: 0.9rem /* Taille de police par défaut */ !important;
    text-align: center; /* Centre le texte */
}






/* ------- RESPONSIVE DESIGN ------- */
@media screen and (max-width: 900px) {
    .product {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {
    .product {
        width: 100%;
    }
}




/* ------- ÉQUIPEMENTS ------- */
.equipements_sug {
	
	width: 100%; /* Largeur fixe */
    height: 50px; /* Hauteur fixe pour éviter le débordement */
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
    overflow-x: hidden; /* Empêche le défilement horizontal */
    background-color: #f8f8f8; /* Fond clair */
    border-radius: 5px; /* Coins arrondis */
    padding: 10px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	
}


/* Titre des équipements */
.equipements_sug h4 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    width: 100%; /* Le titre occupe toute la largeur de la ligne */
}



/* Liste des équipements */

.equipements_sug ul {
    max-height: 80px; /* Ajuster en fonction de la hauteur du parent */
    overflow-y: auto; /* Active le défilement interne si besoin */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


/* Élément de la liste des équipements */
.equipements_sug li {
    font-size: 0.7rem; /* Taille de texte réduite pour éviter l'encombrement */
    color: #666;
    margin: 2px 0;
    white-space: nowrap; /* Empêche les textes trop longs de passer à la ligne */
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
    overflow: hidden;
}

.equipements_sug li::before {
    content: "✔️"; 
    margin-right: 5px;
    color: green;
}



/* Optionnel : ajustement pour les petits écrans */
@media screen and (max-width: 768px) {
    .equipements_sug li {
        width: 50%; /* Deux éléments par ligne sur les écrans moyens */
    }
	
	.suggestions-title {
		font-size:1rem;
	}
	
	.suggestions .application-btn .btn-apply {
		font-size:0.5rem;
	}
		
}






@media screen and (max-width: 480px) {
    .equipements_sug li {
        width: 100%; /* Un élément par ligne sur les petits écrans */
    }
}
/* Optionnel : ajustement pour les petits écrans */
@media screen and (max-width: 768px) {
    .equipements_sug ul {
        grid-template-columns: repeat(2, 1fr); /* 2 éléments par ligne sur les écrans moyens */
    }
}

@media screen and (max-width: 480px) {
    .equipements_sug ul {
        grid-template-columns: 1fr; /* 1 élément par ligne sur les petits écrans */
    }
}


.equipements_sug p {
    font-size: 1rem;
    color: #999;
    font-style: italic;
}



/* ----------- BOUTON DE CANDIDATURE ----------- */
.application-btn {
    text-align: center;
    margin-top: 0px;	
}

.application-btn .btn-apply {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 5px 5px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s ease-in-out;	
}


.application-btn .btn-apply:hover {
    background-color: #f1c40f;
    color: #004080;
    transform: scale(1.05);
}


	

.product .slideshow-container {
    position: relative;
}

.product .corner-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
}

.product .prev,
.product .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.product .prev {
    left: 10px;
}

.product .next {
    right: 10px;
}
/* Conteneur des informations de l'appartement */
.product .nom,
.product .product-info,
.product .equipements {
    padding: 0; /* Supprime les espaces internes dans chaque section */
    margin: 0;  /* Supprime les marges */
}





@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

.container_div {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-50%) translateX(100px);
    animation: slideIn 0.6s ease-in-out forwards;
    will-change: transform, opacity;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}


.container_div:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.container_div h2 {
    font-size: 18px;
    color: black;
    text-align: center;
}
/* Modifier container_div pour l'affichage sur petit écran */
/* Positionnement du bouton en bas sur petit écran */
/* Par défaut, afficher tout le contenu de .container_div */
.container_div {
    display: block;
}

/* Réduire les dimensions et modifier le contenu sur les petits écrans */
@media (max-width: 768px) {
    /* Modifier la taille du contenu à l'intérieur de .container_div */
    .container_div {
        width: 35%; /* Réduire la largeur du conteneur */
        padding: 0px; /* Ajouter un peu de padding */
    }

    /* Réduire la taille de la police de tout le contenu */
    .container_div * {
        font-size: 10px; /* Réduire la taille de la police */
    }

    /* Cacher tout le contenu sauf le bouton */
    .container_div > * {
        display: none;
    }

    /* Afficher uniquement le bouton */
    .container_div .application-btn {
        display: block;
        font-size: 10px; /* Si nécessaire, ajustez la taille du bouton */
        padding: 8px 16px; /* Ajustez le padding du bouton */
    }
	
	.container_div .application-btn a{
        font-size: 10px; /* Si nécessaire, ajustez la taille du bouton */
    }
}

/* Bouton de candidature */
.application-btn {
    text-align: center;
    margin-top: 20px;
}

.application-btn .btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.application-btn .btn-apply i {
    margin-right: 8px;
}

.application-btn .btn-apply:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.application-btn .btn-apply:active {
    transform: scale(0.95);
}



.virtuelle {
    position: relative;
    text-align: center;
    display: inline-block;
}

.visite-link {
    display: block;
    position: relative;
}

.visite-image {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.visite-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: 0.3s ease-in-out;
}

.visite-link:hover .visite-image {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.visite-link:hover .visite-text {
    background: rgba(0, 123, 255, 0.8);
}
.virtuelle, .details, .application-btn {
    margin: 0;
    padding: 0;
}

.container_div .application-btn .btn-apply {
	font-size:10px;
}

@media screen and (max-width: 768px) {
    .container_div .application-btn .btn-apply{
        font-size:8px;
        padding: 5px 5px;
    }
	
}




/* Conteneur principal flex */
.conteneur-flex {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* même hauteur pour les 2 blocs */
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    max-width: 900px;
}

/* Bloc Visite Virtuelle */
.container_div_principale {
    flex: 1 1 48%;
    max-width: 48%;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container_div_principale:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Image visite virtuelle */
.virtuelle_principale {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.visite-link {
    display: block;
    transition: transform 0.3s ease;
}

.visite-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visite-link:hover .visite-image {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* Titre Visite Virtuelle */
.container_div_principale h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* Bloc Informations Supplémentaires */
.info-supplementaires {
    flex: 1 1 48%;
    max-width: 48%;
    min-width: 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-supplementaires:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.info-supplementaires h3 {
    font-size: 1.1rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.info-supplementaires ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-supplementaires li {
    font-size: 0.95rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.info-supplementaires li:last-child {
    border-bottom: none;
}

/* Icône avant chaque li */
.info-supplementaires li::before {
    content: "✔";
    color: #007bff;
    font-weight: bold;
    margin-right: 10px;
}

/* Carte & Graphique */
.map-chart-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.map-section, #chart-container {
    flex: 1 1 40%;
    max-width: 40%;
    min-width: 250px;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.map-section h3, #chart-container h3 {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

/* Carte */
.map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

/* Graphique */
#chart {
    width: 100% !important;
    height: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
    .conteneur-flex, .map-chart-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .container_div_principale,
    .info-supplementaires,
    .map-section,
    #chart-container {
        max-width: 100%;
    }

    .container_div_principale h2 {
        font-size: 1rem;
    }

    .info-supplementaires h3 {
        font-size: 1rem;
    }

    .info-supplementaires li {
        font-size: 0.85rem;
    }
}






.corner-info.left {
    left: auto;
    right: 10px;
}

.slideshow-container .corner-info.left span{
    font-size: 14px !important;
	color:white !important;
	font-weight: bold !important;
}


.superficie {
	background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 5px 5px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 0px 0;
}

.superficie h3 {
    margin: 0;
    font-size: 20px;
}

.superficie span {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.superficie-details-container {
    display: flex;
    justify-content: center; /* Espace égal entre les deux éléments */
    align-items: center; /* Aligne verticalement les éléments */
}

/* Classe superficie */
.superficie {
    margin-right: 20px; /* Optionnel: pour ajouter de l'espace entre los deux éléments */
}

/* Classe details */
.details {
    margin-left: 20px; /* Optionnel: pour ajouter de l'espace entre los deux éléments */
}





.image-slider {
    position: relative;
}

.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
}

/* Ajustements pour les écrans moyens */
@media (max-width: 1200px) {
    .image-counter {
        font-size: 12px; /* Réduction de la taille du texte */
        padding: 4px 8px; /* Réduction de l'espace autour du texte */
        top: 8px;
        right: 8px;
    }
}

/* Ajustements pour les écrans de taille tablette */
@media (max-width: 768px) {
    .image-counter {
        font-size: 11px; /* Réduction supplémentaire pour les tablettes */
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
}


.message-info {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #F8F8FF;
    color: black;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    max-width: 80%;
}

.message-info.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}







/* Style de la fenêtre modale */
.modal {
  display: none; /* Cachée par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Fond semi-transparent */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 5px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}


.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 30px 20px 20px 20px;
    width: 600px;
    max-width: 95%;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow-y: auto;
    max-height: 95vh;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #000;
}

/* Style formulaire */
.popup-content {
    font-family: Arial, sans-serif;
}
.popup-content h2 {
    text-align: center;
    margin-bottom: 20px;
}
.popup-content form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.popup-content label {
    width: 100%;
    font-weight: bold;
    margin-top: 5px;
}
.popup-content input[type="text"],
.popup-content input[type="email"],
.popup-content input[type="date"],
.popup-content textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.popup-content textarea {
    resize: vertical;
    min-height: 80px;
}
.popup-content button {
    width: 100%;
    padding: 12px;
    background-color: #2e86de;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.popup-content button:hover {
    background-color: #1b4f72;
}

/* Deux colonnes pour les inputs sur grand écran */
.popup-content form > div.form-group {
    width: 48%;
}
.popup-content form > .form-full {
    width: 100%;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .modal-content {
        width: 90%;
        padding: 25px 15px;
    }
    .popup-content form > div.form-group {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .popup-content {
        font-size: 15px;
    }
}

@media screen and (max-width: 425px) {
    .popup-content {
        font-size: 14px;
    }
    .modal-content {
        padding: 20px 10px;
    }
}

@media screen and (max-width: 375px) {
    .popup-content {
        font-size: 13.5px;
    }
    .close-modal {
        font-size: 22px;
        top: 8px;
        right: 10px;
    }
}

@media screen and (max-width: 320px) {
    .popup-content {
        font-size: 13px;
    }
    .modal-content {
        padding: 15px 8px;
    }
    .close-modal {
        font-size: 20px;
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001; /* supérieur à modal-content */
    background-color: white;
    border-radius: 50%;
    padding: 0 8px;
}


/* Menu hamburger */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Menu mobile caché par défaut */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 15px;
  z-index: 10001;
  text-align:center;
}



.mobile-menu a {
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  background-color: #4a90e2;
  color: white;
  border-radius: 5px;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
  .nav-center,
  .nav-right {
    display: none !important; /* <-- ajout du !important si conflit */
  }

  .hamburger {
    display: block;
  }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* léger fond noir semi-transparent */
  display: none;
  z-index: 10; /* inférieur au menu popup */
}


@media screen and (max-width: 768px) {
    .suggestions {
        display: flex;           /* passer en flex row */
        flex-wrap: nowrap;       /* empêcher le wrap en colonne */
        overflow-x: auto;        /* scroll horizontal */
        gap: 15px;               /* espace entre les cartes */
        padding-bottom: 10px;    /* espace pour le scroll */
        -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
    }

    .suggestions .product {
        flex: 0 0 auto;          /* empêcher que les cartes se réduisent */
        width: 250px;            /* largeur fixe par carte, ajustable */
    }
}

/* =============================
   AVIS PROPRIÉTAIRE - CONTENEUR
   ============================= */
.avis-proprietaire {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: url('avis.png') center/cover no-repeat;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.avis-proprietaire h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.avis-proprietaire .moyenne {
    font-size: 22px;
    margin-bottom: 30px;
    color: #f39c12;
}

.avis-proprietaire .moyenne span {
    font-size: 15px;
    color: #7f8c8d;
}

/* =============================
   SLIDER DES COMMENTAIRES
   ============================= */
.commentaires-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 220px; /* Hauteur fixe pour un seul commentaire visible */
    overflow: hidden;
}

/* Chaque commentaire superposé */
.commentaires-slider .commentaire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(20px); /* effet léger de slide */
}

/* Commentaire actif */
.commentaires-slider .commentaire.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =============================
   STYLE DE CHAQUE COMMENTAIRE
   ============================= */
.commentaire {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    text-align: center; /* Centre tout le contenu */
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commentaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

.commentaire strong {
    font-size: 16px;
    color: #34495e;
    display: block;
    margin-bottom: 6px;
}

.commentaire .note {
    display: inline-block; /* Supprime le float */
    color: #f1c40f;
    font-weight: bold;
}

.commentaire p {
    margin: 12px 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.commentaire small {
    color: #999;
    font-size: 13px;
}

/* =============================
   DOTS (facultatif) - indicateur du slider
   ============================= */
.commentaires-dots {
    text-align: center;
    margin-top: 15px;
}

.commentaires-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.commentaires-dots span.active {
    background-color: #f39c12;
}



.badge-boost {
    position: absolute;      /* Se place par rapport au slideshow-container */
    bottom: 3px;               /* Même top que corner-info */
    left: 0px;              /* Décalage depuis le coin gauche */
    background-color: #FFD700; /* Jaune doré */
    color: black;
    padding: 4px 8px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    z-index: 12;             /* Au-dessus des images et des coins-info */
    pointer-events: none;    /* Ne bloque pas les clics sur le slideshow */
}

.boosted-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 15px 0 25px;
}

.btn-boost {
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    background: #eee;
    color: #333;
    font-weight: 600;
}

.btn-boost.active {
    background: #ff6b6b;
    color: #fff;
}
