:root {
  --bg: #f5f6fa;
  --bg-alt: #ffffff;
  --bg-highlight: #ecf5ff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.logo-text h1 {
  margin: 0;
  font-size: 1.1rem;
}

.logo-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--bg-highlight);
  color: var(--primary-dark);
}

.main-nav a.active {
  color: var(--primary-dark);
  font-weight: 600;
}

.main-nav .cta-link {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.main-nav .cta-link:hover {
  background: var(--primary-dark);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 40px 6vw 30px;
}

.hero-small {
  grid-template-columns: minmax(0, 1fr);
}

.hero-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.hero-content p {
  color: var(--muted);
  max-width: 600px;
}

.search-bar {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.search-bar input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.search-bar button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span {
  font-size: 0.8rem;
  background: #e5edff;
  color: #1d3a8a;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
  max-width: 380px;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.hero-card li {
  color: var(--muted);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SECTIONS */

.section {
  padding: 30px 6vw;
}

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

.section.highlight {
  background: var(--bg-highlight);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.section-intro {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--muted);
}

/* GRIDS & CARDS */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.card.small {
  padding: 14px 16px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* FILTERS & LOTS */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lot-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  position: relative;
}

.lot-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.lot-badge.fixed {
  background: #22c55e;
}

.lot-card h3 {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.lot-meta {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lot-details {
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lot-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--bg-highlight);
}

/* HIGHLIGHT BLOCK */

.highlight-inner {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.highlight-inner p {
  color: var(--muted);
}

.highlight-inner .btn-primary {
  margin-top: 12px;
}

/* BULLETS */

.bullets {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
}

/* CONTACT / FORMS */

.footer {
  background: #020617;
  color: #e5e7eb;
  padding: 26px 6vw 18px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 18px;
}

.footer h3,
.footer h4 {
  margin-top: 0;
}

.footer a {
  color: #93c5fd;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

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

.footer li {
  margin-bottom: 4px;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-form input,
.footer-form textarea {
  background: #020617;
  border: 1px solid #111827;
  border-radius: 8px;
  padding: 8px 10px;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.footer-form textarea {
  resize: vertical;
}

.footer-form button {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.footer-form button:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* COTONOU CONTACT */

.contact-grid {
  margin-top: 16px;
  text-align: left;
}

.contact-form {
  margin-top: 20px;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .lot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-inline: 4vw;
  }

  .hero {
    padding-inline: 4vw;
  }
}
