/**
 * ============================================
 * ARCHANGE E-COMMERCE - Styles principaux
 * ============================================
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a0033;
  --secondary: #2d004d;
  --accent: #9d4edd;
  --purple-light: #c77dff;
  --purple-neon: #e0aaff;
  --dark: #0a0014;
  --white: #ffffff;
  --cream: #f8f4ff;
  --gray: #8b8b8b;
  --green: #34c759;
}

body {
  font-family: 'Segoe UI', 'SF Pro Display', -apple-system, sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 0, 51, 0.85);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.8rem 6%;
  background: rgba(26, 0, 51, 0.95);
  box-shadow: 0 4px 30px rgba(157, 78, 221, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(157, 78, 221, 0.5); }
  50% { box-shadow: 0 0 30px rgba(157, 78, 221, 0.8), 0 0 40px rgba(157, 78, 221, 0.4); }
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple-light));
  transition: width 0.3s;
}

nav a:hover {
  color: var(--purple-light);
}

nav a:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-icons i {
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--white);
  transition: all 0.3s;
}

.header-icons i:hover {
  color: var(--purple-light);
  transform: scale(1.1);
}

.header-icons a {
  color: var(--white);
  text-decoration: none;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.6);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(199, 125, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid var(--accent);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.hero .signature {
  font-size: 1rem;
  color: var(--purple-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(157, 78, 221, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(157, 78, 221, 0.2);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

/* About Banner */
.about-banner {
  padding: 4rem 6%;
  background: rgba(26, 0, 51, 0.5);
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  text-align: center;
}

.about-banner p {
  font-size: 1.1rem;
  color: var(--purple-neon);
  font-style: italic;
}

/* Sections */
.categories,
.products,
.features,
.newsletter {
  padding: 6rem 6%;
}

.categories {
  background: var(--primary);
}

.products {
  background: var(--secondary);
}

.features {
  background: var(--primary);
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.newsletter {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--white), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(157, 78, 221, 0.3);
  transition: all 0.4s;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(157, 78, 221, 0.4);
  border-color: var(--accent);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 0, 51, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 2;
}

.category-overlay h3 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-overlay p {
  color: var(--purple-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.category-link {
  color: var(--purple-neon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.category-link:hover {
  color: var(--white);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(157, 78, 221, 0.3);
  border-color: var(--accent);
}

.product-image {
  position: relative;
  height: 350px;
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.5);
}

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-actions button {
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--white);
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.product-actions button:hover {
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  border-color: transparent;
  transform: scale(1.1);
}

.product-info {
  padding: 1.8rem;
}

.product-info .brand {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--white);
  font-weight: 600;
}

.product-info h3 a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.product-info h3 a:hover {
  color: var(--purple-light);
}

.rating {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.rating i {
  color: var(--purple-light);
  font-size: 0.85rem;
}

.price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.price .current {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price .old {
  font-size: 1rem;
  color: var(--gray);
  text-decoration: line-through;
}

.add-to-cart {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6);
}

.add-to-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(157, 78, 221, 0.2);
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.feature-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* Newsletter */
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter p {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1.3rem 2rem;
  border: 2px solid rgba(157, 78, 221, 0.3);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form button {
  padding: 1.3rem 3rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(157, 78, 221, 0.6);
}

/* Footer */
footer {
  background: var(--dark);
  padding: 4rem 6% 2rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--purple-light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid rgba(157, 78, 221, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--white);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(157, 78, 221, 0.5);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(157, 78, 221, 0.2);
  color: rgba(255,255,255,0.5);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: var(--primary);
  z-index: 2000;
  transition: right 0.3s;
  box-shadow: -5px 0 30px rgba(157, 78, 221, 0.3);
  border-left: 1px solid rgba(157, 78, 221, 0.3);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-cart {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  transition: transform 0.3s;
}

.close-cart:hover {
  transform: rotate(90deg);
}

.cart-items {
  padding: 2rem;
  height: calc(100% - 250px);
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(157, 78, 221, 0.2);
  position: relative;
}

.cart-item img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(157, 78, 221, 0.3);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--white);
}

.cart-item-info .brand {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cart-item-info .price {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(157, 78, 221, 0.5);
  background: rgba(157, 78, 221, 0.1);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 700;
  color: var(--white);
  transition: all 0.3s;
}

.cart-item-qty button:hover {
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  border-color: transparent;
}

.remove-item {
  position: absolute;
  top: 1rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.3s;
  font-size: 1.1rem;
}

.remove-item:hover {
  color: #ff4444;
}

.cart-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  background: var(--secondary);
  border-top: 1px solid rgba(157, 78, 221, 0.3);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.checkout-btn {
  width: 100%;
  padding: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.4);
  text-decoration: none;
  display: block;
  text-align: center;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(157, 78, 221, 0.6);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 20, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1500;
  backdrop-filter: blur(5px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--accent), var(--purple-light));
  color: var(--white);
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  transform: translateX(200%);
  transition: transform 0.3s;
  z-index: 3000;
  box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toast.show {
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}