/* Univers Diaspora — Immobilier & BTP */

:root {
  --ud-blue: #1e3a6e;
  --ud-blue-light: #2a5a9e;
  --ud-gold: #d9a04a;
  --ud-gold-soft: #e8c98a;
  --bg: #f7f4ee;
  --ink: #0d1528;
  --muted: rgba(13, 21, 40, 0.68);
  --line: rgba(24, 40, 88, 0.12);
  --surface: #fff;
  --accent: var(--ud-gold);
  --accent-ink: #0d1528;
  --text: var(--ink);
  --shadow: 0 18px 50px rgba(12, 24, 48, 0.12);
  --radius: 18px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0a1228;
  --ink: #f4f6fa;
  --muted: rgba(244, 246, 250, 0.7);
  --line: rgba(232, 201, 138, 0.18);
  --surface: #142038;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  position: relative;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ud-blue); text-decoration: none; }
h1, h2, h3, .brand-name, .listing__price, .page-title, .hero__title {
  font-family: var(--font-serif);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.is-home .site-header:not(.is-scrolled) {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
}
.site-nav { padding: .55rem 0; }
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ud-blue) !important;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--ud-blue);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}
.brand-mark--on-dark { background: var(--ud-gold); color: #0d1528; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--ud-blue); }
.brand-meta {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ud-gold);
}
.is-home .site-header:not(.is-scrolled) .brand-name,
.is-home .site-header:not(.is-scrolled) .nav-link {
  color: #fff !important;
}
.is-home .site-header:not(.is-scrolled) .nav-link-back { color: rgba(255,255,255,.75) !important; }

.site-nav .nav-link {
  font-weight: 700 !important;
  color: var(--ud-blue) !important;
  padding: .4rem .7rem !important;
  font-size: .92rem;
}
.site-nav .nav-link.active { color: var(--ud-gold) !important; }
.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
}
@media (min-width: 992px) {
  .header-actions { display: none; }
}
.btn-back-ud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ud-blue) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
}
.btn-back-ud:hover {
  background: rgba(30, 58, 110, .06);
  color: var(--ud-blue) !important;
}
.nav-link-back {
  opacity: .85;
  font-weight: 800 !important;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ud-blue);
}
.theme-toggle-icon {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: inset -4px -2px 0 currentColor;
  display: block;
}
html[data-theme="dark"] .theme-toggle-icon { box-shadow: none; background: currentColor; }

.btn {
  font-weight: 800;
  border-radius: 999px !important;
  padding: .72rem 1.2rem;
}
.btn-gold, .btn-warning {
  background: var(--ud-blue) !important;
  border-color: var(--ud-blue) !important;
  color: #fff !important;
}
.btn-gold:hover, .btn-warning:hover { background: #152d52 !important; color: #fff !important; }
.btn-ghost, .btn-outline-light, .btn-outline-warning {
  background: transparent !important;
  border: 2px solid currentColor !important;
  color: var(--ud-blue) !important;
}
.hero .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }

/* Hero photo */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #0a1228 center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,40,.25) 0%, rgba(10,18,40,.55) 45%, rgba(10,18,40,.88) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: 0 0 4.2rem;
  width: 100%;
}
.hero__kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ud-gold-soft);
  margin-bottom: .8rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .98;
  font-weight: 700;
  max-width: 12ch;
  margin: 0 0 1rem;
}
.hero__lead {
  max-width: 38ch;
  color: rgba(255,255,255,.84);
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
}
.hero__search {
  display: flex;
  gap: .5rem;
  max-width: 520px;
  background: #fff;
  border-radius: 999px;
  padding: .35rem .35rem .35rem 1.1rem;
  margin-top: 1.4rem;
}
.hero__search input {
  border: 0;
  flex: 1;
  min-width: 0;
  outline: none;
  font: inherit;
  color: var(--ink);
  background: transparent;
}

