/* ═══════════════════════════════════════════════
   AFRIKOTO — THÈME AZURE
   Marine #0F2040 · Corail #FF7A54 · Blanc #FFFFFF
   Police: Space Grotesk (Google Fonts)
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --marine:    #0F2040;
  --marine2:   #1B3460;
  --marine3:   #2A4A7A;
  --coral:     #FF7A54;
  --coral2:    #FF9A7A;
  --coral-lt:  #FFF0EB;
  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #EEF2F7;
  --gray-200:  #E2E8F0;
  --gray-400:  #8899AA;
  --gray-600:  #4A6070;
  --gray-900:  #0D1B2A;
  --success:   #25D366;
  --font:      'Space Grotesk', -apple-system, sans-serif;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 12px rgba(15,32,64,.08);
  --shadow-lg: 0 4px 24px rgba(15,32,64,.12);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--marine); }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ── */
.az-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.az-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--marine);
  letter-spacing: -.5px;
}
.az-logo em { color: var(--coral); font-style: normal; }

.az-nav-links { display: flex; align-items: center; gap: 20px; }
.az-nav-link { font-size: 13px; font-weight: 500; color: var(--gray-400); }
.az-nav-link:hover { color: var(--marine); }

.az-btn-primary {
  height: 38px;
  padding: 0 20px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.az-btn-primary:hover { background: var(--coral2); }

.az-btn-secondary {
  height: 38px;
  padding: 0 20px;
  background: transparent;
  color: var(--marine);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.az-btn-secondary:hover { border-color: var(--marine); }

/* ── HERO ── */
.az-hero {
  background: linear-gradient(160deg, var(--marine) 0%, var(--marine2) 60%, var(--marine) 100%);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}

.az-hero-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--coral2), var(--coral));
}

.az-hero-dots {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 200px;
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.az-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: .5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.az-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--coral);
  flex-shrink: 0;
}

.az-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  max-width: 480px;
}
.az-hero h1 em { color: var(--coral); font-style: normal; }

.az-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
}

/* ── SEARCH ── */
.az-search {
  display: flex;
  max-width: 560px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.az-search-icon {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.az-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  font-size: 14px;
  color: var(--white);
}
.az-search input::placeholder { color: rgba(255,255,255,.3); }
.az-search-btn {
  padding: 0 24px;
  background: var(--coral);
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  transition: background .2s;
}
.az-search-btn:hover { background: var(--coral2); }

/* ── STATS BAR ── */
.az-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
}
.az-stat {
  background: var(--white);
  padding: 18px 16px;
  text-align: center;
}
.az-stat-n {
  font-size: 22px;
  font-weight: 700;
  color: var(--marine);
}
.az-stat-n.accent { color: var(--coral); }
.az-stat-l {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ── FILTERS ── */
.az-filters {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
  overflow-x: auto;
}
.az-filters::-webkit-scrollbar { display: none; }
.az-filter {
  height: 36px;
  padding: 0 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all .2s;
}
.az-filter:hover { border-color: var(--marine); color: var(--marine); }
.az-filter.active { background: var(--marine); color: var(--white); border-color: var(--marine); }

/* ── SECTION HEADER ── */
.az-section {
  padding: 24px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.az-section-title { font-size: 18px; font-weight: 700; color: var(--marine); }
.az-section-link { font-size: 13px; font-weight: 600; color: var(--coral); }
.az-section-link:hover { text-decoration: underline; }

/* ── CAR CARDS ── */
.az-cards {
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.az-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.az-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.az-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--marine);
}
.az-card-img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}
.az-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,122,84,.08) 0%, transparent 50%);
  z-index: 1;
}
.az-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,32,64,.65) 100%);
  z-index: 2;
}

.az-card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.az-badge {
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  letter-spacing: .3px;
}
.az-badge-vente { background: var(--coral); color: var(--white); }
.az-badge-location { background: var(--marine); color: var(--white); }
.az-badge-both { background: var(--marine2); color: var(--white); }
.az-badge-verif {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
}

.az-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border: none;
  transition: background .2s;
}
.az-card-fav:hover { background: rgba(255,255,255,.25); }

.az-card-body { padding: 16px; }

.az-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}
.az-card-name { font-size: 16px; font-weight: 700; color: var(--marine); line-height: 1.2; }
.az-card-price { font-size: 16px; font-weight: 700; color: var(--coral); white-space: nowrap; flex-shrink: 0; }
.az-card-price small { font-size: 11px; color: var(--gray-400); font-weight: 400; }

.az-card-specs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.az-spec {
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
}
.az-spec::before {
  content: '·';
  color: var(--gray-200);
  margin-right: 0;
}
.az-spec:first-child::before { display: none; }

.az-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.az-card-park {
  font-size: 12px;
  color: var(--gray-400);
}
.az-card-park strong { color: var(--gray-600); font-weight: 600; }

