/* ============================================
   World Cup 2026 Marketplace - CSS Professionnel
   ============================================ */

:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --secondary: #16a34a;
  --accent: #2563eb;
  --dark: #1f2937;
  --light: #f3f4f6;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo img {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a:hover { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

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

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-btn {
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.auth-btn:hover { background: var(--gray-700); }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-search input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

.hero-search button {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover { background: var(--gray-700); }

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Categories */
.categories {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray-500);
}

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

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Products */
.products {
  padding: 4rem 2rem;
  background: var(--white);
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.view-all {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

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

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.badge-discount {
  background: var(--secondary);
  color: var(--white);
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}

.wishlist-btn:hover { background: var(--gray-100); }
.wishlist-btn.active { color: var(--primary); }

.product-info {
  padding: 1.25rem;
}

.product-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.product-info h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.price-original {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: line-through;
}

.add-to-cart {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
}

.add-to-cart:hover { background: var(--primary-dark); }

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-section a {
  display: block;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

.modal-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-500);
}

.modal-switch a {
  color: var(--primary);
  font-weight: 600;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active { right: 0; }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-info .price {
  color: var(--primary);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-quantity button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
}

.cart-item-remove {
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.25rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.checkout-btn {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

/* Chatbot */
.chatbot-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}

.chatbot-btn:hover { transform: scale(1.1); }

.chatbot-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  height: 500px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.active { display: flex; }

.chatbot-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  margin-bottom: 1rem;
  max-width: 80%;
}

.chat-message.bot {
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 12px 0;
}

.chat-message.user {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 0 12px;
  margin-left: auto;
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
}

.chatbot-input button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Page Content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .nav { display: none; }
  .header-actions { gap: 0.5rem; }
  .cart-sidebar { width: 100%; right: -100%; }
  .chatbot-window { width: calc(100% - 2rem); right: 1rem; }
}


/* Language Selector */
.lang-selector {
  display: flex;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.lang-btn {
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

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

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--primary);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   Personnalisation et Options Produits
   ============================================ */

/* Tailles avec séparation enfants/adultes */
.size-group {
  margin-bottom: 1rem;
}

.size-group .size-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 0.875rem;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Dropdown personnalisation */
.dropdown-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-dropdown {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-dropdown:hover,
.product-dropdown:focus {
  border-color: var(--primary);
  outline: none;
}

/* Upload d'image */
.image-upload-section {
  margin-bottom: 1rem;
}

.upload-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  background: var(--gray-100);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.05);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.5rem;
}

.upload-text {
  font-weight: 600;
  color: var(--dark);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.upload-preview {
  position: relative;
  display: inline-block;
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-image:hover {
  background: var(--primary-dark);
}

/* Sélecteur de devise */
.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-btn:hover {
  border-color: var(--primary);
}

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

/* Responsive pour personnalisation */
@media (max-width: 768px) {
  .product-dropdown {
    font-size: 16px; /* Évite le zoom sur iOS */
  }
  
  .upload-area {
    padding: 1rem;
  }
  
  .upload-preview img {
    max-width: 150px;
    max-height: 150px;
  }
}


/* ============================================
   RESPONSIVE MOBILE OPTIMISÉ
   ============================================ */

/* Indicateur de devise automatique */
.currency-indicator {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 0.25rem 0.5rem;
  background: var(--gray-100);
  border-radius: 4px;
}

.currency-indicator.show {
  display: flex;
}

/* Navigation mobile en bas de page */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 0.5rem 0;
}

.mobile-bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  color: var(--gray-500);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-icon {
  font-size: 1.25rem;
}

/* Tablettes */
@media (max-width: 1024px) {
  .header-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }
  
  .cart-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .auth-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .lang-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .currency-selector {
    display: none;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header compact */
  .header-container {
    padding: 0.5rem 0.75rem;
    flex-wrap: nowrap;
  }
  
  .logo {
    font-size: 0;
    gap: 0;
  }
  
  /* Logo agrandi - même taille que le bouton panier */
  .logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
  }
  
  .logo span {
    display: none;
  }
  
  /* Cacher la navigation principale sur mobile */
  .nav {
    display: none;
  }
  
  /* Boutons compacts */
  .header-actions {
    gap: 0.375rem;
  }
  
  .cart-btn {
    padding: 0.5rem;
    font-size: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
  }
  
  .cart-btn::before {
    content: '🛒';
    font-size: 1.125rem;
  }
  
  /* Cacher le texte du bouton panier */
  .cart-btn > span:first-child {
    display: none;
  }
  
  .auth-btn {
    padding: 0.5rem;
    font-size: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth-btn::before {
    content: '👤';
    font-size: 1.125rem;
  }
  
  /* Afficher le sélecteur de langue sur mobile (compact) */
  .lang-selector {
    display: flex;
    gap: 0.25rem;
  }
  
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
  }
  
  /* Cacher le sélecteur de devise sur mobile */
  .currency-selector {
    display: none;
  }
  
  /* Afficher l'indicateur de devise */
  .currency-indicator {
    display: flex;
  }
  
  /* Afficher la navigation mobile en bas */
  .mobile-bottom-nav {
    display: block;
  }
  
  /* Ajouter du padding en bas pour la navigation fixe */
  body {
    padding-bottom: 70px;
  }
  
  /* Hero responsive */
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-search {
    flex-direction: column;
  }
  
  .hero-search input {
    padding: 0.875rem 1rem;
  }
  
  .hero-search button {
    padding: 0.875rem 1.5rem;
  }
  
  .hero-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .hero-image {
    display: none;
  }
  
  /* Catégories */
  .categories {
    padding: 2rem 1rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .category-card {
    padding: 1rem;
  }
  
  .category-icon {
    font-size: 2rem;
  }
  
  .category-card h3 {
    font-size: 0.875rem;
  }
  
  .category-card p {
    font-size: 0.75rem;
    display: none;
  }
  
  /* Produits */
  .products {
    padding: 2rem 1rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-info {
    padding: 0.75rem;
  }
  
  .product-info h3 {
    font-size: 0.875rem;
    line-height: 1.3;
  }
  
  .price-current {
    font-size: 1rem;
  }
  
  .price-original {
    font-size: 0.75rem;
  }
  
  .add-to-cart {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Page produit détail */
  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem 1rem !important;
  }
  
  .product-detail-info h1 {
    font-size: 1.5rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 1rem 5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-section h4 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .footer-section a {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  /* Chatbot */
  .chatbot-toggle {
    bottom: 80px !important;
    right: 1rem !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  .chatbot-window {
    bottom: 140px !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    max-height: 60vh !important;
  }
  
  /* Modal */
  .modal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  /* Cart sidebar */
  .cart-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .header-container {
    padding: 0.5rem;
  }
  
  .logo img {
    height: 32px;
  }
  
  .cart-btn,
  .auth-btn {
    width: 36px;
    height: 36px;
  }
  
  .cart-btn::before,
  .auth-btn::before {
    font-size: 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .category-card {
    padding: 0.75rem;
  }
  
  .category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .product-image {
    height: 120px;
  }
  
  .product-info {
    padding: 0.5rem;
  }
  
  .product-info h3 {
    font-size: 0.75rem;
  }
  
  .price-current {
    font-size: 0.875rem;
  }
  
  .add-to-cart {
    padding: 0.375rem;
    font-size: 0.625rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-stats {
    margin-top: 1rem;
  }
  
  .mobile-bottom-nav {
    padding: 0.25rem 0;
  }
  
  .mobile-nav-item {
    padding: 0.25rem;
  }
  
  .mobile-nav-icon {
    font-size: 1rem;
  }
}

/* Styles pour les menus déroulants de produits */
.product-dropdown {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.product-dropdown:hover {
  border-color: var(--primary);
}

.product-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.product-dropdown option {
  padding: 0.5rem;
}

/* Zone d'upload d'image */
.upload-area {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  background-color: #f9fafb;
}

.upload-area:hover {
  border-color: var(--primary);
  background-color: #fef2f2;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  font-size: 3rem;
}

.upload-text {
  font-weight: 600;
  color: var(--gray-700);
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.upload-preview {
  position: relative;
  display: inline-block;
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.remove-image {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.remove-image:hover {
  background: #b91c1c;
}


/* ============================================
   Personnalisation Maillots & Options Produit
   ============================================ */

.product-option-section {
  margin-bottom: 1.5rem;
}

.option-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-dropdown {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s;
}

.product-dropdown:focus {
  outline: none;
  border-color: var(--primary);
}

/* Jersey Customization Section */
.jersey-customization-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--gray-200);
}

.customization-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.customization-toggle {
  margin-bottom: 1rem;
}

.toggle-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.75rem;
}

.toggle-container input {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 26px;
  background: var(--gray-300);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-container input:checked + .toggle-slider {
  background: var(--secondary);
}

.toggle-container input:checked + .toggle-slider::after {
  transform: translateX(24px);
}

.toggle-label {
  font-weight: 500;
  color: var(--gray-700);
}

.customization-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-300);
}

.field-group {
  margin-bottom: 1rem;
}

.customization-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: border-color 0.3s;
}

.customization-input:focus {
  outline: none;
  border-color: var(--primary);
}

.customization-input::placeholder {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
}

/* Jersey Preview */
.jersey-preview {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.preview-back {
  width: 120px;
  height: 150px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px 8px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.preview-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 15px;
  background: var(--white);
  border-radius: 0 0 15px 15px;
}

.preview-name {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-bottom: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-number {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1;
}

/* Image Upload Section */
.image-upload-section {
  margin-bottom: 1.5rem;
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--gray-100);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.05);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.upload-icon {
  font-size: 2.5rem;
}

.upload-text {
  font-weight: 600;
  color: var(--dark);
}

.upload-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.remove-image {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.remove-image:hover {
  background: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jersey-customization-section {
    padding: 1rem;
  }
  
  .preview-back {
    width: 100px;
    height: 130px;
  }
  
  .preview-number {
    font-size: 2rem;
  }
  
  .preview-name {
    font-size: 0.8rem;
  }
}
