/*
=========================================
LOYER SHERBROOKE - PAGE ACCUEIL
=========================================
*/

:root {
  --ls-blue: #1f5fbf;
  --ls-blue-dark: #12376f;
  --ls-text: #0d1b35;
  --ls-gray: #f5f7fb;
  --ls-white: #ffffff;
  --ls-muted: #4b5563;
}

/* HERO */

.home .et_pb_section_0 {
  position: relative !important;
  overflow: hidden !important;
  min-height: 680px !important;
  display: flex !important;
  align-items: center !important;
  padding: 90px 0 !important;
}

.home .et_pb_section_0:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.98) 0%,
    rgba(255,255,255,0.94) 45%,
    rgba(255,255,255,0.70) 75%,
    rgba(255,255,255,0) 100%
  );
}

.home .et_pb_section_0 .et_parallax_bg_wrap,
.home .et_pb_section_0 .et_parallax_bg {
  z-index: 0 !important;
}

.home .et_pb_section_0 .et_pb_row_0 {
  position: relative !important;
  z-index: 2 !important;
  width: 90% !important;
  max-width: 1320px !important;
  display: flex !important;
  align-items: center !important;
}

.home .et_pb_section_0 .et_pb_column_0 {
  width: 55% !important;
}

.home .et_pb_section_0 .et_pb_column_1 {
  width: 40% !important;
  margin-left: 5% !important;
}

.home .lpl-eyebrow,
.home .ls-eyebrow,
.home .ls-section-eyebrow {
  color: var(--ls-blue) !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 14px !important;
}

.home .lpl-home h1,
.home .ls-hero-title h1,
.home .ls-hero-title {
  color: var(--ls-text) !important;
  font-size: clamp(42px, 5vw, 72px) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  max-width: 680px !important;
}

.home .lpl-hero-text,
.home .ls-hero-text {
  color: #334155 !important;
  font-size: 20px !important;
  line-height: 1.55 !important;
  max-width: 580px !important;
}

/* BOUTONS */

.home .lpl-main-btn,
.home .ls-btn-primary,
.home .ls-center-button,
.home .ls-center-button .et_pb_button {
  display: inline-block !important;
  background: var(--ls-blue) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.home .ls-btn-secondary {
  background: rgba(255,255,255,.65) !important;
  color: var(--ls-text) !important;
  border: 2px solid var(--ls-text) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

/* FORMULAIRE DE RECHERCHE */

.home .lpl-search-card,
.home .ls-search-card {
  background: rgba(31,95,191,0.94) !important;
  color: #ffffff !important;
  border-radius: 18px !important;
  padding: 34px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22) !important;
}

.home .lpl-search-card h3,
.home .lpl-search-card p,
.home .lpl-search-card label,
.home .ls-search-card h3,
.home .ls-search-card p,
.home .ls-search-card label {
  color: #ffffff !important;
}

.home .lpl-search-card h3,
.home .ls-search-card h3 {
  font-size: 28px !important;
  margin-bottom: 10px !important;
}

.home .lpl-search-card select,
.home .lpl-search-card input,
.home .ls-search-card select,
.home .ls-search-card input {
  width: 100% !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  border: none !important;
  background: #ffffff !important;
  color: var(--ls-text) !important;
  margin-bottom: 14px !important;
}

.home .lpl-search-button,
.home .ls-search-card button,
.home .ls-search-card .et_pb_button {
  display: block !important;
  width: 100% !important;
  background: #ffffff !important;
  color: var(--ls-blue) !important;
  border-radius: 999px !important;
  padding: 14px 20px !important;
  text-align: center !important;
  font-weight: 800 !important;
  border: none !important;
  text-transform: uppercase !important;
}


/* =========================================================
   SECTION IMMEUBLES DYNAMIQUE
   Cadrage renforcé pour grands écrans
   ========================================================= */

/*
 * IMPORTANT :
 * Le vrai fond de section est porté par .lpl-properties
 * (la section Divi), pas seulement par .lpl-home-properties.
 * C'est ce qui crée maintenant une vraie séparation visuelle.
 */
.home .lpl-properties {
  position: relative !important;
  padding: 78px 0 88px !important;
  background: #f3f6fa !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}

/*
 * On élargit légèrement la rangée Divi pour que le panneau
 * ait plus de présence sur les grands écrans.
 */
.home .lpl-properties > .et_pb_row {
  width: 90% !important;
  max-width: 1380px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/*
 * Le contenu blanc devient un vrai panneau central.
 */
.home .lpl-home-properties {
  position: relative !important;
  padding: 64px 58px 58px !important;
  background: #ffffff !important;
  border: 1px solid #dfe6ef !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 46px rgba(13, 27, 53, 0.07) !important;
  overflow: hidden !important;
}

/*
 * Accent décoratif très subtil.
 */
.home .lpl-home-properties:before {
  content: "" !important;
  position: absolute !important;
  width: 330px !important;
  height: 330px !important;
  top: -170px !important;
  right: -150px !important;
  border-radius: 50% !important;
  background: rgba(31, 95, 191, 0.045) !important;
  pointer-events: none !important;
}

.home .lpl-home-properties-head {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  max-width: 820px !important;
  margin: 0 auto 44px !important;
  text-align: center !important;
}

.home .lpl-home-properties-head .lpl-section-kicker {
  color: var(--ls-blue);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 18px;
}

.home .lpl-home-properties-head h2 {
  color: var(--ls-text);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 18px;
}

.home .lpl-home-properties-head p {
  max-width: 760px;
  margin: 0 auto;
  color: #6b768a;
  font-size: 21px;
  line-height: 1.6;
}

.home .lpl-home-properties-scroll {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  overflow: visible !important;
  padding: 10px 0 30px !important;
}

.home .lpl-home-property-card {
  width: 100% !important;
  flex: none !important;
  background: #ffffff !important;
  border: 1px solid #e4e9f1 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(13, 27, 53, .10) !important;
  scroll-snap-align: start !important;
  transition: 0.25s ease !important;
}

.home .lpl-home-property-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31,95,191,.22) !important;
  box-shadow: 0 24px 60px rgba(13, 27, 53, .16) !important;
}

.home .lpl-home-property-image {
  display: block !important;
  height: 230px !important;
  overflow: hidden !important;
  background: #e8edf5 !important;
}

.home .lpl-home-property-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: 0.35s ease !important;
}

