/* Tchad Business Hub - Tailwind CSS Compiled */
/* Utilisation du CDN Tailwind avec customizations */

/* ===================================
   CUSTOM PROPERTIES & VARIABLES
   =================================== */
:root {
  --primary-50: #eff6ff;
  --primary-500: #4A90E2;
  --primary-600: #2563eb;
  --accent-500: #FFD700;
  --success-500: #4ECB71;
  --danger-500: #FF6B6B;
  --purple-500: #9B59B6;
  --dark-800: #2C3E50;
  --light-50: #F7F9FC;
}

/* ===================================
   BASE LAYOUT - FLEXBOX ARCHITECTURE
   =================================== */
body {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  background-color: var(--light-50);
  color: var(--dark-800);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 80px; /* Space for fixed navbar */
}

/* ===================================
   NAVIGATION MODERNE
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
  text-decoration: none;
}

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

.navbar-brand img {
  height: 45px;
  width: auto;
  margin-right: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 37, 97, 0.1));
}

.nav-link {
  position: relative;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--dark-800);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-link:hover {
  color: var(--primary-500);
  transform: translateY(-2px);
  background: rgba(74, 144, 226, 0.05);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.15);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(155, 89, 182, 0.1));
  color: var(--primary-500);
  font-weight: 600;
}

/* ===================================
   MAIN CONTENT LAYOUT
   =================================== */
.page-content {
  flex: 1 0 auto;
  padding-top: 6rem;
  padding-bottom: 2rem;
}

/* ===================================
   HERO SECTION MODERNE
   =================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="80" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="90" cy="70" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
  background-repeat: repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-5px) translateX(-5px); }
  75% { transform: translateY(-15px) translateX(3px); }
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: slideInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: slideInUp 1s ease-out 0.2s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   SEARCH SECTION GLASS MORPHISM
   =================================== */
.search-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.search-input {
  flex: 1;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.search-button {
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.search-button:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--primary-500));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

/* ===================================
   BUTTONS MODERNES
   =================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--primary-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), #ffa500);
  color: var(--dark-800);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #ffa500, var(--accent-500));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
  color: var(--dark-800);
}

.btn-outline {
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary-500);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* ===================================
   CARDS AVEC HOVER EFFECTS
   =================================== */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.business-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.business-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(74, 144, 226, 0.15);
}

.business-card-header {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-400), var(--purple-400));
  position: relative;
  overflow: hidden;
}

.business-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="30" cy="70" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.04)"/></svg>');
  background-repeat: repeat;
}

.business-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.business-card:hover .business-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--accent-500), var(--danger-500));
}

/* ===================================
   CATEGORY CARDS
   =================================== */
.category-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
  transition: left 0.5s ease;
}

.category-card:hover::before {
  left: 100%;
}

.category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--purple-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(6deg);
  background: linear-gradient(135deg, var(--accent-500), #ffa500);
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.statistics-section {
  background: linear-gradient(135deg, var(--dark-800) 0%, #34495e 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="35" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="45" cy="65" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="15" cy="85" r="2" fill="rgba(255,255,255,0.02)"/></svg>');
  background-repeat: repeat;
}

.stat-box {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-500);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ===================================
   FOOTER MODERNE
   =================================== */
.footer {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
  padding: 50px 0 20px;
  flex-shrink: 0;
  width: 100%;
}

.footer-content {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--accent-500);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  color: var(--dark-800);
}

/* ===================================
   SCROLL TO TOP
   =================================== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  background: var(--primary-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.scroll-top:hover {
  background: var(--primary-600);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 24px rgba(74, 144, 226, 0.4);
}

/* ===================================
   FORM ELEMENTS
   =================================== */
.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  background: white;
  color: var(--dark-800);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .search-box {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-button {
    border-radius: 12px;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .page-content {
    padding-top: 5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .category-icon,
  .business-icon {
    transform: scale(0.9);
  }
}

/* ===================================
   DROPDOWN MENU STYLES
   =================================== */
.group:hover .group-hover\:opacity-100 {
  opacity: 1 !important;
}

.group:hover .group-hover\:visible {
  visibility: visible !important;
}

.group:hover .group-hover\:translate-y-0 {
  transform: translateY(0) !important;
}

.group:hover .group-hover\:rotate-180 {
  transform: rotate(180deg) !important;
}

/* Dropdown menu styling */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 0.5rem !important;
  width: 16rem !important;
  background: white !important;
  border-radius: 1rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(229, 231, 235, 1) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(0.5rem) !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
}

.group:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Alternative approach - Direct CSS selectors */
.relative.group:hover > div[class*="absolute"] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Additional navbar styles */
.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #374151;
}

.nav-link:hover {
  color: var(--primary-500, #4A90E2);
  background-color: rgba(74, 144, 226, 0.05);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #FFD700, #fbbf24);
  color: #1f2937;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #fbbf24, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  color: #1f2937;
}