/* Best Immo Lubumbashi — identité logo */

:root {
  --color-red: #ff1f1f;
  --color-orange: #ff7a00;
  --color-yellow: #ffc400;
  --color-violet: #b500ff;
  --color-blue: #13006b;
  --color-deep-blue: #07114f;
  --color-turquoise: #20c9c3;
  --color-white: #ffffff;
  --color-light: #f8fafc;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-whatsapp: #25d366;

  --gradient-logo: linear-gradient(
    135deg,
    #ff1f1f 0%,
    #ff7a00 35%,
    #ffc400 60%,
    #b500ff 85%,
    #13006b 100%
  );
  --gradient-hero: radial-gradient(
    circle at top left,
    #ff1f1f 0%,
    #ff7a00 25%,
    #20c9c3 55%,
    #13006b 100%
  );
  --gradient-card: linear-gradient(
    135deg,
    rgba(255, 31, 31, 0.12),
    rgba(255, 122, 0, 0.1),
    rgba(181, 0, 255, 0.1)
  );
  --gradient-button: linear-gradient(135deg, #ff1f1f, #ff7a00);
  --gradient-badge: linear-gradient(135deg, #ff1f1f, #ff7a00, #b500ff);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --shadow-sm: 0 8px 24px rgba(7, 17, 79, 0.08);
  --shadow-md: 0 16px 40px rgba(7, 17, 79, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 17, 79, 0.18);
  --header-h: 84px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0))
    max(0px, env(safe-area-inset-right, 0));
}

/* ─── Header glass ─── */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(1140px, calc(100% - 1.5rem));
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: top 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  top: 0.5rem;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-link img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 31, 31, 0.25);
}

.logo-text {
  display: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-blue);
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-blue);
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(255, 31, 31, 0.08);
  color: var(--color-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(255, 31, 31, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-blue);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.btn-instagram {
  background: var(--gradient-button);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(255, 31, 31, 0.25);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(19, 0, 107, 0.06);
  color: var(--color-blue);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid rgba(19, 0, 107, 0.08);
  margin-top: 0.75rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-blue);
}

.nav-mobile a.active {
  background: var(--gradient-card);
  color: var(--color-red);
}

@media (min-width: 900px) {
  .logo-text {
    display: block;
  }
  .nav-desktop {
    display: flex;
  }
  .header-actions {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(255, 196, 0, 0.15),
    transparent 40%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-yellow);
  box-shadow: 0 0 10px var(--color-yellow);
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 1rem 0 0;
  max-width: 560px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-yellow);
  font-weight: 700;
}

.hero-social-proof {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 79, 0.35);
  border-left: 4px solid var(--color-yellow);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.25);
  aspect-ratio: 4/3;
  background: var(--gradient-card);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -1rem;
  left: -0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
}

.hero-float-card span {
  color: var(--color-red);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ─── Search bar glass ─── */
.search-float {
  margin-top: -2.5rem;
  position: relative;
  z-index: 5;
}

.search-glass {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

.search-grid {
  display: grid;
  gap: 0.85rem;
}

.search-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
}

.search-grid select,
.search-grid input {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 0, 107, 0.12);
  background: var(--color-white);
  color: var(--color-dark);
}

.search-grid .btn {
  align-self: end;
  min-height: 48px;
}

@media (min-width: 768px) {
  .search-grid {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }
}

/* ─── Sections ─── */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--color-white);
}

.section-title-wrap {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--color-blue);
  font-weight: 900;
  line-height: 1.15;
}

.section-desc {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
}

/* ─── Property cards ─── */
.properties-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(19, 0, 107, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-card-image {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: var(--gradient-card);
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
}

.badge-status {
  background: var(--gradient-badge);
}

.badge-video {
  background: var(--gradient-badge);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.property-card-body {
  padding: 1.15rem;
}

.property-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-red);
}

.property-meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.property-card h3 {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  color: var(--color-blue);
  line-height: 1.35;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.property-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.property-accent {
  height: 3px;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-yellow),
    var(--color-violet),
    transparent
  );
}

/* ─── Service cards ─── */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(19, 0, 107, 0.06);
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  font-size: 1.4rem;
}

.service-card h3 {
  margin: 1rem 0 0;
  color: var(--color-blue);
  font-size: 1.05rem;
}

.service-card p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ─── Trust ─── */
.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-turquoise);
}

.trust-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-blue);
}