.home .lpl-home-property-card:hover .lpl-home-property-image img {
  transform: scale(1.05);
}

.home .lpl-home-property-content {
  padding: 26px !important;
}

.home .lpl-home-property-content h3 {
  color: var(--ls-text) !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}

.home .lpl-home-property-sector {
  color: #6b768a !important;
  font-size: 15px !important;
  margin-bottom: 16px !important;
}

.home .lpl-home-property-badge {
  display: inline-flex !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-bottom: 20px !important;
}

.home .lpl-home-property-badge.is-available {
  background: #eaf3ff !important;
  color: var(--ls-blue) !important;
}

.home .lpl-home-property-badge.is-full {
  background: #f1f3f6 !important;
  color: #6b768a !important;
}

.home .lpl-home-property-link {
  display: inline-flex !important;
  color: var(--ls-blue) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.home .lpl-home-property-link:hover {
  color: var(--ls-blue-dark) !important;
}


/* =========================================================
   TRÈS GRANDS ÉCRANS
   ========================================================= */

@media (min-width: 1600px) {
  .home .lpl-properties {
    padding-top: 92px !important;
    padding-bottom: 102px !important;
  }

  .home .lpl-properties > .et_pb_row {
    width: 86% !important;
    max-width: 1480px !important;
  }

  .home .lpl-home-properties {
    padding: 72px 72px 66px !important;
  }
}


/* RESPONSIVE */

@media (max-width: 980px) {
  .home .et_pb_section_0:before {
    width: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.68) 0%,
      rgba(255,255,255,0.40) 40%,
      rgba(255,255,255,0.12) 75%,
      rgba(255,255,255,0) 100%
    ) !important;
  }

  .home .et_pb_section_0 .et_pb_row_0 {
    display: block !important;
    width: 90% !important;
    max-width: 600px !important;
  }

  .home .et_pb_section_0 .et_pb_column_0,
  .home .et_pb_section_0 .et_pb_column_1 {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .home .lpl-home h1,
  .home .ls-hero-title h1,
  .home .ls-hero-title {
    font-size: 42px !important;
  }

  .home .lpl-hero-text,
  .home .ls-hero-text {
    font-size: 18px !important;
  }

  .home .lpl-search-card,
  .home .ls-search-card {
    margin-top: 30px !important;
    padding: 28px !important;
  }

  .home .lpl-properties {
    padding: 58px 0 64px !important;
  }

  .home .lpl-properties > .et_pb_row {
    width: 90% !important;
  }

  .home .lpl-home-properties {
    padding: 46px 34px 42px !important;
    border-radius: 18px !important;
  }

  .home .lpl-home-properties-scroll {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    padding: 10px 0 28px !important;
  }

  .home .lpl-home-property-card {
    width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
  }
}

@media (max-width: 767px) {
  .home .lpl-home-properties-head h2 {
    font-size: 38px;
  }

  .home .lpl-home-properties-head p {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .home .lpl-properties {
    padding: 42px 0 46px !important;
  }

  .home .lpl-properties > .et_pb_row {
    width: calc(100% - 28px) !important;
  }

  .home .lpl-home-properties {
    padding: 34px 18px 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 28px rgba(13, 27, 53, 0.06) !important;
  }

  .home .lpl-home-properties:before {
    display: none !important;
  }

  .home .lpl-home-properties-scroll {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .home .lpl-home-property-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .home .lpl-home-property-image {
    height: 240px !important;
  }

  .home .lpl-home-property-content {
    padding: 24px !important;
  }
}

@media (max-width: 480px) {
  .home .lpl-home h1,
  .home .ls-hero-title h1,
  .home .ls-hero-title {
    font-size: 36px !important;
  }

  .home .et_pb_section_0 .et_pb_row_0 {
    width: 92% !important;
  }
}
