/* ======================================================
   DESIGN FUTURISTE POUR E-COMMERCE
   Fichier créé pour moderniser l'interface utilisateur
   avec un style futuriste et immersif
   ====================================================== */

/* Variables de couleurs futuristes */
:root {
  /* Palette principale évoluée */
  --primary-gradient-start: #1E3B3A;
  --primary-gradient-end: #3A8F8D;
  --primary-glow: rgba(58, 143, 141, 0.4);
  
  /* Accents néon */
  --neon-cyan: #00E5FF;
  --neon-violet: #9D4EDD;
  --neon-green: #39FF14;
  
  /* Fonds et surfaces */
  --dark-surface: #121212;
  --dark-surface-light: #1E1E1E;
  --glass-background: rgba(255, 255, 255, 0.1);
  
  /* Ombres et effets */
  --glow-shadow: 0 0 15px var(--primary-glow);
  --depth-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Styles généraux */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Mode sombre */
body.dark-mode {
  background-color: var(--dark-surface);
  color: #ffffff;
}

body.dark-mode .card,
body.dark-mode .store-promotions-box,
body.dark-mode header,
body.dark-mode footer {
  background-color: var(--dark-surface-light);
  color: #ffffff;
}

/* Header futuriste */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--depth-shadow);
}

/* Navigation modernisée */
.navbar-nav > li > a {
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav > li > a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--primary-gradient-end));
  transition: width 0.3s ease;
}

.navbar-nav > li > a:hover:after {
  width: 100%;
}

/* Bannière principale futuriste */
.main-home-first-section {
  position: relative;
  overflow: hidden;
}

.main-home-first-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 59, 58, 0.7), rgba(58, 143, 141, 0.3));
  z-index: 1;
}

.main-home-first-section .container {
  position: relative;
  z-index: 2;
}

.banner-content h1 {
  background: linear-gradient(90deg, #ffffff, var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
  margin-bottom: 20px;
}

.banner-content p {
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.banner-content .btn {
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--glow-shadow);
}

.banner-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Promotions avec effet glassmorphism */
.store-promotions-box {
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: var(--depth-shadow);
}

.store-promotions-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.store-promotions-box i {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Cartes de produits futuristes */
.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

body.dark-mode .product-card {
  background: var(--dark-surface-light);
}

.product-card:hover {
  box-shadow: var(--glow-shadow), var(--depth-shadow);
}

.product-card .card-img {
  overflow: hidden;
  position: relative;
}

.product-card .card-img:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: all 0.75s ease;
  z-index: 1;
}

.product-card:hover .card-img:before {
  left: 125%;
}

.product-card .card-content {
  padding: 20px;
}

.product-card .rating .star {
  transition: all 0.3s ease;
}

.product-card .last-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.product-card .cart-btn {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-card .cart-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-shadow);
}

/* Onglets de catégories modernisés */
.cat-tab {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.cat-tab .tab-link {
  background: transparent;
  border: 1px solid var(--primary-gradient-end);
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.cat-tab .tab-link.active,
.cat-tab .tab-link:hover {
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  box-shadow: var(--glow-shadow);
}

.cat-tab .tab-link a {
  color: inherit;
  text-decoration: none;
}

/* Section d'abonnement futuriste */
.subcribe-section {
  position: relative;
  overflow: hidden;
}

.subcribe-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 59, 58, 0.8), rgba(58, 143, 141, 0.4));
  z-index: 1;
}

.subcribe-inner {
  position: relative;
  z-index: 2;
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--depth-shadow);
}

.subcribe-inner h2 {
  color: white;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  margin-bottom: 20px;
}

.subcribe-inner .input-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.subcribe-inner .input-box input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: white;
  transition: all 0.3s ease;
}

.subcribe-inner .input-box input:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  outline: none;
}

.subcribe-inner .input-box button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  color: white;
  transition: all 0.3s ease;
}

.subcribe-inner .input-box button:hover {
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Boutons et éléments interactifs */
.btn-primary {
  background: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
}

/* Icônes de wishlist modernisées */
.heart-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.heart-icon:hover {
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.heart-icon i {
  transition: all 0.3s ease;
}

.heart-icon:hover i {
  color: #FF5252;
  transform: scale(1.2);
}

/* Barre de recherche futuriste */
.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: inherit;
  transition: all 0.3s ease;
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  outline: none;
}

.search-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  background: transparent;
  border: none;
  color: inherit;
  transition: all 0.3s ease;
}

.search-form button:hover {
  transform: scale(1.1);
}

/* Bouton de retour en haut futuriste */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--depth-shadow);
  opacity: 0;
  visibility: hidden;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-shadow);
}

/* Bascule du mode sombre */
.dark-mode-toggle {
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: white;
  box-shadow: var(--depth-shadow);
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: rotate(45deg);
  box-shadow: var(--glow-shadow);
}

/* Optimisations pour mobile */
@media (max-width: 768px) {
  .store-promotions-box {
    margin-bottom: 20px;
  }
  
  .cat-tab {
    justify-content: center;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
  
  .subcribe-inner {
    padding: 20px;
  }
  
  .subcribe-inner .input-box button {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

/* Effets de bordure néon pour les sections importantes */
.bestseller-section {
  position: relative;
  padding: 50px 0;
  border-radius: 20px;
  overflow: hidden;
}

.bestseller-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.bestseller-section:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* Titres avec effet de dégradé */
.bestseller-title h2 {
  background: linear-gradient(90deg, var(--primary-gradient-end), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.bestseller-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gradient-end), var(--neon-cyan));
  transition: width 0.3s ease;
}

.bestseller-title:hover h2:after {
  width: 100%;
}
