/*
Theme Name: DigiStore
Theme URI: https://digistore.com
Author: DigiStore Team
Author URI: https://digistore.com
Description: Thème WordPress premium pour marketplace de produits digitaux. Design sombre luxueux avec accents dorés.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digistore
Tags: e-commerce, dark, gold, marketplace, digital-products
*/

/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --gold: #e6a817;
  --gold-light: #f0c45c;
  --gold-dark: #b8860b;
  --hero-bg: #101318;
  --hero-fg: #f5f0e8;
  --bg: #f2f3f6;
  --fg: #141a24;
  --card: #ffffff;
  --border: #dde0e6;
  --muted: #6b7280;
  --secondary-bg: #ebedf2;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 0.75rem;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVBAR ===== */
.site-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(16,19,24,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,240,232,0.1);
}
.site-navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.site-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--hero-fg); }
.site-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(245,240,232,0.7); font-size: 0.875rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--hero-fg); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn-gold {
  background: var(--gold); color: var(--fg); font-weight: 600;
  padding: 0.5rem 1.25rem; border-radius: var(--radius); border: none;
  cursor: pointer; font-family: var(--font-body); font-size: 0.875rem;
  box-shadow: 0 4px 15px rgba(230,168,23,0.25); transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-gold-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-outline-hero {
  background: transparent; color: var(--hero-fg);
  border: 2px solid rgba(245,240,232,0.3); padding: 0.875rem 2rem;
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-body);
  font-size: 1rem; transition: background 0.2s;
}
.btn-outline-hero:hover { background: rgba(245,240,232,0.1); }
.mobile-toggle { display: none; background: none; border: none; color: var(--hero-fg); font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; background: var(--hero-bg); padding: 1rem 1.5rem; }
.mobile-menu a { display: block; padding: 0.5rem 0; color: rgba(245,240,232,0.7); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  background: var(--hero-bg); overflow: hidden; padding-top: 64px;
}
.hero-orb-1 {
  position: absolute; top: 5rem; right: 5rem; width: 24rem; height: 24rem;
  background: rgba(230,168,23,0.1); border-radius: 50%; filter: blur(80px);
}
.hero-orb-2 {
  position: absolute; bottom: 5rem; left: 2.5rem; width: 18rem; height: 18rem;
  background: rgba(230,168,23,0.05); border-radius: 50%; filter: blur(80px);
}
.hero-content { position: relative; z-index: 2; max-width: 48rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: 9999px;
  background: rgba(230,168,23,0.1); color: var(--gold);
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.5rem,6vw,4.5rem); color: var(--hero-fg); line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 .gold { color: var(--gold); }
.hero p { font-size: 1.125rem; color: rgba(245,240,232,0.6); max-width: 36rem; margin-bottom: 2.5rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust {
  display: flex; align-items: center; gap: 2rem; margin-top: 4rem;
  color: rgba(245,240,232,0.4); font-size: 0.875rem;
}
.hero-avatars { display: flex; }
.hero-avatars span {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(230,168,23,0.2);
  border: 2px solid var(--hero-bg); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.75rem; font-weight: 600; margin-right: -0.75rem;
}

/* ===== CATEGORIES ===== */
.categories { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.125rem; max-width: 28rem; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--card); border-radius: 1rem; padding: 1.5rem; text-align: center;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.3s;
}
.cat-card:hover { border-color: rgba(230,168,23,0.4); box-shadow: 0 10px 30px rgba(230,168,23,0.05); }
.cat-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; background: var(--secondary-bg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
  font-size: 1.5rem; transition: background 0.3s;
}
.cat-card:hover .cat-icon { background: rgba(230,168,23,0.1); }
.cat-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.cat-card .count { font-size: 0.875rem; color: var(--muted); }

/* ===== PRODUCTS ===== */
.featured { padding: 6rem 0; background: rgba(235,237,242,0.3); }
.featured-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.featured-header a { color: var(--gold); font-weight: 500; }
.featured-header a:hover { color: var(--gold-dark); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--card); border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s; cursor: pointer;
}
.product-card:hover { border-color: rgba(230,168,23,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--secondary-bg); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.75rem;
  border-radius: 9999px; background: rgba(20,26,36,0.8); color: var(--hero-fg);
  font-size: 0.75rem; font-weight: 500; backdrop-filter: blur(8px);
}
.product-body { padding: 1.25rem; }
.product-author { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.product-title { font-size: 1.125rem; line-height: 1.3; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-stars { display: flex; align-items: center; gap: 0.125rem; margin-bottom: 0.75rem; }
.star { color: var(--gold); font-size: 0.875rem; }
.star.empty { color: var(--border); }
.product-reviews { font-size: 0.75rem; color: var(--muted); margin-left: 0.25rem; }
.product-price { font-size: 1.25rem; font-weight: 700; }
.product-price .old { font-size: 0.875rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 0.5rem; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 6rem 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
  background: var(--card); border-radius: 1rem; padding: 2rem;
  border: 1px solid var(--border); position: relative;
}
.testimonial-card .quote { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: rgba(230,168,23,0.2); font-family: serif; }
.testimonial-card .stars { display: flex; gap: 0.125rem; margin-bottom: 1rem; color: var(--gold); }
.testimonial-card .text { line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-card .author-name { font-weight: 600; }
.testimonial-card .author-role { font-size: 0.875rem; color: var(--muted); }

/* ===== CTA ===== */
.cta {
  padding: 6rem 0; background: var(--hero-bg); position: relative; overflow: hidden; text-align: center;
}
.cta-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 37rem; height: 37rem; background: rgba(230,168,23,0.05);
  border-radius: 50%; filter: blur(80px);
}
.cta-content { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem,4vw,3rem); color: var(--hero-fg); margin-bottom: 1.5rem; }
.cta p { color: rgba(245,240,232,0.6); font-size: 1.125rem; margin-bottom: 2.5rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--fg); color: rgba(245,240,232,0.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--hero-fg); margin-bottom: 1rem; }
.footer-brand h3 span { color: var(--gold); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; color: var(--hero-fg); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1); margin-top: 3rem;
  padding: 2rem 0; text-align: center; font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  .mobile-menu.active { display: block; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .featured-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .product-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
