/*Conteneur principal après le header et la sidebar */
.main-content {
  display: flex;
  margin-top: 90px; /* hauteur du header */
  margin-left: 250px; /* largeur de la sidebar */
  height: calc(100vh - 90px);
  background-color: #f8f8f8;
}
/* Section du chatbot */
.chat-section {
  display: flex;
  flex-direction: column;
  width: 35%;
  background-color: #ffffff;
  height: 100%;
  position: relative;
}


.chat-header {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  background-color: white;
  border-bottom: 1px solid #ddd;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Messages alignés à gauche (bot) */
.message.bot {
  align-self: flex-start;
  background-color: #ffffff;
  color: #000;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 16px;
  white-space: pre-wrap;
  font-family: Arial;
}

/* Messages alignés à droite (utilisateur) */
.message.user {
  align-self: flex-end;
  background-color: #f0f0f0;
  color: rgb(0, 0, 0);
  padding: 12px 16px;
  border-radius: 16px;
  font-family: Arial;
  max-width: 80%;
  font-size: 16px;
  white-space: pre-wrap;
}

/* Input en bas fixé */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background-color: white;
  margin-bottom: 8px;
  height: 60px;
 
}

.chat-input-area input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  font-size: 18px;
  font-family: Arial;
}

.chat-input-area button {
  padding: 0 16px;
  border: none;
  background-color: #a5a5a5;
  color: white;
  font-size: 18px;
  font-family: Arial;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input-area button:hover {
  background-color: #000000;
}

#reset-chat-button {
  margin: 0 20px 20px 20px;
  padding: 10px 20px;
  background-color: #ff9100;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s;
  font-family: Arial;
  width: 150px;
}

.reset-button-container {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}


#reset-chat-button:hover {
  background-color: #d67200;
}


/* Section des propriétés */
.properties-display {
  width: 65%;
  padding: 20px;
  overflow-y: auto;
  background-color: #ffffff;
}

.properties-display h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* Exemple de carte de propriété (tu pourras les générer dynamiquement) */
.property-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 15px;
  background-color: #f5f5f5;
}

.property-card {
   display: flex;
  flex-direction: row;
  align-items: stretch; /* <--- important pour que le bloc image suive la hauteur */
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-image {
  height: 272px;
  width: 416px;
  object-fit: cover;
  border-radius: 40px;
}

.property-details {
  padding: 15px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.property-location {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

.property-description {
  font-size: 15px;
  color: #444;
  margin-bottom: 15px;
}

.property-price {
  font-size: 16px;
  font-weight: bold;
  color: #1a73e8;
}

.property-description1 {
  margin-top: 140px;
}

.carousel-container {
  position: relative;
  width: 416px;
  height: 272px;
  overflow: hidden;
  border-radius: 40px;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 40px;
}

.carousel-image.active {
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}


















/* RESET de base */
.header2, .all-button, .profil-block {
  box-sizing: border-box;
}

.header2 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 0 28px;
}

/* Logo & Burger */
.logo {
  height: 38px;
  display: block;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-right: 16px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 27px;
  height: 3px;
  background: #ff6600;
  border-radius: 2px;
  transition: 0.25s;
}

/* Nav */
.all-button {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.header-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #474747;
  background: none;
  border: none;
  padding: 10px 19px;
  border-radius: 7px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.header-btn:hover,
.header-btn.active {
  background: #faf7f3;
  color: #ff6600;
  box-shadow: 0 1px 4px 0 rgba(255, 102, 0, 0.09);
}

/* Dropdown - Desktop Only */
.dropdown {
  position: relative;
  display: inline-block;
}

.buy-button {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.arrow {
  font-size: 0.8em;
  transition: transform 0.2s;
}
.dropdown.open .arrow {
  transform: rotate(180deg);
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 112%;
  min-width: 170px;
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(31,31,35,0.10);
  border-radius: 10px;
  z-index: 12;
  padding: 7px 0;
  animation: fadeIn 0.17s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px);}
  to { opacity: 1; transform: translateY(0);}
}
.dropdown.open .dropdown-content {
  display: block;
}
.dropdown-option {
  padding: 13px 20px 13px 24px;
  display: block;
  font-weight: 600;
  color: #ff6600;
  background: none;
  border: none;
  font-size: 1.03rem;
  text-align: left;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-option:hover {
  background: #ff6600;
  color: #fff;
}

/* Profil */
.profil-block {
  margin-left: 16px;
}

/* Responsive : MOBILE (<900px) */
@media (max-width: 900px) {
  .header2 {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 12px;
    min-height: 52px;
  }
  .logo {
    margin: 0 auto;
    height: 30px;
  }
  .burger {
    display: flex;
  }
  .profil-block {
    margin-left: auto;
    margin-right: 0;
  }
  /* Nav menu mobile */
  .all-button {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    width: 100%;
    box-shadow: none;
    padding: 18px 0 0 0;
    position: absolute;
    left: 0;
    top: 55px;
    z-index: 21;
    border-radius: 0 0 15px 15px;
    border-top: 1.5px solid #ececec;
    display: none; /* sera activé par JS burger */
  }
  .all-button.menu-open {
    display: flex;
  }
  .header-btn,
  .all-button > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 0 14px 24px;
    margin: 0;
    font-size: 1.13rem;
    border-radius: 0;
    background: none;
    color: #454545;
    font-weight: 600;
    box-shadow: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.13s, color 0.13s;
  }
  .header-btn:hover,
  .all-button > a:hover {
    background: #fff3e6;
    color: #ff6600;
  }
  /* Plus de dropdown sur mobile */
  .dropdown, .dropdown-content {
    display: none !important;
  }
  /* Montrer les 3 liens Buy/Rent/Commercial sur mobile */
  .mobile-buy-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0 0 0 0;
    gap: 0;
  }
  .mobile-buy-menu a {
    color: #454545;
    font-weight: 600;
    background: none;
    border: none;
    padding: 14px 0 14px 24px;
    text-align: left;
    width: 100%;
    font-size: 1.13rem;
    margin: 0;
    border-radius: 0;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
    transition: color 0.15s, background 0.15s;
  }
  .mobile-buy-menu a:hover {
    color: #ff6600;
    background: #fff3e6;
  }
  /* One-line for chat property AI */
  .chat-button {
    white-space: nowrap;  
    max-width: 97vw;
  }
}

/* Désactive le menu mobile sur desktop */
@media (min-width: 901px) {
  .mobile-buy-menu {
    display: none !important;
  }
}

