/* ========================================
   ZANGA - Design Épuré & Professionnel
   ======================================== */

:root {
  /* Palette principale — bleu marine */
  --primary:       #1B3A73;
  --primary-dark:  #112550;
  --primary-light: #2563c8;
  --primary-bg:    #EEF4FF;

  /* Accent — orange */
  --accent:        #FF6500;
  --accent-dark:   #CC5200;
  --accent-bg:     #FFF3E0;

  /* Couleurs système */
  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;
  --info:    #0ea5e9;

  /* Gris neutres */
  --gray-50:  #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Typographie */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Espacements */
  --spacing-xs:  0.25rem;
  --spacing-sm:  0.5rem;
  --spacing-md:  0.875rem;
  --spacing-lg:  1.25rem;
  --spacing-xl:  1.75rem;
  --spacing-2xl: 2.5rem;

  /* Ombres légères */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg:  0 4px 16px rgba(0,0,0,0.1);
  --shadow-xl:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-2xl: 0 20px 50px rgba(0,0,0,0.15);

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.logo i { font-size: 1.6rem; }

/* ===== SEARCH ===== */
.search-bar {
  flex: 1;
  max-width: 540px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.6rem 3rem 0.6rem 1rem;
  font-size: 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--gray-100);
  outline: none;
  transition: var(--transition-base);
  color: var(--gray-800);
}

.search-input::placeholder { color: var(--gray-400); }

.search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(27,58,115,0.12);
}

.search-btn {
  position: absolute;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.search-btn:hover { background: var(--primary-dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(194,81,10,0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; transform: translateY(-1px); }

/* ===== NAV CATEGORIES (masquée — on utilise les chips) ===== */
.nav-categories { display: none; }

/* ===== HERO — fullscreen slideshow ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Slides plein écran */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 7s ease;
}

/* Overlay dégradé sombre pour lisibilité */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,30,61,0.45) 0%,
    rgba(11,30,61,0.60) 50%,
    rgba(11,30,61,0.80) 100%
  );
  z-index: 1;
}

/* Contenu centré */
.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 0.875rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-accent { color: #FF9A3C; }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  max-width: 520px;
}

.btn-hero-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,101,0,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero-main:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,101,0,0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.hero-btn-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Stats barre en bas du hero */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1rem 1.25rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

.hero-stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: var(--transition-base);
}

.hero-dot.active {
  background: white;
  width: 24px;
}


/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-image-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  padding: 0.2rem 0.55rem;
  background: white;
  color: var(--gray-800);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-md);
}

.product-badge.featured {
  background: var(--primary);
  color: white;
}

.product-info {
  padding: 0.875rem;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--gray-400);
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-100);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 2.5rem 0 1.25rem;
  margin-top: 2.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-img-frame { max-width: 300px; }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
    padding: 0.625rem 0;
    gap: 0.625rem;
  }

  .search-bar { order: 3; width: 100%; max-width: 100%; }

  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.9rem; }
  .hero-body { padding: 3rem 1.25rem 4.5rem; }
  .hero-stats-bar { gap: 1.5rem; padding: 0.875rem 1rem; }
  .stat-num { font-size: 1.2rem; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 0.875rem; }

  .logo { font-size: 1.25rem; }
  .logo i { font-size: 1.4rem; }

  .hero { min-height: 320px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-body { padding: 2.5rem 1rem 4rem; }
  .hero-stats-bar { gap: 1rem; flex-wrap: wrap; }
  .fab-publish { bottom: 1.25rem; right: 1.25rem; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .product-image-wrapper {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }

  .product-info { padding: 0.75rem 0.625rem; }
  .product-title { font-size: 0.82rem; }
  .product-price { font-size: 0.95rem; margin-bottom: 0; }
}
