/* ===== KA DARAL — Plateforme Nationale Numérique de l'Élevage ===== */
/* Design system: earthy + institutional + modern African digital */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --green-900: #0a3d1f;
  --green-800: #14532d;
  --green-700: #1a6b3a;
  --green-600: #22884e;
  --green-500: #2da65e;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --gold-500: #d4a017;
  --gold-400: #f0b429;
  --gold-300: #fcd34d;
  --red-600: #dc2626;
  --red-500: #ef4444;
  --red-100: #fee2e2;
  --orange-500: #f59e0b;
  --orange-100: #fef3c7;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-green-700 { color: var(--green-700); }
.text-gold { color: var(--gold-500); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.bg-white { background: var(--white); }
.bg-green-50 { background: #ecfdf5; }
.bg-green-100 { background: #d1fae5; }
.bg-green-800 { background: var(--green-800); }
.bg-green-900 { background: var(--green-900); }
.bg-gold-50 { background: #fffbeb; }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.border { border: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-up { animation: fadeInUp .7s ease-out forwards; }
.animate-fade { animation: fadeIn .5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft .6s ease-out forwards; }
.animate-slide-right { animation: slideInRight .6s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }

/* ===== TOP GOV BAR ===== */
.gov-bar {
  background: var(--green-900);
  color: var(--white);
  padding: 6px 0;
  font-size: .75rem;
  letter-spacing: .02em;
  border-bottom: 2px solid var(--gold-500);
}
.gov-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.gov-bar-left { display: flex; align-items: center; gap: 12px; }
.gov-bar-right { display: flex; align-items: center; gap: 16px; }
.gov-bar a { color: rgba(255,255,255,.85); transition: var(--transition); }
.gov-bar a:hover { color: var(--gold-400); }
.gov-flag {
  display: inline-flex;
  gap: 0;
  border-radius: 3px;
  overflow: hidden;
  height: 18px;
}
.gov-flag span { width: 6px; height: 100%; }
.gov-flag .f-red { background: #ce1126; }
.gov-flag .f-yellow { background: #fcd116; }
.gov-flag .f-green { background: #009460; }

/* ===== NAV ===== */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
.main-nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(26,107,58,.25);
  position: relative;
  overflow: hidden;
}
.nav-logo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.1) 50%, transparent 60%);
  animation: float 4s ease-in-out infinite;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--green-800);
  line-height: 1;
  letter-spacing: -.02em;
}
.nav-brand-sub {
  font-size: .65rem;
  color: var(--gray-500);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--green-700);
  background: rgba(45,166,94,.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--green-600);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26,107,58,.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  box-shadow: 0 4px 12px rgba(26,107,58,.35);
  transform: translateY(-1px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--green-900);
  box-shadow: 0 2px 8px rgba(212,160,23,.25);
  font-weight: 700;
}
.btn-gold:hover {
  box-shadow: 0 4px 14px rgba(212,160,23,.35);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--green-600);
  color: var(--green-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--green-600);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--green-800);
  font-weight: 600;
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-700);
}
.mobile-toggle svg { width: 24px; height: 24px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, var(--green-900) 0%, var(--green-800) 40%, var(--green-700) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(212,160,23,.15), transparent),
    radial-gradient(ellipse 400px 300px at 20% 80%, rgba(45,166,94,.1), transparent);
  pointer-events: none;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { animation: fadeInUp .8s ease-out; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 9999px;
  font-size: .8rem;
  color: var(--gold-400);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero-visual {
  position: relative;
  animation: fadeInUp .8s ease-out .2s forwards;
  opacity: 0;
}
.hero-cards-stack {
  position: relative;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-card-1 {
  transform: rotate(-2deg);
  z-index: 3;
}
.hero-card-2 {
  position: absolute;
  top: 30px;
  left: 20px;
  right: -10px;
  transform: rotate(1deg);
  z-index: 2;
  opacity: .6;
}
.hero-card-3 {
  position: absolute;
  top: 60px;
  left: 40px;
  right: 10px;
  transform: rotate(3deg);
  z-index: 1;
  opacity: .3;
}
.hero-animal-card {
  display: flex;
  gap: 16px;
  align-items: start;
}
.hero-animal-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.hero-animal-info { flex: 1; }
.hero-animal-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.hero-animal-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: 8px; }
.hero-animal-price { font-size: 1.25rem; font-weight: 800; color: var(--green-700); }
.hero-animal-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #ecfdf5;
  color: var(--green-700);
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
  margin-left: 8px;
}
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 4;
  animation: float 4s ease-in-out infinite;
}
.hero-float-card.fc-top {
  top: -10px;
  right: -30px;
}
.hero-float-card.fc-bottom {
  bottom: 10px;
  left: -30px;
}
.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.fc-label { font-size: .7rem; color: var(--gray-500); }
.fc-value { font-weight: 800; font-size: 1rem; }