.trust-card p {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* ─── CTA gradient ─── */
.cta-gradient {
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--gradient-logo);
  color: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-gradient h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-gradient p {
  margin: 0.85rem auto 0;
  max-width: 560px;
  opacity: 0.92;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ─── Page header inner ─── */
.page-hero {
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  background: var(--gradient-hero);
  color: var(--color-white);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 620px;
  opacity: 0.9;
}

/* ─── Filters catalog ─── */
.filters-glass {
  padding: 1.25rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.filters-grid {
  display: grid;
  gap: 0.85rem;
}

.filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-blue);
}

.filters-grid input,
.filters-grid select {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 0, 107, 0.12);
  background: var(--color-white);
}

@media (min-width: 900px) {
  .filters-grid {
    grid-template-columns: repeat(5, 1fr) auto;
    align-items: end;
  }
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-muted);
  border: 2px dashed rgba(19, 0, 107, 0.12);
}

/* ─── Detail page ─── */
.detail-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--gradient-card);
  box-shadow: var(--shadow-md);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: 0 0 88px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.gallery-thumbs button.active {
  border-color: var(--color-red);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(19, 0, 107, 0.06);
}

.detail-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-red);
}

.detail-title {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  color: var(--color-blue);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.spec-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-light);
  font-size: 0.85rem;
}

.spec-item strong {
  display: block;
  color: var(--color-blue);
  font-size: 0.95rem;
}

.equipements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.equipement-tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--gradient-card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
}

.video-section {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(255, 31, 31, 0.12);
  box-shadow: var(--shadow-sm);
}

.video-section h2 {
  margin: 0 0 0.5rem;
  color: var(--color-blue);
}

.video-section p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card,
.contact-form-wrap {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 0, 107, 0.12);
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-info-item strong {
  color: var(--color-blue);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--color-deep-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  opacity: 0.8;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: var(--color-white);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ─── Floating WhatsApp ─── */
.floating-whatsapp {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
  font-size: 1.6rem;
  transition: transform 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.06);
}

.back-top {
  position: fixed;
  right: 1.15rem;
  bottom: 5.5rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-sm);
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--color-blue);
}

.back-link:hover {
  color: var(--color-red);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile · Tablette · PC
   Mobile-first, pratique sur tous les écrans
   ═══════════════════════════════════════════════════════════ */

/* Inputs 16px+ → évite le zoom automatique iOS */
@media (max-width: 767px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* ─── Mobile (< 640px) ─── */
@media (max-width: 639px) {
  :root {
    --header-h: 72px;
  }

  .container {
    width: calc(100% - 1.25rem);
  }

  .site-header {
    top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
    width: calc(100% - 1rem);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
  }

  .site-header.scrolled {
    top: max(0.35rem, env(safe-area-inset-top, 0.35rem));
  }

  .logo-link img {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-mobile a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero {
    padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-float-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }

  .search-float {
    margin-top: -1.25rem;
  }

  .search-glass {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .search-grid .btn {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .property-card-actions {
    grid-template-columns: 1fr;
  }

  .property-card-actions .btn {
    width: 100%;
  }

  .property-price {
    font-size: 1.2rem;
  }

  .filters-glass {
    padding: 1rem;
  }

  .filters-grid .btn {
    width: 100%;
  }

  .detail-layout {
    padding-top: 1rem;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-price {
    font-size: 1.65rem;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 1.35rem;
  }

  .gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
  }

  .cta-gradient {
    padding: 2rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .page-hero {
    padding: calc(var(--header-h) + 1.25rem) 0 1.75rem;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .floating-whatsapp {
    right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0.85rem));
    width: 54px;
    height: 54px;
  }

  .back-top {
    right: max(0.85rem, env(safe-area-inset-right, 0.85rem));
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom, 0.85rem)) + 4.25rem);
  }

  .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
  }
}

/* ─── Tablette (640px – 899px) ─── */
@media (min-width: 640px) and (max-width: 899px) {
  :root {
    --header-h: 80px;
  }

  .site-header {
    top: 0.65rem;
    width: calc(100% - 1.5rem);
    border-radius: var(--radius-xl);
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-grid .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-grid .btn {
    grid-column: 1 / -1;
  }

  .hero-actions .btn {
    min-width: 200px;
  }
}

/* ─── PC / grand écran (900px+) ─── */
@media (min-width: 900px) {
  .properties-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions .btn {
    min-width: 220px;
  }
}

/* ─── Très grands écrans (1200px+) ─── */
@media (min-width: 1200px) {
  .container {
    width: min(1180px, calc(100% - 3rem));
  }

  .hero h1 {
    font-size: 3.4rem;
  }
}

/* Réduction des animations si demandée par l'utilisateur */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .property-card:hover,
  .service-card:hover {
    transform: none;
  }
}