.az-card-actions { display: flex; gap: 8px; }
.az-btn-wa {
  height: 32px;
  padding: 0 14px;
  background: var(--success);
  border: none;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
}
.az-btn-detail {
  height: 32px;
  padding: 0 14px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-600);
}
.az-btn-detail:hover { background: var(--gray-200); }

/* ── CTA VENDEUR ── */
.az-cta {
  margin: 0 24px 32px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.az-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--marine));
}
.az-cta h3 { font-size: 18px; font-weight: 700; color: var(--marine); margin-bottom: 6px; }
.az-cta p { font-size: 13px; color: var(--gray-400); line-height: 1.6; margin-bottom: 16px; }
.az-cta-feats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.az-cta-feat {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
}
.az-cta-btn {
  width: 100%;
  height: 46px;
  background: var(--marine);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
}
.az-cta-btn:hover { background: var(--marine2); }

/* ── FOOTER ── */
.az-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 24px;
}
.az-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.az-footer-logo { font-size: 18px; font-weight: 700; color: var(--marine); }
.az-footer-logo em { color: var(--coral); font-style: normal; }
.az-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.az-footer-link { font-size: 12px; color: var(--gray-400); }
.az-footer-link:hover { color: var(--marine); }
.az-footer-copy { font-size: 11px; color: var(--gray-400); border-top: 1px solid var(--gray-100); padding-top: 16px; }

/* ── EMPTY STATE ── */
.az-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}
.az-empty-icon { font-size: 48px; margin-bottom: 16px; }
.az-empty h3 { font-size: 18px; font-weight: 700; color: var(--marine); margin-bottom: 8px; }
.az-empty p { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }

/* ── LOADING ── */
@keyframes az-pulse { 0%,100%{opacity:.5}50%{opacity:1} }
.az-loading { animation: az-pulse 1.5s ease-in-out infinite; }

/* ── ALERTS ── */
.az-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.az-alert-err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.az-alert-ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }

/* ── FORM ── */
.az-form-group { margin-bottom: 16px; }
.az-label { font-size: 13px; font-weight: 600; color: var(--marine); display: block; margin-bottom: 6px; }
.az-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--marine);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  font-family: var(--font);
}
.az-input:focus { border-color: var(--marine); }
.az-input.error { border-color: #EF4444; }
.az-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 80px; }
.az-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--marine);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  font-family: var(--font);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ── DASHBOARD ── */
.az-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 24px 24px;
}
.az-kpi {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
}
.az-kpi-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.az-kpi-val { font-size: 28px; font-weight: 700; color: var(--marine); }
.az-kpi-trend { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ── SIDEBAR ── */
.az-sidebar {
  background: var(--marine);
  width: 260px;
  min-height: 100vh;
  padding: 0;
  flex-shrink: 0;
}
.az-sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.az-sidebar-logo em { color: var(--coral); font-style: normal; }
.az-sidebar-nav { padding: 12px; }
.az-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .2s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.az-sidebar-item:hover { background: rgba(255,255,255,.06); color: var(--white); }
.az-sidebar-item.active { background: rgba(255,122,84,.15); color: var(--coral); }

/* ── TABLE ── */
.az-table-wrap { overflow-x: auto; }
.az-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.az-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.az-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
}
.az-table tr:last-child td { border: none; }
.az-table tr:hover td { background: var(--gray-50); }

/* ── PILLS ── */
.az-pill {
  height: 22px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.az-pill-green { background: #DCFCE7; color: #166534; }
.az-pill-amber { background: #FEF9C3; color: #854D0E; }
.az-pill-red { background: #FEF2F2; color: #991B1B; }
.az-pill-blue { background: #EFF6FF; color: #1D4ED8; }

/* ── MODAL ── */
.az-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,32,64,.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.az-modal.on { display: flex; }
.az-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.az-modal-title { font-size: 20px; font-weight: 700; color: var(--marine); margin-bottom: 4px; }
.az-modal-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 24px; }
.az-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PROGRESS ── */
.az-progress-steps {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.az-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: all .3s;
}
.az-step-circle.done { background: var(--coral); border-color: var(--coral); color: var(--white); }
.az-step-circle.cur { border-color: var(--marine); color: var(--marine); }
.az-step-line { flex: 1; height: 2px; background: var(--gray-200); transition: background .3s; }
.az-step-line.done { background: var(--coral); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .az-nav { padding: 0 16px; }
  .az-hero { padding: 40px 16px 36px; }
  .az-cards { padding: 0 16px 24px; grid-template-columns: 1fr; }
  .az-kpi-grid { padding: 0 16px 20px; }
  .az-section { padding: 20px 16px 10px; }
  .az-filters { padding: 14px 16px 0; }
  .az-cta { margin: 0 16px 24px; }
  .az-footer { padding: 20px 16px; }
}

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