/* Style global pour la page */

@font-face {
    font-family: 'Montserrat';
    src: url('https://kn-immo.fr/wp-content/fonts/montserrat/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXx-p7K4GLs.woff') format('woff');
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Styles de base */
nav {
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    height: 103px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

nav img {
    max-height: 63px; /* Hauteur du logo */
    width: 100%;
    margin: 20px 0px;
}

nav a {
    text-decoration: none;
    color: #4c5867;
    margin-right: 20px;
    font-size: 14px;
}

nav a:hover {
    color: #e59022;
}

#on-page {
    color: #e59022;
}

/* Styles pour le menu hamburger */
.menu-toggle {
    display: none; /* Caché par défaut */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: #4c5867;
    height: 4px;
    width: 25px;
    margin: 2px 0;
}

/* Styles pour le menu responsive */
.nav-links {
    display: flex;
}

.nav-links a {
    margin-right: 20px;
}

h1 {
    margin: 0;
    padding: 40px;
    background-color: #e59022; /* Couleur d'arrière-plan orange */
    color: #fff;
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.007em;
}

.bien-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    overflow: hidden;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bien-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.overscroll-container {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    background-color: #f7f7f7;
}

.overscroll-container img {
    height: auto; /* Ajuste automatiquement la hauteur */
    max-height: 200px; /* Limite la hauteur pour éviter que l'image ne soit trop grande */
    object-fit: contain; /* Conserve les proportions de l'image sans la couper */
    border-radius: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.bien-card-text {
    padding: 20px;
    text-decoration: none; /* Éviter le soulignement par défaut */
}

.bien-card-link {
    text-decoration: none; /* Enlever le soulignement des liens */
    color: inherit; /* Conserver la couleur du texte par défaut */
}

.bien-card-details h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.bien-card-details h4 {
    margin: 5px 0;
    font-size: 16px;
    color: #555;
}

.bien-card-details p {
    margin: 5px 0;
    font-size: 14px;
}

.bien-card-details .prix {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
}

footer {
    background-color: #374151;
    color: white;
}
.container {
    margin: 10px;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
}
.footer-section {
    min-width: 250px;
    max-width: 500px;
    margin: 10px;
    margin-bottom: 2rem;
}
.footer-section h2 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.footer-section h2 span:first-child {
    color: #f59e0b;
    margin-right: 0.5rem;
}
.footer-section h2 span:nth-child(2) {
    color: #f59e0b;
}
.footer-section p, .footer-section ul {
    margin: 0;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
.footer-section ul li i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
}
.footer-section ul li a {
    color: white;
    text-decoration: none;
}
.footer-section ul li a:hover {
    text-decoration: underline;
}
.footer-bottom {
    background-color: #1f2937;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-section {
        margin-bottom: 1.5rem;
    }
}
.sidebar {
    display: block;
    min-width: 350px;
    width: 20vh;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar div {
    width: 100%;
    border: none;
    height: 700px; /* Ajustez la hauteur de l'iframe si nécessaire */
}

/* Style pour le contenu principal avec sidebar */
.main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#bascule{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-self: flex-start;
}

#bascule-a{
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background-color: #e59022;
    text-decoration-line: none;
    padding: 14px;
    border: solid 3px #4c5867;
    align-self: flex-start;
    border-radius: 5px;
    width: 170px;
    text-align: center;
}

#bascule-a:hover{
    color: #e59022;
    background-color: #4c5867;
    border: solid 3px #e59022;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
}