/* ===================================
   HOMEPAGE STYLES - DESIGN MODERNE
   =================================== */

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, #FFF8E1, #FFF5E6);
  padding: 40px 0;
  margin-top: -40px;
  position: relative;
  z-index: 4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #2C2C2C;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: none;
}

.stat-label {
  font-size: 12px;
  color: #666666;
  font-weight: 600;
  text-shadow: none;
}

/* Hero Badge & Highlight */
.hero-bg-home {
  background-image: url('/images/pageaccueil.png');
}

.filter-reset-btn {
  margin-top: 20px;
}

.is-hidden {
  display: none;
}

.spinner-centered {
  margin: 40px auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-highlight {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7), 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Improved Search Bar */
.search-icon {
  font-size: 20px;
  margin-right: 12px;
  color: var(--text-gray);
}

.search-submit {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.3);
}

.search-submit:hover {
  background: linear-gradient(135deg, var(--primary-gold-dark), var(--primary-gold));
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 184, 0, 0.5);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.btn-location {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-location:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 20px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.stat-item strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-gold-light);
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 42px !important;
  font-weight: 900 !important;
  color: var(--text-dark);
  margin-bottom: 12px !important;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-gray);
  margin-top: 16px;
}

/* Improved Categories */
.categories {
  padding: 80px 0;
  background: var(--bg-white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.category-card {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-size: cover;
  background-position: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-gold-dark) 0%, var(--primary-gold) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(255, 184, 0, 0.25);
}

.category-card:focus-visible {
  outline: 3px solid rgba(255, 184, 0, 0.9);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 184, 0, 0.2), 0 20px 40px rgba(255, 184, 0, 0.25);
  transform: translateY(-8px) scale(1.02);
}

.category-card:hover::before {
  opacity: 0.15;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.45) 100%
  );
  transition: all 0.4s ease;
  z-index: 2;
}

.category-card:hover .category-overlay {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.25) 0%, 
    rgba(0, 0, 0, 0.35) 100%
  );
}

.category-content {
  position: relative;
  z-index: 3;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

.category-icon {
  font-size: 52px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(5deg);
}

.category-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Value Proposition Section */
.value-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF5E6 100%);
  position: relative;
  overflow: hidden;
}

.value-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.value-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.value-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.value-text h2 {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}

.value-text > p {
  font-size: 18px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 40px;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.value-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.value-list li div {
  flex: 1;
}

.value-list li strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.value-list li p {
  font-size: 15px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

.value-image {
  position: relative;
}

.value-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: rotate(2deg);
  transition: all 0.4s ease;
}

.value-img-wrapper:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.value-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* How It Works Section */
.how-it-works {
  padding: 100px 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.step-card {
  position: relative;
  text-align: center;
  padding: 40px 28px;
  background: white;
  border-radius: 20px;
  border: 2px solid #F0F0F0;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--primary-gold-light);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(255, 184, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.4);
}

.step-icon {
  font-size: 64px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.step-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hero responsive */
  .hero {
    padding: 80px 0 100px;
    min-height: 600px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-search {
    flex-direction: column;
    padding: 16px;
    border-radius: 20px;
  }
  
  .search-submit {
    width: 100%;
  }
  
  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  
  .stat-item strong {
    font-size: 22px;
  }
  
  /* Stats bar responsive */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-box {
    padding: 20px;
  }
  
  /* Sections responsive */
  .section-title {
    font-size: 32px !important;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  /* Value section responsive */
  .value-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .value-text h2 {
    font-size: 32px;
  }
  
  .value-text > p {
    font-size: 16px;
  }
  
  .value-image {
    order: -1;
  }
  
  /* Steps responsive */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  /* Categories responsive */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-card {
    min-height: 200px;
  }
}