/* ===== SECTIONS COMMON ===== */
.section-header {
  margin-bottom: 48px;
}
.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-600);
  margin-bottom: 8px;
}
.section-header .overline::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-500);
  border-radius: 1px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 12px 16px;
  border-right: 1px solid var(--gray-200);
  animation: countUp .6s ease-out forwards;
  opacity: 0;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ===== CATEGORIES ===== */
.categories-section { padding: 64px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.category-info { flex: 1; }
.category-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.category-count { font-size: .8rem; color: var(--gray-500); }
.category-arrow {
  color: var(--gray-400);
  font-size: 1.2rem;
  transition: var(--transition);
}
.category-card:hover .category-arrow { color: var(--green-600); transform: translateX(4px); }

/* ===== FEATURED LISTINGS ===== */
.featured-section { padding: 64px 0; background: var(--gray-50); }
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.listing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.listing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: transparent;
}
.listing-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.listing-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform .4s;
}
.listing-card:hover .listing-img-bg { transform: scale(1.05); }
.listing-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.listing-badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.listing-badge.verified { background: rgba(45,166,94,.9); color: var(--white); }
.listing-badge.tabaski { background: rgba(212,160,23,.9); color: var(--white); }
.listing-badge.featured { background: rgba(37,99,235,.9); color: var(--white); }
.listing-body { padding: 18px; }
.listing-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.listing-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.listing-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-400);
  border-radius: 50%;
}
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.listing-price { font-size: 1.2rem; font-weight: 800; color: var(--green-700); }
.listing-action .btn-sm { padding: 6px 16px; }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 80px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--green-400), var(--gold-400));
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(26,107,58,.3);
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.step-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }

/* ===== OPERATIONS SECTION ===== */
.operations-section { padding: 80px 0; background: var(--gray-50); }
.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.op-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.op-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.op-header {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.op-header.tabaski {
  background: linear-gradient(135deg, #92400e, #b45309, #d97706);
}
.op-header.genetique {
  background: linear-gradient(135deg, var(--green-800), var(--green-700), var(--green-600));
}
.op-header-icon {
  position: absolute;
  right: -10px;
  bottom: -10px;
  font-size: 6rem;
  opacity: .1;
}
.op-header h3 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.op-header p { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.6; }
.op-body { padding: 24px 28px; }
.op-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.op-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-700);
}
.op-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}
.op-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}
.op-stat {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.op-stat:last-child { border-right: none; }
.op-stat-num { font-weight: 800; font-size: 1.25rem; color: var(--green-700); }
.op-stat-label { font-size: .7rem; color: var(--gray-500); margin-top: 2px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(165deg, var(--green-900), var(--green-800));
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 30% 50%, rgba(212,160,23,.15), transparent);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 32px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ===== TRUST SECTION ===== */
.trust-section { padding: 64px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
}
.trust-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.trust-title { font-weight: 700; margin-bottom: 8px; }
.trust-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 64px 0; background: var(--gray-50); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--gray-200);
}
.testimonial-stars {
  color: var(--gold-400);
  font-size: .9rem;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
}
.testimonial-name { font-weight: 600; font-size: .85rem; }
.testimonial-role { font-size: .75rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.main-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: .85rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}
.footer-partners {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-partner {
  padding: 4px 12px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  font-size: .75rem;
  color: rgba(255,255,255,.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.75rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(5) { border-right: none; }
  .stat-item:nth-child(n+4) { border-top: 1px solid var(--gray-200); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: 500px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats-row { gap: 20px; }
  .categories-grid, .listings-grid, .testimonial-grid, .trust-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-header h2 { font-size: 1.75rem; }
  .gov-bar-right { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.875rem; }
  .btn-lg { padding: 12px 24px; }
}

/* ===== PAGE-SPECIFIC: TABASKI ===== */
.tabaski-hero {
  background: linear-gradient(165deg, #78350f 0%, #92400e 40%, #b45309 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.tabaski-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 80% 30%, rgba(251,191,36,.15), transparent);
  pointer-events: none;
}
.tabaski-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
}
.tabaski-hero p { color: rgba(255,255,255,.85); }

/* Filters */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  position: sticky;
  top: 70px;
  z-index: 50;
}
.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-select {
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .85rem;
  background: var(--white);
  color: var(--gray-700);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45,166,94,.1);
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ecfdf5;
  color: var(--green-700);
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 600;
}
.filter-tag-close {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  cursor: pointer;
}

/* ===== PAGE-SPECIFIC: GENETIQUE ===== */
.gen-hero {
  background: linear-gradient(165deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.gen-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 20% 50%, rgba(45,166,94,.15), transparent);
  pointer-events: none;
}

/* Lot cards */
.lot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.lot-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.lot-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}
.lot-card.selected {
  border-color: var(--green-500);
  background: #f0fdf4;
}
.lot-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.lot-body { padding: 20px; }
.lot-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.lot-count { color: var(--gray-500); font-size: .85rem; margin-bottom: 12px; }
.lot-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.lot-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-600);
}