/* Sections */
.section { padding: 4.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ud-gold);
  margin-bottom: .45rem;
}
.page-title, .section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.08;
  color: var(--ud-blue);
  margin: 0;
}
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .section-title { color: #fff; }
.page-title em, .section-title em { color: var(--ud-gold); font-style: italic; }
.meta, .section-subtitle { color: var(--muted); }

/* Listing cards */
.listing {
  display: block;
  color: inherit;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.listing:hover { transform: translateY(-4px); color: inherit; }
.listing__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1e3a6e center/cover no-repeat;
}
.listing__badge, .listing__price {
  position: absolute;
  z-index: 1;
}
.listing__badge {
  top: .85rem; left: .85rem;
  background: var(--ud-gold);
  color: #1a1408;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: 999px;
}
.listing__price {
  left: .9rem; bottom: .85rem;
  color: #fff;
  font-size: 1.45rem;
  text-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.listing__body { padding: 1rem 1.05rem 1.15rem; }
.listing__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ud-blue);
  line-height: 1.15;
  margin: 0 0 .2rem;
}
html[data-theme="dark"] .listing__title { color: #fff; }

.chip {
  display: inline-flex;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(217,160,74,.18);
  color: #5a4a1d;
  border: 1px solid rgba(217,160,74,.4);
}
.chip-warning { background: rgba(217,160,74,.3); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.step {
  padding: 1.4rem 1.3rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step__n {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ud-gold);
  line-height: 1;
}
.step h3 {
  margin: .5rem 0 .35rem;
  font-size: 1.25rem;
  color: var(--ud-blue);
}

/* Services compact */
.svc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}
.svc__n {
  font-family: var(--font-serif);
  color: var(--ud-gold);
  font-size: 1.2rem;
}
.svc h3 { margin: 0 0 .25rem; font-size: 1.15rem; color: var(--ud-blue); }

.shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  background: #1e3a6e center/cover no-repeat;
  color: #fff;
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10,18,40,.75));
}
.shot span {
  position: absolute; z-index: 1; left: 1rem; bottom: 1rem; right: 1rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.page-hero { padding: 2.6rem 0 1.2rem; }
.card-glass, .property-card, .quote-card, .service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pad, .card-glass.pad, .property-card .body { padding: 1.2rem 1.25rem; }
.thumb { aspect-ratio: 16/10; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ud-blue); }
.form-label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-control, .form-select {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  min-height: 48px;
  background: #fff !important;
}
.service-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(30,58,110,.08);
  color: var(--ud-blue);
  font-family: var(--font-serif);
}

.site-footer { margin-top: 2rem; }
.footer-cta {
  padding: 3rem 0;
  background: var(--surface);
}
.footer-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--ud-blue); margin: 0; }
.footer-cta-title span { color: var(--ud-gold); font-style: italic; }
.footer-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-main {
  color: #fff;
  background: linear-gradient(170deg, #142d58, #0a1228);
}
.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ud-gold), transparent);
}
.footer-name { color: #fff; font-size: 1.15rem; }
.footer-lead { color: rgba(255,255,255,.72); max-width: 22rem; }
.footer-parent { color: var(--ud-gold-soft); font-weight: 800; }
.footer-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ud-gold);
  margin-bottom: .7rem;
  font-weight: 800;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.link-light { color: var(--ud-gold-soft) !important; }
.text-secondary { color: var(--muted) !important; }
.nav-pills .nav-link { border-radius: 999px; color: var(--ud-blue); border: 1px solid var(--line); font-weight: 700; }
.nav-pills .nav-link.active { background: var(--ud-blue); color: #fff; border-color: var(--ud-blue); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }
.table.table-dark { --bs-table-bg: transparent; --bs-table-color: var(--ink); }

[data-animate] { opacity: 0; transform: translateY(16px); }
[data-animate].is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
[data-animate].is-in [data-stagger] > * {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
[data-stagger] > * { opacity: 1; transform: none; }
[data-animate].is-in [data-stagger] > *:nth-child(2) { transition-delay: .08s; }
[data-animate].is-in [data-stagger] > *:nth-child(3) { transition-delay: .16s; }
[data-animate].is-in [data-stagger] > *:nth-child(4) { transition-delay: .24s; }

@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }
  body {
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
  }

  .hero { min-height: 78vh; }
  .steps { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }

  body { padding-top: 4.35rem; }
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    background: rgba(247, 244, 238, 0.96) !important;
  }
  html[data-theme="dark"] .site-header {
    background: rgba(10, 18, 40, 0.96) !important;
  }
  .is-home .site-header:not(.is-scrolled) .brand-name,
  .is-home .site-header:not(.is-scrolled) .nav-link,
  .is-home .site-header:not(.is-scrolled) .nav-link-back {
    color: var(--ud-blue) !important;
  }
  html[data-theme="dark"] .is-home .site-header:not(.is-scrolled) .brand-name {
    color: #fff !important;
  }

  .container,
  .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .row {
    --bs-gutter-x: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .col-6,
  .col-md-4,
  .col-lg-3,
  .col-lg-4,
  [class*="col-"] {
    min-width: 0;
    max-width: 100%;
  }

  .navbar,
  .navbar > .container,
  .navbar > .container-fluid,
  .site-nav,
  .site-footer,
  .footer-cta,
  .footer-main,
  .hero,
  .site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 7.5rem);
  }
  .navbar-collapse {
    width: 100%;
    max-width: 100%;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid var(--line);
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .btn-gold {
    width: 100%;
    text-align: center;
    margin-top: .35rem;
  }
  .nav-link-back {
    color: var(--ud-gold) !important;
    opacity: 1;
  }
  .hero__search {
    width: 100%;
    max-width: 100%;
  }
  .footer-cta .container {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-cta-actions {
    width: 100%;
    flex-direction: column;
  }
  .footer-cta-actions .btn {
    width: 100%;
    text-align: center;
  }
  .footer-links a,
  .footer-lead,
  .listing__title,
  .page-title,
  .section-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
