/**
 * Home Page CSS
 *
 * @package SCW_Shop
 */

/* Hero Section */
.hero-section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
}

.hero-section.guest {
  background: radial-gradient(circle at top right, #e0f2fe, #f1f5f9);
}

.hero-section.reseller.mode-gestion {
  background: radial-gradient(circle at top right, #e0e7ff, #f1f5f9);
}

.hero-section.reseller.mode-achat {
  background: radial-gradient(circle at top right, #ecfeff, #f0f9ff);
}

.hero-section.reseller.mode-vitrine {
  background: white;
  border-bottom: 1px solid #f1f5f9;
}

.hero-section.client {
  background: radial-gradient(circle at top right, #e0f2fe, #f1f5f9);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--site-accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-pill.admin {
  color: var(--color-reseller-accent);
}

.hero-pill.client {
  color: var(--site-accent-color);
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--color-primary-dark);
}

.subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-cta {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
  text-decoration: none;
  display: inline-block;
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.hero-cta.primary {
  background: var(--color-primary-dark);
  color: white;
}

.hero-cta.outline {
  background: white;
  color: var(--color-primary-dark);
  border: 1px solid #cbd5e1;
}

.hero-cta.client {
  background: var(--color-primary-dark);
  color: white;
}

/* Dashboard Stats */
.dashboard-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 220px;
  transition: transform 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.margin-icon {
  background-color: #ecfdf5;
  color: var(--color-success);
}

.revenue-icon {
  background-color: #eff6ff;
  color: #3b82f6;
}

.stat-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.text-green {
  color: var(--color-success);
}

.text-blue {
  color: #2563eb;
}

/* Brand Marquee */
.brand-marquee {
  background: var(--color-primary-dark);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
}

.brand-track {
  display: flex;
  width: max-content;
  gap: 5rem;
  animation: marquee 60s linear infinite;
}

.brand-item {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
  cursor: default;
  text-decoration: none;
  display: inline-block;
}

a.brand-item {
  cursor: pointer;
}

.brand-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Features Bar */
.features-bar {
  background: white;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #f1f5f9;
  border-top: 1px solid #f1f5f9;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  color: var(--site-accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f0f9ff;
  border-radius: 8px;
}

.feature-item div {
  display: flex;
  flex-direction: column;
}

.feature-item strong {
  color: var(--color-primary-dark);
}

.feature-item span {
  color: #64748b;
  font-size: 0.85rem;
}

/* Promo Slider Wrapper */
.promo-slider-wrapper {
  background-color: #f8fafc;
  padding-bottom: 1px;
  padding-top: 1px;
  margin-top: 4rem;
}

/* Trust Section */
.trust-section {
  background: #f8fafc;
  padding: 4rem 2rem;
  text-align: center;
}

.trust-section h2 {
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--color-primary-dark);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.trust-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-icon {
  color: var(--color-primary-dark);
  background: #f1f5f9;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.trust-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.trust-card p {
  color: #64748b;
  margin: 0;
}

/* Categories Section */
.products-section,
.categories-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0;
}

.section-sub {
  margin: 0.5rem 0 0 0;
  color: #64748b;
}

.view-all-link {
  text-decoration: none;
  color: var(--site-accent-color);
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.category-card:hover {
  background: white;
  border-color: #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.category-image-placeholder {
  margin-bottom: 1rem;
}

.category-icon-wrapper {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-accent-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.category-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.category-icon-wrapper .category-thumbnail {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.category-card h3 {
  font-size: 1rem;
  color: #334155;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .features-bar {
    gap: 2rem;
    justify-content: flex-start;
  }

  .dashboard-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    min-width: auto;
  }

  .hero-buttons {
    flex-direction: column;
  }
}