/* ===== PAGE-SPECIFIC: REGISTRE ===== */
.reg-animal-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 32px;
  margin-bottom: 24px;
}
.reg-field {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.reg-label {
  width: 180px;
  font-size: .85rem;
  color: var(--gray-500);
  font-weight: 500;
  flex-shrink: 0;
}
.reg-value {
  flex: 1;
  font-weight: 600;
  font-size: .95rem;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-300);
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-300);
}
.timeline-date { font-size: .75rem; color: var(--gray-500); margin-bottom: 4px; }
.timeline-event { font-weight: 600; font-size: .9rem; }

/* ===== DASHBOARD ===== */
.dash-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 140px);
}
.dash-sidebar {
  background: var(--green-900);
  color: var(--white);
  padding: 24px 0;
}
.dash-sidebar-brand {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.dash-nav-item:hover { background: rgba(255,255,255,.08); color: var(--white); }
.dash-nav-item.active { background: rgba(255,255,255,.12); color: var(--gold-400); font-weight: 600; }
.dash-nav-icon { width: 20px; text-align: center; }
.dash-main { padding: 32px; background: var(--gray-50); }
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.metric-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--gray-200);
}
.metric-label { font-size: .75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.metric-value { font-size: 1.75rem; font-weight: 900; }
.metric-change { font-size: .75rem; font-weight: 600; margin-top: 4px; }
.metric-change.positive { color: var(--green-600); }
.metric-change.negative { color: var(--red-500); }
.metric-change.warning { color: var(--orange-500); }

/* Alert cards */
.alert-list { display: flex; flex-direction: column; gap: 12px; }
.alert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alert-icon.danger { background: var(--red-100); color: var(--red-500); }
.alert-icon.warning { background: var(--orange-100); color: var(--orange-500); }
.alert-icon.info { background: var(--blue-100); color: var(--blue-600); }
.alert-text { flex: 1; }
.alert-title { font-weight: 600; font-size: .9rem; }
.alert-subtitle { font-size: .75rem; color: var(--gray-500); }
.alert-time { font-size: .75rem; color: var(--gray-400); white-space: nowrap; }

/* ===== PAGE-SPECIFIC: AIDE/FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.faq-question:hover { color: var(--green-700); }
.faq-chevron {
  transition: transform .3s;
  font-size: 1rem;
  color: var(--gray-400);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== PAGE-SPECIFIC: CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-input, .form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45,166,94,.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 18px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== PAGE BANNER (generic sub-page) ===== */
.page-banner {
  padding: 40px 0;
  background: linear-gradient(165deg, var(--green-900), var(--green-700));
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 80% 20%, rgba(212,160,23,.1), transparent);
}
.page-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.page-banner p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
}

/* ===== USSD SIMULATOR ===== */
.ussd-phone {
  width: 300px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 20px 16px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.ussd-screen {
  background: #000;
  border-radius: 16px;
  padding: 24px 16px;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  line-height: 1.6;
  min-height: 300px;
}
.ussd-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ussd-input {
  flex: 1;
  padding: 8px 12px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: .85rem;
}
.ussd-send {
  padding: 8px 16px;
  background: var(--green-700);
  color: #0f0;
  border-radius: 8px;
  font-weight: 700;
  font-size: .8rem;
}
