/* LookForHome – animations style moderne (inspiré marketplace pro)
   Palette: #0A1931 #1A3D63 #4A7FA7 #B3CFE5 #F6FAFD */

:root {
  --lfh-navy: #0A1931;
  --lfh-deep: #1A3D63;
  --lfh-mid: #4A7FA7;
  --lfh-soft: #B3CFE5;
  --lfh-bg: #F6FAFD;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--lfh-bg);
  overflow-x: hidden;
}

/* ===== BRAND ===== */
.brand-text {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  line-height: 1;
  background: linear-gradient(105deg, #0A1931 0%, #4A7FA7 40%, #1A3D63 70%, #0A1931 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite;
}
@media (min-width: 768px) {
  .brand-text { font-size: 1.7rem; }
}
.brand-text-footer {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  color: #fff;
}
.brand-text-modal {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.75rem;
  background: linear-gradient(105deg, #0A1931, #4A7FA7, #1A3D63);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== KEYFRAMES (style Njikam) ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1.5%, -0.8%); }
  100% { transform: scale(1.05) translate(0, 0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 127, 167, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(74, 127, 167, 0); }
}
@keyframes cardShine {
  0% { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes countPop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes headerSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
header {
  animation: headerSlide 0.55s ease forwards;
}
header a {
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
header nav a:not(.bg-accent):hover {
  color: #4A7FA7 !important;
  transform: translateY(-1px);
}
header .bg-accent,
header a.bg-accent {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
header .bg-accent:hover,
header a.bg-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 61, 99, 0.25);
}

/* ===== FADE-UP UTILITIES (comme Njikam) ===== */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.22s; }
.fade-up.delay-3 { animation-delay: 0.36s; }
.fade-up.delay-4 { animation-delay: 0.5s; }
.fade-up.delay-5 { animation-delay: 0.64s; }

/* Reveal au scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-section .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.2px) brightness(0.68);
  animation: kenBurns 22s ease-in-out infinite;
  will-change: transform;
}
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 49, 0.72) 0%,
    rgba(26, 61, 99, 0.45) 45%,
    rgba(74, 127, 167, 0.35) 100%
  );
  z-index: 1;
}
.hero-section .hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 30%, #B3CFE5 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #4A7FA7 0%, transparent 35%);
  pointer-events: none;
}
.hero-section .hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hero-title-line {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.15s; }
.hero-title-line:nth-child(2) { animation-delay: 0.32s; }

.hero-highlight {
  background: linear-gradient(90deg, #B3CFE5, #fff, #4A7FA7, #B3CFE5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.85s ease 0.48s forwards;
}
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.85s ease 0.62s forwards;
}
.hero-cta a {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero-cta a:hover {
  transform: translateY(-3px) scale(1.02);
}
.hero-cta a:first-child {
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.hero-stats {
  opacity: 0;
  animation: fadeUp 0.9s ease 0.78s forwards;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

/* ===== STEP CARDS ===== */
.step-card {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(74, 127, 167, 0.18);
  box-shadow: 0 8px 28px rgba(10, 25, 49, 0.06);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(179, 207, 229, 0.45) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: cardShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 44px rgba(10, 25, 49, 0.12);
}
.step-num {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4A7FA7, #0A1931);
  transition: transform 0.35s ease;
}
.step-card:hover .step-num {
  transform: scale(1.08) rotate(-4deg);
}

/* ===== LISTINGS / CARDS ===== */
.listings-carousel { position: relative; overflow: hidden; }
.listings-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.listings-track::-webkit-scrollbar { width: 6px; }
.listings-track::-webkit-scrollbar-thumb {
  background: #4A7FA7;
  border-radius: 3px;
}

.home-card,
.carousel-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(74, 127, 167, 0.16);
  box-shadow: 0 6px 24px rgba(10, 25, 49, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  opacity: 0;
  animation: popIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.home-card:hover,
.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(10, 25, 49, 0.12);
}
.home-card img,
.carousel-card img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-card:hover img,
.carousel-card:hover img {
  transform: scale(1.06);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(74, 127, 167, 0.25);
  box-shadow: 0 4px 14px rgba(10, 25, 49, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1931;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.carousel-btn:hover {
  background: #1A3D63;
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.carousel-btn.prev { left: 0.25rem; }
.carousel-btn.next { right: 0.25rem; }
@media (max-width: 640px) {
  .carousel-btn { width: 2.25rem; height: 2.25rem; }
}

.blurred-img { filter: blur(12px); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(179, 207, 229, 0.15);
  top: -120px;
  right: -80px;
  animation: floatY 7s ease-in-out infinite;
  pointer-events: none;
}
.cta-section a,
.cta-section .btn-cta {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-section a:hover {
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer a {
  transition: color 0.2s ease, opacity 0.2s ease;
}
footer a:hover {
  opacity: 0.85;
  color: #B3CFE5;
}

/* ===== PRIVACY MODAL ===== */
#privacyModal .bg-white {
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#acceptBtn:not(:disabled) {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#acceptBtn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 61, 99, 0.3);
}

/* ===== SCROLL TOP (optionnel) ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1A3D63, #4A7FA7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 25, 49, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Stagger pour cartes chargées dynamiquement */
.home-card:nth-child(1) { animation-delay: 0.05s; }
.home-card:nth-child(2) { animation-delay: 0.12s; }
.home-card:nth-child(3) { animation-delay: 0.19s; }
.home-card:nth-child(4) { animation-delay: 0.26s; }
.home-card:nth-child(5) { animation-delay: 0.33s; }
.home-card:nth-child(6) { animation-delay: 0.4s; }
.home-card:nth-child(n+7) { animation-delay: 0.45s; }


/* ===== HERO SPLIT (texte gauche + 3 villes) ===== */
.hero-split {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(179, 207, 229, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(74, 127, 167, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #F6FAFD 0%, #E8F1F8 100%);
  overflow: hidden;
}
.hero-split::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(74, 127, 167, 0.08);
  top: -180px;
  right: -120px;
  animation: floatY 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-highlight-dark {
  background: linear-gradient(105deg, #0A1931 0%, #4A7FA7 45%, #1A3D63 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s linear infinite;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(26, 61, 99, 0.08);
  border: 1px solid rgba(74, 127, 167, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1A3D63;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #1A3D63, #0A1931);
  color: #fff;
  box-shadow: 0 10px 28px rgba(10, 25, 49, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseGlow 3s ease-in-out infinite;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 25, 49, 0.3);
}
.btn-hero-secondary {
  background: #fff;
  color: #0A1931;
  border: 1.5px solid rgba(74, 127, 167, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s;
}
.btn-hero-secondary:hover {
  transform: translateY(-3px);
  background: #F6FAFD;
  border-color: #4A7FA7;
}

/* Mosaïque 3 villes */
.city-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.85rem;
  min-height: 340px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .city-mosaic { min-height: 420px; max-width: none; }
}

.city-card {
  position: relative;
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 25, 49, 0.14);
  opacity: 0;
  background: #B3CFE5;
}
.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.city-card:hover img {
  transform: scale(1.08);
}
.city-card figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(10, 25, 49, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 2;
}
.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 49, 0.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.city-card-1 {
  grid-row: 1 / 3;
  grid-column: 1;
  animation: cityInLeft 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.city-card-2 {
  grid-row: 1;
  grid-column: 2;
  animation: cityInRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}
.city-card-3 {
  grid-row: 2;
  grid-column: 2;
  animation: cityInRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

@keyframes cityInLeft {
  from { opacity: 0; transform: translateX(-28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes cityInRight {
  from { opacity: 0; transform: translateX(28px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.city-float-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-30%, -50%);
  z-index: 5;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  background: #fff;
  color: #0A1931;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(10, 25, 49, 0.18);
  border: 1px solid rgba(74, 127, 167, 0.2);
  animation: badgePop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both, floatY 4.5s ease-in-out 1.4s infinite;
  pointer-events: none;
}
@keyframes badgePop {
  from { opacity: 0; transform: translate(-30%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-30%, -50%) scale(1); }
}

@media (max-width: 640px) {
  .city-mosaic {
    min-height: 280px;
    gap: 0.65rem;
  }
  .city-float-badge {
    font-size: 0.62rem;
    padding: 0.4rem 0.75rem;
  }
}
